@aws-sdk/client-direct-connect 3.52.0 → 3.54.1
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 +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/DirectConnectServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +56 -3
- package/dist-cjs/protocols/Aws_json1_1.js +456 -1559
- package/dist-es/index.js +1 -0
- package/dist-es/models/DirectConnectServiceException.js +12 -0
- package/dist-es/models/models_0.js +50 -1
- package/dist-es/protocols/Aws_json1_1.js +1109 -1804
- package/dist-types/DirectConnectClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/DirectConnectServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +30 -17
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/DirectConnectClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/DirectConnectServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +22 -17
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
|
@@ -1,6 +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, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DirectConnectServiceException as __BaseException } from "../models/DirectConnectServiceException";
|
|
5
|
+
import { DirectConnectClientException, DirectConnectServerException, DuplicateTagKeysException, TooManyTagsException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var headers, body;
|
|
6
8
|
return __generator(this, function (_a) {
|
|
@@ -713,16 +715,16 @@ export var deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCo
|
|
|
713
715
|
});
|
|
714
716
|
}); };
|
|
715
717
|
var deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
716
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
717
|
-
var
|
|
718
|
-
return __generator(this, function (
|
|
719
|
-
switch (
|
|
718
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
719
|
+
var _c;
|
|
720
|
+
return __generator(this, function (_d) {
|
|
721
|
+
switch (_d.label) {
|
|
720
722
|
case 0:
|
|
721
723
|
_a = [__assign({}, output)];
|
|
722
|
-
|
|
724
|
+
_c = {};
|
|
723
725
|
return [4, parseBody(output.body, context)];
|
|
724
726
|
case 1:
|
|
725
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
727
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
726
728
|
errorCode = "UnknownError";
|
|
727
729
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
730
|
_b = errorCode;
|
|
@@ -733,28 +735,18 @@ var deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCommandEr
|
|
|
733
735
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
734
736
|
}
|
|
735
737
|
return [3, 6];
|
|
736
|
-
case 2:
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
case
|
|
740
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
741
|
-
return [3, 7];
|
|
742
|
-
case 4:
|
|
743
|
-
_d = [{}];
|
|
744
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
745
|
-
case 5:
|
|
746
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
747
|
-
return [3, 7];
|
|
738
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
739
|
+
case 3: throw _d.sent();
|
|
740
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
741
|
+
case 5: throw _d.sent();
|
|
748
742
|
case 6:
|
|
749
743
|
parsedBody = parsedOutput.body;
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
response
|
|
756
|
-
delete response.Message;
|
|
757
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
744
|
+
response = new __BaseException({
|
|
745
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
746
|
+
$fault: "client",
|
|
747
|
+
$metadata: deserializeMetadata(output),
|
|
748
|
+
});
|
|
749
|
+
throw __decorateServiceException(response, parsedBody);
|
|
758
750
|
}
|
|
759
751
|
});
|
|
760
752
|
}); };
|
|
@@ -777,16 +769,16 @@ export var deserializeAws_json1_1AllocateConnectionOnInterconnectCommand = funct
|
|
|
777
769
|
});
|
|
778
770
|
}); };
|
|
779
771
|
var deserializeAws_json1_1AllocateConnectionOnInterconnectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
780
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
781
|
-
var
|
|
782
|
-
return __generator(this, function (
|
|
783
|
-
switch (
|
|
772
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
773
|
+
var _c;
|
|
774
|
+
return __generator(this, function (_d) {
|
|
775
|
+
switch (_d.label) {
|
|
784
776
|
case 0:
|
|
785
777
|
_a = [__assign({}, output)];
|
|
786
|
-
|
|
778
|
+
_c = {};
|
|
787
779
|
return [4, parseBody(output.body, context)];
|
|
788
780
|
case 1:
|
|
789
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
781
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
790
782
|
errorCode = "UnknownError";
|
|
791
783
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
792
784
|
_b = errorCode;
|
|
@@ -797,28 +789,18 @@ var deserializeAws_json1_1AllocateConnectionOnInterconnectCommandError = functio
|
|
|
797
789
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
798
790
|
}
|
|
799
791
|
return [3, 6];
|
|
800
|
-
case 2:
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
case
|
|
804
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
805
|
-
return [3, 7];
|
|
806
|
-
case 4:
|
|
807
|
-
_d = [{}];
|
|
808
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
809
|
-
case 5:
|
|
810
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
811
|
-
return [3, 7];
|
|
792
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
793
|
+
case 3: throw _d.sent();
|
|
794
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
795
|
+
case 5: throw _d.sent();
|
|
812
796
|
case 6:
|
|
813
797
|
parsedBody = parsedOutput.body;
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
response
|
|
820
|
-
delete response.Message;
|
|
821
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
798
|
+
response = new __BaseException({
|
|
799
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
800
|
+
$fault: "client",
|
|
801
|
+
$metadata: deserializeMetadata(output),
|
|
802
|
+
});
|
|
803
|
+
throw __decorateServiceException(response, parsedBody);
|
|
822
804
|
}
|
|
823
805
|
});
|
|
824
806
|
}); };
|
|
@@ -841,16 +823,16 @@ export var deserializeAws_json1_1AllocateHostedConnectionCommand = function (out
|
|
|
841
823
|
});
|
|
842
824
|
}); };
|
|
843
825
|
var deserializeAws_json1_1AllocateHostedConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
844
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
845
|
-
var
|
|
846
|
-
return __generator(this, function (
|
|
847
|
-
switch (
|
|
826
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
827
|
+
var _c;
|
|
828
|
+
return __generator(this, function (_d) {
|
|
829
|
+
switch (_d.label) {
|
|
848
830
|
case 0:
|
|
849
831
|
_a = [__assign({}, output)];
|
|
850
|
-
|
|
832
|
+
_c = {};
|
|
851
833
|
return [4, parseBody(output.body, context)];
|
|
852
834
|
case 1:
|
|
853
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
835
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
854
836
|
errorCode = "UnknownError";
|
|
855
837
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
856
838
|
_b = errorCode;
|
|
@@ -865,40 +847,22 @@ var deserializeAws_json1_1AllocateHostedConnectionCommandError = function (outpu
|
|
|
865
847
|
case "com.amazonaws.directconnect#TooManyTagsException": return [3, 8];
|
|
866
848
|
}
|
|
867
849
|
return [3, 10];
|
|
868
|
-
case 2:
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
case
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
case 4
|
|
875
|
-
|
|
876
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
877
|
-
case 5:
|
|
878
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
879
|
-
return [3, 11];
|
|
880
|
-
case 6:
|
|
881
|
-
_e = [{}];
|
|
882
|
-
return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
883
|
-
case 7:
|
|
884
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
885
|
-
return [3, 11];
|
|
886
|
-
case 8:
|
|
887
|
-
_f = [{}];
|
|
888
|
-
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
889
|
-
case 9:
|
|
890
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
891
|
-
return [3, 11];
|
|
850
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
851
|
+
case 3: throw _d.sent();
|
|
852
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
853
|
+
case 5: throw _d.sent();
|
|
854
|
+
case 6: return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
855
|
+
case 7: throw _d.sent();
|
|
856
|
+
case 8: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
857
|
+
case 9: throw _d.sent();
|
|
892
858
|
case 10:
|
|
893
859
|
parsedBody = parsedOutput.body;
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
response
|
|
900
|
-
delete response.Message;
|
|
901
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
860
|
+
response = new __BaseException({
|
|
861
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
862
|
+
$fault: "client",
|
|
863
|
+
$metadata: deserializeMetadata(output),
|
|
864
|
+
});
|
|
865
|
+
throw __decorateServiceException(response, parsedBody);
|
|
902
866
|
}
|
|
903
867
|
});
|
|
904
868
|
}); };
|
|
@@ -921,16 +885,16 @@ export var deserializeAws_json1_1AllocatePrivateVirtualInterfaceCommand = functi
|
|
|
921
885
|
});
|
|
922
886
|
}); };
|
|
923
887
|
var deserializeAws_json1_1AllocatePrivateVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
924
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
925
|
-
var
|
|
926
|
-
return __generator(this, function (
|
|
927
|
-
switch (
|
|
888
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
889
|
+
var _c;
|
|
890
|
+
return __generator(this, function (_d) {
|
|
891
|
+
switch (_d.label) {
|
|
928
892
|
case 0:
|
|
929
893
|
_a = [__assign({}, output)];
|
|
930
|
-
|
|
894
|
+
_c = {};
|
|
931
895
|
return [4, parseBody(output.body, context)];
|
|
932
896
|
case 1:
|
|
933
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
897
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
934
898
|
errorCode = "UnknownError";
|
|
935
899
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
936
900
|
_b = errorCode;
|
|
@@ -945,40 +909,22 @@ var deserializeAws_json1_1AllocatePrivateVirtualInterfaceCommandError = function
|
|
|
945
909
|
case "com.amazonaws.directconnect#TooManyTagsException": return [3, 8];
|
|
946
910
|
}
|
|
947
911
|
return [3, 10];
|
|
948
|
-
case 2:
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
case
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
case 4
|
|
955
|
-
|
|
956
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
957
|
-
case 5:
|
|
958
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
959
|
-
return [3, 11];
|
|
960
|
-
case 6:
|
|
961
|
-
_e = [{}];
|
|
962
|
-
return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
963
|
-
case 7:
|
|
964
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
965
|
-
return [3, 11];
|
|
966
|
-
case 8:
|
|
967
|
-
_f = [{}];
|
|
968
|
-
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
969
|
-
case 9:
|
|
970
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
971
|
-
return [3, 11];
|
|
912
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
913
|
+
case 3: throw _d.sent();
|
|
914
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
915
|
+
case 5: throw _d.sent();
|
|
916
|
+
case 6: return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
917
|
+
case 7: throw _d.sent();
|
|
918
|
+
case 8: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
919
|
+
case 9: throw _d.sent();
|
|
972
920
|
case 10:
|
|
973
921
|
parsedBody = parsedOutput.body;
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
response
|
|
980
|
-
delete response.Message;
|
|
981
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
922
|
+
response = new __BaseException({
|
|
923
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
924
|
+
$fault: "client",
|
|
925
|
+
$metadata: deserializeMetadata(output),
|
|
926
|
+
});
|
|
927
|
+
throw __decorateServiceException(response, parsedBody);
|
|
982
928
|
}
|
|
983
929
|
});
|
|
984
930
|
}); };
|
|
@@ -1001,16 +947,16 @@ export var deserializeAws_json1_1AllocatePublicVirtualInterfaceCommand = functio
|
|
|
1001
947
|
});
|
|
1002
948
|
}); };
|
|
1003
949
|
var deserializeAws_json1_1AllocatePublicVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1004
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1005
|
-
var
|
|
1006
|
-
return __generator(this, function (
|
|
1007
|
-
switch (
|
|
950
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
951
|
+
var _c;
|
|
952
|
+
return __generator(this, function (_d) {
|
|
953
|
+
switch (_d.label) {
|
|
1008
954
|
case 0:
|
|
1009
955
|
_a = [__assign({}, output)];
|
|
1010
|
-
|
|
956
|
+
_c = {};
|
|
1011
957
|
return [4, parseBody(output.body, context)];
|
|
1012
958
|
case 1:
|
|
1013
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
959
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1014
960
|
errorCode = "UnknownError";
|
|
1015
961
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1016
962
|
_b = errorCode;
|
|
@@ -1025,40 +971,22 @@ var deserializeAws_json1_1AllocatePublicVirtualInterfaceCommandError = function
|
|
|
1025
971
|
case "com.amazonaws.directconnect#TooManyTagsException": return [3, 8];
|
|
1026
972
|
}
|
|
1027
973
|
return [3, 10];
|
|
1028
|
-
case 2:
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
case
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
case 4
|
|
1035
|
-
|
|
1036
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1037
|
-
case 5:
|
|
1038
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1039
|
-
return [3, 11];
|
|
1040
|
-
case 6:
|
|
1041
|
-
_e = [{}];
|
|
1042
|
-
return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
1043
|
-
case 7:
|
|
1044
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1045
|
-
return [3, 11];
|
|
1046
|
-
case 8:
|
|
1047
|
-
_f = [{}];
|
|
1048
|
-
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1049
|
-
case 9:
|
|
1050
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1051
|
-
return [3, 11];
|
|
974
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
975
|
+
case 3: throw _d.sent();
|
|
976
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
977
|
+
case 5: throw _d.sent();
|
|
978
|
+
case 6: return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
979
|
+
case 7: throw _d.sent();
|
|
980
|
+
case 8: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
981
|
+
case 9: throw _d.sent();
|
|
1052
982
|
case 10:
|
|
1053
983
|
parsedBody = parsedOutput.body;
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
response
|
|
1060
|
-
delete response.Message;
|
|
1061
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
984
|
+
response = new __BaseException({
|
|
985
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
986
|
+
$fault: "client",
|
|
987
|
+
$metadata: deserializeMetadata(output),
|
|
988
|
+
});
|
|
989
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1062
990
|
}
|
|
1063
991
|
});
|
|
1064
992
|
}); };
|
|
@@ -1081,16 +1009,16 @@ export var deserializeAws_json1_1AllocateTransitVirtualInterfaceCommand = functi
|
|
|
1081
1009
|
});
|
|
1082
1010
|
}); };
|
|
1083
1011
|
var deserializeAws_json1_1AllocateTransitVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1084
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1085
|
-
var
|
|
1086
|
-
return __generator(this, function (
|
|
1087
|
-
switch (
|
|
1012
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1013
|
+
var _c;
|
|
1014
|
+
return __generator(this, function (_d) {
|
|
1015
|
+
switch (_d.label) {
|
|
1088
1016
|
case 0:
|
|
1089
1017
|
_a = [__assign({}, output)];
|
|
1090
|
-
|
|
1018
|
+
_c = {};
|
|
1091
1019
|
return [4, parseBody(output.body, context)];
|
|
1092
1020
|
case 1:
|
|
1093
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1021
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1094
1022
|
errorCode = "UnknownError";
|
|
1095
1023
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1096
1024
|
_b = errorCode;
|
|
@@ -1105,40 +1033,22 @@ var deserializeAws_json1_1AllocateTransitVirtualInterfaceCommandError = function
|
|
|
1105
1033
|
case "com.amazonaws.directconnect#TooManyTagsException": return [3, 8];
|
|
1106
1034
|
}
|
|
1107
1035
|
return [3, 10];
|
|
1108
|
-
case 2:
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
case
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
case 4
|
|
1115
|
-
|
|
1116
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1117
|
-
case 5:
|
|
1118
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1119
|
-
return [3, 11];
|
|
1120
|
-
case 6:
|
|
1121
|
-
_e = [{}];
|
|
1122
|
-
return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
1123
|
-
case 7:
|
|
1124
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1125
|
-
return [3, 11];
|
|
1126
|
-
case 8:
|
|
1127
|
-
_f = [{}];
|
|
1128
|
-
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1129
|
-
case 9:
|
|
1130
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1131
|
-
return [3, 11];
|
|
1036
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1037
|
+
case 3: throw _d.sent();
|
|
1038
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1039
|
+
case 5: throw _d.sent();
|
|
1040
|
+
case 6: return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
1041
|
+
case 7: throw _d.sent();
|
|
1042
|
+
case 8: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1043
|
+
case 9: throw _d.sent();
|
|
1132
1044
|
case 10:
|
|
1133
1045
|
parsedBody = parsedOutput.body;
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
response
|
|
1140
|
-
delete response.Message;
|
|
1141
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1046
|
+
response = new __BaseException({
|
|
1047
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1048
|
+
$fault: "client",
|
|
1049
|
+
$metadata: deserializeMetadata(output),
|
|
1050
|
+
});
|
|
1051
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1142
1052
|
}
|
|
1143
1053
|
});
|
|
1144
1054
|
}); };
|
|
@@ -1161,16 +1071,16 @@ export var deserializeAws_json1_1AssociateConnectionWithLagCommand = function (o
|
|
|
1161
1071
|
});
|
|
1162
1072
|
}); };
|
|
1163
1073
|
var deserializeAws_json1_1AssociateConnectionWithLagCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1164
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1165
|
-
var
|
|
1166
|
-
return __generator(this, function (
|
|
1167
|
-
switch (
|
|
1074
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1075
|
+
var _c;
|
|
1076
|
+
return __generator(this, function (_d) {
|
|
1077
|
+
switch (_d.label) {
|
|
1168
1078
|
case 0:
|
|
1169
1079
|
_a = [__assign({}, output)];
|
|
1170
|
-
|
|
1080
|
+
_c = {};
|
|
1171
1081
|
return [4, parseBody(output.body, context)];
|
|
1172
1082
|
case 1:
|
|
1173
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1083
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1174
1084
|
errorCode = "UnknownError";
|
|
1175
1085
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1176
1086
|
_b = errorCode;
|
|
@@ -1181,28 +1091,18 @@ var deserializeAws_json1_1AssociateConnectionWithLagCommandError = function (out
|
|
|
1181
1091
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
1182
1092
|
}
|
|
1183
1093
|
return [3, 6];
|
|
1184
|
-
case 2:
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
case
|
|
1188
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1189
|
-
return [3, 7];
|
|
1190
|
-
case 4:
|
|
1191
|
-
_d = [{}];
|
|
1192
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1193
|
-
case 5:
|
|
1194
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1195
|
-
return [3, 7];
|
|
1094
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1095
|
+
case 3: throw _d.sent();
|
|
1096
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1097
|
+
case 5: throw _d.sent();
|
|
1196
1098
|
case 6:
|
|
1197
1099
|
parsedBody = parsedOutput.body;
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
response
|
|
1204
|
-
delete response.Message;
|
|
1205
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1100
|
+
response = new __BaseException({
|
|
1101
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1102
|
+
$fault: "client",
|
|
1103
|
+
$metadata: deserializeMetadata(output),
|
|
1104
|
+
});
|
|
1105
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1206
1106
|
}
|
|
1207
1107
|
});
|
|
1208
1108
|
}); };
|
|
@@ -1225,16 +1125,16 @@ export var deserializeAws_json1_1AssociateHostedConnectionCommand = function (ou
|
|
|
1225
1125
|
});
|
|
1226
1126
|
}); };
|
|
1227
1127
|
var deserializeAws_json1_1AssociateHostedConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1228
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1229
|
-
var
|
|
1230
|
-
return __generator(this, function (
|
|
1231
|
-
switch (
|
|
1128
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1129
|
+
var _c;
|
|
1130
|
+
return __generator(this, function (_d) {
|
|
1131
|
+
switch (_d.label) {
|
|
1232
1132
|
case 0:
|
|
1233
1133
|
_a = [__assign({}, output)];
|
|
1234
|
-
|
|
1134
|
+
_c = {};
|
|
1235
1135
|
return [4, parseBody(output.body, context)];
|
|
1236
1136
|
case 1:
|
|
1237
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1137
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1238
1138
|
errorCode = "UnknownError";
|
|
1239
1139
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1240
1140
|
_b = errorCode;
|
|
@@ -1245,28 +1145,18 @@ var deserializeAws_json1_1AssociateHostedConnectionCommandError = function (outp
|
|
|
1245
1145
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
1246
1146
|
}
|
|
1247
1147
|
return [3, 6];
|
|
1248
|
-
case 2:
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
case
|
|
1252
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1253
|
-
return [3, 7];
|
|
1254
|
-
case 4:
|
|
1255
|
-
_d = [{}];
|
|
1256
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1257
|
-
case 5:
|
|
1258
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1259
|
-
return [3, 7];
|
|
1148
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1149
|
+
case 3: throw _d.sent();
|
|
1150
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1151
|
+
case 5: throw _d.sent();
|
|
1260
1152
|
case 6:
|
|
1261
1153
|
parsedBody = parsedOutput.body;
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
response
|
|
1268
|
-
delete response.Message;
|
|
1269
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1154
|
+
response = new __BaseException({
|
|
1155
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1156
|
+
$fault: "client",
|
|
1157
|
+
$metadata: deserializeMetadata(output),
|
|
1158
|
+
});
|
|
1159
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1270
1160
|
}
|
|
1271
1161
|
});
|
|
1272
1162
|
}); };
|
|
@@ -1289,16 +1179,16 @@ export var deserializeAws_json1_1AssociateMacSecKeyCommand = function (output, c
|
|
|
1289
1179
|
});
|
|
1290
1180
|
}); };
|
|
1291
1181
|
var deserializeAws_json1_1AssociateMacSecKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1292
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1293
|
-
var
|
|
1294
|
-
return __generator(this, function (
|
|
1295
|
-
switch (
|
|
1182
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1183
|
+
var _c;
|
|
1184
|
+
return __generator(this, function (_d) {
|
|
1185
|
+
switch (_d.label) {
|
|
1296
1186
|
case 0:
|
|
1297
1187
|
_a = [__assign({}, output)];
|
|
1298
|
-
|
|
1188
|
+
_c = {};
|
|
1299
1189
|
return [4, parseBody(output.body, context)];
|
|
1300
1190
|
case 1:
|
|
1301
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1191
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1302
1192
|
errorCode = "UnknownError";
|
|
1303
1193
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1304
1194
|
_b = errorCode;
|
|
@@ -1309,28 +1199,18 @@ var deserializeAws_json1_1AssociateMacSecKeyCommandError = function (output, con
|
|
|
1309
1199
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
1310
1200
|
}
|
|
1311
1201
|
return [3, 6];
|
|
1312
|
-
case 2:
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
case
|
|
1316
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1317
|
-
return [3, 7];
|
|
1318
|
-
case 4:
|
|
1319
|
-
_d = [{}];
|
|
1320
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1321
|
-
case 5:
|
|
1322
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1323
|
-
return [3, 7];
|
|
1202
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1203
|
+
case 3: throw _d.sent();
|
|
1204
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1205
|
+
case 5: throw _d.sent();
|
|
1324
1206
|
case 6:
|
|
1325
1207
|
parsedBody = parsedOutput.body;
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
response
|
|
1332
|
-
delete response.Message;
|
|
1333
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1208
|
+
response = new __BaseException({
|
|
1209
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1210
|
+
$fault: "client",
|
|
1211
|
+
$metadata: deserializeMetadata(output),
|
|
1212
|
+
});
|
|
1213
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1334
1214
|
}
|
|
1335
1215
|
});
|
|
1336
1216
|
}); };
|
|
@@ -1353,16 +1233,16 @@ export var deserializeAws_json1_1AssociateVirtualInterfaceCommand = function (ou
|
|
|
1353
1233
|
});
|
|
1354
1234
|
}); };
|
|
1355
1235
|
var deserializeAws_json1_1AssociateVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1356
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1357
|
-
var
|
|
1358
|
-
return __generator(this, function (
|
|
1359
|
-
switch (
|
|
1236
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1237
|
+
var _c;
|
|
1238
|
+
return __generator(this, function (_d) {
|
|
1239
|
+
switch (_d.label) {
|
|
1360
1240
|
case 0:
|
|
1361
1241
|
_a = [__assign({}, output)];
|
|
1362
|
-
|
|
1242
|
+
_c = {};
|
|
1363
1243
|
return [4, parseBody(output.body, context)];
|
|
1364
1244
|
case 1:
|
|
1365
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1245
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1366
1246
|
errorCode = "UnknownError";
|
|
1367
1247
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1368
1248
|
_b = errorCode;
|
|
@@ -1373,28 +1253,18 @@ var deserializeAws_json1_1AssociateVirtualInterfaceCommandError = function (outp
|
|
|
1373
1253
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
1374
1254
|
}
|
|
1375
1255
|
return [3, 6];
|
|
1376
|
-
case 2:
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
case
|
|
1380
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1381
|
-
return [3, 7];
|
|
1382
|
-
case 4:
|
|
1383
|
-
_d = [{}];
|
|
1384
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1385
|
-
case 5:
|
|
1386
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1387
|
-
return [3, 7];
|
|
1256
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1257
|
+
case 3: throw _d.sent();
|
|
1258
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1259
|
+
case 5: throw _d.sent();
|
|
1388
1260
|
case 6:
|
|
1389
1261
|
parsedBody = parsedOutput.body;
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
response
|
|
1396
|
-
delete response.Message;
|
|
1397
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1262
|
+
response = new __BaseException({
|
|
1263
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1264
|
+
$fault: "client",
|
|
1265
|
+
$metadata: deserializeMetadata(output),
|
|
1266
|
+
});
|
|
1267
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1398
1268
|
}
|
|
1399
1269
|
});
|
|
1400
1270
|
}); };
|
|
@@ -1417,16 +1287,16 @@ export var deserializeAws_json1_1ConfirmConnectionCommand = function (output, co
|
|
|
1417
1287
|
});
|
|
1418
1288
|
}); };
|
|
1419
1289
|
var deserializeAws_json1_1ConfirmConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1420
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1421
|
-
var
|
|
1422
|
-
return __generator(this, function (
|
|
1423
|
-
switch (
|
|
1290
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1291
|
+
var _c;
|
|
1292
|
+
return __generator(this, function (_d) {
|
|
1293
|
+
switch (_d.label) {
|
|
1424
1294
|
case 0:
|
|
1425
1295
|
_a = [__assign({}, output)];
|
|
1426
|
-
|
|
1296
|
+
_c = {};
|
|
1427
1297
|
return [4, parseBody(output.body, context)];
|
|
1428
1298
|
case 1:
|
|
1429
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1299
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1430
1300
|
errorCode = "UnknownError";
|
|
1431
1301
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
1302
|
_b = errorCode;
|
|
@@ -1437,28 +1307,18 @@ var deserializeAws_json1_1ConfirmConnectionCommandError = function (output, cont
|
|
|
1437
1307
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
1438
1308
|
}
|
|
1439
1309
|
return [3, 6];
|
|
1440
|
-
case 2:
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
case
|
|
1444
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1445
|
-
return [3, 7];
|
|
1446
|
-
case 4:
|
|
1447
|
-
_d = [{}];
|
|
1448
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1449
|
-
case 5:
|
|
1450
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1451
|
-
return [3, 7];
|
|
1310
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1311
|
+
case 3: throw _d.sent();
|
|
1312
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1313
|
+
case 5: throw _d.sent();
|
|
1452
1314
|
case 6:
|
|
1453
1315
|
parsedBody = parsedOutput.body;
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
response
|
|
1460
|
-
delete response.Message;
|
|
1461
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1316
|
+
response = new __BaseException({
|
|
1317
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1318
|
+
$fault: "client",
|
|
1319
|
+
$metadata: deserializeMetadata(output),
|
|
1320
|
+
});
|
|
1321
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1462
1322
|
}
|
|
1463
1323
|
});
|
|
1464
1324
|
}); };
|
|
@@ -1481,16 +1341,16 @@ export var deserializeAws_json1_1ConfirmCustomerAgreementCommand = function (out
|
|
|
1481
1341
|
});
|
|
1482
1342
|
}); };
|
|
1483
1343
|
var deserializeAws_json1_1ConfirmCustomerAgreementCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1484
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1485
|
-
var
|
|
1486
|
-
return __generator(this, function (
|
|
1487
|
-
switch (
|
|
1344
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1345
|
+
var _c;
|
|
1346
|
+
return __generator(this, function (_d) {
|
|
1347
|
+
switch (_d.label) {
|
|
1488
1348
|
case 0:
|
|
1489
1349
|
_a = [__assign({}, output)];
|
|
1490
|
-
|
|
1350
|
+
_c = {};
|
|
1491
1351
|
return [4, parseBody(output.body, context)];
|
|
1492
1352
|
case 1:
|
|
1493
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1353
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1494
1354
|
errorCode = "UnknownError";
|
|
1495
1355
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1496
1356
|
_b = errorCode;
|
|
@@ -1501,28 +1361,18 @@ var deserializeAws_json1_1ConfirmCustomerAgreementCommandError = function (outpu
|
|
|
1501
1361
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
1502
1362
|
}
|
|
1503
1363
|
return [3, 6];
|
|
1504
|
-
case 2:
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
case
|
|
1508
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1509
|
-
return [3, 7];
|
|
1510
|
-
case 4:
|
|
1511
|
-
_d = [{}];
|
|
1512
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1513
|
-
case 5:
|
|
1514
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1515
|
-
return [3, 7];
|
|
1364
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1365
|
+
case 3: throw _d.sent();
|
|
1366
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1367
|
+
case 5: throw _d.sent();
|
|
1516
1368
|
case 6:
|
|
1517
1369
|
parsedBody = parsedOutput.body;
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
response
|
|
1524
|
-
delete response.Message;
|
|
1525
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1370
|
+
response = new __BaseException({
|
|
1371
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1372
|
+
$fault: "client",
|
|
1373
|
+
$metadata: deserializeMetadata(output),
|
|
1374
|
+
});
|
|
1375
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1526
1376
|
}
|
|
1527
1377
|
});
|
|
1528
1378
|
}); };
|
|
@@ -1545,16 +1395,16 @@ export var deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommand = functio
|
|
|
1545
1395
|
});
|
|
1546
1396
|
}); };
|
|
1547
1397
|
var deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1548
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1549
|
-
var
|
|
1550
|
-
return __generator(this, function (
|
|
1551
|
-
switch (
|
|
1398
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1399
|
+
var _c;
|
|
1400
|
+
return __generator(this, function (_d) {
|
|
1401
|
+
switch (_d.label) {
|
|
1552
1402
|
case 0:
|
|
1553
1403
|
_a = [__assign({}, output)];
|
|
1554
|
-
|
|
1404
|
+
_c = {};
|
|
1555
1405
|
return [4, parseBody(output.body, context)];
|
|
1556
1406
|
case 1:
|
|
1557
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1407
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1558
1408
|
errorCode = "UnknownError";
|
|
1559
1409
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1560
1410
|
_b = errorCode;
|
|
@@ -1565,28 +1415,18 @@ var deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommandError = function
|
|
|
1565
1415
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
1566
1416
|
}
|
|
1567
1417
|
return [3, 6];
|
|
1568
|
-
case 2:
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
case
|
|
1572
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1573
|
-
return [3, 7];
|
|
1574
|
-
case 4:
|
|
1575
|
-
_d = [{}];
|
|
1576
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1577
|
-
case 5:
|
|
1578
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1579
|
-
return [3, 7];
|
|
1418
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1419
|
+
case 3: throw _d.sent();
|
|
1420
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1421
|
+
case 5: throw _d.sent();
|
|
1580
1422
|
case 6:
|
|
1581
1423
|
parsedBody = parsedOutput.body;
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
response
|
|
1588
|
-
delete response.Message;
|
|
1589
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1424
|
+
response = new __BaseException({
|
|
1425
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1426
|
+
$fault: "client",
|
|
1427
|
+
$metadata: deserializeMetadata(output),
|
|
1428
|
+
});
|
|
1429
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1590
1430
|
}
|
|
1591
1431
|
});
|
|
1592
1432
|
}); };
|
|
@@ -1609,16 +1449,16 @@ export var deserializeAws_json1_1ConfirmPublicVirtualInterfaceCommand = function
|
|
|
1609
1449
|
});
|
|
1610
1450
|
}); };
|
|
1611
1451
|
var deserializeAws_json1_1ConfirmPublicVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1612
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1613
|
-
var
|
|
1614
|
-
return __generator(this, function (
|
|
1615
|
-
switch (
|
|
1452
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1453
|
+
var _c;
|
|
1454
|
+
return __generator(this, function (_d) {
|
|
1455
|
+
switch (_d.label) {
|
|
1616
1456
|
case 0:
|
|
1617
1457
|
_a = [__assign({}, output)];
|
|
1618
|
-
|
|
1458
|
+
_c = {};
|
|
1619
1459
|
return [4, parseBody(output.body, context)];
|
|
1620
1460
|
case 1:
|
|
1621
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1461
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1622
1462
|
errorCode = "UnknownError";
|
|
1623
1463
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
1464
|
_b = errorCode;
|
|
@@ -1629,28 +1469,18 @@ var deserializeAws_json1_1ConfirmPublicVirtualInterfaceCommandError = function (
|
|
|
1629
1469
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
1630
1470
|
}
|
|
1631
1471
|
return [3, 6];
|
|
1632
|
-
case 2:
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
case
|
|
1636
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1637
|
-
return [3, 7];
|
|
1638
|
-
case 4:
|
|
1639
|
-
_d = [{}];
|
|
1640
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1641
|
-
case 5:
|
|
1642
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1643
|
-
return [3, 7];
|
|
1472
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1473
|
+
case 3: throw _d.sent();
|
|
1474
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1475
|
+
case 5: throw _d.sent();
|
|
1644
1476
|
case 6:
|
|
1645
1477
|
parsedBody = parsedOutput.body;
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
response
|
|
1652
|
-
delete response.Message;
|
|
1653
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1478
|
+
response = new __BaseException({
|
|
1479
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1480
|
+
$fault: "client",
|
|
1481
|
+
$metadata: deserializeMetadata(output),
|
|
1482
|
+
});
|
|
1483
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1654
1484
|
}
|
|
1655
1485
|
});
|
|
1656
1486
|
}); };
|
|
@@ -1673,16 +1503,16 @@ export var deserializeAws_json1_1ConfirmTransitVirtualInterfaceCommand = functio
|
|
|
1673
1503
|
});
|
|
1674
1504
|
}); };
|
|
1675
1505
|
var deserializeAws_json1_1ConfirmTransitVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1676
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1677
|
-
var
|
|
1678
|
-
return __generator(this, function (
|
|
1679
|
-
switch (
|
|
1506
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1507
|
+
var _c;
|
|
1508
|
+
return __generator(this, function (_d) {
|
|
1509
|
+
switch (_d.label) {
|
|
1680
1510
|
case 0:
|
|
1681
1511
|
_a = [__assign({}, output)];
|
|
1682
|
-
|
|
1512
|
+
_c = {};
|
|
1683
1513
|
return [4, parseBody(output.body, context)];
|
|
1684
1514
|
case 1:
|
|
1685
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1515
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1686
1516
|
errorCode = "UnknownError";
|
|
1687
1517
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1688
1518
|
_b = errorCode;
|
|
@@ -1693,28 +1523,18 @@ var deserializeAws_json1_1ConfirmTransitVirtualInterfaceCommandError = function
|
|
|
1693
1523
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
1694
1524
|
}
|
|
1695
1525
|
return [3, 6];
|
|
1696
|
-
case 2:
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
case
|
|
1700
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1701
|
-
return [3, 7];
|
|
1702
|
-
case 4:
|
|
1703
|
-
_d = [{}];
|
|
1704
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1705
|
-
case 5:
|
|
1706
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1707
|
-
return [3, 7];
|
|
1526
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1527
|
+
case 3: throw _d.sent();
|
|
1528
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1529
|
+
case 5: throw _d.sent();
|
|
1708
1530
|
case 6:
|
|
1709
1531
|
parsedBody = parsedOutput.body;
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
response
|
|
1716
|
-
delete response.Message;
|
|
1717
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1532
|
+
response = new __BaseException({
|
|
1533
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1534
|
+
$fault: "client",
|
|
1535
|
+
$metadata: deserializeMetadata(output),
|
|
1536
|
+
});
|
|
1537
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1718
1538
|
}
|
|
1719
1539
|
});
|
|
1720
1540
|
}); };
|
|
@@ -1737,16 +1557,16 @@ export var deserializeAws_json1_1CreateBGPPeerCommand = function (output, contex
|
|
|
1737
1557
|
});
|
|
1738
1558
|
}); };
|
|
1739
1559
|
var deserializeAws_json1_1CreateBGPPeerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1740
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1741
|
-
var
|
|
1742
|
-
return __generator(this, function (
|
|
1743
|
-
switch (
|
|
1560
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1561
|
+
var _c;
|
|
1562
|
+
return __generator(this, function (_d) {
|
|
1563
|
+
switch (_d.label) {
|
|
1744
1564
|
case 0:
|
|
1745
1565
|
_a = [__assign({}, output)];
|
|
1746
|
-
|
|
1566
|
+
_c = {};
|
|
1747
1567
|
return [4, parseBody(output.body, context)];
|
|
1748
1568
|
case 1:
|
|
1749
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1569
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1750
1570
|
errorCode = "UnknownError";
|
|
1751
1571
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1752
1572
|
_b = errorCode;
|
|
@@ -1757,28 +1577,18 @@ var deserializeAws_json1_1CreateBGPPeerCommandError = function (output, context)
|
|
|
1757
1577
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
1758
1578
|
}
|
|
1759
1579
|
return [3, 6];
|
|
1760
|
-
case 2:
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
case
|
|
1764
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1765
|
-
return [3, 7];
|
|
1766
|
-
case 4:
|
|
1767
|
-
_d = [{}];
|
|
1768
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1769
|
-
case 5:
|
|
1770
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1771
|
-
return [3, 7];
|
|
1580
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1581
|
+
case 3: throw _d.sent();
|
|
1582
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1583
|
+
case 5: throw _d.sent();
|
|
1772
1584
|
case 6:
|
|
1773
1585
|
parsedBody = parsedOutput.body;
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
response
|
|
1780
|
-
delete response.Message;
|
|
1781
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1586
|
+
response = new __BaseException({
|
|
1587
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1588
|
+
$fault: "client",
|
|
1589
|
+
$metadata: deserializeMetadata(output),
|
|
1590
|
+
});
|
|
1591
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1782
1592
|
}
|
|
1783
1593
|
});
|
|
1784
1594
|
}); };
|
|
@@ -1801,16 +1611,16 @@ export var deserializeAws_json1_1CreateConnectionCommand = function (output, con
|
|
|
1801
1611
|
});
|
|
1802
1612
|
}); };
|
|
1803
1613
|
var deserializeAws_json1_1CreateConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1804
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1805
|
-
var
|
|
1806
|
-
return __generator(this, function (
|
|
1807
|
-
switch (
|
|
1614
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1615
|
+
var _c;
|
|
1616
|
+
return __generator(this, function (_d) {
|
|
1617
|
+
switch (_d.label) {
|
|
1808
1618
|
case 0:
|
|
1809
1619
|
_a = [__assign({}, output)];
|
|
1810
|
-
|
|
1620
|
+
_c = {};
|
|
1811
1621
|
return [4, parseBody(output.body, context)];
|
|
1812
1622
|
case 1:
|
|
1813
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1623
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1814
1624
|
errorCode = "UnknownError";
|
|
1815
1625
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
1626
|
_b = errorCode;
|
|
@@ -1825,40 +1635,22 @@ var deserializeAws_json1_1CreateConnectionCommandError = function (output, conte
|
|
|
1825
1635
|
case "com.amazonaws.directconnect#TooManyTagsException": return [3, 8];
|
|
1826
1636
|
}
|
|
1827
1637
|
return [3, 10];
|
|
1828
|
-
case 2:
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
case
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
case 4
|
|
1835
|
-
|
|
1836
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1837
|
-
case 5:
|
|
1838
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1839
|
-
return [3, 11];
|
|
1840
|
-
case 6:
|
|
1841
|
-
_e = [{}];
|
|
1842
|
-
return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
1843
|
-
case 7:
|
|
1844
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1845
|
-
return [3, 11];
|
|
1846
|
-
case 8:
|
|
1847
|
-
_f = [{}];
|
|
1848
|
-
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1849
|
-
case 9:
|
|
1850
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1851
|
-
return [3, 11];
|
|
1638
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1639
|
+
case 3: throw _d.sent();
|
|
1640
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1641
|
+
case 5: throw _d.sent();
|
|
1642
|
+
case 6: return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
1643
|
+
case 7: throw _d.sent();
|
|
1644
|
+
case 8: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1645
|
+
case 9: throw _d.sent();
|
|
1852
1646
|
case 10:
|
|
1853
1647
|
parsedBody = parsedOutput.body;
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
response
|
|
1860
|
-
delete response.Message;
|
|
1861
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1648
|
+
response = new __BaseException({
|
|
1649
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1650
|
+
$fault: "client",
|
|
1651
|
+
$metadata: deserializeMetadata(output),
|
|
1652
|
+
});
|
|
1653
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1862
1654
|
}
|
|
1863
1655
|
});
|
|
1864
1656
|
}); };
|
|
@@ -1881,16 +1673,16 @@ export var deserializeAws_json1_1CreateDirectConnectGatewayCommand = function (o
|
|
|
1881
1673
|
});
|
|
1882
1674
|
}); };
|
|
1883
1675
|
var deserializeAws_json1_1CreateDirectConnectGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1884
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1885
|
-
var
|
|
1886
|
-
return __generator(this, function (
|
|
1887
|
-
switch (
|
|
1676
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1677
|
+
var _c;
|
|
1678
|
+
return __generator(this, function (_d) {
|
|
1679
|
+
switch (_d.label) {
|
|
1888
1680
|
case 0:
|
|
1889
1681
|
_a = [__assign({}, output)];
|
|
1890
|
-
|
|
1682
|
+
_c = {};
|
|
1891
1683
|
return [4, parseBody(output.body, context)];
|
|
1892
1684
|
case 1:
|
|
1893
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1685
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1894
1686
|
errorCode = "UnknownError";
|
|
1895
1687
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1896
1688
|
_b = errorCode;
|
|
@@ -1901,28 +1693,18 @@ var deserializeAws_json1_1CreateDirectConnectGatewayCommandError = function (out
|
|
|
1901
1693
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
1902
1694
|
}
|
|
1903
1695
|
return [3, 6];
|
|
1904
|
-
case 2:
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
case
|
|
1908
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1909
|
-
return [3, 7];
|
|
1910
|
-
case 4:
|
|
1911
|
-
_d = [{}];
|
|
1912
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1913
|
-
case 5:
|
|
1914
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1915
|
-
return [3, 7];
|
|
1696
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1697
|
+
case 3: throw _d.sent();
|
|
1698
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1699
|
+
case 5: throw _d.sent();
|
|
1916
1700
|
case 6:
|
|
1917
1701
|
parsedBody = parsedOutput.body;
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
response
|
|
1924
|
-
delete response.Message;
|
|
1925
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1702
|
+
response = new __BaseException({
|
|
1703
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1704
|
+
$fault: "client",
|
|
1705
|
+
$metadata: deserializeMetadata(output),
|
|
1706
|
+
});
|
|
1707
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1926
1708
|
}
|
|
1927
1709
|
});
|
|
1928
1710
|
}); };
|
|
@@ -1945,16 +1727,16 @@ export var deserializeAws_json1_1CreateDirectConnectGatewayAssociationCommand =
|
|
|
1945
1727
|
});
|
|
1946
1728
|
}); };
|
|
1947
1729
|
var deserializeAws_json1_1CreateDirectConnectGatewayAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1948
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1949
|
-
var
|
|
1950
|
-
return __generator(this, function (
|
|
1951
|
-
switch (
|
|
1730
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1731
|
+
var _c;
|
|
1732
|
+
return __generator(this, function (_d) {
|
|
1733
|
+
switch (_d.label) {
|
|
1952
1734
|
case 0:
|
|
1953
1735
|
_a = [__assign({}, output)];
|
|
1954
|
-
|
|
1736
|
+
_c = {};
|
|
1955
1737
|
return [4, parseBody(output.body, context)];
|
|
1956
1738
|
case 1:
|
|
1957
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1739
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1958
1740
|
errorCode = "UnknownError";
|
|
1959
1741
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1960
1742
|
_b = errorCode;
|
|
@@ -1965,28 +1747,18 @@ var deserializeAws_json1_1CreateDirectConnectGatewayAssociationCommandError = fu
|
|
|
1965
1747
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
1966
1748
|
}
|
|
1967
1749
|
return [3, 6];
|
|
1968
|
-
case 2:
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
case
|
|
1972
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1973
|
-
return [3, 7];
|
|
1974
|
-
case 4:
|
|
1975
|
-
_d = [{}];
|
|
1976
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1977
|
-
case 5:
|
|
1978
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1979
|
-
return [3, 7];
|
|
1750
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1751
|
+
case 3: throw _d.sent();
|
|
1752
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1753
|
+
case 5: throw _d.sent();
|
|
1980
1754
|
case 6:
|
|
1981
1755
|
parsedBody = parsedOutput.body;
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
response
|
|
1988
|
-
delete response.Message;
|
|
1989
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1756
|
+
response = new __BaseException({
|
|
1757
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1758
|
+
$fault: "client",
|
|
1759
|
+
$metadata: deserializeMetadata(output),
|
|
1760
|
+
});
|
|
1761
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1990
1762
|
}
|
|
1991
1763
|
});
|
|
1992
1764
|
}); };
|
|
@@ -2009,16 +1781,16 @@ export var deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalCo
|
|
|
2009
1781
|
});
|
|
2010
1782
|
}); };
|
|
2011
1783
|
var deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2012
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2013
|
-
var
|
|
2014
|
-
return __generator(this, function (
|
|
2015
|
-
switch (
|
|
1784
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1785
|
+
var _c;
|
|
1786
|
+
return __generator(this, function (_d) {
|
|
1787
|
+
switch (_d.label) {
|
|
2016
1788
|
case 0:
|
|
2017
1789
|
_a = [__assign({}, output)];
|
|
2018
|
-
|
|
1790
|
+
_c = {};
|
|
2019
1791
|
return [4, parseBody(output.body, context)];
|
|
2020
1792
|
case 1:
|
|
2021
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1793
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2022
1794
|
errorCode = "UnknownError";
|
|
2023
1795
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2024
1796
|
_b = errorCode;
|
|
@@ -2029,28 +1801,18 @@ var deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalCommandEr
|
|
|
2029
1801
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
2030
1802
|
}
|
|
2031
1803
|
return [3, 6];
|
|
2032
|
-
case 2:
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
case
|
|
2036
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2037
|
-
return [3, 7];
|
|
2038
|
-
case 4:
|
|
2039
|
-
_d = [{}];
|
|
2040
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2041
|
-
case 5:
|
|
2042
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2043
|
-
return [3, 7];
|
|
1804
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1805
|
+
case 3: throw _d.sent();
|
|
1806
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1807
|
+
case 5: throw _d.sent();
|
|
2044
1808
|
case 6:
|
|
2045
1809
|
parsedBody = parsedOutput.body;
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
response
|
|
2052
|
-
delete response.Message;
|
|
2053
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1810
|
+
response = new __BaseException({
|
|
1811
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1812
|
+
$fault: "client",
|
|
1813
|
+
$metadata: deserializeMetadata(output),
|
|
1814
|
+
});
|
|
1815
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2054
1816
|
}
|
|
2055
1817
|
});
|
|
2056
1818
|
}); };
|
|
@@ -2073,16 +1835,16 @@ export var deserializeAws_json1_1CreateInterconnectCommand = function (output, c
|
|
|
2073
1835
|
});
|
|
2074
1836
|
}); };
|
|
2075
1837
|
var deserializeAws_json1_1CreateInterconnectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2076
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2077
|
-
var
|
|
2078
|
-
return __generator(this, function (
|
|
2079
|
-
switch (
|
|
1838
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1839
|
+
var _c;
|
|
1840
|
+
return __generator(this, function (_d) {
|
|
1841
|
+
switch (_d.label) {
|
|
2080
1842
|
case 0:
|
|
2081
1843
|
_a = [__assign({}, output)];
|
|
2082
|
-
|
|
1844
|
+
_c = {};
|
|
2083
1845
|
return [4, parseBody(output.body, context)];
|
|
2084
1846
|
case 1:
|
|
2085
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1847
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2086
1848
|
errorCode = "UnknownError";
|
|
2087
1849
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2088
1850
|
_b = errorCode;
|
|
@@ -2097,40 +1859,22 @@ var deserializeAws_json1_1CreateInterconnectCommandError = function (output, con
|
|
|
2097
1859
|
case "com.amazonaws.directconnect#TooManyTagsException": return [3, 8];
|
|
2098
1860
|
}
|
|
2099
1861
|
return [3, 10];
|
|
2100
|
-
case 2:
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
case
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
case 4
|
|
2107
|
-
|
|
2108
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2109
|
-
case 5:
|
|
2110
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2111
|
-
return [3, 11];
|
|
2112
|
-
case 6:
|
|
2113
|
-
_e = [{}];
|
|
2114
|
-
return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
2115
|
-
case 7:
|
|
2116
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2117
|
-
return [3, 11];
|
|
2118
|
-
case 8:
|
|
2119
|
-
_f = [{}];
|
|
2120
|
-
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
2121
|
-
case 9:
|
|
2122
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2123
|
-
return [3, 11];
|
|
1862
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1863
|
+
case 3: throw _d.sent();
|
|
1864
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1865
|
+
case 5: throw _d.sent();
|
|
1866
|
+
case 6: return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
1867
|
+
case 7: throw _d.sent();
|
|
1868
|
+
case 8: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1869
|
+
case 9: throw _d.sent();
|
|
2124
1870
|
case 10:
|
|
2125
1871
|
parsedBody = parsedOutput.body;
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
response
|
|
2132
|
-
delete response.Message;
|
|
2133
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1872
|
+
response = new __BaseException({
|
|
1873
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1874
|
+
$fault: "client",
|
|
1875
|
+
$metadata: deserializeMetadata(output),
|
|
1876
|
+
});
|
|
1877
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2134
1878
|
}
|
|
2135
1879
|
});
|
|
2136
1880
|
}); };
|
|
@@ -2153,16 +1897,16 @@ export var deserializeAws_json1_1CreateLagCommand = function (output, context) {
|
|
|
2153
1897
|
});
|
|
2154
1898
|
}); };
|
|
2155
1899
|
var deserializeAws_json1_1CreateLagCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2156
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2157
|
-
var
|
|
2158
|
-
return __generator(this, function (
|
|
2159
|
-
switch (
|
|
1900
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1901
|
+
var _c;
|
|
1902
|
+
return __generator(this, function (_d) {
|
|
1903
|
+
switch (_d.label) {
|
|
2160
1904
|
case 0:
|
|
2161
1905
|
_a = [__assign({}, output)];
|
|
2162
|
-
|
|
1906
|
+
_c = {};
|
|
2163
1907
|
return [4, parseBody(output.body, context)];
|
|
2164
1908
|
case 1:
|
|
2165
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1909
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2166
1910
|
errorCode = "UnknownError";
|
|
2167
1911
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2168
1912
|
_b = errorCode;
|
|
@@ -2177,40 +1921,22 @@ var deserializeAws_json1_1CreateLagCommandError = function (output, context) { r
|
|
|
2177
1921
|
case "com.amazonaws.directconnect#TooManyTagsException": return [3, 8];
|
|
2178
1922
|
}
|
|
2179
1923
|
return [3, 10];
|
|
2180
|
-
case 2:
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
case
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
case 4
|
|
2187
|
-
|
|
2188
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2189
|
-
case 5:
|
|
2190
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2191
|
-
return [3, 11];
|
|
2192
|
-
case 6:
|
|
2193
|
-
_e = [{}];
|
|
2194
|
-
return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
2195
|
-
case 7:
|
|
2196
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2197
|
-
return [3, 11];
|
|
2198
|
-
case 8:
|
|
2199
|
-
_f = [{}];
|
|
2200
|
-
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
2201
|
-
case 9:
|
|
2202
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2203
|
-
return [3, 11];
|
|
1924
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1925
|
+
case 3: throw _d.sent();
|
|
1926
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1927
|
+
case 5: throw _d.sent();
|
|
1928
|
+
case 6: return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
1929
|
+
case 7: throw _d.sent();
|
|
1930
|
+
case 8: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1931
|
+
case 9: throw _d.sent();
|
|
2204
1932
|
case 10:
|
|
2205
1933
|
parsedBody = parsedOutput.body;
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
response
|
|
2212
|
-
delete response.Message;
|
|
2213
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1934
|
+
response = new __BaseException({
|
|
1935
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1936
|
+
$fault: "client",
|
|
1937
|
+
$metadata: deserializeMetadata(output),
|
|
1938
|
+
});
|
|
1939
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2214
1940
|
}
|
|
2215
1941
|
});
|
|
2216
1942
|
}); };
|
|
@@ -2233,16 +1959,16 @@ export var deserializeAws_json1_1CreatePrivateVirtualInterfaceCommand = function
|
|
|
2233
1959
|
});
|
|
2234
1960
|
}); };
|
|
2235
1961
|
var deserializeAws_json1_1CreatePrivateVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2236
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2237
|
-
var
|
|
2238
|
-
return __generator(this, function (
|
|
2239
|
-
switch (
|
|
1962
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1963
|
+
var _c;
|
|
1964
|
+
return __generator(this, function (_d) {
|
|
1965
|
+
switch (_d.label) {
|
|
2240
1966
|
case 0:
|
|
2241
1967
|
_a = [__assign({}, output)];
|
|
2242
|
-
|
|
1968
|
+
_c = {};
|
|
2243
1969
|
return [4, parseBody(output.body, context)];
|
|
2244
1970
|
case 1:
|
|
2245
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1971
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2246
1972
|
errorCode = "UnknownError";
|
|
2247
1973
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2248
1974
|
_b = errorCode;
|
|
@@ -2257,40 +1983,22 @@ var deserializeAws_json1_1CreatePrivateVirtualInterfaceCommandError = function (
|
|
|
2257
1983
|
case "com.amazonaws.directconnect#TooManyTagsException": return [3, 8];
|
|
2258
1984
|
}
|
|
2259
1985
|
return [3, 10];
|
|
2260
|
-
case 2:
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
case
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
case 4
|
|
2267
|
-
|
|
2268
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2269
|
-
case 5:
|
|
2270
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2271
|
-
return [3, 11];
|
|
2272
|
-
case 6:
|
|
2273
|
-
_e = [{}];
|
|
2274
|
-
return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
2275
|
-
case 7:
|
|
2276
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2277
|
-
return [3, 11];
|
|
2278
|
-
case 8:
|
|
2279
|
-
_f = [{}];
|
|
2280
|
-
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
2281
|
-
case 9:
|
|
2282
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2283
|
-
return [3, 11];
|
|
1986
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
1987
|
+
case 3: throw _d.sent();
|
|
1988
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
1989
|
+
case 5: throw _d.sent();
|
|
1990
|
+
case 6: return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
1991
|
+
case 7: throw _d.sent();
|
|
1992
|
+
case 8: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
1993
|
+
case 9: throw _d.sent();
|
|
2284
1994
|
case 10:
|
|
2285
1995
|
parsedBody = parsedOutput.body;
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
response
|
|
2292
|
-
delete response.Message;
|
|
2293
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1996
|
+
response = new __BaseException({
|
|
1997
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1998
|
+
$fault: "client",
|
|
1999
|
+
$metadata: deserializeMetadata(output),
|
|
2000
|
+
});
|
|
2001
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2294
2002
|
}
|
|
2295
2003
|
});
|
|
2296
2004
|
}); };
|
|
@@ -2313,16 +2021,16 @@ export var deserializeAws_json1_1CreatePublicVirtualInterfaceCommand = function
|
|
|
2313
2021
|
});
|
|
2314
2022
|
}); };
|
|
2315
2023
|
var deserializeAws_json1_1CreatePublicVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2316
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2317
|
-
var
|
|
2318
|
-
return __generator(this, function (
|
|
2319
|
-
switch (
|
|
2024
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2025
|
+
var _c;
|
|
2026
|
+
return __generator(this, function (_d) {
|
|
2027
|
+
switch (_d.label) {
|
|
2320
2028
|
case 0:
|
|
2321
2029
|
_a = [__assign({}, output)];
|
|
2322
|
-
|
|
2030
|
+
_c = {};
|
|
2323
2031
|
return [4, parseBody(output.body, context)];
|
|
2324
2032
|
case 1:
|
|
2325
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2033
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2326
2034
|
errorCode = "UnknownError";
|
|
2327
2035
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2328
2036
|
_b = errorCode;
|
|
@@ -2337,40 +2045,22 @@ var deserializeAws_json1_1CreatePublicVirtualInterfaceCommandError = function (o
|
|
|
2337
2045
|
case "com.amazonaws.directconnect#TooManyTagsException": return [3, 8];
|
|
2338
2046
|
}
|
|
2339
2047
|
return [3, 10];
|
|
2340
|
-
case 2:
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
case
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
case 4
|
|
2347
|
-
|
|
2348
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2349
|
-
case 5:
|
|
2350
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2351
|
-
return [3, 11];
|
|
2352
|
-
case 6:
|
|
2353
|
-
_e = [{}];
|
|
2354
|
-
return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
2355
|
-
case 7:
|
|
2356
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2357
|
-
return [3, 11];
|
|
2358
|
-
case 8:
|
|
2359
|
-
_f = [{}];
|
|
2360
|
-
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
2361
|
-
case 9:
|
|
2362
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2363
|
-
return [3, 11];
|
|
2048
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2049
|
+
case 3: throw _d.sent();
|
|
2050
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2051
|
+
case 5: throw _d.sent();
|
|
2052
|
+
case 6: return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
2053
|
+
case 7: throw _d.sent();
|
|
2054
|
+
case 8: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
2055
|
+
case 9: throw _d.sent();
|
|
2364
2056
|
case 10:
|
|
2365
2057
|
parsedBody = parsedOutput.body;
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
response
|
|
2372
|
-
delete response.Message;
|
|
2373
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2058
|
+
response = new __BaseException({
|
|
2059
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2060
|
+
$fault: "client",
|
|
2061
|
+
$metadata: deserializeMetadata(output),
|
|
2062
|
+
});
|
|
2063
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2374
2064
|
}
|
|
2375
2065
|
});
|
|
2376
2066
|
}); };
|
|
@@ -2393,16 +2083,16 @@ export var deserializeAws_json1_1CreateTransitVirtualInterfaceCommand = function
|
|
|
2393
2083
|
});
|
|
2394
2084
|
}); };
|
|
2395
2085
|
var deserializeAws_json1_1CreateTransitVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2396
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2397
|
-
var
|
|
2398
|
-
return __generator(this, function (
|
|
2399
|
-
switch (
|
|
2086
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2087
|
+
var _c;
|
|
2088
|
+
return __generator(this, function (_d) {
|
|
2089
|
+
switch (_d.label) {
|
|
2400
2090
|
case 0:
|
|
2401
2091
|
_a = [__assign({}, output)];
|
|
2402
|
-
|
|
2092
|
+
_c = {};
|
|
2403
2093
|
return [4, parseBody(output.body, context)];
|
|
2404
2094
|
case 1:
|
|
2405
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2095
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2406
2096
|
errorCode = "UnknownError";
|
|
2407
2097
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2408
2098
|
_b = errorCode;
|
|
@@ -2417,40 +2107,22 @@ var deserializeAws_json1_1CreateTransitVirtualInterfaceCommandError = function (
|
|
|
2417
2107
|
case "com.amazonaws.directconnect#TooManyTagsException": return [3, 8];
|
|
2418
2108
|
}
|
|
2419
2109
|
return [3, 10];
|
|
2420
|
-
case 2:
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
case
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
case 4
|
|
2427
|
-
|
|
2428
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2429
|
-
case 5:
|
|
2430
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2431
|
-
return [3, 11];
|
|
2432
|
-
case 6:
|
|
2433
|
-
_e = [{}];
|
|
2434
|
-
return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
2435
|
-
case 7:
|
|
2436
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2437
|
-
return [3, 11];
|
|
2438
|
-
case 8:
|
|
2439
|
-
_f = [{}];
|
|
2440
|
-
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
2441
|
-
case 9:
|
|
2442
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2443
|
-
return [3, 11];
|
|
2110
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2111
|
+
case 3: throw _d.sent();
|
|
2112
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2113
|
+
case 5: throw _d.sent();
|
|
2114
|
+
case 6: return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
2115
|
+
case 7: throw _d.sent();
|
|
2116
|
+
case 8: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
2117
|
+
case 9: throw _d.sent();
|
|
2444
2118
|
case 10:
|
|
2445
2119
|
parsedBody = parsedOutput.body;
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
response
|
|
2452
|
-
delete response.Message;
|
|
2453
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2120
|
+
response = new __BaseException({
|
|
2121
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2122
|
+
$fault: "client",
|
|
2123
|
+
$metadata: deserializeMetadata(output),
|
|
2124
|
+
});
|
|
2125
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2454
2126
|
}
|
|
2455
2127
|
});
|
|
2456
2128
|
}); };
|
|
@@ -2473,16 +2145,16 @@ export var deserializeAws_json1_1DeleteBGPPeerCommand = function (output, contex
|
|
|
2473
2145
|
});
|
|
2474
2146
|
}); };
|
|
2475
2147
|
var deserializeAws_json1_1DeleteBGPPeerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2476
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2477
|
-
var
|
|
2478
|
-
return __generator(this, function (
|
|
2479
|
-
switch (
|
|
2148
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2149
|
+
var _c;
|
|
2150
|
+
return __generator(this, function (_d) {
|
|
2151
|
+
switch (_d.label) {
|
|
2480
2152
|
case 0:
|
|
2481
2153
|
_a = [__assign({}, output)];
|
|
2482
|
-
|
|
2154
|
+
_c = {};
|
|
2483
2155
|
return [4, parseBody(output.body, context)];
|
|
2484
2156
|
case 1:
|
|
2485
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2157
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2486
2158
|
errorCode = "UnknownError";
|
|
2487
2159
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2488
2160
|
_b = errorCode;
|
|
@@ -2493,28 +2165,18 @@ var deserializeAws_json1_1DeleteBGPPeerCommandError = function (output, context)
|
|
|
2493
2165
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
2494
2166
|
}
|
|
2495
2167
|
return [3, 6];
|
|
2496
|
-
case 2:
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
case
|
|
2500
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2501
|
-
return [3, 7];
|
|
2502
|
-
case 4:
|
|
2503
|
-
_d = [{}];
|
|
2504
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2505
|
-
case 5:
|
|
2506
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2507
|
-
return [3, 7];
|
|
2168
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2169
|
+
case 3: throw _d.sent();
|
|
2170
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2171
|
+
case 5: throw _d.sent();
|
|
2508
2172
|
case 6:
|
|
2509
2173
|
parsedBody = parsedOutput.body;
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
response
|
|
2516
|
-
delete response.Message;
|
|
2517
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2174
|
+
response = new __BaseException({
|
|
2175
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2176
|
+
$fault: "client",
|
|
2177
|
+
$metadata: deserializeMetadata(output),
|
|
2178
|
+
});
|
|
2179
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2518
2180
|
}
|
|
2519
2181
|
});
|
|
2520
2182
|
}); };
|
|
@@ -2537,16 +2199,16 @@ export var deserializeAws_json1_1DeleteConnectionCommand = function (output, con
|
|
|
2537
2199
|
});
|
|
2538
2200
|
}); };
|
|
2539
2201
|
var deserializeAws_json1_1DeleteConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2540
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2541
|
-
var
|
|
2542
|
-
return __generator(this, function (
|
|
2543
|
-
switch (
|
|
2202
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2203
|
+
var _c;
|
|
2204
|
+
return __generator(this, function (_d) {
|
|
2205
|
+
switch (_d.label) {
|
|
2544
2206
|
case 0:
|
|
2545
2207
|
_a = [__assign({}, output)];
|
|
2546
|
-
|
|
2208
|
+
_c = {};
|
|
2547
2209
|
return [4, parseBody(output.body, context)];
|
|
2548
2210
|
case 1:
|
|
2549
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2211
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2550
2212
|
errorCode = "UnknownError";
|
|
2551
2213
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2552
2214
|
_b = errorCode;
|
|
@@ -2557,28 +2219,18 @@ var deserializeAws_json1_1DeleteConnectionCommandError = function (output, conte
|
|
|
2557
2219
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
2558
2220
|
}
|
|
2559
2221
|
return [3, 6];
|
|
2560
|
-
case 2:
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
case
|
|
2564
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2565
|
-
return [3, 7];
|
|
2566
|
-
case 4:
|
|
2567
|
-
_d = [{}];
|
|
2568
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2569
|
-
case 5:
|
|
2570
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2571
|
-
return [3, 7];
|
|
2222
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2223
|
+
case 3: throw _d.sent();
|
|
2224
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2225
|
+
case 5: throw _d.sent();
|
|
2572
2226
|
case 6:
|
|
2573
2227
|
parsedBody = parsedOutput.body;
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
response
|
|
2580
|
-
delete response.Message;
|
|
2581
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2228
|
+
response = new __BaseException({
|
|
2229
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2230
|
+
$fault: "client",
|
|
2231
|
+
$metadata: deserializeMetadata(output),
|
|
2232
|
+
});
|
|
2233
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2582
2234
|
}
|
|
2583
2235
|
});
|
|
2584
2236
|
}); };
|
|
@@ -2601,16 +2253,16 @@ export var deserializeAws_json1_1DeleteDirectConnectGatewayCommand = function (o
|
|
|
2601
2253
|
});
|
|
2602
2254
|
}); };
|
|
2603
2255
|
var deserializeAws_json1_1DeleteDirectConnectGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2604
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2605
|
-
var
|
|
2606
|
-
return __generator(this, function (
|
|
2607
|
-
switch (
|
|
2256
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2257
|
+
var _c;
|
|
2258
|
+
return __generator(this, function (_d) {
|
|
2259
|
+
switch (_d.label) {
|
|
2608
2260
|
case 0:
|
|
2609
2261
|
_a = [__assign({}, output)];
|
|
2610
|
-
|
|
2262
|
+
_c = {};
|
|
2611
2263
|
return [4, parseBody(output.body, context)];
|
|
2612
2264
|
case 1:
|
|
2613
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2265
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2614
2266
|
errorCode = "UnknownError";
|
|
2615
2267
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2616
2268
|
_b = errorCode;
|
|
@@ -2621,28 +2273,18 @@ var deserializeAws_json1_1DeleteDirectConnectGatewayCommandError = function (out
|
|
|
2621
2273
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
2622
2274
|
}
|
|
2623
2275
|
return [3, 6];
|
|
2624
|
-
case 2:
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
case
|
|
2628
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2629
|
-
return [3, 7];
|
|
2630
|
-
case 4:
|
|
2631
|
-
_d = [{}];
|
|
2632
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2633
|
-
case 5:
|
|
2634
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2635
|
-
return [3, 7];
|
|
2276
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2277
|
+
case 3: throw _d.sent();
|
|
2278
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2279
|
+
case 5: throw _d.sent();
|
|
2636
2280
|
case 6:
|
|
2637
2281
|
parsedBody = parsedOutput.body;
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
response
|
|
2644
|
-
delete response.Message;
|
|
2645
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2282
|
+
response = new __BaseException({
|
|
2283
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2284
|
+
$fault: "client",
|
|
2285
|
+
$metadata: deserializeMetadata(output),
|
|
2286
|
+
});
|
|
2287
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2646
2288
|
}
|
|
2647
2289
|
});
|
|
2648
2290
|
}); };
|
|
@@ -2665,16 +2307,16 @@ export var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationCommand =
|
|
|
2665
2307
|
});
|
|
2666
2308
|
}); };
|
|
2667
2309
|
var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2668
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2669
|
-
var
|
|
2670
|
-
return __generator(this, function (
|
|
2671
|
-
switch (
|
|
2310
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2311
|
+
var _c;
|
|
2312
|
+
return __generator(this, function (_d) {
|
|
2313
|
+
switch (_d.label) {
|
|
2672
2314
|
case 0:
|
|
2673
2315
|
_a = [__assign({}, output)];
|
|
2674
|
-
|
|
2316
|
+
_c = {};
|
|
2675
2317
|
return [4, parseBody(output.body, context)];
|
|
2676
2318
|
case 1:
|
|
2677
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2319
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2678
2320
|
errorCode = "UnknownError";
|
|
2679
2321
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2680
2322
|
_b = errorCode;
|
|
@@ -2685,28 +2327,18 @@ var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationCommandError = fu
|
|
|
2685
2327
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
2686
2328
|
}
|
|
2687
2329
|
return [3, 6];
|
|
2688
|
-
case 2:
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
case
|
|
2692
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2693
|
-
return [3, 7];
|
|
2694
|
-
case 4:
|
|
2695
|
-
_d = [{}];
|
|
2696
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2697
|
-
case 5:
|
|
2698
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2699
|
-
return [3, 7];
|
|
2330
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2331
|
+
case 3: throw _d.sent();
|
|
2332
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2333
|
+
case 5: throw _d.sent();
|
|
2700
2334
|
case 6:
|
|
2701
2335
|
parsedBody = parsedOutput.body;
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
response
|
|
2708
|
-
delete response.Message;
|
|
2709
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2336
|
+
response = new __BaseException({
|
|
2337
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2338
|
+
$fault: "client",
|
|
2339
|
+
$metadata: deserializeMetadata(output),
|
|
2340
|
+
});
|
|
2341
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2710
2342
|
}
|
|
2711
2343
|
});
|
|
2712
2344
|
}); };
|
|
@@ -2729,16 +2361,16 @@ export var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalCo
|
|
|
2729
2361
|
});
|
|
2730
2362
|
}); };
|
|
2731
2363
|
var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2732
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2733
|
-
var
|
|
2734
|
-
return __generator(this, function (
|
|
2735
|
-
switch (
|
|
2364
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2365
|
+
var _c;
|
|
2366
|
+
return __generator(this, function (_d) {
|
|
2367
|
+
switch (_d.label) {
|
|
2736
2368
|
case 0:
|
|
2737
2369
|
_a = [__assign({}, output)];
|
|
2738
|
-
|
|
2370
|
+
_c = {};
|
|
2739
2371
|
return [4, parseBody(output.body, context)];
|
|
2740
2372
|
case 1:
|
|
2741
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2373
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2742
2374
|
errorCode = "UnknownError";
|
|
2743
2375
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2744
2376
|
_b = errorCode;
|
|
@@ -2749,28 +2381,18 @@ var deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalCommandEr
|
|
|
2749
2381
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
2750
2382
|
}
|
|
2751
2383
|
return [3, 6];
|
|
2752
|
-
case 2:
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
case
|
|
2756
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2757
|
-
return [3, 7];
|
|
2758
|
-
case 4:
|
|
2759
|
-
_d = [{}];
|
|
2760
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2761
|
-
case 5:
|
|
2762
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2763
|
-
return [3, 7];
|
|
2384
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2385
|
+
case 3: throw _d.sent();
|
|
2386
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2387
|
+
case 5: throw _d.sent();
|
|
2764
2388
|
case 6:
|
|
2765
2389
|
parsedBody = parsedOutput.body;
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
response
|
|
2772
|
-
delete response.Message;
|
|
2773
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2390
|
+
response = new __BaseException({
|
|
2391
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2392
|
+
$fault: "client",
|
|
2393
|
+
$metadata: deserializeMetadata(output),
|
|
2394
|
+
});
|
|
2395
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2774
2396
|
}
|
|
2775
2397
|
});
|
|
2776
2398
|
}); };
|
|
@@ -2793,16 +2415,16 @@ export var deserializeAws_json1_1DeleteInterconnectCommand = function (output, c
|
|
|
2793
2415
|
});
|
|
2794
2416
|
}); };
|
|
2795
2417
|
var deserializeAws_json1_1DeleteInterconnectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2796
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2797
|
-
var
|
|
2798
|
-
return __generator(this, function (
|
|
2799
|
-
switch (
|
|
2418
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2419
|
+
var _c;
|
|
2420
|
+
return __generator(this, function (_d) {
|
|
2421
|
+
switch (_d.label) {
|
|
2800
2422
|
case 0:
|
|
2801
2423
|
_a = [__assign({}, output)];
|
|
2802
|
-
|
|
2424
|
+
_c = {};
|
|
2803
2425
|
return [4, parseBody(output.body, context)];
|
|
2804
2426
|
case 1:
|
|
2805
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2427
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2806
2428
|
errorCode = "UnknownError";
|
|
2807
2429
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2808
2430
|
_b = errorCode;
|
|
@@ -2813,28 +2435,18 @@ var deserializeAws_json1_1DeleteInterconnectCommandError = function (output, con
|
|
|
2813
2435
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
2814
2436
|
}
|
|
2815
2437
|
return [3, 6];
|
|
2816
|
-
case 2:
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
case
|
|
2820
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2821
|
-
return [3, 7];
|
|
2822
|
-
case 4:
|
|
2823
|
-
_d = [{}];
|
|
2824
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2825
|
-
case 5:
|
|
2826
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2827
|
-
return [3, 7];
|
|
2438
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2439
|
+
case 3: throw _d.sent();
|
|
2440
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2441
|
+
case 5: throw _d.sent();
|
|
2828
2442
|
case 6:
|
|
2829
2443
|
parsedBody = parsedOutput.body;
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
response
|
|
2836
|
-
delete response.Message;
|
|
2837
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2444
|
+
response = new __BaseException({
|
|
2445
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2446
|
+
$fault: "client",
|
|
2447
|
+
$metadata: deserializeMetadata(output),
|
|
2448
|
+
});
|
|
2449
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2838
2450
|
}
|
|
2839
2451
|
});
|
|
2840
2452
|
}); };
|
|
@@ -2857,16 +2469,16 @@ export var deserializeAws_json1_1DeleteLagCommand = function (output, context) {
|
|
|
2857
2469
|
});
|
|
2858
2470
|
}); };
|
|
2859
2471
|
var deserializeAws_json1_1DeleteLagCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2860
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2861
|
-
var
|
|
2862
|
-
return __generator(this, function (
|
|
2863
|
-
switch (
|
|
2472
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2473
|
+
var _c;
|
|
2474
|
+
return __generator(this, function (_d) {
|
|
2475
|
+
switch (_d.label) {
|
|
2864
2476
|
case 0:
|
|
2865
2477
|
_a = [__assign({}, output)];
|
|
2866
|
-
|
|
2478
|
+
_c = {};
|
|
2867
2479
|
return [4, parseBody(output.body, context)];
|
|
2868
2480
|
case 1:
|
|
2869
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2481
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2870
2482
|
errorCode = "UnknownError";
|
|
2871
2483
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2872
2484
|
_b = errorCode;
|
|
@@ -2877,28 +2489,18 @@ var deserializeAws_json1_1DeleteLagCommandError = function (output, context) { r
|
|
|
2877
2489
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
2878
2490
|
}
|
|
2879
2491
|
return [3, 6];
|
|
2880
|
-
case 2:
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
case
|
|
2884
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2885
|
-
return [3, 7];
|
|
2886
|
-
case 4:
|
|
2887
|
-
_d = [{}];
|
|
2888
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2889
|
-
case 5:
|
|
2890
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2891
|
-
return [3, 7];
|
|
2492
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2493
|
+
case 3: throw _d.sent();
|
|
2494
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2495
|
+
case 5: throw _d.sent();
|
|
2892
2496
|
case 6:
|
|
2893
2497
|
parsedBody = parsedOutput.body;
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
response
|
|
2900
|
-
delete response.Message;
|
|
2901
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2498
|
+
response = new __BaseException({
|
|
2499
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2500
|
+
$fault: "client",
|
|
2501
|
+
$metadata: deserializeMetadata(output),
|
|
2502
|
+
});
|
|
2503
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2902
2504
|
}
|
|
2903
2505
|
});
|
|
2904
2506
|
}); };
|
|
@@ -2921,16 +2523,16 @@ export var deserializeAws_json1_1DeleteVirtualInterfaceCommand = function (outpu
|
|
|
2921
2523
|
});
|
|
2922
2524
|
}); };
|
|
2923
2525
|
var deserializeAws_json1_1DeleteVirtualInterfaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2924
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2925
|
-
var
|
|
2926
|
-
return __generator(this, function (
|
|
2927
|
-
switch (
|
|
2526
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2527
|
+
var _c;
|
|
2528
|
+
return __generator(this, function (_d) {
|
|
2529
|
+
switch (_d.label) {
|
|
2928
2530
|
case 0:
|
|
2929
2531
|
_a = [__assign({}, output)];
|
|
2930
|
-
|
|
2532
|
+
_c = {};
|
|
2931
2533
|
return [4, parseBody(output.body, context)];
|
|
2932
2534
|
case 1:
|
|
2933
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2535
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2934
2536
|
errorCode = "UnknownError";
|
|
2935
2537
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2936
2538
|
_b = errorCode;
|
|
@@ -2941,28 +2543,18 @@ var deserializeAws_json1_1DeleteVirtualInterfaceCommandError = function (output,
|
|
|
2941
2543
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
2942
2544
|
}
|
|
2943
2545
|
return [3, 6];
|
|
2944
|
-
case 2:
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
case
|
|
2948
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2949
|
-
return [3, 7];
|
|
2950
|
-
case 4:
|
|
2951
|
-
_d = [{}];
|
|
2952
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2953
|
-
case 5:
|
|
2954
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2955
|
-
return [3, 7];
|
|
2546
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2547
|
+
case 3: throw _d.sent();
|
|
2548
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2549
|
+
case 5: throw _d.sent();
|
|
2956
2550
|
case 6:
|
|
2957
2551
|
parsedBody = parsedOutput.body;
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
response
|
|
2964
|
-
delete response.Message;
|
|
2965
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2552
|
+
response = new __BaseException({
|
|
2553
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2554
|
+
$fault: "client",
|
|
2555
|
+
$metadata: deserializeMetadata(output),
|
|
2556
|
+
});
|
|
2557
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2966
2558
|
}
|
|
2967
2559
|
});
|
|
2968
2560
|
}); };
|
|
@@ -2985,16 +2577,16 @@ export var deserializeAws_json1_1DescribeConnectionLoaCommand = function (output
|
|
|
2985
2577
|
});
|
|
2986
2578
|
}); };
|
|
2987
2579
|
var deserializeAws_json1_1DescribeConnectionLoaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2988
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2989
|
-
var
|
|
2990
|
-
return __generator(this, function (
|
|
2991
|
-
switch (
|
|
2580
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2581
|
+
var _c;
|
|
2582
|
+
return __generator(this, function (_d) {
|
|
2583
|
+
switch (_d.label) {
|
|
2992
2584
|
case 0:
|
|
2993
2585
|
_a = [__assign({}, output)];
|
|
2994
|
-
|
|
2586
|
+
_c = {};
|
|
2995
2587
|
return [4, parseBody(output.body, context)];
|
|
2996
2588
|
case 1:
|
|
2997
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2589
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2998
2590
|
errorCode = "UnknownError";
|
|
2999
2591
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3000
2592
|
_b = errorCode;
|
|
@@ -3005,28 +2597,18 @@ var deserializeAws_json1_1DescribeConnectionLoaCommandError = function (output,
|
|
|
3005
2597
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
3006
2598
|
}
|
|
3007
2599
|
return [3, 6];
|
|
3008
|
-
case 2:
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
case
|
|
3012
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3013
|
-
return [3, 7];
|
|
3014
|
-
case 4:
|
|
3015
|
-
_d = [{}];
|
|
3016
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3017
|
-
case 5:
|
|
3018
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3019
|
-
return [3, 7];
|
|
2600
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2601
|
+
case 3: throw _d.sent();
|
|
2602
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2603
|
+
case 5: throw _d.sent();
|
|
3020
2604
|
case 6:
|
|
3021
2605
|
parsedBody = parsedOutput.body;
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
response
|
|
3028
|
-
delete response.Message;
|
|
3029
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2606
|
+
response = new __BaseException({
|
|
2607
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2608
|
+
$fault: "client",
|
|
2609
|
+
$metadata: deserializeMetadata(output),
|
|
2610
|
+
});
|
|
2611
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3030
2612
|
}
|
|
3031
2613
|
});
|
|
3032
2614
|
}); };
|
|
@@ -3049,16 +2631,16 @@ export var deserializeAws_json1_1DescribeConnectionsCommand = function (output,
|
|
|
3049
2631
|
});
|
|
3050
2632
|
}); };
|
|
3051
2633
|
var deserializeAws_json1_1DescribeConnectionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3052
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3053
|
-
var
|
|
3054
|
-
return __generator(this, function (
|
|
3055
|
-
switch (
|
|
2634
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2635
|
+
var _c;
|
|
2636
|
+
return __generator(this, function (_d) {
|
|
2637
|
+
switch (_d.label) {
|
|
3056
2638
|
case 0:
|
|
3057
2639
|
_a = [__assign({}, output)];
|
|
3058
|
-
|
|
2640
|
+
_c = {};
|
|
3059
2641
|
return [4, parseBody(output.body, context)];
|
|
3060
2642
|
case 1:
|
|
3061
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2643
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3062
2644
|
errorCode = "UnknownError";
|
|
3063
2645
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3064
2646
|
_b = errorCode;
|
|
@@ -3069,28 +2651,18 @@ var deserializeAws_json1_1DescribeConnectionsCommandError = function (output, co
|
|
|
3069
2651
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
3070
2652
|
}
|
|
3071
2653
|
return [3, 6];
|
|
3072
|
-
case 2:
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
case
|
|
3076
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3077
|
-
return [3, 7];
|
|
3078
|
-
case 4:
|
|
3079
|
-
_d = [{}];
|
|
3080
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3081
|
-
case 5:
|
|
3082
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3083
|
-
return [3, 7];
|
|
2654
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2655
|
+
case 3: throw _d.sent();
|
|
2656
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2657
|
+
case 5: throw _d.sent();
|
|
3084
2658
|
case 6:
|
|
3085
2659
|
parsedBody = parsedOutput.body;
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
response
|
|
3092
|
-
delete response.Message;
|
|
3093
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2660
|
+
response = new __BaseException({
|
|
2661
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2662
|
+
$fault: "client",
|
|
2663
|
+
$metadata: deserializeMetadata(output),
|
|
2664
|
+
});
|
|
2665
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3094
2666
|
}
|
|
3095
2667
|
});
|
|
3096
2668
|
}); };
|
|
@@ -3113,16 +2685,16 @@ export var deserializeAws_json1_1DescribeConnectionsOnInterconnectCommand = func
|
|
|
3113
2685
|
});
|
|
3114
2686
|
}); };
|
|
3115
2687
|
var deserializeAws_json1_1DescribeConnectionsOnInterconnectCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3116
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3117
|
-
var
|
|
3118
|
-
return __generator(this, function (
|
|
3119
|
-
switch (
|
|
2688
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2689
|
+
var _c;
|
|
2690
|
+
return __generator(this, function (_d) {
|
|
2691
|
+
switch (_d.label) {
|
|
3120
2692
|
case 0:
|
|
3121
2693
|
_a = [__assign({}, output)];
|
|
3122
|
-
|
|
2694
|
+
_c = {};
|
|
3123
2695
|
return [4, parseBody(output.body, context)];
|
|
3124
2696
|
case 1:
|
|
3125
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2697
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3126
2698
|
errorCode = "UnknownError";
|
|
3127
2699
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3128
2700
|
_b = errorCode;
|
|
@@ -3133,28 +2705,18 @@ var deserializeAws_json1_1DescribeConnectionsOnInterconnectCommandError = functi
|
|
|
3133
2705
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
3134
2706
|
}
|
|
3135
2707
|
return [3, 6];
|
|
3136
|
-
case 2:
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
case
|
|
3140
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3141
|
-
return [3, 7];
|
|
3142
|
-
case 4:
|
|
3143
|
-
_d = [{}];
|
|
3144
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3145
|
-
case 5:
|
|
3146
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3147
|
-
return [3, 7];
|
|
2708
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2709
|
+
case 3: throw _d.sent();
|
|
2710
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2711
|
+
case 5: throw _d.sent();
|
|
3148
2712
|
case 6:
|
|
3149
2713
|
parsedBody = parsedOutput.body;
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
response
|
|
3156
|
-
delete response.Message;
|
|
3157
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2714
|
+
response = new __BaseException({
|
|
2715
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2716
|
+
$fault: "client",
|
|
2717
|
+
$metadata: deserializeMetadata(output),
|
|
2718
|
+
});
|
|
2719
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3158
2720
|
}
|
|
3159
2721
|
});
|
|
3160
2722
|
}); };
|
|
@@ -3177,16 +2739,16 @@ export var deserializeAws_json1_1DescribeCustomerMetadataCommand = function (out
|
|
|
3177
2739
|
});
|
|
3178
2740
|
}); };
|
|
3179
2741
|
var deserializeAws_json1_1DescribeCustomerMetadataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3180
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3181
|
-
var
|
|
3182
|
-
return __generator(this, function (
|
|
3183
|
-
switch (
|
|
2742
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2743
|
+
var _c;
|
|
2744
|
+
return __generator(this, function (_d) {
|
|
2745
|
+
switch (_d.label) {
|
|
3184
2746
|
case 0:
|
|
3185
2747
|
_a = [__assign({}, output)];
|
|
3186
|
-
|
|
2748
|
+
_c = {};
|
|
3187
2749
|
return [4, parseBody(output.body, context)];
|
|
3188
2750
|
case 1:
|
|
3189
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2751
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3190
2752
|
errorCode = "UnknownError";
|
|
3191
2753
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3192
2754
|
_b = errorCode;
|
|
@@ -3197,28 +2759,18 @@ var deserializeAws_json1_1DescribeCustomerMetadataCommandError = function (outpu
|
|
|
3197
2759
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
3198
2760
|
}
|
|
3199
2761
|
return [3, 6];
|
|
3200
|
-
case 2:
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
case
|
|
3204
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3205
|
-
return [3, 7];
|
|
3206
|
-
case 4:
|
|
3207
|
-
_d = [{}];
|
|
3208
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3209
|
-
case 5:
|
|
3210
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3211
|
-
return [3, 7];
|
|
2762
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2763
|
+
case 3: throw _d.sent();
|
|
2764
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2765
|
+
case 5: throw _d.sent();
|
|
3212
2766
|
case 6:
|
|
3213
2767
|
parsedBody = parsedOutput.body;
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
response
|
|
3220
|
-
delete response.Message;
|
|
3221
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2768
|
+
response = new __BaseException({
|
|
2769
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2770
|
+
$fault: "client",
|
|
2771
|
+
$metadata: deserializeMetadata(output),
|
|
2772
|
+
});
|
|
2773
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3222
2774
|
}
|
|
3223
2775
|
});
|
|
3224
2776
|
}); };
|
|
@@ -3241,16 +2793,16 @@ export var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposal
|
|
|
3241
2793
|
});
|
|
3242
2794
|
}); };
|
|
3243
2795
|
var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3244
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3245
|
-
var
|
|
3246
|
-
return __generator(this, function (
|
|
3247
|
-
switch (
|
|
2796
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2797
|
+
var _c;
|
|
2798
|
+
return __generator(this, function (_d) {
|
|
2799
|
+
switch (_d.label) {
|
|
3248
2800
|
case 0:
|
|
3249
2801
|
_a = [__assign({}, output)];
|
|
3250
|
-
|
|
2802
|
+
_c = {};
|
|
3251
2803
|
return [4, parseBody(output.body, context)];
|
|
3252
2804
|
case 1:
|
|
3253
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2805
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3254
2806
|
errorCode = "UnknownError";
|
|
3255
2807
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3256
2808
|
_b = errorCode;
|
|
@@ -3261,28 +2813,18 @@ var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsComman
|
|
|
3261
2813
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
3262
2814
|
}
|
|
3263
2815
|
return [3, 6];
|
|
3264
|
-
case 2:
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
case
|
|
3268
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3269
|
-
return [3, 7];
|
|
3270
|
-
case 4:
|
|
3271
|
-
_d = [{}];
|
|
3272
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3273
|
-
case 5:
|
|
3274
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3275
|
-
return [3, 7];
|
|
2816
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2817
|
+
case 3: throw _d.sent();
|
|
2818
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2819
|
+
case 5: throw _d.sent();
|
|
3276
2820
|
case 6:
|
|
3277
2821
|
parsedBody = parsedOutput.body;
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
response
|
|
3284
|
-
delete response.Message;
|
|
3285
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2822
|
+
response = new __BaseException({
|
|
2823
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2824
|
+
$fault: "client",
|
|
2825
|
+
$metadata: deserializeMetadata(output),
|
|
2826
|
+
});
|
|
2827
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3286
2828
|
}
|
|
3287
2829
|
});
|
|
3288
2830
|
}); };
|
|
@@ -3305,16 +2847,16 @@ export var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsCommand
|
|
|
3305
2847
|
});
|
|
3306
2848
|
}); };
|
|
3307
2849
|
var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3308
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3309
|
-
var
|
|
3310
|
-
return __generator(this, function (
|
|
3311
|
-
switch (
|
|
2850
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2851
|
+
var _c;
|
|
2852
|
+
return __generator(this, function (_d) {
|
|
2853
|
+
switch (_d.label) {
|
|
3312
2854
|
case 0:
|
|
3313
2855
|
_a = [__assign({}, output)];
|
|
3314
|
-
|
|
2856
|
+
_c = {};
|
|
3315
2857
|
return [4, parseBody(output.body, context)];
|
|
3316
2858
|
case 1:
|
|
3317
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2859
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3318
2860
|
errorCode = "UnknownError";
|
|
3319
2861
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3320
2862
|
_b = errorCode;
|
|
@@ -3325,28 +2867,18 @@ var deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsCommandError =
|
|
|
3325
2867
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
3326
2868
|
}
|
|
3327
2869
|
return [3, 6];
|
|
3328
|
-
case 2:
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
case
|
|
3332
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3333
|
-
return [3, 7];
|
|
3334
|
-
case 4:
|
|
3335
|
-
_d = [{}];
|
|
3336
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3337
|
-
case 5:
|
|
3338
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3339
|
-
return [3, 7];
|
|
2870
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2871
|
+
case 3: throw _d.sent();
|
|
2872
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2873
|
+
case 5: throw _d.sent();
|
|
3340
2874
|
case 6:
|
|
3341
2875
|
parsedBody = parsedOutput.body;
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
response
|
|
3348
|
-
delete response.Message;
|
|
3349
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2876
|
+
response = new __BaseException({
|
|
2877
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2878
|
+
$fault: "client",
|
|
2879
|
+
$metadata: deserializeMetadata(output),
|
|
2880
|
+
});
|
|
2881
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3350
2882
|
}
|
|
3351
2883
|
});
|
|
3352
2884
|
}); };
|
|
@@ -3369,16 +2901,16 @@ export var deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsCommand
|
|
|
3369
2901
|
});
|
|
3370
2902
|
}); };
|
|
3371
2903
|
var deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3372
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3373
|
-
var
|
|
3374
|
-
return __generator(this, function (
|
|
3375
|
-
switch (
|
|
2904
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2905
|
+
var _c;
|
|
2906
|
+
return __generator(this, function (_d) {
|
|
2907
|
+
switch (_d.label) {
|
|
3376
2908
|
case 0:
|
|
3377
2909
|
_a = [__assign({}, output)];
|
|
3378
|
-
|
|
2910
|
+
_c = {};
|
|
3379
2911
|
return [4, parseBody(output.body, context)];
|
|
3380
2912
|
case 1:
|
|
3381
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2913
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3382
2914
|
errorCode = "UnknownError";
|
|
3383
2915
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3384
2916
|
_b = errorCode;
|
|
@@ -3389,28 +2921,18 @@ var deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsCommandError =
|
|
|
3389
2921
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
3390
2922
|
}
|
|
3391
2923
|
return [3, 6];
|
|
3392
|
-
case 2:
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
case
|
|
3396
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3397
|
-
return [3, 7];
|
|
3398
|
-
case 4:
|
|
3399
|
-
_d = [{}];
|
|
3400
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3401
|
-
case 5:
|
|
3402
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3403
|
-
return [3, 7];
|
|
2924
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2925
|
+
case 3: throw _d.sent();
|
|
2926
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2927
|
+
case 5: throw _d.sent();
|
|
3404
2928
|
case 6:
|
|
3405
2929
|
parsedBody = parsedOutput.body;
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
response
|
|
3412
|
-
delete response.Message;
|
|
3413
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2930
|
+
response = new __BaseException({
|
|
2931
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2932
|
+
$fault: "client",
|
|
2933
|
+
$metadata: deserializeMetadata(output),
|
|
2934
|
+
});
|
|
2935
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3414
2936
|
}
|
|
3415
2937
|
});
|
|
3416
2938
|
}); };
|
|
@@ -3433,16 +2955,16 @@ export var deserializeAws_json1_1DescribeDirectConnectGatewaysCommand = function
|
|
|
3433
2955
|
});
|
|
3434
2956
|
}); };
|
|
3435
2957
|
var deserializeAws_json1_1DescribeDirectConnectGatewaysCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3436
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3437
|
-
var
|
|
3438
|
-
return __generator(this, function (
|
|
3439
|
-
switch (
|
|
2958
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2959
|
+
var _c;
|
|
2960
|
+
return __generator(this, function (_d) {
|
|
2961
|
+
switch (_d.label) {
|
|
3440
2962
|
case 0:
|
|
3441
2963
|
_a = [__assign({}, output)];
|
|
3442
|
-
|
|
2964
|
+
_c = {};
|
|
3443
2965
|
return [4, parseBody(output.body, context)];
|
|
3444
2966
|
case 1:
|
|
3445
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2967
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3446
2968
|
errorCode = "UnknownError";
|
|
3447
2969
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3448
2970
|
_b = errorCode;
|
|
@@ -3453,28 +2975,18 @@ var deserializeAws_json1_1DescribeDirectConnectGatewaysCommandError = function (
|
|
|
3453
2975
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
3454
2976
|
}
|
|
3455
2977
|
return [3, 6];
|
|
3456
|
-
case 2:
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
case
|
|
3460
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3461
|
-
return [3, 7];
|
|
3462
|
-
case 4:
|
|
3463
|
-
_d = [{}];
|
|
3464
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3465
|
-
case 5:
|
|
3466
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3467
|
-
return [3, 7];
|
|
2978
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
2979
|
+
case 3: throw _d.sent();
|
|
2980
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
2981
|
+
case 5: throw _d.sent();
|
|
3468
2982
|
case 6:
|
|
3469
2983
|
parsedBody = parsedOutput.body;
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
response
|
|
3476
|
-
delete response.Message;
|
|
3477
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2984
|
+
response = new __BaseException({
|
|
2985
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2986
|
+
$fault: "client",
|
|
2987
|
+
$metadata: deserializeMetadata(output),
|
|
2988
|
+
});
|
|
2989
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3478
2990
|
}
|
|
3479
2991
|
});
|
|
3480
2992
|
}); };
|
|
@@ -3497,16 +3009,16 @@ export var deserializeAws_json1_1DescribeHostedConnectionsCommand = function (ou
|
|
|
3497
3009
|
});
|
|
3498
3010
|
}); };
|
|
3499
3011
|
var deserializeAws_json1_1DescribeHostedConnectionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3500
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3501
|
-
var
|
|
3502
|
-
return __generator(this, function (
|
|
3503
|
-
switch (
|
|
3012
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3013
|
+
var _c;
|
|
3014
|
+
return __generator(this, function (_d) {
|
|
3015
|
+
switch (_d.label) {
|
|
3504
3016
|
case 0:
|
|
3505
3017
|
_a = [__assign({}, output)];
|
|
3506
|
-
|
|
3018
|
+
_c = {};
|
|
3507
3019
|
return [4, parseBody(output.body, context)];
|
|
3508
3020
|
case 1:
|
|
3509
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3021
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3510
3022
|
errorCode = "UnknownError";
|
|
3511
3023
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3512
3024
|
_b = errorCode;
|
|
@@ -3517,28 +3029,18 @@ var deserializeAws_json1_1DescribeHostedConnectionsCommandError = function (outp
|
|
|
3517
3029
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
3518
3030
|
}
|
|
3519
3031
|
return [3, 6];
|
|
3520
|
-
case 2:
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
case
|
|
3524
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3525
|
-
return [3, 7];
|
|
3526
|
-
case 4:
|
|
3527
|
-
_d = [{}];
|
|
3528
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3529
|
-
case 5:
|
|
3530
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3531
|
-
return [3, 7];
|
|
3032
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3033
|
+
case 3: throw _d.sent();
|
|
3034
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3035
|
+
case 5: throw _d.sent();
|
|
3532
3036
|
case 6:
|
|
3533
3037
|
parsedBody = parsedOutput.body;
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
response
|
|
3540
|
-
delete response.Message;
|
|
3541
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3038
|
+
response = new __BaseException({
|
|
3039
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3040
|
+
$fault: "client",
|
|
3041
|
+
$metadata: deserializeMetadata(output),
|
|
3042
|
+
});
|
|
3043
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3542
3044
|
}
|
|
3543
3045
|
});
|
|
3544
3046
|
}); };
|
|
@@ -3561,16 +3063,16 @@ export var deserializeAws_json1_1DescribeInterconnectLoaCommand = function (outp
|
|
|
3561
3063
|
});
|
|
3562
3064
|
}); };
|
|
3563
3065
|
var deserializeAws_json1_1DescribeInterconnectLoaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3564
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3565
|
-
var
|
|
3566
|
-
return __generator(this, function (
|
|
3567
|
-
switch (
|
|
3066
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3067
|
+
var _c;
|
|
3068
|
+
return __generator(this, function (_d) {
|
|
3069
|
+
switch (_d.label) {
|
|
3568
3070
|
case 0:
|
|
3569
3071
|
_a = [__assign({}, output)];
|
|
3570
|
-
|
|
3072
|
+
_c = {};
|
|
3571
3073
|
return [4, parseBody(output.body, context)];
|
|
3572
3074
|
case 1:
|
|
3573
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3075
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3574
3076
|
errorCode = "UnknownError";
|
|
3575
3077
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3576
3078
|
_b = errorCode;
|
|
@@ -3581,28 +3083,18 @@ var deserializeAws_json1_1DescribeInterconnectLoaCommandError = function (output
|
|
|
3581
3083
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
3582
3084
|
}
|
|
3583
3085
|
return [3, 6];
|
|
3584
|
-
case 2:
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
case
|
|
3588
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3589
|
-
return [3, 7];
|
|
3590
|
-
case 4:
|
|
3591
|
-
_d = [{}];
|
|
3592
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3593
|
-
case 5:
|
|
3594
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3595
|
-
return [3, 7];
|
|
3086
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3087
|
+
case 3: throw _d.sent();
|
|
3088
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3089
|
+
case 5: throw _d.sent();
|
|
3596
3090
|
case 6:
|
|
3597
3091
|
parsedBody = parsedOutput.body;
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
response
|
|
3604
|
-
delete response.Message;
|
|
3605
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3092
|
+
response = new __BaseException({
|
|
3093
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3094
|
+
$fault: "client",
|
|
3095
|
+
$metadata: deserializeMetadata(output),
|
|
3096
|
+
});
|
|
3097
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3606
3098
|
}
|
|
3607
3099
|
});
|
|
3608
3100
|
}); };
|
|
@@ -3625,16 +3117,16 @@ export var deserializeAws_json1_1DescribeInterconnectsCommand = function (output
|
|
|
3625
3117
|
});
|
|
3626
3118
|
}); };
|
|
3627
3119
|
var deserializeAws_json1_1DescribeInterconnectsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3628
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3629
|
-
var
|
|
3630
|
-
return __generator(this, function (
|
|
3631
|
-
switch (
|
|
3120
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3121
|
+
var _c;
|
|
3122
|
+
return __generator(this, function (_d) {
|
|
3123
|
+
switch (_d.label) {
|
|
3632
3124
|
case 0:
|
|
3633
3125
|
_a = [__assign({}, output)];
|
|
3634
|
-
|
|
3126
|
+
_c = {};
|
|
3635
3127
|
return [4, parseBody(output.body, context)];
|
|
3636
3128
|
case 1:
|
|
3637
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3129
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3638
3130
|
errorCode = "UnknownError";
|
|
3639
3131
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3640
3132
|
_b = errorCode;
|
|
@@ -3645,28 +3137,18 @@ var deserializeAws_json1_1DescribeInterconnectsCommandError = function (output,
|
|
|
3645
3137
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
3646
3138
|
}
|
|
3647
3139
|
return [3, 6];
|
|
3648
|
-
case 2:
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
case
|
|
3652
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3653
|
-
return [3, 7];
|
|
3654
|
-
case 4:
|
|
3655
|
-
_d = [{}];
|
|
3656
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3657
|
-
case 5:
|
|
3658
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3659
|
-
return [3, 7];
|
|
3140
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3141
|
+
case 3: throw _d.sent();
|
|
3142
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3143
|
+
case 5: throw _d.sent();
|
|
3660
3144
|
case 6:
|
|
3661
3145
|
parsedBody = parsedOutput.body;
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
response
|
|
3668
|
-
delete response.Message;
|
|
3669
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3146
|
+
response = new __BaseException({
|
|
3147
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3148
|
+
$fault: "client",
|
|
3149
|
+
$metadata: deserializeMetadata(output),
|
|
3150
|
+
});
|
|
3151
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3670
3152
|
}
|
|
3671
3153
|
});
|
|
3672
3154
|
}); };
|
|
@@ -3689,16 +3171,16 @@ export var deserializeAws_json1_1DescribeLagsCommand = function (output, context
|
|
|
3689
3171
|
});
|
|
3690
3172
|
}); };
|
|
3691
3173
|
var deserializeAws_json1_1DescribeLagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3692
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3693
|
-
var
|
|
3694
|
-
return __generator(this, function (
|
|
3695
|
-
switch (
|
|
3174
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3175
|
+
var _c;
|
|
3176
|
+
return __generator(this, function (_d) {
|
|
3177
|
+
switch (_d.label) {
|
|
3696
3178
|
case 0:
|
|
3697
3179
|
_a = [__assign({}, output)];
|
|
3698
|
-
|
|
3180
|
+
_c = {};
|
|
3699
3181
|
return [4, parseBody(output.body, context)];
|
|
3700
3182
|
case 1:
|
|
3701
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3183
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3702
3184
|
errorCode = "UnknownError";
|
|
3703
3185
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3704
3186
|
_b = errorCode;
|
|
@@ -3709,28 +3191,18 @@ var deserializeAws_json1_1DescribeLagsCommandError = function (output, context)
|
|
|
3709
3191
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
3710
3192
|
}
|
|
3711
3193
|
return [3, 6];
|
|
3712
|
-
case 2:
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
case
|
|
3716
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3717
|
-
return [3, 7];
|
|
3718
|
-
case 4:
|
|
3719
|
-
_d = [{}];
|
|
3720
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3721
|
-
case 5:
|
|
3722
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3723
|
-
return [3, 7];
|
|
3194
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3195
|
+
case 3: throw _d.sent();
|
|
3196
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3197
|
+
case 5: throw _d.sent();
|
|
3724
3198
|
case 6:
|
|
3725
3199
|
parsedBody = parsedOutput.body;
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
response
|
|
3732
|
-
delete response.Message;
|
|
3733
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3200
|
+
response = new __BaseException({
|
|
3201
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3202
|
+
$fault: "client",
|
|
3203
|
+
$metadata: deserializeMetadata(output),
|
|
3204
|
+
});
|
|
3205
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3734
3206
|
}
|
|
3735
3207
|
});
|
|
3736
3208
|
}); };
|
|
@@ -3753,16 +3225,16 @@ export var deserializeAws_json1_1DescribeLoaCommand = function (output, context)
|
|
|
3753
3225
|
});
|
|
3754
3226
|
}); };
|
|
3755
3227
|
var deserializeAws_json1_1DescribeLoaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3756
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3757
|
-
var
|
|
3758
|
-
return __generator(this, function (
|
|
3759
|
-
switch (
|
|
3228
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3229
|
+
var _c;
|
|
3230
|
+
return __generator(this, function (_d) {
|
|
3231
|
+
switch (_d.label) {
|
|
3760
3232
|
case 0:
|
|
3761
3233
|
_a = [__assign({}, output)];
|
|
3762
|
-
|
|
3234
|
+
_c = {};
|
|
3763
3235
|
return [4, parseBody(output.body, context)];
|
|
3764
3236
|
case 1:
|
|
3765
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3237
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3766
3238
|
errorCode = "UnknownError";
|
|
3767
3239
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3768
3240
|
_b = errorCode;
|
|
@@ -3773,28 +3245,18 @@ var deserializeAws_json1_1DescribeLoaCommandError = function (output, context) {
|
|
|
3773
3245
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
3774
3246
|
}
|
|
3775
3247
|
return [3, 6];
|
|
3776
|
-
case 2:
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
case
|
|
3780
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3781
|
-
return [3, 7];
|
|
3782
|
-
case 4:
|
|
3783
|
-
_d = [{}];
|
|
3784
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3785
|
-
case 5:
|
|
3786
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3787
|
-
return [3, 7];
|
|
3248
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3249
|
+
case 3: throw _d.sent();
|
|
3250
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3251
|
+
case 5: throw _d.sent();
|
|
3788
3252
|
case 6:
|
|
3789
3253
|
parsedBody = parsedOutput.body;
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
response
|
|
3796
|
-
delete response.Message;
|
|
3797
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3254
|
+
response = new __BaseException({
|
|
3255
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3256
|
+
$fault: "client",
|
|
3257
|
+
$metadata: deserializeMetadata(output),
|
|
3258
|
+
});
|
|
3259
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3798
3260
|
}
|
|
3799
3261
|
});
|
|
3800
3262
|
}); };
|
|
@@ -3817,16 +3279,16 @@ export var deserializeAws_json1_1DescribeLocationsCommand = function (output, co
|
|
|
3817
3279
|
});
|
|
3818
3280
|
}); };
|
|
3819
3281
|
var deserializeAws_json1_1DescribeLocationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3820
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3821
|
-
var
|
|
3822
|
-
return __generator(this, function (
|
|
3823
|
-
switch (
|
|
3282
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3283
|
+
var _c;
|
|
3284
|
+
return __generator(this, function (_d) {
|
|
3285
|
+
switch (_d.label) {
|
|
3824
3286
|
case 0:
|
|
3825
3287
|
_a = [__assign({}, output)];
|
|
3826
|
-
|
|
3288
|
+
_c = {};
|
|
3827
3289
|
return [4, parseBody(output.body, context)];
|
|
3828
3290
|
case 1:
|
|
3829
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3291
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3830
3292
|
errorCode = "UnknownError";
|
|
3831
3293
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3832
3294
|
_b = errorCode;
|
|
@@ -3837,28 +3299,18 @@ var deserializeAws_json1_1DescribeLocationsCommandError = function (output, cont
|
|
|
3837
3299
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
3838
3300
|
}
|
|
3839
3301
|
return [3, 6];
|
|
3840
|
-
case 2:
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
case
|
|
3844
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3845
|
-
return [3, 7];
|
|
3846
|
-
case 4:
|
|
3847
|
-
_d = [{}];
|
|
3848
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3849
|
-
case 5:
|
|
3850
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3851
|
-
return [3, 7];
|
|
3302
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3303
|
+
case 3: throw _d.sent();
|
|
3304
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3305
|
+
case 5: throw _d.sent();
|
|
3852
3306
|
case 6:
|
|
3853
3307
|
parsedBody = parsedOutput.body;
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
response
|
|
3860
|
-
delete response.Message;
|
|
3861
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3308
|
+
response = new __BaseException({
|
|
3309
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3310
|
+
$fault: "client",
|
|
3311
|
+
$metadata: deserializeMetadata(output),
|
|
3312
|
+
});
|
|
3313
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3862
3314
|
}
|
|
3863
3315
|
});
|
|
3864
3316
|
}); };
|
|
@@ -3881,16 +3333,16 @@ export var deserializeAws_json1_1DescribeRouterConfigurationCommand = function (
|
|
|
3881
3333
|
});
|
|
3882
3334
|
}); };
|
|
3883
3335
|
var deserializeAws_json1_1DescribeRouterConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3884
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3885
|
-
var
|
|
3886
|
-
return __generator(this, function (
|
|
3887
|
-
switch (
|
|
3336
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3337
|
+
var _c;
|
|
3338
|
+
return __generator(this, function (_d) {
|
|
3339
|
+
switch (_d.label) {
|
|
3888
3340
|
case 0:
|
|
3889
3341
|
_a = [__assign({}, output)];
|
|
3890
|
-
|
|
3342
|
+
_c = {};
|
|
3891
3343
|
return [4, parseBody(output.body, context)];
|
|
3892
3344
|
case 1:
|
|
3893
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3345
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3894
3346
|
errorCode = "UnknownError";
|
|
3895
3347
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3896
3348
|
_b = errorCode;
|
|
@@ -3901,28 +3353,18 @@ var deserializeAws_json1_1DescribeRouterConfigurationCommandError = function (ou
|
|
|
3901
3353
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
3902
3354
|
}
|
|
3903
3355
|
return [3, 6];
|
|
3904
|
-
case 2:
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
case
|
|
3908
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3909
|
-
return [3, 7];
|
|
3910
|
-
case 4:
|
|
3911
|
-
_d = [{}];
|
|
3912
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3913
|
-
case 5:
|
|
3914
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3915
|
-
return [3, 7];
|
|
3356
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3357
|
+
case 3: throw _d.sent();
|
|
3358
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3359
|
+
case 5: throw _d.sent();
|
|
3916
3360
|
case 6:
|
|
3917
3361
|
parsedBody = parsedOutput.body;
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
response
|
|
3924
|
-
delete response.Message;
|
|
3925
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3362
|
+
response = new __BaseException({
|
|
3363
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3364
|
+
$fault: "client",
|
|
3365
|
+
$metadata: deserializeMetadata(output),
|
|
3366
|
+
});
|
|
3367
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3926
3368
|
}
|
|
3927
3369
|
});
|
|
3928
3370
|
}); };
|
|
@@ -3945,16 +3387,16 @@ export var deserializeAws_json1_1DescribeTagsCommand = function (output, context
|
|
|
3945
3387
|
});
|
|
3946
3388
|
}); };
|
|
3947
3389
|
var deserializeAws_json1_1DescribeTagsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3948
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3949
|
-
var
|
|
3950
|
-
return __generator(this, function (
|
|
3951
|
-
switch (
|
|
3390
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3391
|
+
var _c;
|
|
3392
|
+
return __generator(this, function (_d) {
|
|
3393
|
+
switch (_d.label) {
|
|
3952
3394
|
case 0:
|
|
3953
3395
|
_a = [__assign({}, output)];
|
|
3954
|
-
|
|
3396
|
+
_c = {};
|
|
3955
3397
|
return [4, parseBody(output.body, context)];
|
|
3956
3398
|
case 1:
|
|
3957
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3399
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3958
3400
|
errorCode = "UnknownError";
|
|
3959
3401
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3960
3402
|
_b = errorCode;
|
|
@@ -3965,28 +3407,18 @@ var deserializeAws_json1_1DescribeTagsCommandError = function (output, context)
|
|
|
3965
3407
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
3966
3408
|
}
|
|
3967
3409
|
return [3, 6];
|
|
3968
|
-
case 2:
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
case
|
|
3972
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3973
|
-
return [3, 7];
|
|
3974
|
-
case 4:
|
|
3975
|
-
_d = [{}];
|
|
3976
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3977
|
-
case 5:
|
|
3978
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3979
|
-
return [3, 7];
|
|
3410
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3411
|
+
case 3: throw _d.sent();
|
|
3412
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3413
|
+
case 5: throw _d.sent();
|
|
3980
3414
|
case 6:
|
|
3981
3415
|
parsedBody = parsedOutput.body;
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
response
|
|
3988
|
-
delete response.Message;
|
|
3989
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3416
|
+
response = new __BaseException({
|
|
3417
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3418
|
+
$fault: "client",
|
|
3419
|
+
$metadata: deserializeMetadata(output),
|
|
3420
|
+
});
|
|
3421
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3990
3422
|
}
|
|
3991
3423
|
});
|
|
3992
3424
|
}); };
|
|
@@ -4009,16 +3441,16 @@ export var deserializeAws_json1_1DescribeVirtualGatewaysCommand = function (outp
|
|
|
4009
3441
|
});
|
|
4010
3442
|
}); };
|
|
4011
3443
|
var deserializeAws_json1_1DescribeVirtualGatewaysCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4012
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4013
|
-
var
|
|
4014
|
-
return __generator(this, function (
|
|
4015
|
-
switch (
|
|
3444
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3445
|
+
var _c;
|
|
3446
|
+
return __generator(this, function (_d) {
|
|
3447
|
+
switch (_d.label) {
|
|
4016
3448
|
case 0:
|
|
4017
3449
|
_a = [__assign({}, output)];
|
|
4018
|
-
|
|
3450
|
+
_c = {};
|
|
4019
3451
|
return [4, parseBody(output.body, context)];
|
|
4020
3452
|
case 1:
|
|
4021
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3453
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4022
3454
|
errorCode = "UnknownError";
|
|
4023
3455
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4024
3456
|
_b = errorCode;
|
|
@@ -4029,28 +3461,18 @@ var deserializeAws_json1_1DescribeVirtualGatewaysCommandError = function (output
|
|
|
4029
3461
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
4030
3462
|
}
|
|
4031
3463
|
return [3, 6];
|
|
4032
|
-
case 2:
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
case
|
|
4036
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4037
|
-
return [3, 7];
|
|
4038
|
-
case 4:
|
|
4039
|
-
_d = [{}];
|
|
4040
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4041
|
-
case 5:
|
|
4042
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4043
|
-
return [3, 7];
|
|
3464
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3465
|
+
case 3: throw _d.sent();
|
|
3466
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3467
|
+
case 5: throw _d.sent();
|
|
4044
3468
|
case 6:
|
|
4045
3469
|
parsedBody = parsedOutput.body;
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
response
|
|
4052
|
-
delete response.Message;
|
|
4053
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3470
|
+
response = new __BaseException({
|
|
3471
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3472
|
+
$fault: "client",
|
|
3473
|
+
$metadata: deserializeMetadata(output),
|
|
3474
|
+
});
|
|
3475
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4054
3476
|
}
|
|
4055
3477
|
});
|
|
4056
3478
|
}); };
|
|
@@ -4073,16 +3495,16 @@ export var deserializeAws_json1_1DescribeVirtualInterfacesCommand = function (ou
|
|
|
4073
3495
|
});
|
|
4074
3496
|
}); };
|
|
4075
3497
|
var deserializeAws_json1_1DescribeVirtualInterfacesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4076
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4077
|
-
var
|
|
4078
|
-
return __generator(this, function (
|
|
4079
|
-
switch (
|
|
3498
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3499
|
+
var _c;
|
|
3500
|
+
return __generator(this, function (_d) {
|
|
3501
|
+
switch (_d.label) {
|
|
4080
3502
|
case 0:
|
|
4081
3503
|
_a = [__assign({}, output)];
|
|
4082
|
-
|
|
3504
|
+
_c = {};
|
|
4083
3505
|
return [4, parseBody(output.body, context)];
|
|
4084
3506
|
case 1:
|
|
4085
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3507
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4086
3508
|
errorCode = "UnknownError";
|
|
4087
3509
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4088
3510
|
_b = errorCode;
|
|
@@ -4093,28 +3515,18 @@ var deserializeAws_json1_1DescribeVirtualInterfacesCommandError = function (outp
|
|
|
4093
3515
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
4094
3516
|
}
|
|
4095
3517
|
return [3, 6];
|
|
4096
|
-
case 2:
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
case
|
|
4100
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4101
|
-
return [3, 7];
|
|
4102
|
-
case 4:
|
|
4103
|
-
_d = [{}];
|
|
4104
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4105
|
-
case 5:
|
|
4106
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4107
|
-
return [3, 7];
|
|
3518
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3519
|
+
case 3: throw _d.sent();
|
|
3520
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3521
|
+
case 5: throw _d.sent();
|
|
4108
3522
|
case 6:
|
|
4109
3523
|
parsedBody = parsedOutput.body;
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
response
|
|
4116
|
-
delete response.Message;
|
|
4117
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3524
|
+
response = new __BaseException({
|
|
3525
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3526
|
+
$fault: "client",
|
|
3527
|
+
$metadata: deserializeMetadata(output),
|
|
3528
|
+
});
|
|
3529
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4118
3530
|
}
|
|
4119
3531
|
});
|
|
4120
3532
|
}); };
|
|
@@ -4137,16 +3549,16 @@ export var deserializeAws_json1_1DisassociateConnectionFromLagCommand = function
|
|
|
4137
3549
|
});
|
|
4138
3550
|
}); };
|
|
4139
3551
|
var deserializeAws_json1_1DisassociateConnectionFromLagCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4140
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4141
|
-
var
|
|
4142
|
-
return __generator(this, function (
|
|
4143
|
-
switch (
|
|
3552
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3553
|
+
var _c;
|
|
3554
|
+
return __generator(this, function (_d) {
|
|
3555
|
+
switch (_d.label) {
|
|
4144
3556
|
case 0:
|
|
4145
3557
|
_a = [__assign({}, output)];
|
|
4146
|
-
|
|
3558
|
+
_c = {};
|
|
4147
3559
|
return [4, parseBody(output.body, context)];
|
|
4148
3560
|
case 1:
|
|
4149
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3561
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4150
3562
|
errorCode = "UnknownError";
|
|
4151
3563
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4152
3564
|
_b = errorCode;
|
|
@@ -4157,28 +3569,18 @@ var deserializeAws_json1_1DisassociateConnectionFromLagCommandError = function (
|
|
|
4157
3569
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
4158
3570
|
}
|
|
4159
3571
|
return [3, 6];
|
|
4160
|
-
case 2:
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
case
|
|
4164
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4165
|
-
return [3, 7];
|
|
4166
|
-
case 4:
|
|
4167
|
-
_d = [{}];
|
|
4168
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4169
|
-
case 5:
|
|
4170
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4171
|
-
return [3, 7];
|
|
3572
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3573
|
+
case 3: throw _d.sent();
|
|
3574
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3575
|
+
case 5: throw _d.sent();
|
|
4172
3576
|
case 6:
|
|
4173
3577
|
parsedBody = parsedOutput.body;
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
response
|
|
4180
|
-
delete response.Message;
|
|
4181
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3578
|
+
response = new __BaseException({
|
|
3579
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3580
|
+
$fault: "client",
|
|
3581
|
+
$metadata: deserializeMetadata(output),
|
|
3582
|
+
});
|
|
3583
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4182
3584
|
}
|
|
4183
3585
|
});
|
|
4184
3586
|
}); };
|
|
@@ -4201,16 +3603,16 @@ export var deserializeAws_json1_1DisassociateMacSecKeyCommand = function (output
|
|
|
4201
3603
|
});
|
|
4202
3604
|
}); };
|
|
4203
3605
|
var deserializeAws_json1_1DisassociateMacSecKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4204
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4205
|
-
var
|
|
4206
|
-
return __generator(this, function (
|
|
4207
|
-
switch (
|
|
3606
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3607
|
+
var _c;
|
|
3608
|
+
return __generator(this, function (_d) {
|
|
3609
|
+
switch (_d.label) {
|
|
4208
3610
|
case 0:
|
|
4209
3611
|
_a = [__assign({}, output)];
|
|
4210
|
-
|
|
3612
|
+
_c = {};
|
|
4211
3613
|
return [4, parseBody(output.body, context)];
|
|
4212
3614
|
case 1:
|
|
4213
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3615
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4214
3616
|
errorCode = "UnknownError";
|
|
4215
3617
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4216
3618
|
_b = errorCode;
|
|
@@ -4221,28 +3623,18 @@ var deserializeAws_json1_1DisassociateMacSecKeyCommandError = function (output,
|
|
|
4221
3623
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
4222
3624
|
}
|
|
4223
3625
|
return [3, 6];
|
|
4224
|
-
case 2:
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
case
|
|
4228
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4229
|
-
return [3, 7];
|
|
4230
|
-
case 4:
|
|
4231
|
-
_d = [{}];
|
|
4232
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4233
|
-
case 5:
|
|
4234
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4235
|
-
return [3, 7];
|
|
3626
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3627
|
+
case 3: throw _d.sent();
|
|
3628
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3629
|
+
case 5: throw _d.sent();
|
|
4236
3630
|
case 6:
|
|
4237
3631
|
parsedBody = parsedOutput.body;
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
response
|
|
4244
|
-
delete response.Message;
|
|
4245
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3632
|
+
response = new __BaseException({
|
|
3633
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3634
|
+
$fault: "client",
|
|
3635
|
+
$metadata: deserializeMetadata(output),
|
|
3636
|
+
});
|
|
3637
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4246
3638
|
}
|
|
4247
3639
|
});
|
|
4248
3640
|
}); };
|
|
@@ -4265,16 +3657,16 @@ export var deserializeAws_json1_1ListVirtualInterfaceTestHistoryCommand = functi
|
|
|
4265
3657
|
});
|
|
4266
3658
|
}); };
|
|
4267
3659
|
var deserializeAws_json1_1ListVirtualInterfaceTestHistoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4268
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4269
|
-
var
|
|
4270
|
-
return __generator(this, function (
|
|
4271
|
-
switch (
|
|
3660
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3661
|
+
var _c;
|
|
3662
|
+
return __generator(this, function (_d) {
|
|
3663
|
+
switch (_d.label) {
|
|
4272
3664
|
case 0:
|
|
4273
3665
|
_a = [__assign({}, output)];
|
|
4274
|
-
|
|
3666
|
+
_c = {};
|
|
4275
3667
|
return [4, parseBody(output.body, context)];
|
|
4276
3668
|
case 1:
|
|
4277
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3669
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4278
3670
|
errorCode = "UnknownError";
|
|
4279
3671
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4280
3672
|
_b = errorCode;
|
|
@@ -4285,28 +3677,18 @@ var deserializeAws_json1_1ListVirtualInterfaceTestHistoryCommandError = function
|
|
|
4285
3677
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
4286
3678
|
}
|
|
4287
3679
|
return [3, 6];
|
|
4288
|
-
case 2:
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
case
|
|
4292
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4293
|
-
return [3, 7];
|
|
4294
|
-
case 4:
|
|
4295
|
-
_d = [{}];
|
|
4296
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4297
|
-
case 5:
|
|
4298
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4299
|
-
return [3, 7];
|
|
3680
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3681
|
+
case 3: throw _d.sent();
|
|
3682
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3683
|
+
case 5: throw _d.sent();
|
|
4300
3684
|
case 6:
|
|
4301
3685
|
parsedBody = parsedOutput.body;
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
response
|
|
4308
|
-
delete response.Message;
|
|
4309
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3686
|
+
response = new __BaseException({
|
|
3687
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3688
|
+
$fault: "client",
|
|
3689
|
+
$metadata: deserializeMetadata(output),
|
|
3690
|
+
});
|
|
3691
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4310
3692
|
}
|
|
4311
3693
|
});
|
|
4312
3694
|
}); };
|
|
@@ -4329,16 +3711,16 @@ export var deserializeAws_json1_1StartBgpFailoverTestCommand = function (output,
|
|
|
4329
3711
|
});
|
|
4330
3712
|
}); };
|
|
4331
3713
|
var deserializeAws_json1_1StartBgpFailoverTestCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4332
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4333
|
-
var
|
|
4334
|
-
return __generator(this, function (
|
|
4335
|
-
switch (
|
|
3714
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3715
|
+
var _c;
|
|
3716
|
+
return __generator(this, function (_d) {
|
|
3717
|
+
switch (_d.label) {
|
|
4336
3718
|
case 0:
|
|
4337
3719
|
_a = [__assign({}, output)];
|
|
4338
|
-
|
|
3720
|
+
_c = {};
|
|
4339
3721
|
return [4, parseBody(output.body, context)];
|
|
4340
3722
|
case 1:
|
|
4341
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3723
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4342
3724
|
errorCode = "UnknownError";
|
|
4343
3725
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4344
3726
|
_b = errorCode;
|
|
@@ -4349,28 +3731,18 @@ var deserializeAws_json1_1StartBgpFailoverTestCommandError = function (output, c
|
|
|
4349
3731
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
4350
3732
|
}
|
|
4351
3733
|
return [3, 6];
|
|
4352
|
-
case 2:
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
case
|
|
4356
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4357
|
-
return [3, 7];
|
|
4358
|
-
case 4:
|
|
4359
|
-
_d = [{}];
|
|
4360
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4361
|
-
case 5:
|
|
4362
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4363
|
-
return [3, 7];
|
|
3734
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3735
|
+
case 3: throw _d.sent();
|
|
3736
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3737
|
+
case 5: throw _d.sent();
|
|
4364
3738
|
case 6:
|
|
4365
3739
|
parsedBody = parsedOutput.body;
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
response
|
|
4372
|
-
delete response.Message;
|
|
4373
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3740
|
+
response = new __BaseException({
|
|
3741
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3742
|
+
$fault: "client",
|
|
3743
|
+
$metadata: deserializeMetadata(output),
|
|
3744
|
+
});
|
|
3745
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4374
3746
|
}
|
|
4375
3747
|
});
|
|
4376
3748
|
}); };
|
|
@@ -4393,16 +3765,16 @@ export var deserializeAws_json1_1StopBgpFailoverTestCommand = function (output,
|
|
|
4393
3765
|
});
|
|
4394
3766
|
}); };
|
|
4395
3767
|
var deserializeAws_json1_1StopBgpFailoverTestCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4396
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4397
|
-
var
|
|
4398
|
-
return __generator(this, function (
|
|
4399
|
-
switch (
|
|
3768
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3769
|
+
var _c;
|
|
3770
|
+
return __generator(this, function (_d) {
|
|
3771
|
+
switch (_d.label) {
|
|
4400
3772
|
case 0:
|
|
4401
3773
|
_a = [__assign({}, output)];
|
|
4402
|
-
|
|
3774
|
+
_c = {};
|
|
4403
3775
|
return [4, parseBody(output.body, context)];
|
|
4404
3776
|
case 1:
|
|
4405
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3777
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4406
3778
|
errorCode = "UnknownError";
|
|
4407
3779
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4408
3780
|
_b = errorCode;
|
|
@@ -4413,28 +3785,18 @@ var deserializeAws_json1_1StopBgpFailoverTestCommandError = function (output, co
|
|
|
4413
3785
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
4414
3786
|
}
|
|
4415
3787
|
return [3, 6];
|
|
4416
|
-
case 2:
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
case
|
|
4420
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4421
|
-
return [3, 7];
|
|
4422
|
-
case 4:
|
|
4423
|
-
_d = [{}];
|
|
4424
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4425
|
-
case 5:
|
|
4426
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4427
|
-
return [3, 7];
|
|
3788
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3789
|
+
case 3: throw _d.sent();
|
|
3790
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3791
|
+
case 5: throw _d.sent();
|
|
4428
3792
|
case 6:
|
|
4429
3793
|
parsedBody = parsedOutput.body;
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
response
|
|
4436
|
-
delete response.Message;
|
|
4437
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3794
|
+
response = new __BaseException({
|
|
3795
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3796
|
+
$fault: "client",
|
|
3797
|
+
$metadata: deserializeMetadata(output),
|
|
3798
|
+
});
|
|
3799
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4438
3800
|
}
|
|
4439
3801
|
});
|
|
4440
3802
|
}); };
|
|
@@ -4457,16 +3819,16 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
4457
3819
|
});
|
|
4458
3820
|
}); };
|
|
4459
3821
|
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4460
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4461
|
-
var
|
|
4462
|
-
return __generator(this, function (
|
|
4463
|
-
switch (
|
|
3822
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3823
|
+
var _c;
|
|
3824
|
+
return __generator(this, function (_d) {
|
|
3825
|
+
switch (_d.label) {
|
|
4464
3826
|
case 0:
|
|
4465
3827
|
_a = [__assign({}, output)];
|
|
4466
|
-
|
|
3828
|
+
_c = {};
|
|
4467
3829
|
return [4, parseBody(output.body, context)];
|
|
4468
3830
|
case 1:
|
|
4469
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3831
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4470
3832
|
errorCode = "UnknownError";
|
|
4471
3833
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4472
3834
|
_b = errorCode;
|
|
@@ -4481,40 +3843,22 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
4481
3843
|
case "com.amazonaws.directconnect#TooManyTagsException": return [3, 8];
|
|
4482
3844
|
}
|
|
4483
3845
|
return [3, 10];
|
|
4484
|
-
case 2:
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
case
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
case 4
|
|
4491
|
-
|
|
4492
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4493
|
-
case 5:
|
|
4494
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4495
|
-
return [3, 11];
|
|
4496
|
-
case 6:
|
|
4497
|
-
_e = [{}];
|
|
4498
|
-
return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
4499
|
-
case 7:
|
|
4500
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4501
|
-
return [3, 11];
|
|
4502
|
-
case 8:
|
|
4503
|
-
_f = [{}];
|
|
4504
|
-
return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
4505
|
-
case 9:
|
|
4506
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4507
|
-
return [3, 11];
|
|
3846
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3847
|
+
case 3: throw _d.sent();
|
|
3848
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3849
|
+
case 5: throw _d.sent();
|
|
3850
|
+
case 6: return [4, deserializeAws_json1_1DuplicateTagKeysExceptionResponse(parsedOutput, context)];
|
|
3851
|
+
case 7: throw _d.sent();
|
|
3852
|
+
case 8: return [4, deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)];
|
|
3853
|
+
case 9: throw _d.sent();
|
|
4508
3854
|
case 10:
|
|
4509
3855
|
parsedBody = parsedOutput.body;
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
response
|
|
4516
|
-
delete response.Message;
|
|
4517
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3856
|
+
response = new __BaseException({
|
|
3857
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3858
|
+
$fault: "client",
|
|
3859
|
+
$metadata: deserializeMetadata(output),
|
|
3860
|
+
});
|
|
3861
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4518
3862
|
}
|
|
4519
3863
|
});
|
|
4520
3864
|
}); };
|
|
@@ -4537,16 +3881,16 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
4537
3881
|
});
|
|
4538
3882
|
}); };
|
|
4539
3883
|
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4540
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4541
|
-
var
|
|
4542
|
-
return __generator(this, function (
|
|
4543
|
-
switch (
|
|
3884
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3885
|
+
var _c;
|
|
3886
|
+
return __generator(this, function (_d) {
|
|
3887
|
+
switch (_d.label) {
|
|
4544
3888
|
case 0:
|
|
4545
3889
|
_a = [__assign({}, output)];
|
|
4546
|
-
|
|
3890
|
+
_c = {};
|
|
4547
3891
|
return [4, parseBody(output.body, context)];
|
|
4548
3892
|
case 1:
|
|
4549
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3893
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4550
3894
|
errorCode = "UnknownError";
|
|
4551
3895
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4552
3896
|
_b = errorCode;
|
|
@@ -4557,28 +3901,18 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
4557
3901
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
4558
3902
|
}
|
|
4559
3903
|
return [3, 6];
|
|
4560
|
-
case 2:
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
case
|
|
4564
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4565
|
-
return [3, 7];
|
|
4566
|
-
case 4:
|
|
4567
|
-
_d = [{}];
|
|
4568
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4569
|
-
case 5:
|
|
4570
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4571
|
-
return [3, 7];
|
|
3904
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3905
|
+
case 3: throw _d.sent();
|
|
3906
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3907
|
+
case 5: throw _d.sent();
|
|
4572
3908
|
case 6:
|
|
4573
3909
|
parsedBody = parsedOutput.body;
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
response
|
|
4580
|
-
delete response.Message;
|
|
4581
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3910
|
+
response = new __BaseException({
|
|
3911
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3912
|
+
$fault: "client",
|
|
3913
|
+
$metadata: deserializeMetadata(output),
|
|
3914
|
+
});
|
|
3915
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4582
3916
|
}
|
|
4583
3917
|
});
|
|
4584
3918
|
}); };
|
|
@@ -4601,16 +3935,16 @@ export var deserializeAws_json1_1UpdateConnectionCommand = function (output, con
|
|
|
4601
3935
|
});
|
|
4602
3936
|
}); };
|
|
4603
3937
|
var deserializeAws_json1_1UpdateConnectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4604
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4605
|
-
var
|
|
4606
|
-
return __generator(this, function (
|
|
4607
|
-
switch (
|
|
3938
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3939
|
+
var _c;
|
|
3940
|
+
return __generator(this, function (_d) {
|
|
3941
|
+
switch (_d.label) {
|
|
4608
3942
|
case 0:
|
|
4609
3943
|
_a = [__assign({}, output)];
|
|
4610
|
-
|
|
3944
|
+
_c = {};
|
|
4611
3945
|
return [4, parseBody(output.body, context)];
|
|
4612
3946
|
case 1:
|
|
4613
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3947
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4614
3948
|
errorCode = "UnknownError";
|
|
4615
3949
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4616
3950
|
_b = errorCode;
|
|
@@ -4621,28 +3955,18 @@ var deserializeAws_json1_1UpdateConnectionCommandError = function (output, conte
|
|
|
4621
3955
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
4622
3956
|
}
|
|
4623
3957
|
return [3, 6];
|
|
4624
|
-
case 2:
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
case
|
|
4628
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4629
|
-
return [3, 7];
|
|
4630
|
-
case 4:
|
|
4631
|
-
_d = [{}];
|
|
4632
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4633
|
-
case 5:
|
|
4634
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4635
|
-
return [3, 7];
|
|
3958
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
3959
|
+
case 3: throw _d.sent();
|
|
3960
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
3961
|
+
case 5: throw _d.sent();
|
|
4636
3962
|
case 6:
|
|
4637
3963
|
parsedBody = parsedOutput.body;
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
response
|
|
4644
|
-
delete response.Message;
|
|
4645
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3964
|
+
response = new __BaseException({
|
|
3965
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3966
|
+
$fault: "client",
|
|
3967
|
+
$metadata: deserializeMetadata(output),
|
|
3968
|
+
});
|
|
3969
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4646
3970
|
}
|
|
4647
3971
|
});
|
|
4648
3972
|
}); };
|
|
@@ -4665,16 +3989,16 @@ export var deserializeAws_json1_1UpdateDirectConnectGatewayCommand = function (o
|
|
|
4665
3989
|
});
|
|
4666
3990
|
}); };
|
|
4667
3991
|
var deserializeAws_json1_1UpdateDirectConnectGatewayCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4668
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4669
|
-
var
|
|
4670
|
-
return __generator(this, function (
|
|
4671
|
-
switch (
|
|
3992
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3993
|
+
var _c;
|
|
3994
|
+
return __generator(this, function (_d) {
|
|
3995
|
+
switch (_d.label) {
|
|
4672
3996
|
case 0:
|
|
4673
3997
|
_a = [__assign({}, output)];
|
|
4674
|
-
|
|
3998
|
+
_c = {};
|
|
4675
3999
|
return [4, parseBody(output.body, context)];
|
|
4676
4000
|
case 1:
|
|
4677
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4001
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4678
4002
|
errorCode = "UnknownError";
|
|
4679
4003
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4680
4004
|
_b = errorCode;
|
|
@@ -4685,28 +4009,18 @@ var deserializeAws_json1_1UpdateDirectConnectGatewayCommandError = function (out
|
|
|
4685
4009
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
4686
4010
|
}
|
|
4687
4011
|
return [3, 6];
|
|
4688
|
-
case 2:
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
case
|
|
4692
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4693
|
-
return [3, 7];
|
|
4694
|
-
case 4:
|
|
4695
|
-
_d = [{}];
|
|
4696
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4697
|
-
case 5:
|
|
4698
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4699
|
-
return [3, 7];
|
|
4012
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
4013
|
+
case 3: throw _d.sent();
|
|
4014
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4015
|
+
case 5: throw _d.sent();
|
|
4700
4016
|
case 6:
|
|
4701
4017
|
parsedBody = parsedOutput.body;
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
response
|
|
4708
|
-
delete response.Message;
|
|
4709
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4018
|
+
response = new __BaseException({
|
|
4019
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4020
|
+
$fault: "client",
|
|
4021
|
+
$metadata: deserializeMetadata(output),
|
|
4022
|
+
});
|
|
4023
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4710
4024
|
}
|
|
4711
4025
|
});
|
|
4712
4026
|
}); };
|
|
@@ -4729,16 +4043,16 @@ export var deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommand =
|
|
|
4729
4043
|
});
|
|
4730
4044
|
}); };
|
|
4731
4045
|
var deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4732
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4733
|
-
var
|
|
4734
|
-
return __generator(this, function (
|
|
4735
|
-
switch (
|
|
4046
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4047
|
+
var _c;
|
|
4048
|
+
return __generator(this, function (_d) {
|
|
4049
|
+
switch (_d.label) {
|
|
4736
4050
|
case 0:
|
|
4737
4051
|
_a = [__assign({}, output)];
|
|
4738
|
-
|
|
4052
|
+
_c = {};
|
|
4739
4053
|
return [4, parseBody(output.body, context)];
|
|
4740
4054
|
case 1:
|
|
4741
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4055
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4742
4056
|
errorCode = "UnknownError";
|
|
4743
4057
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4744
4058
|
_b = errorCode;
|
|
@@ -4749,28 +4063,18 @@ var deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommandError = fu
|
|
|
4749
4063
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
4750
4064
|
}
|
|
4751
4065
|
return [3, 6];
|
|
4752
|
-
case 2:
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
case
|
|
4756
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4757
|
-
return [3, 7];
|
|
4758
|
-
case 4:
|
|
4759
|
-
_d = [{}];
|
|
4760
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4761
|
-
case 5:
|
|
4762
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4763
|
-
return [3, 7];
|
|
4066
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
4067
|
+
case 3: throw _d.sent();
|
|
4068
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4069
|
+
case 5: throw _d.sent();
|
|
4764
4070
|
case 6:
|
|
4765
4071
|
parsedBody = parsedOutput.body;
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
response
|
|
4772
|
-
delete response.Message;
|
|
4773
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4072
|
+
response = new __BaseException({
|
|
4073
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4074
|
+
$fault: "client",
|
|
4075
|
+
$metadata: deserializeMetadata(output),
|
|
4076
|
+
});
|
|
4077
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4774
4078
|
}
|
|
4775
4079
|
});
|
|
4776
4080
|
}); };
|
|
@@ -4793,16 +4097,16 @@ export var deserializeAws_json1_1UpdateLagCommand = function (output, context) {
|
|
|
4793
4097
|
});
|
|
4794
4098
|
}); };
|
|
4795
4099
|
var deserializeAws_json1_1UpdateLagCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4796
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4797
|
-
var
|
|
4798
|
-
return __generator(this, function (
|
|
4799
|
-
switch (
|
|
4100
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4101
|
+
var _c;
|
|
4102
|
+
return __generator(this, function (_d) {
|
|
4103
|
+
switch (_d.label) {
|
|
4800
4104
|
case 0:
|
|
4801
4105
|
_a = [__assign({}, output)];
|
|
4802
|
-
|
|
4106
|
+
_c = {};
|
|
4803
4107
|
return [4, parseBody(output.body, context)];
|
|
4804
4108
|
case 1:
|
|
4805
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4109
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4806
4110
|
errorCode = "UnknownError";
|
|
4807
4111
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4808
4112
|
_b = errorCode;
|
|
@@ -4813,28 +4117,18 @@ var deserializeAws_json1_1UpdateLagCommandError = function (output, context) { r
|
|
|
4813
4117
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
4814
4118
|
}
|
|
4815
4119
|
return [3, 6];
|
|
4816
|
-
case 2:
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
case
|
|
4820
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4821
|
-
return [3, 7];
|
|
4822
|
-
case 4:
|
|
4823
|
-
_d = [{}];
|
|
4824
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4825
|
-
case 5:
|
|
4826
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4827
|
-
return [3, 7];
|
|
4120
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
4121
|
+
case 3: throw _d.sent();
|
|
4122
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4123
|
+
case 5: throw _d.sent();
|
|
4828
4124
|
case 6:
|
|
4829
4125
|
parsedBody = parsedOutput.body;
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
response
|
|
4836
|
-
delete response.Message;
|
|
4837
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4126
|
+
response = new __BaseException({
|
|
4127
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4128
|
+
$fault: "client",
|
|
4129
|
+
$metadata: deserializeMetadata(output),
|
|
4130
|
+
});
|
|
4131
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4838
4132
|
}
|
|
4839
4133
|
});
|
|
4840
4134
|
}); };
|
|
@@ -4857,16 +4151,16 @@ export var deserializeAws_json1_1UpdateVirtualInterfaceAttributesCommand = funct
|
|
|
4857
4151
|
});
|
|
4858
4152
|
}); };
|
|
4859
4153
|
var deserializeAws_json1_1UpdateVirtualInterfaceAttributesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4860
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4861
|
-
var
|
|
4862
|
-
return __generator(this, function (
|
|
4863
|
-
switch (
|
|
4154
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
4155
|
+
var _c;
|
|
4156
|
+
return __generator(this, function (_d) {
|
|
4157
|
+
switch (_d.label) {
|
|
4864
4158
|
case 0:
|
|
4865
4159
|
_a = [__assign({}, output)];
|
|
4866
|
-
|
|
4160
|
+
_c = {};
|
|
4867
4161
|
return [4, parseBody(output.body, context)];
|
|
4868
4162
|
case 1:
|
|
4869
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
4163
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4870
4164
|
errorCode = "UnknownError";
|
|
4871
4165
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4872
4166
|
_b = errorCode;
|
|
@@ -4877,65 +4171,55 @@ var deserializeAws_json1_1UpdateVirtualInterfaceAttributesCommandError = functio
|
|
|
4877
4171
|
case "com.amazonaws.directconnect#DirectConnectServerException": return [3, 4];
|
|
4878
4172
|
}
|
|
4879
4173
|
return [3, 6];
|
|
4880
|
-
case 2:
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
case
|
|
4884
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4885
|
-
return [3, 7];
|
|
4886
|
-
case 4:
|
|
4887
|
-
_d = [{}];
|
|
4888
|
-
return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4889
|
-
case 5:
|
|
4890
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4891
|
-
return [3, 7];
|
|
4174
|
+
case 2: return [4, deserializeAws_json1_1DirectConnectClientExceptionResponse(parsedOutput, context)];
|
|
4175
|
+
case 3: throw _d.sent();
|
|
4176
|
+
case 4: return [4, deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context)];
|
|
4177
|
+
case 5: throw _d.sent();
|
|
4892
4178
|
case 6:
|
|
4893
4179
|
parsedBody = parsedOutput.body;
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
response
|
|
4900
|
-
delete response.Message;
|
|
4901
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4180
|
+
response = new __BaseException({
|
|
4181
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4182
|
+
$fault: "client",
|
|
4183
|
+
$metadata: deserializeMetadata(output),
|
|
4184
|
+
});
|
|
4185
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4902
4186
|
}
|
|
4903
4187
|
});
|
|
4904
4188
|
}); };
|
|
4905
4189
|
var deserializeAws_json1_1DirectConnectClientExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4906
|
-
var body, deserialized,
|
|
4190
|
+
var body, deserialized, exception;
|
|
4907
4191
|
return __generator(this, function (_a) {
|
|
4908
4192
|
body = parsedOutput.body;
|
|
4909
4193
|
deserialized = deserializeAws_json1_1DirectConnectClientException(body, context);
|
|
4910
|
-
|
|
4911
|
-
return [2,
|
|
4194
|
+
exception = new DirectConnectClientException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4195
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4912
4196
|
});
|
|
4913
4197
|
}); };
|
|
4914
4198
|
var deserializeAws_json1_1DirectConnectServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4915
|
-
var body, deserialized,
|
|
4199
|
+
var body, deserialized, exception;
|
|
4916
4200
|
return __generator(this, function (_a) {
|
|
4917
4201
|
body = parsedOutput.body;
|
|
4918
4202
|
deserialized = deserializeAws_json1_1DirectConnectServerException(body, context);
|
|
4919
|
-
|
|
4920
|
-
return [2,
|
|
4203
|
+
exception = new DirectConnectServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4204
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4921
4205
|
});
|
|
4922
4206
|
}); };
|
|
4923
4207
|
var deserializeAws_json1_1DuplicateTagKeysExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4924
|
-
var body, deserialized,
|
|
4208
|
+
var body, deserialized, exception;
|
|
4925
4209
|
return __generator(this, function (_a) {
|
|
4926
4210
|
body = parsedOutput.body;
|
|
4927
4211
|
deserialized = deserializeAws_json1_1DuplicateTagKeysException(body, context);
|
|
4928
|
-
|
|
4929
|
-
return [2,
|
|
4212
|
+
exception = new DuplicateTagKeysException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4213
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4930
4214
|
});
|
|
4931
4215
|
}); };
|
|
4932
4216
|
var deserializeAws_json1_1TooManyTagsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4933
|
-
var body, deserialized,
|
|
4217
|
+
var body, deserialized, exception;
|
|
4934
4218
|
return __generator(this, function (_a) {
|
|
4935
4219
|
body = parsedOutput.body;
|
|
4936
4220
|
deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
4937
|
-
|
|
4938
|
-
return [2,
|
|
4221
|
+
exception = new TooManyTagsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
4222
|
+
return [2, __decorateServiceException(exception, body)];
|
|
4939
4223
|
});
|
|
4940
4224
|
}); };
|
|
4941
4225
|
var serializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalRequest = function (input, context) {
|
|
@@ -5336,7 +4620,7 @@ var deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalResult =
|
|
|
5336
4620
|
};
|
|
5337
4621
|
};
|
|
5338
4622
|
var deserializeAws_json1_1AgreementList = function (output, context) {
|
|
5339
|
-
|
|
4623
|
+
var retVal = (output || [])
|
|
5340
4624
|
.filter(function (e) { return e != null; })
|
|
5341
4625
|
.map(function (entry) {
|
|
5342
4626
|
if (entry === null) {
|
|
@@ -5344,6 +4628,7 @@ var deserializeAws_json1_1AgreementList = function (output, context) {
|
|
|
5344
4628
|
}
|
|
5345
4629
|
return deserializeAws_json1_1CustomerAgreement(entry, context);
|
|
5346
4630
|
});
|
|
4631
|
+
return retVal;
|
|
5347
4632
|
};
|
|
5348
4633
|
var deserializeAws_json1_1AllocateTransitVirtualInterfaceResult = function (output, context) {
|
|
5349
4634
|
return {
|
|
@@ -5369,7 +4654,7 @@ var deserializeAws_json1_1AssociateMacSecKeyResponse = function (output, context
|
|
|
5369
4654
|
};
|
|
5370
4655
|
};
|
|
5371
4656
|
var deserializeAws_json1_1AvailableMacSecPortSpeeds = function (output, context) {
|
|
5372
|
-
|
|
4657
|
+
var retVal = (output || [])
|
|
5373
4658
|
.filter(function (e) { return e != null; })
|
|
5374
4659
|
.map(function (entry) {
|
|
5375
4660
|
if (entry === null) {
|
|
@@ -5377,9 +4662,10 @@ var deserializeAws_json1_1AvailableMacSecPortSpeeds = function (output, context)
|
|
|
5377
4662
|
}
|
|
5378
4663
|
return __expectString(entry);
|
|
5379
4664
|
});
|
|
4665
|
+
return retVal;
|
|
5380
4666
|
};
|
|
5381
4667
|
var deserializeAws_json1_1AvailablePortSpeeds = function (output, context) {
|
|
5382
|
-
|
|
4668
|
+
var retVal = (output || [])
|
|
5383
4669
|
.filter(function (e) { return e != null; })
|
|
5384
4670
|
.map(function (entry) {
|
|
5385
4671
|
if (entry === null) {
|
|
@@ -5387,6 +4673,7 @@ var deserializeAws_json1_1AvailablePortSpeeds = function (output, context) {
|
|
|
5387
4673
|
}
|
|
5388
4674
|
return __expectString(entry);
|
|
5389
4675
|
});
|
|
4676
|
+
return retVal;
|
|
5390
4677
|
};
|
|
5391
4678
|
var deserializeAws_json1_1BGPPeer = function (output, context) {
|
|
5392
4679
|
return {
|
|
@@ -5403,7 +4690,7 @@ var deserializeAws_json1_1BGPPeer = function (output, context) {
|
|
|
5403
4690
|
};
|
|
5404
4691
|
};
|
|
5405
4692
|
var deserializeAws_json1_1BGPPeerIdList = function (output, context) {
|
|
5406
|
-
|
|
4693
|
+
var retVal = (output || [])
|
|
5407
4694
|
.filter(function (e) { return e != null; })
|
|
5408
4695
|
.map(function (entry) {
|
|
5409
4696
|
if (entry === null) {
|
|
@@ -5411,9 +4698,10 @@ var deserializeAws_json1_1BGPPeerIdList = function (output, context) {
|
|
|
5411
4698
|
}
|
|
5412
4699
|
return __expectString(entry);
|
|
5413
4700
|
});
|
|
4701
|
+
return retVal;
|
|
5414
4702
|
};
|
|
5415
4703
|
var deserializeAws_json1_1BGPPeerList = function (output, context) {
|
|
5416
|
-
|
|
4704
|
+
var retVal = (output || [])
|
|
5417
4705
|
.filter(function (e) { return e != null; })
|
|
5418
4706
|
.map(function (entry) {
|
|
5419
4707
|
if (entry === null) {
|
|
@@ -5421,6 +4709,7 @@ var deserializeAws_json1_1BGPPeerList = function (output, context) {
|
|
|
5421
4709
|
}
|
|
5422
4710
|
return deserializeAws_json1_1BGPPeer(entry, context);
|
|
5423
4711
|
});
|
|
4712
|
+
return retVal;
|
|
5424
4713
|
};
|
|
5425
4714
|
var deserializeAws_json1_1ConfirmConnectionResponse = function (output, context) {
|
|
5426
4715
|
return {
|
|
@@ -5480,7 +4769,7 @@ var deserializeAws_json1_1Connection = function (output, context) {
|
|
|
5480
4769
|
};
|
|
5481
4770
|
};
|
|
5482
4771
|
var deserializeAws_json1_1ConnectionList = function (output, context) {
|
|
5483
|
-
|
|
4772
|
+
var retVal = (output || [])
|
|
5484
4773
|
.filter(function (e) { return e != null; })
|
|
5485
4774
|
.map(function (entry) {
|
|
5486
4775
|
if (entry === null) {
|
|
@@ -5488,6 +4777,7 @@ var deserializeAws_json1_1ConnectionList = function (output, context) {
|
|
|
5488
4777
|
}
|
|
5489
4778
|
return deserializeAws_json1_1Connection(entry, context);
|
|
5490
4779
|
});
|
|
4780
|
+
return retVal;
|
|
5491
4781
|
};
|
|
5492
4782
|
var deserializeAws_json1_1Connections = function (output, context) {
|
|
5493
4783
|
return {
|
|
@@ -5680,7 +4970,7 @@ var deserializeAws_json1_1DirectConnectGatewayAssociation = function (output, co
|
|
|
5680
4970
|
};
|
|
5681
4971
|
};
|
|
5682
4972
|
var deserializeAws_json1_1DirectConnectGatewayAssociationList = function (output, context) {
|
|
5683
|
-
|
|
4973
|
+
var retVal = (output || [])
|
|
5684
4974
|
.filter(function (e) { return e != null; })
|
|
5685
4975
|
.map(function (entry) {
|
|
5686
4976
|
if (entry === null) {
|
|
@@ -5688,6 +4978,7 @@ var deserializeAws_json1_1DirectConnectGatewayAssociationList = function (output
|
|
|
5688
4978
|
}
|
|
5689
4979
|
return deserializeAws_json1_1DirectConnectGatewayAssociation(entry, context);
|
|
5690
4980
|
});
|
|
4981
|
+
return retVal;
|
|
5691
4982
|
};
|
|
5692
4983
|
var deserializeAws_json1_1DirectConnectGatewayAssociationProposal = function (output, context) {
|
|
5693
4984
|
return {
|
|
@@ -5709,7 +5000,7 @@ var deserializeAws_json1_1DirectConnectGatewayAssociationProposal = function (ou
|
|
|
5709
5000
|
};
|
|
5710
5001
|
};
|
|
5711
5002
|
var deserializeAws_json1_1DirectConnectGatewayAssociationProposalList = function (output, context) {
|
|
5712
|
-
|
|
5003
|
+
var retVal = (output || [])
|
|
5713
5004
|
.filter(function (e) { return e != null; })
|
|
5714
5005
|
.map(function (entry) {
|
|
5715
5006
|
if (entry === null) {
|
|
@@ -5717,6 +5008,7 @@ var deserializeAws_json1_1DirectConnectGatewayAssociationProposalList = function
|
|
|
5717
5008
|
}
|
|
5718
5009
|
return deserializeAws_json1_1DirectConnectGatewayAssociationProposal(entry, context);
|
|
5719
5010
|
});
|
|
5011
|
+
return retVal;
|
|
5720
5012
|
};
|
|
5721
5013
|
var deserializeAws_json1_1DirectConnectGatewayAttachment = function (output, context) {
|
|
5722
5014
|
return {
|
|
@@ -5730,7 +5022,7 @@ var deserializeAws_json1_1DirectConnectGatewayAttachment = function (output, con
|
|
|
5730
5022
|
};
|
|
5731
5023
|
};
|
|
5732
5024
|
var deserializeAws_json1_1DirectConnectGatewayAttachmentList = function (output, context) {
|
|
5733
|
-
|
|
5025
|
+
var retVal = (output || [])
|
|
5734
5026
|
.filter(function (e) { return e != null; })
|
|
5735
5027
|
.map(function (entry) {
|
|
5736
5028
|
if (entry === null) {
|
|
@@ -5738,9 +5030,10 @@ var deserializeAws_json1_1DirectConnectGatewayAttachmentList = function (output,
|
|
|
5738
5030
|
}
|
|
5739
5031
|
return deserializeAws_json1_1DirectConnectGatewayAttachment(entry, context);
|
|
5740
5032
|
});
|
|
5033
|
+
return retVal;
|
|
5741
5034
|
};
|
|
5742
5035
|
var deserializeAws_json1_1DirectConnectGatewayList = function (output, context) {
|
|
5743
|
-
|
|
5036
|
+
var retVal = (output || [])
|
|
5744
5037
|
.filter(function (e) { return e != null; })
|
|
5745
5038
|
.map(function (entry) {
|
|
5746
5039
|
if (entry === null) {
|
|
@@ -5748,6 +5041,7 @@ var deserializeAws_json1_1DirectConnectGatewayList = function (output, context)
|
|
|
5748
5041
|
}
|
|
5749
5042
|
return deserializeAws_json1_1DirectConnectGateway(entry, context);
|
|
5750
5043
|
});
|
|
5044
|
+
return retVal;
|
|
5751
5045
|
};
|
|
5752
5046
|
var deserializeAws_json1_1DirectConnectServerException = function (output, context) {
|
|
5753
5047
|
return {
|
|
@@ -5791,7 +5085,7 @@ var deserializeAws_json1_1Interconnect = function (output, context) {
|
|
|
5791
5085
|
};
|
|
5792
5086
|
};
|
|
5793
5087
|
var deserializeAws_json1_1InterconnectList = function (output, context) {
|
|
5794
|
-
|
|
5088
|
+
var retVal = (output || [])
|
|
5795
5089
|
.filter(function (e) { return e != null; })
|
|
5796
5090
|
.map(function (entry) {
|
|
5797
5091
|
if (entry === null) {
|
|
@@ -5799,6 +5093,7 @@ var deserializeAws_json1_1InterconnectList = function (output, context) {
|
|
|
5799
5093
|
}
|
|
5800
5094
|
return deserializeAws_json1_1Interconnect(entry, context);
|
|
5801
5095
|
});
|
|
5096
|
+
return retVal;
|
|
5802
5097
|
};
|
|
5803
5098
|
var deserializeAws_json1_1Interconnects = function (output, context) {
|
|
5804
5099
|
return {
|
|
@@ -5839,7 +5134,7 @@ var deserializeAws_json1_1Lag = function (output, context) {
|
|
|
5839
5134
|
};
|
|
5840
5135
|
};
|
|
5841
5136
|
var deserializeAws_json1_1LagList = function (output, context) {
|
|
5842
|
-
|
|
5137
|
+
var retVal = (output || [])
|
|
5843
5138
|
.filter(function (e) { return e != null; })
|
|
5844
5139
|
.map(function (entry) {
|
|
5845
5140
|
if (entry === null) {
|
|
@@ -5847,6 +5142,7 @@ var deserializeAws_json1_1LagList = function (output, context) {
|
|
|
5847
5142
|
}
|
|
5848
5143
|
return deserializeAws_json1_1Lag(entry, context);
|
|
5849
5144
|
});
|
|
5145
|
+
return retVal;
|
|
5850
5146
|
};
|
|
5851
5147
|
var deserializeAws_json1_1Lags = function (output, context) {
|
|
5852
5148
|
return {
|
|
@@ -5888,7 +5184,7 @@ var deserializeAws_json1_1Location = function (output, context) {
|
|
|
5888
5184
|
};
|
|
5889
5185
|
};
|
|
5890
5186
|
var deserializeAws_json1_1LocationList = function (output, context) {
|
|
5891
|
-
|
|
5187
|
+
var retVal = (output || [])
|
|
5892
5188
|
.filter(function (e) { return e != null; })
|
|
5893
5189
|
.map(function (entry) {
|
|
5894
5190
|
if (entry === null) {
|
|
@@ -5896,6 +5192,7 @@ var deserializeAws_json1_1LocationList = function (output, context) {
|
|
|
5896
5192
|
}
|
|
5897
5193
|
return deserializeAws_json1_1Location(entry, context);
|
|
5898
5194
|
});
|
|
5195
|
+
return retVal;
|
|
5899
5196
|
};
|
|
5900
5197
|
var deserializeAws_json1_1Locations = function (output, context) {
|
|
5901
5198
|
return {
|
|
@@ -5913,7 +5210,7 @@ var deserializeAws_json1_1MacSecKey = function (output, context) {
|
|
|
5913
5210
|
};
|
|
5914
5211
|
};
|
|
5915
5212
|
var deserializeAws_json1_1MacSecKeyList = function (output, context) {
|
|
5916
|
-
|
|
5213
|
+
var retVal = (output || [])
|
|
5917
5214
|
.filter(function (e) { return e != null; })
|
|
5918
5215
|
.map(function (entry) {
|
|
5919
5216
|
if (entry === null) {
|
|
@@ -5921,9 +5218,10 @@ var deserializeAws_json1_1MacSecKeyList = function (output, context) {
|
|
|
5921
5218
|
}
|
|
5922
5219
|
return deserializeAws_json1_1MacSecKey(entry, context);
|
|
5923
5220
|
});
|
|
5221
|
+
return retVal;
|
|
5924
5222
|
};
|
|
5925
5223
|
var deserializeAws_json1_1ProviderList = function (output, context) {
|
|
5926
|
-
|
|
5224
|
+
var retVal = (output || [])
|
|
5927
5225
|
.filter(function (e) { return e != null; })
|
|
5928
5226
|
.map(function (entry) {
|
|
5929
5227
|
if (entry === null) {
|
|
@@ -5931,6 +5229,7 @@ var deserializeAws_json1_1ProviderList = function (output, context) {
|
|
|
5931
5229
|
}
|
|
5932
5230
|
return __expectString(entry);
|
|
5933
5231
|
});
|
|
5232
|
+
return retVal;
|
|
5934
5233
|
};
|
|
5935
5234
|
var deserializeAws_json1_1ResourceTag = function (output, context) {
|
|
5936
5235
|
return {
|
|
@@ -5941,7 +5240,7 @@ var deserializeAws_json1_1ResourceTag = function (output, context) {
|
|
|
5941
5240
|
};
|
|
5942
5241
|
};
|
|
5943
5242
|
var deserializeAws_json1_1ResourceTagList = function (output, context) {
|
|
5944
|
-
|
|
5243
|
+
var retVal = (output || [])
|
|
5945
5244
|
.filter(function (e) { return e != null; })
|
|
5946
5245
|
.map(function (entry) {
|
|
5947
5246
|
if (entry === null) {
|
|
@@ -5949,6 +5248,7 @@ var deserializeAws_json1_1ResourceTagList = function (output, context) {
|
|
|
5949
5248
|
}
|
|
5950
5249
|
return deserializeAws_json1_1ResourceTag(entry, context);
|
|
5951
5250
|
});
|
|
5251
|
+
return retVal;
|
|
5952
5252
|
};
|
|
5953
5253
|
var deserializeAws_json1_1RouteFilterPrefix = function (output, context) {
|
|
5954
5254
|
return {
|
|
@@ -5956,7 +5256,7 @@ var deserializeAws_json1_1RouteFilterPrefix = function (output, context) {
|
|
|
5956
5256
|
};
|
|
5957
5257
|
};
|
|
5958
5258
|
var deserializeAws_json1_1RouteFilterPrefixList = function (output, context) {
|
|
5959
|
-
|
|
5259
|
+
var retVal = (output || [])
|
|
5960
5260
|
.filter(function (e) { return e != null; })
|
|
5961
5261
|
.map(function (entry) {
|
|
5962
5262
|
if (entry === null) {
|
|
@@ -5964,6 +5264,7 @@ var deserializeAws_json1_1RouteFilterPrefixList = function (output, context) {
|
|
|
5964
5264
|
}
|
|
5965
5265
|
return deserializeAws_json1_1RouteFilterPrefix(entry, context);
|
|
5966
5266
|
});
|
|
5267
|
+
return retVal;
|
|
5967
5268
|
};
|
|
5968
5269
|
var deserializeAws_json1_1RouterType = function (output, context) {
|
|
5969
5270
|
return {
|
|
@@ -5996,7 +5297,7 @@ var deserializeAws_json1_1Tag = function (output, context) {
|
|
|
5996
5297
|
};
|
|
5997
5298
|
};
|
|
5998
5299
|
var deserializeAws_json1_1TagList = function (output, context) {
|
|
5999
|
-
|
|
5300
|
+
var retVal = (output || [])
|
|
6000
5301
|
.filter(function (e) { return e != null; })
|
|
6001
5302
|
.map(function (entry) {
|
|
6002
5303
|
if (entry === null) {
|
|
@@ -6004,6 +5305,7 @@ var deserializeAws_json1_1TagList = function (output, context) {
|
|
|
6004
5305
|
}
|
|
6005
5306
|
return deserializeAws_json1_1Tag(entry, context);
|
|
6006
5307
|
});
|
|
5308
|
+
return retVal;
|
|
6007
5309
|
};
|
|
6008
5310
|
var deserializeAws_json1_1TagResourceResponse = function (output, context) {
|
|
6009
5311
|
return {};
|
|
@@ -6037,7 +5339,7 @@ var deserializeAws_json1_1VirtualGateway = function (output, context) {
|
|
|
6037
5339
|
};
|
|
6038
5340
|
};
|
|
6039
5341
|
var deserializeAws_json1_1VirtualGatewayList = function (output, context) {
|
|
6040
|
-
|
|
5342
|
+
var retVal = (output || [])
|
|
6041
5343
|
.filter(function (e) { return e != null; })
|
|
6042
5344
|
.map(function (entry) {
|
|
6043
5345
|
if (entry === null) {
|
|
@@ -6045,6 +5347,7 @@ var deserializeAws_json1_1VirtualGatewayList = function (output, context) {
|
|
|
6045
5347
|
}
|
|
6046
5348
|
return deserializeAws_json1_1VirtualGateway(entry, context);
|
|
6047
5349
|
});
|
|
5350
|
+
return retVal;
|
|
6048
5351
|
};
|
|
6049
5352
|
var deserializeAws_json1_1VirtualGateways = function (output, context) {
|
|
6050
5353
|
return {
|
|
@@ -6090,7 +5393,7 @@ var deserializeAws_json1_1VirtualInterface = function (output, context) {
|
|
|
6090
5393
|
};
|
|
6091
5394
|
};
|
|
6092
5395
|
var deserializeAws_json1_1VirtualInterfaceList = function (output, context) {
|
|
6093
|
-
|
|
5396
|
+
var retVal = (output || [])
|
|
6094
5397
|
.filter(function (e) { return e != null; })
|
|
6095
5398
|
.map(function (entry) {
|
|
6096
5399
|
if (entry === null) {
|
|
@@ -6098,6 +5401,7 @@ var deserializeAws_json1_1VirtualInterfaceList = function (output, context) {
|
|
|
6098
5401
|
}
|
|
6099
5402
|
return deserializeAws_json1_1VirtualInterface(entry, context);
|
|
6100
5403
|
});
|
|
5404
|
+
return retVal;
|
|
6101
5405
|
};
|
|
6102
5406
|
var deserializeAws_json1_1VirtualInterfaces = function (output, context) {
|
|
6103
5407
|
return {
|
|
@@ -6125,7 +5429,7 @@ var deserializeAws_json1_1VirtualInterfaceTestHistory = function (output, contex
|
|
|
6125
5429
|
};
|
|
6126
5430
|
};
|
|
6127
5431
|
var deserializeAws_json1_1VirtualInterfaceTestHistoryList = function (output, context) {
|
|
6128
|
-
|
|
5432
|
+
var retVal = (output || [])
|
|
6129
5433
|
.filter(function (e) { return e != null; })
|
|
6130
5434
|
.map(function (entry) {
|
|
6131
5435
|
if (entry === null) {
|
|
@@ -6133,6 +5437,7 @@ var deserializeAws_json1_1VirtualInterfaceTestHistoryList = function (output, co
|
|
|
6133
5437
|
}
|
|
6134
5438
|
return deserializeAws_json1_1VirtualInterfaceTestHistory(entry, context);
|
|
6135
5439
|
});
|
|
5440
|
+
return retVal;
|
|
6136
5441
|
};
|
|
6137
5442
|
var deserializeMetadata = function (output) {
|
|
6138
5443
|
var _a;
|