@aws-sdk/client-direct-connect 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +100 -1524
- package/dist-es/protocols/Aws_json1_1.js +92 -1516
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -772,7 +772,7 @@ var se_UpdateVirtualInterfaceAttributesCommand = /* @__PURE__ */ __name(async (i
|
|
|
772
772
|
}, "se_UpdateVirtualInterfaceAttributesCommand");
|
|
773
773
|
var de_AcceptDirectConnectGatewayAssociationProposalCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
774
774
|
if (output.statusCode >= 300) {
|
|
775
|
-
return
|
|
775
|
+
return de_CommandError(output, context);
|
|
776
776
|
}
|
|
777
777
|
const data = await parseBody(output.body, context);
|
|
778
778
|
let contents = {};
|
|
@@ -783,31 +783,9 @@ var de_AcceptDirectConnectGatewayAssociationProposalCommand = /* @__PURE__ */ __
|
|
|
783
783
|
};
|
|
784
784
|
return response;
|
|
785
785
|
}, "de_AcceptDirectConnectGatewayAssociationProposalCommand");
|
|
786
|
-
var de_AcceptDirectConnectGatewayAssociationProposalCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
787
|
-
const parsedOutput = {
|
|
788
|
-
...output,
|
|
789
|
-
body: await parseErrorBody(output.body, context)
|
|
790
|
-
};
|
|
791
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
792
|
-
switch (errorCode) {
|
|
793
|
-
case "DirectConnectClientException":
|
|
794
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
795
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
796
|
-
case "DirectConnectServerException":
|
|
797
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
798
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
799
|
-
default:
|
|
800
|
-
const parsedBody = parsedOutput.body;
|
|
801
|
-
return throwDefaultError({
|
|
802
|
-
output,
|
|
803
|
-
parsedBody,
|
|
804
|
-
errorCode
|
|
805
|
-
});
|
|
806
|
-
}
|
|
807
|
-
}, "de_AcceptDirectConnectGatewayAssociationProposalCommandError");
|
|
808
786
|
var de_AllocateConnectionOnInterconnectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
809
787
|
if (output.statusCode >= 300) {
|
|
810
|
-
return
|
|
788
|
+
return de_CommandError(output, context);
|
|
811
789
|
}
|
|
812
790
|
const data = await parseBody(output.body, context);
|
|
813
791
|
let contents = {};
|
|
@@ -818,31 +796,9 @@ var de_AllocateConnectionOnInterconnectCommand = /* @__PURE__ */ __name(async (o
|
|
|
818
796
|
};
|
|
819
797
|
return response;
|
|
820
798
|
}, "de_AllocateConnectionOnInterconnectCommand");
|
|
821
|
-
var de_AllocateConnectionOnInterconnectCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
822
|
-
const parsedOutput = {
|
|
823
|
-
...output,
|
|
824
|
-
body: await parseErrorBody(output.body, context)
|
|
825
|
-
};
|
|
826
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
827
|
-
switch (errorCode) {
|
|
828
|
-
case "DirectConnectClientException":
|
|
829
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
830
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
831
|
-
case "DirectConnectServerException":
|
|
832
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
833
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
834
|
-
default:
|
|
835
|
-
const parsedBody = parsedOutput.body;
|
|
836
|
-
return throwDefaultError({
|
|
837
|
-
output,
|
|
838
|
-
parsedBody,
|
|
839
|
-
errorCode
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
}, "de_AllocateConnectionOnInterconnectCommandError");
|
|
843
799
|
var de_AllocateHostedConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
844
800
|
if (output.statusCode >= 300) {
|
|
845
|
-
return
|
|
801
|
+
return de_CommandError(output, context);
|
|
846
802
|
}
|
|
847
803
|
const data = await parseBody(output.body, context);
|
|
848
804
|
let contents = {};
|
|
@@ -853,37 +809,9 @@ var de_AllocateHostedConnectionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
853
809
|
};
|
|
854
810
|
return response;
|
|
855
811
|
}, "de_AllocateHostedConnectionCommand");
|
|
856
|
-
var de_AllocateHostedConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
857
|
-
const parsedOutput = {
|
|
858
|
-
...output,
|
|
859
|
-
body: await parseErrorBody(output.body, context)
|
|
860
|
-
};
|
|
861
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
862
|
-
switch (errorCode) {
|
|
863
|
-
case "DirectConnectClientException":
|
|
864
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
865
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
866
|
-
case "DirectConnectServerException":
|
|
867
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
868
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
869
|
-
case "DuplicateTagKeysException":
|
|
870
|
-
case "com.amazonaws.directconnect#DuplicateTagKeysException":
|
|
871
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
872
|
-
case "TooManyTagsException":
|
|
873
|
-
case "com.amazonaws.directconnect#TooManyTagsException":
|
|
874
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
875
|
-
default:
|
|
876
|
-
const parsedBody = parsedOutput.body;
|
|
877
|
-
return throwDefaultError({
|
|
878
|
-
output,
|
|
879
|
-
parsedBody,
|
|
880
|
-
errorCode
|
|
881
|
-
});
|
|
882
|
-
}
|
|
883
|
-
}, "de_AllocateHostedConnectionCommandError");
|
|
884
812
|
var de_AllocatePrivateVirtualInterfaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
885
813
|
if (output.statusCode >= 300) {
|
|
886
|
-
return
|
|
814
|
+
return de_CommandError(output, context);
|
|
887
815
|
}
|
|
888
816
|
const data = await parseBody(output.body, context);
|
|
889
817
|
let contents = {};
|
|
@@ -894,37 +822,9 @@ var de_AllocatePrivateVirtualInterfaceCommand = /* @__PURE__ */ __name(async (ou
|
|
|
894
822
|
};
|
|
895
823
|
return response;
|
|
896
824
|
}, "de_AllocatePrivateVirtualInterfaceCommand");
|
|
897
|
-
var de_AllocatePrivateVirtualInterfaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
898
|
-
const parsedOutput = {
|
|
899
|
-
...output,
|
|
900
|
-
body: await parseErrorBody(output.body, context)
|
|
901
|
-
};
|
|
902
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
903
|
-
switch (errorCode) {
|
|
904
|
-
case "DirectConnectClientException":
|
|
905
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
906
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
907
|
-
case "DirectConnectServerException":
|
|
908
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
909
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
910
|
-
case "DuplicateTagKeysException":
|
|
911
|
-
case "com.amazonaws.directconnect#DuplicateTagKeysException":
|
|
912
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
913
|
-
case "TooManyTagsException":
|
|
914
|
-
case "com.amazonaws.directconnect#TooManyTagsException":
|
|
915
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
916
|
-
default:
|
|
917
|
-
const parsedBody = parsedOutput.body;
|
|
918
|
-
return throwDefaultError({
|
|
919
|
-
output,
|
|
920
|
-
parsedBody,
|
|
921
|
-
errorCode
|
|
922
|
-
});
|
|
923
|
-
}
|
|
924
|
-
}, "de_AllocatePrivateVirtualInterfaceCommandError");
|
|
925
825
|
var de_AllocatePublicVirtualInterfaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
926
826
|
if (output.statusCode >= 300) {
|
|
927
|
-
return
|
|
827
|
+
return de_CommandError(output, context);
|
|
928
828
|
}
|
|
929
829
|
const data = await parseBody(output.body, context);
|
|
930
830
|
let contents = {};
|
|
@@ -935,37 +835,9 @@ var de_AllocatePublicVirtualInterfaceCommand = /* @__PURE__ */ __name(async (out
|
|
|
935
835
|
};
|
|
936
836
|
return response;
|
|
937
837
|
}, "de_AllocatePublicVirtualInterfaceCommand");
|
|
938
|
-
var de_AllocatePublicVirtualInterfaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
939
|
-
const parsedOutput = {
|
|
940
|
-
...output,
|
|
941
|
-
body: await parseErrorBody(output.body, context)
|
|
942
|
-
};
|
|
943
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
944
|
-
switch (errorCode) {
|
|
945
|
-
case "DirectConnectClientException":
|
|
946
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
947
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
948
|
-
case "DirectConnectServerException":
|
|
949
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
950
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
951
|
-
case "DuplicateTagKeysException":
|
|
952
|
-
case "com.amazonaws.directconnect#DuplicateTagKeysException":
|
|
953
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
954
|
-
case "TooManyTagsException":
|
|
955
|
-
case "com.amazonaws.directconnect#TooManyTagsException":
|
|
956
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
957
|
-
default:
|
|
958
|
-
const parsedBody = parsedOutput.body;
|
|
959
|
-
return throwDefaultError({
|
|
960
|
-
output,
|
|
961
|
-
parsedBody,
|
|
962
|
-
errorCode
|
|
963
|
-
});
|
|
964
|
-
}
|
|
965
|
-
}, "de_AllocatePublicVirtualInterfaceCommandError");
|
|
966
838
|
var de_AllocateTransitVirtualInterfaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
967
839
|
if (output.statusCode >= 300) {
|
|
968
|
-
return
|
|
840
|
+
return de_CommandError(output, context);
|
|
969
841
|
}
|
|
970
842
|
const data = await parseBody(output.body, context);
|
|
971
843
|
let contents = {};
|
|
@@ -976,37 +848,9 @@ var de_AllocateTransitVirtualInterfaceCommand = /* @__PURE__ */ __name(async (ou
|
|
|
976
848
|
};
|
|
977
849
|
return response;
|
|
978
850
|
}, "de_AllocateTransitVirtualInterfaceCommand");
|
|
979
|
-
var de_AllocateTransitVirtualInterfaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
980
|
-
const parsedOutput = {
|
|
981
|
-
...output,
|
|
982
|
-
body: await parseErrorBody(output.body, context)
|
|
983
|
-
};
|
|
984
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
985
|
-
switch (errorCode) {
|
|
986
|
-
case "DirectConnectClientException":
|
|
987
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
988
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
989
|
-
case "DirectConnectServerException":
|
|
990
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
991
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
992
|
-
case "DuplicateTagKeysException":
|
|
993
|
-
case "com.amazonaws.directconnect#DuplicateTagKeysException":
|
|
994
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
995
|
-
case "TooManyTagsException":
|
|
996
|
-
case "com.amazonaws.directconnect#TooManyTagsException":
|
|
997
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
998
|
-
default:
|
|
999
|
-
const parsedBody = parsedOutput.body;
|
|
1000
|
-
return throwDefaultError({
|
|
1001
|
-
output,
|
|
1002
|
-
parsedBody,
|
|
1003
|
-
errorCode
|
|
1004
|
-
});
|
|
1005
|
-
}
|
|
1006
|
-
}, "de_AllocateTransitVirtualInterfaceCommandError");
|
|
1007
851
|
var de_AssociateConnectionWithLagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1008
852
|
if (output.statusCode >= 300) {
|
|
1009
|
-
return
|
|
853
|
+
return de_CommandError(output, context);
|
|
1010
854
|
}
|
|
1011
855
|
const data = await parseBody(output.body, context);
|
|
1012
856
|
let contents = {};
|
|
@@ -1017,31 +861,9 @@ var de_AssociateConnectionWithLagCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1017
861
|
};
|
|
1018
862
|
return response;
|
|
1019
863
|
}, "de_AssociateConnectionWithLagCommand");
|
|
1020
|
-
var de_AssociateConnectionWithLagCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1021
|
-
const parsedOutput = {
|
|
1022
|
-
...output,
|
|
1023
|
-
body: await parseErrorBody(output.body, context)
|
|
1024
|
-
};
|
|
1025
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1026
|
-
switch (errorCode) {
|
|
1027
|
-
case "DirectConnectClientException":
|
|
1028
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1029
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "DirectConnectServerException":
|
|
1031
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1032
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1033
|
-
default:
|
|
1034
|
-
const parsedBody = parsedOutput.body;
|
|
1035
|
-
return throwDefaultError({
|
|
1036
|
-
output,
|
|
1037
|
-
parsedBody,
|
|
1038
|
-
errorCode
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
}, "de_AssociateConnectionWithLagCommandError");
|
|
1042
864
|
var de_AssociateHostedConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1043
865
|
if (output.statusCode >= 300) {
|
|
1044
|
-
return
|
|
866
|
+
return de_CommandError(output, context);
|
|
1045
867
|
}
|
|
1046
868
|
const data = await parseBody(output.body, context);
|
|
1047
869
|
let contents = {};
|
|
@@ -1052,31 +874,9 @@ var de_AssociateHostedConnectionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1052
874
|
};
|
|
1053
875
|
return response;
|
|
1054
876
|
}, "de_AssociateHostedConnectionCommand");
|
|
1055
|
-
var de_AssociateHostedConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1056
|
-
const parsedOutput = {
|
|
1057
|
-
...output,
|
|
1058
|
-
body: await parseErrorBody(output.body, context)
|
|
1059
|
-
};
|
|
1060
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
|
-
switch (errorCode) {
|
|
1062
|
-
case "DirectConnectClientException":
|
|
1063
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1064
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "DirectConnectServerException":
|
|
1066
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1067
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1068
|
-
default:
|
|
1069
|
-
const parsedBody = parsedOutput.body;
|
|
1070
|
-
return throwDefaultError({
|
|
1071
|
-
output,
|
|
1072
|
-
parsedBody,
|
|
1073
|
-
errorCode
|
|
1074
|
-
});
|
|
1075
|
-
}
|
|
1076
|
-
}, "de_AssociateHostedConnectionCommandError");
|
|
1077
877
|
var de_AssociateMacSecKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1078
878
|
if (output.statusCode >= 300) {
|
|
1079
|
-
return
|
|
879
|
+
return de_CommandError(output, context);
|
|
1080
880
|
}
|
|
1081
881
|
const data = await parseBody(output.body, context);
|
|
1082
882
|
let contents = {};
|
|
@@ -1087,31 +887,9 @@ var de_AssociateMacSecKeyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1087
887
|
};
|
|
1088
888
|
return response;
|
|
1089
889
|
}, "de_AssociateMacSecKeyCommand");
|
|
1090
|
-
var de_AssociateMacSecKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1091
|
-
const parsedOutput = {
|
|
1092
|
-
...output,
|
|
1093
|
-
body: await parseErrorBody(output.body, context)
|
|
1094
|
-
};
|
|
1095
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1096
|
-
switch (errorCode) {
|
|
1097
|
-
case "DirectConnectClientException":
|
|
1098
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1099
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1100
|
-
case "DirectConnectServerException":
|
|
1101
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1102
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1103
|
-
default:
|
|
1104
|
-
const parsedBody = parsedOutput.body;
|
|
1105
|
-
return throwDefaultError({
|
|
1106
|
-
output,
|
|
1107
|
-
parsedBody,
|
|
1108
|
-
errorCode
|
|
1109
|
-
});
|
|
1110
|
-
}
|
|
1111
|
-
}, "de_AssociateMacSecKeyCommandError");
|
|
1112
890
|
var de_AssociateVirtualInterfaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1113
891
|
if (output.statusCode >= 300) {
|
|
1114
|
-
return
|
|
892
|
+
return de_CommandError(output, context);
|
|
1115
893
|
}
|
|
1116
894
|
const data = await parseBody(output.body, context);
|
|
1117
895
|
let contents = {};
|
|
@@ -1122,31 +900,9 @@ var de_AssociateVirtualInterfaceCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1122
900
|
};
|
|
1123
901
|
return response;
|
|
1124
902
|
}, "de_AssociateVirtualInterfaceCommand");
|
|
1125
|
-
var de_AssociateVirtualInterfaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1126
|
-
const parsedOutput = {
|
|
1127
|
-
...output,
|
|
1128
|
-
body: await parseErrorBody(output.body, context)
|
|
1129
|
-
};
|
|
1130
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
|
-
switch (errorCode) {
|
|
1132
|
-
case "DirectConnectClientException":
|
|
1133
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1134
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1135
|
-
case "DirectConnectServerException":
|
|
1136
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1137
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1138
|
-
default:
|
|
1139
|
-
const parsedBody = parsedOutput.body;
|
|
1140
|
-
return throwDefaultError({
|
|
1141
|
-
output,
|
|
1142
|
-
parsedBody,
|
|
1143
|
-
errorCode
|
|
1144
|
-
});
|
|
1145
|
-
}
|
|
1146
|
-
}, "de_AssociateVirtualInterfaceCommandError");
|
|
1147
903
|
var de_ConfirmConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1148
904
|
if (output.statusCode >= 300) {
|
|
1149
|
-
return
|
|
905
|
+
return de_CommandError(output, context);
|
|
1150
906
|
}
|
|
1151
907
|
const data = await parseBody(output.body, context);
|
|
1152
908
|
let contents = {};
|
|
@@ -1157,31 +913,9 @@ var de_ConfirmConnectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1157
913
|
};
|
|
1158
914
|
return response;
|
|
1159
915
|
}, "de_ConfirmConnectionCommand");
|
|
1160
|
-
var de_ConfirmConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1161
|
-
const parsedOutput = {
|
|
1162
|
-
...output,
|
|
1163
|
-
body: await parseErrorBody(output.body, context)
|
|
1164
|
-
};
|
|
1165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
|
-
switch (errorCode) {
|
|
1167
|
-
case "DirectConnectClientException":
|
|
1168
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1169
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1170
|
-
case "DirectConnectServerException":
|
|
1171
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1172
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1173
|
-
default:
|
|
1174
|
-
const parsedBody = parsedOutput.body;
|
|
1175
|
-
return throwDefaultError({
|
|
1176
|
-
output,
|
|
1177
|
-
parsedBody,
|
|
1178
|
-
errorCode
|
|
1179
|
-
});
|
|
1180
|
-
}
|
|
1181
|
-
}, "de_ConfirmConnectionCommandError");
|
|
1182
916
|
var de_ConfirmCustomerAgreementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1183
917
|
if (output.statusCode >= 300) {
|
|
1184
|
-
return
|
|
918
|
+
return de_CommandError(output, context);
|
|
1185
919
|
}
|
|
1186
920
|
const data = await parseBody(output.body, context);
|
|
1187
921
|
let contents = {};
|
|
@@ -1192,66 +926,22 @@ var de_ConfirmCustomerAgreementCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1192
926
|
};
|
|
1193
927
|
return response;
|
|
1194
928
|
}, "de_ConfirmCustomerAgreementCommand");
|
|
1195
|
-
var
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
case "DirectConnectServerException":
|
|
1206
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1207
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1208
|
-
default:
|
|
1209
|
-
const parsedBody = parsedOutput.body;
|
|
1210
|
-
return throwDefaultError({
|
|
1211
|
-
output,
|
|
1212
|
-
parsedBody,
|
|
1213
|
-
errorCode
|
|
1214
|
-
});
|
|
1215
|
-
}
|
|
1216
|
-
}, "de_ConfirmCustomerAgreementCommandError");
|
|
1217
|
-
var de_ConfirmPrivateVirtualInterfaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1218
|
-
if (output.statusCode >= 300) {
|
|
1219
|
-
return de_ConfirmPrivateVirtualInterfaceCommandError(output, context);
|
|
1220
|
-
}
|
|
1221
|
-
const data = await parseBody(output.body, context);
|
|
1222
|
-
let contents = {};
|
|
1223
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1224
|
-
const response = {
|
|
1225
|
-
$metadata: deserializeMetadata(output),
|
|
1226
|
-
...contents
|
|
929
|
+
var de_ConfirmPrivateVirtualInterfaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
930
|
+
if (output.statusCode >= 300) {
|
|
931
|
+
return de_CommandError(output, context);
|
|
932
|
+
}
|
|
933
|
+
const data = await parseBody(output.body, context);
|
|
934
|
+
let contents = {};
|
|
935
|
+
contents = (0, import_smithy_client._json)(data);
|
|
936
|
+
const response = {
|
|
937
|
+
$metadata: deserializeMetadata(output),
|
|
938
|
+
...contents
|
|
1227
939
|
};
|
|
1228
940
|
return response;
|
|
1229
941
|
}, "de_ConfirmPrivateVirtualInterfaceCommand");
|
|
1230
|
-
var de_ConfirmPrivateVirtualInterfaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1231
|
-
const parsedOutput = {
|
|
1232
|
-
...output,
|
|
1233
|
-
body: await parseErrorBody(output.body, context)
|
|
1234
|
-
};
|
|
1235
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
|
-
switch (errorCode) {
|
|
1237
|
-
case "DirectConnectClientException":
|
|
1238
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1239
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "DirectConnectServerException":
|
|
1241
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1242
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1243
|
-
default:
|
|
1244
|
-
const parsedBody = parsedOutput.body;
|
|
1245
|
-
return throwDefaultError({
|
|
1246
|
-
output,
|
|
1247
|
-
parsedBody,
|
|
1248
|
-
errorCode
|
|
1249
|
-
});
|
|
1250
|
-
}
|
|
1251
|
-
}, "de_ConfirmPrivateVirtualInterfaceCommandError");
|
|
1252
942
|
var de_ConfirmPublicVirtualInterfaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1253
943
|
if (output.statusCode >= 300) {
|
|
1254
|
-
return
|
|
944
|
+
return de_CommandError(output, context);
|
|
1255
945
|
}
|
|
1256
946
|
const data = await parseBody(output.body, context);
|
|
1257
947
|
let contents = {};
|
|
@@ -1262,31 +952,9 @@ var de_ConfirmPublicVirtualInterfaceCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1262
952
|
};
|
|
1263
953
|
return response;
|
|
1264
954
|
}, "de_ConfirmPublicVirtualInterfaceCommand");
|
|
1265
|
-
var de_ConfirmPublicVirtualInterfaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1266
|
-
const parsedOutput = {
|
|
1267
|
-
...output,
|
|
1268
|
-
body: await parseErrorBody(output.body, context)
|
|
1269
|
-
};
|
|
1270
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1271
|
-
switch (errorCode) {
|
|
1272
|
-
case "DirectConnectClientException":
|
|
1273
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1274
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "DirectConnectServerException":
|
|
1276
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1277
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1278
|
-
default:
|
|
1279
|
-
const parsedBody = parsedOutput.body;
|
|
1280
|
-
return throwDefaultError({
|
|
1281
|
-
output,
|
|
1282
|
-
parsedBody,
|
|
1283
|
-
errorCode
|
|
1284
|
-
});
|
|
1285
|
-
}
|
|
1286
|
-
}, "de_ConfirmPublicVirtualInterfaceCommandError");
|
|
1287
955
|
var de_ConfirmTransitVirtualInterfaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1288
956
|
if (output.statusCode >= 300) {
|
|
1289
|
-
return
|
|
957
|
+
return de_CommandError(output, context);
|
|
1290
958
|
}
|
|
1291
959
|
const data = await parseBody(output.body, context);
|
|
1292
960
|
let contents = {};
|
|
@@ -1297,31 +965,9 @@ var de_ConfirmTransitVirtualInterfaceCommand = /* @__PURE__ */ __name(async (out
|
|
|
1297
965
|
};
|
|
1298
966
|
return response;
|
|
1299
967
|
}, "de_ConfirmTransitVirtualInterfaceCommand");
|
|
1300
|
-
var de_ConfirmTransitVirtualInterfaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1301
|
-
const parsedOutput = {
|
|
1302
|
-
...output,
|
|
1303
|
-
body: await parseErrorBody(output.body, context)
|
|
1304
|
-
};
|
|
1305
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1306
|
-
switch (errorCode) {
|
|
1307
|
-
case "DirectConnectClientException":
|
|
1308
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1309
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "DirectConnectServerException":
|
|
1311
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1312
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1313
|
-
default:
|
|
1314
|
-
const parsedBody = parsedOutput.body;
|
|
1315
|
-
return throwDefaultError({
|
|
1316
|
-
output,
|
|
1317
|
-
parsedBody,
|
|
1318
|
-
errorCode
|
|
1319
|
-
});
|
|
1320
|
-
}
|
|
1321
|
-
}, "de_ConfirmTransitVirtualInterfaceCommandError");
|
|
1322
968
|
var de_CreateBGPPeerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1323
969
|
if (output.statusCode >= 300) {
|
|
1324
|
-
return
|
|
970
|
+
return de_CommandError(output, context);
|
|
1325
971
|
}
|
|
1326
972
|
const data = await parseBody(output.body, context);
|
|
1327
973
|
let contents = {};
|
|
@@ -1332,31 +978,9 @@ var de_CreateBGPPeerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1332
978
|
};
|
|
1333
979
|
return response;
|
|
1334
980
|
}, "de_CreateBGPPeerCommand");
|
|
1335
|
-
var de_CreateBGPPeerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1336
|
-
const parsedOutput = {
|
|
1337
|
-
...output,
|
|
1338
|
-
body: await parseErrorBody(output.body, context)
|
|
1339
|
-
};
|
|
1340
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1341
|
-
switch (errorCode) {
|
|
1342
|
-
case "DirectConnectClientException":
|
|
1343
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1344
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1345
|
-
case "DirectConnectServerException":
|
|
1346
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1347
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1348
|
-
default:
|
|
1349
|
-
const parsedBody = parsedOutput.body;
|
|
1350
|
-
return throwDefaultError({
|
|
1351
|
-
output,
|
|
1352
|
-
parsedBody,
|
|
1353
|
-
errorCode
|
|
1354
|
-
});
|
|
1355
|
-
}
|
|
1356
|
-
}, "de_CreateBGPPeerCommandError");
|
|
1357
981
|
var de_CreateConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1358
982
|
if (output.statusCode >= 300) {
|
|
1359
|
-
return
|
|
983
|
+
return de_CommandError(output, context);
|
|
1360
984
|
}
|
|
1361
985
|
const data = await parseBody(output.body, context);
|
|
1362
986
|
let contents = {};
|
|
@@ -1367,37 +991,9 @@ var de_CreateConnectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1367
991
|
};
|
|
1368
992
|
return response;
|
|
1369
993
|
}, "de_CreateConnectionCommand");
|
|
1370
|
-
var de_CreateConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1371
|
-
const parsedOutput = {
|
|
1372
|
-
...output,
|
|
1373
|
-
body: await parseErrorBody(output.body, context)
|
|
1374
|
-
};
|
|
1375
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1376
|
-
switch (errorCode) {
|
|
1377
|
-
case "DirectConnectClientException":
|
|
1378
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1379
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "DirectConnectServerException":
|
|
1381
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1382
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "DuplicateTagKeysException":
|
|
1384
|
-
case "com.amazonaws.directconnect#DuplicateTagKeysException":
|
|
1385
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "TooManyTagsException":
|
|
1387
|
-
case "com.amazonaws.directconnect#TooManyTagsException":
|
|
1388
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1389
|
-
default:
|
|
1390
|
-
const parsedBody = parsedOutput.body;
|
|
1391
|
-
return throwDefaultError({
|
|
1392
|
-
output,
|
|
1393
|
-
parsedBody,
|
|
1394
|
-
errorCode
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
}, "de_CreateConnectionCommandError");
|
|
1398
994
|
var de_CreateDirectConnectGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1399
995
|
if (output.statusCode >= 300) {
|
|
1400
|
-
return
|
|
996
|
+
return de_CommandError(output, context);
|
|
1401
997
|
}
|
|
1402
998
|
const data = await parseBody(output.body, context);
|
|
1403
999
|
let contents = {};
|
|
@@ -1408,31 +1004,9 @@ var de_CreateDirectConnectGatewayCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1408
1004
|
};
|
|
1409
1005
|
return response;
|
|
1410
1006
|
}, "de_CreateDirectConnectGatewayCommand");
|
|
1411
|
-
var de_CreateDirectConnectGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1412
|
-
const parsedOutput = {
|
|
1413
|
-
...output,
|
|
1414
|
-
body: await parseErrorBody(output.body, context)
|
|
1415
|
-
};
|
|
1416
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
|
-
switch (errorCode) {
|
|
1418
|
-
case "DirectConnectClientException":
|
|
1419
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1420
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1421
|
-
case "DirectConnectServerException":
|
|
1422
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1423
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1424
|
-
default:
|
|
1425
|
-
const parsedBody = parsedOutput.body;
|
|
1426
|
-
return throwDefaultError({
|
|
1427
|
-
output,
|
|
1428
|
-
parsedBody,
|
|
1429
|
-
errorCode
|
|
1430
|
-
});
|
|
1431
|
-
}
|
|
1432
|
-
}, "de_CreateDirectConnectGatewayCommandError");
|
|
1433
1007
|
var de_CreateDirectConnectGatewayAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1434
1008
|
if (output.statusCode >= 300) {
|
|
1435
|
-
return
|
|
1009
|
+
return de_CommandError(output, context);
|
|
1436
1010
|
}
|
|
1437
1011
|
const data = await parseBody(output.body, context);
|
|
1438
1012
|
let contents = {};
|
|
@@ -1443,31 +1017,9 @@ var de_CreateDirectConnectGatewayAssociationCommand = /* @__PURE__ */ __name(asy
|
|
|
1443
1017
|
};
|
|
1444
1018
|
return response;
|
|
1445
1019
|
}, "de_CreateDirectConnectGatewayAssociationCommand");
|
|
1446
|
-
var de_CreateDirectConnectGatewayAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1447
|
-
const parsedOutput = {
|
|
1448
|
-
...output,
|
|
1449
|
-
body: await parseErrorBody(output.body, context)
|
|
1450
|
-
};
|
|
1451
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1452
|
-
switch (errorCode) {
|
|
1453
|
-
case "DirectConnectClientException":
|
|
1454
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1455
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1456
|
-
case "DirectConnectServerException":
|
|
1457
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1458
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1459
|
-
default:
|
|
1460
|
-
const parsedBody = parsedOutput.body;
|
|
1461
|
-
return throwDefaultError({
|
|
1462
|
-
output,
|
|
1463
|
-
parsedBody,
|
|
1464
|
-
errorCode
|
|
1465
|
-
});
|
|
1466
|
-
}
|
|
1467
|
-
}, "de_CreateDirectConnectGatewayAssociationCommandError");
|
|
1468
1020
|
var de_CreateDirectConnectGatewayAssociationProposalCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1469
1021
|
if (output.statusCode >= 300) {
|
|
1470
|
-
return
|
|
1022
|
+
return de_CommandError(output, context);
|
|
1471
1023
|
}
|
|
1472
1024
|
const data = await parseBody(output.body, context);
|
|
1473
1025
|
let contents = {};
|
|
@@ -1478,31 +1030,9 @@ var de_CreateDirectConnectGatewayAssociationProposalCommand = /* @__PURE__ */ __
|
|
|
1478
1030
|
};
|
|
1479
1031
|
return response;
|
|
1480
1032
|
}, "de_CreateDirectConnectGatewayAssociationProposalCommand");
|
|
1481
|
-
var de_CreateDirectConnectGatewayAssociationProposalCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1482
|
-
const parsedOutput = {
|
|
1483
|
-
...output,
|
|
1484
|
-
body: await parseErrorBody(output.body, context)
|
|
1485
|
-
};
|
|
1486
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1487
|
-
switch (errorCode) {
|
|
1488
|
-
case "DirectConnectClientException":
|
|
1489
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1490
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1491
|
-
case "DirectConnectServerException":
|
|
1492
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1493
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1494
|
-
default:
|
|
1495
|
-
const parsedBody = parsedOutput.body;
|
|
1496
|
-
return throwDefaultError({
|
|
1497
|
-
output,
|
|
1498
|
-
parsedBody,
|
|
1499
|
-
errorCode
|
|
1500
|
-
});
|
|
1501
|
-
}
|
|
1502
|
-
}, "de_CreateDirectConnectGatewayAssociationProposalCommandError");
|
|
1503
1033
|
var de_CreateInterconnectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1504
1034
|
if (output.statusCode >= 300) {
|
|
1505
|
-
return
|
|
1035
|
+
return de_CommandError(output, context);
|
|
1506
1036
|
}
|
|
1507
1037
|
const data = await parseBody(output.body, context);
|
|
1508
1038
|
let contents = {};
|
|
@@ -1513,37 +1043,9 @@ var de_CreateInterconnectCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1513
1043
|
};
|
|
1514
1044
|
return response;
|
|
1515
1045
|
}, "de_CreateInterconnectCommand");
|
|
1516
|
-
var de_CreateInterconnectCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1517
|
-
const parsedOutput = {
|
|
1518
|
-
...output,
|
|
1519
|
-
body: await parseErrorBody(output.body, context)
|
|
1520
|
-
};
|
|
1521
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1522
|
-
switch (errorCode) {
|
|
1523
|
-
case "DirectConnectClientException":
|
|
1524
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1525
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1526
|
-
case "DirectConnectServerException":
|
|
1527
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1528
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "DuplicateTagKeysException":
|
|
1530
|
-
case "com.amazonaws.directconnect#DuplicateTagKeysException":
|
|
1531
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "TooManyTagsException":
|
|
1533
|
-
case "com.amazonaws.directconnect#TooManyTagsException":
|
|
1534
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1535
|
-
default:
|
|
1536
|
-
const parsedBody = parsedOutput.body;
|
|
1537
|
-
return throwDefaultError({
|
|
1538
|
-
output,
|
|
1539
|
-
parsedBody,
|
|
1540
|
-
errorCode
|
|
1541
|
-
});
|
|
1542
|
-
}
|
|
1543
|
-
}, "de_CreateInterconnectCommandError");
|
|
1544
1046
|
var de_CreateLagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1545
1047
|
if (output.statusCode >= 300) {
|
|
1546
|
-
return
|
|
1048
|
+
return de_CommandError(output, context);
|
|
1547
1049
|
}
|
|
1548
1050
|
const data = await parseBody(output.body, context);
|
|
1549
1051
|
let contents = {};
|
|
@@ -1554,37 +1056,9 @@ var de_CreateLagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1554
1056
|
};
|
|
1555
1057
|
return response;
|
|
1556
1058
|
}, "de_CreateLagCommand");
|
|
1557
|
-
var de_CreateLagCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1558
|
-
const parsedOutput = {
|
|
1559
|
-
...output,
|
|
1560
|
-
body: await parseErrorBody(output.body, context)
|
|
1561
|
-
};
|
|
1562
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1563
|
-
switch (errorCode) {
|
|
1564
|
-
case "DirectConnectClientException":
|
|
1565
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1566
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1567
|
-
case "DirectConnectServerException":
|
|
1568
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1569
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1570
|
-
case "DuplicateTagKeysException":
|
|
1571
|
-
case "com.amazonaws.directconnect#DuplicateTagKeysException":
|
|
1572
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
1573
|
-
case "TooManyTagsException":
|
|
1574
|
-
case "com.amazonaws.directconnect#TooManyTagsException":
|
|
1575
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1576
|
-
default:
|
|
1577
|
-
const parsedBody = parsedOutput.body;
|
|
1578
|
-
return throwDefaultError({
|
|
1579
|
-
output,
|
|
1580
|
-
parsedBody,
|
|
1581
|
-
errorCode
|
|
1582
|
-
});
|
|
1583
|
-
}
|
|
1584
|
-
}, "de_CreateLagCommandError");
|
|
1585
1059
|
var de_CreatePrivateVirtualInterfaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1586
1060
|
if (output.statusCode >= 300) {
|
|
1587
|
-
return
|
|
1061
|
+
return de_CommandError(output, context);
|
|
1588
1062
|
}
|
|
1589
1063
|
const data = await parseBody(output.body, context);
|
|
1590
1064
|
let contents = {};
|
|
@@ -1595,37 +1069,9 @@ var de_CreatePrivateVirtualInterfaceCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1595
1069
|
};
|
|
1596
1070
|
return response;
|
|
1597
1071
|
}, "de_CreatePrivateVirtualInterfaceCommand");
|
|
1598
|
-
var de_CreatePrivateVirtualInterfaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1599
|
-
const parsedOutput = {
|
|
1600
|
-
...output,
|
|
1601
|
-
body: await parseErrorBody(output.body, context)
|
|
1602
|
-
};
|
|
1603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1604
|
-
switch (errorCode) {
|
|
1605
|
-
case "DirectConnectClientException":
|
|
1606
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1607
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1608
|
-
case "DirectConnectServerException":
|
|
1609
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1610
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1611
|
-
case "DuplicateTagKeysException":
|
|
1612
|
-
case "com.amazonaws.directconnect#DuplicateTagKeysException":
|
|
1613
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
1614
|
-
case "TooManyTagsException":
|
|
1615
|
-
case "com.amazonaws.directconnect#TooManyTagsException":
|
|
1616
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1617
|
-
default:
|
|
1618
|
-
const parsedBody = parsedOutput.body;
|
|
1619
|
-
return throwDefaultError({
|
|
1620
|
-
output,
|
|
1621
|
-
parsedBody,
|
|
1622
|
-
errorCode
|
|
1623
|
-
});
|
|
1624
|
-
}
|
|
1625
|
-
}, "de_CreatePrivateVirtualInterfaceCommandError");
|
|
1626
1072
|
var de_CreatePublicVirtualInterfaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1627
1073
|
if (output.statusCode >= 300) {
|
|
1628
|
-
return
|
|
1074
|
+
return de_CommandError(output, context);
|
|
1629
1075
|
}
|
|
1630
1076
|
const data = await parseBody(output.body, context);
|
|
1631
1077
|
let contents = {};
|
|
@@ -1636,37 +1082,9 @@ var de_CreatePublicVirtualInterfaceCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1636
1082
|
};
|
|
1637
1083
|
return response;
|
|
1638
1084
|
}, "de_CreatePublicVirtualInterfaceCommand");
|
|
1639
|
-
var de_CreatePublicVirtualInterfaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1640
|
-
const parsedOutput = {
|
|
1641
|
-
...output,
|
|
1642
|
-
body: await parseErrorBody(output.body, context)
|
|
1643
|
-
};
|
|
1644
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1645
|
-
switch (errorCode) {
|
|
1646
|
-
case "DirectConnectClientException":
|
|
1647
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1648
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1649
|
-
case "DirectConnectServerException":
|
|
1650
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1651
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1652
|
-
case "DuplicateTagKeysException":
|
|
1653
|
-
case "com.amazonaws.directconnect#DuplicateTagKeysException":
|
|
1654
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
1655
|
-
case "TooManyTagsException":
|
|
1656
|
-
case "com.amazonaws.directconnect#TooManyTagsException":
|
|
1657
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1658
|
-
default:
|
|
1659
|
-
const parsedBody = parsedOutput.body;
|
|
1660
|
-
return throwDefaultError({
|
|
1661
|
-
output,
|
|
1662
|
-
parsedBody,
|
|
1663
|
-
errorCode
|
|
1664
|
-
});
|
|
1665
|
-
}
|
|
1666
|
-
}, "de_CreatePublicVirtualInterfaceCommandError");
|
|
1667
1085
|
var de_CreateTransitVirtualInterfaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1668
1086
|
if (output.statusCode >= 300) {
|
|
1669
|
-
return
|
|
1087
|
+
return de_CommandError(output, context);
|
|
1670
1088
|
}
|
|
1671
1089
|
const data = await parseBody(output.body, context);
|
|
1672
1090
|
let contents = {};
|
|
@@ -1677,72 +1095,22 @@ var de_CreateTransitVirtualInterfaceCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1677
1095
|
};
|
|
1678
1096
|
return response;
|
|
1679
1097
|
}, "de_CreateTransitVirtualInterfaceCommand");
|
|
1680
|
-
var de_CreateTransitVirtualInterfaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1681
|
-
const parsedOutput = {
|
|
1682
|
-
...output,
|
|
1683
|
-
body: await parseErrorBody(output.body, context)
|
|
1684
|
-
};
|
|
1685
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1686
|
-
switch (errorCode) {
|
|
1687
|
-
case "DirectConnectClientException":
|
|
1688
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1689
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1690
|
-
case "DirectConnectServerException":
|
|
1691
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1692
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1693
|
-
case "DuplicateTagKeysException":
|
|
1694
|
-
case "com.amazonaws.directconnect#DuplicateTagKeysException":
|
|
1695
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
1696
|
-
case "TooManyTagsException":
|
|
1697
|
-
case "com.amazonaws.directconnect#TooManyTagsException":
|
|
1698
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1699
|
-
default:
|
|
1700
|
-
const parsedBody = parsedOutput.body;
|
|
1701
|
-
return throwDefaultError({
|
|
1702
|
-
output,
|
|
1703
|
-
parsedBody,
|
|
1704
|
-
errorCode
|
|
1705
|
-
});
|
|
1706
|
-
}
|
|
1707
|
-
}, "de_CreateTransitVirtualInterfaceCommandError");
|
|
1708
1098
|
var de_DeleteBGPPeerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1709
1099
|
if (output.statusCode >= 300) {
|
|
1710
|
-
return
|
|
1100
|
+
return de_CommandError(output, context);
|
|
1711
1101
|
}
|
|
1712
1102
|
const data = await parseBody(output.body, context);
|
|
1713
1103
|
let contents = {};
|
|
1714
1104
|
contents = (0, import_smithy_client._json)(data);
|
|
1715
1105
|
const response = {
|
|
1716
1106
|
$metadata: deserializeMetadata(output),
|
|
1717
|
-
...contents
|
|
1718
|
-
};
|
|
1719
|
-
return response;
|
|
1720
|
-
}, "de_DeleteBGPPeerCommand");
|
|
1721
|
-
var de_DeleteBGPPeerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1722
|
-
const parsedOutput = {
|
|
1723
|
-
...output,
|
|
1724
|
-
body: await parseErrorBody(output.body, context)
|
|
1725
|
-
};
|
|
1726
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1727
|
-
switch (errorCode) {
|
|
1728
|
-
case "DirectConnectClientException":
|
|
1729
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1730
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "DirectConnectServerException":
|
|
1732
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1733
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1734
|
-
default:
|
|
1735
|
-
const parsedBody = parsedOutput.body;
|
|
1736
|
-
return throwDefaultError({
|
|
1737
|
-
output,
|
|
1738
|
-
parsedBody,
|
|
1739
|
-
errorCode
|
|
1740
|
-
});
|
|
1741
|
-
}
|
|
1742
|
-
}, "de_DeleteBGPPeerCommandError");
|
|
1107
|
+
...contents
|
|
1108
|
+
};
|
|
1109
|
+
return response;
|
|
1110
|
+
}, "de_DeleteBGPPeerCommand");
|
|
1743
1111
|
var de_DeleteConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1744
1112
|
if (output.statusCode >= 300) {
|
|
1745
|
-
return
|
|
1113
|
+
return de_CommandError(output, context);
|
|
1746
1114
|
}
|
|
1747
1115
|
const data = await parseBody(output.body, context);
|
|
1748
1116
|
let contents = {};
|
|
@@ -1753,31 +1121,9 @@ var de_DeleteConnectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1753
1121
|
};
|
|
1754
1122
|
return response;
|
|
1755
1123
|
}, "de_DeleteConnectionCommand");
|
|
1756
|
-
var de_DeleteConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1757
|
-
const parsedOutput = {
|
|
1758
|
-
...output,
|
|
1759
|
-
body: await parseErrorBody(output.body, context)
|
|
1760
|
-
};
|
|
1761
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
|
-
switch (errorCode) {
|
|
1763
|
-
case "DirectConnectClientException":
|
|
1764
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1765
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1766
|
-
case "DirectConnectServerException":
|
|
1767
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1768
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1769
|
-
default:
|
|
1770
|
-
const parsedBody = parsedOutput.body;
|
|
1771
|
-
return throwDefaultError({
|
|
1772
|
-
output,
|
|
1773
|
-
parsedBody,
|
|
1774
|
-
errorCode
|
|
1775
|
-
});
|
|
1776
|
-
}
|
|
1777
|
-
}, "de_DeleteConnectionCommandError");
|
|
1778
1124
|
var de_DeleteDirectConnectGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1779
1125
|
if (output.statusCode >= 300) {
|
|
1780
|
-
return
|
|
1126
|
+
return de_CommandError(output, context);
|
|
1781
1127
|
}
|
|
1782
1128
|
const data = await parseBody(output.body, context);
|
|
1783
1129
|
let contents = {};
|
|
@@ -1788,31 +1134,9 @@ var de_DeleteDirectConnectGatewayCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1788
1134
|
};
|
|
1789
1135
|
return response;
|
|
1790
1136
|
}, "de_DeleteDirectConnectGatewayCommand");
|
|
1791
|
-
var de_DeleteDirectConnectGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1792
|
-
const parsedOutput = {
|
|
1793
|
-
...output,
|
|
1794
|
-
body: await parseErrorBody(output.body, context)
|
|
1795
|
-
};
|
|
1796
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1797
|
-
switch (errorCode) {
|
|
1798
|
-
case "DirectConnectClientException":
|
|
1799
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1800
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "DirectConnectServerException":
|
|
1802
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1803
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1804
|
-
default:
|
|
1805
|
-
const parsedBody = parsedOutput.body;
|
|
1806
|
-
return throwDefaultError({
|
|
1807
|
-
output,
|
|
1808
|
-
parsedBody,
|
|
1809
|
-
errorCode
|
|
1810
|
-
});
|
|
1811
|
-
}
|
|
1812
|
-
}, "de_DeleteDirectConnectGatewayCommandError");
|
|
1813
1137
|
var de_DeleteDirectConnectGatewayAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1814
1138
|
if (output.statusCode >= 300) {
|
|
1815
|
-
return
|
|
1139
|
+
return de_CommandError(output, context);
|
|
1816
1140
|
}
|
|
1817
1141
|
const data = await parseBody(output.body, context);
|
|
1818
1142
|
let contents = {};
|
|
@@ -1823,31 +1147,9 @@ var de_DeleteDirectConnectGatewayAssociationCommand = /* @__PURE__ */ __name(asy
|
|
|
1823
1147
|
};
|
|
1824
1148
|
return response;
|
|
1825
1149
|
}, "de_DeleteDirectConnectGatewayAssociationCommand");
|
|
1826
|
-
var de_DeleteDirectConnectGatewayAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1827
|
-
const parsedOutput = {
|
|
1828
|
-
...output,
|
|
1829
|
-
body: await parseErrorBody(output.body, context)
|
|
1830
|
-
};
|
|
1831
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1832
|
-
switch (errorCode) {
|
|
1833
|
-
case "DirectConnectClientException":
|
|
1834
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1835
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1836
|
-
case "DirectConnectServerException":
|
|
1837
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1838
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1839
|
-
default:
|
|
1840
|
-
const parsedBody = parsedOutput.body;
|
|
1841
|
-
return throwDefaultError({
|
|
1842
|
-
output,
|
|
1843
|
-
parsedBody,
|
|
1844
|
-
errorCode
|
|
1845
|
-
});
|
|
1846
|
-
}
|
|
1847
|
-
}, "de_DeleteDirectConnectGatewayAssociationCommandError");
|
|
1848
1150
|
var de_DeleteDirectConnectGatewayAssociationProposalCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1849
1151
|
if (output.statusCode >= 300) {
|
|
1850
|
-
return
|
|
1152
|
+
return de_CommandError(output, context);
|
|
1851
1153
|
}
|
|
1852
1154
|
const data = await parseBody(output.body, context);
|
|
1853
1155
|
let contents = {};
|
|
@@ -1858,31 +1160,9 @@ var de_DeleteDirectConnectGatewayAssociationProposalCommand = /* @__PURE__ */ __
|
|
|
1858
1160
|
};
|
|
1859
1161
|
return response;
|
|
1860
1162
|
}, "de_DeleteDirectConnectGatewayAssociationProposalCommand");
|
|
1861
|
-
var de_DeleteDirectConnectGatewayAssociationProposalCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1862
|
-
const parsedOutput = {
|
|
1863
|
-
...output,
|
|
1864
|
-
body: await parseErrorBody(output.body, context)
|
|
1865
|
-
};
|
|
1866
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1867
|
-
switch (errorCode) {
|
|
1868
|
-
case "DirectConnectClientException":
|
|
1869
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1870
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1871
|
-
case "DirectConnectServerException":
|
|
1872
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1873
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1874
|
-
default:
|
|
1875
|
-
const parsedBody = parsedOutput.body;
|
|
1876
|
-
return throwDefaultError({
|
|
1877
|
-
output,
|
|
1878
|
-
parsedBody,
|
|
1879
|
-
errorCode
|
|
1880
|
-
});
|
|
1881
|
-
}
|
|
1882
|
-
}, "de_DeleteDirectConnectGatewayAssociationProposalCommandError");
|
|
1883
1163
|
var de_DeleteInterconnectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1884
1164
|
if (output.statusCode >= 300) {
|
|
1885
|
-
return
|
|
1165
|
+
return de_CommandError(output, context);
|
|
1886
1166
|
}
|
|
1887
1167
|
const data = await parseBody(output.body, context);
|
|
1888
1168
|
let contents = {};
|
|
@@ -1893,31 +1173,9 @@ var de_DeleteInterconnectCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1893
1173
|
};
|
|
1894
1174
|
return response;
|
|
1895
1175
|
}, "de_DeleteInterconnectCommand");
|
|
1896
|
-
var de_DeleteInterconnectCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1897
|
-
const parsedOutput = {
|
|
1898
|
-
...output,
|
|
1899
|
-
body: await parseErrorBody(output.body, context)
|
|
1900
|
-
};
|
|
1901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1902
|
-
switch (errorCode) {
|
|
1903
|
-
case "DirectConnectClientException":
|
|
1904
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1905
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1906
|
-
case "DirectConnectServerException":
|
|
1907
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1908
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1909
|
-
default:
|
|
1910
|
-
const parsedBody = parsedOutput.body;
|
|
1911
|
-
return throwDefaultError({
|
|
1912
|
-
output,
|
|
1913
|
-
parsedBody,
|
|
1914
|
-
errorCode
|
|
1915
|
-
});
|
|
1916
|
-
}
|
|
1917
|
-
}, "de_DeleteInterconnectCommandError");
|
|
1918
1176
|
var de_DeleteLagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1919
1177
|
if (output.statusCode >= 300) {
|
|
1920
|
-
return
|
|
1178
|
+
return de_CommandError(output, context);
|
|
1921
1179
|
}
|
|
1922
1180
|
const data = await parseBody(output.body, context);
|
|
1923
1181
|
let contents = {};
|
|
@@ -1928,31 +1186,9 @@ var de_DeleteLagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1928
1186
|
};
|
|
1929
1187
|
return response;
|
|
1930
1188
|
}, "de_DeleteLagCommand");
|
|
1931
|
-
var de_DeleteLagCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1932
|
-
const parsedOutput = {
|
|
1933
|
-
...output,
|
|
1934
|
-
body: await parseErrorBody(output.body, context)
|
|
1935
|
-
};
|
|
1936
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1937
|
-
switch (errorCode) {
|
|
1938
|
-
case "DirectConnectClientException":
|
|
1939
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1940
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1941
|
-
case "DirectConnectServerException":
|
|
1942
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1943
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1944
|
-
default:
|
|
1945
|
-
const parsedBody = parsedOutput.body;
|
|
1946
|
-
return throwDefaultError({
|
|
1947
|
-
output,
|
|
1948
|
-
parsedBody,
|
|
1949
|
-
errorCode
|
|
1950
|
-
});
|
|
1951
|
-
}
|
|
1952
|
-
}, "de_DeleteLagCommandError");
|
|
1953
1189
|
var de_DeleteVirtualInterfaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1954
1190
|
if (output.statusCode >= 300) {
|
|
1955
|
-
return
|
|
1191
|
+
return de_CommandError(output, context);
|
|
1956
1192
|
}
|
|
1957
1193
|
const data = await parseBody(output.body, context);
|
|
1958
1194
|
let contents = {};
|
|
@@ -1963,31 +1199,9 @@ var de_DeleteVirtualInterfaceCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1963
1199
|
};
|
|
1964
1200
|
return response;
|
|
1965
1201
|
}, "de_DeleteVirtualInterfaceCommand");
|
|
1966
|
-
var de_DeleteVirtualInterfaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1967
|
-
const parsedOutput = {
|
|
1968
|
-
...output,
|
|
1969
|
-
body: await parseErrorBody(output.body, context)
|
|
1970
|
-
};
|
|
1971
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1972
|
-
switch (errorCode) {
|
|
1973
|
-
case "DirectConnectClientException":
|
|
1974
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1975
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1976
|
-
case "DirectConnectServerException":
|
|
1977
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1978
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1979
|
-
default:
|
|
1980
|
-
const parsedBody = parsedOutput.body;
|
|
1981
|
-
return throwDefaultError({
|
|
1982
|
-
output,
|
|
1983
|
-
parsedBody,
|
|
1984
|
-
errorCode
|
|
1985
|
-
});
|
|
1986
|
-
}
|
|
1987
|
-
}, "de_DeleteVirtualInterfaceCommandError");
|
|
1988
1202
|
var de_DescribeConnectionLoaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1989
1203
|
if (output.statusCode >= 300) {
|
|
1990
|
-
return
|
|
1204
|
+
return de_CommandError(output, context);
|
|
1991
1205
|
}
|
|
1992
1206
|
const data = await parseBody(output.body, context);
|
|
1993
1207
|
let contents = {};
|
|
@@ -1998,31 +1212,9 @@ var de_DescribeConnectionLoaCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1998
1212
|
};
|
|
1999
1213
|
return response;
|
|
2000
1214
|
}, "de_DescribeConnectionLoaCommand");
|
|
2001
|
-
var de_DescribeConnectionLoaCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2002
|
-
const parsedOutput = {
|
|
2003
|
-
...output,
|
|
2004
|
-
body: await parseErrorBody(output.body, context)
|
|
2005
|
-
};
|
|
2006
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2007
|
-
switch (errorCode) {
|
|
2008
|
-
case "DirectConnectClientException":
|
|
2009
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2010
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2011
|
-
case "DirectConnectServerException":
|
|
2012
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2013
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2014
|
-
default:
|
|
2015
|
-
const parsedBody = parsedOutput.body;
|
|
2016
|
-
return throwDefaultError({
|
|
2017
|
-
output,
|
|
2018
|
-
parsedBody,
|
|
2019
|
-
errorCode
|
|
2020
|
-
});
|
|
2021
|
-
}
|
|
2022
|
-
}, "de_DescribeConnectionLoaCommandError");
|
|
2023
1215
|
var de_DescribeConnectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2024
1216
|
if (output.statusCode >= 300) {
|
|
2025
|
-
return
|
|
1217
|
+
return de_CommandError(output, context);
|
|
2026
1218
|
}
|
|
2027
1219
|
const data = await parseBody(output.body, context);
|
|
2028
1220
|
let contents = {};
|
|
@@ -2033,31 +1225,9 @@ var de_DescribeConnectionsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2033
1225
|
};
|
|
2034
1226
|
return response;
|
|
2035
1227
|
}, "de_DescribeConnectionsCommand");
|
|
2036
|
-
var de_DescribeConnectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2037
|
-
const parsedOutput = {
|
|
2038
|
-
...output,
|
|
2039
|
-
body: await parseErrorBody(output.body, context)
|
|
2040
|
-
};
|
|
2041
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2042
|
-
switch (errorCode) {
|
|
2043
|
-
case "DirectConnectClientException":
|
|
2044
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2045
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2046
|
-
case "DirectConnectServerException":
|
|
2047
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2048
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2049
|
-
default:
|
|
2050
|
-
const parsedBody = parsedOutput.body;
|
|
2051
|
-
return throwDefaultError({
|
|
2052
|
-
output,
|
|
2053
|
-
parsedBody,
|
|
2054
|
-
errorCode
|
|
2055
|
-
});
|
|
2056
|
-
}
|
|
2057
|
-
}, "de_DescribeConnectionsCommandError");
|
|
2058
1228
|
var de_DescribeConnectionsOnInterconnectCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2059
1229
|
if (output.statusCode >= 300) {
|
|
2060
|
-
return
|
|
1230
|
+
return de_CommandError(output, context);
|
|
2061
1231
|
}
|
|
2062
1232
|
const data = await parseBody(output.body, context);
|
|
2063
1233
|
let contents = {};
|
|
@@ -2068,66 +1238,9 @@ var de_DescribeConnectionsOnInterconnectCommand = /* @__PURE__ */ __name(async (
|
|
|
2068
1238
|
};
|
|
2069
1239
|
return response;
|
|
2070
1240
|
}, "de_DescribeConnectionsOnInterconnectCommand");
|
|
2071
|
-
var de_DescribeConnectionsOnInterconnectCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2072
|
-
const parsedOutput = {
|
|
2073
|
-
...output,
|
|
2074
|
-
body: await parseErrorBody(output.body, context)
|
|
2075
|
-
};
|
|
2076
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2077
|
-
switch (errorCode) {
|
|
2078
|
-
case "DirectConnectClientException":
|
|
2079
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2080
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2081
|
-
case "DirectConnectServerException":
|
|
2082
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2083
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2084
|
-
default:
|
|
2085
|
-
const parsedBody = parsedOutput.body;
|
|
2086
|
-
return throwDefaultError({
|
|
2087
|
-
output,
|
|
2088
|
-
parsedBody,
|
|
2089
|
-
errorCode
|
|
2090
|
-
});
|
|
2091
|
-
}
|
|
2092
|
-
}, "de_DescribeConnectionsOnInterconnectCommandError");
|
|
2093
1241
|
var de_DescribeCustomerMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2094
1242
|
if (output.statusCode >= 300) {
|
|
2095
|
-
return
|
|
2096
|
-
}
|
|
2097
|
-
const data = await parseBody(output.body, context);
|
|
2098
|
-
let contents = {};
|
|
2099
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2100
|
-
const response = {
|
|
2101
|
-
$metadata: deserializeMetadata(output),
|
|
2102
|
-
...contents
|
|
2103
|
-
};
|
|
2104
|
-
return response;
|
|
2105
|
-
}, "de_DescribeCustomerMetadataCommand");
|
|
2106
|
-
var de_DescribeCustomerMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2107
|
-
const parsedOutput = {
|
|
2108
|
-
...output,
|
|
2109
|
-
body: await parseErrorBody(output.body, context)
|
|
2110
|
-
};
|
|
2111
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2112
|
-
switch (errorCode) {
|
|
2113
|
-
case "DirectConnectClientException":
|
|
2114
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2115
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2116
|
-
case "DirectConnectServerException":
|
|
2117
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2118
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2119
|
-
default:
|
|
2120
|
-
const parsedBody = parsedOutput.body;
|
|
2121
|
-
return throwDefaultError({
|
|
2122
|
-
output,
|
|
2123
|
-
parsedBody,
|
|
2124
|
-
errorCode
|
|
2125
|
-
});
|
|
2126
|
-
}
|
|
2127
|
-
}, "de_DescribeCustomerMetadataCommandError");
|
|
2128
|
-
var de_DescribeDirectConnectGatewayAssociationProposalsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2129
|
-
if (output.statusCode >= 300) {
|
|
2130
|
-
return de_DescribeDirectConnectGatewayAssociationProposalsCommandError(output, context);
|
|
1243
|
+
return de_CommandError(output, context);
|
|
2131
1244
|
}
|
|
2132
1245
|
const data = await parseBody(output.body, context);
|
|
2133
1246
|
let contents = {};
|
|
@@ -2137,32 +1250,23 @@ var de_DescribeDirectConnectGatewayAssociationProposalsCommand = /* @__PURE__ */
|
|
|
2137
1250
|
...contents
|
|
2138
1251
|
};
|
|
2139
1252
|
return response;
|
|
2140
|
-
}, "
|
|
2141
|
-
var
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
body: await parseErrorBody(output.body, context)
|
|
2145
|
-
};
|
|
2146
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2147
|
-
switch (errorCode) {
|
|
2148
|
-
case "DirectConnectClientException":
|
|
2149
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2150
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2151
|
-
case "DirectConnectServerException":
|
|
2152
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2153
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2154
|
-
default:
|
|
2155
|
-
const parsedBody = parsedOutput.body;
|
|
2156
|
-
return throwDefaultError({
|
|
2157
|
-
output,
|
|
2158
|
-
parsedBody,
|
|
2159
|
-
errorCode
|
|
2160
|
-
});
|
|
1253
|
+
}, "de_DescribeCustomerMetadataCommand");
|
|
1254
|
+
var de_DescribeDirectConnectGatewayAssociationProposalsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1255
|
+
if (output.statusCode >= 300) {
|
|
1256
|
+
return de_CommandError(output, context);
|
|
2161
1257
|
}
|
|
2162
|
-
|
|
1258
|
+
const data = await parseBody(output.body, context);
|
|
1259
|
+
let contents = {};
|
|
1260
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1261
|
+
const response = {
|
|
1262
|
+
$metadata: deserializeMetadata(output),
|
|
1263
|
+
...contents
|
|
1264
|
+
};
|
|
1265
|
+
return response;
|
|
1266
|
+
}, "de_DescribeDirectConnectGatewayAssociationProposalsCommand");
|
|
2163
1267
|
var de_DescribeDirectConnectGatewayAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2164
1268
|
if (output.statusCode >= 300) {
|
|
2165
|
-
return
|
|
1269
|
+
return de_CommandError(output, context);
|
|
2166
1270
|
}
|
|
2167
1271
|
const data = await parseBody(output.body, context);
|
|
2168
1272
|
let contents = {};
|
|
@@ -2173,31 +1277,9 @@ var de_DescribeDirectConnectGatewayAssociationsCommand = /* @__PURE__ */ __name(
|
|
|
2173
1277
|
};
|
|
2174
1278
|
return response;
|
|
2175
1279
|
}, "de_DescribeDirectConnectGatewayAssociationsCommand");
|
|
2176
|
-
var de_DescribeDirectConnectGatewayAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2177
|
-
const parsedOutput = {
|
|
2178
|
-
...output,
|
|
2179
|
-
body: await parseErrorBody(output.body, context)
|
|
2180
|
-
};
|
|
2181
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2182
|
-
switch (errorCode) {
|
|
2183
|
-
case "DirectConnectClientException":
|
|
2184
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2185
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2186
|
-
case "DirectConnectServerException":
|
|
2187
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2188
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2189
|
-
default:
|
|
2190
|
-
const parsedBody = parsedOutput.body;
|
|
2191
|
-
return throwDefaultError({
|
|
2192
|
-
output,
|
|
2193
|
-
parsedBody,
|
|
2194
|
-
errorCode
|
|
2195
|
-
});
|
|
2196
|
-
}
|
|
2197
|
-
}, "de_DescribeDirectConnectGatewayAssociationsCommandError");
|
|
2198
1280
|
var de_DescribeDirectConnectGatewayAttachmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2199
1281
|
if (output.statusCode >= 300) {
|
|
2200
|
-
return
|
|
1282
|
+
return de_CommandError(output, context);
|
|
2201
1283
|
}
|
|
2202
1284
|
const data = await parseBody(output.body, context);
|
|
2203
1285
|
let contents = {};
|
|
@@ -2208,31 +1290,9 @@ var de_DescribeDirectConnectGatewayAttachmentsCommand = /* @__PURE__ */ __name(a
|
|
|
2208
1290
|
};
|
|
2209
1291
|
return response;
|
|
2210
1292
|
}, "de_DescribeDirectConnectGatewayAttachmentsCommand");
|
|
2211
|
-
var de_DescribeDirectConnectGatewayAttachmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2212
|
-
const parsedOutput = {
|
|
2213
|
-
...output,
|
|
2214
|
-
body: await parseErrorBody(output.body, context)
|
|
2215
|
-
};
|
|
2216
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2217
|
-
switch (errorCode) {
|
|
2218
|
-
case "DirectConnectClientException":
|
|
2219
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2220
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2221
|
-
case "DirectConnectServerException":
|
|
2222
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2223
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2224
|
-
default:
|
|
2225
|
-
const parsedBody = parsedOutput.body;
|
|
2226
|
-
return throwDefaultError({
|
|
2227
|
-
output,
|
|
2228
|
-
parsedBody,
|
|
2229
|
-
errorCode
|
|
2230
|
-
});
|
|
2231
|
-
}
|
|
2232
|
-
}, "de_DescribeDirectConnectGatewayAttachmentsCommandError");
|
|
2233
1293
|
var de_DescribeDirectConnectGatewaysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2234
1294
|
if (output.statusCode >= 300) {
|
|
2235
|
-
return
|
|
1295
|
+
return de_CommandError(output, context);
|
|
2236
1296
|
}
|
|
2237
1297
|
const data = await parseBody(output.body, context);
|
|
2238
1298
|
let contents = {};
|
|
@@ -2243,31 +1303,9 @@ var de_DescribeDirectConnectGatewaysCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2243
1303
|
};
|
|
2244
1304
|
return response;
|
|
2245
1305
|
}, "de_DescribeDirectConnectGatewaysCommand");
|
|
2246
|
-
var de_DescribeDirectConnectGatewaysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2247
|
-
const parsedOutput = {
|
|
2248
|
-
...output,
|
|
2249
|
-
body: await parseErrorBody(output.body, context)
|
|
2250
|
-
};
|
|
2251
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2252
|
-
switch (errorCode) {
|
|
2253
|
-
case "DirectConnectClientException":
|
|
2254
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2255
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2256
|
-
case "DirectConnectServerException":
|
|
2257
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2258
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2259
|
-
default:
|
|
2260
|
-
const parsedBody = parsedOutput.body;
|
|
2261
|
-
return throwDefaultError({
|
|
2262
|
-
output,
|
|
2263
|
-
parsedBody,
|
|
2264
|
-
errorCode
|
|
2265
|
-
});
|
|
2266
|
-
}
|
|
2267
|
-
}, "de_DescribeDirectConnectGatewaysCommandError");
|
|
2268
1306
|
var de_DescribeHostedConnectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2269
1307
|
if (output.statusCode >= 300) {
|
|
2270
|
-
return
|
|
1308
|
+
return de_CommandError(output, context);
|
|
2271
1309
|
}
|
|
2272
1310
|
const data = await parseBody(output.body, context);
|
|
2273
1311
|
let contents = {};
|
|
@@ -2278,31 +1316,9 @@ var de_DescribeHostedConnectionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2278
1316
|
};
|
|
2279
1317
|
return response;
|
|
2280
1318
|
}, "de_DescribeHostedConnectionsCommand");
|
|
2281
|
-
var de_DescribeHostedConnectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2282
|
-
const parsedOutput = {
|
|
2283
|
-
...output,
|
|
2284
|
-
body: await parseErrorBody(output.body, context)
|
|
2285
|
-
};
|
|
2286
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2287
|
-
switch (errorCode) {
|
|
2288
|
-
case "DirectConnectClientException":
|
|
2289
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2290
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2291
|
-
case "DirectConnectServerException":
|
|
2292
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2293
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2294
|
-
default:
|
|
2295
|
-
const parsedBody = parsedOutput.body;
|
|
2296
|
-
return throwDefaultError({
|
|
2297
|
-
output,
|
|
2298
|
-
parsedBody,
|
|
2299
|
-
errorCode
|
|
2300
|
-
});
|
|
2301
|
-
}
|
|
2302
|
-
}, "de_DescribeHostedConnectionsCommandError");
|
|
2303
1319
|
var de_DescribeInterconnectLoaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2304
1320
|
if (output.statusCode >= 300) {
|
|
2305
|
-
return
|
|
1321
|
+
return de_CommandError(output, context);
|
|
2306
1322
|
}
|
|
2307
1323
|
const data = await parseBody(output.body, context);
|
|
2308
1324
|
let contents = {};
|
|
@@ -2313,31 +1329,9 @@ var de_DescribeInterconnectLoaCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2313
1329
|
};
|
|
2314
1330
|
return response;
|
|
2315
1331
|
}, "de_DescribeInterconnectLoaCommand");
|
|
2316
|
-
var de_DescribeInterconnectLoaCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2317
|
-
const parsedOutput = {
|
|
2318
|
-
...output,
|
|
2319
|
-
body: await parseErrorBody(output.body, context)
|
|
2320
|
-
};
|
|
2321
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2322
|
-
switch (errorCode) {
|
|
2323
|
-
case "DirectConnectClientException":
|
|
2324
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2325
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2326
|
-
case "DirectConnectServerException":
|
|
2327
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2328
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2329
|
-
default:
|
|
2330
|
-
const parsedBody = parsedOutput.body;
|
|
2331
|
-
return throwDefaultError({
|
|
2332
|
-
output,
|
|
2333
|
-
parsedBody,
|
|
2334
|
-
errorCode
|
|
2335
|
-
});
|
|
2336
|
-
}
|
|
2337
|
-
}, "de_DescribeInterconnectLoaCommandError");
|
|
2338
1332
|
var de_DescribeInterconnectsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2339
1333
|
if (output.statusCode >= 300) {
|
|
2340
|
-
return
|
|
1334
|
+
return de_CommandError(output, context);
|
|
2341
1335
|
}
|
|
2342
1336
|
const data = await parseBody(output.body, context);
|
|
2343
1337
|
let contents = {};
|
|
@@ -2348,31 +1342,9 @@ var de_DescribeInterconnectsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2348
1342
|
};
|
|
2349
1343
|
return response;
|
|
2350
1344
|
}, "de_DescribeInterconnectsCommand");
|
|
2351
|
-
var de_DescribeInterconnectsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2352
|
-
const parsedOutput = {
|
|
2353
|
-
...output,
|
|
2354
|
-
body: await parseErrorBody(output.body, context)
|
|
2355
|
-
};
|
|
2356
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2357
|
-
switch (errorCode) {
|
|
2358
|
-
case "DirectConnectClientException":
|
|
2359
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2360
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2361
|
-
case "DirectConnectServerException":
|
|
2362
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2363
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2364
|
-
default:
|
|
2365
|
-
const parsedBody = parsedOutput.body;
|
|
2366
|
-
return throwDefaultError({
|
|
2367
|
-
output,
|
|
2368
|
-
parsedBody,
|
|
2369
|
-
errorCode
|
|
2370
|
-
});
|
|
2371
|
-
}
|
|
2372
|
-
}, "de_DescribeInterconnectsCommandError");
|
|
2373
1345
|
var de_DescribeLagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2374
1346
|
if (output.statusCode >= 300) {
|
|
2375
|
-
return
|
|
1347
|
+
return de_CommandError(output, context);
|
|
2376
1348
|
}
|
|
2377
1349
|
const data = await parseBody(output.body, context);
|
|
2378
1350
|
let contents = {};
|
|
@@ -2383,31 +1355,9 @@ var de_DescribeLagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2383
1355
|
};
|
|
2384
1356
|
return response;
|
|
2385
1357
|
}, "de_DescribeLagsCommand");
|
|
2386
|
-
var de_DescribeLagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2387
|
-
const parsedOutput = {
|
|
2388
|
-
...output,
|
|
2389
|
-
body: await parseErrorBody(output.body, context)
|
|
2390
|
-
};
|
|
2391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2392
|
-
switch (errorCode) {
|
|
2393
|
-
case "DirectConnectClientException":
|
|
2394
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2395
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2396
|
-
case "DirectConnectServerException":
|
|
2397
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2398
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2399
|
-
default:
|
|
2400
|
-
const parsedBody = parsedOutput.body;
|
|
2401
|
-
return throwDefaultError({
|
|
2402
|
-
output,
|
|
2403
|
-
parsedBody,
|
|
2404
|
-
errorCode
|
|
2405
|
-
});
|
|
2406
|
-
}
|
|
2407
|
-
}, "de_DescribeLagsCommandError");
|
|
2408
1358
|
var de_DescribeLoaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2409
1359
|
if (output.statusCode >= 300) {
|
|
2410
|
-
return
|
|
1360
|
+
return de_CommandError(output, context);
|
|
2411
1361
|
}
|
|
2412
1362
|
const data = await parseBody(output.body, context);
|
|
2413
1363
|
let contents = {};
|
|
@@ -2418,31 +1368,9 @@ var de_DescribeLoaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2418
1368
|
};
|
|
2419
1369
|
return response;
|
|
2420
1370
|
}, "de_DescribeLoaCommand");
|
|
2421
|
-
var de_DescribeLoaCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2422
|
-
const parsedOutput = {
|
|
2423
|
-
...output,
|
|
2424
|
-
body: await parseErrorBody(output.body, context)
|
|
2425
|
-
};
|
|
2426
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2427
|
-
switch (errorCode) {
|
|
2428
|
-
case "DirectConnectClientException":
|
|
2429
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2430
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2431
|
-
case "DirectConnectServerException":
|
|
2432
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2433
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2434
|
-
default:
|
|
2435
|
-
const parsedBody = parsedOutput.body;
|
|
2436
|
-
return throwDefaultError({
|
|
2437
|
-
output,
|
|
2438
|
-
parsedBody,
|
|
2439
|
-
errorCode
|
|
2440
|
-
});
|
|
2441
|
-
}
|
|
2442
|
-
}, "de_DescribeLoaCommandError");
|
|
2443
1371
|
var de_DescribeLocationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2444
1372
|
if (output.statusCode >= 300) {
|
|
2445
|
-
return
|
|
1373
|
+
return de_CommandError(output, context);
|
|
2446
1374
|
}
|
|
2447
1375
|
const data = await parseBody(output.body, context);
|
|
2448
1376
|
let contents = {};
|
|
@@ -2453,31 +1381,9 @@ var de_DescribeLocationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2453
1381
|
};
|
|
2454
1382
|
return response;
|
|
2455
1383
|
}, "de_DescribeLocationsCommand");
|
|
2456
|
-
var de_DescribeLocationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2457
|
-
const parsedOutput = {
|
|
2458
|
-
...output,
|
|
2459
|
-
body: await parseErrorBody(output.body, context)
|
|
2460
|
-
};
|
|
2461
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2462
|
-
switch (errorCode) {
|
|
2463
|
-
case "DirectConnectClientException":
|
|
2464
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2465
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2466
|
-
case "DirectConnectServerException":
|
|
2467
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2468
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2469
|
-
default:
|
|
2470
|
-
const parsedBody = parsedOutput.body;
|
|
2471
|
-
return throwDefaultError({
|
|
2472
|
-
output,
|
|
2473
|
-
parsedBody,
|
|
2474
|
-
errorCode
|
|
2475
|
-
});
|
|
2476
|
-
}
|
|
2477
|
-
}, "de_DescribeLocationsCommandError");
|
|
2478
1384
|
var de_DescribeRouterConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2479
1385
|
if (output.statusCode >= 300) {
|
|
2480
|
-
return
|
|
1386
|
+
return de_CommandError(output, context);
|
|
2481
1387
|
}
|
|
2482
1388
|
const data = await parseBody(output.body, context);
|
|
2483
1389
|
let contents = {};
|
|
@@ -2488,31 +1394,9 @@ var de_DescribeRouterConfigurationCommand = /* @__PURE__ */ __name(async (output
|
|
|
2488
1394
|
};
|
|
2489
1395
|
return response;
|
|
2490
1396
|
}, "de_DescribeRouterConfigurationCommand");
|
|
2491
|
-
var de_DescribeRouterConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2492
|
-
const parsedOutput = {
|
|
2493
|
-
...output,
|
|
2494
|
-
body: await parseErrorBody(output.body, context)
|
|
2495
|
-
};
|
|
2496
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2497
|
-
switch (errorCode) {
|
|
2498
|
-
case "DirectConnectClientException":
|
|
2499
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2500
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2501
|
-
case "DirectConnectServerException":
|
|
2502
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2503
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2504
|
-
default:
|
|
2505
|
-
const parsedBody = parsedOutput.body;
|
|
2506
|
-
return throwDefaultError({
|
|
2507
|
-
output,
|
|
2508
|
-
parsedBody,
|
|
2509
|
-
errorCode
|
|
2510
|
-
});
|
|
2511
|
-
}
|
|
2512
|
-
}, "de_DescribeRouterConfigurationCommandError");
|
|
2513
1397
|
var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2514
1398
|
if (output.statusCode >= 300) {
|
|
2515
|
-
return
|
|
1399
|
+
return de_CommandError(output, context);
|
|
2516
1400
|
}
|
|
2517
1401
|
const data = await parseBody(output.body, context);
|
|
2518
1402
|
let contents = {};
|
|
@@ -2523,66 +1407,22 @@ var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2523
1407
|
};
|
|
2524
1408
|
return response;
|
|
2525
1409
|
}, "de_DescribeTagsCommand");
|
|
2526
|
-
var de_DescribeTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2527
|
-
const parsedOutput = {
|
|
2528
|
-
...output,
|
|
2529
|
-
body: await parseErrorBody(output.body, context)
|
|
2530
|
-
};
|
|
2531
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2532
|
-
switch (errorCode) {
|
|
2533
|
-
case "DirectConnectClientException":
|
|
2534
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2535
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2536
|
-
case "DirectConnectServerException":
|
|
2537
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2538
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2539
|
-
default:
|
|
2540
|
-
const parsedBody = parsedOutput.body;
|
|
2541
|
-
return throwDefaultError({
|
|
2542
|
-
output,
|
|
2543
|
-
parsedBody,
|
|
2544
|
-
errorCode
|
|
2545
|
-
});
|
|
2546
|
-
}
|
|
2547
|
-
}, "de_DescribeTagsCommandError");
|
|
2548
1410
|
var de_DescribeVirtualGatewaysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2549
1411
|
if (output.statusCode >= 300) {
|
|
2550
|
-
return
|
|
1412
|
+
return de_CommandError(output, context);
|
|
2551
1413
|
}
|
|
2552
1414
|
const data = await parseBody(output.body, context);
|
|
2553
1415
|
let contents = {};
|
|
2554
1416
|
contents = (0, import_smithy_client._json)(data);
|
|
2555
1417
|
const response = {
|
|
2556
1418
|
$metadata: deserializeMetadata(output),
|
|
2557
|
-
...contents
|
|
2558
|
-
};
|
|
2559
|
-
return response;
|
|
2560
|
-
}, "de_DescribeVirtualGatewaysCommand");
|
|
2561
|
-
var de_DescribeVirtualGatewaysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2562
|
-
const parsedOutput = {
|
|
2563
|
-
...output,
|
|
2564
|
-
body: await parseErrorBody(output.body, context)
|
|
2565
|
-
};
|
|
2566
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2567
|
-
switch (errorCode) {
|
|
2568
|
-
case "DirectConnectClientException":
|
|
2569
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2570
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2571
|
-
case "DirectConnectServerException":
|
|
2572
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2573
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2574
|
-
default:
|
|
2575
|
-
const parsedBody = parsedOutput.body;
|
|
2576
|
-
return throwDefaultError({
|
|
2577
|
-
output,
|
|
2578
|
-
parsedBody,
|
|
2579
|
-
errorCode
|
|
2580
|
-
});
|
|
2581
|
-
}
|
|
2582
|
-
}, "de_DescribeVirtualGatewaysCommandError");
|
|
1419
|
+
...contents
|
|
1420
|
+
};
|
|
1421
|
+
return response;
|
|
1422
|
+
}, "de_DescribeVirtualGatewaysCommand");
|
|
2583
1423
|
var de_DescribeVirtualInterfacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2584
1424
|
if (output.statusCode >= 300) {
|
|
2585
|
-
return
|
|
1425
|
+
return de_CommandError(output, context);
|
|
2586
1426
|
}
|
|
2587
1427
|
const data = await parseBody(output.body, context);
|
|
2588
1428
|
let contents = {};
|
|
@@ -2593,31 +1433,9 @@ var de_DescribeVirtualInterfacesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2593
1433
|
};
|
|
2594
1434
|
return response;
|
|
2595
1435
|
}, "de_DescribeVirtualInterfacesCommand");
|
|
2596
|
-
var de_DescribeVirtualInterfacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2597
|
-
const parsedOutput = {
|
|
2598
|
-
...output,
|
|
2599
|
-
body: await parseErrorBody(output.body, context)
|
|
2600
|
-
};
|
|
2601
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2602
|
-
switch (errorCode) {
|
|
2603
|
-
case "DirectConnectClientException":
|
|
2604
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2605
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2606
|
-
case "DirectConnectServerException":
|
|
2607
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2608
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2609
|
-
default:
|
|
2610
|
-
const parsedBody = parsedOutput.body;
|
|
2611
|
-
return throwDefaultError({
|
|
2612
|
-
output,
|
|
2613
|
-
parsedBody,
|
|
2614
|
-
errorCode
|
|
2615
|
-
});
|
|
2616
|
-
}
|
|
2617
|
-
}, "de_DescribeVirtualInterfacesCommandError");
|
|
2618
1436
|
var de_DisassociateConnectionFromLagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2619
1437
|
if (output.statusCode >= 300) {
|
|
2620
|
-
return
|
|
1438
|
+
return de_CommandError(output, context);
|
|
2621
1439
|
}
|
|
2622
1440
|
const data = await parseBody(output.body, context);
|
|
2623
1441
|
let contents = {};
|
|
@@ -2628,31 +1446,9 @@ var de_DisassociateConnectionFromLagCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2628
1446
|
};
|
|
2629
1447
|
return response;
|
|
2630
1448
|
}, "de_DisassociateConnectionFromLagCommand");
|
|
2631
|
-
var de_DisassociateConnectionFromLagCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2632
|
-
const parsedOutput = {
|
|
2633
|
-
...output,
|
|
2634
|
-
body: await parseErrorBody(output.body, context)
|
|
2635
|
-
};
|
|
2636
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2637
|
-
switch (errorCode) {
|
|
2638
|
-
case "DirectConnectClientException":
|
|
2639
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2640
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2641
|
-
case "DirectConnectServerException":
|
|
2642
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2643
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2644
|
-
default:
|
|
2645
|
-
const parsedBody = parsedOutput.body;
|
|
2646
|
-
return throwDefaultError({
|
|
2647
|
-
output,
|
|
2648
|
-
parsedBody,
|
|
2649
|
-
errorCode
|
|
2650
|
-
});
|
|
2651
|
-
}
|
|
2652
|
-
}, "de_DisassociateConnectionFromLagCommandError");
|
|
2653
1449
|
var de_DisassociateMacSecKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2654
1450
|
if (output.statusCode >= 300) {
|
|
2655
|
-
return
|
|
1451
|
+
return de_CommandError(output, context);
|
|
2656
1452
|
}
|
|
2657
1453
|
const data = await parseBody(output.body, context);
|
|
2658
1454
|
let contents = {};
|
|
@@ -2663,31 +1459,9 @@ var de_DisassociateMacSecKeyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2663
1459
|
};
|
|
2664
1460
|
return response;
|
|
2665
1461
|
}, "de_DisassociateMacSecKeyCommand");
|
|
2666
|
-
var de_DisassociateMacSecKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2667
|
-
const parsedOutput = {
|
|
2668
|
-
...output,
|
|
2669
|
-
body: await parseErrorBody(output.body, context)
|
|
2670
|
-
};
|
|
2671
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2672
|
-
switch (errorCode) {
|
|
2673
|
-
case "DirectConnectClientException":
|
|
2674
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2675
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2676
|
-
case "DirectConnectServerException":
|
|
2677
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2678
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2679
|
-
default:
|
|
2680
|
-
const parsedBody = parsedOutput.body;
|
|
2681
|
-
return throwDefaultError({
|
|
2682
|
-
output,
|
|
2683
|
-
parsedBody,
|
|
2684
|
-
errorCode
|
|
2685
|
-
});
|
|
2686
|
-
}
|
|
2687
|
-
}, "de_DisassociateMacSecKeyCommandError");
|
|
2688
1462
|
var de_ListVirtualInterfaceTestHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2689
1463
|
if (output.statusCode >= 300) {
|
|
2690
|
-
return
|
|
1464
|
+
return de_CommandError(output, context);
|
|
2691
1465
|
}
|
|
2692
1466
|
const data = await parseBody(output.body, context);
|
|
2693
1467
|
let contents = {};
|
|
@@ -2698,31 +1472,9 @@ var de_ListVirtualInterfaceTestHistoryCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2698
1472
|
};
|
|
2699
1473
|
return response;
|
|
2700
1474
|
}, "de_ListVirtualInterfaceTestHistoryCommand");
|
|
2701
|
-
var de_ListVirtualInterfaceTestHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2702
|
-
const parsedOutput = {
|
|
2703
|
-
...output,
|
|
2704
|
-
body: await parseErrorBody(output.body, context)
|
|
2705
|
-
};
|
|
2706
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2707
|
-
switch (errorCode) {
|
|
2708
|
-
case "DirectConnectClientException":
|
|
2709
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2710
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2711
|
-
case "DirectConnectServerException":
|
|
2712
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2713
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2714
|
-
default:
|
|
2715
|
-
const parsedBody = parsedOutput.body;
|
|
2716
|
-
return throwDefaultError({
|
|
2717
|
-
output,
|
|
2718
|
-
parsedBody,
|
|
2719
|
-
errorCode
|
|
2720
|
-
});
|
|
2721
|
-
}
|
|
2722
|
-
}, "de_ListVirtualInterfaceTestHistoryCommandError");
|
|
2723
1475
|
var de_StartBgpFailoverTestCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2724
1476
|
if (output.statusCode >= 300) {
|
|
2725
|
-
return
|
|
1477
|
+
return de_CommandError(output, context);
|
|
2726
1478
|
}
|
|
2727
1479
|
const data = await parseBody(output.body, context);
|
|
2728
1480
|
let contents = {};
|
|
@@ -2733,31 +1485,9 @@ var de_StartBgpFailoverTestCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2733
1485
|
};
|
|
2734
1486
|
return response;
|
|
2735
1487
|
}, "de_StartBgpFailoverTestCommand");
|
|
2736
|
-
var de_StartBgpFailoverTestCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2737
|
-
const parsedOutput = {
|
|
2738
|
-
...output,
|
|
2739
|
-
body: await parseErrorBody(output.body, context)
|
|
2740
|
-
};
|
|
2741
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2742
|
-
switch (errorCode) {
|
|
2743
|
-
case "DirectConnectClientException":
|
|
2744
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2745
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2746
|
-
case "DirectConnectServerException":
|
|
2747
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2748
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2749
|
-
default:
|
|
2750
|
-
const parsedBody = parsedOutput.body;
|
|
2751
|
-
return throwDefaultError({
|
|
2752
|
-
output,
|
|
2753
|
-
parsedBody,
|
|
2754
|
-
errorCode
|
|
2755
|
-
});
|
|
2756
|
-
}
|
|
2757
|
-
}, "de_StartBgpFailoverTestCommandError");
|
|
2758
1488
|
var de_StopBgpFailoverTestCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2759
1489
|
if (output.statusCode >= 300) {
|
|
2760
|
-
return
|
|
1490
|
+
return de_CommandError(output, context);
|
|
2761
1491
|
}
|
|
2762
1492
|
const data = await parseBody(output.body, context);
|
|
2763
1493
|
let contents = {};
|
|
@@ -2768,31 +1498,9 @@ var de_StopBgpFailoverTestCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2768
1498
|
};
|
|
2769
1499
|
return response;
|
|
2770
1500
|
}, "de_StopBgpFailoverTestCommand");
|
|
2771
|
-
var de_StopBgpFailoverTestCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2772
|
-
const parsedOutput = {
|
|
2773
|
-
...output,
|
|
2774
|
-
body: await parseErrorBody(output.body, context)
|
|
2775
|
-
};
|
|
2776
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2777
|
-
switch (errorCode) {
|
|
2778
|
-
case "DirectConnectClientException":
|
|
2779
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2780
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2781
|
-
case "DirectConnectServerException":
|
|
2782
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2783
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2784
|
-
default:
|
|
2785
|
-
const parsedBody = parsedOutput.body;
|
|
2786
|
-
return throwDefaultError({
|
|
2787
|
-
output,
|
|
2788
|
-
parsedBody,
|
|
2789
|
-
errorCode
|
|
2790
|
-
});
|
|
2791
|
-
}
|
|
2792
|
-
}, "de_StopBgpFailoverTestCommandError");
|
|
2793
1501
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2794
1502
|
if (output.statusCode >= 300) {
|
|
2795
|
-
return
|
|
1503
|
+
return de_CommandError(output, context);
|
|
2796
1504
|
}
|
|
2797
1505
|
const data = await parseBody(output.body, context);
|
|
2798
1506
|
let contents = {};
|
|
@@ -2803,37 +1511,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2803
1511
|
};
|
|
2804
1512
|
return response;
|
|
2805
1513
|
}, "de_TagResourceCommand");
|
|
2806
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2807
|
-
const parsedOutput = {
|
|
2808
|
-
...output,
|
|
2809
|
-
body: await parseErrorBody(output.body, context)
|
|
2810
|
-
};
|
|
2811
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2812
|
-
switch (errorCode) {
|
|
2813
|
-
case "DirectConnectClientException":
|
|
2814
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2815
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2816
|
-
case "DirectConnectServerException":
|
|
2817
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2818
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2819
|
-
case "DuplicateTagKeysException":
|
|
2820
|
-
case "com.amazonaws.directconnect#DuplicateTagKeysException":
|
|
2821
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
2822
|
-
case "TooManyTagsException":
|
|
2823
|
-
case "com.amazonaws.directconnect#TooManyTagsException":
|
|
2824
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2825
|
-
default:
|
|
2826
|
-
const parsedBody = parsedOutput.body;
|
|
2827
|
-
return throwDefaultError({
|
|
2828
|
-
output,
|
|
2829
|
-
parsedBody,
|
|
2830
|
-
errorCode
|
|
2831
|
-
});
|
|
2832
|
-
}
|
|
2833
|
-
}, "de_TagResourceCommandError");
|
|
2834
1514
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2835
1515
|
if (output.statusCode >= 300) {
|
|
2836
|
-
return
|
|
1516
|
+
return de_CommandError(output, context);
|
|
2837
1517
|
}
|
|
2838
1518
|
const data = await parseBody(output.body, context);
|
|
2839
1519
|
let contents = {};
|
|
@@ -2844,31 +1524,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2844
1524
|
};
|
|
2845
1525
|
return response;
|
|
2846
1526
|
}, "de_UntagResourceCommand");
|
|
2847
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2848
|
-
const parsedOutput = {
|
|
2849
|
-
...output,
|
|
2850
|
-
body: await parseErrorBody(output.body, context)
|
|
2851
|
-
};
|
|
2852
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2853
|
-
switch (errorCode) {
|
|
2854
|
-
case "DirectConnectClientException":
|
|
2855
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2856
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2857
|
-
case "DirectConnectServerException":
|
|
2858
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2859
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2860
|
-
default:
|
|
2861
|
-
const parsedBody = parsedOutput.body;
|
|
2862
|
-
return throwDefaultError({
|
|
2863
|
-
output,
|
|
2864
|
-
parsedBody,
|
|
2865
|
-
errorCode
|
|
2866
|
-
});
|
|
2867
|
-
}
|
|
2868
|
-
}, "de_UntagResourceCommandError");
|
|
2869
1527
|
var de_UpdateConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2870
1528
|
if (output.statusCode >= 300) {
|
|
2871
|
-
return
|
|
1529
|
+
return de_CommandError(output, context);
|
|
2872
1530
|
}
|
|
2873
1531
|
const data = await parseBody(output.body, context);
|
|
2874
1532
|
let contents = {};
|
|
@@ -2879,31 +1537,9 @@ var de_UpdateConnectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2879
1537
|
};
|
|
2880
1538
|
return response;
|
|
2881
1539
|
}, "de_UpdateConnectionCommand");
|
|
2882
|
-
var de_UpdateConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2883
|
-
const parsedOutput = {
|
|
2884
|
-
...output,
|
|
2885
|
-
body: await parseErrorBody(output.body, context)
|
|
2886
|
-
};
|
|
2887
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2888
|
-
switch (errorCode) {
|
|
2889
|
-
case "DirectConnectClientException":
|
|
2890
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2891
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2892
|
-
case "DirectConnectServerException":
|
|
2893
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2894
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2895
|
-
default:
|
|
2896
|
-
const parsedBody = parsedOutput.body;
|
|
2897
|
-
return throwDefaultError({
|
|
2898
|
-
output,
|
|
2899
|
-
parsedBody,
|
|
2900
|
-
errorCode
|
|
2901
|
-
});
|
|
2902
|
-
}
|
|
2903
|
-
}, "de_UpdateConnectionCommandError");
|
|
2904
1540
|
var de_UpdateDirectConnectGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2905
1541
|
if (output.statusCode >= 300) {
|
|
2906
|
-
return
|
|
1542
|
+
return de_CommandError(output, context);
|
|
2907
1543
|
}
|
|
2908
1544
|
const data = await parseBody(output.body, context);
|
|
2909
1545
|
let contents = {};
|
|
@@ -2914,31 +1550,9 @@ var de_UpdateDirectConnectGatewayCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2914
1550
|
};
|
|
2915
1551
|
return response;
|
|
2916
1552
|
}, "de_UpdateDirectConnectGatewayCommand");
|
|
2917
|
-
var de_UpdateDirectConnectGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2918
|
-
const parsedOutput = {
|
|
2919
|
-
...output,
|
|
2920
|
-
body: await parseErrorBody(output.body, context)
|
|
2921
|
-
};
|
|
2922
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2923
|
-
switch (errorCode) {
|
|
2924
|
-
case "DirectConnectClientException":
|
|
2925
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2926
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2927
|
-
case "DirectConnectServerException":
|
|
2928
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2929
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2930
|
-
default:
|
|
2931
|
-
const parsedBody = parsedOutput.body;
|
|
2932
|
-
return throwDefaultError({
|
|
2933
|
-
output,
|
|
2934
|
-
parsedBody,
|
|
2935
|
-
errorCode
|
|
2936
|
-
});
|
|
2937
|
-
}
|
|
2938
|
-
}, "de_UpdateDirectConnectGatewayCommandError");
|
|
2939
1553
|
var de_UpdateDirectConnectGatewayAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2940
1554
|
if (output.statusCode >= 300) {
|
|
2941
|
-
return
|
|
1555
|
+
return de_CommandError(output, context);
|
|
2942
1556
|
}
|
|
2943
1557
|
const data = await parseBody(output.body, context);
|
|
2944
1558
|
let contents = {};
|
|
@@ -2949,31 +1563,9 @@ var de_UpdateDirectConnectGatewayAssociationCommand = /* @__PURE__ */ __name(asy
|
|
|
2949
1563
|
};
|
|
2950
1564
|
return response;
|
|
2951
1565
|
}, "de_UpdateDirectConnectGatewayAssociationCommand");
|
|
2952
|
-
var de_UpdateDirectConnectGatewayAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2953
|
-
const parsedOutput = {
|
|
2954
|
-
...output,
|
|
2955
|
-
body: await parseErrorBody(output.body, context)
|
|
2956
|
-
};
|
|
2957
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2958
|
-
switch (errorCode) {
|
|
2959
|
-
case "DirectConnectClientException":
|
|
2960
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2961
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2962
|
-
case "DirectConnectServerException":
|
|
2963
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2964
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2965
|
-
default:
|
|
2966
|
-
const parsedBody = parsedOutput.body;
|
|
2967
|
-
return throwDefaultError({
|
|
2968
|
-
output,
|
|
2969
|
-
parsedBody,
|
|
2970
|
-
errorCode
|
|
2971
|
-
});
|
|
2972
|
-
}
|
|
2973
|
-
}, "de_UpdateDirectConnectGatewayAssociationCommandError");
|
|
2974
1566
|
var de_UpdateLagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2975
1567
|
if (output.statusCode >= 300) {
|
|
2976
|
-
return
|
|
1568
|
+
return de_CommandError(output, context);
|
|
2977
1569
|
}
|
|
2978
1570
|
const data = await parseBody(output.body, context);
|
|
2979
1571
|
let contents = {};
|
|
@@ -2984,31 +1576,9 @@ var de_UpdateLagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2984
1576
|
};
|
|
2985
1577
|
return response;
|
|
2986
1578
|
}, "de_UpdateLagCommand");
|
|
2987
|
-
var de_UpdateLagCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2988
|
-
const parsedOutput = {
|
|
2989
|
-
...output,
|
|
2990
|
-
body: await parseErrorBody(output.body, context)
|
|
2991
|
-
};
|
|
2992
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2993
|
-
switch (errorCode) {
|
|
2994
|
-
case "DirectConnectClientException":
|
|
2995
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
2996
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
2997
|
-
case "DirectConnectServerException":
|
|
2998
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
2999
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
3000
|
-
default:
|
|
3001
|
-
const parsedBody = parsedOutput.body;
|
|
3002
|
-
return throwDefaultError({
|
|
3003
|
-
output,
|
|
3004
|
-
parsedBody,
|
|
3005
|
-
errorCode
|
|
3006
|
-
});
|
|
3007
|
-
}
|
|
3008
|
-
}, "de_UpdateLagCommandError");
|
|
3009
1579
|
var de_UpdateVirtualInterfaceAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3010
1580
|
if (output.statusCode >= 300) {
|
|
3011
|
-
return
|
|
1581
|
+
return de_CommandError(output, context);
|
|
3012
1582
|
}
|
|
3013
1583
|
const data = await parseBody(output.body, context);
|
|
3014
1584
|
let contents = {};
|
|
@@ -3019,7 +1589,7 @@ var de_UpdateVirtualInterfaceAttributesCommand = /* @__PURE__ */ __name(async (o
|
|
|
3019
1589
|
};
|
|
3020
1590
|
return response;
|
|
3021
1591
|
}, "de_UpdateVirtualInterfaceAttributesCommand");
|
|
3022
|
-
var
|
|
1592
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3023
1593
|
const parsedOutput = {
|
|
3024
1594
|
...output,
|
|
3025
1595
|
body: await parseErrorBody(output.body, context)
|
|
@@ -3032,6 +1602,12 @@ var de_UpdateVirtualInterfaceAttributesCommandError = /* @__PURE__ */ __name(asy
|
|
|
3032
1602
|
case "DirectConnectServerException":
|
|
3033
1603
|
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
3034
1604
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1605
|
+
case "DuplicateTagKeysException":
|
|
1606
|
+
case "com.amazonaws.directconnect#DuplicateTagKeysException":
|
|
1607
|
+
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
1608
|
+
case "TooManyTagsException":
|
|
1609
|
+
case "com.amazonaws.directconnect#TooManyTagsException":
|
|
1610
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3035
1611
|
default:
|
|
3036
1612
|
const parsedBody = parsedOutput.body;
|
|
3037
1613
|
return throwDefaultError({
|
|
@@ -3040,7 +1616,7 @@ var de_UpdateVirtualInterfaceAttributesCommandError = /* @__PURE__ */ __name(asy
|
|
|
3040
1616
|
errorCode
|
|
3041
1617
|
});
|
|
3042
1618
|
}
|
|
3043
|
-
}, "
|
|
1619
|
+
}, "de_CommandError");
|
|
3044
1620
|
var de_DirectConnectClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3045
1621
|
const body = parsedOutput.body;
|
|
3046
1622
|
const deserialized = (0, import_smithy_client._json)(body);
|