@aws-sdk/client-migrationhubstrategy 3.52.0 → 3.53.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 +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/MigrationHubStrategyServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +108 -3
- package/dist-cjs/protocols/Aws_restJson1.js +255 -781
- package/dist-es/index.js +1 -0
- package/dist-es/models/MigrationHubStrategyServiceException.js +12 -0
- package/dist-es/models/models_0.js +98 -1
- package/dist-es/protocols/Aws_restJson1.js +485 -871
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/MigrationHubStrategyServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +58 -33
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/MigrationHubStrategyServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +42 -33
- package/package.json +25 -25
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { MigrationHubStrategyServiceException as __BaseException } from "../models/MigrationHubStrategyServiceException";
|
|
5
|
+
import { AccessDeniedException, ConflictException, DatabaseMigrationPreference, InternalServerException, ManagementPreference, ResourceNotFoundException, ServiceLinkedRoleLockClientException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
6
|
export var serializeAws_restJson1GetApplicationComponentDetailsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
7
8
|
return __generator(this, function (_c) {
|
|
@@ -603,16 +604,16 @@ export var deserializeAws_restJson1GetApplicationComponentDetailsCommand = funct
|
|
|
603
604
|
});
|
|
604
605
|
}); };
|
|
605
606
|
var deserializeAws_restJson1GetApplicationComponentDetailsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
606
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
607
|
-
var
|
|
608
|
-
return __generator(this, function (
|
|
609
|
-
switch (
|
|
607
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
608
|
+
var _c;
|
|
609
|
+
return __generator(this, function (_d) {
|
|
610
|
+
switch (_d.label) {
|
|
610
611
|
case 0:
|
|
611
612
|
_a = [__assign({}, output)];
|
|
612
|
-
|
|
613
|
+
_c = {};
|
|
613
614
|
return [4, parseBody(output.body, context)];
|
|
614
615
|
case 1:
|
|
615
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
616
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
616
617
|
errorCode = "UnknownError";
|
|
617
618
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
618
619
|
_b = errorCode;
|
|
@@ -625,34 +626,20 @@ var deserializeAws_restJson1GetApplicationComponentDetailsCommandError = functio
|
|
|
625
626
|
case "com.amazonaws.migrationhubstrategy#ThrottlingException": return [3, 6];
|
|
626
627
|
}
|
|
627
628
|
return [3, 8];
|
|
628
|
-
case 2:
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
case
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
case 4:
|
|
635
|
-
_d = [{}];
|
|
636
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
637
|
-
case 5:
|
|
638
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
639
|
-
return [3, 9];
|
|
640
|
-
case 6:
|
|
641
|
-
_e = [{}];
|
|
642
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
643
|
-
case 7:
|
|
644
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
645
|
-
return [3, 9];
|
|
629
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
630
|
+
case 3: throw _d.sent();
|
|
631
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
632
|
+
case 5: throw _d.sent();
|
|
633
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
634
|
+
case 7: throw _d.sent();
|
|
646
635
|
case 8:
|
|
647
636
|
parsedBody = parsedOutput.body;
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
response
|
|
654
|
-
delete response.Message;
|
|
655
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
637
|
+
response = new __BaseException({
|
|
638
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
639
|
+
$fault: "client",
|
|
640
|
+
$metadata: deserializeMetadata(output),
|
|
641
|
+
});
|
|
642
|
+
throw __decorateServiceException(response, parsedBody);
|
|
656
643
|
}
|
|
657
644
|
});
|
|
658
645
|
}); };
|
|
@@ -681,16 +668,16 @@ export var deserializeAws_restJson1GetApplicationComponentStrategiesCommand = fu
|
|
|
681
668
|
});
|
|
682
669
|
}); };
|
|
683
670
|
var deserializeAws_restJson1GetApplicationComponentStrategiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
684
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
685
|
-
var
|
|
686
|
-
return __generator(this, function (
|
|
687
|
-
switch (
|
|
671
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
672
|
+
var _c;
|
|
673
|
+
return __generator(this, function (_d) {
|
|
674
|
+
switch (_d.label) {
|
|
688
675
|
case 0:
|
|
689
676
|
_a = [__assign({}, output)];
|
|
690
|
-
|
|
677
|
+
_c = {};
|
|
691
678
|
return [4, parseBody(output.body, context)];
|
|
692
679
|
case 1:
|
|
693
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
680
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
694
681
|
errorCode = "UnknownError";
|
|
695
682
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
683
|
_b = errorCode;
|
|
@@ -703,34 +690,20 @@ var deserializeAws_restJson1GetApplicationComponentStrategiesCommandError = func
|
|
|
703
690
|
case "com.amazonaws.migrationhubstrategy#ThrottlingException": return [3, 6];
|
|
704
691
|
}
|
|
705
692
|
return [3, 8];
|
|
706
|
-
case 2:
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
case
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
case 4:
|
|
713
|
-
_d = [{}];
|
|
714
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
715
|
-
case 5:
|
|
716
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
717
|
-
return [3, 9];
|
|
718
|
-
case 6:
|
|
719
|
-
_e = [{}];
|
|
720
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
721
|
-
case 7:
|
|
722
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
723
|
-
return [3, 9];
|
|
693
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
694
|
+
case 3: throw _d.sent();
|
|
695
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
696
|
+
case 5: throw _d.sent();
|
|
697
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
698
|
+
case 7: throw _d.sent();
|
|
724
699
|
case 8:
|
|
725
700
|
parsedBody = parsedOutput.body;
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
response
|
|
732
|
-
delete response.Message;
|
|
733
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
701
|
+
response = new __BaseException({
|
|
702
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
703
|
+
$fault: "client",
|
|
704
|
+
$metadata: deserializeMetadata(output),
|
|
705
|
+
});
|
|
706
|
+
throw __decorateServiceException(response, parsedBody);
|
|
734
707
|
}
|
|
735
708
|
});
|
|
736
709
|
}); };
|
|
@@ -763,16 +736,16 @@ export var deserializeAws_restJson1GetAssessmentCommand = function (output, cont
|
|
|
763
736
|
});
|
|
764
737
|
}); };
|
|
765
738
|
var deserializeAws_restJson1GetAssessmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
766
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
767
|
-
var
|
|
768
|
-
return __generator(this, function (
|
|
769
|
-
switch (
|
|
739
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
740
|
+
var _c;
|
|
741
|
+
return __generator(this, function (_d) {
|
|
742
|
+
switch (_d.label) {
|
|
770
743
|
case 0:
|
|
771
744
|
_a = [__assign({}, output)];
|
|
772
|
-
|
|
745
|
+
_c = {};
|
|
773
746
|
return [4, parseBody(output.body, context)];
|
|
774
747
|
case 1:
|
|
775
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
748
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
776
749
|
errorCode = "UnknownError";
|
|
777
750
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
778
751
|
_b = errorCode;
|
|
@@ -787,40 +760,22 @@ var deserializeAws_restJson1GetAssessmentCommandError = function (output, contex
|
|
|
787
760
|
case "com.amazonaws.migrationhubstrategy#ThrottlingException": return [3, 8];
|
|
788
761
|
}
|
|
789
762
|
return [3, 10];
|
|
790
|
-
case 2:
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
case
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
case 4
|
|
797
|
-
|
|
798
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
799
|
-
case 5:
|
|
800
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
801
|
-
return [3, 11];
|
|
802
|
-
case 6:
|
|
803
|
-
_e = [{}];
|
|
804
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
805
|
-
case 7:
|
|
806
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
807
|
-
return [3, 11];
|
|
808
|
-
case 8:
|
|
809
|
-
_f = [{}];
|
|
810
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
811
|
-
case 9:
|
|
812
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
813
|
-
return [3, 11];
|
|
763
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
764
|
+
case 3: throw _d.sent();
|
|
765
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
766
|
+
case 5: throw _d.sent();
|
|
767
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
768
|
+
case 7: throw _d.sent();
|
|
769
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
770
|
+
case 9: throw _d.sent();
|
|
814
771
|
case 10:
|
|
815
772
|
parsedBody = parsedOutput.body;
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
response
|
|
822
|
-
delete response.Message;
|
|
823
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
773
|
+
response = new __BaseException({
|
|
774
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
775
|
+
$fault: "client",
|
|
776
|
+
$metadata: deserializeMetadata(output),
|
|
777
|
+
});
|
|
778
|
+
throw __decorateServiceException(response, parsedBody);
|
|
824
779
|
}
|
|
825
780
|
});
|
|
826
781
|
}); };
|
|
@@ -889,16 +844,16 @@ export var deserializeAws_restJson1GetImportFileTaskCommand = function (output,
|
|
|
889
844
|
});
|
|
890
845
|
}); };
|
|
891
846
|
var deserializeAws_restJson1GetImportFileTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
892
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
893
|
-
var
|
|
894
|
-
return __generator(this, function (
|
|
895
|
-
switch (
|
|
847
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
848
|
+
var _c;
|
|
849
|
+
return __generator(this, function (_d) {
|
|
850
|
+
switch (_d.label) {
|
|
896
851
|
case 0:
|
|
897
852
|
_a = [__assign({}, output)];
|
|
898
|
-
|
|
853
|
+
_c = {};
|
|
899
854
|
return [4, parseBody(output.body, context)];
|
|
900
855
|
case 1:
|
|
901
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
856
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
902
857
|
errorCode = "UnknownError";
|
|
903
858
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
904
859
|
_b = errorCode;
|
|
@@ -915,46 +870,24 @@ var deserializeAws_restJson1GetImportFileTaskCommandError = function (output, co
|
|
|
915
870
|
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 10];
|
|
916
871
|
}
|
|
917
872
|
return [3, 12];
|
|
918
|
-
case 2:
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
case
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
case 4
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
case
|
|
928
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
929
|
-
return [3, 13];
|
|
930
|
-
case 6:
|
|
931
|
-
_e = [{}];
|
|
932
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
933
|
-
case 7:
|
|
934
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
935
|
-
return [3, 13];
|
|
936
|
-
case 8:
|
|
937
|
-
_f = [{}];
|
|
938
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
939
|
-
case 9:
|
|
940
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
941
|
-
return [3, 13];
|
|
942
|
-
case 10:
|
|
943
|
-
_g = [{}];
|
|
944
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
945
|
-
case 11:
|
|
946
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
947
|
-
return [3, 13];
|
|
873
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
874
|
+
case 3: throw _d.sent();
|
|
875
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
876
|
+
case 5: throw _d.sent();
|
|
877
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
878
|
+
case 7: throw _d.sent();
|
|
879
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
880
|
+
case 9: throw _d.sent();
|
|
881
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
882
|
+
case 11: throw _d.sent();
|
|
948
883
|
case 12:
|
|
949
884
|
parsedBody = parsedOutput.body;
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
response
|
|
956
|
-
delete response.Message;
|
|
957
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
885
|
+
response = new __BaseException({
|
|
886
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
887
|
+
$fault: "client",
|
|
888
|
+
$metadata: deserializeMetadata(output),
|
|
889
|
+
});
|
|
890
|
+
throw __decorateServiceException(response, parsedBody);
|
|
958
891
|
}
|
|
959
892
|
});
|
|
960
893
|
}); };
|
|
@@ -991,16 +924,16 @@ export var deserializeAws_restJson1GetPortfolioPreferencesCommand = function (ou
|
|
|
991
924
|
});
|
|
992
925
|
}); };
|
|
993
926
|
var deserializeAws_restJson1GetPortfolioPreferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
994
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
995
|
-
var
|
|
996
|
-
return __generator(this, function (
|
|
997
|
-
switch (
|
|
927
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
928
|
+
var _c;
|
|
929
|
+
return __generator(this, function (_d) {
|
|
930
|
+
switch (_d.label) {
|
|
998
931
|
case 0:
|
|
999
932
|
_a = [__assign({}, output)];
|
|
1000
|
-
|
|
933
|
+
_c = {};
|
|
1001
934
|
return [4, parseBody(output.body, context)];
|
|
1002
935
|
case 1:
|
|
1003
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
936
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1004
937
|
errorCode = "UnknownError";
|
|
1005
938
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
939
|
_b = errorCode;
|
|
@@ -1015,40 +948,22 @@ var deserializeAws_restJson1GetPortfolioPreferencesCommandError = function (outp
|
|
|
1015
948
|
case "com.amazonaws.migrationhubstrategy#ThrottlingException": return [3, 8];
|
|
1016
949
|
}
|
|
1017
950
|
return [3, 10];
|
|
1018
|
-
case 2:
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
case
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
case 4
|
|
1025
|
-
|
|
1026
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1027
|
-
case 5:
|
|
1028
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1029
|
-
return [3, 11];
|
|
1030
|
-
case 6:
|
|
1031
|
-
_e = [{}];
|
|
1032
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1033
|
-
case 7:
|
|
1034
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1035
|
-
return [3, 11];
|
|
1036
|
-
case 8:
|
|
1037
|
-
_f = [{}];
|
|
1038
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1039
|
-
case 9:
|
|
1040
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1041
|
-
return [3, 11];
|
|
951
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
952
|
+
case 3: throw _d.sent();
|
|
953
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
954
|
+
case 5: throw _d.sent();
|
|
955
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
956
|
+
case 7: throw _d.sent();
|
|
957
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
958
|
+
case 9: throw _d.sent();
|
|
1042
959
|
case 10:
|
|
1043
960
|
parsedBody = parsedOutput.body;
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
response
|
|
1050
|
-
delete response.Message;
|
|
1051
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
961
|
+
response = new __BaseException({
|
|
962
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
963
|
+
$fault: "client",
|
|
964
|
+
$metadata: deserializeMetadata(output),
|
|
965
|
+
});
|
|
966
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1052
967
|
}
|
|
1053
968
|
});
|
|
1054
969
|
}); };
|
|
@@ -1077,16 +992,16 @@ export var deserializeAws_restJson1GetPortfolioSummaryCommand = function (output
|
|
|
1077
992
|
});
|
|
1078
993
|
}); };
|
|
1079
994
|
var deserializeAws_restJson1GetPortfolioSummaryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1080
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1081
|
-
var
|
|
1082
|
-
return __generator(this, function (
|
|
1083
|
-
switch (
|
|
995
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
996
|
+
var _c;
|
|
997
|
+
return __generator(this, function (_d) {
|
|
998
|
+
switch (_d.label) {
|
|
1084
999
|
case 0:
|
|
1085
1000
|
_a = [__assign({}, output)];
|
|
1086
|
-
|
|
1001
|
+
_c = {};
|
|
1087
1002
|
return [4, parseBody(output.body, context)];
|
|
1088
1003
|
case 1:
|
|
1089
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1004
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1090
1005
|
errorCode = "UnknownError";
|
|
1091
1006
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1092
1007
|
_b = errorCode;
|
|
@@ -1099,34 +1014,20 @@ var deserializeAws_restJson1GetPortfolioSummaryCommandError = function (output,
|
|
|
1099
1014
|
case "com.amazonaws.migrationhubstrategy#ThrottlingException": return [3, 6];
|
|
1100
1015
|
}
|
|
1101
1016
|
return [3, 8];
|
|
1102
|
-
case 2:
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
case
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
case 4:
|
|
1109
|
-
_d = [{}];
|
|
1110
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1111
|
-
case 5:
|
|
1112
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1113
|
-
return [3, 9];
|
|
1114
|
-
case 6:
|
|
1115
|
-
_e = [{}];
|
|
1116
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1117
|
-
case 7:
|
|
1118
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1119
|
-
return [3, 9];
|
|
1017
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1018
|
+
case 3: throw _d.sent();
|
|
1019
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1020
|
+
case 5: throw _d.sent();
|
|
1021
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1022
|
+
case 7: throw _d.sent();
|
|
1120
1023
|
case 8:
|
|
1121
1024
|
parsedBody = parsedOutput.body;
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
response
|
|
1128
|
-
delete response.Message;
|
|
1129
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1025
|
+
response = new __BaseException({
|
|
1026
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1027
|
+
$fault: "client",
|
|
1028
|
+
$metadata: deserializeMetadata(output),
|
|
1029
|
+
});
|
|
1030
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1130
1031
|
}
|
|
1131
1032
|
});
|
|
1132
1033
|
}); };
|
|
@@ -1159,16 +1060,16 @@ export var deserializeAws_restJson1GetRecommendationReportDetailsCommand = funct
|
|
|
1159
1060
|
});
|
|
1160
1061
|
}); };
|
|
1161
1062
|
var deserializeAws_restJson1GetRecommendationReportDetailsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1162
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1163
|
-
var
|
|
1164
|
-
return __generator(this, function (
|
|
1165
|
-
switch (
|
|
1063
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1064
|
+
var _c;
|
|
1065
|
+
return __generator(this, function (_d) {
|
|
1066
|
+
switch (_d.label) {
|
|
1166
1067
|
case 0:
|
|
1167
1068
|
_a = [__assign({}, output)];
|
|
1168
|
-
|
|
1069
|
+
_c = {};
|
|
1169
1070
|
return [4, parseBody(output.body, context)];
|
|
1170
1071
|
case 1:
|
|
1171
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1072
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1172
1073
|
errorCode = "UnknownError";
|
|
1173
1074
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1174
1075
|
_b = errorCode;
|
|
@@ -1185,46 +1086,24 @@ var deserializeAws_restJson1GetRecommendationReportDetailsCommandError = functio
|
|
|
1185
1086
|
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 10];
|
|
1186
1087
|
}
|
|
1187
1088
|
return [3, 12];
|
|
1188
|
-
case 2:
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
case
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
case 4
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
case
|
|
1198
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1199
|
-
return [3, 13];
|
|
1200
|
-
case 6:
|
|
1201
|
-
_e = [{}];
|
|
1202
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1203
|
-
case 7:
|
|
1204
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1205
|
-
return [3, 13];
|
|
1206
|
-
case 8:
|
|
1207
|
-
_f = [{}];
|
|
1208
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1209
|
-
case 9:
|
|
1210
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1211
|
-
return [3, 13];
|
|
1212
|
-
case 10:
|
|
1213
|
-
_g = [{}];
|
|
1214
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1215
|
-
case 11:
|
|
1216
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1217
|
-
return [3, 13];
|
|
1089
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1090
|
+
case 3: throw _d.sent();
|
|
1091
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1092
|
+
case 5: throw _d.sent();
|
|
1093
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1094
|
+
case 7: throw _d.sent();
|
|
1095
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1096
|
+
case 9: throw _d.sent();
|
|
1097
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1098
|
+
case 11: throw _d.sent();
|
|
1218
1099
|
case 12:
|
|
1219
1100
|
parsedBody = parsedOutput.body;
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
response
|
|
1226
|
-
delete response.Message;
|
|
1227
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1101
|
+
response = new __BaseException({
|
|
1102
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1103
|
+
$fault: "client",
|
|
1104
|
+
$metadata: deserializeMetadata(output),
|
|
1105
|
+
});
|
|
1106
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1228
1107
|
}
|
|
1229
1108
|
});
|
|
1230
1109
|
}); };
|
|
@@ -1261,16 +1140,16 @@ export var deserializeAws_restJson1GetServerDetailsCommand = function (output, c
|
|
|
1261
1140
|
});
|
|
1262
1141
|
}); };
|
|
1263
1142
|
var deserializeAws_restJson1GetServerDetailsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1264
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1265
|
-
var
|
|
1266
|
-
return __generator(this, function (
|
|
1267
|
-
switch (
|
|
1143
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1144
|
+
var _c;
|
|
1145
|
+
return __generator(this, function (_d) {
|
|
1146
|
+
switch (_d.label) {
|
|
1268
1147
|
case 0:
|
|
1269
1148
|
_a = [__assign({}, output)];
|
|
1270
|
-
|
|
1149
|
+
_c = {};
|
|
1271
1150
|
return [4, parseBody(output.body, context)];
|
|
1272
1151
|
case 1:
|
|
1273
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1152
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1274
1153
|
errorCode = "UnknownError";
|
|
1275
1154
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1276
1155
|
_b = errorCode;
|
|
@@ -1287,46 +1166,24 @@ var deserializeAws_restJson1GetServerDetailsCommandError = function (output, con
|
|
|
1287
1166
|
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 10];
|
|
1288
1167
|
}
|
|
1289
1168
|
return [3, 12];
|
|
1290
|
-
case 2:
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
case
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
case 4
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
case
|
|
1300
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1301
|
-
return [3, 13];
|
|
1302
|
-
case 6:
|
|
1303
|
-
_e = [{}];
|
|
1304
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1305
|
-
case 7:
|
|
1306
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1307
|
-
return [3, 13];
|
|
1308
|
-
case 8:
|
|
1309
|
-
_f = [{}];
|
|
1310
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1311
|
-
case 9:
|
|
1312
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1313
|
-
return [3, 13];
|
|
1314
|
-
case 10:
|
|
1315
|
-
_g = [{}];
|
|
1316
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1317
|
-
case 11:
|
|
1318
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1319
|
-
return [3, 13];
|
|
1169
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1170
|
+
case 3: throw _d.sent();
|
|
1171
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1172
|
+
case 5: throw _d.sent();
|
|
1173
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1174
|
+
case 7: throw _d.sent();
|
|
1175
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1176
|
+
case 9: throw _d.sent();
|
|
1177
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1178
|
+
case 11: throw _d.sent();
|
|
1320
1179
|
case 12:
|
|
1321
1180
|
parsedBody = parsedOutput.body;
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
response
|
|
1328
|
-
delete response.Message;
|
|
1329
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1181
|
+
response = new __BaseException({
|
|
1182
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1183
|
+
$fault: "client",
|
|
1184
|
+
$metadata: deserializeMetadata(output),
|
|
1185
|
+
});
|
|
1186
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1330
1187
|
}
|
|
1331
1188
|
});
|
|
1332
1189
|
}); };
|
|
@@ -1355,16 +1212,16 @@ export var deserializeAws_restJson1GetServerStrategiesCommand = function (output
|
|
|
1355
1212
|
});
|
|
1356
1213
|
}); };
|
|
1357
1214
|
var deserializeAws_restJson1GetServerStrategiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1358
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1359
|
-
var
|
|
1360
|
-
return __generator(this, function (
|
|
1361
|
-
switch (
|
|
1215
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1216
|
+
var _c;
|
|
1217
|
+
return __generator(this, function (_d) {
|
|
1218
|
+
switch (_d.label) {
|
|
1362
1219
|
case 0:
|
|
1363
1220
|
_a = [__assign({}, output)];
|
|
1364
|
-
|
|
1221
|
+
_c = {};
|
|
1365
1222
|
return [4, parseBody(output.body, context)];
|
|
1366
1223
|
case 1:
|
|
1367
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1224
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1368
1225
|
errorCode = "UnknownError";
|
|
1369
1226
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1370
1227
|
_b = errorCode;
|
|
@@ -1381,46 +1238,24 @@ var deserializeAws_restJson1GetServerStrategiesCommandError = function (output,
|
|
|
1381
1238
|
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 10];
|
|
1382
1239
|
}
|
|
1383
1240
|
return [3, 12];
|
|
1384
|
-
case 2:
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
case
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
case 4
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
case
|
|
1394
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1395
|
-
return [3, 13];
|
|
1396
|
-
case 6:
|
|
1397
|
-
_e = [{}];
|
|
1398
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1399
|
-
case 7:
|
|
1400
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1401
|
-
return [3, 13];
|
|
1402
|
-
case 8:
|
|
1403
|
-
_f = [{}];
|
|
1404
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1405
|
-
case 9:
|
|
1406
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1407
|
-
return [3, 13];
|
|
1408
|
-
case 10:
|
|
1409
|
-
_g = [{}];
|
|
1410
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1411
|
-
case 11:
|
|
1412
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1413
|
-
return [3, 13];
|
|
1241
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1242
|
+
case 3: throw _d.sent();
|
|
1243
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1244
|
+
case 5: throw _d.sent();
|
|
1245
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1246
|
+
case 7: throw _d.sent();
|
|
1247
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1248
|
+
case 9: throw _d.sent();
|
|
1249
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1250
|
+
case 11: throw _d.sent();
|
|
1414
1251
|
case 12:
|
|
1415
1252
|
parsedBody = parsedOutput.body;
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
response
|
|
1422
|
-
delete response.Message;
|
|
1423
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1253
|
+
response = new __BaseException({
|
|
1254
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1255
|
+
$fault: "client",
|
|
1256
|
+
$metadata: deserializeMetadata(output),
|
|
1257
|
+
});
|
|
1258
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1424
1259
|
}
|
|
1425
1260
|
});
|
|
1426
1261
|
}); };
|
|
@@ -1453,16 +1288,16 @@ export var deserializeAws_restJson1ListApplicationComponentsCommand = function (
|
|
|
1453
1288
|
});
|
|
1454
1289
|
}); };
|
|
1455
1290
|
var deserializeAws_restJson1ListApplicationComponentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1456
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1457
|
-
var
|
|
1458
|
-
return __generator(this, function (
|
|
1459
|
-
switch (
|
|
1291
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1292
|
+
var _c;
|
|
1293
|
+
return __generator(this, function (_d) {
|
|
1294
|
+
switch (_d.label) {
|
|
1460
1295
|
case 0:
|
|
1461
1296
|
_a = [__assign({}, output)];
|
|
1462
|
-
|
|
1297
|
+
_c = {};
|
|
1463
1298
|
return [4, parseBody(output.body, context)];
|
|
1464
1299
|
case 1:
|
|
1465
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1300
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1466
1301
|
errorCode = "UnknownError";
|
|
1467
1302
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1468
1303
|
_b = errorCode;
|
|
@@ -1477,40 +1312,22 @@ var deserializeAws_restJson1ListApplicationComponentsCommandError = function (ou
|
|
|
1477
1312
|
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 8];
|
|
1478
1313
|
}
|
|
1479
1314
|
return [3, 10];
|
|
1480
|
-
case 2:
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
case
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
case 4
|
|
1487
|
-
|
|
1488
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1489
|
-
case 5:
|
|
1490
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1491
|
-
return [3, 11];
|
|
1492
|
-
case 6:
|
|
1493
|
-
_e = [{}];
|
|
1494
|
-
return [4, deserializeAws_restJson1ServiceLinkedRoleLockClientExceptionResponse(parsedOutput, context)];
|
|
1495
|
-
case 7:
|
|
1496
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1497
|
-
return [3, 11];
|
|
1498
|
-
case 8:
|
|
1499
|
-
_f = [{}];
|
|
1500
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1501
|
-
case 9:
|
|
1502
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1503
|
-
return [3, 11];
|
|
1315
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1316
|
+
case 3: throw _d.sent();
|
|
1317
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1318
|
+
case 5: throw _d.sent();
|
|
1319
|
+
case 6: return [4, deserializeAws_restJson1ServiceLinkedRoleLockClientExceptionResponse(parsedOutput, context)];
|
|
1320
|
+
case 7: throw _d.sent();
|
|
1321
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1322
|
+
case 9: throw _d.sent();
|
|
1504
1323
|
case 10:
|
|
1505
1324
|
parsedBody = parsedOutput.body;
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
response
|
|
1512
|
-
delete response.Message;
|
|
1513
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1325
|
+
response = new __BaseException({
|
|
1326
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1327
|
+
$fault: "client",
|
|
1328
|
+
$metadata: deserializeMetadata(output),
|
|
1329
|
+
});
|
|
1330
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1514
1331
|
}
|
|
1515
1332
|
});
|
|
1516
1333
|
}); };
|
|
@@ -1543,16 +1360,16 @@ export var deserializeAws_restJson1ListCollectorsCommand = function (output, con
|
|
|
1543
1360
|
});
|
|
1544
1361
|
}); };
|
|
1545
1362
|
var deserializeAws_restJson1ListCollectorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1546
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1547
|
-
var
|
|
1548
|
-
return __generator(this, function (
|
|
1549
|
-
switch (
|
|
1363
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1364
|
+
var _c;
|
|
1365
|
+
return __generator(this, function (_d) {
|
|
1366
|
+
switch (_d.label) {
|
|
1550
1367
|
case 0:
|
|
1551
1368
|
_a = [__assign({}, output)];
|
|
1552
|
-
|
|
1369
|
+
_c = {};
|
|
1553
1370
|
return [4, parseBody(output.body, context)];
|
|
1554
1371
|
case 1:
|
|
1555
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1372
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1556
1373
|
errorCode = "UnknownError";
|
|
1557
1374
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1558
1375
|
_b = errorCode;
|
|
@@ -1567,40 +1384,22 @@ var deserializeAws_restJson1ListCollectorsCommandError = function (output, conte
|
|
|
1567
1384
|
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 8];
|
|
1568
1385
|
}
|
|
1569
1386
|
return [3, 10];
|
|
1570
|
-
case 2:
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
case
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
case 4
|
|
1577
|
-
|
|
1578
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1579
|
-
case 5:
|
|
1580
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1581
|
-
return [3, 11];
|
|
1582
|
-
case 6:
|
|
1583
|
-
_e = [{}];
|
|
1584
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1585
|
-
case 7:
|
|
1586
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1587
|
-
return [3, 11];
|
|
1588
|
-
case 8:
|
|
1589
|
-
_f = [{}];
|
|
1590
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1591
|
-
case 9:
|
|
1592
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1593
|
-
return [3, 11];
|
|
1387
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1388
|
+
case 3: throw _d.sent();
|
|
1389
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1390
|
+
case 5: throw _d.sent();
|
|
1391
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1392
|
+
case 7: throw _d.sent();
|
|
1393
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1394
|
+
case 9: throw _d.sent();
|
|
1594
1395
|
case 10:
|
|
1595
1396
|
parsedBody = parsedOutput.body;
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
response
|
|
1602
|
-
delete response.Message;
|
|
1603
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1397
|
+
response = new __BaseException({
|
|
1398
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1399
|
+
$fault: "client",
|
|
1400
|
+
$metadata: deserializeMetadata(output),
|
|
1401
|
+
});
|
|
1402
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1604
1403
|
}
|
|
1605
1404
|
});
|
|
1606
1405
|
}); };
|
|
@@ -1633,16 +1432,16 @@ export var deserializeAws_restJson1ListImportFileTaskCommand = function (output,
|
|
|
1633
1432
|
});
|
|
1634
1433
|
}); };
|
|
1635
1434
|
var deserializeAws_restJson1ListImportFileTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1636
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1637
|
-
var
|
|
1638
|
-
return __generator(this, function (
|
|
1639
|
-
switch (
|
|
1435
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1436
|
+
var _c;
|
|
1437
|
+
return __generator(this, function (_d) {
|
|
1438
|
+
switch (_d.label) {
|
|
1640
1439
|
case 0:
|
|
1641
1440
|
_a = [__assign({}, output)];
|
|
1642
|
-
|
|
1441
|
+
_c = {};
|
|
1643
1442
|
return [4, parseBody(output.body, context)];
|
|
1644
1443
|
case 1:
|
|
1645
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1444
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1646
1445
|
errorCode = "UnknownError";
|
|
1647
1446
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1648
1447
|
_b = errorCode;
|
|
@@ -1657,40 +1456,22 @@ var deserializeAws_restJson1ListImportFileTaskCommandError = function (output, c
|
|
|
1657
1456
|
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 8];
|
|
1658
1457
|
}
|
|
1659
1458
|
return [3, 10];
|
|
1660
|
-
case 2:
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
case
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
case 4
|
|
1667
|
-
|
|
1668
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1669
|
-
case 5:
|
|
1670
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1671
|
-
return [3, 11];
|
|
1672
|
-
case 6:
|
|
1673
|
-
_e = [{}];
|
|
1674
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1675
|
-
case 7:
|
|
1676
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1677
|
-
return [3, 11];
|
|
1678
|
-
case 8:
|
|
1679
|
-
_f = [{}];
|
|
1680
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1681
|
-
case 9:
|
|
1682
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1683
|
-
return [3, 11];
|
|
1459
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1460
|
+
case 3: throw _d.sent();
|
|
1461
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1462
|
+
case 5: throw _d.sent();
|
|
1463
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1464
|
+
case 7: throw _d.sent();
|
|
1465
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1466
|
+
case 9: throw _d.sent();
|
|
1684
1467
|
case 10:
|
|
1685
1468
|
parsedBody = parsedOutput.body;
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
response
|
|
1692
|
-
delete response.Message;
|
|
1693
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1469
|
+
response = new __BaseException({
|
|
1470
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1471
|
+
$fault: "client",
|
|
1472
|
+
$metadata: deserializeMetadata(output),
|
|
1473
|
+
});
|
|
1474
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1694
1475
|
}
|
|
1695
1476
|
});
|
|
1696
1477
|
}); };
|
|
@@ -1723,16 +1504,16 @@ export var deserializeAws_restJson1ListServersCommand = function (output, contex
|
|
|
1723
1504
|
});
|
|
1724
1505
|
}); };
|
|
1725
1506
|
var deserializeAws_restJson1ListServersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1726
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1727
|
-
var
|
|
1728
|
-
return __generator(this, function (
|
|
1729
|
-
switch (
|
|
1507
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1508
|
+
var _c;
|
|
1509
|
+
return __generator(this, function (_d) {
|
|
1510
|
+
switch (_d.label) {
|
|
1730
1511
|
case 0:
|
|
1731
1512
|
_a = [__assign({}, output)];
|
|
1732
|
-
|
|
1513
|
+
_c = {};
|
|
1733
1514
|
return [4, parseBody(output.body, context)];
|
|
1734
1515
|
case 1:
|
|
1735
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1516
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1736
1517
|
errorCode = "UnknownError";
|
|
1737
1518
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1738
1519
|
_b = errorCode;
|
|
@@ -1747,40 +1528,22 @@ var deserializeAws_restJson1ListServersCommandError = function (output, context)
|
|
|
1747
1528
|
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 8];
|
|
1748
1529
|
}
|
|
1749
1530
|
return [3, 10];
|
|
1750
|
-
case 2:
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
case
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
case 4
|
|
1757
|
-
|
|
1758
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1759
|
-
case 5:
|
|
1760
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1761
|
-
return [3, 11];
|
|
1762
|
-
case 6:
|
|
1763
|
-
_e = [{}];
|
|
1764
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1765
|
-
case 7:
|
|
1766
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1767
|
-
return [3, 11];
|
|
1768
|
-
case 8:
|
|
1769
|
-
_f = [{}];
|
|
1770
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1771
|
-
case 9:
|
|
1772
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1773
|
-
return [3, 11];
|
|
1531
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1532
|
+
case 3: throw _d.sent();
|
|
1533
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1534
|
+
case 5: throw _d.sent();
|
|
1535
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1536
|
+
case 7: throw _d.sent();
|
|
1537
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1538
|
+
case 9: throw _d.sent();
|
|
1774
1539
|
case 10:
|
|
1775
1540
|
parsedBody = parsedOutput.body;
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
response
|
|
1782
|
-
delete response.Message;
|
|
1783
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1541
|
+
response = new __BaseException({
|
|
1542
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1543
|
+
$fault: "client",
|
|
1544
|
+
$metadata: deserializeMetadata(output),
|
|
1545
|
+
});
|
|
1546
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1784
1547
|
}
|
|
1785
1548
|
});
|
|
1786
1549
|
}); };
|
|
@@ -1803,16 +1566,16 @@ export var deserializeAws_restJson1PutPortfolioPreferencesCommand = function (ou
|
|
|
1803
1566
|
});
|
|
1804
1567
|
}); };
|
|
1805
1568
|
var deserializeAws_restJson1PutPortfolioPreferencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1806
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1807
|
-
var
|
|
1808
|
-
return __generator(this, function (
|
|
1809
|
-
switch (
|
|
1569
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1570
|
+
var _c;
|
|
1571
|
+
return __generator(this, function (_d) {
|
|
1572
|
+
switch (_d.label) {
|
|
1810
1573
|
case 0:
|
|
1811
1574
|
_a = [__assign({}, output)];
|
|
1812
|
-
|
|
1575
|
+
_c = {};
|
|
1813
1576
|
return [4, parseBody(output.body, context)];
|
|
1814
1577
|
case 1:
|
|
1815
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1578
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1816
1579
|
errorCode = "UnknownError";
|
|
1817
1580
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
1581
|
_b = errorCode;
|
|
@@ -1829,46 +1592,24 @@ var deserializeAws_restJson1PutPortfolioPreferencesCommandError = function (outp
|
|
|
1829
1592
|
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 10];
|
|
1830
1593
|
}
|
|
1831
1594
|
return [3, 12];
|
|
1832
|
-
case 2:
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
case
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
case 4
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
case
|
|
1842
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1843
|
-
return [3, 13];
|
|
1844
|
-
case 6:
|
|
1845
|
-
_e = [{}];
|
|
1846
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1847
|
-
case 7:
|
|
1848
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1849
|
-
return [3, 13];
|
|
1850
|
-
case 8:
|
|
1851
|
-
_f = [{}];
|
|
1852
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1853
|
-
case 9:
|
|
1854
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1855
|
-
return [3, 13];
|
|
1856
|
-
case 10:
|
|
1857
|
-
_g = [{}];
|
|
1858
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1859
|
-
case 11:
|
|
1860
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1861
|
-
return [3, 13];
|
|
1595
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1596
|
+
case 3: throw _d.sent();
|
|
1597
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1598
|
+
case 5: throw _d.sent();
|
|
1599
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1600
|
+
case 7: throw _d.sent();
|
|
1601
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1602
|
+
case 9: throw _d.sent();
|
|
1603
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1604
|
+
case 11: throw _d.sent();
|
|
1862
1605
|
case 12:
|
|
1863
1606
|
parsedBody = parsedOutput.body;
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
response
|
|
1870
|
-
delete response.Message;
|
|
1871
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1607
|
+
response = new __BaseException({
|
|
1608
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1609
|
+
$fault: "client",
|
|
1610
|
+
$metadata: deserializeMetadata(output),
|
|
1611
|
+
});
|
|
1612
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1872
1613
|
}
|
|
1873
1614
|
});
|
|
1874
1615
|
}); };
|
|
@@ -1897,16 +1638,16 @@ export var deserializeAws_restJson1StartAssessmentCommand = function (output, co
|
|
|
1897
1638
|
});
|
|
1898
1639
|
}); };
|
|
1899
1640
|
var deserializeAws_restJson1StartAssessmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1900
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1901
|
-
var
|
|
1902
|
-
return __generator(this, function (
|
|
1903
|
-
switch (
|
|
1641
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1642
|
+
var _c;
|
|
1643
|
+
return __generator(this, function (_d) {
|
|
1644
|
+
switch (_d.label) {
|
|
1904
1645
|
case 0:
|
|
1905
1646
|
_a = [__assign({}, output)];
|
|
1906
|
-
|
|
1647
|
+
_c = {};
|
|
1907
1648
|
return [4, parseBody(output.body, context)];
|
|
1908
1649
|
case 1:
|
|
1909
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1650
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1910
1651
|
errorCode = "UnknownError";
|
|
1911
1652
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
1653
|
_b = errorCode;
|
|
@@ -1921,40 +1662,22 @@ var deserializeAws_restJson1StartAssessmentCommandError = function (output, cont
|
|
|
1921
1662
|
case "com.amazonaws.migrationhubstrategy#ThrottlingException": return [3, 8];
|
|
1922
1663
|
}
|
|
1923
1664
|
return [3, 10];
|
|
1924
|
-
case 2:
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
case
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
case 4
|
|
1931
|
-
|
|
1932
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1933
|
-
case 5:
|
|
1934
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1935
|
-
return [3, 11];
|
|
1936
|
-
case 6:
|
|
1937
|
-
_e = [{}];
|
|
1938
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1939
|
-
case 7:
|
|
1940
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1941
|
-
return [3, 11];
|
|
1942
|
-
case 8:
|
|
1943
|
-
_f = [{}];
|
|
1944
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1945
|
-
case 9:
|
|
1946
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1947
|
-
return [3, 11];
|
|
1665
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1666
|
+
case 3: throw _d.sent();
|
|
1667
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1668
|
+
case 5: throw _d.sent();
|
|
1669
|
+
case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1670
|
+
case 7: throw _d.sent();
|
|
1671
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1672
|
+
case 9: throw _d.sent();
|
|
1948
1673
|
case 10:
|
|
1949
1674
|
parsedBody = parsedOutput.body;
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
response
|
|
1956
|
-
delete response.Message;
|
|
1957
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1675
|
+
response = new __BaseException({
|
|
1676
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1677
|
+
$fault: "client",
|
|
1678
|
+
$metadata: deserializeMetadata(output),
|
|
1679
|
+
});
|
|
1680
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1958
1681
|
}
|
|
1959
1682
|
});
|
|
1960
1683
|
}); };
|
|
@@ -1983,16 +1706,16 @@ export var deserializeAws_restJson1StartImportFileTaskCommand = function (output
|
|
|
1983
1706
|
});
|
|
1984
1707
|
}); };
|
|
1985
1708
|
var deserializeAws_restJson1StartImportFileTaskCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1986
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1987
|
-
var
|
|
1988
|
-
return __generator(this, function (
|
|
1989
|
-
switch (
|
|
1709
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1710
|
+
var _c;
|
|
1711
|
+
return __generator(this, function (_d) {
|
|
1712
|
+
switch (_d.label) {
|
|
1990
1713
|
case 0:
|
|
1991
1714
|
_a = [__assign({}, output)];
|
|
1992
|
-
|
|
1715
|
+
_c = {};
|
|
1993
1716
|
return [4, parseBody(output.body, context)];
|
|
1994
1717
|
case 1:
|
|
1995
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1718
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1996
1719
|
errorCode = "UnknownError";
|
|
1997
1720
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1998
1721
|
_b = errorCode;
|
|
@@ -2009,46 +1732,24 @@ var deserializeAws_restJson1StartImportFileTaskCommandError = function (output,
|
|
|
2009
1732
|
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 10];
|
|
2010
1733
|
}
|
|
2011
1734
|
return [3, 12];
|
|
2012
|
-
case 2:
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
case
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
case 4
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
case
|
|
2022
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2023
|
-
return [3, 13];
|
|
2024
|
-
case 6:
|
|
2025
|
-
_e = [{}];
|
|
2026
|
-
return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2027
|
-
case 7:
|
|
2028
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2029
|
-
return [3, 13];
|
|
2030
|
-
case 8:
|
|
2031
|
-
_f = [{}];
|
|
2032
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2033
|
-
case 9:
|
|
2034
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2035
|
-
return [3, 13];
|
|
2036
|
-
case 10:
|
|
2037
|
-
_g = [{}];
|
|
2038
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2039
|
-
case 11:
|
|
2040
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2041
|
-
return [3, 13];
|
|
1735
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1736
|
+
case 3: throw _d.sent();
|
|
1737
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1738
|
+
case 5: throw _d.sent();
|
|
1739
|
+
case 6: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1740
|
+
case 7: throw _d.sent();
|
|
1741
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1742
|
+
case 9: throw _d.sent();
|
|
1743
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1744
|
+
case 11: throw _d.sent();
|
|
2042
1745
|
case 12:
|
|
2043
1746
|
parsedBody = parsedOutput.body;
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
response
|
|
2050
|
-
delete response.Message;
|
|
2051
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1747
|
+
response = new __BaseException({
|
|
1748
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1749
|
+
$fault: "client",
|
|
1750
|
+
$metadata: deserializeMetadata(output),
|
|
1751
|
+
});
|
|
1752
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2052
1753
|
}
|
|
2053
1754
|
});
|
|
2054
1755
|
}); };
|
|
@@ -2077,16 +1778,16 @@ export var deserializeAws_restJson1StartRecommendationReportGenerationCommand =
|
|
|
2077
1778
|
});
|
|
2078
1779
|
}); };
|
|
2079
1780
|
var deserializeAws_restJson1StartRecommendationReportGenerationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2080
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2081
|
-
var
|
|
2082
|
-
return __generator(this, function (
|
|
2083
|
-
switch (
|
|
1781
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1782
|
+
var _c;
|
|
1783
|
+
return __generator(this, function (_d) {
|
|
1784
|
+
switch (_d.label) {
|
|
2084
1785
|
case 0:
|
|
2085
1786
|
_a = [__assign({}, output)];
|
|
2086
|
-
|
|
1787
|
+
_c = {};
|
|
2087
1788
|
return [4, parseBody(output.body, context)];
|
|
2088
1789
|
case 1:
|
|
2089
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1790
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2090
1791
|
errorCode = "UnknownError";
|
|
2091
1792
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2092
1793
|
_b = errorCode;
|
|
@@ -2103,46 +1804,24 @@ var deserializeAws_restJson1StartRecommendationReportGenerationCommandError = fu
|
|
|
2103
1804
|
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 10];
|
|
2104
1805
|
}
|
|
2105
1806
|
return [3, 12];
|
|
2106
|
-
case 2:
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
case
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
case 4
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
case
|
|
2116
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2117
|
-
return [3, 13];
|
|
2118
|
-
case 6:
|
|
2119
|
-
_e = [{}];
|
|
2120
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2121
|
-
case 7:
|
|
2122
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2123
|
-
return [3, 13];
|
|
2124
|
-
case 8:
|
|
2125
|
-
_f = [{}];
|
|
2126
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2127
|
-
case 9:
|
|
2128
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2129
|
-
return [3, 13];
|
|
2130
|
-
case 10:
|
|
2131
|
-
_g = [{}];
|
|
2132
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2133
|
-
case 11:
|
|
2134
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2135
|
-
return [3, 13];
|
|
1807
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1808
|
+
case 3: throw _d.sent();
|
|
1809
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1810
|
+
case 5: throw _d.sent();
|
|
1811
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1812
|
+
case 7: throw _d.sent();
|
|
1813
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1814
|
+
case 9: throw _d.sent();
|
|
1815
|
+
case 10: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1816
|
+
case 11: throw _d.sent();
|
|
2136
1817
|
case 12:
|
|
2137
1818
|
parsedBody = parsedOutput.body;
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
response
|
|
2144
|
-
delete response.Message;
|
|
2145
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1819
|
+
response = new __BaseException({
|
|
1820
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1821
|
+
$fault: "client",
|
|
1822
|
+
$metadata: deserializeMetadata(output),
|
|
1823
|
+
});
|
|
1824
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2146
1825
|
}
|
|
2147
1826
|
});
|
|
2148
1827
|
}); };
|
|
@@ -2165,16 +1844,16 @@ export var deserializeAws_restJson1StopAssessmentCommand = function (output, con
|
|
|
2165
1844
|
});
|
|
2166
1845
|
}); };
|
|
2167
1846
|
var deserializeAws_restJson1StopAssessmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2168
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2169
|
-
var
|
|
2170
|
-
return __generator(this, function (
|
|
2171
|
-
switch (
|
|
1847
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1848
|
+
var _c;
|
|
1849
|
+
return __generator(this, function (_d) {
|
|
1850
|
+
switch (_d.label) {
|
|
2172
1851
|
case 0:
|
|
2173
1852
|
_a = [__assign({}, output)];
|
|
2174
|
-
|
|
1853
|
+
_c = {};
|
|
2175
1854
|
return [4, parseBody(output.body, context)];
|
|
2176
1855
|
case 1:
|
|
2177
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1856
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2178
1857
|
errorCode = "UnknownError";
|
|
2179
1858
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2180
1859
|
_b = errorCode;
|
|
@@ -2189,40 +1868,22 @@ var deserializeAws_restJson1StopAssessmentCommandError = function (output, conte
|
|
|
2189
1868
|
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 8];
|
|
2190
1869
|
}
|
|
2191
1870
|
return [3, 10];
|
|
2192
|
-
case 2:
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
case
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
case 4
|
|
2199
|
-
|
|
2200
|
-
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2201
|
-
case 5:
|
|
2202
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2203
|
-
return [3, 11];
|
|
2204
|
-
case 6:
|
|
2205
|
-
_e = [{}];
|
|
2206
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2207
|
-
case 7:
|
|
2208
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2209
|
-
return [3, 11];
|
|
2210
|
-
case 8:
|
|
2211
|
-
_f = [{}];
|
|
2212
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2213
|
-
case 9:
|
|
2214
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2215
|
-
return [3, 11];
|
|
1871
|
+
case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1872
|
+
case 3: throw _d.sent();
|
|
1873
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1874
|
+
case 5: throw _d.sent();
|
|
1875
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1876
|
+
case 7: throw _d.sent();
|
|
1877
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1878
|
+
case 9: throw _d.sent();
|
|
2216
1879
|
case 10:
|
|
2217
1880
|
parsedBody = parsedOutput.body;
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
response
|
|
2224
|
-
delete response.Message;
|
|
2225
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1881
|
+
response = new __BaseException({
|
|
1882
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1883
|
+
$fault: "client",
|
|
1884
|
+
$metadata: deserializeMetadata(output),
|
|
1885
|
+
});
|
|
1886
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2226
1887
|
}
|
|
2227
1888
|
});
|
|
2228
1889
|
}); };
|
|
@@ -2245,16 +1906,16 @@ export var deserializeAws_restJson1UpdateApplicationComponentConfigCommand = fun
|
|
|
2245
1906
|
});
|
|
2246
1907
|
}); };
|
|
2247
1908
|
var deserializeAws_restJson1UpdateApplicationComponentConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2248
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2249
|
-
var
|
|
2250
|
-
return __generator(this, function (
|
|
2251
|
-
switch (
|
|
1909
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1910
|
+
var _c;
|
|
1911
|
+
return __generator(this, function (_d) {
|
|
1912
|
+
switch (_d.label) {
|
|
2252
1913
|
case 0:
|
|
2253
1914
|
_a = [__assign({}, output)];
|
|
2254
|
-
|
|
1915
|
+
_c = {};
|
|
2255
1916
|
return [4, parseBody(output.body, context)];
|
|
2256
1917
|
case 1:
|
|
2257
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1918
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2258
1919
|
errorCode = "UnknownError";
|
|
2259
1920
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2260
1921
|
_b = errorCode;
|
|
@@ -2269,40 +1930,22 @@ var deserializeAws_restJson1UpdateApplicationComponentConfigCommandError = funct
|
|
|
2269
1930
|
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 8];
|
|
2270
1931
|
}
|
|
2271
1932
|
return [3, 10];
|
|
2272
|
-
case 2:
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
case
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
case 4
|
|
2279
|
-
|
|
2280
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2281
|
-
case 5:
|
|
2282
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2283
|
-
return [3, 11];
|
|
2284
|
-
case 6:
|
|
2285
|
-
_e = [{}];
|
|
2286
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2287
|
-
case 7:
|
|
2288
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2289
|
-
return [3, 11];
|
|
2290
|
-
case 8:
|
|
2291
|
-
_f = [{}];
|
|
2292
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2293
|
-
case 9:
|
|
2294
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2295
|
-
return [3, 11];
|
|
1933
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1934
|
+
case 3: throw _d.sent();
|
|
1935
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1936
|
+
case 5: throw _d.sent();
|
|
1937
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1938
|
+
case 7: throw _d.sent();
|
|
1939
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1940
|
+
case 9: throw _d.sent();
|
|
2296
1941
|
case 10:
|
|
2297
1942
|
parsedBody = parsedOutput.body;
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
response
|
|
2304
|
-
delete response.Message;
|
|
2305
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1943
|
+
response = new __BaseException({
|
|
1944
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1945
|
+
$fault: "client",
|
|
1946
|
+
$metadata: deserializeMetadata(output),
|
|
1947
|
+
});
|
|
1948
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2306
1949
|
}
|
|
2307
1950
|
});
|
|
2308
1951
|
}); };
|
|
@@ -2325,16 +1968,16 @@ export var deserializeAws_restJson1UpdateServerConfigCommand = function (output,
|
|
|
2325
1968
|
});
|
|
2326
1969
|
}); };
|
|
2327
1970
|
var deserializeAws_restJson1UpdateServerConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2328
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2329
|
-
var
|
|
2330
|
-
return __generator(this, function (
|
|
2331
|
-
switch (
|
|
1971
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1972
|
+
var _c;
|
|
1973
|
+
return __generator(this, function (_d) {
|
|
1974
|
+
switch (_d.label) {
|
|
2332
1975
|
case 0:
|
|
2333
1976
|
_a = [__assign({}, output)];
|
|
2334
|
-
|
|
1977
|
+
_c = {};
|
|
2335
1978
|
return [4, parseBody(output.body, context)];
|
|
2336
1979
|
case 1:
|
|
2337
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1980
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2338
1981
|
errorCode = "UnknownError";
|
|
2339
1982
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2340
1983
|
_b = errorCode;
|
|
@@ -2349,169 +1992,119 @@ var deserializeAws_restJson1UpdateServerConfigCommandError = function (output, c
|
|
|
2349
1992
|
case "com.amazonaws.migrationhubstrategy#ValidationException": return [3, 8];
|
|
2350
1993
|
}
|
|
2351
1994
|
return [3, 10];
|
|
2352
|
-
case 2:
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
case
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
case 4
|
|
2359
|
-
|
|
2360
|
-
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2361
|
-
case 5:
|
|
2362
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2363
|
-
return [3, 11];
|
|
2364
|
-
case 6:
|
|
2365
|
-
_e = [{}];
|
|
2366
|
-
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2367
|
-
case 7:
|
|
2368
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2369
|
-
return [3, 11];
|
|
2370
|
-
case 8:
|
|
2371
|
-
_f = [{}];
|
|
2372
|
-
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2373
|
-
case 9:
|
|
2374
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2375
|
-
return [3, 11];
|
|
1995
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1996
|
+
case 3: throw _d.sent();
|
|
1997
|
+
case 4: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1998
|
+
case 5: throw _d.sent();
|
|
1999
|
+
case 6: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2000
|
+
case 7: throw _d.sent();
|
|
2001
|
+
case 8: return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
2002
|
+
case 9: throw _d.sent();
|
|
2376
2003
|
case 10:
|
|
2377
2004
|
parsedBody = parsedOutput.body;
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
response
|
|
2384
|
-
delete response.Message;
|
|
2385
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2005
|
+
response = new __BaseException({
|
|
2006
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2007
|
+
$fault: "client",
|
|
2008
|
+
$metadata: deserializeMetadata(output),
|
|
2009
|
+
});
|
|
2010
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2386
2011
|
}
|
|
2387
2012
|
});
|
|
2388
2013
|
}); };
|
|
2389
2014
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2390
|
-
var contents, data;
|
|
2015
|
+
var contents, data, exception;
|
|
2391
2016
|
return __generator(this, function (_a) {
|
|
2392
|
-
contents = {
|
|
2393
|
-
name: "AccessDeniedException",
|
|
2394
|
-
$fault: "client",
|
|
2395
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2396
|
-
message: undefined,
|
|
2397
|
-
};
|
|
2017
|
+
contents = {};
|
|
2398
2018
|
data = parsedOutput.body;
|
|
2399
2019
|
if (data.message !== undefined && data.message !== null) {
|
|
2400
2020
|
contents.message = __expectString(data.message);
|
|
2401
2021
|
}
|
|
2402
|
-
|
|
2022
|
+
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2023
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2403
2024
|
});
|
|
2404
2025
|
}); };
|
|
2405
2026
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2406
|
-
var contents, data;
|
|
2027
|
+
var contents, data, exception;
|
|
2407
2028
|
return __generator(this, function (_a) {
|
|
2408
|
-
contents = {
|
|
2409
|
-
name: "ConflictException",
|
|
2410
|
-
$fault: "client",
|
|
2411
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2412
|
-
message: undefined,
|
|
2413
|
-
};
|
|
2029
|
+
contents = {};
|
|
2414
2030
|
data = parsedOutput.body;
|
|
2415
2031
|
if (data.message !== undefined && data.message !== null) {
|
|
2416
2032
|
contents.message = __expectString(data.message);
|
|
2417
2033
|
}
|
|
2418
|
-
|
|
2034
|
+
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2035
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2419
2036
|
});
|
|
2420
2037
|
}); };
|
|
2421
2038
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2422
|
-
var contents, data;
|
|
2039
|
+
var contents, data, exception;
|
|
2423
2040
|
return __generator(this, function (_a) {
|
|
2424
|
-
contents = {
|
|
2425
|
-
name: "InternalServerException",
|
|
2426
|
-
$fault: "server",
|
|
2427
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2428
|
-
message: undefined,
|
|
2429
|
-
};
|
|
2041
|
+
contents = {};
|
|
2430
2042
|
data = parsedOutput.body;
|
|
2431
2043
|
if (data.message !== undefined && data.message !== null) {
|
|
2432
2044
|
contents.message = __expectString(data.message);
|
|
2433
2045
|
}
|
|
2434
|
-
|
|
2046
|
+
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2047
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2435
2048
|
});
|
|
2436
2049
|
}); };
|
|
2437
2050
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2438
|
-
var contents, data;
|
|
2051
|
+
var contents, data, exception;
|
|
2439
2052
|
return __generator(this, function (_a) {
|
|
2440
|
-
contents = {
|
|
2441
|
-
name: "ResourceNotFoundException",
|
|
2442
|
-
$fault: "client",
|
|
2443
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2444
|
-
message: undefined,
|
|
2445
|
-
};
|
|
2053
|
+
contents = {};
|
|
2446
2054
|
data = parsedOutput.body;
|
|
2447
2055
|
if (data.message !== undefined && data.message !== null) {
|
|
2448
2056
|
contents.message = __expectString(data.message);
|
|
2449
2057
|
}
|
|
2450
|
-
|
|
2058
|
+
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2059
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2451
2060
|
});
|
|
2452
2061
|
}); };
|
|
2453
2062
|
var deserializeAws_restJson1ServiceLinkedRoleLockClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2454
|
-
var contents, data;
|
|
2063
|
+
var contents, data, exception;
|
|
2455
2064
|
return __generator(this, function (_a) {
|
|
2456
|
-
contents = {
|
|
2457
|
-
name: "ServiceLinkedRoleLockClientException",
|
|
2458
|
-
$fault: "client",
|
|
2459
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2460
|
-
message: undefined,
|
|
2461
|
-
};
|
|
2065
|
+
contents = {};
|
|
2462
2066
|
data = parsedOutput.body;
|
|
2463
2067
|
if (data.message !== undefined && data.message !== null) {
|
|
2464
2068
|
contents.message = __expectString(data.message);
|
|
2465
2069
|
}
|
|
2466
|
-
|
|
2070
|
+
exception = new ServiceLinkedRoleLockClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2071
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2467
2072
|
});
|
|
2468
2073
|
}); };
|
|
2469
2074
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2470
|
-
var contents, data;
|
|
2075
|
+
var contents, data, exception;
|
|
2471
2076
|
return __generator(this, function (_a) {
|
|
2472
|
-
contents = {
|
|
2473
|
-
name: "ServiceQuotaExceededException",
|
|
2474
|
-
$fault: "client",
|
|
2475
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2476
|
-
message: undefined,
|
|
2477
|
-
};
|
|
2077
|
+
contents = {};
|
|
2478
2078
|
data = parsedOutput.body;
|
|
2479
2079
|
if (data.message !== undefined && data.message !== null) {
|
|
2480
2080
|
contents.message = __expectString(data.message);
|
|
2481
2081
|
}
|
|
2482
|
-
|
|
2082
|
+
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2083
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2483
2084
|
});
|
|
2484
2085
|
}); };
|
|
2485
2086
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2486
|
-
var contents, data;
|
|
2087
|
+
var contents, data, exception;
|
|
2487
2088
|
return __generator(this, function (_a) {
|
|
2488
|
-
contents = {
|
|
2489
|
-
name: "ThrottlingException",
|
|
2490
|
-
$fault: "client",
|
|
2491
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2492
|
-
message: undefined,
|
|
2493
|
-
};
|
|
2089
|
+
contents = {};
|
|
2494
2090
|
data = parsedOutput.body;
|
|
2495
2091
|
if (data.message !== undefined && data.message !== null) {
|
|
2496
2092
|
contents.message = __expectString(data.message);
|
|
2497
2093
|
}
|
|
2498
|
-
|
|
2094
|
+
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2095
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2499
2096
|
});
|
|
2500
2097
|
}); };
|
|
2501
2098
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2502
|
-
var contents, data;
|
|
2099
|
+
var contents, data, exception;
|
|
2503
2100
|
return __generator(this, function (_a) {
|
|
2504
|
-
contents = {
|
|
2505
|
-
name: "ValidationException",
|
|
2506
|
-
$fault: "client",
|
|
2507
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2508
|
-
message: undefined,
|
|
2509
|
-
};
|
|
2101
|
+
contents = {};
|
|
2510
2102
|
data = parsedOutput.body;
|
|
2511
2103
|
if (data.message !== undefined && data.message !== null) {
|
|
2512
2104
|
contents.message = __expectString(data.message);
|
|
2513
2105
|
}
|
|
2514
|
-
|
|
2106
|
+
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2107
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2515
2108
|
});
|
|
2516
2109
|
}); };
|
|
2517
2110
|
var serializeAws_restJson1ApplicationPreferences = function (input, context) {
|
|
@@ -2735,7 +2328,7 @@ var deserializeAws_restJson1ApplicationComponentDetail = function (output, conte
|
|
|
2735
2328
|
};
|
|
2736
2329
|
};
|
|
2737
2330
|
var deserializeAws_restJson1ApplicationComponentDetails = function (output, context) {
|
|
2738
|
-
|
|
2331
|
+
var retVal = (output || [])
|
|
2739
2332
|
.filter(function (e) { return e != null; })
|
|
2740
2333
|
.map(function (entry) {
|
|
2741
2334
|
if (entry === null) {
|
|
@@ -2743,9 +2336,10 @@ var deserializeAws_restJson1ApplicationComponentDetails = function (output, cont
|
|
|
2743
2336
|
}
|
|
2744
2337
|
return deserializeAws_restJson1ApplicationComponentDetail(entry, context);
|
|
2745
2338
|
});
|
|
2339
|
+
return retVal;
|
|
2746
2340
|
};
|
|
2747
2341
|
var deserializeAws_restJson1ApplicationComponentStrategies = function (output, context) {
|
|
2748
|
-
|
|
2342
|
+
var retVal = (output || [])
|
|
2749
2343
|
.filter(function (e) { return e != null; })
|
|
2750
2344
|
.map(function (entry) {
|
|
2751
2345
|
if (entry === null) {
|
|
@@ -2753,6 +2347,7 @@ var deserializeAws_restJson1ApplicationComponentStrategies = function (output, c
|
|
|
2753
2347
|
}
|
|
2754
2348
|
return deserializeAws_restJson1ApplicationComponentStrategy(entry, context);
|
|
2755
2349
|
});
|
|
2350
|
+
return retVal;
|
|
2756
2351
|
};
|
|
2757
2352
|
var deserializeAws_restJson1ApplicationComponentStrategy = function (output, context) {
|
|
2758
2353
|
return {
|
|
@@ -2811,7 +2406,7 @@ var deserializeAws_restJson1AssociatedApplication = function (output, context) {
|
|
|
2811
2406
|
};
|
|
2812
2407
|
};
|
|
2813
2408
|
var deserializeAws_restJson1AssociatedApplications = function (output, context) {
|
|
2814
|
-
|
|
2409
|
+
var retVal = (output || [])
|
|
2815
2410
|
.filter(function (e) { return e != null; })
|
|
2816
2411
|
.map(function (entry) {
|
|
2817
2412
|
if (entry === null) {
|
|
@@ -2819,9 +2414,10 @@ var deserializeAws_restJson1AssociatedApplications = function (output, context)
|
|
|
2819
2414
|
}
|
|
2820
2415
|
return deserializeAws_restJson1AssociatedApplication(entry, context);
|
|
2821
2416
|
});
|
|
2417
|
+
return retVal;
|
|
2822
2418
|
};
|
|
2823
2419
|
var deserializeAws_restJson1AssociatedServerIDs = function (output, context) {
|
|
2824
|
-
|
|
2420
|
+
var retVal = (output || [])
|
|
2825
2421
|
.filter(function (e) { return e != null; })
|
|
2826
2422
|
.map(function (entry) {
|
|
2827
2423
|
if (entry === null) {
|
|
@@ -2829,6 +2425,7 @@ var deserializeAws_restJson1AssociatedServerIDs = function (output, context) {
|
|
|
2829
2425
|
}
|
|
2830
2426
|
return __expectString(entry);
|
|
2831
2427
|
});
|
|
2428
|
+
return retVal;
|
|
2832
2429
|
};
|
|
2833
2430
|
var deserializeAws_restJson1AwsManagedResources = function (output, context) {
|
|
2834
2431
|
return {
|
|
@@ -2838,7 +2435,7 @@ var deserializeAws_restJson1AwsManagedResources = function (output, context) {
|
|
|
2838
2435
|
};
|
|
2839
2436
|
};
|
|
2840
2437
|
var deserializeAws_restJson1AwsManagedTargetDestinations = function (output, context) {
|
|
2841
|
-
|
|
2438
|
+
var retVal = (output || [])
|
|
2842
2439
|
.filter(function (e) { return e != null; })
|
|
2843
2440
|
.map(function (entry) {
|
|
2844
2441
|
if (entry === null) {
|
|
@@ -2846,6 +2443,7 @@ var deserializeAws_restJson1AwsManagedTargetDestinations = function (output, con
|
|
|
2846
2443
|
}
|
|
2847
2444
|
return __expectString(entry);
|
|
2848
2445
|
});
|
|
2446
|
+
return retVal;
|
|
2849
2447
|
};
|
|
2850
2448
|
var deserializeAws_restJson1BusinessGoals = function (output, context) {
|
|
2851
2449
|
return {
|
|
@@ -2867,7 +2465,7 @@ var deserializeAws_restJson1Collector = function (output, context) {
|
|
|
2867
2465
|
};
|
|
2868
2466
|
};
|
|
2869
2467
|
var deserializeAws_restJson1Collectors = function (output, context) {
|
|
2870
|
-
|
|
2468
|
+
var retVal = (output || [])
|
|
2871
2469
|
.filter(function (e) { return e != null; })
|
|
2872
2470
|
.map(function (entry) {
|
|
2873
2471
|
if (entry === null) {
|
|
@@ -2875,6 +2473,7 @@ var deserializeAws_restJson1Collectors = function (output, context) {
|
|
|
2875
2473
|
}
|
|
2876
2474
|
return deserializeAws_restJson1Collector(entry, context);
|
|
2877
2475
|
});
|
|
2476
|
+
return retVal;
|
|
2878
2477
|
};
|
|
2879
2478
|
var deserializeAws_restJson1DatabaseConfigDetail = function (output, context) {
|
|
2880
2479
|
return {
|
|
@@ -2930,7 +2529,7 @@ var deserializeAws_restJson1Heterogeneous = function (output, context) {
|
|
|
2930
2529
|
};
|
|
2931
2530
|
};
|
|
2932
2531
|
var deserializeAws_restJson1HeterogeneousTargetDatabaseEngines = function (output, context) {
|
|
2933
|
-
|
|
2532
|
+
var retVal = (output || [])
|
|
2934
2533
|
.filter(function (e) { return e != null; })
|
|
2935
2534
|
.map(function (entry) {
|
|
2936
2535
|
if (entry === null) {
|
|
@@ -2938,6 +2537,7 @@ var deserializeAws_restJson1HeterogeneousTargetDatabaseEngines = function (outpu
|
|
|
2938
2537
|
}
|
|
2939
2538
|
return __expectString(entry);
|
|
2940
2539
|
});
|
|
2540
|
+
return retVal;
|
|
2941
2541
|
};
|
|
2942
2542
|
var deserializeAws_restJson1Homogeneous = function (output, context) {
|
|
2943
2543
|
return {
|
|
@@ -2947,7 +2547,7 @@ var deserializeAws_restJson1Homogeneous = function (output, context) {
|
|
|
2947
2547
|
};
|
|
2948
2548
|
};
|
|
2949
2549
|
var deserializeAws_restJson1HomogeneousTargetDatabaseEngines = function (output, context) {
|
|
2950
|
-
|
|
2550
|
+
var retVal = (output || [])
|
|
2951
2551
|
.filter(function (e) { return e != null; })
|
|
2952
2552
|
.map(function (entry) {
|
|
2953
2553
|
if (entry === null) {
|
|
@@ -2955,6 +2555,7 @@ var deserializeAws_restJson1HomogeneousTargetDatabaseEngines = function (output,
|
|
|
2955
2555
|
}
|
|
2956
2556
|
return __expectString(entry);
|
|
2957
2557
|
});
|
|
2558
|
+
return retVal;
|
|
2958
2559
|
};
|
|
2959
2560
|
var deserializeAws_restJson1ImportFileTaskInformation = function (output, context) {
|
|
2960
2561
|
return {
|
|
@@ -2976,7 +2577,7 @@ var deserializeAws_restJson1ImportFileTaskInformation = function (output, contex
|
|
|
2976
2577
|
};
|
|
2977
2578
|
};
|
|
2978
2579
|
var deserializeAws_restJson1ListAntipatternSeveritySummary = function (output, context) {
|
|
2979
|
-
|
|
2580
|
+
var retVal = (output || [])
|
|
2980
2581
|
.filter(function (e) { return e != null; })
|
|
2981
2582
|
.map(function (entry) {
|
|
2982
2583
|
if (entry === null) {
|
|
@@ -2984,9 +2585,10 @@ var deserializeAws_restJson1ListAntipatternSeveritySummary = function (output, c
|
|
|
2984
2585
|
}
|
|
2985
2586
|
return deserializeAws_restJson1AntipatternSeveritySummary(entry, context);
|
|
2986
2587
|
});
|
|
2588
|
+
return retVal;
|
|
2987
2589
|
};
|
|
2988
2590
|
var deserializeAws_restJson1ListApplicationComponentSummary = function (output, context) {
|
|
2989
|
-
|
|
2591
|
+
var retVal = (output || [])
|
|
2990
2592
|
.filter(function (e) { return e != null; })
|
|
2991
2593
|
.map(function (entry) {
|
|
2992
2594
|
if (entry === null) {
|
|
@@ -2994,9 +2596,10 @@ var deserializeAws_restJson1ListApplicationComponentSummary = function (output,
|
|
|
2994
2596
|
}
|
|
2995
2597
|
return deserializeAws_restJson1ApplicationComponentSummary(entry, context);
|
|
2996
2598
|
});
|
|
2599
|
+
return retVal;
|
|
2997
2600
|
};
|
|
2998
2601
|
var deserializeAws_restJson1ListImportFileTaskInformation = function (output, context) {
|
|
2999
|
-
|
|
2602
|
+
var retVal = (output || [])
|
|
3000
2603
|
.filter(function (e) { return e != null; })
|
|
3001
2604
|
.map(function (entry) {
|
|
3002
2605
|
if (entry === null) {
|
|
@@ -3004,9 +2607,10 @@ var deserializeAws_restJson1ListImportFileTaskInformation = function (output, co
|
|
|
3004
2607
|
}
|
|
3005
2608
|
return deserializeAws_restJson1ImportFileTaskInformation(entry, context);
|
|
3006
2609
|
});
|
|
2610
|
+
return retVal;
|
|
3007
2611
|
};
|
|
3008
2612
|
var deserializeAws_restJson1ListServerSummary = function (output, context) {
|
|
3009
|
-
|
|
2613
|
+
var retVal = (output || [])
|
|
3010
2614
|
.filter(function (e) { return e != null; })
|
|
3011
2615
|
.map(function (entry) {
|
|
3012
2616
|
if (entry === null) {
|
|
@@ -3014,9 +2618,10 @@ var deserializeAws_restJson1ListServerSummary = function (output, context) {
|
|
|
3014
2618
|
}
|
|
3015
2619
|
return deserializeAws_restJson1ServerSummary(entry, context);
|
|
3016
2620
|
});
|
|
2621
|
+
return retVal;
|
|
3017
2622
|
};
|
|
3018
2623
|
var deserializeAws_restJson1ListStrategySummary = function (output, context) {
|
|
3019
|
-
|
|
2624
|
+
var retVal = (output || [])
|
|
3020
2625
|
.filter(function (e) { return e != null; })
|
|
3021
2626
|
.map(function (entry) {
|
|
3022
2627
|
if (entry === null) {
|
|
@@ -3024,6 +2629,7 @@ var deserializeAws_restJson1ListStrategySummary = function (output, context) {
|
|
|
3024
2629
|
}
|
|
3025
2630
|
return deserializeAws_restJson1StrategySummary(entry, context);
|
|
3026
2631
|
});
|
|
2632
|
+
return retVal;
|
|
3027
2633
|
};
|
|
3028
2634
|
var deserializeAws_restJson1ManagementPreference = function (output, context) {
|
|
3029
2635
|
if (output.awsManagedResources !== undefined && output.awsManagedResources !== null) {
|
|
@@ -3052,7 +2658,7 @@ var deserializeAws_restJson1NetworkInfo = function (output, context) {
|
|
|
3052
2658
|
};
|
|
3053
2659
|
};
|
|
3054
2660
|
var deserializeAws_restJson1NetworkInfoList = function (output, context) {
|
|
3055
|
-
|
|
2661
|
+
var retVal = (output || [])
|
|
3056
2662
|
.filter(function (e) { return e != null; })
|
|
3057
2663
|
.map(function (entry) {
|
|
3058
2664
|
if (entry === null) {
|
|
@@ -3060,6 +2666,7 @@ var deserializeAws_restJson1NetworkInfoList = function (output, context) {
|
|
|
3060
2666
|
}
|
|
3061
2667
|
return deserializeAws_restJson1NetworkInfo(entry, context);
|
|
3062
2668
|
});
|
|
2669
|
+
return retVal;
|
|
3063
2670
|
};
|
|
3064
2671
|
var deserializeAws_restJson1NoDatabaseMigrationPreference = function (output, context) {
|
|
3065
2672
|
return {
|
|
@@ -3076,7 +2683,7 @@ var deserializeAws_restJson1NoManagementPreference = function (output, context)
|
|
|
3076
2683
|
};
|
|
3077
2684
|
};
|
|
3078
2685
|
var deserializeAws_restJson1NoPreferenceTargetDestinations = function (output, context) {
|
|
3079
|
-
|
|
2686
|
+
var retVal = (output || [])
|
|
3080
2687
|
.filter(function (e) { return e != null; })
|
|
3081
2688
|
.map(function (entry) {
|
|
3082
2689
|
if (entry === null) {
|
|
@@ -3084,6 +2691,7 @@ var deserializeAws_restJson1NoPreferenceTargetDestinations = function (output, c
|
|
|
3084
2691
|
}
|
|
3085
2692
|
return __expectString(entry);
|
|
3086
2693
|
});
|
|
2694
|
+
return retVal;
|
|
3087
2695
|
};
|
|
3088
2696
|
var deserializeAws_restJson1OSInfo = function (output, context) {
|
|
3089
2697
|
return {
|
|
@@ -3124,7 +2732,7 @@ var deserializeAws_restJson1RecommendationSet = function (output, context) {
|
|
|
3124
2732
|
};
|
|
3125
2733
|
};
|
|
3126
2734
|
var deserializeAws_restJson1S3Keys = function (output, context) {
|
|
3127
|
-
|
|
2735
|
+
var retVal = (output || [])
|
|
3128
2736
|
.filter(function (e) { return e != null; })
|
|
3129
2737
|
.map(function (entry) {
|
|
3130
2738
|
if (entry === null) {
|
|
@@ -3132,6 +2740,7 @@ var deserializeAws_restJson1S3Keys = function (output, context) {
|
|
|
3132
2740
|
}
|
|
3133
2741
|
return __expectString(entry);
|
|
3134
2742
|
});
|
|
2743
|
+
return retVal;
|
|
3135
2744
|
};
|
|
3136
2745
|
var deserializeAws_restJson1S3Object = function (output, context) {
|
|
3137
2746
|
return {
|
|
@@ -3147,7 +2756,7 @@ var deserializeAws_restJson1SelfManageResources = function (output, context) {
|
|
|
3147
2756
|
};
|
|
3148
2757
|
};
|
|
3149
2758
|
var deserializeAws_restJson1SelfManageTargetDestinations = function (output, context) {
|
|
3150
|
-
|
|
2759
|
+
var retVal = (output || [])
|
|
3151
2760
|
.filter(function (e) { return e != null; })
|
|
3152
2761
|
.map(function (entry) {
|
|
3153
2762
|
if (entry === null) {
|
|
@@ -3155,6 +2764,7 @@ var deserializeAws_restJson1SelfManageTargetDestinations = function (output, con
|
|
|
3155
2764
|
}
|
|
3156
2765
|
return __expectString(entry);
|
|
3157
2766
|
});
|
|
2767
|
+
return retVal;
|
|
3158
2768
|
};
|
|
3159
2769
|
var deserializeAws_restJson1ServerDetail = function (output, context) {
|
|
3160
2770
|
return {
|
|
@@ -3186,7 +2796,7 @@ var deserializeAws_restJson1ServerDetail = function (output, context) {
|
|
|
3186
2796
|
};
|
|
3187
2797
|
};
|
|
3188
2798
|
var deserializeAws_restJson1ServerDetails = function (output, context) {
|
|
3189
|
-
|
|
2799
|
+
var retVal = (output || [])
|
|
3190
2800
|
.filter(function (e) { return e != null; })
|
|
3191
2801
|
.map(function (entry) {
|
|
3192
2802
|
if (entry === null) {
|
|
@@ -3194,9 +2804,10 @@ var deserializeAws_restJson1ServerDetails = function (output, context) {
|
|
|
3194
2804
|
}
|
|
3195
2805
|
return deserializeAws_restJson1ServerDetail(entry, context);
|
|
3196
2806
|
});
|
|
2807
|
+
return retVal;
|
|
3197
2808
|
};
|
|
3198
2809
|
var deserializeAws_restJson1ServerStrategies = function (output, context) {
|
|
3199
|
-
|
|
2810
|
+
var retVal = (output || [])
|
|
3200
2811
|
.filter(function (e) { return e != null; })
|
|
3201
2812
|
.map(function (entry) {
|
|
3202
2813
|
if (entry === null) {
|
|
@@ -3204,6 +2815,7 @@ var deserializeAws_restJson1ServerStrategies = function (output, context) {
|
|
|
3204
2815
|
}
|
|
3205
2816
|
return deserializeAws_restJson1ServerStrategy(entry, context);
|
|
3206
2817
|
});
|
|
2818
|
+
return retVal;
|
|
3207
2819
|
};
|
|
3208
2820
|
var deserializeAws_restJson1ServerStrategy = function (output, context) {
|
|
3209
2821
|
return {
|
|
@@ -3222,7 +2834,7 @@ var deserializeAws_restJson1ServerSummary = function (output, context) {
|
|
|
3222
2834
|
};
|
|
3223
2835
|
};
|
|
3224
2836
|
var deserializeAws_restJson1SourceCodeRepositories = function (output, context) {
|
|
3225
|
-
|
|
2837
|
+
var retVal = (output || [])
|
|
3226
2838
|
.filter(function (e) { return e != null; })
|
|
3227
2839
|
.map(function (entry) {
|
|
3228
2840
|
if (entry === null) {
|
|
@@ -3230,6 +2842,7 @@ var deserializeAws_restJson1SourceCodeRepositories = function (output, context)
|
|
|
3230
2842
|
}
|
|
3231
2843
|
return deserializeAws_restJson1SourceCodeRepository(entry, context);
|
|
3232
2844
|
});
|
|
2845
|
+
return retVal;
|
|
3233
2846
|
};
|
|
3234
2847
|
var deserializeAws_restJson1SourceCodeRepository = function (output, context) {
|
|
3235
2848
|
return {
|
|
@@ -3257,7 +2870,7 @@ var deserializeAws_restJson1SystemInfo = function (output, context) {
|
|
|
3257
2870
|
};
|
|
3258
2871
|
};
|
|
3259
2872
|
var deserializeAws_restJson1TargetDatabaseEngines = function (output, context) {
|
|
3260
|
-
|
|
2873
|
+
var retVal = (output || [])
|
|
3261
2874
|
.filter(function (e) { return e != null; })
|
|
3262
2875
|
.map(function (entry) {
|
|
3263
2876
|
if (entry === null) {
|
|
@@ -3265,6 +2878,7 @@ var deserializeAws_restJson1TargetDatabaseEngines = function (output, context) {
|
|
|
3265
2878
|
}
|
|
3266
2879
|
return __expectString(entry);
|
|
3267
2880
|
});
|
|
2881
|
+
return retVal;
|
|
3268
2882
|
};
|
|
3269
2883
|
var deserializeAws_restJson1TransformationTool = function (output, context) {
|
|
3270
2884
|
return {
|