@aws-sdk/client-migrationhubstrategy 3.504.0 → 3.509.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/dist-cjs/index.js +39 -624
- package/dist-es/protocols/Aws_restJson1.js +38 -623
- package/package.json +3 -3
|
@@ -289,7 +289,7 @@ export const se_UpdateServerConfigCommand = async (input, context) => {
|
|
|
289
289
|
};
|
|
290
290
|
export const de_GetApplicationComponentDetailsCommand = async (output, context) => {
|
|
291
291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
292
|
-
return
|
|
292
|
+
return de_CommandError(output, context);
|
|
293
293
|
}
|
|
294
294
|
const contents = map({
|
|
295
295
|
$metadata: deserializeMetadata(output),
|
|
@@ -304,34 +304,9 @@ export const de_GetApplicationComponentDetailsCommand = async (output, context)
|
|
|
304
304
|
Object.assign(contents, doc);
|
|
305
305
|
return contents;
|
|
306
306
|
};
|
|
307
|
-
const de_GetApplicationComponentDetailsCommandError = async (output, context) => {
|
|
308
|
-
const parsedOutput = {
|
|
309
|
-
...output,
|
|
310
|
-
body: await parseErrorBody(output.body, context),
|
|
311
|
-
};
|
|
312
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
313
|
-
switch (errorCode) {
|
|
314
|
-
case "InternalServerException":
|
|
315
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
316
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
317
|
-
case "ResourceNotFoundException":
|
|
318
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
319
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
320
|
-
case "ThrottlingException":
|
|
321
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
322
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
323
|
-
default:
|
|
324
|
-
const parsedBody = parsedOutput.body;
|
|
325
|
-
return throwDefaultError({
|
|
326
|
-
output,
|
|
327
|
-
parsedBody,
|
|
328
|
-
errorCode,
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
307
|
export const de_GetApplicationComponentStrategiesCommand = async (output, context) => {
|
|
333
308
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
334
|
-
return
|
|
309
|
+
return de_CommandError(output, context);
|
|
335
310
|
}
|
|
336
311
|
const contents = map({
|
|
337
312
|
$metadata: deserializeMetadata(output),
|
|
@@ -343,34 +318,9 @@ export const de_GetApplicationComponentStrategiesCommand = async (output, contex
|
|
|
343
318
|
Object.assign(contents, doc);
|
|
344
319
|
return contents;
|
|
345
320
|
};
|
|
346
|
-
const de_GetApplicationComponentStrategiesCommandError = async (output, context) => {
|
|
347
|
-
const parsedOutput = {
|
|
348
|
-
...output,
|
|
349
|
-
body: await parseErrorBody(output.body, context),
|
|
350
|
-
};
|
|
351
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
352
|
-
switch (errorCode) {
|
|
353
|
-
case "InternalServerException":
|
|
354
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
355
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
356
|
-
case "ResourceNotFoundException":
|
|
357
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
358
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
359
|
-
case "ThrottlingException":
|
|
360
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
361
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
362
|
-
default:
|
|
363
|
-
const parsedBody = parsedOutput.body;
|
|
364
|
-
return throwDefaultError({
|
|
365
|
-
output,
|
|
366
|
-
parsedBody,
|
|
367
|
-
errorCode,
|
|
368
|
-
});
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
321
|
export const de_GetAssessmentCommand = async (output, context) => {
|
|
372
322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
373
|
-
return
|
|
323
|
+
return de_CommandError(output, context);
|
|
374
324
|
}
|
|
375
325
|
const contents = map({
|
|
376
326
|
$metadata: deserializeMetadata(output),
|
|
@@ -384,37 +334,9 @@ export const de_GetAssessmentCommand = async (output, context) => {
|
|
|
384
334
|
Object.assign(contents, doc);
|
|
385
335
|
return contents;
|
|
386
336
|
};
|
|
387
|
-
const de_GetAssessmentCommandError = async (output, context) => {
|
|
388
|
-
const parsedOutput = {
|
|
389
|
-
...output,
|
|
390
|
-
body: await parseErrorBody(output.body, context),
|
|
391
|
-
};
|
|
392
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
393
|
-
switch (errorCode) {
|
|
394
|
-
case "AccessDeniedException":
|
|
395
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
396
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
397
|
-
case "InternalServerException":
|
|
398
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
399
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
400
|
-
case "ResourceNotFoundException":
|
|
401
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
402
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
403
|
-
case "ThrottlingException":
|
|
404
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
405
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
406
|
-
default:
|
|
407
|
-
const parsedBody = parsedOutput.body;
|
|
408
|
-
return throwDefaultError({
|
|
409
|
-
output,
|
|
410
|
-
parsedBody,
|
|
411
|
-
errorCode,
|
|
412
|
-
});
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
337
|
export const de_GetImportFileTaskCommand = async (output, context) => {
|
|
416
338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
417
|
-
return
|
|
339
|
+
return de_CommandError(output, context);
|
|
418
340
|
}
|
|
419
341
|
const contents = map({
|
|
420
342
|
$metadata: deserializeMetadata(output),
|
|
@@ -436,40 +358,9 @@ export const de_GetImportFileTaskCommand = async (output, context) => {
|
|
|
436
358
|
Object.assign(contents, doc);
|
|
437
359
|
return contents;
|
|
438
360
|
};
|
|
439
|
-
const de_GetImportFileTaskCommandError = async (output, context) => {
|
|
440
|
-
const parsedOutput = {
|
|
441
|
-
...output,
|
|
442
|
-
body: await parseErrorBody(output.body, context),
|
|
443
|
-
};
|
|
444
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
445
|
-
switch (errorCode) {
|
|
446
|
-
case "AccessDeniedException":
|
|
447
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
448
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
449
|
-
case "InternalServerException":
|
|
450
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
451
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
452
|
-
case "ResourceNotFoundException":
|
|
453
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
454
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
455
|
-
case "ThrottlingException":
|
|
456
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
457
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
458
|
-
case "ValidationException":
|
|
459
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
460
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
461
|
-
default:
|
|
462
|
-
const parsedBody = parsedOutput.body;
|
|
463
|
-
return throwDefaultError({
|
|
464
|
-
output,
|
|
465
|
-
parsedBody,
|
|
466
|
-
errorCode,
|
|
467
|
-
});
|
|
468
|
-
}
|
|
469
|
-
};
|
|
470
361
|
export const de_GetLatestAssessmentIdCommand = async (output, context) => {
|
|
471
362
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
472
|
-
return
|
|
363
|
+
return de_CommandError(output, context);
|
|
473
364
|
}
|
|
474
365
|
const contents = map({
|
|
475
366
|
$metadata: deserializeMetadata(output),
|
|
@@ -481,37 +372,9 @@ export const de_GetLatestAssessmentIdCommand = async (output, context) => {
|
|
|
481
372
|
Object.assign(contents, doc);
|
|
482
373
|
return contents;
|
|
483
374
|
};
|
|
484
|
-
const de_GetLatestAssessmentIdCommandError = async (output, context) => {
|
|
485
|
-
const parsedOutput = {
|
|
486
|
-
...output,
|
|
487
|
-
body: await parseErrorBody(output.body, context),
|
|
488
|
-
};
|
|
489
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
490
|
-
switch (errorCode) {
|
|
491
|
-
case "AccessDeniedException":
|
|
492
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
493
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
494
|
-
case "DependencyException":
|
|
495
|
-
case "com.amazonaws.migrationhubstrategy#DependencyException":
|
|
496
|
-
throw await de_DependencyExceptionRes(parsedOutput, context);
|
|
497
|
-
case "InternalServerException":
|
|
498
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
499
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
500
|
-
case "ValidationException":
|
|
501
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
502
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
503
|
-
default:
|
|
504
|
-
const parsedBody = parsedOutput.body;
|
|
505
|
-
return throwDefaultError({
|
|
506
|
-
output,
|
|
507
|
-
parsedBody,
|
|
508
|
-
errorCode,
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
};
|
|
512
375
|
export const de_GetPortfolioPreferencesCommand = async (output, context) => {
|
|
513
376
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
514
|
-
return
|
|
377
|
+
return de_CommandError(output, context);
|
|
515
378
|
}
|
|
516
379
|
const contents = map({
|
|
517
380
|
$metadata: deserializeMetadata(output),
|
|
@@ -526,37 +389,9 @@ export const de_GetPortfolioPreferencesCommand = async (output, context) => {
|
|
|
526
389
|
Object.assign(contents, doc);
|
|
527
390
|
return contents;
|
|
528
391
|
};
|
|
529
|
-
const de_GetPortfolioPreferencesCommandError = async (output, context) => {
|
|
530
|
-
const parsedOutput = {
|
|
531
|
-
...output,
|
|
532
|
-
body: await parseErrorBody(output.body, context),
|
|
533
|
-
};
|
|
534
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
535
|
-
switch (errorCode) {
|
|
536
|
-
case "AccessDeniedException":
|
|
537
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
538
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
539
|
-
case "InternalServerException":
|
|
540
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
541
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
542
|
-
case "ResourceNotFoundException":
|
|
543
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
544
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
545
|
-
case "ThrottlingException":
|
|
546
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
547
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
548
|
-
default:
|
|
549
|
-
const parsedBody = parsedOutput.body;
|
|
550
|
-
return throwDefaultError({
|
|
551
|
-
output,
|
|
552
|
-
parsedBody,
|
|
553
|
-
errorCode,
|
|
554
|
-
});
|
|
555
|
-
}
|
|
556
|
-
};
|
|
557
392
|
export const de_GetPortfolioSummaryCommand = async (output, context) => {
|
|
558
393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
559
|
-
return
|
|
394
|
+
return de_CommandError(output, context);
|
|
560
395
|
}
|
|
561
396
|
const contents = map({
|
|
562
397
|
$metadata: deserializeMetadata(output),
|
|
@@ -568,34 +403,9 @@ export const de_GetPortfolioSummaryCommand = async (output, context) => {
|
|
|
568
403
|
Object.assign(contents, doc);
|
|
569
404
|
return contents;
|
|
570
405
|
};
|
|
571
|
-
const de_GetPortfolioSummaryCommandError = async (output, context) => {
|
|
572
|
-
const parsedOutput = {
|
|
573
|
-
...output,
|
|
574
|
-
body: await parseErrorBody(output.body, context),
|
|
575
|
-
};
|
|
576
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
577
|
-
switch (errorCode) {
|
|
578
|
-
case "AccessDeniedException":
|
|
579
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
580
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
581
|
-
case "InternalServerException":
|
|
582
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
583
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
584
|
-
case "ThrottlingException":
|
|
585
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
586
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
587
|
-
default:
|
|
588
|
-
const parsedBody = parsedOutput.body;
|
|
589
|
-
return throwDefaultError({
|
|
590
|
-
output,
|
|
591
|
-
parsedBody,
|
|
592
|
-
errorCode,
|
|
593
|
-
});
|
|
594
|
-
}
|
|
595
|
-
};
|
|
596
406
|
export const de_GetRecommendationReportDetailsCommand = async (output, context) => {
|
|
597
407
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
598
|
-
return
|
|
408
|
+
return de_CommandError(output, context);
|
|
599
409
|
}
|
|
600
410
|
const contents = map({
|
|
601
411
|
$metadata: deserializeMetadata(output),
|
|
@@ -608,40 +418,9 @@ export const de_GetRecommendationReportDetailsCommand = async (output, context)
|
|
|
608
418
|
Object.assign(contents, doc);
|
|
609
419
|
return contents;
|
|
610
420
|
};
|
|
611
|
-
const de_GetRecommendationReportDetailsCommandError = async (output, context) => {
|
|
612
|
-
const parsedOutput = {
|
|
613
|
-
...output,
|
|
614
|
-
body: await parseErrorBody(output.body, context),
|
|
615
|
-
};
|
|
616
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
617
|
-
switch (errorCode) {
|
|
618
|
-
case "AccessDeniedException":
|
|
619
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
620
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
621
|
-
case "InternalServerException":
|
|
622
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
623
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
624
|
-
case "ResourceNotFoundException":
|
|
625
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
626
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
627
|
-
case "ThrottlingException":
|
|
628
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
629
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
630
|
-
case "ValidationException":
|
|
631
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
632
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
633
|
-
default:
|
|
634
|
-
const parsedBody = parsedOutput.body;
|
|
635
|
-
return throwDefaultError({
|
|
636
|
-
output,
|
|
637
|
-
parsedBody,
|
|
638
|
-
errorCode,
|
|
639
|
-
});
|
|
640
|
-
}
|
|
641
|
-
};
|
|
642
421
|
export const de_GetServerDetailsCommand = async (output, context) => {
|
|
643
422
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
644
|
-
return
|
|
423
|
+
return de_CommandError(output, context);
|
|
645
424
|
}
|
|
646
425
|
const contents = map({
|
|
647
426
|
$metadata: deserializeMetadata(output),
|
|
@@ -655,40 +434,9 @@ export const de_GetServerDetailsCommand = async (output, context) => {
|
|
|
655
434
|
Object.assign(contents, doc);
|
|
656
435
|
return contents;
|
|
657
436
|
};
|
|
658
|
-
const de_GetServerDetailsCommandError = async (output, context) => {
|
|
659
|
-
const parsedOutput = {
|
|
660
|
-
...output,
|
|
661
|
-
body: await parseErrorBody(output.body, context),
|
|
662
|
-
};
|
|
663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
664
|
-
switch (errorCode) {
|
|
665
|
-
case "AccessDeniedException":
|
|
666
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
667
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
668
|
-
case "InternalServerException":
|
|
669
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
670
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
671
|
-
case "ResourceNotFoundException":
|
|
672
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
673
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
674
|
-
case "ThrottlingException":
|
|
675
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
676
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
677
|
-
case "ValidationException":
|
|
678
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
679
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
680
|
-
default:
|
|
681
|
-
const parsedBody = parsedOutput.body;
|
|
682
|
-
return throwDefaultError({
|
|
683
|
-
output,
|
|
684
|
-
parsedBody,
|
|
685
|
-
errorCode,
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
|
-
};
|
|
689
437
|
export const de_GetServerStrategiesCommand = async (output, context) => {
|
|
690
438
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
691
|
-
return
|
|
439
|
+
return de_CommandError(output, context);
|
|
692
440
|
}
|
|
693
441
|
const contents = map({
|
|
694
442
|
$metadata: deserializeMetadata(output),
|
|
@@ -700,40 +448,9 @@ export const de_GetServerStrategiesCommand = async (output, context) => {
|
|
|
700
448
|
Object.assign(contents, doc);
|
|
701
449
|
return contents;
|
|
702
450
|
};
|
|
703
|
-
const de_GetServerStrategiesCommandError = async (output, context) => {
|
|
704
|
-
const parsedOutput = {
|
|
705
|
-
...output,
|
|
706
|
-
body: await parseErrorBody(output.body, context),
|
|
707
|
-
};
|
|
708
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
|
-
switch (errorCode) {
|
|
710
|
-
case "AccessDeniedException":
|
|
711
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
712
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
713
|
-
case "InternalServerException":
|
|
714
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
715
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
716
|
-
case "ResourceNotFoundException":
|
|
717
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
718
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
719
|
-
case "ThrottlingException":
|
|
720
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
721
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
722
|
-
case "ValidationException":
|
|
723
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
724
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
725
|
-
default:
|
|
726
|
-
const parsedBody = parsedOutput.body;
|
|
727
|
-
return throwDefaultError({
|
|
728
|
-
output,
|
|
729
|
-
parsedBody,
|
|
730
|
-
errorCode,
|
|
731
|
-
});
|
|
732
|
-
}
|
|
733
|
-
};
|
|
734
451
|
export const de_ListAnalyzableServersCommand = async (output, context) => {
|
|
735
452
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
736
|
-
return
|
|
453
|
+
return de_CommandError(output, context);
|
|
737
454
|
}
|
|
738
455
|
const contents = map({
|
|
739
456
|
$metadata: deserializeMetadata(output),
|
|
@@ -746,37 +463,9 @@ export const de_ListAnalyzableServersCommand = async (output, context) => {
|
|
|
746
463
|
Object.assign(contents, doc);
|
|
747
464
|
return contents;
|
|
748
465
|
};
|
|
749
|
-
const de_ListAnalyzableServersCommandError = async (output, context) => {
|
|
750
|
-
const parsedOutput = {
|
|
751
|
-
...output,
|
|
752
|
-
body: await parseErrorBody(output.body, context),
|
|
753
|
-
};
|
|
754
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
755
|
-
switch (errorCode) {
|
|
756
|
-
case "AccessDeniedException":
|
|
757
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
758
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
759
|
-
case "InternalServerException":
|
|
760
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
761
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
762
|
-
case "ThrottlingException":
|
|
763
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
764
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
765
|
-
case "ValidationException":
|
|
766
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
767
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
768
|
-
default:
|
|
769
|
-
const parsedBody = parsedOutput.body;
|
|
770
|
-
return throwDefaultError({
|
|
771
|
-
output,
|
|
772
|
-
parsedBody,
|
|
773
|
-
errorCode,
|
|
774
|
-
});
|
|
775
|
-
}
|
|
776
|
-
};
|
|
777
466
|
export const de_ListApplicationComponentsCommand = async (output, context) => {
|
|
778
467
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
779
|
-
return
|
|
468
|
+
return de_CommandError(output, context);
|
|
780
469
|
}
|
|
781
470
|
const contents = map({
|
|
782
471
|
$metadata: deserializeMetadata(output),
|
|
@@ -789,37 +478,9 @@ export const de_ListApplicationComponentsCommand = async (output, context) => {
|
|
|
789
478
|
Object.assign(contents, doc);
|
|
790
479
|
return contents;
|
|
791
480
|
};
|
|
792
|
-
const de_ListApplicationComponentsCommandError = async (output, context) => {
|
|
793
|
-
const parsedOutput = {
|
|
794
|
-
...output,
|
|
795
|
-
body: await parseErrorBody(output.body, context),
|
|
796
|
-
};
|
|
797
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
798
|
-
switch (errorCode) {
|
|
799
|
-
case "AccessDeniedException":
|
|
800
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
801
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
802
|
-
case "InternalServerException":
|
|
803
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
804
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
805
|
-
case "ServiceLinkedRoleLockClientException":
|
|
806
|
-
case "com.amazonaws.migrationhubstrategy#ServiceLinkedRoleLockClientException":
|
|
807
|
-
throw await de_ServiceLinkedRoleLockClientExceptionRes(parsedOutput, context);
|
|
808
|
-
case "ValidationException":
|
|
809
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
810
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
811
|
-
default:
|
|
812
|
-
const parsedBody = parsedOutput.body;
|
|
813
|
-
return throwDefaultError({
|
|
814
|
-
output,
|
|
815
|
-
parsedBody,
|
|
816
|
-
errorCode,
|
|
817
|
-
});
|
|
818
|
-
}
|
|
819
|
-
};
|
|
820
481
|
export const de_ListCollectorsCommand = async (output, context) => {
|
|
821
482
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
822
|
-
return
|
|
483
|
+
return de_CommandError(output, context);
|
|
823
484
|
}
|
|
824
485
|
const contents = map({
|
|
825
486
|
$metadata: deserializeMetadata(output),
|
|
@@ -832,37 +493,9 @@ export const de_ListCollectorsCommand = async (output, context) => {
|
|
|
832
493
|
Object.assign(contents, doc);
|
|
833
494
|
return contents;
|
|
834
495
|
};
|
|
835
|
-
const de_ListCollectorsCommandError = async (output, context) => {
|
|
836
|
-
const parsedOutput = {
|
|
837
|
-
...output,
|
|
838
|
-
body: await parseErrorBody(output.body, context),
|
|
839
|
-
};
|
|
840
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
841
|
-
switch (errorCode) {
|
|
842
|
-
case "AccessDeniedException":
|
|
843
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
844
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
845
|
-
case "InternalServerException":
|
|
846
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
847
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
848
|
-
case "ThrottlingException":
|
|
849
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
850
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
851
|
-
case "ValidationException":
|
|
852
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
853
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
854
|
-
default:
|
|
855
|
-
const parsedBody = parsedOutput.body;
|
|
856
|
-
return throwDefaultError({
|
|
857
|
-
output,
|
|
858
|
-
parsedBody,
|
|
859
|
-
errorCode,
|
|
860
|
-
});
|
|
861
|
-
}
|
|
862
|
-
};
|
|
863
496
|
export const de_ListImportFileTaskCommand = async (output, context) => {
|
|
864
497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
865
|
-
return
|
|
498
|
+
return de_CommandError(output, context);
|
|
866
499
|
}
|
|
867
500
|
const contents = map({
|
|
868
501
|
$metadata: deserializeMetadata(output),
|
|
@@ -875,37 +508,9 @@ export const de_ListImportFileTaskCommand = async (output, context) => {
|
|
|
875
508
|
Object.assign(contents, doc);
|
|
876
509
|
return contents;
|
|
877
510
|
};
|
|
878
|
-
const de_ListImportFileTaskCommandError = async (output, context) => {
|
|
879
|
-
const parsedOutput = {
|
|
880
|
-
...output,
|
|
881
|
-
body: await parseErrorBody(output.body, context),
|
|
882
|
-
};
|
|
883
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
884
|
-
switch (errorCode) {
|
|
885
|
-
case "AccessDeniedException":
|
|
886
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
887
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
888
|
-
case "InternalServerException":
|
|
889
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
890
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
891
|
-
case "ThrottlingException":
|
|
892
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
893
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
894
|
-
case "ValidationException":
|
|
895
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
896
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
897
|
-
default:
|
|
898
|
-
const parsedBody = parsedOutput.body;
|
|
899
|
-
return throwDefaultError({
|
|
900
|
-
output,
|
|
901
|
-
parsedBody,
|
|
902
|
-
errorCode,
|
|
903
|
-
});
|
|
904
|
-
}
|
|
905
|
-
};
|
|
906
511
|
export const de_ListServersCommand = async (output, context) => {
|
|
907
512
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
908
|
-
return
|
|
513
|
+
return de_CommandError(output, context);
|
|
909
514
|
}
|
|
910
515
|
const contents = map({
|
|
911
516
|
$metadata: deserializeMetadata(output),
|
|
@@ -918,37 +523,9 @@ export const de_ListServersCommand = async (output, context) => {
|
|
|
918
523
|
Object.assign(contents, doc);
|
|
919
524
|
return contents;
|
|
920
525
|
};
|
|
921
|
-
const de_ListServersCommandError = async (output, context) => {
|
|
922
|
-
const parsedOutput = {
|
|
923
|
-
...output,
|
|
924
|
-
body: await parseErrorBody(output.body, context),
|
|
925
|
-
};
|
|
926
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
927
|
-
switch (errorCode) {
|
|
928
|
-
case "AccessDeniedException":
|
|
929
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
930
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
931
|
-
case "InternalServerException":
|
|
932
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
933
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ThrottlingException":
|
|
935
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
936
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
937
|
-
case "ValidationException":
|
|
938
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
939
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
940
|
-
default:
|
|
941
|
-
const parsedBody = parsedOutput.body;
|
|
942
|
-
return throwDefaultError({
|
|
943
|
-
output,
|
|
944
|
-
parsedBody,
|
|
945
|
-
errorCode,
|
|
946
|
-
});
|
|
947
|
-
}
|
|
948
|
-
};
|
|
949
526
|
export const de_PutPortfolioPreferencesCommand = async (output, context) => {
|
|
950
527
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
951
|
-
return
|
|
528
|
+
return de_CommandError(output, context);
|
|
952
529
|
}
|
|
953
530
|
const contents = map({
|
|
954
531
|
$metadata: deserializeMetadata(output),
|
|
@@ -956,40 +533,9 @@ export const de_PutPortfolioPreferencesCommand = async (output, context) => {
|
|
|
956
533
|
await collectBody(output.body, context);
|
|
957
534
|
return contents;
|
|
958
535
|
};
|
|
959
|
-
const de_PutPortfolioPreferencesCommandError = async (output, context) => {
|
|
960
|
-
const parsedOutput = {
|
|
961
|
-
...output,
|
|
962
|
-
body: await parseErrorBody(output.body, context),
|
|
963
|
-
};
|
|
964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
|
-
switch (errorCode) {
|
|
966
|
-
case "AccessDeniedException":
|
|
967
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
968
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
969
|
-
case "ConflictException":
|
|
970
|
-
case "com.amazonaws.migrationhubstrategy#ConflictException":
|
|
971
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
972
|
-
case "InternalServerException":
|
|
973
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
974
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ThrottlingException":
|
|
976
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
977
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ValidationException":
|
|
979
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
980
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
981
|
-
default:
|
|
982
|
-
const parsedBody = parsedOutput.body;
|
|
983
|
-
return throwDefaultError({
|
|
984
|
-
output,
|
|
985
|
-
parsedBody,
|
|
986
|
-
errorCode,
|
|
987
|
-
});
|
|
988
|
-
}
|
|
989
|
-
};
|
|
990
536
|
export const de_StartAssessmentCommand = async (output, context) => {
|
|
991
537
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
992
|
-
return
|
|
538
|
+
return de_CommandError(output, context);
|
|
993
539
|
}
|
|
994
540
|
const contents = map({
|
|
995
541
|
$metadata: deserializeMetadata(output),
|
|
@@ -1001,37 +547,9 @@ export const de_StartAssessmentCommand = async (output, context) => {
|
|
|
1001
547
|
Object.assign(contents, doc);
|
|
1002
548
|
return contents;
|
|
1003
549
|
};
|
|
1004
|
-
const de_StartAssessmentCommandError = async (output, context) => {
|
|
1005
|
-
const parsedOutput = {
|
|
1006
|
-
...output,
|
|
1007
|
-
body: await parseErrorBody(output.body, context),
|
|
1008
|
-
};
|
|
1009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1010
|
-
switch (errorCode) {
|
|
1011
|
-
case "AccessDeniedException":
|
|
1012
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1013
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "InternalServerException":
|
|
1015
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1016
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "ServiceQuotaExceededException":
|
|
1018
|
-
case "com.amazonaws.migrationhubstrategy#ServiceQuotaExceededException":
|
|
1019
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "ThrottlingException":
|
|
1021
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1022
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1023
|
-
default:
|
|
1024
|
-
const parsedBody = parsedOutput.body;
|
|
1025
|
-
return throwDefaultError({
|
|
1026
|
-
output,
|
|
1027
|
-
parsedBody,
|
|
1028
|
-
errorCode,
|
|
1029
|
-
});
|
|
1030
|
-
}
|
|
1031
|
-
};
|
|
1032
550
|
export const de_StartImportFileTaskCommand = async (output, context) => {
|
|
1033
551
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1034
|
-
return
|
|
552
|
+
return de_CommandError(output, context);
|
|
1035
553
|
}
|
|
1036
554
|
const contents = map({
|
|
1037
555
|
$metadata: deserializeMetadata(output),
|
|
@@ -1043,40 +561,9 @@ export const de_StartImportFileTaskCommand = async (output, context) => {
|
|
|
1043
561
|
Object.assign(contents, doc);
|
|
1044
562
|
return contents;
|
|
1045
563
|
};
|
|
1046
|
-
const de_StartImportFileTaskCommandError = async (output, context) => {
|
|
1047
|
-
const parsedOutput = {
|
|
1048
|
-
...output,
|
|
1049
|
-
body: await parseErrorBody(output.body, context),
|
|
1050
|
-
};
|
|
1051
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1052
|
-
switch (errorCode) {
|
|
1053
|
-
case "AccessDeniedException":
|
|
1054
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1055
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "InternalServerException":
|
|
1057
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1058
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "ServiceQuotaExceededException":
|
|
1060
|
-
case "com.amazonaws.migrationhubstrategy#ServiceQuotaExceededException":
|
|
1061
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "ThrottlingException":
|
|
1063
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1064
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "ValidationException":
|
|
1066
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1067
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1068
|
-
default:
|
|
1069
|
-
const parsedBody = parsedOutput.body;
|
|
1070
|
-
return throwDefaultError({
|
|
1071
|
-
output,
|
|
1072
|
-
parsedBody,
|
|
1073
|
-
errorCode,
|
|
1074
|
-
});
|
|
1075
|
-
}
|
|
1076
|
-
};
|
|
1077
564
|
export const de_StartRecommendationReportGenerationCommand = async (output, context) => {
|
|
1078
565
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1079
|
-
return
|
|
566
|
+
return de_CommandError(output, context);
|
|
1080
567
|
}
|
|
1081
568
|
const contents = map({
|
|
1082
569
|
$metadata: deserializeMetadata(output),
|
|
@@ -1088,40 +575,9 @@ export const de_StartRecommendationReportGenerationCommand = async (output, cont
|
|
|
1088
575
|
Object.assign(contents, doc);
|
|
1089
576
|
return contents;
|
|
1090
577
|
};
|
|
1091
|
-
const de_StartRecommendationReportGenerationCommandError = async (output, context) => {
|
|
1092
|
-
const parsedOutput = {
|
|
1093
|
-
...output,
|
|
1094
|
-
body: await parseErrorBody(output.body, context),
|
|
1095
|
-
};
|
|
1096
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1097
|
-
switch (errorCode) {
|
|
1098
|
-
case "AccessDeniedException":
|
|
1099
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1100
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ConflictException":
|
|
1102
|
-
case "com.amazonaws.migrationhubstrategy#ConflictException":
|
|
1103
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "InternalServerException":
|
|
1105
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1106
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1107
|
-
case "ThrottlingException":
|
|
1108
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1109
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1110
|
-
case "ValidationException":
|
|
1111
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1112
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1113
|
-
default:
|
|
1114
|
-
const parsedBody = parsedOutput.body;
|
|
1115
|
-
return throwDefaultError({
|
|
1116
|
-
output,
|
|
1117
|
-
parsedBody,
|
|
1118
|
-
errorCode,
|
|
1119
|
-
});
|
|
1120
|
-
}
|
|
1121
|
-
};
|
|
1122
578
|
export const de_StopAssessmentCommand = async (output, context) => {
|
|
1123
579
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1124
|
-
return
|
|
580
|
+
return de_CommandError(output, context);
|
|
1125
581
|
}
|
|
1126
582
|
const contents = map({
|
|
1127
583
|
$metadata: deserializeMetadata(output),
|
|
@@ -1129,37 +585,9 @@ export const de_StopAssessmentCommand = async (output, context) => {
|
|
|
1129
585
|
await collectBody(output.body, context);
|
|
1130
586
|
return contents;
|
|
1131
587
|
};
|
|
1132
|
-
const de_StopAssessmentCommandError = async (output, context) => {
|
|
1133
|
-
const parsedOutput = {
|
|
1134
|
-
...output,
|
|
1135
|
-
body: await parseErrorBody(output.body, context),
|
|
1136
|
-
};
|
|
1137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1138
|
-
switch (errorCode) {
|
|
1139
|
-
case "AccessDeniedException":
|
|
1140
|
-
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
1141
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1142
|
-
case "InternalServerException":
|
|
1143
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1144
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1145
|
-
case "ThrottlingException":
|
|
1146
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1147
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "ValidationException":
|
|
1149
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1150
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1151
|
-
default:
|
|
1152
|
-
const parsedBody = parsedOutput.body;
|
|
1153
|
-
return throwDefaultError({
|
|
1154
|
-
output,
|
|
1155
|
-
parsedBody,
|
|
1156
|
-
errorCode,
|
|
1157
|
-
});
|
|
1158
|
-
}
|
|
1159
|
-
};
|
|
1160
588
|
export const de_UpdateApplicationComponentConfigCommand = async (output, context) => {
|
|
1161
589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1162
|
-
return
|
|
590
|
+
return de_CommandError(output, context);
|
|
1163
591
|
}
|
|
1164
592
|
const contents = map({
|
|
1165
593
|
$metadata: deserializeMetadata(output),
|
|
@@ -1167,37 +595,9 @@ export const de_UpdateApplicationComponentConfigCommand = async (output, context
|
|
|
1167
595
|
await collectBody(output.body, context);
|
|
1168
596
|
return contents;
|
|
1169
597
|
};
|
|
1170
|
-
const de_UpdateApplicationComponentConfigCommandError = async (output, context) => {
|
|
1171
|
-
const parsedOutput = {
|
|
1172
|
-
...output,
|
|
1173
|
-
body: await parseErrorBody(output.body, context),
|
|
1174
|
-
};
|
|
1175
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1176
|
-
switch (errorCode) {
|
|
1177
|
-
case "InternalServerException":
|
|
1178
|
-
case "com.amazonaws.migrationhubstrategy#InternalServerException":
|
|
1179
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1180
|
-
case "ResourceNotFoundException":
|
|
1181
|
-
case "com.amazonaws.migrationhubstrategy#ResourceNotFoundException":
|
|
1182
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1183
|
-
case "ThrottlingException":
|
|
1184
|
-
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1185
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1186
|
-
case "ValidationException":
|
|
1187
|
-
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1188
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1189
|
-
default:
|
|
1190
|
-
const parsedBody = parsedOutput.body;
|
|
1191
|
-
return throwDefaultError({
|
|
1192
|
-
output,
|
|
1193
|
-
parsedBody,
|
|
1194
|
-
errorCode,
|
|
1195
|
-
});
|
|
1196
|
-
}
|
|
1197
|
-
};
|
|
1198
598
|
export const de_UpdateServerConfigCommand = async (output, context) => {
|
|
1199
599
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1200
|
-
return
|
|
600
|
+
return de_CommandError(output, context);
|
|
1201
601
|
}
|
|
1202
602
|
const contents = map({
|
|
1203
603
|
$metadata: deserializeMetadata(output),
|
|
@@ -1205,7 +605,7 @@ export const de_UpdateServerConfigCommand = async (output, context) => {
|
|
|
1205
605
|
await collectBody(output.body, context);
|
|
1206
606
|
return contents;
|
|
1207
607
|
};
|
|
1208
|
-
const
|
|
608
|
+
const de_CommandError = async (output, context) => {
|
|
1209
609
|
const parsedOutput = {
|
|
1210
610
|
...output,
|
|
1211
611
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1221,9 +621,24 @@ const de_UpdateServerConfigCommandError = async (output, context) => {
|
|
|
1221
621
|
case "ThrottlingException":
|
|
1222
622
|
case "com.amazonaws.migrationhubstrategy#ThrottlingException":
|
|
1223
623
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
624
|
+
case "AccessDeniedException":
|
|
625
|
+
case "com.amazonaws.migrationhubstrategy#AccessDeniedException":
|
|
626
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1224
627
|
case "ValidationException":
|
|
1225
628
|
case "com.amazonaws.migrationhubstrategy#ValidationException":
|
|
1226
629
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
630
|
+
case "DependencyException":
|
|
631
|
+
case "com.amazonaws.migrationhubstrategy#DependencyException":
|
|
632
|
+
throw await de_DependencyExceptionRes(parsedOutput, context);
|
|
633
|
+
case "ServiceLinkedRoleLockClientException":
|
|
634
|
+
case "com.amazonaws.migrationhubstrategy#ServiceLinkedRoleLockClientException":
|
|
635
|
+
throw await de_ServiceLinkedRoleLockClientExceptionRes(parsedOutput, context);
|
|
636
|
+
case "ConflictException":
|
|
637
|
+
case "com.amazonaws.migrationhubstrategy#ConflictException":
|
|
638
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
639
|
+
case "ServiceQuotaExceededException":
|
|
640
|
+
case "com.amazonaws.migrationhubstrategy#ServiceQuotaExceededException":
|
|
641
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1227
642
|
default:
|
|
1228
643
|
const parsedBody = parsedOutput.body;
|
|
1229
644
|
return throwDefaultError({
|