@aws-sdk/client-migration-hub 3.183.0 → 3.186.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/MigrationHub.js +77 -70
- package/dist-es/MigrationHubClient.js +28 -22
- package/dist-es/commands/AssociateCreatedArtifactCommand.js +28 -21
- package/dist-es/commands/AssociateDiscoveredResourceCommand.js +28 -21
- package/dist-es/commands/CreateProgressUpdateStreamCommand.js +28 -21
- package/dist-es/commands/DeleteProgressUpdateStreamCommand.js +28 -21
- package/dist-es/commands/DescribeApplicationStateCommand.js +28 -21
- package/dist-es/commands/DescribeMigrationTaskCommand.js +28 -21
- package/dist-es/commands/DisassociateCreatedArtifactCommand.js +28 -21
- package/dist-es/commands/DisassociateDiscoveredResourceCommand.js +28 -21
- package/dist-es/commands/ImportMigrationTaskCommand.js +28 -21
- package/dist-es/commands/ListApplicationStatesCommand.js +28 -21
- package/dist-es/commands/ListCreatedArtifactsCommand.js +28 -21
- package/dist-es/commands/ListDiscoveredResourcesCommand.js +28 -21
- package/dist-es/commands/ListMigrationTasksCommand.js +28 -21
- package/dist-es/commands/ListProgressUpdateStreamsCommand.js +28 -21
- package/dist-es/commands/NotifyApplicationStateCommand.js +28 -21
- package/dist-es/commands/NotifyMigrationTaskStateCommand.js +28 -21
- package/dist-es/commands/PutResourceAttributesCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MigrationHubServiceException.js +10 -5
- package/dist-es/models/models_0.js +164 -247
- package/dist-es/pagination/ListApplicationStatesPaginator.js +68 -25
- package/dist-es/pagination/ListCreatedArtifactsPaginator.js +68 -25
- package/dist-es/pagination/ListDiscoveredResourcesPaginator.js +68 -25
- package/dist-es/pagination/ListMigrationTasksPaginator.js +68 -25
- package/dist-es/pagination/ListProgressUpdateStreamsPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +1816 -1415
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +33 -33
|
@@ -1,1357 +1,1735 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
3
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { MigrationHubServiceException as __BaseException } from "../models/MigrationHubServiceException";
|
|
4
5
|
import { AccessDeniedException, DryRunOperation, HomeRegionNotSetException, InternalServerError, InvalidInputException, PolicyErrorException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnauthorizedOperation, } from "../models/models_0";
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
return
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
};
|
|
104
|
-
export
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
throw
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
throw
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
throw
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
export
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
throw
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
throw
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
};
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
};
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
};
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
throw
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
throw
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
throw
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
throw
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
throw
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
}
|
|
760
|
-
};
|
|
761
|
-
export
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
throw
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
throw
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
};
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
output,
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
errorCode,
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
throw
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
throw
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
output,
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
};
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
6
|
+
export var serializeAws_json1_1AssociateCreatedArtifactCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
+
var headers, body;
|
|
8
|
+
return __generator(this, function (_a) {
|
|
9
|
+
headers = {
|
|
10
|
+
"content-type": "application/x-amz-json-1.1",
|
|
11
|
+
"x-amz-target": "AWSMigrationHub.AssociateCreatedArtifact",
|
|
12
|
+
};
|
|
13
|
+
body = JSON.stringify(serializeAws_json1_1AssociateCreatedArtifactRequest(input, context));
|
|
14
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
15
|
+
});
|
|
16
|
+
}); };
|
|
17
|
+
export var serializeAws_json1_1AssociateDiscoveredResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
18
|
+
var headers, body;
|
|
19
|
+
return __generator(this, function (_a) {
|
|
20
|
+
headers = {
|
|
21
|
+
"content-type": "application/x-amz-json-1.1",
|
|
22
|
+
"x-amz-target": "AWSMigrationHub.AssociateDiscoveredResource",
|
|
23
|
+
};
|
|
24
|
+
body = JSON.stringify(serializeAws_json1_1AssociateDiscoveredResourceRequest(input, context));
|
|
25
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
26
|
+
});
|
|
27
|
+
}); };
|
|
28
|
+
export var serializeAws_json1_1CreateProgressUpdateStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
29
|
+
var headers, body;
|
|
30
|
+
return __generator(this, function (_a) {
|
|
31
|
+
headers = {
|
|
32
|
+
"content-type": "application/x-amz-json-1.1",
|
|
33
|
+
"x-amz-target": "AWSMigrationHub.CreateProgressUpdateStream",
|
|
34
|
+
};
|
|
35
|
+
body = JSON.stringify(serializeAws_json1_1CreateProgressUpdateStreamRequest(input, context));
|
|
36
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
37
|
+
});
|
|
38
|
+
}); };
|
|
39
|
+
export var serializeAws_json1_1DeleteProgressUpdateStreamCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
40
|
+
var headers, body;
|
|
41
|
+
return __generator(this, function (_a) {
|
|
42
|
+
headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.1",
|
|
44
|
+
"x-amz-target": "AWSMigrationHub.DeleteProgressUpdateStream",
|
|
45
|
+
};
|
|
46
|
+
body = JSON.stringify(serializeAws_json1_1DeleteProgressUpdateStreamRequest(input, context));
|
|
47
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
48
|
+
});
|
|
49
|
+
}); };
|
|
50
|
+
export var serializeAws_json1_1DescribeApplicationStateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
|
+
var headers, body;
|
|
52
|
+
return __generator(this, function (_a) {
|
|
53
|
+
headers = {
|
|
54
|
+
"content-type": "application/x-amz-json-1.1",
|
|
55
|
+
"x-amz-target": "AWSMigrationHub.DescribeApplicationState",
|
|
56
|
+
};
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_1DescribeApplicationStateRequest(input, context));
|
|
58
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
59
|
+
});
|
|
60
|
+
}); };
|
|
61
|
+
export var serializeAws_json1_1DescribeMigrationTaskCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
|
+
var headers, body;
|
|
63
|
+
return __generator(this, function (_a) {
|
|
64
|
+
headers = {
|
|
65
|
+
"content-type": "application/x-amz-json-1.1",
|
|
66
|
+
"x-amz-target": "AWSMigrationHub.DescribeMigrationTask",
|
|
67
|
+
};
|
|
68
|
+
body = JSON.stringify(serializeAws_json1_1DescribeMigrationTaskRequest(input, context));
|
|
69
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
70
|
+
});
|
|
71
|
+
}); };
|
|
72
|
+
export var serializeAws_json1_1DisassociateCreatedArtifactCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
73
|
+
var headers, body;
|
|
74
|
+
return __generator(this, function (_a) {
|
|
75
|
+
headers = {
|
|
76
|
+
"content-type": "application/x-amz-json-1.1",
|
|
77
|
+
"x-amz-target": "AWSMigrationHub.DisassociateCreatedArtifact",
|
|
78
|
+
};
|
|
79
|
+
body = JSON.stringify(serializeAws_json1_1DisassociateCreatedArtifactRequest(input, context));
|
|
80
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
81
|
+
});
|
|
82
|
+
}); };
|
|
83
|
+
export var serializeAws_json1_1DisassociateDiscoveredResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
84
|
+
var headers, body;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
headers = {
|
|
87
|
+
"content-type": "application/x-amz-json-1.1",
|
|
88
|
+
"x-amz-target": "AWSMigrationHub.DisassociateDiscoveredResource",
|
|
89
|
+
};
|
|
90
|
+
body = JSON.stringify(serializeAws_json1_1DisassociateDiscoveredResourceRequest(input, context));
|
|
91
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
92
|
+
});
|
|
93
|
+
}); };
|
|
94
|
+
export var serializeAws_json1_1ImportMigrationTaskCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
+
var headers, body;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
headers = {
|
|
98
|
+
"content-type": "application/x-amz-json-1.1",
|
|
99
|
+
"x-amz-target": "AWSMigrationHub.ImportMigrationTask",
|
|
100
|
+
};
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_1ImportMigrationTaskRequest(input, context));
|
|
102
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
103
|
+
});
|
|
104
|
+
}); };
|
|
105
|
+
export var serializeAws_json1_1ListApplicationStatesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
106
|
+
var headers, body;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
headers = {
|
|
109
|
+
"content-type": "application/x-amz-json-1.1",
|
|
110
|
+
"x-amz-target": "AWSMigrationHub.ListApplicationStates",
|
|
111
|
+
};
|
|
112
|
+
body = JSON.stringify(serializeAws_json1_1ListApplicationStatesRequest(input, context));
|
|
113
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
114
|
+
});
|
|
115
|
+
}); };
|
|
116
|
+
export var serializeAws_json1_1ListCreatedArtifactsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
117
|
+
var headers, body;
|
|
118
|
+
return __generator(this, function (_a) {
|
|
119
|
+
headers = {
|
|
120
|
+
"content-type": "application/x-amz-json-1.1",
|
|
121
|
+
"x-amz-target": "AWSMigrationHub.ListCreatedArtifacts",
|
|
122
|
+
};
|
|
123
|
+
body = JSON.stringify(serializeAws_json1_1ListCreatedArtifactsRequest(input, context));
|
|
124
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
125
|
+
});
|
|
126
|
+
}); };
|
|
127
|
+
export var serializeAws_json1_1ListDiscoveredResourcesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
|
+
var headers, body;
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
headers = {
|
|
131
|
+
"content-type": "application/x-amz-json-1.1",
|
|
132
|
+
"x-amz-target": "AWSMigrationHub.ListDiscoveredResources",
|
|
133
|
+
};
|
|
134
|
+
body = JSON.stringify(serializeAws_json1_1ListDiscoveredResourcesRequest(input, context));
|
|
135
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
136
|
+
});
|
|
137
|
+
}); };
|
|
138
|
+
export var serializeAws_json1_1ListMigrationTasksCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
139
|
+
var headers, body;
|
|
140
|
+
return __generator(this, function (_a) {
|
|
141
|
+
headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.1",
|
|
143
|
+
"x-amz-target": "AWSMigrationHub.ListMigrationTasks",
|
|
144
|
+
};
|
|
145
|
+
body = JSON.stringify(serializeAws_json1_1ListMigrationTasksRequest(input, context));
|
|
146
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
147
|
+
});
|
|
148
|
+
}); };
|
|
149
|
+
export var serializeAws_json1_1ListProgressUpdateStreamsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
150
|
+
var headers, body;
|
|
151
|
+
return __generator(this, function (_a) {
|
|
152
|
+
headers = {
|
|
153
|
+
"content-type": "application/x-amz-json-1.1",
|
|
154
|
+
"x-amz-target": "AWSMigrationHub.ListProgressUpdateStreams",
|
|
155
|
+
};
|
|
156
|
+
body = JSON.stringify(serializeAws_json1_1ListProgressUpdateStreamsRequest(input, context));
|
|
157
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
158
|
+
});
|
|
159
|
+
}); };
|
|
160
|
+
export var serializeAws_json1_1NotifyApplicationStateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
161
|
+
var headers, body;
|
|
162
|
+
return __generator(this, function (_a) {
|
|
163
|
+
headers = {
|
|
164
|
+
"content-type": "application/x-amz-json-1.1",
|
|
165
|
+
"x-amz-target": "AWSMigrationHub.NotifyApplicationState",
|
|
166
|
+
};
|
|
167
|
+
body = JSON.stringify(serializeAws_json1_1NotifyApplicationStateRequest(input, context));
|
|
168
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
169
|
+
});
|
|
170
|
+
}); };
|
|
171
|
+
export var serializeAws_json1_1NotifyMigrationTaskStateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
172
|
+
var headers, body;
|
|
173
|
+
return __generator(this, function (_a) {
|
|
174
|
+
headers = {
|
|
175
|
+
"content-type": "application/x-amz-json-1.1",
|
|
176
|
+
"x-amz-target": "AWSMigrationHub.NotifyMigrationTaskState",
|
|
177
|
+
};
|
|
178
|
+
body = JSON.stringify(serializeAws_json1_1NotifyMigrationTaskStateRequest(input, context));
|
|
179
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
180
|
+
});
|
|
181
|
+
}); };
|
|
182
|
+
export var serializeAws_json1_1PutResourceAttributesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
183
|
+
var headers, body;
|
|
184
|
+
return __generator(this, function (_a) {
|
|
185
|
+
headers = {
|
|
186
|
+
"content-type": "application/x-amz-json-1.1",
|
|
187
|
+
"x-amz-target": "AWSMigrationHub.PutResourceAttributes",
|
|
188
|
+
};
|
|
189
|
+
body = JSON.stringify(serializeAws_json1_1PutResourceAttributesRequest(input, context));
|
|
190
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
191
|
+
});
|
|
192
|
+
}); };
|
|
193
|
+
export var deserializeAws_json1_1AssociateCreatedArtifactCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
194
|
+
var data, contents, response;
|
|
195
|
+
return __generator(this, function (_a) {
|
|
196
|
+
switch (_a.label) {
|
|
197
|
+
case 0:
|
|
198
|
+
if (output.statusCode >= 300) {
|
|
199
|
+
return [2, deserializeAws_json1_1AssociateCreatedArtifactCommandError(output, context)];
|
|
200
|
+
}
|
|
201
|
+
return [4, parseBody(output.body, context)];
|
|
202
|
+
case 1:
|
|
203
|
+
data = _a.sent();
|
|
204
|
+
contents = {};
|
|
205
|
+
contents = deserializeAws_json1_1AssociateCreatedArtifactResult(data, context);
|
|
206
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
207
|
+
return [2, Promise.resolve(response)];
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
}); };
|
|
211
|
+
var deserializeAws_json1_1AssociateCreatedArtifactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
212
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
213
|
+
var _c;
|
|
214
|
+
return __generator(this, function (_d) {
|
|
215
|
+
switch (_d.label) {
|
|
216
|
+
case 0:
|
|
217
|
+
_a = [__assign({}, output)];
|
|
218
|
+
_c = {};
|
|
219
|
+
return [4, parseErrorBody(output.body, context)];
|
|
220
|
+
case 1:
|
|
221
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
222
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
223
|
+
_b = errorCode;
|
|
224
|
+
switch (_b) {
|
|
225
|
+
case "AccessDeniedException": return [3, 2];
|
|
226
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
227
|
+
case "DryRunOperation": return [3, 4];
|
|
228
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
229
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
230
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
231
|
+
case "InternalServerError": return [3, 8];
|
|
232
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
233
|
+
case "InvalidInputException": return [3, 10];
|
|
234
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
235
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
236
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
237
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
238
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
239
|
+
case "ThrottlingException": return [3, 16];
|
|
240
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
241
|
+
case "UnauthorizedOperation": return [3, 18];
|
|
242
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 18];
|
|
243
|
+
}
|
|
244
|
+
return [3, 20];
|
|
245
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
246
|
+
case 3: throw _d.sent();
|
|
247
|
+
case 4: return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
248
|
+
case 5: throw _d.sent();
|
|
249
|
+
case 6: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
250
|
+
case 7: throw _d.sent();
|
|
251
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
252
|
+
case 9: throw _d.sent();
|
|
253
|
+
case 10: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
254
|
+
case 11: throw _d.sent();
|
|
255
|
+
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
256
|
+
case 13: throw _d.sent();
|
|
257
|
+
case 14: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
258
|
+
case 15: throw _d.sent();
|
|
259
|
+
case 16: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
260
|
+
case 17: throw _d.sent();
|
|
261
|
+
case 18: return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
262
|
+
case 19: throw _d.sent();
|
|
263
|
+
case 20:
|
|
264
|
+
parsedBody = parsedOutput.body;
|
|
265
|
+
throwDefaultError({
|
|
266
|
+
output: output,
|
|
267
|
+
parsedBody: parsedBody,
|
|
268
|
+
exceptionCtor: __BaseException,
|
|
269
|
+
errorCode: errorCode,
|
|
270
|
+
});
|
|
271
|
+
_d.label = 21;
|
|
272
|
+
case 21: return [2];
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
}); };
|
|
276
|
+
export var deserializeAws_json1_1AssociateDiscoveredResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
277
|
+
var data, contents, response;
|
|
278
|
+
return __generator(this, function (_a) {
|
|
279
|
+
switch (_a.label) {
|
|
280
|
+
case 0:
|
|
281
|
+
if (output.statusCode >= 300) {
|
|
282
|
+
return [2, deserializeAws_json1_1AssociateDiscoveredResourceCommandError(output, context)];
|
|
283
|
+
}
|
|
284
|
+
return [4, parseBody(output.body, context)];
|
|
285
|
+
case 1:
|
|
286
|
+
data = _a.sent();
|
|
287
|
+
contents = {};
|
|
288
|
+
contents = deserializeAws_json1_1AssociateDiscoveredResourceResult(data, context);
|
|
289
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
290
|
+
return [2, Promise.resolve(response)];
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
}); };
|
|
294
|
+
var deserializeAws_json1_1AssociateDiscoveredResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
295
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
296
|
+
var _c;
|
|
297
|
+
return __generator(this, function (_d) {
|
|
298
|
+
switch (_d.label) {
|
|
299
|
+
case 0:
|
|
300
|
+
_a = [__assign({}, output)];
|
|
301
|
+
_c = {};
|
|
302
|
+
return [4, parseErrorBody(output.body, context)];
|
|
303
|
+
case 1:
|
|
304
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
305
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
306
|
+
_b = errorCode;
|
|
307
|
+
switch (_b) {
|
|
308
|
+
case "AccessDeniedException": return [3, 2];
|
|
309
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
310
|
+
case "DryRunOperation": return [3, 4];
|
|
311
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
312
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
313
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
314
|
+
case "InternalServerError": return [3, 8];
|
|
315
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
316
|
+
case "InvalidInputException": return [3, 10];
|
|
317
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
318
|
+
case "PolicyErrorException": return [3, 12];
|
|
319
|
+
case "com.amazonaws.migrationhub#PolicyErrorException": return [3, 12];
|
|
320
|
+
case "ResourceNotFoundException": return [3, 14];
|
|
321
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 14];
|
|
322
|
+
case "ServiceUnavailableException": return [3, 16];
|
|
323
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 16];
|
|
324
|
+
case "ThrottlingException": return [3, 18];
|
|
325
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 18];
|
|
326
|
+
case "UnauthorizedOperation": return [3, 20];
|
|
327
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 20];
|
|
328
|
+
}
|
|
329
|
+
return [3, 22];
|
|
330
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
331
|
+
case 3: throw _d.sent();
|
|
332
|
+
case 4: return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
333
|
+
case 5: throw _d.sent();
|
|
334
|
+
case 6: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
335
|
+
case 7: throw _d.sent();
|
|
336
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
337
|
+
case 9: throw _d.sent();
|
|
338
|
+
case 10: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
339
|
+
case 11: throw _d.sent();
|
|
340
|
+
case 12: return [4, deserializeAws_json1_1PolicyErrorExceptionResponse(parsedOutput, context)];
|
|
341
|
+
case 13: throw _d.sent();
|
|
342
|
+
case 14: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
343
|
+
case 15: throw _d.sent();
|
|
344
|
+
case 16: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
345
|
+
case 17: throw _d.sent();
|
|
346
|
+
case 18: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
347
|
+
case 19: throw _d.sent();
|
|
348
|
+
case 20: return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
349
|
+
case 21: throw _d.sent();
|
|
350
|
+
case 22:
|
|
351
|
+
parsedBody = parsedOutput.body;
|
|
352
|
+
throwDefaultError({
|
|
353
|
+
output: output,
|
|
354
|
+
parsedBody: parsedBody,
|
|
355
|
+
exceptionCtor: __BaseException,
|
|
356
|
+
errorCode: errorCode,
|
|
357
|
+
});
|
|
358
|
+
_d.label = 23;
|
|
359
|
+
case 23: return [2];
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
}); };
|
|
363
|
+
export var deserializeAws_json1_1CreateProgressUpdateStreamCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
364
|
+
var data, contents, response;
|
|
365
|
+
return __generator(this, function (_a) {
|
|
366
|
+
switch (_a.label) {
|
|
367
|
+
case 0:
|
|
368
|
+
if (output.statusCode >= 300) {
|
|
369
|
+
return [2, deserializeAws_json1_1CreateProgressUpdateStreamCommandError(output, context)];
|
|
370
|
+
}
|
|
371
|
+
return [4, parseBody(output.body, context)];
|
|
372
|
+
case 1:
|
|
373
|
+
data = _a.sent();
|
|
374
|
+
contents = {};
|
|
375
|
+
contents = deserializeAws_json1_1CreateProgressUpdateStreamResult(data, context);
|
|
376
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
377
|
+
return [2, Promise.resolve(response)];
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
}); };
|
|
381
|
+
var deserializeAws_json1_1CreateProgressUpdateStreamCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
382
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
383
|
+
var _c;
|
|
384
|
+
return __generator(this, function (_d) {
|
|
385
|
+
switch (_d.label) {
|
|
386
|
+
case 0:
|
|
387
|
+
_a = [__assign({}, output)];
|
|
388
|
+
_c = {};
|
|
389
|
+
return [4, parseErrorBody(output.body, context)];
|
|
390
|
+
case 1:
|
|
391
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
392
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
393
|
+
_b = errorCode;
|
|
394
|
+
switch (_b) {
|
|
395
|
+
case "AccessDeniedException": return [3, 2];
|
|
396
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
397
|
+
case "DryRunOperation": return [3, 4];
|
|
398
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
399
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
400
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
401
|
+
case "InternalServerError": return [3, 8];
|
|
402
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
403
|
+
case "InvalidInputException": return [3, 10];
|
|
404
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
405
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
406
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 12];
|
|
407
|
+
case "ThrottlingException": return [3, 14];
|
|
408
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 14];
|
|
409
|
+
case "UnauthorizedOperation": return [3, 16];
|
|
410
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 16];
|
|
411
|
+
}
|
|
412
|
+
return [3, 18];
|
|
413
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
414
|
+
case 3: throw _d.sent();
|
|
415
|
+
case 4: return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
416
|
+
case 5: throw _d.sent();
|
|
417
|
+
case 6: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
418
|
+
case 7: throw _d.sent();
|
|
419
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
420
|
+
case 9: throw _d.sent();
|
|
421
|
+
case 10: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
422
|
+
case 11: throw _d.sent();
|
|
423
|
+
case 12: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
424
|
+
case 13: throw _d.sent();
|
|
425
|
+
case 14: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
426
|
+
case 15: throw _d.sent();
|
|
427
|
+
case 16: return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
428
|
+
case 17: throw _d.sent();
|
|
429
|
+
case 18:
|
|
430
|
+
parsedBody = parsedOutput.body;
|
|
431
|
+
throwDefaultError({
|
|
432
|
+
output: output,
|
|
433
|
+
parsedBody: parsedBody,
|
|
434
|
+
exceptionCtor: __BaseException,
|
|
435
|
+
errorCode: errorCode,
|
|
436
|
+
});
|
|
437
|
+
_d.label = 19;
|
|
438
|
+
case 19: return [2];
|
|
439
|
+
}
|
|
440
|
+
});
|
|
441
|
+
}); };
|
|
442
|
+
export var deserializeAws_json1_1DeleteProgressUpdateStreamCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
443
|
+
var data, contents, response;
|
|
444
|
+
return __generator(this, function (_a) {
|
|
445
|
+
switch (_a.label) {
|
|
446
|
+
case 0:
|
|
447
|
+
if (output.statusCode >= 300) {
|
|
448
|
+
return [2, deserializeAws_json1_1DeleteProgressUpdateStreamCommandError(output, context)];
|
|
449
|
+
}
|
|
450
|
+
return [4, parseBody(output.body, context)];
|
|
451
|
+
case 1:
|
|
452
|
+
data = _a.sent();
|
|
453
|
+
contents = {};
|
|
454
|
+
contents = deserializeAws_json1_1DeleteProgressUpdateStreamResult(data, context);
|
|
455
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
456
|
+
return [2, Promise.resolve(response)];
|
|
457
|
+
}
|
|
458
|
+
});
|
|
459
|
+
}); };
|
|
460
|
+
var deserializeAws_json1_1DeleteProgressUpdateStreamCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
461
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
462
|
+
var _c;
|
|
463
|
+
return __generator(this, function (_d) {
|
|
464
|
+
switch (_d.label) {
|
|
465
|
+
case 0:
|
|
466
|
+
_a = [__assign({}, output)];
|
|
467
|
+
_c = {};
|
|
468
|
+
return [4, parseErrorBody(output.body, context)];
|
|
469
|
+
case 1:
|
|
470
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
471
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
472
|
+
_b = errorCode;
|
|
473
|
+
switch (_b) {
|
|
474
|
+
case "AccessDeniedException": return [3, 2];
|
|
475
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
476
|
+
case "DryRunOperation": return [3, 4];
|
|
477
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
478
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
479
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
480
|
+
case "InternalServerError": return [3, 8];
|
|
481
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
482
|
+
case "InvalidInputException": return [3, 10];
|
|
483
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
484
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
485
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
486
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
487
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
488
|
+
case "ThrottlingException": return [3, 16];
|
|
489
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
490
|
+
case "UnauthorizedOperation": return [3, 18];
|
|
491
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 18];
|
|
492
|
+
}
|
|
493
|
+
return [3, 20];
|
|
494
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
495
|
+
case 3: throw _d.sent();
|
|
496
|
+
case 4: return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
497
|
+
case 5: throw _d.sent();
|
|
498
|
+
case 6: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
499
|
+
case 7: throw _d.sent();
|
|
500
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
501
|
+
case 9: throw _d.sent();
|
|
502
|
+
case 10: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
503
|
+
case 11: throw _d.sent();
|
|
504
|
+
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
505
|
+
case 13: throw _d.sent();
|
|
506
|
+
case 14: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
507
|
+
case 15: throw _d.sent();
|
|
508
|
+
case 16: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
509
|
+
case 17: throw _d.sent();
|
|
510
|
+
case 18: return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
511
|
+
case 19: throw _d.sent();
|
|
512
|
+
case 20:
|
|
513
|
+
parsedBody = parsedOutput.body;
|
|
514
|
+
throwDefaultError({
|
|
515
|
+
output: output,
|
|
516
|
+
parsedBody: parsedBody,
|
|
517
|
+
exceptionCtor: __BaseException,
|
|
518
|
+
errorCode: errorCode,
|
|
519
|
+
});
|
|
520
|
+
_d.label = 21;
|
|
521
|
+
case 21: return [2];
|
|
522
|
+
}
|
|
523
|
+
});
|
|
524
|
+
}); };
|
|
525
|
+
export var deserializeAws_json1_1DescribeApplicationStateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
526
|
+
var data, contents, response;
|
|
527
|
+
return __generator(this, function (_a) {
|
|
528
|
+
switch (_a.label) {
|
|
529
|
+
case 0:
|
|
530
|
+
if (output.statusCode >= 300) {
|
|
531
|
+
return [2, deserializeAws_json1_1DescribeApplicationStateCommandError(output, context)];
|
|
532
|
+
}
|
|
533
|
+
return [4, parseBody(output.body, context)];
|
|
534
|
+
case 1:
|
|
535
|
+
data = _a.sent();
|
|
536
|
+
contents = {};
|
|
537
|
+
contents = deserializeAws_json1_1DescribeApplicationStateResult(data, context);
|
|
538
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
539
|
+
return [2, Promise.resolve(response)];
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
}); };
|
|
543
|
+
var deserializeAws_json1_1DescribeApplicationStateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
544
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
545
|
+
var _c;
|
|
546
|
+
return __generator(this, function (_d) {
|
|
547
|
+
switch (_d.label) {
|
|
548
|
+
case 0:
|
|
549
|
+
_a = [__assign({}, output)];
|
|
550
|
+
_c = {};
|
|
551
|
+
return [4, parseErrorBody(output.body, context)];
|
|
552
|
+
case 1:
|
|
553
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
554
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
555
|
+
_b = errorCode;
|
|
556
|
+
switch (_b) {
|
|
557
|
+
case "AccessDeniedException": return [3, 2];
|
|
558
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
559
|
+
case "HomeRegionNotSetException": return [3, 4];
|
|
560
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 4];
|
|
561
|
+
case "InternalServerError": return [3, 6];
|
|
562
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 6];
|
|
563
|
+
case "InvalidInputException": return [3, 8];
|
|
564
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 8];
|
|
565
|
+
case "PolicyErrorException": return [3, 10];
|
|
566
|
+
case "com.amazonaws.migrationhub#PolicyErrorException": return [3, 10];
|
|
567
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
568
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
569
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
570
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
571
|
+
case "ThrottlingException": return [3, 16];
|
|
572
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
573
|
+
}
|
|
574
|
+
return [3, 18];
|
|
575
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
576
|
+
case 3: throw _d.sent();
|
|
577
|
+
case 4: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
578
|
+
case 5: throw _d.sent();
|
|
579
|
+
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
580
|
+
case 7: throw _d.sent();
|
|
581
|
+
case 8: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
582
|
+
case 9: throw _d.sent();
|
|
583
|
+
case 10: return [4, deserializeAws_json1_1PolicyErrorExceptionResponse(parsedOutput, context)];
|
|
584
|
+
case 11: throw _d.sent();
|
|
585
|
+
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
586
|
+
case 13: throw _d.sent();
|
|
587
|
+
case 14: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
588
|
+
case 15: throw _d.sent();
|
|
589
|
+
case 16: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
590
|
+
case 17: throw _d.sent();
|
|
591
|
+
case 18:
|
|
592
|
+
parsedBody = parsedOutput.body;
|
|
593
|
+
throwDefaultError({
|
|
594
|
+
output: output,
|
|
595
|
+
parsedBody: parsedBody,
|
|
596
|
+
exceptionCtor: __BaseException,
|
|
597
|
+
errorCode: errorCode,
|
|
598
|
+
});
|
|
599
|
+
_d.label = 19;
|
|
600
|
+
case 19: return [2];
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
}); };
|
|
604
|
+
export var deserializeAws_json1_1DescribeMigrationTaskCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
605
|
+
var data, contents, response;
|
|
606
|
+
return __generator(this, function (_a) {
|
|
607
|
+
switch (_a.label) {
|
|
608
|
+
case 0:
|
|
609
|
+
if (output.statusCode >= 300) {
|
|
610
|
+
return [2, deserializeAws_json1_1DescribeMigrationTaskCommandError(output, context)];
|
|
611
|
+
}
|
|
612
|
+
return [4, parseBody(output.body, context)];
|
|
613
|
+
case 1:
|
|
614
|
+
data = _a.sent();
|
|
615
|
+
contents = {};
|
|
616
|
+
contents = deserializeAws_json1_1DescribeMigrationTaskResult(data, context);
|
|
617
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
618
|
+
return [2, Promise.resolve(response)];
|
|
619
|
+
}
|
|
620
|
+
});
|
|
621
|
+
}); };
|
|
622
|
+
var deserializeAws_json1_1DescribeMigrationTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
623
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
624
|
+
var _c;
|
|
625
|
+
return __generator(this, function (_d) {
|
|
626
|
+
switch (_d.label) {
|
|
627
|
+
case 0:
|
|
628
|
+
_a = [__assign({}, output)];
|
|
629
|
+
_c = {};
|
|
630
|
+
return [4, parseErrorBody(output.body, context)];
|
|
631
|
+
case 1:
|
|
632
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
633
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
634
|
+
_b = errorCode;
|
|
635
|
+
switch (_b) {
|
|
636
|
+
case "AccessDeniedException": return [3, 2];
|
|
637
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
638
|
+
case "HomeRegionNotSetException": return [3, 4];
|
|
639
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 4];
|
|
640
|
+
case "InternalServerError": return [3, 6];
|
|
641
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 6];
|
|
642
|
+
case "InvalidInputException": return [3, 8];
|
|
643
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 8];
|
|
644
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
645
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 10];
|
|
646
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
647
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 12];
|
|
648
|
+
case "ThrottlingException": return [3, 14];
|
|
649
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 14];
|
|
650
|
+
}
|
|
651
|
+
return [3, 16];
|
|
652
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
653
|
+
case 3: throw _d.sent();
|
|
654
|
+
case 4: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
655
|
+
case 5: throw _d.sent();
|
|
656
|
+
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
657
|
+
case 7: throw _d.sent();
|
|
658
|
+
case 8: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
659
|
+
case 9: throw _d.sent();
|
|
660
|
+
case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
661
|
+
case 11: throw _d.sent();
|
|
662
|
+
case 12: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
663
|
+
case 13: throw _d.sent();
|
|
664
|
+
case 14: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
665
|
+
case 15: throw _d.sent();
|
|
666
|
+
case 16:
|
|
667
|
+
parsedBody = parsedOutput.body;
|
|
668
|
+
throwDefaultError({
|
|
669
|
+
output: output,
|
|
670
|
+
parsedBody: parsedBody,
|
|
671
|
+
exceptionCtor: __BaseException,
|
|
672
|
+
errorCode: errorCode,
|
|
673
|
+
});
|
|
674
|
+
_d.label = 17;
|
|
675
|
+
case 17: return [2];
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
}); };
|
|
679
|
+
export var deserializeAws_json1_1DisassociateCreatedArtifactCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
680
|
+
var data, contents, response;
|
|
681
|
+
return __generator(this, function (_a) {
|
|
682
|
+
switch (_a.label) {
|
|
683
|
+
case 0:
|
|
684
|
+
if (output.statusCode >= 300) {
|
|
685
|
+
return [2, deserializeAws_json1_1DisassociateCreatedArtifactCommandError(output, context)];
|
|
686
|
+
}
|
|
687
|
+
return [4, parseBody(output.body, context)];
|
|
688
|
+
case 1:
|
|
689
|
+
data = _a.sent();
|
|
690
|
+
contents = {};
|
|
691
|
+
contents = deserializeAws_json1_1DisassociateCreatedArtifactResult(data, context);
|
|
692
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
693
|
+
return [2, Promise.resolve(response)];
|
|
694
|
+
}
|
|
695
|
+
});
|
|
696
|
+
}); };
|
|
697
|
+
var deserializeAws_json1_1DisassociateCreatedArtifactCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
698
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
699
|
+
var _c;
|
|
700
|
+
return __generator(this, function (_d) {
|
|
701
|
+
switch (_d.label) {
|
|
702
|
+
case 0:
|
|
703
|
+
_a = [__assign({}, output)];
|
|
704
|
+
_c = {};
|
|
705
|
+
return [4, parseErrorBody(output.body, context)];
|
|
706
|
+
case 1:
|
|
707
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
708
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
|
+
_b = errorCode;
|
|
710
|
+
switch (_b) {
|
|
711
|
+
case "AccessDeniedException": return [3, 2];
|
|
712
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
713
|
+
case "DryRunOperation": return [3, 4];
|
|
714
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
715
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
716
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
717
|
+
case "InternalServerError": return [3, 8];
|
|
718
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
719
|
+
case "InvalidInputException": return [3, 10];
|
|
720
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
721
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
722
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
723
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
724
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
725
|
+
case "ThrottlingException": return [3, 16];
|
|
726
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
727
|
+
case "UnauthorizedOperation": return [3, 18];
|
|
728
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 18];
|
|
729
|
+
}
|
|
730
|
+
return [3, 20];
|
|
731
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
732
|
+
case 3: throw _d.sent();
|
|
733
|
+
case 4: return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
734
|
+
case 5: throw _d.sent();
|
|
735
|
+
case 6: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
736
|
+
case 7: throw _d.sent();
|
|
737
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
738
|
+
case 9: throw _d.sent();
|
|
739
|
+
case 10: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
740
|
+
case 11: throw _d.sent();
|
|
741
|
+
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
742
|
+
case 13: throw _d.sent();
|
|
743
|
+
case 14: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
744
|
+
case 15: throw _d.sent();
|
|
745
|
+
case 16: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
746
|
+
case 17: throw _d.sent();
|
|
747
|
+
case 18: return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
748
|
+
case 19: throw _d.sent();
|
|
749
|
+
case 20:
|
|
750
|
+
parsedBody = parsedOutput.body;
|
|
751
|
+
throwDefaultError({
|
|
752
|
+
output: output,
|
|
753
|
+
parsedBody: parsedBody,
|
|
754
|
+
exceptionCtor: __BaseException,
|
|
755
|
+
errorCode: errorCode,
|
|
756
|
+
});
|
|
757
|
+
_d.label = 21;
|
|
758
|
+
case 21: return [2];
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
}); };
|
|
762
|
+
export var deserializeAws_json1_1DisassociateDiscoveredResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
763
|
+
var data, contents, response;
|
|
764
|
+
return __generator(this, function (_a) {
|
|
765
|
+
switch (_a.label) {
|
|
766
|
+
case 0:
|
|
767
|
+
if (output.statusCode >= 300) {
|
|
768
|
+
return [2, deserializeAws_json1_1DisassociateDiscoveredResourceCommandError(output, context)];
|
|
769
|
+
}
|
|
770
|
+
return [4, parseBody(output.body, context)];
|
|
771
|
+
case 1:
|
|
772
|
+
data = _a.sent();
|
|
773
|
+
contents = {};
|
|
774
|
+
contents = deserializeAws_json1_1DisassociateDiscoveredResourceResult(data, context);
|
|
775
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
776
|
+
return [2, Promise.resolve(response)];
|
|
777
|
+
}
|
|
778
|
+
});
|
|
779
|
+
}); };
|
|
780
|
+
var deserializeAws_json1_1DisassociateDiscoveredResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
781
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
782
|
+
var _c;
|
|
783
|
+
return __generator(this, function (_d) {
|
|
784
|
+
switch (_d.label) {
|
|
785
|
+
case 0:
|
|
786
|
+
_a = [__assign({}, output)];
|
|
787
|
+
_c = {};
|
|
788
|
+
return [4, parseErrorBody(output.body, context)];
|
|
789
|
+
case 1:
|
|
790
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
791
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
792
|
+
_b = errorCode;
|
|
793
|
+
switch (_b) {
|
|
794
|
+
case "AccessDeniedException": return [3, 2];
|
|
795
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
796
|
+
case "DryRunOperation": return [3, 4];
|
|
797
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
798
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
799
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
800
|
+
case "InternalServerError": return [3, 8];
|
|
801
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
802
|
+
case "InvalidInputException": return [3, 10];
|
|
803
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
804
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
805
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
806
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
807
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
808
|
+
case "ThrottlingException": return [3, 16];
|
|
809
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
810
|
+
case "UnauthorizedOperation": return [3, 18];
|
|
811
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 18];
|
|
812
|
+
}
|
|
813
|
+
return [3, 20];
|
|
814
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
815
|
+
case 3: throw _d.sent();
|
|
816
|
+
case 4: return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
817
|
+
case 5: throw _d.sent();
|
|
818
|
+
case 6: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
819
|
+
case 7: throw _d.sent();
|
|
820
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
821
|
+
case 9: throw _d.sent();
|
|
822
|
+
case 10: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
823
|
+
case 11: throw _d.sent();
|
|
824
|
+
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
825
|
+
case 13: throw _d.sent();
|
|
826
|
+
case 14: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
827
|
+
case 15: throw _d.sent();
|
|
828
|
+
case 16: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
829
|
+
case 17: throw _d.sent();
|
|
830
|
+
case 18: return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
831
|
+
case 19: throw _d.sent();
|
|
832
|
+
case 20:
|
|
833
|
+
parsedBody = parsedOutput.body;
|
|
834
|
+
throwDefaultError({
|
|
835
|
+
output: output,
|
|
836
|
+
parsedBody: parsedBody,
|
|
837
|
+
exceptionCtor: __BaseException,
|
|
838
|
+
errorCode: errorCode,
|
|
839
|
+
});
|
|
840
|
+
_d.label = 21;
|
|
841
|
+
case 21: return [2];
|
|
842
|
+
}
|
|
843
|
+
});
|
|
844
|
+
}); };
|
|
845
|
+
export var deserializeAws_json1_1ImportMigrationTaskCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
846
|
+
var data, contents, response;
|
|
847
|
+
return __generator(this, function (_a) {
|
|
848
|
+
switch (_a.label) {
|
|
849
|
+
case 0:
|
|
850
|
+
if (output.statusCode >= 300) {
|
|
851
|
+
return [2, deserializeAws_json1_1ImportMigrationTaskCommandError(output, context)];
|
|
852
|
+
}
|
|
853
|
+
return [4, parseBody(output.body, context)];
|
|
854
|
+
case 1:
|
|
855
|
+
data = _a.sent();
|
|
856
|
+
contents = {};
|
|
857
|
+
contents = deserializeAws_json1_1ImportMigrationTaskResult(data, context);
|
|
858
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
859
|
+
return [2, Promise.resolve(response)];
|
|
860
|
+
}
|
|
861
|
+
});
|
|
862
|
+
}); };
|
|
863
|
+
var deserializeAws_json1_1ImportMigrationTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
864
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
865
|
+
var _c;
|
|
866
|
+
return __generator(this, function (_d) {
|
|
867
|
+
switch (_d.label) {
|
|
868
|
+
case 0:
|
|
869
|
+
_a = [__assign({}, output)];
|
|
870
|
+
_c = {};
|
|
871
|
+
return [4, parseErrorBody(output.body, context)];
|
|
872
|
+
case 1:
|
|
873
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
874
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
875
|
+
_b = errorCode;
|
|
876
|
+
switch (_b) {
|
|
877
|
+
case "AccessDeniedException": return [3, 2];
|
|
878
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
879
|
+
case "DryRunOperation": return [3, 4];
|
|
880
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
881
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
882
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
883
|
+
case "InternalServerError": return [3, 8];
|
|
884
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
885
|
+
case "InvalidInputException": return [3, 10];
|
|
886
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
887
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
888
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
889
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
890
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
891
|
+
case "ThrottlingException": return [3, 16];
|
|
892
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
893
|
+
case "UnauthorizedOperation": return [3, 18];
|
|
894
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 18];
|
|
895
|
+
}
|
|
896
|
+
return [3, 20];
|
|
897
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
898
|
+
case 3: throw _d.sent();
|
|
899
|
+
case 4: return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
900
|
+
case 5: throw _d.sent();
|
|
901
|
+
case 6: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
902
|
+
case 7: throw _d.sent();
|
|
903
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
904
|
+
case 9: throw _d.sent();
|
|
905
|
+
case 10: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
906
|
+
case 11: throw _d.sent();
|
|
907
|
+
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
908
|
+
case 13: throw _d.sent();
|
|
909
|
+
case 14: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
910
|
+
case 15: throw _d.sent();
|
|
911
|
+
case 16: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
912
|
+
case 17: throw _d.sent();
|
|
913
|
+
case 18: return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
914
|
+
case 19: throw _d.sent();
|
|
915
|
+
case 20:
|
|
916
|
+
parsedBody = parsedOutput.body;
|
|
917
|
+
throwDefaultError({
|
|
918
|
+
output: output,
|
|
919
|
+
parsedBody: parsedBody,
|
|
920
|
+
exceptionCtor: __BaseException,
|
|
921
|
+
errorCode: errorCode,
|
|
922
|
+
});
|
|
923
|
+
_d.label = 21;
|
|
924
|
+
case 21: return [2];
|
|
925
|
+
}
|
|
926
|
+
});
|
|
927
|
+
}); };
|
|
928
|
+
export var deserializeAws_json1_1ListApplicationStatesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
929
|
+
var data, contents, response;
|
|
930
|
+
return __generator(this, function (_a) {
|
|
931
|
+
switch (_a.label) {
|
|
932
|
+
case 0:
|
|
933
|
+
if (output.statusCode >= 300) {
|
|
934
|
+
return [2, deserializeAws_json1_1ListApplicationStatesCommandError(output, context)];
|
|
935
|
+
}
|
|
936
|
+
return [4, parseBody(output.body, context)];
|
|
937
|
+
case 1:
|
|
938
|
+
data = _a.sent();
|
|
939
|
+
contents = {};
|
|
940
|
+
contents = deserializeAws_json1_1ListApplicationStatesResult(data, context);
|
|
941
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
942
|
+
return [2, Promise.resolve(response)];
|
|
943
|
+
}
|
|
944
|
+
});
|
|
945
|
+
}); };
|
|
946
|
+
var deserializeAws_json1_1ListApplicationStatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
947
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
948
|
+
var _c;
|
|
949
|
+
return __generator(this, function (_d) {
|
|
950
|
+
switch (_d.label) {
|
|
951
|
+
case 0:
|
|
952
|
+
_a = [__assign({}, output)];
|
|
953
|
+
_c = {};
|
|
954
|
+
return [4, parseErrorBody(output.body, context)];
|
|
955
|
+
case 1:
|
|
956
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
957
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
958
|
+
_b = errorCode;
|
|
959
|
+
switch (_b) {
|
|
960
|
+
case "AccessDeniedException": return [3, 2];
|
|
961
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
962
|
+
case "HomeRegionNotSetException": return [3, 4];
|
|
963
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 4];
|
|
964
|
+
case "InternalServerError": return [3, 6];
|
|
965
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 6];
|
|
966
|
+
case "InvalidInputException": return [3, 8];
|
|
967
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 8];
|
|
968
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
969
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 10];
|
|
970
|
+
case "ThrottlingException": return [3, 12];
|
|
971
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 12];
|
|
972
|
+
}
|
|
973
|
+
return [3, 14];
|
|
974
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
975
|
+
case 3: throw _d.sent();
|
|
976
|
+
case 4: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
977
|
+
case 5: throw _d.sent();
|
|
978
|
+
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
979
|
+
case 7: throw _d.sent();
|
|
980
|
+
case 8: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
981
|
+
case 9: throw _d.sent();
|
|
982
|
+
case 10: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
983
|
+
case 11: throw _d.sent();
|
|
984
|
+
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
985
|
+
case 13: throw _d.sent();
|
|
986
|
+
case 14:
|
|
987
|
+
parsedBody = parsedOutput.body;
|
|
988
|
+
throwDefaultError({
|
|
989
|
+
output: output,
|
|
990
|
+
parsedBody: parsedBody,
|
|
991
|
+
exceptionCtor: __BaseException,
|
|
992
|
+
errorCode: errorCode,
|
|
993
|
+
});
|
|
994
|
+
_d.label = 15;
|
|
995
|
+
case 15: return [2];
|
|
996
|
+
}
|
|
997
|
+
});
|
|
998
|
+
}); };
|
|
999
|
+
export var deserializeAws_json1_1ListCreatedArtifactsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1000
|
+
var data, contents, response;
|
|
1001
|
+
return __generator(this, function (_a) {
|
|
1002
|
+
switch (_a.label) {
|
|
1003
|
+
case 0:
|
|
1004
|
+
if (output.statusCode >= 300) {
|
|
1005
|
+
return [2, deserializeAws_json1_1ListCreatedArtifactsCommandError(output, context)];
|
|
1006
|
+
}
|
|
1007
|
+
return [4, parseBody(output.body, context)];
|
|
1008
|
+
case 1:
|
|
1009
|
+
data = _a.sent();
|
|
1010
|
+
contents = {};
|
|
1011
|
+
contents = deserializeAws_json1_1ListCreatedArtifactsResult(data, context);
|
|
1012
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1013
|
+
return [2, Promise.resolve(response)];
|
|
1014
|
+
}
|
|
1015
|
+
});
|
|
1016
|
+
}); };
|
|
1017
|
+
var deserializeAws_json1_1ListCreatedArtifactsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1018
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1019
|
+
var _c;
|
|
1020
|
+
return __generator(this, function (_d) {
|
|
1021
|
+
switch (_d.label) {
|
|
1022
|
+
case 0:
|
|
1023
|
+
_a = [__assign({}, output)];
|
|
1024
|
+
_c = {};
|
|
1025
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1026
|
+
case 1:
|
|
1027
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1028
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1029
|
+
_b = errorCode;
|
|
1030
|
+
switch (_b) {
|
|
1031
|
+
case "AccessDeniedException": return [3, 2];
|
|
1032
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
1033
|
+
case "HomeRegionNotSetException": return [3, 4];
|
|
1034
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 4];
|
|
1035
|
+
case "InternalServerError": return [3, 6];
|
|
1036
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 6];
|
|
1037
|
+
case "InvalidInputException": return [3, 8];
|
|
1038
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 8];
|
|
1039
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1040
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 10];
|
|
1041
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1042
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 12];
|
|
1043
|
+
case "ThrottlingException": return [3, 14];
|
|
1044
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 14];
|
|
1045
|
+
}
|
|
1046
|
+
return [3, 16];
|
|
1047
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1048
|
+
case 3: throw _d.sent();
|
|
1049
|
+
case 4: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1050
|
+
case 5: throw _d.sent();
|
|
1051
|
+
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1052
|
+
case 7: throw _d.sent();
|
|
1053
|
+
case 8: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1054
|
+
case 9: throw _d.sent();
|
|
1055
|
+
case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1056
|
+
case 11: throw _d.sent();
|
|
1057
|
+
case 12: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1058
|
+
case 13: throw _d.sent();
|
|
1059
|
+
case 14: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1060
|
+
case 15: throw _d.sent();
|
|
1061
|
+
case 16:
|
|
1062
|
+
parsedBody = parsedOutput.body;
|
|
1063
|
+
throwDefaultError({
|
|
1064
|
+
output: output,
|
|
1065
|
+
parsedBody: parsedBody,
|
|
1066
|
+
exceptionCtor: __BaseException,
|
|
1067
|
+
errorCode: errorCode,
|
|
1068
|
+
});
|
|
1069
|
+
_d.label = 17;
|
|
1070
|
+
case 17: return [2];
|
|
1071
|
+
}
|
|
1072
|
+
});
|
|
1073
|
+
}); };
|
|
1074
|
+
export var deserializeAws_json1_1ListDiscoveredResourcesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1075
|
+
var data, contents, response;
|
|
1076
|
+
return __generator(this, function (_a) {
|
|
1077
|
+
switch (_a.label) {
|
|
1078
|
+
case 0:
|
|
1079
|
+
if (output.statusCode >= 300) {
|
|
1080
|
+
return [2, deserializeAws_json1_1ListDiscoveredResourcesCommandError(output, context)];
|
|
1081
|
+
}
|
|
1082
|
+
return [4, parseBody(output.body, context)];
|
|
1083
|
+
case 1:
|
|
1084
|
+
data = _a.sent();
|
|
1085
|
+
contents = {};
|
|
1086
|
+
contents = deserializeAws_json1_1ListDiscoveredResourcesResult(data, context);
|
|
1087
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1088
|
+
return [2, Promise.resolve(response)];
|
|
1089
|
+
}
|
|
1090
|
+
});
|
|
1091
|
+
}); };
|
|
1092
|
+
var deserializeAws_json1_1ListDiscoveredResourcesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1093
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1094
|
+
var _c;
|
|
1095
|
+
return __generator(this, function (_d) {
|
|
1096
|
+
switch (_d.label) {
|
|
1097
|
+
case 0:
|
|
1098
|
+
_a = [__assign({}, output)];
|
|
1099
|
+
_c = {};
|
|
1100
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1101
|
+
case 1:
|
|
1102
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1103
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1104
|
+
_b = errorCode;
|
|
1105
|
+
switch (_b) {
|
|
1106
|
+
case "AccessDeniedException": return [3, 2];
|
|
1107
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
1108
|
+
case "HomeRegionNotSetException": return [3, 4];
|
|
1109
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 4];
|
|
1110
|
+
case "InternalServerError": return [3, 6];
|
|
1111
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 6];
|
|
1112
|
+
case "InvalidInputException": return [3, 8];
|
|
1113
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 8];
|
|
1114
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
1115
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 10];
|
|
1116
|
+
case "ServiceUnavailableException": return [3, 12];
|
|
1117
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 12];
|
|
1118
|
+
case "ThrottlingException": return [3, 14];
|
|
1119
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 14];
|
|
1120
|
+
}
|
|
1121
|
+
return [3, 16];
|
|
1122
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1123
|
+
case 3: throw _d.sent();
|
|
1124
|
+
case 4: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1125
|
+
case 5: throw _d.sent();
|
|
1126
|
+
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1127
|
+
case 7: throw _d.sent();
|
|
1128
|
+
case 8: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1129
|
+
case 9: throw _d.sent();
|
|
1130
|
+
case 10: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1131
|
+
case 11: throw _d.sent();
|
|
1132
|
+
case 12: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1133
|
+
case 13: throw _d.sent();
|
|
1134
|
+
case 14: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1135
|
+
case 15: throw _d.sent();
|
|
1136
|
+
case 16:
|
|
1137
|
+
parsedBody = parsedOutput.body;
|
|
1138
|
+
throwDefaultError({
|
|
1139
|
+
output: output,
|
|
1140
|
+
parsedBody: parsedBody,
|
|
1141
|
+
exceptionCtor: __BaseException,
|
|
1142
|
+
errorCode: errorCode,
|
|
1143
|
+
});
|
|
1144
|
+
_d.label = 17;
|
|
1145
|
+
case 17: return [2];
|
|
1146
|
+
}
|
|
1147
|
+
});
|
|
1148
|
+
}); };
|
|
1149
|
+
export var deserializeAws_json1_1ListMigrationTasksCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1150
|
+
var data, contents, response;
|
|
1151
|
+
return __generator(this, function (_a) {
|
|
1152
|
+
switch (_a.label) {
|
|
1153
|
+
case 0:
|
|
1154
|
+
if (output.statusCode >= 300) {
|
|
1155
|
+
return [2, deserializeAws_json1_1ListMigrationTasksCommandError(output, context)];
|
|
1156
|
+
}
|
|
1157
|
+
return [4, parseBody(output.body, context)];
|
|
1158
|
+
case 1:
|
|
1159
|
+
data = _a.sent();
|
|
1160
|
+
contents = {};
|
|
1161
|
+
contents = deserializeAws_json1_1ListMigrationTasksResult(data, context);
|
|
1162
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1163
|
+
return [2, Promise.resolve(response)];
|
|
1164
|
+
}
|
|
1165
|
+
});
|
|
1166
|
+
}); };
|
|
1167
|
+
var deserializeAws_json1_1ListMigrationTasksCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1168
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1169
|
+
var _c;
|
|
1170
|
+
return __generator(this, function (_d) {
|
|
1171
|
+
switch (_d.label) {
|
|
1172
|
+
case 0:
|
|
1173
|
+
_a = [__assign({}, output)];
|
|
1174
|
+
_c = {};
|
|
1175
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1176
|
+
case 1:
|
|
1177
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1178
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1179
|
+
_b = errorCode;
|
|
1180
|
+
switch (_b) {
|
|
1181
|
+
case "AccessDeniedException": return [3, 2];
|
|
1182
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
1183
|
+
case "HomeRegionNotSetException": return [3, 4];
|
|
1184
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 4];
|
|
1185
|
+
case "InternalServerError": return [3, 6];
|
|
1186
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 6];
|
|
1187
|
+
case "InvalidInputException": return [3, 8];
|
|
1188
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 8];
|
|
1189
|
+
case "PolicyErrorException": return [3, 10];
|
|
1190
|
+
case "com.amazonaws.migrationhub#PolicyErrorException": return [3, 10];
|
|
1191
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1192
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
1193
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
1194
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
1195
|
+
case "ThrottlingException": return [3, 16];
|
|
1196
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
1197
|
+
}
|
|
1198
|
+
return [3, 18];
|
|
1199
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1200
|
+
case 3: throw _d.sent();
|
|
1201
|
+
case 4: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1202
|
+
case 5: throw _d.sent();
|
|
1203
|
+
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1204
|
+
case 7: throw _d.sent();
|
|
1205
|
+
case 8: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1206
|
+
case 9: throw _d.sent();
|
|
1207
|
+
case 10: return [4, deserializeAws_json1_1PolicyErrorExceptionResponse(parsedOutput, context)];
|
|
1208
|
+
case 11: throw _d.sent();
|
|
1209
|
+
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1210
|
+
case 13: throw _d.sent();
|
|
1211
|
+
case 14: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1212
|
+
case 15: throw _d.sent();
|
|
1213
|
+
case 16: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1214
|
+
case 17: throw _d.sent();
|
|
1215
|
+
case 18:
|
|
1216
|
+
parsedBody = parsedOutput.body;
|
|
1217
|
+
throwDefaultError({
|
|
1218
|
+
output: output,
|
|
1219
|
+
parsedBody: parsedBody,
|
|
1220
|
+
exceptionCtor: __BaseException,
|
|
1221
|
+
errorCode: errorCode,
|
|
1222
|
+
});
|
|
1223
|
+
_d.label = 19;
|
|
1224
|
+
case 19: return [2];
|
|
1225
|
+
}
|
|
1226
|
+
});
|
|
1227
|
+
}); };
|
|
1228
|
+
export var deserializeAws_json1_1ListProgressUpdateStreamsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1229
|
+
var data, contents, response;
|
|
1230
|
+
return __generator(this, function (_a) {
|
|
1231
|
+
switch (_a.label) {
|
|
1232
|
+
case 0:
|
|
1233
|
+
if (output.statusCode >= 300) {
|
|
1234
|
+
return [2, deserializeAws_json1_1ListProgressUpdateStreamsCommandError(output, context)];
|
|
1235
|
+
}
|
|
1236
|
+
return [4, parseBody(output.body, context)];
|
|
1237
|
+
case 1:
|
|
1238
|
+
data = _a.sent();
|
|
1239
|
+
contents = {};
|
|
1240
|
+
contents = deserializeAws_json1_1ListProgressUpdateStreamsResult(data, context);
|
|
1241
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1242
|
+
return [2, Promise.resolve(response)];
|
|
1243
|
+
}
|
|
1244
|
+
});
|
|
1245
|
+
}); };
|
|
1246
|
+
var deserializeAws_json1_1ListProgressUpdateStreamsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1247
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1248
|
+
var _c;
|
|
1249
|
+
return __generator(this, function (_d) {
|
|
1250
|
+
switch (_d.label) {
|
|
1251
|
+
case 0:
|
|
1252
|
+
_a = [__assign({}, output)];
|
|
1253
|
+
_c = {};
|
|
1254
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1255
|
+
case 1:
|
|
1256
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1257
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1258
|
+
_b = errorCode;
|
|
1259
|
+
switch (_b) {
|
|
1260
|
+
case "AccessDeniedException": return [3, 2];
|
|
1261
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
1262
|
+
case "HomeRegionNotSetException": return [3, 4];
|
|
1263
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 4];
|
|
1264
|
+
case "InternalServerError": return [3, 6];
|
|
1265
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 6];
|
|
1266
|
+
case "InvalidInputException": return [3, 8];
|
|
1267
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 8];
|
|
1268
|
+
case "ServiceUnavailableException": return [3, 10];
|
|
1269
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 10];
|
|
1270
|
+
case "ThrottlingException": return [3, 12];
|
|
1271
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 12];
|
|
1272
|
+
}
|
|
1273
|
+
return [3, 14];
|
|
1274
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1275
|
+
case 3: throw _d.sent();
|
|
1276
|
+
case 4: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1277
|
+
case 5: throw _d.sent();
|
|
1278
|
+
case 6: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1279
|
+
case 7: throw _d.sent();
|
|
1280
|
+
case 8: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1281
|
+
case 9: throw _d.sent();
|
|
1282
|
+
case 10: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1283
|
+
case 11: throw _d.sent();
|
|
1284
|
+
case 12: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1285
|
+
case 13: throw _d.sent();
|
|
1286
|
+
case 14:
|
|
1287
|
+
parsedBody = parsedOutput.body;
|
|
1288
|
+
throwDefaultError({
|
|
1289
|
+
output: output,
|
|
1290
|
+
parsedBody: parsedBody,
|
|
1291
|
+
exceptionCtor: __BaseException,
|
|
1292
|
+
errorCode: errorCode,
|
|
1293
|
+
});
|
|
1294
|
+
_d.label = 15;
|
|
1295
|
+
case 15: return [2];
|
|
1296
|
+
}
|
|
1297
|
+
});
|
|
1298
|
+
}); };
|
|
1299
|
+
export var deserializeAws_json1_1NotifyApplicationStateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1300
|
+
var data, contents, response;
|
|
1301
|
+
return __generator(this, function (_a) {
|
|
1302
|
+
switch (_a.label) {
|
|
1303
|
+
case 0:
|
|
1304
|
+
if (output.statusCode >= 300) {
|
|
1305
|
+
return [2, deserializeAws_json1_1NotifyApplicationStateCommandError(output, context)];
|
|
1306
|
+
}
|
|
1307
|
+
return [4, parseBody(output.body, context)];
|
|
1308
|
+
case 1:
|
|
1309
|
+
data = _a.sent();
|
|
1310
|
+
contents = {};
|
|
1311
|
+
contents = deserializeAws_json1_1NotifyApplicationStateResult(data, context);
|
|
1312
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1313
|
+
return [2, Promise.resolve(response)];
|
|
1314
|
+
}
|
|
1315
|
+
});
|
|
1316
|
+
}); };
|
|
1317
|
+
var deserializeAws_json1_1NotifyApplicationStateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1318
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1319
|
+
var _c;
|
|
1320
|
+
return __generator(this, function (_d) {
|
|
1321
|
+
switch (_d.label) {
|
|
1322
|
+
case 0:
|
|
1323
|
+
_a = [__assign({}, output)];
|
|
1324
|
+
_c = {};
|
|
1325
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1326
|
+
case 1:
|
|
1327
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1328
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1329
|
+
_b = errorCode;
|
|
1330
|
+
switch (_b) {
|
|
1331
|
+
case "AccessDeniedException": return [3, 2];
|
|
1332
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
1333
|
+
case "DryRunOperation": return [3, 4];
|
|
1334
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
1335
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
1336
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
1337
|
+
case "InternalServerError": return [3, 8];
|
|
1338
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
1339
|
+
case "InvalidInputException": return [3, 10];
|
|
1340
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
1341
|
+
case "PolicyErrorException": return [3, 12];
|
|
1342
|
+
case "com.amazonaws.migrationhub#PolicyErrorException": return [3, 12];
|
|
1343
|
+
case "ResourceNotFoundException": return [3, 14];
|
|
1344
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 14];
|
|
1345
|
+
case "ServiceUnavailableException": return [3, 16];
|
|
1346
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 16];
|
|
1347
|
+
case "ThrottlingException": return [3, 18];
|
|
1348
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 18];
|
|
1349
|
+
case "UnauthorizedOperation": return [3, 20];
|
|
1350
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 20];
|
|
1351
|
+
}
|
|
1352
|
+
return [3, 22];
|
|
1353
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1354
|
+
case 3: throw _d.sent();
|
|
1355
|
+
case 4: return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
1356
|
+
case 5: throw _d.sent();
|
|
1357
|
+
case 6: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1358
|
+
case 7: throw _d.sent();
|
|
1359
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1360
|
+
case 9: throw _d.sent();
|
|
1361
|
+
case 10: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1362
|
+
case 11: throw _d.sent();
|
|
1363
|
+
case 12: return [4, deserializeAws_json1_1PolicyErrorExceptionResponse(parsedOutput, context)];
|
|
1364
|
+
case 13: throw _d.sent();
|
|
1365
|
+
case 14: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1366
|
+
case 15: throw _d.sent();
|
|
1367
|
+
case 16: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1368
|
+
case 17: throw _d.sent();
|
|
1369
|
+
case 18: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1370
|
+
case 19: throw _d.sent();
|
|
1371
|
+
case 20: return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
1372
|
+
case 21: throw _d.sent();
|
|
1373
|
+
case 22:
|
|
1374
|
+
parsedBody = parsedOutput.body;
|
|
1375
|
+
throwDefaultError({
|
|
1376
|
+
output: output,
|
|
1377
|
+
parsedBody: parsedBody,
|
|
1378
|
+
exceptionCtor: __BaseException,
|
|
1379
|
+
errorCode: errorCode,
|
|
1380
|
+
});
|
|
1381
|
+
_d.label = 23;
|
|
1382
|
+
case 23: return [2];
|
|
1383
|
+
}
|
|
1384
|
+
});
|
|
1385
|
+
}); };
|
|
1386
|
+
export var deserializeAws_json1_1NotifyMigrationTaskStateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1387
|
+
var data, contents, response;
|
|
1388
|
+
return __generator(this, function (_a) {
|
|
1389
|
+
switch (_a.label) {
|
|
1390
|
+
case 0:
|
|
1391
|
+
if (output.statusCode >= 300) {
|
|
1392
|
+
return [2, deserializeAws_json1_1NotifyMigrationTaskStateCommandError(output, context)];
|
|
1393
|
+
}
|
|
1394
|
+
return [4, parseBody(output.body, context)];
|
|
1395
|
+
case 1:
|
|
1396
|
+
data = _a.sent();
|
|
1397
|
+
contents = {};
|
|
1398
|
+
contents = deserializeAws_json1_1NotifyMigrationTaskStateResult(data, context);
|
|
1399
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1400
|
+
return [2, Promise.resolve(response)];
|
|
1401
|
+
}
|
|
1402
|
+
});
|
|
1403
|
+
}); };
|
|
1404
|
+
var deserializeAws_json1_1NotifyMigrationTaskStateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1405
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1406
|
+
var _c;
|
|
1407
|
+
return __generator(this, function (_d) {
|
|
1408
|
+
switch (_d.label) {
|
|
1409
|
+
case 0:
|
|
1410
|
+
_a = [__assign({}, output)];
|
|
1411
|
+
_c = {};
|
|
1412
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1413
|
+
case 1:
|
|
1414
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1415
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1416
|
+
_b = errorCode;
|
|
1417
|
+
switch (_b) {
|
|
1418
|
+
case "AccessDeniedException": return [3, 2];
|
|
1419
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
1420
|
+
case "DryRunOperation": return [3, 4];
|
|
1421
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
1422
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
1423
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
1424
|
+
case "InternalServerError": return [3, 8];
|
|
1425
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
1426
|
+
case "InvalidInputException": return [3, 10];
|
|
1427
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
1428
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1429
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
1430
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
1431
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
1432
|
+
case "ThrottlingException": return [3, 16];
|
|
1433
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
1434
|
+
case "UnauthorizedOperation": return [3, 18];
|
|
1435
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 18];
|
|
1436
|
+
}
|
|
1437
|
+
return [3, 20];
|
|
1438
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1439
|
+
case 3: throw _d.sent();
|
|
1440
|
+
case 4: return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
1441
|
+
case 5: throw _d.sent();
|
|
1442
|
+
case 6: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1443
|
+
case 7: throw _d.sent();
|
|
1444
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1445
|
+
case 9: throw _d.sent();
|
|
1446
|
+
case 10: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1447
|
+
case 11: throw _d.sent();
|
|
1448
|
+
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1449
|
+
case 13: throw _d.sent();
|
|
1450
|
+
case 14: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1451
|
+
case 15: throw _d.sent();
|
|
1452
|
+
case 16: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1453
|
+
case 17: throw _d.sent();
|
|
1454
|
+
case 18: return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
1455
|
+
case 19: throw _d.sent();
|
|
1456
|
+
case 20:
|
|
1457
|
+
parsedBody = parsedOutput.body;
|
|
1458
|
+
throwDefaultError({
|
|
1459
|
+
output: output,
|
|
1460
|
+
parsedBody: parsedBody,
|
|
1461
|
+
exceptionCtor: __BaseException,
|
|
1462
|
+
errorCode: errorCode,
|
|
1463
|
+
});
|
|
1464
|
+
_d.label = 21;
|
|
1465
|
+
case 21: return [2];
|
|
1466
|
+
}
|
|
1467
|
+
});
|
|
1468
|
+
}); };
|
|
1469
|
+
export var deserializeAws_json1_1PutResourceAttributesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1470
|
+
var data, contents, response;
|
|
1471
|
+
return __generator(this, function (_a) {
|
|
1472
|
+
switch (_a.label) {
|
|
1473
|
+
case 0:
|
|
1474
|
+
if (output.statusCode >= 300) {
|
|
1475
|
+
return [2, deserializeAws_json1_1PutResourceAttributesCommandError(output, context)];
|
|
1476
|
+
}
|
|
1477
|
+
return [4, parseBody(output.body, context)];
|
|
1478
|
+
case 1:
|
|
1479
|
+
data = _a.sent();
|
|
1480
|
+
contents = {};
|
|
1481
|
+
contents = deserializeAws_json1_1PutResourceAttributesResult(data, context);
|
|
1482
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1483
|
+
return [2, Promise.resolve(response)];
|
|
1484
|
+
}
|
|
1485
|
+
});
|
|
1486
|
+
}); };
|
|
1487
|
+
var deserializeAws_json1_1PutResourceAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1488
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1489
|
+
var _c;
|
|
1490
|
+
return __generator(this, function (_d) {
|
|
1491
|
+
switch (_d.label) {
|
|
1492
|
+
case 0:
|
|
1493
|
+
_a = [__assign({}, output)];
|
|
1494
|
+
_c = {};
|
|
1495
|
+
return [4, parseErrorBody(output.body, context)];
|
|
1496
|
+
case 1:
|
|
1497
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1498
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1499
|
+
_b = errorCode;
|
|
1500
|
+
switch (_b) {
|
|
1501
|
+
case "AccessDeniedException": return [3, 2];
|
|
1502
|
+
case "com.amazonaws.migrationhub#AccessDeniedException": return [3, 2];
|
|
1503
|
+
case "DryRunOperation": return [3, 4];
|
|
1504
|
+
case "com.amazonaws.migrationhub#DryRunOperation": return [3, 4];
|
|
1505
|
+
case "HomeRegionNotSetException": return [3, 6];
|
|
1506
|
+
case "com.amazonaws.migrationhub#HomeRegionNotSetException": return [3, 6];
|
|
1507
|
+
case "InternalServerError": return [3, 8];
|
|
1508
|
+
case "com.amazonaws.migrationhub#InternalServerError": return [3, 8];
|
|
1509
|
+
case "InvalidInputException": return [3, 10];
|
|
1510
|
+
case "com.amazonaws.migrationhub#InvalidInputException": return [3, 10];
|
|
1511
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
1512
|
+
case "com.amazonaws.migrationhub#ResourceNotFoundException": return [3, 12];
|
|
1513
|
+
case "ServiceUnavailableException": return [3, 14];
|
|
1514
|
+
case "com.amazonaws.migrationhub#ServiceUnavailableException": return [3, 14];
|
|
1515
|
+
case "ThrottlingException": return [3, 16];
|
|
1516
|
+
case "com.amazonaws.migrationhub#ThrottlingException": return [3, 16];
|
|
1517
|
+
case "UnauthorizedOperation": return [3, 18];
|
|
1518
|
+
case "com.amazonaws.migrationhub#UnauthorizedOperation": return [3, 18];
|
|
1519
|
+
}
|
|
1520
|
+
return [3, 20];
|
|
1521
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1522
|
+
case 3: throw _d.sent();
|
|
1523
|
+
case 4: return [4, deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context)];
|
|
1524
|
+
case 5: throw _d.sent();
|
|
1525
|
+
case 6: return [4, deserializeAws_json1_1HomeRegionNotSetExceptionResponse(parsedOutput, context)];
|
|
1526
|
+
case 7: throw _d.sent();
|
|
1527
|
+
case 8: return [4, deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context)];
|
|
1528
|
+
case 9: throw _d.sent();
|
|
1529
|
+
case 10: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1530
|
+
case 11: throw _d.sent();
|
|
1531
|
+
case 12: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1532
|
+
case 13: throw _d.sent();
|
|
1533
|
+
case 14: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1534
|
+
case 15: throw _d.sent();
|
|
1535
|
+
case 16: return [4, deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1536
|
+
case 17: throw _d.sent();
|
|
1537
|
+
case 18: return [4, deserializeAws_json1_1UnauthorizedOperationResponse(parsedOutput, context)];
|
|
1538
|
+
case 19: throw _d.sent();
|
|
1539
|
+
case 20:
|
|
1540
|
+
parsedBody = parsedOutput.body;
|
|
1541
|
+
throwDefaultError({
|
|
1542
|
+
output: output,
|
|
1543
|
+
parsedBody: parsedBody,
|
|
1544
|
+
exceptionCtor: __BaseException,
|
|
1545
|
+
errorCode: errorCode,
|
|
1546
|
+
});
|
|
1547
|
+
_d.label = 21;
|
|
1548
|
+
case 21: return [2];
|
|
1549
|
+
}
|
|
1550
|
+
});
|
|
1551
|
+
}); };
|
|
1552
|
+
var deserializeAws_json1_1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1553
|
+
var body, deserialized, exception;
|
|
1554
|
+
return __generator(this, function (_a) {
|
|
1555
|
+
body = parsedOutput.body;
|
|
1556
|
+
deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
1557
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1558
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1559
|
+
});
|
|
1560
|
+
}); };
|
|
1561
|
+
var deserializeAws_json1_1DryRunOperationResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1562
|
+
var body, deserialized, exception;
|
|
1563
|
+
return __generator(this, function (_a) {
|
|
1564
|
+
body = parsedOutput.body;
|
|
1565
|
+
deserialized = deserializeAws_json1_1DryRunOperation(body, context);
|
|
1566
|
+
exception = new DryRunOperation(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1567
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1568
|
+
});
|
|
1569
|
+
}); };
|
|
1570
|
+
var deserializeAws_json1_1HomeRegionNotSetExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1571
|
+
var body, deserialized, exception;
|
|
1572
|
+
return __generator(this, function (_a) {
|
|
1573
|
+
body = parsedOutput.body;
|
|
1574
|
+
deserialized = deserializeAws_json1_1HomeRegionNotSetException(body, context);
|
|
1575
|
+
exception = new HomeRegionNotSetException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1576
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1577
|
+
});
|
|
1578
|
+
}); };
|
|
1579
|
+
var deserializeAws_json1_1InternalServerErrorResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1580
|
+
var body, deserialized, exception;
|
|
1581
|
+
return __generator(this, function (_a) {
|
|
1582
|
+
body = parsedOutput.body;
|
|
1583
|
+
deserialized = deserializeAws_json1_1InternalServerError(body, context);
|
|
1584
|
+
exception = new InternalServerError(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1585
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1586
|
+
});
|
|
1587
|
+
}); };
|
|
1588
|
+
var deserializeAws_json1_1InvalidInputExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1589
|
+
var body, deserialized, exception;
|
|
1590
|
+
return __generator(this, function (_a) {
|
|
1591
|
+
body = parsedOutput.body;
|
|
1592
|
+
deserialized = deserializeAws_json1_1InvalidInputException(body, context);
|
|
1593
|
+
exception = new InvalidInputException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1594
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1595
|
+
});
|
|
1596
|
+
}); };
|
|
1597
|
+
var deserializeAws_json1_1PolicyErrorExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1598
|
+
var body, deserialized, exception;
|
|
1599
|
+
return __generator(this, function (_a) {
|
|
1600
|
+
body = parsedOutput.body;
|
|
1601
|
+
deserialized = deserializeAws_json1_1PolicyErrorException(body, context);
|
|
1602
|
+
exception = new PolicyErrorException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1603
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1604
|
+
});
|
|
1605
|
+
}); };
|
|
1606
|
+
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1607
|
+
var body, deserialized, exception;
|
|
1608
|
+
return __generator(this, function (_a) {
|
|
1609
|
+
body = parsedOutput.body;
|
|
1610
|
+
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
1611
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1612
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1613
|
+
});
|
|
1614
|
+
}); };
|
|
1615
|
+
var deserializeAws_json1_1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1616
|
+
var body, deserialized, exception;
|
|
1617
|
+
return __generator(this, function (_a) {
|
|
1618
|
+
body = parsedOutput.body;
|
|
1619
|
+
deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
|
|
1620
|
+
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1621
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1622
|
+
});
|
|
1623
|
+
}); };
|
|
1624
|
+
var deserializeAws_json1_1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1625
|
+
var body, deserialized, exception;
|
|
1626
|
+
return __generator(this, function (_a) {
|
|
1627
|
+
body = parsedOutput.body;
|
|
1628
|
+
deserialized = deserializeAws_json1_1ThrottlingException(body, context);
|
|
1629
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1630
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1631
|
+
});
|
|
1632
|
+
}); };
|
|
1633
|
+
var deserializeAws_json1_1UnauthorizedOperationResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1634
|
+
var body, deserialized, exception;
|
|
1635
|
+
return __generator(this, function (_a) {
|
|
1636
|
+
body = parsedOutput.body;
|
|
1637
|
+
deserialized = deserializeAws_json1_1UnauthorizedOperation(body, context);
|
|
1638
|
+
exception = new UnauthorizedOperation(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1639
|
+
return [2, __decorateServiceException(exception, body)];
|
|
1640
|
+
});
|
|
1641
|
+
}); };
|
|
1642
|
+
var serializeAws_json1_1ApplicationIds = function (input, context) {
|
|
1179
1643
|
return input
|
|
1180
|
-
.filter((e)
|
|
1181
|
-
.map((entry)
|
|
1644
|
+
.filter(function (e) { return e != null; })
|
|
1645
|
+
.map(function (entry) {
|
|
1182
1646
|
return entry;
|
|
1183
1647
|
});
|
|
1184
1648
|
};
|
|
1185
|
-
|
|
1186
|
-
return {
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
}),
|
|
1190
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1191
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1192
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1193
|
-
};
|
|
1649
|
+
var serializeAws_json1_1AssociateCreatedArtifactRequest = function (input, context) {
|
|
1650
|
+
return __assign(__assign(__assign(__assign({}, (input.CreatedArtifact != null && {
|
|
1651
|
+
CreatedArtifact: serializeAws_json1_1CreatedArtifact(input.CreatedArtifact, context),
|
|
1652
|
+
})), (input.DryRun != null && { DryRun: input.DryRun })), (input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName })), (input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }));
|
|
1194
1653
|
};
|
|
1195
|
-
|
|
1196
|
-
return {
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
}),
|
|
1200
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1201
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1202
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1203
|
-
};
|
|
1654
|
+
var serializeAws_json1_1AssociateDiscoveredResourceRequest = function (input, context) {
|
|
1655
|
+
return __assign(__assign(__assign(__assign({}, (input.DiscoveredResource != null && {
|
|
1656
|
+
DiscoveredResource: serializeAws_json1_1DiscoveredResource(input.DiscoveredResource, context),
|
|
1657
|
+
})), (input.DryRun != null && { DryRun: input.DryRun })), (input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName })), (input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }));
|
|
1204
1658
|
};
|
|
1205
|
-
|
|
1206
|
-
return {
|
|
1207
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1208
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1209
|
-
};
|
|
1659
|
+
var serializeAws_json1_1CreatedArtifact = function (input, context) {
|
|
1660
|
+
return __assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name }));
|
|
1210
1661
|
};
|
|
1211
|
-
|
|
1212
|
-
return {
|
|
1213
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1214
|
-
...(input.ProgressUpdateStreamName != null && { ProgressUpdateStreamName: input.ProgressUpdateStreamName }),
|
|
1215
|
-
};
|
|
1662
|
+
var serializeAws_json1_1CreateProgressUpdateStreamRequest = function (input, context) {
|
|
1663
|
+
return __assign(__assign({}, (input.DryRun != null && { DryRun: input.DryRun })), (input.ProgressUpdateStreamName != null && { ProgressUpdateStreamName: input.ProgressUpdateStreamName }));
|
|
1216
1664
|
};
|
|
1217
|
-
|
|
1218
|
-
return {
|
|
1219
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1220
|
-
...(input.ProgressUpdateStreamName != null && { ProgressUpdateStreamName: input.ProgressUpdateStreamName }),
|
|
1221
|
-
};
|
|
1665
|
+
var serializeAws_json1_1DeleteProgressUpdateStreamRequest = function (input, context) {
|
|
1666
|
+
return __assign(__assign({}, (input.DryRun != null && { DryRun: input.DryRun })), (input.ProgressUpdateStreamName != null && { ProgressUpdateStreamName: input.ProgressUpdateStreamName }));
|
|
1222
1667
|
};
|
|
1223
|
-
|
|
1224
|
-
return {
|
|
1225
|
-
...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
|
|
1226
|
-
};
|
|
1668
|
+
var serializeAws_json1_1DescribeApplicationStateRequest = function (input, context) {
|
|
1669
|
+
return __assign({}, (input.ApplicationId != null && { ApplicationId: input.ApplicationId }));
|
|
1227
1670
|
};
|
|
1228
|
-
|
|
1229
|
-
return {
|
|
1230
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1231
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1232
|
-
};
|
|
1671
|
+
var serializeAws_json1_1DescribeMigrationTaskRequest = function (input, context) {
|
|
1672
|
+
return __assign(__assign({}, (input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName })), (input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }));
|
|
1233
1673
|
};
|
|
1234
|
-
|
|
1235
|
-
return {
|
|
1236
|
-
...(input.CreatedArtifactName != null && { CreatedArtifactName: input.CreatedArtifactName }),
|
|
1237
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1238
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1239
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1240
|
-
};
|
|
1674
|
+
var serializeAws_json1_1DisassociateCreatedArtifactRequest = function (input, context) {
|
|
1675
|
+
return __assign(__assign(__assign(__assign({}, (input.CreatedArtifactName != null && { CreatedArtifactName: input.CreatedArtifactName })), (input.DryRun != null && { DryRun: input.DryRun })), (input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName })), (input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }));
|
|
1241
1676
|
};
|
|
1242
|
-
|
|
1243
|
-
return {
|
|
1244
|
-
...(input.ConfigurationId != null && { ConfigurationId: input.ConfigurationId }),
|
|
1245
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1246
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1247
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1248
|
-
};
|
|
1677
|
+
var serializeAws_json1_1DisassociateDiscoveredResourceRequest = function (input, context) {
|
|
1678
|
+
return __assign(__assign(__assign(__assign({}, (input.ConfigurationId != null && { ConfigurationId: input.ConfigurationId })), (input.DryRun != null && { DryRun: input.DryRun })), (input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName })), (input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }));
|
|
1249
1679
|
};
|
|
1250
|
-
|
|
1251
|
-
return {
|
|
1252
|
-
...(input.ConfigurationId != null && { ConfigurationId: input.ConfigurationId }),
|
|
1253
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1254
|
-
};
|
|
1680
|
+
var serializeAws_json1_1DiscoveredResource = function (input, context) {
|
|
1681
|
+
return __assign(__assign({}, (input.ConfigurationId != null && { ConfigurationId: input.ConfigurationId })), (input.Description != null && { Description: input.Description }));
|
|
1255
1682
|
};
|
|
1256
|
-
|
|
1257
|
-
return {
|
|
1258
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1259
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1260
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1261
|
-
};
|
|
1683
|
+
var serializeAws_json1_1ImportMigrationTaskRequest = function (input, context) {
|
|
1684
|
+
return __assign(__assign(__assign({}, (input.DryRun != null && { DryRun: input.DryRun })), (input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName })), (input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }));
|
|
1262
1685
|
};
|
|
1263
|
-
|
|
1264
|
-
return {
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
}),
|
|
1268
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1269
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1270
|
-
};
|
|
1686
|
+
var serializeAws_json1_1ListApplicationStatesRequest = function (input, context) {
|
|
1687
|
+
return __assign(__assign(__assign({}, (input.ApplicationIds != null && {
|
|
1688
|
+
ApplicationIds: serializeAws_json1_1ApplicationIds(input.ApplicationIds, context),
|
|
1689
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1271
1690
|
};
|
|
1272
|
-
|
|
1273
|
-
return {
|
|
1274
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1275
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1276
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1277
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1278
|
-
};
|
|
1691
|
+
var serializeAws_json1_1ListCreatedArtifactsRequest = function (input, context) {
|
|
1692
|
+
return __assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }));
|
|
1279
1693
|
};
|
|
1280
|
-
|
|
1281
|
-
return {
|
|
1282
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1283
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1284
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1285
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1286
|
-
};
|
|
1694
|
+
var serializeAws_json1_1ListDiscoveredResourcesRequest = function (input, context) {
|
|
1695
|
+
return __assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }));
|
|
1287
1696
|
};
|
|
1288
|
-
|
|
1289
|
-
return {
|
|
1290
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1291
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1292
|
-
...(input.ResourceName != null && { ResourceName: input.ResourceName }),
|
|
1293
|
-
};
|
|
1697
|
+
var serializeAws_json1_1ListMigrationTasksRequest = function (input, context) {
|
|
1698
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceName != null && { ResourceName: input.ResourceName }));
|
|
1294
1699
|
};
|
|
1295
|
-
|
|
1296
|
-
return {
|
|
1297
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1298
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1299
|
-
};
|
|
1700
|
+
var serializeAws_json1_1ListProgressUpdateStreamsRequest = function (input, context) {
|
|
1701
|
+
return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1300
1702
|
};
|
|
1301
|
-
|
|
1302
|
-
return {
|
|
1303
|
-
...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
|
|
1304
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1305
|
-
...(input.Status != null && { Status: input.Status }),
|
|
1306
|
-
...(input.UpdateDateTime != null && { UpdateDateTime: Math.round(input.UpdateDateTime.getTime() / 1000) }),
|
|
1307
|
-
};
|
|
1703
|
+
var serializeAws_json1_1NotifyApplicationStateRequest = function (input, context) {
|
|
1704
|
+
return __assign(__assign(__assign(__assign({}, (input.ApplicationId != null && { ApplicationId: input.ApplicationId })), (input.DryRun != null && { DryRun: input.DryRun })), (input.Status != null && { Status: input.Status })), (input.UpdateDateTime != null && { UpdateDateTime: Math.round(input.UpdateDateTime.getTime() / 1000) }));
|
|
1308
1705
|
};
|
|
1309
|
-
|
|
1310
|
-
return {
|
|
1311
|
-
...(input.DryRun != null && { DryRun: input.DryRun }),
|
|
1312
|
-
...(input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName }),
|
|
1313
|
-
...(input.NextUpdateSeconds != null && { NextUpdateSeconds: input.NextUpdateSeconds }),
|
|
1314
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1315
|
-
...(input.Task != null && { Task: serializeAws_json1_1Task(input.Task, context) }),
|
|
1316
|
-
...(input.UpdateDateTime != null && { UpdateDateTime: Math.round(input.UpdateDateTime.getTime() / 1000) }),
|
|
1317
|
-
};
|
|
1706
|
+
var serializeAws_json1_1NotifyMigrationTaskStateRequest = function (input, context) {
|
|
1707
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DryRun != null && { DryRun: input.DryRun })), (input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName })), (input.NextUpdateSeconds != null && { NextUpdateSeconds: input.NextUpdateSeconds })), (input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream })), (input.Task != null && { Task: serializeAws_json1_1Task(input.Task, context) })), (input.UpdateDateTime != null && { UpdateDateTime: Math.round(input.UpdateDateTime.getTime() / 1000) }));
|
|
1318
1708
|
};
|
|
1319
|
-
|
|
1320
|
-
return {
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
...(input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream }),
|
|
1324
|
-
...(input.ResourceAttributeList != null && {
|
|
1325
|
-
ResourceAttributeList: serializeAws_json1_1ResourceAttributeList(input.ResourceAttributeList, context),
|
|
1326
|
-
}),
|
|
1327
|
-
};
|
|
1709
|
+
var serializeAws_json1_1PutResourceAttributesRequest = function (input, context) {
|
|
1710
|
+
return __assign(__assign(__assign(__assign({}, (input.DryRun != null && { DryRun: input.DryRun })), (input.MigrationTaskName != null && { MigrationTaskName: input.MigrationTaskName })), (input.ProgressUpdateStream != null && { ProgressUpdateStream: input.ProgressUpdateStream })), (input.ResourceAttributeList != null && {
|
|
1711
|
+
ResourceAttributeList: serializeAws_json1_1ResourceAttributeList(input.ResourceAttributeList, context),
|
|
1712
|
+
}));
|
|
1328
1713
|
};
|
|
1329
|
-
|
|
1330
|
-
return {
|
|
1331
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1332
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1333
|
-
};
|
|
1714
|
+
var serializeAws_json1_1ResourceAttribute = function (input, context) {
|
|
1715
|
+
return __assign(__assign({}, (input.Type != null && { Type: input.Type })), (input.Value != null && { Value: input.Value }));
|
|
1334
1716
|
};
|
|
1335
|
-
|
|
1717
|
+
var serializeAws_json1_1ResourceAttributeList = function (input, context) {
|
|
1336
1718
|
return input
|
|
1337
|
-
.filter((e)
|
|
1338
|
-
.map((entry)
|
|
1719
|
+
.filter(function (e) { return e != null; })
|
|
1720
|
+
.map(function (entry) {
|
|
1339
1721
|
return serializeAws_json1_1ResourceAttribute(entry, context);
|
|
1340
1722
|
});
|
|
1341
1723
|
};
|
|
1342
|
-
|
|
1343
|
-
return {
|
|
1344
|
-
...(input.ProgressPercent != null && { ProgressPercent: input.ProgressPercent }),
|
|
1345
|
-
...(input.Status != null && { Status: input.Status }),
|
|
1346
|
-
...(input.StatusDetail != null && { StatusDetail: input.StatusDetail }),
|
|
1347
|
-
};
|
|
1724
|
+
var serializeAws_json1_1Task = function (input, context) {
|
|
1725
|
+
return __assign(__assign(__assign({}, (input.ProgressPercent != null && { ProgressPercent: input.ProgressPercent })), (input.Status != null && { Status: input.Status })), (input.StatusDetail != null && { StatusDetail: input.StatusDetail }));
|
|
1348
1726
|
};
|
|
1349
|
-
|
|
1727
|
+
var deserializeAws_json1_1AccessDeniedException = function (output, context) {
|
|
1350
1728
|
return {
|
|
1351
1729
|
Message: __expectString(output.Message),
|
|
1352
1730
|
};
|
|
1353
1731
|
};
|
|
1354
|
-
|
|
1732
|
+
var deserializeAws_json1_1ApplicationState = function (output, context) {
|
|
1355
1733
|
return {
|
|
1356
1734
|
ApplicationId: __expectString(output.ApplicationId),
|
|
1357
1735
|
ApplicationStatus: __expectString(output.ApplicationStatus),
|
|
@@ -1360,10 +1738,10 @@ const deserializeAws_json1_1ApplicationState = (output, context) => {
|
|
|
1360
1738
|
: undefined,
|
|
1361
1739
|
};
|
|
1362
1740
|
};
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
.filter((e)
|
|
1366
|
-
.map((entry)
|
|
1741
|
+
var deserializeAws_json1_1ApplicationStateList = function (output, context) {
|
|
1742
|
+
var retVal = (output || [])
|
|
1743
|
+
.filter(function (e) { return e != null; })
|
|
1744
|
+
.map(function (entry) {
|
|
1367
1745
|
if (entry === null) {
|
|
1368
1746
|
return null;
|
|
1369
1747
|
}
|
|
@@ -1371,22 +1749,22 @@ const deserializeAws_json1_1ApplicationStateList = (output, context) => {
|
|
|
1371
1749
|
});
|
|
1372
1750
|
return retVal;
|
|
1373
1751
|
};
|
|
1374
|
-
|
|
1752
|
+
var deserializeAws_json1_1AssociateCreatedArtifactResult = function (output, context) {
|
|
1375
1753
|
return {};
|
|
1376
1754
|
};
|
|
1377
|
-
|
|
1755
|
+
var deserializeAws_json1_1AssociateDiscoveredResourceResult = function (output, context) {
|
|
1378
1756
|
return {};
|
|
1379
1757
|
};
|
|
1380
|
-
|
|
1758
|
+
var deserializeAws_json1_1CreatedArtifact = function (output, context) {
|
|
1381
1759
|
return {
|
|
1382
1760
|
Description: __expectString(output.Description),
|
|
1383
1761
|
Name: __expectString(output.Name),
|
|
1384
1762
|
};
|
|
1385
1763
|
};
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
.filter((e)
|
|
1389
|
-
.map((entry)
|
|
1764
|
+
var deserializeAws_json1_1CreatedArtifactList = function (output, context) {
|
|
1765
|
+
var retVal = (output || [])
|
|
1766
|
+
.filter(function (e) { return e != null; })
|
|
1767
|
+
.map(function (entry) {
|
|
1390
1768
|
if (entry === null) {
|
|
1391
1769
|
return null;
|
|
1392
1770
|
}
|
|
@@ -1394,13 +1772,13 @@ const deserializeAws_json1_1CreatedArtifactList = (output, context) => {
|
|
|
1394
1772
|
});
|
|
1395
1773
|
return retVal;
|
|
1396
1774
|
};
|
|
1397
|
-
|
|
1775
|
+
var deserializeAws_json1_1CreateProgressUpdateStreamResult = function (output, context) {
|
|
1398
1776
|
return {};
|
|
1399
1777
|
};
|
|
1400
|
-
|
|
1778
|
+
var deserializeAws_json1_1DeleteProgressUpdateStreamResult = function (output, context) {
|
|
1401
1779
|
return {};
|
|
1402
1780
|
};
|
|
1403
|
-
|
|
1781
|
+
var deserializeAws_json1_1DescribeApplicationStateResult = function (output, context) {
|
|
1404
1782
|
return {
|
|
1405
1783
|
ApplicationStatus: __expectString(output.ApplicationStatus),
|
|
1406
1784
|
LastUpdatedTime: output.LastUpdatedTime != null
|
|
@@ -1408,27 +1786,27 @@ const deserializeAws_json1_1DescribeApplicationStateResult = (output, context) =
|
|
|
1408
1786
|
: undefined,
|
|
1409
1787
|
};
|
|
1410
1788
|
};
|
|
1411
|
-
|
|
1789
|
+
var deserializeAws_json1_1DescribeMigrationTaskResult = function (output, context) {
|
|
1412
1790
|
return {
|
|
1413
1791
|
MigrationTask: output.MigrationTask != null ? deserializeAws_json1_1MigrationTask(output.MigrationTask, context) : undefined,
|
|
1414
1792
|
};
|
|
1415
1793
|
};
|
|
1416
|
-
|
|
1794
|
+
var deserializeAws_json1_1DisassociateCreatedArtifactResult = function (output, context) {
|
|
1417
1795
|
return {};
|
|
1418
1796
|
};
|
|
1419
|
-
|
|
1797
|
+
var deserializeAws_json1_1DisassociateDiscoveredResourceResult = function (output, context) {
|
|
1420
1798
|
return {};
|
|
1421
1799
|
};
|
|
1422
|
-
|
|
1800
|
+
var deserializeAws_json1_1DiscoveredResource = function (output, context) {
|
|
1423
1801
|
return {
|
|
1424
1802
|
ConfigurationId: __expectString(output.ConfigurationId),
|
|
1425
1803
|
Description: __expectString(output.Description),
|
|
1426
1804
|
};
|
|
1427
1805
|
};
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
.filter((e)
|
|
1431
|
-
.map((entry)
|
|
1806
|
+
var deserializeAws_json1_1DiscoveredResourceList = function (output, context) {
|
|
1807
|
+
var retVal = (output || [])
|
|
1808
|
+
.filter(function (e) { return e != null; })
|
|
1809
|
+
.map(function (entry) {
|
|
1432
1810
|
if (entry === null) {
|
|
1433
1811
|
return null;
|
|
1434
1812
|
}
|
|
@@ -1436,33 +1814,33 @@ const deserializeAws_json1_1DiscoveredResourceList = (output, context) => {
|
|
|
1436
1814
|
});
|
|
1437
1815
|
return retVal;
|
|
1438
1816
|
};
|
|
1439
|
-
|
|
1817
|
+
var deserializeAws_json1_1DryRunOperation = function (output, context) {
|
|
1440
1818
|
return {
|
|
1441
1819
|
Message: __expectString(output.Message),
|
|
1442
1820
|
};
|
|
1443
1821
|
};
|
|
1444
|
-
|
|
1822
|
+
var deserializeAws_json1_1HomeRegionNotSetException = function (output, context) {
|
|
1445
1823
|
return {
|
|
1446
1824
|
Message: __expectString(output.Message),
|
|
1447
1825
|
};
|
|
1448
1826
|
};
|
|
1449
|
-
|
|
1827
|
+
var deserializeAws_json1_1ImportMigrationTaskResult = function (output, context) {
|
|
1450
1828
|
return {};
|
|
1451
1829
|
};
|
|
1452
|
-
|
|
1830
|
+
var deserializeAws_json1_1InternalServerError = function (output, context) {
|
|
1453
1831
|
return {
|
|
1454
1832
|
Message: __expectString(output.Message),
|
|
1455
1833
|
};
|
|
1456
1834
|
};
|
|
1457
|
-
|
|
1835
|
+
var deserializeAws_json1_1InvalidInputException = function (output, context) {
|
|
1458
1836
|
return {
|
|
1459
1837
|
Message: __expectString(output.Message),
|
|
1460
1838
|
};
|
|
1461
1839
|
};
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
.filter((e)
|
|
1465
|
-
.map((entry)
|
|
1840
|
+
var deserializeAws_json1_1LatestResourceAttributeList = function (output, context) {
|
|
1841
|
+
var retVal = (output || [])
|
|
1842
|
+
.filter(function (e) { return e != null; })
|
|
1843
|
+
.map(function (entry) {
|
|
1466
1844
|
if (entry === null) {
|
|
1467
1845
|
return null;
|
|
1468
1846
|
}
|
|
@@ -1470,7 +1848,7 @@ const deserializeAws_json1_1LatestResourceAttributeList = (output, context) => {
|
|
|
1470
1848
|
});
|
|
1471
1849
|
return retVal;
|
|
1472
1850
|
};
|
|
1473
|
-
|
|
1851
|
+
var deserializeAws_json1_1ListApplicationStatesResult = function (output, context) {
|
|
1474
1852
|
return {
|
|
1475
1853
|
ApplicationStateList: output.ApplicationStateList != null
|
|
1476
1854
|
? deserializeAws_json1_1ApplicationStateList(output.ApplicationStateList, context)
|
|
@@ -1478,7 +1856,7 @@ const deserializeAws_json1_1ListApplicationStatesResult = (output, context) => {
|
|
|
1478
1856
|
NextToken: __expectString(output.NextToken),
|
|
1479
1857
|
};
|
|
1480
1858
|
};
|
|
1481
|
-
|
|
1859
|
+
var deserializeAws_json1_1ListCreatedArtifactsResult = function (output, context) {
|
|
1482
1860
|
return {
|
|
1483
1861
|
CreatedArtifactList: output.CreatedArtifactList != null
|
|
1484
1862
|
? deserializeAws_json1_1CreatedArtifactList(output.CreatedArtifactList, context)
|
|
@@ -1486,7 +1864,7 @@ const deserializeAws_json1_1ListCreatedArtifactsResult = (output, context) => {
|
|
|
1486
1864
|
NextToken: __expectString(output.NextToken),
|
|
1487
1865
|
};
|
|
1488
1866
|
};
|
|
1489
|
-
|
|
1867
|
+
var deserializeAws_json1_1ListDiscoveredResourcesResult = function (output, context) {
|
|
1490
1868
|
return {
|
|
1491
1869
|
DiscoveredResourceList: output.DiscoveredResourceList != null
|
|
1492
1870
|
? deserializeAws_json1_1DiscoveredResourceList(output.DiscoveredResourceList, context)
|
|
@@ -1494,7 +1872,7 @@ const deserializeAws_json1_1ListDiscoveredResourcesResult = (output, context) =>
|
|
|
1494
1872
|
NextToken: __expectString(output.NextToken),
|
|
1495
1873
|
};
|
|
1496
1874
|
};
|
|
1497
|
-
|
|
1875
|
+
var deserializeAws_json1_1ListMigrationTasksResult = function (output, context) {
|
|
1498
1876
|
return {
|
|
1499
1877
|
MigrationTaskSummaryList: output.MigrationTaskSummaryList != null
|
|
1500
1878
|
? deserializeAws_json1_1MigrationTaskSummaryList(output.MigrationTaskSummaryList, context)
|
|
@@ -1502,7 +1880,7 @@ const deserializeAws_json1_1ListMigrationTasksResult = (output, context) => {
|
|
|
1502
1880
|
NextToken: __expectString(output.NextToken),
|
|
1503
1881
|
};
|
|
1504
1882
|
};
|
|
1505
|
-
|
|
1883
|
+
var deserializeAws_json1_1ListProgressUpdateStreamsResult = function (output, context) {
|
|
1506
1884
|
return {
|
|
1507
1885
|
NextToken: __expectString(output.NextToken),
|
|
1508
1886
|
ProgressUpdateStreamSummaryList: output.ProgressUpdateStreamSummaryList != null
|
|
@@ -1510,7 +1888,7 @@ const deserializeAws_json1_1ListProgressUpdateStreamsResult = (output, context)
|
|
|
1510
1888
|
: undefined,
|
|
1511
1889
|
};
|
|
1512
1890
|
};
|
|
1513
|
-
|
|
1891
|
+
var deserializeAws_json1_1MigrationTask = function (output, context) {
|
|
1514
1892
|
return {
|
|
1515
1893
|
MigrationTaskName: __expectString(output.MigrationTaskName),
|
|
1516
1894
|
ProgressUpdateStream: __expectString(output.ProgressUpdateStream),
|
|
@@ -1523,7 +1901,7 @@ const deserializeAws_json1_1MigrationTask = (output, context) => {
|
|
|
1523
1901
|
: undefined,
|
|
1524
1902
|
};
|
|
1525
1903
|
};
|
|
1526
|
-
|
|
1904
|
+
var deserializeAws_json1_1MigrationTaskSummary = function (output, context) {
|
|
1527
1905
|
return {
|
|
1528
1906
|
MigrationTaskName: __expectString(output.MigrationTaskName),
|
|
1529
1907
|
ProgressPercent: __expectInt32(output.ProgressPercent),
|
|
@@ -1535,10 +1913,10 @@ const deserializeAws_json1_1MigrationTaskSummary = (output, context) => {
|
|
|
1535
1913
|
: undefined,
|
|
1536
1914
|
};
|
|
1537
1915
|
};
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
.filter((e)
|
|
1541
|
-
.map((entry)
|
|
1916
|
+
var deserializeAws_json1_1MigrationTaskSummaryList = function (output, context) {
|
|
1917
|
+
var retVal = (output || [])
|
|
1918
|
+
.filter(function (e) { return e != null; })
|
|
1919
|
+
.map(function (entry) {
|
|
1542
1920
|
if (entry === null) {
|
|
1543
1921
|
return null;
|
|
1544
1922
|
}
|
|
@@ -1546,26 +1924,26 @@ const deserializeAws_json1_1MigrationTaskSummaryList = (output, context) => {
|
|
|
1546
1924
|
});
|
|
1547
1925
|
return retVal;
|
|
1548
1926
|
};
|
|
1549
|
-
|
|
1927
|
+
var deserializeAws_json1_1NotifyApplicationStateResult = function (output, context) {
|
|
1550
1928
|
return {};
|
|
1551
1929
|
};
|
|
1552
|
-
|
|
1930
|
+
var deserializeAws_json1_1NotifyMigrationTaskStateResult = function (output, context) {
|
|
1553
1931
|
return {};
|
|
1554
1932
|
};
|
|
1555
|
-
|
|
1933
|
+
var deserializeAws_json1_1PolicyErrorException = function (output, context) {
|
|
1556
1934
|
return {
|
|
1557
1935
|
Message: __expectString(output.Message),
|
|
1558
1936
|
};
|
|
1559
1937
|
};
|
|
1560
|
-
|
|
1938
|
+
var deserializeAws_json1_1ProgressUpdateStreamSummary = function (output, context) {
|
|
1561
1939
|
return {
|
|
1562
1940
|
ProgressUpdateStreamName: __expectString(output.ProgressUpdateStreamName),
|
|
1563
1941
|
};
|
|
1564
1942
|
};
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
.filter((e)
|
|
1568
|
-
.map((entry)
|
|
1943
|
+
var deserializeAws_json1_1ProgressUpdateStreamSummaryList = function (output, context) {
|
|
1944
|
+
var retVal = (output || [])
|
|
1945
|
+
.filter(function (e) { return e != null; })
|
|
1946
|
+
.map(function (entry) {
|
|
1569
1947
|
if (entry === null) {
|
|
1570
1948
|
return null;
|
|
1571
1949
|
}
|
|
@@ -1573,89 +1951,112 @@ const deserializeAws_json1_1ProgressUpdateStreamSummaryList = (output, context)
|
|
|
1573
1951
|
});
|
|
1574
1952
|
return retVal;
|
|
1575
1953
|
};
|
|
1576
|
-
|
|
1954
|
+
var deserializeAws_json1_1PutResourceAttributesResult = function (output, context) {
|
|
1577
1955
|
return {};
|
|
1578
1956
|
};
|
|
1579
|
-
|
|
1957
|
+
var deserializeAws_json1_1ResourceAttribute = function (output, context) {
|
|
1580
1958
|
return {
|
|
1581
1959
|
Type: __expectString(output.Type),
|
|
1582
1960
|
Value: __expectString(output.Value),
|
|
1583
1961
|
};
|
|
1584
1962
|
};
|
|
1585
|
-
|
|
1963
|
+
var deserializeAws_json1_1ResourceNotFoundException = function (output, context) {
|
|
1586
1964
|
return {
|
|
1587
1965
|
Message: __expectString(output.Message),
|
|
1588
1966
|
};
|
|
1589
1967
|
};
|
|
1590
|
-
|
|
1968
|
+
var deserializeAws_json1_1ServiceUnavailableException = function (output, context) {
|
|
1591
1969
|
return {
|
|
1592
1970
|
Message: __expectString(output.Message),
|
|
1593
1971
|
};
|
|
1594
1972
|
};
|
|
1595
|
-
|
|
1973
|
+
var deserializeAws_json1_1Task = function (output, context) {
|
|
1596
1974
|
return {
|
|
1597
1975
|
ProgressPercent: __expectInt32(output.ProgressPercent),
|
|
1598
1976
|
Status: __expectString(output.Status),
|
|
1599
1977
|
StatusDetail: __expectString(output.StatusDetail),
|
|
1600
1978
|
};
|
|
1601
1979
|
};
|
|
1602
|
-
|
|
1980
|
+
var deserializeAws_json1_1ThrottlingException = function (output, context) {
|
|
1603
1981
|
return {
|
|
1604
1982
|
Message: __expectString(output.Message),
|
|
1605
1983
|
RetryAfterSeconds: __expectInt32(output.RetryAfterSeconds),
|
|
1606
1984
|
};
|
|
1607
1985
|
};
|
|
1608
|
-
|
|
1986
|
+
var deserializeAws_json1_1UnauthorizedOperation = function (output, context) {
|
|
1609
1987
|
return {
|
|
1610
1988
|
Message: __expectString(output.Message),
|
|
1611
1989
|
};
|
|
1612
1990
|
};
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1991
|
+
var deserializeMetadata = function (output) {
|
|
1992
|
+
var _a, _b;
|
|
1993
|
+
return ({
|
|
1994
|
+
httpStatusCode: output.statusCode,
|
|
1995
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
1996
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1997
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1998
|
+
});
|
|
1999
|
+
};
|
|
2000
|
+
var collectBody = function (streamBody, context) {
|
|
2001
|
+
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1620
2002
|
if (streamBody instanceof Uint8Array) {
|
|
1621
2003
|
return Promise.resolve(streamBody);
|
|
1622
2004
|
}
|
|
1623
2005
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1624
2006
|
};
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
2007
|
+
var collectBodyString = function (streamBody, context) {
|
|
2008
|
+
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
2009
|
+
};
|
|
2010
|
+
var buildHttpRpcRequest = function (context, headers, path, resolvedHostname, body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2011
|
+
var _a, hostname, _b, protocol, port, basePath, contents;
|
|
2012
|
+
return __generator(this, function (_c) {
|
|
2013
|
+
switch (_c.label) {
|
|
2014
|
+
case 0: return [4, context.endpoint()];
|
|
2015
|
+
case 1:
|
|
2016
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2017
|
+
contents = {
|
|
2018
|
+
protocol: protocol,
|
|
2019
|
+
hostname: hostname,
|
|
2020
|
+
port: port,
|
|
2021
|
+
method: "POST",
|
|
2022
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2023
|
+
headers: headers,
|
|
2024
|
+
};
|
|
2025
|
+
if (resolvedHostname !== undefined) {
|
|
2026
|
+
contents.hostname = resolvedHostname;
|
|
2027
|
+
}
|
|
2028
|
+
if (body !== undefined) {
|
|
2029
|
+
contents.body = body;
|
|
2030
|
+
}
|
|
2031
|
+
return [2, new __HttpRequest(contents)];
|
|
2032
|
+
}
|
|
2033
|
+
});
|
|
2034
|
+
}); };
|
|
2035
|
+
var parseBody = function (streamBody, context) {
|
|
2036
|
+
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2037
|
+
if (encoded.length) {
|
|
2038
|
+
return JSON.parse(encoded);
|
|
2039
|
+
}
|
|
2040
|
+
return {};
|
|
2041
|
+
});
|
|
1643
2042
|
};
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
2043
|
+
var parseErrorBody = function (errorBody, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2044
|
+
var value;
|
|
2045
|
+
var _a;
|
|
2046
|
+
return __generator(this, function (_b) {
|
|
2047
|
+
switch (_b.label) {
|
|
2048
|
+
case 0: return [4, parseBody(errorBody, context)];
|
|
2049
|
+
case 1:
|
|
2050
|
+
value = _b.sent();
|
|
2051
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2052
|
+
return [2, value];
|
|
2053
|
+
}
|
|
2054
|
+
});
|
|
2055
|
+
}); };
|
|
2056
|
+
var loadRestJsonErrorCode = function (output, data) {
|
|
2057
|
+
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2058
|
+
var sanitizeErrorCode = function (rawValue) {
|
|
2059
|
+
var cleanValue = rawValue;
|
|
1659
2060
|
if (typeof cleanValue === "number") {
|
|
1660
2061
|
cleanValue = cleanValue.toString();
|
|
1661
2062
|
}
|
|
@@ -1670,7 +2071,7 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1670
2071
|
}
|
|
1671
2072
|
return cleanValue;
|
|
1672
2073
|
};
|
|
1673
|
-
|
|
2074
|
+
var headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1674
2075
|
if (headerKey !== undefined) {
|
|
1675
2076
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1676
2077
|
}
|