@aws-sdk/client-migration-hub 3.503.1 → 3.507.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 +50 -696
- package/dist-es/protocols/Aws_json1_1.js +45 -691
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -486,7 +486,7 @@ var se_PutResourceAttributesCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
486
486
|
}, "se_PutResourceAttributesCommand");
|
|
487
487
|
var de_AssociateCreatedArtifactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
488
488
|
if (output.statusCode >= 300) {
|
|
489
|
-
return
|
|
489
|
+
return de_CommandError(output, context);
|
|
490
490
|
}
|
|
491
491
|
const data = await parseBody(output.body, context);
|
|
492
492
|
let contents = {};
|
|
@@ -497,52 +497,9 @@ var de_AssociateCreatedArtifactCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
497
497
|
};
|
|
498
498
|
return response;
|
|
499
499
|
}, "de_AssociateCreatedArtifactCommand");
|
|
500
|
-
var de_AssociateCreatedArtifactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
501
|
-
const parsedOutput = {
|
|
502
|
-
...output,
|
|
503
|
-
body: await parseErrorBody(output.body, context)
|
|
504
|
-
};
|
|
505
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
506
|
-
switch (errorCode) {
|
|
507
|
-
case "AccessDeniedException":
|
|
508
|
-
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
509
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
510
|
-
case "DryRunOperation":
|
|
511
|
-
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
512
|
-
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
513
|
-
case "HomeRegionNotSetException":
|
|
514
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
515
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
516
|
-
case "InternalServerError":
|
|
517
|
-
case "com.amazonaws.migrationhub#InternalServerError":
|
|
518
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
519
|
-
case "InvalidInputException":
|
|
520
|
-
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
521
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
522
|
-
case "ResourceNotFoundException":
|
|
523
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
524
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
525
|
-
case "ServiceUnavailableException":
|
|
526
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
527
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
528
|
-
case "ThrottlingException":
|
|
529
|
-
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
530
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
531
|
-
case "UnauthorizedOperation":
|
|
532
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
533
|
-
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
534
|
-
default:
|
|
535
|
-
const parsedBody = parsedOutput.body;
|
|
536
|
-
return throwDefaultError({
|
|
537
|
-
output,
|
|
538
|
-
parsedBody,
|
|
539
|
-
errorCode
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
|
-
}, "de_AssociateCreatedArtifactCommandError");
|
|
543
500
|
var de_AssociateDiscoveredResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
544
501
|
if (output.statusCode >= 300) {
|
|
545
|
-
return
|
|
502
|
+
return de_CommandError(output, context);
|
|
546
503
|
}
|
|
547
504
|
const data = await parseBody(output.body, context);
|
|
548
505
|
let contents = {};
|
|
@@ -553,55 +510,9 @@ var de_AssociateDiscoveredResourceCommand = /* @__PURE__ */ __name(async (output
|
|
|
553
510
|
};
|
|
554
511
|
return response;
|
|
555
512
|
}, "de_AssociateDiscoveredResourceCommand");
|
|
556
|
-
var de_AssociateDiscoveredResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
557
|
-
const parsedOutput = {
|
|
558
|
-
...output,
|
|
559
|
-
body: await parseErrorBody(output.body, context)
|
|
560
|
-
};
|
|
561
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
562
|
-
switch (errorCode) {
|
|
563
|
-
case "AccessDeniedException":
|
|
564
|
-
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
565
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
566
|
-
case "DryRunOperation":
|
|
567
|
-
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
568
|
-
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
569
|
-
case "HomeRegionNotSetException":
|
|
570
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
571
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
572
|
-
case "InternalServerError":
|
|
573
|
-
case "com.amazonaws.migrationhub#InternalServerError":
|
|
574
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
575
|
-
case "InvalidInputException":
|
|
576
|
-
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
577
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
578
|
-
case "PolicyErrorException":
|
|
579
|
-
case "com.amazonaws.migrationhub#PolicyErrorException":
|
|
580
|
-
throw await de_PolicyErrorExceptionRes(parsedOutput, context);
|
|
581
|
-
case "ResourceNotFoundException":
|
|
582
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
583
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
584
|
-
case "ServiceUnavailableException":
|
|
585
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
586
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
587
|
-
case "ThrottlingException":
|
|
588
|
-
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
589
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
590
|
-
case "UnauthorizedOperation":
|
|
591
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
592
|
-
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
593
|
-
default:
|
|
594
|
-
const parsedBody = parsedOutput.body;
|
|
595
|
-
return throwDefaultError({
|
|
596
|
-
output,
|
|
597
|
-
parsedBody,
|
|
598
|
-
errorCode
|
|
599
|
-
});
|
|
600
|
-
}
|
|
601
|
-
}, "de_AssociateDiscoveredResourceCommandError");
|
|
602
513
|
var de_CreateProgressUpdateStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
603
514
|
if (output.statusCode >= 300) {
|
|
604
|
-
return
|
|
515
|
+
return de_CommandError(output, context);
|
|
605
516
|
}
|
|
606
517
|
const data = await parseBody(output.body, context);
|
|
607
518
|
let contents = {};
|
|
@@ -612,49 +523,9 @@ var de_CreateProgressUpdateStreamCommand = /* @__PURE__ */ __name(async (output,
|
|
|
612
523
|
};
|
|
613
524
|
return response;
|
|
614
525
|
}, "de_CreateProgressUpdateStreamCommand");
|
|
615
|
-
var de_CreateProgressUpdateStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
616
|
-
const parsedOutput = {
|
|
617
|
-
...output,
|
|
618
|
-
body: await parseErrorBody(output.body, context)
|
|
619
|
-
};
|
|
620
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
621
|
-
switch (errorCode) {
|
|
622
|
-
case "AccessDeniedException":
|
|
623
|
-
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
624
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
625
|
-
case "DryRunOperation":
|
|
626
|
-
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
627
|
-
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
628
|
-
case "HomeRegionNotSetException":
|
|
629
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
630
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
631
|
-
case "InternalServerError":
|
|
632
|
-
case "com.amazonaws.migrationhub#InternalServerError":
|
|
633
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
634
|
-
case "InvalidInputException":
|
|
635
|
-
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
636
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
637
|
-
case "ServiceUnavailableException":
|
|
638
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
639
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
640
|
-
case "ThrottlingException":
|
|
641
|
-
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
642
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
643
|
-
case "UnauthorizedOperation":
|
|
644
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
645
|
-
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
646
|
-
default:
|
|
647
|
-
const parsedBody = parsedOutput.body;
|
|
648
|
-
return throwDefaultError({
|
|
649
|
-
output,
|
|
650
|
-
parsedBody,
|
|
651
|
-
errorCode
|
|
652
|
-
});
|
|
653
|
-
}
|
|
654
|
-
}, "de_CreateProgressUpdateStreamCommandError");
|
|
655
526
|
var de_DeleteProgressUpdateStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
656
527
|
if (output.statusCode >= 300) {
|
|
657
|
-
return
|
|
528
|
+
return de_CommandError(output, context);
|
|
658
529
|
}
|
|
659
530
|
const data = await parseBody(output.body, context);
|
|
660
531
|
let contents = {};
|
|
@@ -665,52 +536,9 @@ var de_DeleteProgressUpdateStreamCommand = /* @__PURE__ */ __name(async (output,
|
|
|
665
536
|
};
|
|
666
537
|
return response;
|
|
667
538
|
}, "de_DeleteProgressUpdateStreamCommand");
|
|
668
|
-
var de_DeleteProgressUpdateStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
669
|
-
const parsedOutput = {
|
|
670
|
-
...output,
|
|
671
|
-
body: await parseErrorBody(output.body, context)
|
|
672
|
-
};
|
|
673
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
674
|
-
switch (errorCode) {
|
|
675
|
-
case "AccessDeniedException":
|
|
676
|
-
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
677
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
678
|
-
case "DryRunOperation":
|
|
679
|
-
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
680
|
-
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
681
|
-
case "HomeRegionNotSetException":
|
|
682
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
683
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
684
|
-
case "InternalServerError":
|
|
685
|
-
case "com.amazonaws.migrationhub#InternalServerError":
|
|
686
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
687
|
-
case "InvalidInputException":
|
|
688
|
-
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
689
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
690
|
-
case "ResourceNotFoundException":
|
|
691
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
692
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
693
|
-
case "ServiceUnavailableException":
|
|
694
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
695
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
696
|
-
case "ThrottlingException":
|
|
697
|
-
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
698
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
699
|
-
case "UnauthorizedOperation":
|
|
700
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
701
|
-
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
702
|
-
default:
|
|
703
|
-
const parsedBody = parsedOutput.body;
|
|
704
|
-
return throwDefaultError({
|
|
705
|
-
output,
|
|
706
|
-
parsedBody,
|
|
707
|
-
errorCode
|
|
708
|
-
});
|
|
709
|
-
}
|
|
710
|
-
}, "de_DeleteProgressUpdateStreamCommandError");
|
|
711
539
|
var de_DescribeApplicationStateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
712
540
|
if (output.statusCode >= 300) {
|
|
713
|
-
return
|
|
541
|
+
return de_CommandError(output, context);
|
|
714
542
|
}
|
|
715
543
|
const data = await parseBody(output.body, context);
|
|
716
544
|
let contents = {};
|
|
@@ -721,49 +549,9 @@ var de_DescribeApplicationStateCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
721
549
|
};
|
|
722
550
|
return response;
|
|
723
551
|
}, "de_DescribeApplicationStateCommand");
|
|
724
|
-
var de_DescribeApplicationStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
725
|
-
const parsedOutput = {
|
|
726
|
-
...output,
|
|
727
|
-
body: await parseErrorBody(output.body, context)
|
|
728
|
-
};
|
|
729
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
730
|
-
switch (errorCode) {
|
|
731
|
-
case "AccessDeniedException":
|
|
732
|
-
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
733
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
734
|
-
case "HomeRegionNotSetException":
|
|
735
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
736
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
737
|
-
case "InternalServerError":
|
|
738
|
-
case "com.amazonaws.migrationhub#InternalServerError":
|
|
739
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
740
|
-
case "InvalidInputException":
|
|
741
|
-
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
742
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
743
|
-
case "PolicyErrorException":
|
|
744
|
-
case "com.amazonaws.migrationhub#PolicyErrorException":
|
|
745
|
-
throw await de_PolicyErrorExceptionRes(parsedOutput, context);
|
|
746
|
-
case "ResourceNotFoundException":
|
|
747
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
748
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
749
|
-
case "ServiceUnavailableException":
|
|
750
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
751
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
752
|
-
case "ThrottlingException":
|
|
753
|
-
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
754
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
755
|
-
default:
|
|
756
|
-
const parsedBody = parsedOutput.body;
|
|
757
|
-
return throwDefaultError({
|
|
758
|
-
output,
|
|
759
|
-
parsedBody,
|
|
760
|
-
errorCode
|
|
761
|
-
});
|
|
762
|
-
}
|
|
763
|
-
}, "de_DescribeApplicationStateCommandError");
|
|
764
552
|
var de_DescribeMigrationTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
765
553
|
if (output.statusCode >= 300) {
|
|
766
|
-
return
|
|
554
|
+
return de_CommandError(output, context);
|
|
767
555
|
}
|
|
768
556
|
const data = await parseBody(output.body, context);
|
|
769
557
|
let contents = {};
|
|
@@ -774,46 +562,9 @@ var de_DescribeMigrationTaskCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
774
562
|
};
|
|
775
563
|
return response;
|
|
776
564
|
}, "de_DescribeMigrationTaskCommand");
|
|
777
|
-
var de_DescribeMigrationTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
778
|
-
const parsedOutput = {
|
|
779
|
-
...output,
|
|
780
|
-
body: await parseErrorBody(output.body, context)
|
|
781
|
-
};
|
|
782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
|
-
switch (errorCode) {
|
|
784
|
-
case "AccessDeniedException":
|
|
785
|
-
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
786
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
787
|
-
case "HomeRegionNotSetException":
|
|
788
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
789
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
790
|
-
case "InternalServerError":
|
|
791
|
-
case "com.amazonaws.migrationhub#InternalServerError":
|
|
792
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
793
|
-
case "InvalidInputException":
|
|
794
|
-
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
795
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
796
|
-
case "ResourceNotFoundException":
|
|
797
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
798
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
799
|
-
case "ServiceUnavailableException":
|
|
800
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
801
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
802
|
-
case "ThrottlingException":
|
|
803
|
-
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
804
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
805
|
-
default:
|
|
806
|
-
const parsedBody = parsedOutput.body;
|
|
807
|
-
return throwDefaultError({
|
|
808
|
-
output,
|
|
809
|
-
parsedBody,
|
|
810
|
-
errorCode
|
|
811
|
-
});
|
|
812
|
-
}
|
|
813
|
-
}, "de_DescribeMigrationTaskCommandError");
|
|
814
565
|
var de_DisassociateCreatedArtifactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
815
566
|
if (output.statusCode >= 300) {
|
|
816
|
-
return
|
|
567
|
+
return de_CommandError(output, context);
|
|
817
568
|
}
|
|
818
569
|
const data = await parseBody(output.body, context);
|
|
819
570
|
let contents = {};
|
|
@@ -824,211 +575,48 @@ var de_DisassociateCreatedArtifactCommand = /* @__PURE__ */ __name(async (output
|
|
|
824
575
|
};
|
|
825
576
|
return response;
|
|
826
577
|
}, "de_DisassociateCreatedArtifactCommand");
|
|
827
|
-
var de_DisassociateCreatedArtifactCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
828
|
-
const parsedOutput = {
|
|
829
|
-
...output,
|
|
830
|
-
body: await parseErrorBody(output.body, context)
|
|
831
|
-
};
|
|
832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
833
|
-
switch (errorCode) {
|
|
834
|
-
case "AccessDeniedException":
|
|
835
|
-
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
836
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
837
|
-
case "DryRunOperation":
|
|
838
|
-
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
839
|
-
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
840
|
-
case "HomeRegionNotSetException":
|
|
841
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
842
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
843
|
-
case "InternalServerError":
|
|
844
|
-
case "com.amazonaws.migrationhub#InternalServerError":
|
|
845
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
846
|
-
case "InvalidInputException":
|
|
847
|
-
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
848
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
849
|
-
case "ResourceNotFoundException":
|
|
850
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
851
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ServiceUnavailableException":
|
|
853
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
854
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
855
|
-
case "ThrottlingException":
|
|
856
|
-
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
857
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
858
|
-
case "UnauthorizedOperation":
|
|
859
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
860
|
-
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
861
|
-
default:
|
|
862
|
-
const parsedBody = parsedOutput.body;
|
|
863
|
-
return throwDefaultError({
|
|
864
|
-
output,
|
|
865
|
-
parsedBody,
|
|
866
|
-
errorCode
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
}, "de_DisassociateCreatedArtifactCommandError");
|
|
870
578
|
var de_DisassociateDiscoveredResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
871
579
|
if (output.statusCode >= 300) {
|
|
872
|
-
return
|
|
873
|
-
}
|
|
874
|
-
const data = await parseBody(output.body, context);
|
|
875
|
-
let contents = {};
|
|
876
|
-
contents = (0, import_smithy_client._json)(data);
|
|
877
|
-
const response = {
|
|
878
|
-
$metadata: deserializeMetadata(output),
|
|
879
|
-
...contents
|
|
880
|
-
};
|
|
881
|
-
return response;
|
|
882
|
-
}, "de_DisassociateDiscoveredResourceCommand");
|
|
883
|
-
var de_DisassociateDiscoveredResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
884
|
-
const parsedOutput = {
|
|
885
|
-
...output,
|
|
886
|
-
body: await parseErrorBody(output.body, context)
|
|
887
|
-
};
|
|
888
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
889
|
-
switch (errorCode) {
|
|
890
|
-
case "AccessDeniedException":
|
|
891
|
-
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
892
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
893
|
-
case "DryRunOperation":
|
|
894
|
-
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
895
|
-
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
896
|
-
case "HomeRegionNotSetException":
|
|
897
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
898
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
899
|
-
case "InternalServerError":
|
|
900
|
-
case "com.amazonaws.migrationhub#InternalServerError":
|
|
901
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
902
|
-
case "InvalidInputException":
|
|
903
|
-
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
904
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
905
|
-
case "ResourceNotFoundException":
|
|
906
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
907
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
908
|
-
case "ServiceUnavailableException":
|
|
909
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
910
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
911
|
-
case "ThrottlingException":
|
|
912
|
-
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
913
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
914
|
-
case "UnauthorizedOperation":
|
|
915
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
916
|
-
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
917
|
-
default:
|
|
918
|
-
const parsedBody = parsedOutput.body;
|
|
919
|
-
return throwDefaultError({
|
|
920
|
-
output,
|
|
921
|
-
parsedBody,
|
|
922
|
-
errorCode
|
|
923
|
-
});
|
|
924
|
-
}
|
|
925
|
-
}, "de_DisassociateDiscoveredResourceCommandError");
|
|
926
|
-
var de_ImportMigrationTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
927
|
-
if (output.statusCode >= 300) {
|
|
928
|
-
return de_ImportMigrationTaskCommandError(output, context);
|
|
580
|
+
return de_CommandError(output, context);
|
|
929
581
|
}
|
|
930
582
|
const data = await parseBody(output.body, context);
|
|
931
583
|
let contents = {};
|
|
932
584
|
contents = (0, import_smithy_client._json)(data);
|
|
933
585
|
const response = {
|
|
934
|
-
$metadata: deserializeMetadata(output),
|
|
935
|
-
...contents
|
|
936
|
-
};
|
|
937
|
-
return response;
|
|
938
|
-
}, "
|
|
939
|
-
var
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
case "InternalServerError":
|
|
956
|
-
case "com.amazonaws.migrationhub#InternalServerError":
|
|
957
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
958
|
-
case "InvalidInputException":
|
|
959
|
-
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
960
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
961
|
-
case "ResourceNotFoundException":
|
|
962
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
963
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
964
|
-
case "ServiceUnavailableException":
|
|
965
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
966
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
967
|
-
case "ThrottlingException":
|
|
968
|
-
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
969
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
970
|
-
case "UnauthorizedOperation":
|
|
971
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
972
|
-
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
973
|
-
default:
|
|
974
|
-
const parsedBody = parsedOutput.body;
|
|
975
|
-
return throwDefaultError({
|
|
976
|
-
output,
|
|
977
|
-
parsedBody,
|
|
978
|
-
errorCode
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
}, "de_ImportMigrationTaskCommandError");
|
|
982
|
-
var de_ListApplicationStatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
983
|
-
if (output.statusCode >= 300) {
|
|
984
|
-
return de_ListApplicationStatesCommandError(output, context);
|
|
985
|
-
}
|
|
986
|
-
const data = await parseBody(output.body, context);
|
|
987
|
-
let contents = {};
|
|
988
|
-
contents = de_ListApplicationStatesResult(data, context);
|
|
989
|
-
const response = {
|
|
990
|
-
$metadata: deserializeMetadata(output),
|
|
991
|
-
...contents
|
|
992
|
-
};
|
|
993
|
-
return response;
|
|
994
|
-
}, "de_ListApplicationStatesCommand");
|
|
995
|
-
var de_ListApplicationStatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
996
|
-
const parsedOutput = {
|
|
997
|
-
...output,
|
|
998
|
-
body: await parseErrorBody(output.body, context)
|
|
999
|
-
};
|
|
1000
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
|
-
switch (errorCode) {
|
|
1002
|
-
case "AccessDeniedException":
|
|
1003
|
-
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1004
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "HomeRegionNotSetException":
|
|
1006
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1007
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "InternalServerError":
|
|
1009
|
-
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1010
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1011
|
-
case "InvalidInputException":
|
|
1012
|
-
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1013
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1014
|
-
case "ServiceUnavailableException":
|
|
1015
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1016
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "ThrottlingException":
|
|
1018
|
-
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1019
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1020
|
-
default:
|
|
1021
|
-
const parsedBody = parsedOutput.body;
|
|
1022
|
-
return throwDefaultError({
|
|
1023
|
-
output,
|
|
1024
|
-
parsedBody,
|
|
1025
|
-
errorCode
|
|
1026
|
-
});
|
|
586
|
+
$metadata: deserializeMetadata(output),
|
|
587
|
+
...contents
|
|
588
|
+
};
|
|
589
|
+
return response;
|
|
590
|
+
}, "de_DisassociateDiscoveredResourceCommand");
|
|
591
|
+
var de_ImportMigrationTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
592
|
+
if (output.statusCode >= 300) {
|
|
593
|
+
return de_CommandError(output, context);
|
|
594
|
+
}
|
|
595
|
+
const data = await parseBody(output.body, context);
|
|
596
|
+
let contents = {};
|
|
597
|
+
contents = (0, import_smithy_client._json)(data);
|
|
598
|
+
const response = {
|
|
599
|
+
$metadata: deserializeMetadata(output),
|
|
600
|
+
...contents
|
|
601
|
+
};
|
|
602
|
+
return response;
|
|
603
|
+
}, "de_ImportMigrationTaskCommand");
|
|
604
|
+
var de_ListApplicationStatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
605
|
+
if (output.statusCode >= 300) {
|
|
606
|
+
return de_CommandError(output, context);
|
|
1027
607
|
}
|
|
1028
|
-
|
|
608
|
+
const data = await parseBody(output.body, context);
|
|
609
|
+
let contents = {};
|
|
610
|
+
contents = de_ListApplicationStatesResult(data, context);
|
|
611
|
+
const response = {
|
|
612
|
+
$metadata: deserializeMetadata(output),
|
|
613
|
+
...contents
|
|
614
|
+
};
|
|
615
|
+
return response;
|
|
616
|
+
}, "de_ListApplicationStatesCommand");
|
|
1029
617
|
var de_ListCreatedArtifactsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1030
618
|
if (output.statusCode >= 300) {
|
|
1031
|
-
return
|
|
619
|
+
return de_CommandError(output, context);
|
|
1032
620
|
}
|
|
1033
621
|
const data = await parseBody(output.body, context);
|
|
1034
622
|
let contents = {};
|
|
@@ -1039,46 +627,9 @@ var de_ListCreatedArtifactsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1039
627
|
};
|
|
1040
628
|
return response;
|
|
1041
629
|
}, "de_ListCreatedArtifactsCommand");
|
|
1042
|
-
var de_ListCreatedArtifactsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1043
|
-
const parsedOutput = {
|
|
1044
|
-
...output,
|
|
1045
|
-
body: await parseErrorBody(output.body, context)
|
|
1046
|
-
};
|
|
1047
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1048
|
-
switch (errorCode) {
|
|
1049
|
-
case "AccessDeniedException":
|
|
1050
|
-
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1051
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1052
|
-
case "HomeRegionNotSetException":
|
|
1053
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1054
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1055
|
-
case "InternalServerError":
|
|
1056
|
-
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1057
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1058
|
-
case "InvalidInputException":
|
|
1059
|
-
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1060
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "ResourceNotFoundException":
|
|
1062
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
1063
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "ServiceUnavailableException":
|
|
1065
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1066
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ThrottlingException":
|
|
1068
|
-
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1069
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1070
|
-
default:
|
|
1071
|
-
const parsedBody = parsedOutput.body;
|
|
1072
|
-
return throwDefaultError({
|
|
1073
|
-
output,
|
|
1074
|
-
parsedBody,
|
|
1075
|
-
errorCode
|
|
1076
|
-
});
|
|
1077
|
-
}
|
|
1078
|
-
}, "de_ListCreatedArtifactsCommandError");
|
|
1079
630
|
var de_ListDiscoveredResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1080
631
|
if (output.statusCode >= 300) {
|
|
1081
|
-
return
|
|
632
|
+
return de_CommandError(output, context);
|
|
1082
633
|
}
|
|
1083
634
|
const data = await parseBody(output.body, context);
|
|
1084
635
|
let contents = {};
|
|
@@ -1089,46 +640,9 @@ var de_ListDiscoveredResourcesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1089
640
|
};
|
|
1090
641
|
return response;
|
|
1091
642
|
}, "de_ListDiscoveredResourcesCommand");
|
|
1092
|
-
var de_ListDiscoveredResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1093
|
-
const parsedOutput = {
|
|
1094
|
-
...output,
|
|
1095
|
-
body: await parseErrorBody(output.body, context)
|
|
1096
|
-
};
|
|
1097
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1098
|
-
switch (errorCode) {
|
|
1099
|
-
case "AccessDeniedException":
|
|
1100
|
-
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1101
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "HomeRegionNotSetException":
|
|
1103
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1104
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "InternalServerError":
|
|
1106
|
-
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1107
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1108
|
-
case "InvalidInputException":
|
|
1109
|
-
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1110
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "ResourceNotFoundException":
|
|
1112
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
1113
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ServiceUnavailableException":
|
|
1115
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1116
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "ThrottlingException":
|
|
1118
|
-
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1119
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1120
|
-
default:
|
|
1121
|
-
const parsedBody = parsedOutput.body;
|
|
1122
|
-
return throwDefaultError({
|
|
1123
|
-
output,
|
|
1124
|
-
parsedBody,
|
|
1125
|
-
errorCode
|
|
1126
|
-
});
|
|
1127
|
-
}
|
|
1128
|
-
}, "de_ListDiscoveredResourcesCommandError");
|
|
1129
643
|
var de_ListMigrationTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1130
644
|
if (output.statusCode >= 300) {
|
|
1131
|
-
return
|
|
645
|
+
return de_CommandError(output, context);
|
|
1132
646
|
}
|
|
1133
647
|
const data = await parseBody(output.body, context);
|
|
1134
648
|
let contents = {};
|
|
@@ -1139,49 +653,9 @@ var de_ListMigrationTasksCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1139
653
|
};
|
|
1140
654
|
return response;
|
|
1141
655
|
}, "de_ListMigrationTasksCommand");
|
|
1142
|
-
var de_ListMigrationTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1143
|
-
const parsedOutput = {
|
|
1144
|
-
...output,
|
|
1145
|
-
body: await parseErrorBody(output.body, context)
|
|
1146
|
-
};
|
|
1147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1148
|
-
switch (errorCode) {
|
|
1149
|
-
case "AccessDeniedException":
|
|
1150
|
-
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1151
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "HomeRegionNotSetException":
|
|
1153
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1154
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1155
|
-
case "InternalServerError":
|
|
1156
|
-
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1157
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1158
|
-
case "InvalidInputException":
|
|
1159
|
-
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1160
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1161
|
-
case "PolicyErrorException":
|
|
1162
|
-
case "com.amazonaws.migrationhub#PolicyErrorException":
|
|
1163
|
-
throw await de_PolicyErrorExceptionRes(parsedOutput, context);
|
|
1164
|
-
case "ResourceNotFoundException":
|
|
1165
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
1166
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1167
|
-
case "ServiceUnavailableException":
|
|
1168
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1169
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "ThrottlingException":
|
|
1171
|
-
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1172
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1173
|
-
default:
|
|
1174
|
-
const parsedBody = parsedOutput.body;
|
|
1175
|
-
return throwDefaultError({
|
|
1176
|
-
output,
|
|
1177
|
-
parsedBody,
|
|
1178
|
-
errorCode
|
|
1179
|
-
});
|
|
1180
|
-
}
|
|
1181
|
-
}, "de_ListMigrationTasksCommandError");
|
|
1182
656
|
var de_ListProgressUpdateStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1183
657
|
if (output.statusCode >= 300) {
|
|
1184
|
-
return
|
|
658
|
+
return de_CommandError(output, context);
|
|
1185
659
|
}
|
|
1186
660
|
const data = await parseBody(output.body, context);
|
|
1187
661
|
let contents = {};
|
|
@@ -1192,43 +666,9 @@ var de_ListProgressUpdateStreamsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1192
666
|
};
|
|
1193
667
|
return response;
|
|
1194
668
|
}, "de_ListProgressUpdateStreamsCommand");
|
|
1195
|
-
var de_ListProgressUpdateStreamsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1196
|
-
const parsedOutput = {
|
|
1197
|
-
...output,
|
|
1198
|
-
body: await parseErrorBody(output.body, context)
|
|
1199
|
-
};
|
|
1200
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
|
-
switch (errorCode) {
|
|
1202
|
-
case "AccessDeniedException":
|
|
1203
|
-
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1204
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1205
|
-
case "HomeRegionNotSetException":
|
|
1206
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1207
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1208
|
-
case "InternalServerError":
|
|
1209
|
-
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1210
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1211
|
-
case "InvalidInputException":
|
|
1212
|
-
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1213
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1214
|
-
case "ServiceUnavailableException":
|
|
1215
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1216
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1217
|
-
case "ThrottlingException":
|
|
1218
|
-
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1219
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1220
|
-
default:
|
|
1221
|
-
const parsedBody = parsedOutput.body;
|
|
1222
|
-
return throwDefaultError({
|
|
1223
|
-
output,
|
|
1224
|
-
parsedBody,
|
|
1225
|
-
errorCode
|
|
1226
|
-
});
|
|
1227
|
-
}
|
|
1228
|
-
}, "de_ListProgressUpdateStreamsCommandError");
|
|
1229
669
|
var de_NotifyApplicationStateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1230
670
|
if (output.statusCode >= 300) {
|
|
1231
|
-
return
|
|
671
|
+
return de_CommandError(output, context);
|
|
1232
672
|
}
|
|
1233
673
|
const data = await parseBody(output.body, context);
|
|
1234
674
|
let contents = {};
|
|
@@ -1239,55 +679,9 @@ var de_NotifyApplicationStateCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1239
679
|
};
|
|
1240
680
|
return response;
|
|
1241
681
|
}, "de_NotifyApplicationStateCommand");
|
|
1242
|
-
var de_NotifyApplicationStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1243
|
-
const parsedOutput = {
|
|
1244
|
-
...output,
|
|
1245
|
-
body: await parseErrorBody(output.body, context)
|
|
1246
|
-
};
|
|
1247
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1248
|
-
switch (errorCode) {
|
|
1249
|
-
case "AccessDeniedException":
|
|
1250
|
-
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1251
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1252
|
-
case "DryRunOperation":
|
|
1253
|
-
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
1254
|
-
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
1255
|
-
case "HomeRegionNotSetException":
|
|
1256
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1257
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1258
|
-
case "InternalServerError":
|
|
1259
|
-
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1260
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1261
|
-
case "InvalidInputException":
|
|
1262
|
-
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1263
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1264
|
-
case "PolicyErrorException":
|
|
1265
|
-
case "com.amazonaws.migrationhub#PolicyErrorException":
|
|
1266
|
-
throw await de_PolicyErrorExceptionRes(parsedOutput, context);
|
|
1267
|
-
case "ResourceNotFoundException":
|
|
1268
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
1269
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1270
|
-
case "ServiceUnavailableException":
|
|
1271
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1272
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1273
|
-
case "ThrottlingException":
|
|
1274
|
-
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1275
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "UnauthorizedOperation":
|
|
1277
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
1278
|
-
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
1279
|
-
default:
|
|
1280
|
-
const parsedBody = parsedOutput.body;
|
|
1281
|
-
return throwDefaultError({
|
|
1282
|
-
output,
|
|
1283
|
-
parsedBody,
|
|
1284
|
-
errorCode
|
|
1285
|
-
});
|
|
1286
|
-
}
|
|
1287
|
-
}, "de_NotifyApplicationStateCommandError");
|
|
1288
682
|
var de_NotifyMigrationTaskStateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1289
683
|
if (output.statusCode >= 300) {
|
|
1290
|
-
return
|
|
684
|
+
return de_CommandError(output, context);
|
|
1291
685
|
}
|
|
1292
686
|
const data = await parseBody(output.body, context);
|
|
1293
687
|
let contents = {};
|
|
@@ -1298,52 +692,9 @@ var de_NotifyMigrationTaskStateCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1298
692
|
};
|
|
1299
693
|
return response;
|
|
1300
694
|
}, "de_NotifyMigrationTaskStateCommand");
|
|
1301
|
-
var de_NotifyMigrationTaskStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1302
|
-
const parsedOutput = {
|
|
1303
|
-
...output,
|
|
1304
|
-
body: await parseErrorBody(output.body, context)
|
|
1305
|
-
};
|
|
1306
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
|
-
switch (errorCode) {
|
|
1308
|
-
case "AccessDeniedException":
|
|
1309
|
-
case "com.amazonaws.migrationhub#AccessDeniedException":
|
|
1310
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "DryRunOperation":
|
|
1312
|
-
case "com.amazonaws.migrationhub#DryRunOperation":
|
|
1313
|
-
throw await de_DryRunOperationRes(parsedOutput, context);
|
|
1314
|
-
case "HomeRegionNotSetException":
|
|
1315
|
-
case "com.amazonaws.migrationhub#HomeRegionNotSetException":
|
|
1316
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
1317
|
-
case "InternalServerError":
|
|
1318
|
-
case "com.amazonaws.migrationhub#InternalServerError":
|
|
1319
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1320
|
-
case "InvalidInputException":
|
|
1321
|
-
case "com.amazonaws.migrationhub#InvalidInputException":
|
|
1322
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "ResourceNotFoundException":
|
|
1324
|
-
case "com.amazonaws.migrationhub#ResourceNotFoundException":
|
|
1325
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1326
|
-
case "ServiceUnavailableException":
|
|
1327
|
-
case "com.amazonaws.migrationhub#ServiceUnavailableException":
|
|
1328
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1329
|
-
case "ThrottlingException":
|
|
1330
|
-
case "com.amazonaws.migrationhub#ThrottlingException":
|
|
1331
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1332
|
-
case "UnauthorizedOperation":
|
|
1333
|
-
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
1334
|
-
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
1335
|
-
default:
|
|
1336
|
-
const parsedBody = parsedOutput.body;
|
|
1337
|
-
return throwDefaultError({
|
|
1338
|
-
output,
|
|
1339
|
-
parsedBody,
|
|
1340
|
-
errorCode
|
|
1341
|
-
});
|
|
1342
|
-
}
|
|
1343
|
-
}, "de_NotifyMigrationTaskStateCommandError");
|
|
1344
695
|
var de_PutResourceAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1345
696
|
if (output.statusCode >= 300) {
|
|
1346
|
-
return
|
|
697
|
+
return de_CommandError(output, context);
|
|
1347
698
|
}
|
|
1348
699
|
const data = await parseBody(output.body, context);
|
|
1349
700
|
let contents = {};
|
|
@@ -1354,7 +705,7 @@ var de_PutResourceAttributesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1354
705
|
};
|
|
1355
706
|
return response;
|
|
1356
707
|
}, "de_PutResourceAttributesCommand");
|
|
1357
|
-
var
|
|
708
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1358
709
|
const parsedOutput = {
|
|
1359
710
|
...output,
|
|
1360
711
|
body: await parseErrorBody(output.body, context)
|
|
@@ -1388,6 +739,9 @@ var de_PutResourceAttributesCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
1388
739
|
case "UnauthorizedOperation":
|
|
1389
740
|
case "com.amazonaws.migrationhub#UnauthorizedOperation":
|
|
1390
741
|
throw await de_UnauthorizedOperationRes(parsedOutput, context);
|
|
742
|
+
case "PolicyErrorException":
|
|
743
|
+
case "com.amazonaws.migrationhub#PolicyErrorException":
|
|
744
|
+
throw await de_PolicyErrorExceptionRes(parsedOutput, context);
|
|
1391
745
|
default:
|
|
1392
746
|
const parsedBody = parsedOutput.body;
|
|
1393
747
|
return throwDefaultError({
|
|
@@ -1396,7 +750,7 @@ var de_PutResourceAttributesCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
1396
750
|
errorCode
|
|
1397
751
|
});
|
|
1398
752
|
}
|
|
1399
|
-
}, "
|
|
753
|
+
}, "de_CommandError");
|
|
1400
754
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1401
755
|
const body = parsedOutput.body;
|
|
1402
756
|
const deserialized = (0, import_smithy_client._json)(body);
|