@aws-sdk/client-direct-connect 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +608 -691
- package/dist-es/protocols/Aws_json1_1.js +455 -538
- package/package.json +26 -26
|
@@ -654,8 +654,7 @@ const deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCommand
|
|
|
654
654
|
body: await parseBody(output.body, context),
|
|
655
655
|
};
|
|
656
656
|
let response;
|
|
657
|
-
|
|
658
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
657
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
659
658
|
switch (errorCode) {
|
|
660
659
|
case "DirectConnectClientException":
|
|
661
660
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -665,10 +664,12 @@ const deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalCommand
|
|
|
665
664
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
666
665
|
default:
|
|
667
666
|
const parsedBody = parsedOutput.body;
|
|
667
|
+
const $metadata = deserializeMetadata(output);
|
|
668
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
668
669
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
669
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
670
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
670
671
|
$fault: "client",
|
|
671
|
-
$metadata
|
|
672
|
+
$metadata,
|
|
672
673
|
});
|
|
673
674
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
674
675
|
}
|
|
@@ -693,8 +694,7 @@ const deserializeAws_json1_1AllocateConnectionOnInterconnectCommandError = async
|
|
|
693
694
|
body: await parseBody(output.body, context),
|
|
694
695
|
};
|
|
695
696
|
let response;
|
|
696
|
-
|
|
697
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
697
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
698
698
|
switch (errorCode) {
|
|
699
699
|
case "DirectConnectClientException":
|
|
700
700
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -704,10 +704,12 @@ const deserializeAws_json1_1AllocateConnectionOnInterconnectCommandError = async
|
|
|
704
704
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
705
705
|
default:
|
|
706
706
|
const parsedBody = parsedOutput.body;
|
|
707
|
+
const $metadata = deserializeMetadata(output);
|
|
708
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
707
709
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
708
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
710
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
709
711
|
$fault: "client",
|
|
710
|
-
$metadata
|
|
712
|
+
$metadata,
|
|
711
713
|
});
|
|
712
714
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
713
715
|
}
|
|
@@ -732,8 +734,7 @@ const deserializeAws_json1_1AllocateHostedConnectionCommandError = async (output
|
|
|
732
734
|
body: await parseBody(output.body, context),
|
|
733
735
|
};
|
|
734
736
|
let response;
|
|
735
|
-
|
|
736
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
737
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
737
738
|
switch (errorCode) {
|
|
738
739
|
case "DirectConnectClientException":
|
|
739
740
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -749,10 +750,12 @@ const deserializeAws_json1_1AllocateHostedConnectionCommandError = async (output
|
|
|
749
750
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
750
751
|
default:
|
|
751
752
|
const parsedBody = parsedOutput.body;
|
|
753
|
+
const $metadata = deserializeMetadata(output);
|
|
754
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
752
755
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
753
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
756
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
754
757
|
$fault: "client",
|
|
755
|
-
$metadata
|
|
758
|
+
$metadata,
|
|
756
759
|
});
|
|
757
760
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
758
761
|
}
|
|
@@ -777,8 +780,7 @@ const deserializeAws_json1_1AllocatePrivateVirtualInterfaceCommandError = async
|
|
|
777
780
|
body: await parseBody(output.body, context),
|
|
778
781
|
};
|
|
779
782
|
let response;
|
|
780
|
-
|
|
781
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
782
784
|
switch (errorCode) {
|
|
783
785
|
case "DirectConnectClientException":
|
|
784
786
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -794,10 +796,12 @@ const deserializeAws_json1_1AllocatePrivateVirtualInterfaceCommandError = async
|
|
|
794
796
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
795
797
|
default:
|
|
796
798
|
const parsedBody = parsedOutput.body;
|
|
799
|
+
const $metadata = deserializeMetadata(output);
|
|
800
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
797
801
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
798
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
802
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
799
803
|
$fault: "client",
|
|
800
|
-
$metadata
|
|
804
|
+
$metadata,
|
|
801
805
|
});
|
|
802
806
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
803
807
|
}
|
|
@@ -822,8 +826,7 @@ const deserializeAws_json1_1AllocatePublicVirtualInterfaceCommandError = async (
|
|
|
822
826
|
body: await parseBody(output.body, context),
|
|
823
827
|
};
|
|
824
828
|
let response;
|
|
825
|
-
|
|
826
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
829
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
827
830
|
switch (errorCode) {
|
|
828
831
|
case "DirectConnectClientException":
|
|
829
832
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -839,10 +842,12 @@ const deserializeAws_json1_1AllocatePublicVirtualInterfaceCommandError = async (
|
|
|
839
842
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
840
843
|
default:
|
|
841
844
|
const parsedBody = parsedOutput.body;
|
|
845
|
+
const $metadata = deserializeMetadata(output);
|
|
846
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
842
847
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
843
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
848
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
844
849
|
$fault: "client",
|
|
845
|
-
$metadata
|
|
850
|
+
$metadata,
|
|
846
851
|
});
|
|
847
852
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
848
853
|
}
|
|
@@ -867,8 +872,7 @@ const deserializeAws_json1_1AllocateTransitVirtualInterfaceCommandError = async
|
|
|
867
872
|
body: await parseBody(output.body, context),
|
|
868
873
|
};
|
|
869
874
|
let response;
|
|
870
|
-
|
|
871
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
875
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
872
876
|
switch (errorCode) {
|
|
873
877
|
case "DirectConnectClientException":
|
|
874
878
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -884,10 +888,12 @@ const deserializeAws_json1_1AllocateTransitVirtualInterfaceCommandError = async
|
|
|
884
888
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
885
889
|
default:
|
|
886
890
|
const parsedBody = parsedOutput.body;
|
|
891
|
+
const $metadata = deserializeMetadata(output);
|
|
892
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
887
893
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
888
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
894
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
889
895
|
$fault: "client",
|
|
890
|
-
$metadata
|
|
896
|
+
$metadata,
|
|
891
897
|
});
|
|
892
898
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
893
899
|
}
|
|
@@ -912,8 +918,7 @@ const deserializeAws_json1_1AssociateConnectionWithLagCommandError = async (outp
|
|
|
912
918
|
body: await parseBody(output.body, context),
|
|
913
919
|
};
|
|
914
920
|
let response;
|
|
915
|
-
|
|
916
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
917
922
|
switch (errorCode) {
|
|
918
923
|
case "DirectConnectClientException":
|
|
919
924
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -923,10 +928,12 @@ const deserializeAws_json1_1AssociateConnectionWithLagCommandError = async (outp
|
|
|
923
928
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
924
929
|
default:
|
|
925
930
|
const parsedBody = parsedOutput.body;
|
|
931
|
+
const $metadata = deserializeMetadata(output);
|
|
932
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
926
933
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
927
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
934
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
928
935
|
$fault: "client",
|
|
929
|
-
$metadata
|
|
936
|
+
$metadata,
|
|
930
937
|
});
|
|
931
938
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
932
939
|
}
|
|
@@ -951,8 +958,7 @@ const deserializeAws_json1_1AssociateHostedConnectionCommandError = async (outpu
|
|
|
951
958
|
body: await parseBody(output.body, context),
|
|
952
959
|
};
|
|
953
960
|
let response;
|
|
954
|
-
|
|
955
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
961
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
956
962
|
switch (errorCode) {
|
|
957
963
|
case "DirectConnectClientException":
|
|
958
964
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -962,10 +968,12 @@ const deserializeAws_json1_1AssociateHostedConnectionCommandError = async (outpu
|
|
|
962
968
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
963
969
|
default:
|
|
964
970
|
const parsedBody = parsedOutput.body;
|
|
971
|
+
const $metadata = deserializeMetadata(output);
|
|
972
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
965
973
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
966
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
974
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
967
975
|
$fault: "client",
|
|
968
|
-
$metadata
|
|
976
|
+
$metadata,
|
|
969
977
|
});
|
|
970
978
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
971
979
|
}
|
|
@@ -990,8 +998,7 @@ const deserializeAws_json1_1AssociateMacSecKeyCommandError = async (output, cont
|
|
|
990
998
|
body: await parseBody(output.body, context),
|
|
991
999
|
};
|
|
992
1000
|
let response;
|
|
993
|
-
|
|
994
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1001
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
995
1002
|
switch (errorCode) {
|
|
996
1003
|
case "DirectConnectClientException":
|
|
997
1004
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1001,10 +1008,12 @@ const deserializeAws_json1_1AssociateMacSecKeyCommandError = async (output, cont
|
|
|
1001
1008
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1002
1009
|
default:
|
|
1003
1010
|
const parsedBody = parsedOutput.body;
|
|
1011
|
+
const $metadata = deserializeMetadata(output);
|
|
1012
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1004
1013
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1005
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1014
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1006
1015
|
$fault: "client",
|
|
1007
|
-
$metadata
|
|
1016
|
+
$metadata,
|
|
1008
1017
|
});
|
|
1009
1018
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1010
1019
|
}
|
|
@@ -1029,8 +1038,7 @@ const deserializeAws_json1_1AssociateVirtualInterfaceCommandError = async (outpu
|
|
|
1029
1038
|
body: await parseBody(output.body, context),
|
|
1030
1039
|
};
|
|
1031
1040
|
let response;
|
|
1032
|
-
|
|
1033
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1041
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1034
1042
|
switch (errorCode) {
|
|
1035
1043
|
case "DirectConnectClientException":
|
|
1036
1044
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1040,10 +1048,12 @@ const deserializeAws_json1_1AssociateVirtualInterfaceCommandError = async (outpu
|
|
|
1040
1048
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1041
1049
|
default:
|
|
1042
1050
|
const parsedBody = parsedOutput.body;
|
|
1051
|
+
const $metadata = deserializeMetadata(output);
|
|
1052
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1043
1053
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1044
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1054
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1045
1055
|
$fault: "client",
|
|
1046
|
-
$metadata
|
|
1056
|
+
$metadata,
|
|
1047
1057
|
});
|
|
1048
1058
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1049
1059
|
}
|
|
@@ -1068,8 +1078,7 @@ const deserializeAws_json1_1ConfirmConnectionCommandError = async (output, conte
|
|
|
1068
1078
|
body: await parseBody(output.body, context),
|
|
1069
1079
|
};
|
|
1070
1080
|
let response;
|
|
1071
|
-
|
|
1072
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1081
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1073
1082
|
switch (errorCode) {
|
|
1074
1083
|
case "DirectConnectClientException":
|
|
1075
1084
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1079,10 +1088,12 @@ const deserializeAws_json1_1ConfirmConnectionCommandError = async (output, conte
|
|
|
1079
1088
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1080
1089
|
default:
|
|
1081
1090
|
const parsedBody = parsedOutput.body;
|
|
1091
|
+
const $metadata = deserializeMetadata(output);
|
|
1092
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1082
1093
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1083
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1094
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1084
1095
|
$fault: "client",
|
|
1085
|
-
$metadata
|
|
1096
|
+
$metadata,
|
|
1086
1097
|
});
|
|
1087
1098
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1088
1099
|
}
|
|
@@ -1107,8 +1118,7 @@ const deserializeAws_json1_1ConfirmCustomerAgreementCommandError = async (output
|
|
|
1107
1118
|
body: await parseBody(output.body, context),
|
|
1108
1119
|
};
|
|
1109
1120
|
let response;
|
|
1110
|
-
|
|
1111
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1121
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1112
1122
|
switch (errorCode) {
|
|
1113
1123
|
case "DirectConnectClientException":
|
|
1114
1124
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1118,10 +1128,12 @@ const deserializeAws_json1_1ConfirmCustomerAgreementCommandError = async (output
|
|
|
1118
1128
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1119
1129
|
default:
|
|
1120
1130
|
const parsedBody = parsedOutput.body;
|
|
1131
|
+
const $metadata = deserializeMetadata(output);
|
|
1132
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1121
1133
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1122
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1134
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1123
1135
|
$fault: "client",
|
|
1124
|
-
$metadata
|
|
1136
|
+
$metadata,
|
|
1125
1137
|
});
|
|
1126
1138
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1127
1139
|
}
|
|
@@ -1146,8 +1158,7 @@ const deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommandError = async (
|
|
|
1146
1158
|
body: await parseBody(output.body, context),
|
|
1147
1159
|
};
|
|
1148
1160
|
let response;
|
|
1149
|
-
|
|
1150
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
1162
|
switch (errorCode) {
|
|
1152
1163
|
case "DirectConnectClientException":
|
|
1153
1164
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1157,10 +1168,12 @@ const deserializeAws_json1_1ConfirmPrivateVirtualInterfaceCommandError = async (
|
|
|
1157
1168
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1158
1169
|
default:
|
|
1159
1170
|
const parsedBody = parsedOutput.body;
|
|
1171
|
+
const $metadata = deserializeMetadata(output);
|
|
1172
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1160
1173
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1161
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1174
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1162
1175
|
$fault: "client",
|
|
1163
|
-
$metadata
|
|
1176
|
+
$metadata,
|
|
1164
1177
|
});
|
|
1165
1178
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1166
1179
|
}
|
|
@@ -1185,8 +1198,7 @@ const deserializeAws_json1_1ConfirmPublicVirtualInterfaceCommandError = async (o
|
|
|
1185
1198
|
body: await parseBody(output.body, context),
|
|
1186
1199
|
};
|
|
1187
1200
|
let response;
|
|
1188
|
-
|
|
1189
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
1202
|
switch (errorCode) {
|
|
1191
1203
|
case "DirectConnectClientException":
|
|
1192
1204
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1196,10 +1208,12 @@ const deserializeAws_json1_1ConfirmPublicVirtualInterfaceCommandError = async (o
|
|
|
1196
1208
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1197
1209
|
default:
|
|
1198
1210
|
const parsedBody = parsedOutput.body;
|
|
1211
|
+
const $metadata = deserializeMetadata(output);
|
|
1212
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1199
1213
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1200
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1214
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1201
1215
|
$fault: "client",
|
|
1202
|
-
$metadata
|
|
1216
|
+
$metadata,
|
|
1203
1217
|
});
|
|
1204
1218
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1205
1219
|
}
|
|
@@ -1224,8 +1238,7 @@ const deserializeAws_json1_1ConfirmTransitVirtualInterfaceCommandError = async (
|
|
|
1224
1238
|
body: await parseBody(output.body, context),
|
|
1225
1239
|
};
|
|
1226
1240
|
let response;
|
|
1227
|
-
|
|
1228
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1241
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1229
1242
|
switch (errorCode) {
|
|
1230
1243
|
case "DirectConnectClientException":
|
|
1231
1244
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1235,10 +1248,12 @@ const deserializeAws_json1_1ConfirmTransitVirtualInterfaceCommandError = async (
|
|
|
1235
1248
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1236
1249
|
default:
|
|
1237
1250
|
const parsedBody = parsedOutput.body;
|
|
1251
|
+
const $metadata = deserializeMetadata(output);
|
|
1252
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1238
1253
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1239
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1254
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1240
1255
|
$fault: "client",
|
|
1241
|
-
$metadata
|
|
1256
|
+
$metadata,
|
|
1242
1257
|
});
|
|
1243
1258
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1244
1259
|
}
|
|
@@ -1263,8 +1278,7 @@ const deserializeAws_json1_1CreateBGPPeerCommandError = async (output, context)
|
|
|
1263
1278
|
body: await parseBody(output.body, context),
|
|
1264
1279
|
};
|
|
1265
1280
|
let response;
|
|
1266
|
-
|
|
1267
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1281
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1268
1282
|
switch (errorCode) {
|
|
1269
1283
|
case "DirectConnectClientException":
|
|
1270
1284
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1274,10 +1288,12 @@ const deserializeAws_json1_1CreateBGPPeerCommandError = async (output, context)
|
|
|
1274
1288
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1275
1289
|
default:
|
|
1276
1290
|
const parsedBody = parsedOutput.body;
|
|
1291
|
+
const $metadata = deserializeMetadata(output);
|
|
1292
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1277
1293
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1278
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1294
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1279
1295
|
$fault: "client",
|
|
1280
|
-
$metadata
|
|
1296
|
+
$metadata,
|
|
1281
1297
|
});
|
|
1282
1298
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1283
1299
|
}
|
|
@@ -1302,8 +1318,7 @@ const deserializeAws_json1_1CreateConnectionCommandError = async (output, contex
|
|
|
1302
1318
|
body: await parseBody(output.body, context),
|
|
1303
1319
|
};
|
|
1304
1320
|
let response;
|
|
1305
|
-
|
|
1306
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1321
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
1322
|
switch (errorCode) {
|
|
1308
1323
|
case "DirectConnectClientException":
|
|
1309
1324
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1319,10 +1334,12 @@ const deserializeAws_json1_1CreateConnectionCommandError = async (output, contex
|
|
|
1319
1334
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1320
1335
|
default:
|
|
1321
1336
|
const parsedBody = parsedOutput.body;
|
|
1337
|
+
const $metadata = deserializeMetadata(output);
|
|
1338
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1322
1339
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1323
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1340
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1324
1341
|
$fault: "client",
|
|
1325
|
-
$metadata
|
|
1342
|
+
$metadata,
|
|
1326
1343
|
});
|
|
1327
1344
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1328
1345
|
}
|
|
@@ -1347,8 +1364,7 @@ const deserializeAws_json1_1CreateDirectConnectGatewayCommandError = async (outp
|
|
|
1347
1364
|
body: await parseBody(output.body, context),
|
|
1348
1365
|
};
|
|
1349
1366
|
let response;
|
|
1350
|
-
|
|
1351
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1367
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1352
1368
|
switch (errorCode) {
|
|
1353
1369
|
case "DirectConnectClientException":
|
|
1354
1370
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1358,10 +1374,12 @@ const deserializeAws_json1_1CreateDirectConnectGatewayCommandError = async (outp
|
|
|
1358
1374
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1359
1375
|
default:
|
|
1360
1376
|
const parsedBody = parsedOutput.body;
|
|
1377
|
+
const $metadata = deserializeMetadata(output);
|
|
1378
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1361
1379
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1362
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1380
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1363
1381
|
$fault: "client",
|
|
1364
|
-
$metadata
|
|
1382
|
+
$metadata,
|
|
1365
1383
|
});
|
|
1366
1384
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1367
1385
|
}
|
|
@@ -1386,8 +1404,7 @@ const deserializeAws_json1_1CreateDirectConnectGatewayAssociationCommandError =
|
|
|
1386
1404
|
body: await parseBody(output.body, context),
|
|
1387
1405
|
};
|
|
1388
1406
|
let response;
|
|
1389
|
-
|
|
1390
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1407
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1391
1408
|
switch (errorCode) {
|
|
1392
1409
|
case "DirectConnectClientException":
|
|
1393
1410
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1397,10 +1414,12 @@ const deserializeAws_json1_1CreateDirectConnectGatewayAssociationCommandError =
|
|
|
1397
1414
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1398
1415
|
default:
|
|
1399
1416
|
const parsedBody = parsedOutput.body;
|
|
1417
|
+
const $metadata = deserializeMetadata(output);
|
|
1418
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1400
1419
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1401
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1420
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1402
1421
|
$fault: "client",
|
|
1403
|
-
$metadata
|
|
1422
|
+
$metadata,
|
|
1404
1423
|
});
|
|
1405
1424
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1406
1425
|
}
|
|
@@ -1425,8 +1444,7 @@ const deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalCommand
|
|
|
1425
1444
|
body: await parseBody(output.body, context),
|
|
1426
1445
|
};
|
|
1427
1446
|
let response;
|
|
1428
|
-
|
|
1429
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1447
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1430
1448
|
switch (errorCode) {
|
|
1431
1449
|
case "DirectConnectClientException":
|
|
1432
1450
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1436,10 +1454,12 @@ const deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalCommand
|
|
|
1436
1454
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1437
1455
|
default:
|
|
1438
1456
|
const parsedBody = parsedOutput.body;
|
|
1457
|
+
const $metadata = deserializeMetadata(output);
|
|
1458
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1439
1459
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1440
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1460
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1441
1461
|
$fault: "client",
|
|
1442
|
-
$metadata
|
|
1462
|
+
$metadata,
|
|
1443
1463
|
});
|
|
1444
1464
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1445
1465
|
}
|
|
@@ -1464,8 +1484,7 @@ const deserializeAws_json1_1CreateInterconnectCommandError = async (output, cont
|
|
|
1464
1484
|
body: await parseBody(output.body, context),
|
|
1465
1485
|
};
|
|
1466
1486
|
let response;
|
|
1467
|
-
|
|
1468
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1487
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1469
1488
|
switch (errorCode) {
|
|
1470
1489
|
case "DirectConnectClientException":
|
|
1471
1490
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1481,10 +1500,12 @@ const deserializeAws_json1_1CreateInterconnectCommandError = async (output, cont
|
|
|
1481
1500
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1482
1501
|
default:
|
|
1483
1502
|
const parsedBody = parsedOutput.body;
|
|
1503
|
+
const $metadata = deserializeMetadata(output);
|
|
1504
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1484
1505
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1485
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1506
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1486
1507
|
$fault: "client",
|
|
1487
|
-
$metadata
|
|
1508
|
+
$metadata,
|
|
1488
1509
|
});
|
|
1489
1510
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1490
1511
|
}
|
|
@@ -1509,8 +1530,7 @@ const deserializeAws_json1_1CreateLagCommandError = async (output, context) => {
|
|
|
1509
1530
|
body: await parseBody(output.body, context),
|
|
1510
1531
|
};
|
|
1511
1532
|
let response;
|
|
1512
|
-
|
|
1513
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1533
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1514
1534
|
switch (errorCode) {
|
|
1515
1535
|
case "DirectConnectClientException":
|
|
1516
1536
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1526,10 +1546,12 @@ const deserializeAws_json1_1CreateLagCommandError = async (output, context) => {
|
|
|
1526
1546
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1527
1547
|
default:
|
|
1528
1548
|
const parsedBody = parsedOutput.body;
|
|
1549
|
+
const $metadata = deserializeMetadata(output);
|
|
1550
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1529
1551
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1530
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1552
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1531
1553
|
$fault: "client",
|
|
1532
|
-
$metadata
|
|
1554
|
+
$metadata,
|
|
1533
1555
|
});
|
|
1534
1556
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1535
1557
|
}
|
|
@@ -1554,8 +1576,7 @@ const deserializeAws_json1_1CreatePrivateVirtualInterfaceCommandError = async (o
|
|
|
1554
1576
|
body: await parseBody(output.body, context),
|
|
1555
1577
|
};
|
|
1556
1578
|
let response;
|
|
1557
|
-
|
|
1558
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1559
1580
|
switch (errorCode) {
|
|
1560
1581
|
case "DirectConnectClientException":
|
|
1561
1582
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1571,10 +1592,12 @@ const deserializeAws_json1_1CreatePrivateVirtualInterfaceCommandError = async (o
|
|
|
1571
1592
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1572
1593
|
default:
|
|
1573
1594
|
const parsedBody = parsedOutput.body;
|
|
1595
|
+
const $metadata = deserializeMetadata(output);
|
|
1596
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1574
1597
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1575
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1598
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1576
1599
|
$fault: "client",
|
|
1577
|
-
$metadata
|
|
1600
|
+
$metadata,
|
|
1578
1601
|
});
|
|
1579
1602
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1580
1603
|
}
|
|
@@ -1599,8 +1622,7 @@ const deserializeAws_json1_1CreatePublicVirtualInterfaceCommandError = async (ou
|
|
|
1599
1622
|
body: await parseBody(output.body, context),
|
|
1600
1623
|
};
|
|
1601
1624
|
let response;
|
|
1602
|
-
|
|
1603
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1625
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1604
1626
|
switch (errorCode) {
|
|
1605
1627
|
case "DirectConnectClientException":
|
|
1606
1628
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1616,10 +1638,12 @@ const deserializeAws_json1_1CreatePublicVirtualInterfaceCommandError = async (ou
|
|
|
1616
1638
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1617
1639
|
default:
|
|
1618
1640
|
const parsedBody = parsedOutput.body;
|
|
1641
|
+
const $metadata = deserializeMetadata(output);
|
|
1642
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1619
1643
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1620
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1644
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1621
1645
|
$fault: "client",
|
|
1622
|
-
$metadata
|
|
1646
|
+
$metadata,
|
|
1623
1647
|
});
|
|
1624
1648
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1625
1649
|
}
|
|
@@ -1644,8 +1668,7 @@ const deserializeAws_json1_1CreateTransitVirtualInterfaceCommandError = async (o
|
|
|
1644
1668
|
body: await parseBody(output.body, context),
|
|
1645
1669
|
};
|
|
1646
1670
|
let response;
|
|
1647
|
-
|
|
1648
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1671
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1649
1672
|
switch (errorCode) {
|
|
1650
1673
|
case "DirectConnectClientException":
|
|
1651
1674
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1661,10 +1684,12 @@ const deserializeAws_json1_1CreateTransitVirtualInterfaceCommandError = async (o
|
|
|
1661
1684
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1662
1685
|
default:
|
|
1663
1686
|
const parsedBody = parsedOutput.body;
|
|
1687
|
+
const $metadata = deserializeMetadata(output);
|
|
1688
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1664
1689
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1665
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1690
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1666
1691
|
$fault: "client",
|
|
1667
|
-
$metadata
|
|
1692
|
+
$metadata,
|
|
1668
1693
|
});
|
|
1669
1694
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1670
1695
|
}
|
|
@@ -1689,8 +1714,7 @@ const deserializeAws_json1_1DeleteBGPPeerCommandError = async (output, context)
|
|
|
1689
1714
|
body: await parseBody(output.body, context),
|
|
1690
1715
|
};
|
|
1691
1716
|
let response;
|
|
1692
|
-
|
|
1693
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1717
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
1718
|
switch (errorCode) {
|
|
1695
1719
|
case "DirectConnectClientException":
|
|
1696
1720
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1700,10 +1724,12 @@ const deserializeAws_json1_1DeleteBGPPeerCommandError = async (output, context)
|
|
|
1700
1724
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1701
1725
|
default:
|
|
1702
1726
|
const parsedBody = parsedOutput.body;
|
|
1727
|
+
const $metadata = deserializeMetadata(output);
|
|
1728
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1703
1729
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1704
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1730
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1705
1731
|
$fault: "client",
|
|
1706
|
-
$metadata
|
|
1732
|
+
$metadata,
|
|
1707
1733
|
});
|
|
1708
1734
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1709
1735
|
}
|
|
@@ -1728,8 +1754,7 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1728
1754
|
body: await parseBody(output.body, context),
|
|
1729
1755
|
};
|
|
1730
1756
|
let response;
|
|
1731
|
-
|
|
1732
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1757
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1733
1758
|
switch (errorCode) {
|
|
1734
1759
|
case "DirectConnectClientException":
|
|
1735
1760
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1739,10 +1764,12 @@ const deserializeAws_json1_1DeleteConnectionCommandError = async (output, contex
|
|
|
1739
1764
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1740
1765
|
default:
|
|
1741
1766
|
const parsedBody = parsedOutput.body;
|
|
1767
|
+
const $metadata = deserializeMetadata(output);
|
|
1768
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1742
1769
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1743
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1770
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1744
1771
|
$fault: "client",
|
|
1745
|
-
$metadata
|
|
1772
|
+
$metadata,
|
|
1746
1773
|
});
|
|
1747
1774
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1748
1775
|
}
|
|
@@ -1767,8 +1794,7 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayCommandError = async (outp
|
|
|
1767
1794
|
body: await parseBody(output.body, context),
|
|
1768
1795
|
};
|
|
1769
1796
|
let response;
|
|
1770
|
-
|
|
1771
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1797
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1772
1798
|
switch (errorCode) {
|
|
1773
1799
|
case "DirectConnectClientException":
|
|
1774
1800
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1778,10 +1804,12 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayCommandError = async (outp
|
|
|
1778
1804
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1779
1805
|
default:
|
|
1780
1806
|
const parsedBody = parsedOutput.body;
|
|
1807
|
+
const $metadata = deserializeMetadata(output);
|
|
1808
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1781
1809
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1782
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1810
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1783
1811
|
$fault: "client",
|
|
1784
|
-
$metadata
|
|
1812
|
+
$metadata,
|
|
1785
1813
|
});
|
|
1786
1814
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1787
1815
|
}
|
|
@@ -1806,8 +1834,7 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationCommandError =
|
|
|
1806
1834
|
body: await parseBody(output.body, context),
|
|
1807
1835
|
};
|
|
1808
1836
|
let response;
|
|
1809
|
-
|
|
1810
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1837
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1811
1838
|
switch (errorCode) {
|
|
1812
1839
|
case "DirectConnectClientException":
|
|
1813
1840
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1817,10 +1844,12 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationCommandError =
|
|
|
1817
1844
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1818
1845
|
default:
|
|
1819
1846
|
const parsedBody = parsedOutput.body;
|
|
1847
|
+
const $metadata = deserializeMetadata(output);
|
|
1848
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1820
1849
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1821
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1850
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1822
1851
|
$fault: "client",
|
|
1823
|
-
$metadata
|
|
1852
|
+
$metadata,
|
|
1824
1853
|
});
|
|
1825
1854
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1826
1855
|
}
|
|
@@ -1845,8 +1874,7 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalCommand
|
|
|
1845
1874
|
body: await parseBody(output.body, context),
|
|
1846
1875
|
};
|
|
1847
1876
|
let response;
|
|
1848
|
-
|
|
1849
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1877
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1850
1878
|
switch (errorCode) {
|
|
1851
1879
|
case "DirectConnectClientException":
|
|
1852
1880
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1856,10 +1884,12 @@ const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalCommand
|
|
|
1856
1884
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1857
1885
|
default:
|
|
1858
1886
|
const parsedBody = parsedOutput.body;
|
|
1887
|
+
const $metadata = deserializeMetadata(output);
|
|
1888
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1859
1889
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1860
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1890
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1861
1891
|
$fault: "client",
|
|
1862
|
-
$metadata
|
|
1892
|
+
$metadata,
|
|
1863
1893
|
});
|
|
1864
1894
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1865
1895
|
}
|
|
@@ -1884,8 +1914,7 @@ const deserializeAws_json1_1DeleteInterconnectCommandError = async (output, cont
|
|
|
1884
1914
|
body: await parseBody(output.body, context),
|
|
1885
1915
|
};
|
|
1886
1916
|
let response;
|
|
1887
|
-
|
|
1888
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1917
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1889
1918
|
switch (errorCode) {
|
|
1890
1919
|
case "DirectConnectClientException":
|
|
1891
1920
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1895,10 +1924,12 @@ const deserializeAws_json1_1DeleteInterconnectCommandError = async (output, cont
|
|
|
1895
1924
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1896
1925
|
default:
|
|
1897
1926
|
const parsedBody = parsedOutput.body;
|
|
1927
|
+
const $metadata = deserializeMetadata(output);
|
|
1928
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1898
1929
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1899
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1930
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1900
1931
|
$fault: "client",
|
|
1901
|
-
$metadata
|
|
1932
|
+
$metadata,
|
|
1902
1933
|
});
|
|
1903
1934
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1904
1935
|
}
|
|
@@ -1923,8 +1954,7 @@ const deserializeAws_json1_1DeleteLagCommandError = async (output, context) => {
|
|
|
1923
1954
|
body: await parseBody(output.body, context),
|
|
1924
1955
|
};
|
|
1925
1956
|
let response;
|
|
1926
|
-
|
|
1927
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1928
1958
|
switch (errorCode) {
|
|
1929
1959
|
case "DirectConnectClientException":
|
|
1930
1960
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1934,10 +1964,12 @@ const deserializeAws_json1_1DeleteLagCommandError = async (output, context) => {
|
|
|
1934
1964
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1935
1965
|
default:
|
|
1936
1966
|
const parsedBody = parsedOutput.body;
|
|
1967
|
+
const $metadata = deserializeMetadata(output);
|
|
1968
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1937
1969
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1938
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1970
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1939
1971
|
$fault: "client",
|
|
1940
|
-
$metadata
|
|
1972
|
+
$metadata,
|
|
1941
1973
|
});
|
|
1942
1974
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1943
1975
|
}
|
|
@@ -1962,8 +1994,7 @@ const deserializeAws_json1_1DeleteVirtualInterfaceCommandError = async (output,
|
|
|
1962
1994
|
body: await parseBody(output.body, context),
|
|
1963
1995
|
};
|
|
1964
1996
|
let response;
|
|
1965
|
-
|
|
1966
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1997
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1967
1998
|
switch (errorCode) {
|
|
1968
1999
|
case "DirectConnectClientException":
|
|
1969
2000
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1973,10 +2004,12 @@ const deserializeAws_json1_1DeleteVirtualInterfaceCommandError = async (output,
|
|
|
1973
2004
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
1974
2005
|
default:
|
|
1975
2006
|
const parsedBody = parsedOutput.body;
|
|
2007
|
+
const $metadata = deserializeMetadata(output);
|
|
2008
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1976
2009
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
1977
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2010
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1978
2011
|
$fault: "client",
|
|
1979
|
-
$metadata
|
|
2012
|
+
$metadata,
|
|
1980
2013
|
});
|
|
1981
2014
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1982
2015
|
}
|
|
@@ -2001,8 +2034,7 @@ const deserializeAws_json1_1DescribeConnectionLoaCommandError = async (output, c
|
|
|
2001
2034
|
body: await parseBody(output.body, context),
|
|
2002
2035
|
};
|
|
2003
2036
|
let response;
|
|
2004
|
-
|
|
2005
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2037
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2006
2038
|
switch (errorCode) {
|
|
2007
2039
|
case "DirectConnectClientException":
|
|
2008
2040
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2012,10 +2044,12 @@ const deserializeAws_json1_1DescribeConnectionLoaCommandError = async (output, c
|
|
|
2012
2044
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2013
2045
|
default:
|
|
2014
2046
|
const parsedBody = parsedOutput.body;
|
|
2047
|
+
const $metadata = deserializeMetadata(output);
|
|
2048
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2015
2049
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2016
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2050
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2017
2051
|
$fault: "client",
|
|
2018
|
-
$metadata
|
|
2052
|
+
$metadata,
|
|
2019
2053
|
});
|
|
2020
2054
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2021
2055
|
}
|
|
@@ -2040,8 +2074,7 @@ const deserializeAws_json1_1DescribeConnectionsCommandError = async (output, con
|
|
|
2040
2074
|
body: await parseBody(output.body, context),
|
|
2041
2075
|
};
|
|
2042
2076
|
let response;
|
|
2043
|
-
|
|
2044
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2077
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2045
2078
|
switch (errorCode) {
|
|
2046
2079
|
case "DirectConnectClientException":
|
|
2047
2080
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2051,10 +2084,12 @@ const deserializeAws_json1_1DescribeConnectionsCommandError = async (output, con
|
|
|
2051
2084
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2052
2085
|
default:
|
|
2053
2086
|
const parsedBody = parsedOutput.body;
|
|
2087
|
+
const $metadata = deserializeMetadata(output);
|
|
2088
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2054
2089
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2055
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2090
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2056
2091
|
$fault: "client",
|
|
2057
|
-
$metadata
|
|
2092
|
+
$metadata,
|
|
2058
2093
|
});
|
|
2059
2094
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2060
2095
|
}
|
|
@@ -2079,8 +2114,7 @@ const deserializeAws_json1_1DescribeConnectionsOnInterconnectCommandError = asyn
|
|
|
2079
2114
|
body: await parseBody(output.body, context),
|
|
2080
2115
|
};
|
|
2081
2116
|
let response;
|
|
2082
|
-
|
|
2083
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2117
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2084
2118
|
switch (errorCode) {
|
|
2085
2119
|
case "DirectConnectClientException":
|
|
2086
2120
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2090,10 +2124,12 @@ const deserializeAws_json1_1DescribeConnectionsOnInterconnectCommandError = asyn
|
|
|
2090
2124
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2091
2125
|
default:
|
|
2092
2126
|
const parsedBody = parsedOutput.body;
|
|
2127
|
+
const $metadata = deserializeMetadata(output);
|
|
2128
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2093
2129
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2094
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2130
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2095
2131
|
$fault: "client",
|
|
2096
|
-
$metadata
|
|
2132
|
+
$metadata,
|
|
2097
2133
|
});
|
|
2098
2134
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2099
2135
|
}
|
|
@@ -2118,8 +2154,7 @@ const deserializeAws_json1_1DescribeCustomerMetadataCommandError = async (output
|
|
|
2118
2154
|
body: await parseBody(output.body, context),
|
|
2119
2155
|
};
|
|
2120
2156
|
let response;
|
|
2121
|
-
|
|
2122
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2157
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2123
2158
|
switch (errorCode) {
|
|
2124
2159
|
case "DirectConnectClientException":
|
|
2125
2160
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2129,10 +2164,12 @@ const deserializeAws_json1_1DescribeCustomerMetadataCommandError = async (output
|
|
|
2129
2164
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2130
2165
|
default:
|
|
2131
2166
|
const parsedBody = parsedOutput.body;
|
|
2167
|
+
const $metadata = deserializeMetadata(output);
|
|
2168
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2132
2169
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2133
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2170
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2134
2171
|
$fault: "client",
|
|
2135
|
-
$metadata
|
|
2172
|
+
$metadata,
|
|
2136
2173
|
});
|
|
2137
2174
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2138
2175
|
}
|
|
@@ -2157,8 +2194,7 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsComm
|
|
|
2157
2194
|
body: await parseBody(output.body, context),
|
|
2158
2195
|
};
|
|
2159
2196
|
let response;
|
|
2160
|
-
|
|
2161
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2197
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2162
2198
|
switch (errorCode) {
|
|
2163
2199
|
case "DirectConnectClientException":
|
|
2164
2200
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2168,10 +2204,12 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsComm
|
|
|
2168
2204
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2169
2205
|
default:
|
|
2170
2206
|
const parsedBody = parsedOutput.body;
|
|
2207
|
+
const $metadata = deserializeMetadata(output);
|
|
2208
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2171
2209
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2172
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2210
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2173
2211
|
$fault: "client",
|
|
2174
|
-
$metadata
|
|
2212
|
+
$metadata,
|
|
2175
2213
|
});
|
|
2176
2214
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2177
2215
|
}
|
|
@@ -2196,8 +2234,7 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsCommandError
|
|
|
2196
2234
|
body: await parseBody(output.body, context),
|
|
2197
2235
|
};
|
|
2198
2236
|
let response;
|
|
2199
|
-
|
|
2200
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2237
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2201
2238
|
switch (errorCode) {
|
|
2202
2239
|
case "DirectConnectClientException":
|
|
2203
2240
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2207,10 +2244,12 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsCommandError
|
|
|
2207
2244
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2208
2245
|
default:
|
|
2209
2246
|
const parsedBody = parsedOutput.body;
|
|
2247
|
+
const $metadata = deserializeMetadata(output);
|
|
2248
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2210
2249
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2211
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2250
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2212
2251
|
$fault: "client",
|
|
2213
|
-
$metadata
|
|
2252
|
+
$metadata,
|
|
2214
2253
|
});
|
|
2215
2254
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2216
2255
|
}
|
|
@@ -2235,8 +2274,7 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsCommandError
|
|
|
2235
2274
|
body: await parseBody(output.body, context),
|
|
2236
2275
|
};
|
|
2237
2276
|
let response;
|
|
2238
|
-
|
|
2239
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2277
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2240
2278
|
switch (errorCode) {
|
|
2241
2279
|
case "DirectConnectClientException":
|
|
2242
2280
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2246,10 +2284,12 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsCommandError
|
|
|
2246
2284
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2247
2285
|
default:
|
|
2248
2286
|
const parsedBody = parsedOutput.body;
|
|
2287
|
+
const $metadata = deserializeMetadata(output);
|
|
2288
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2249
2289
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2250
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2290
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2251
2291
|
$fault: "client",
|
|
2252
|
-
$metadata
|
|
2292
|
+
$metadata,
|
|
2253
2293
|
});
|
|
2254
2294
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2255
2295
|
}
|
|
@@ -2274,8 +2314,7 @@ const deserializeAws_json1_1DescribeDirectConnectGatewaysCommandError = async (o
|
|
|
2274
2314
|
body: await parseBody(output.body, context),
|
|
2275
2315
|
};
|
|
2276
2316
|
let response;
|
|
2277
|
-
|
|
2278
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2317
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2279
2318
|
switch (errorCode) {
|
|
2280
2319
|
case "DirectConnectClientException":
|
|
2281
2320
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2285,10 +2324,12 @@ const deserializeAws_json1_1DescribeDirectConnectGatewaysCommandError = async (o
|
|
|
2285
2324
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2286
2325
|
default:
|
|
2287
2326
|
const parsedBody = parsedOutput.body;
|
|
2327
|
+
const $metadata = deserializeMetadata(output);
|
|
2328
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2288
2329
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2289
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2330
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2290
2331
|
$fault: "client",
|
|
2291
|
-
$metadata
|
|
2332
|
+
$metadata,
|
|
2292
2333
|
});
|
|
2293
2334
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2294
2335
|
}
|
|
@@ -2313,8 +2354,7 @@ const deserializeAws_json1_1DescribeHostedConnectionsCommandError = async (outpu
|
|
|
2313
2354
|
body: await parseBody(output.body, context),
|
|
2314
2355
|
};
|
|
2315
2356
|
let response;
|
|
2316
|
-
|
|
2317
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2357
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2318
2358
|
switch (errorCode) {
|
|
2319
2359
|
case "DirectConnectClientException":
|
|
2320
2360
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2324,10 +2364,12 @@ const deserializeAws_json1_1DescribeHostedConnectionsCommandError = async (outpu
|
|
|
2324
2364
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2325
2365
|
default:
|
|
2326
2366
|
const parsedBody = parsedOutput.body;
|
|
2367
|
+
const $metadata = deserializeMetadata(output);
|
|
2368
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2327
2369
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2328
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2370
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2329
2371
|
$fault: "client",
|
|
2330
|
-
$metadata
|
|
2372
|
+
$metadata,
|
|
2331
2373
|
});
|
|
2332
2374
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2333
2375
|
}
|
|
@@ -2352,8 +2394,7 @@ const deserializeAws_json1_1DescribeInterconnectLoaCommandError = async (output,
|
|
|
2352
2394
|
body: await parseBody(output.body, context),
|
|
2353
2395
|
};
|
|
2354
2396
|
let response;
|
|
2355
|
-
|
|
2356
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2397
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2357
2398
|
switch (errorCode) {
|
|
2358
2399
|
case "DirectConnectClientException":
|
|
2359
2400
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2363,10 +2404,12 @@ const deserializeAws_json1_1DescribeInterconnectLoaCommandError = async (output,
|
|
|
2363
2404
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2364
2405
|
default:
|
|
2365
2406
|
const parsedBody = parsedOutput.body;
|
|
2407
|
+
const $metadata = deserializeMetadata(output);
|
|
2408
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2366
2409
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2367
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2410
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2368
2411
|
$fault: "client",
|
|
2369
|
-
$metadata
|
|
2412
|
+
$metadata,
|
|
2370
2413
|
});
|
|
2371
2414
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2372
2415
|
}
|
|
@@ -2391,8 +2434,7 @@ const deserializeAws_json1_1DescribeInterconnectsCommandError = async (output, c
|
|
|
2391
2434
|
body: await parseBody(output.body, context),
|
|
2392
2435
|
};
|
|
2393
2436
|
let response;
|
|
2394
|
-
|
|
2395
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2437
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2396
2438
|
switch (errorCode) {
|
|
2397
2439
|
case "DirectConnectClientException":
|
|
2398
2440
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2402,10 +2444,12 @@ const deserializeAws_json1_1DescribeInterconnectsCommandError = async (output, c
|
|
|
2402
2444
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2403
2445
|
default:
|
|
2404
2446
|
const parsedBody = parsedOutput.body;
|
|
2447
|
+
const $metadata = deserializeMetadata(output);
|
|
2448
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2405
2449
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2406
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2450
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2407
2451
|
$fault: "client",
|
|
2408
|
-
$metadata
|
|
2452
|
+
$metadata,
|
|
2409
2453
|
});
|
|
2410
2454
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2411
2455
|
}
|
|
@@ -2430,8 +2474,7 @@ const deserializeAws_json1_1DescribeLagsCommandError = async (output, context) =
|
|
|
2430
2474
|
body: await parseBody(output.body, context),
|
|
2431
2475
|
};
|
|
2432
2476
|
let response;
|
|
2433
|
-
|
|
2434
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2477
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2435
2478
|
switch (errorCode) {
|
|
2436
2479
|
case "DirectConnectClientException":
|
|
2437
2480
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2441,10 +2484,12 @@ const deserializeAws_json1_1DescribeLagsCommandError = async (output, context) =
|
|
|
2441
2484
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2442
2485
|
default:
|
|
2443
2486
|
const parsedBody = parsedOutput.body;
|
|
2487
|
+
const $metadata = deserializeMetadata(output);
|
|
2488
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2444
2489
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2445
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2490
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2446
2491
|
$fault: "client",
|
|
2447
|
-
$metadata
|
|
2492
|
+
$metadata,
|
|
2448
2493
|
});
|
|
2449
2494
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2450
2495
|
}
|
|
@@ -2469,8 +2514,7 @@ const deserializeAws_json1_1DescribeLoaCommandError = async (output, context) =>
|
|
|
2469
2514
|
body: await parseBody(output.body, context),
|
|
2470
2515
|
};
|
|
2471
2516
|
let response;
|
|
2472
|
-
|
|
2473
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2517
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2474
2518
|
switch (errorCode) {
|
|
2475
2519
|
case "DirectConnectClientException":
|
|
2476
2520
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2480,10 +2524,12 @@ const deserializeAws_json1_1DescribeLoaCommandError = async (output, context) =>
|
|
|
2480
2524
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2481
2525
|
default:
|
|
2482
2526
|
const parsedBody = parsedOutput.body;
|
|
2527
|
+
const $metadata = deserializeMetadata(output);
|
|
2528
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2483
2529
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2484
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2530
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2485
2531
|
$fault: "client",
|
|
2486
|
-
$metadata
|
|
2532
|
+
$metadata,
|
|
2487
2533
|
});
|
|
2488
2534
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2489
2535
|
}
|
|
@@ -2508,8 +2554,7 @@ const deserializeAws_json1_1DescribeLocationsCommandError = async (output, conte
|
|
|
2508
2554
|
body: await parseBody(output.body, context),
|
|
2509
2555
|
};
|
|
2510
2556
|
let response;
|
|
2511
|
-
|
|
2512
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2557
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2513
2558
|
switch (errorCode) {
|
|
2514
2559
|
case "DirectConnectClientException":
|
|
2515
2560
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2519,10 +2564,12 @@ const deserializeAws_json1_1DescribeLocationsCommandError = async (output, conte
|
|
|
2519
2564
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2520
2565
|
default:
|
|
2521
2566
|
const parsedBody = parsedOutput.body;
|
|
2567
|
+
const $metadata = deserializeMetadata(output);
|
|
2568
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2522
2569
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2523
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2570
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2524
2571
|
$fault: "client",
|
|
2525
|
-
$metadata
|
|
2572
|
+
$metadata,
|
|
2526
2573
|
});
|
|
2527
2574
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2528
2575
|
}
|
|
@@ -2547,8 +2594,7 @@ const deserializeAws_json1_1DescribeRouterConfigurationCommandError = async (out
|
|
|
2547
2594
|
body: await parseBody(output.body, context),
|
|
2548
2595
|
};
|
|
2549
2596
|
let response;
|
|
2550
|
-
|
|
2551
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2597
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2552
2598
|
switch (errorCode) {
|
|
2553
2599
|
case "DirectConnectClientException":
|
|
2554
2600
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2558,10 +2604,12 @@ const deserializeAws_json1_1DescribeRouterConfigurationCommandError = async (out
|
|
|
2558
2604
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2559
2605
|
default:
|
|
2560
2606
|
const parsedBody = parsedOutput.body;
|
|
2607
|
+
const $metadata = deserializeMetadata(output);
|
|
2608
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2561
2609
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2562
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2610
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2563
2611
|
$fault: "client",
|
|
2564
|
-
$metadata
|
|
2612
|
+
$metadata,
|
|
2565
2613
|
});
|
|
2566
2614
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2567
2615
|
}
|
|
@@ -2586,8 +2634,7 @@ const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) =
|
|
|
2586
2634
|
body: await parseBody(output.body, context),
|
|
2587
2635
|
};
|
|
2588
2636
|
let response;
|
|
2589
|
-
|
|
2590
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2637
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2591
2638
|
switch (errorCode) {
|
|
2592
2639
|
case "DirectConnectClientException":
|
|
2593
2640
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2597,10 +2644,12 @@ const deserializeAws_json1_1DescribeTagsCommandError = async (output, context) =
|
|
|
2597
2644
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2598
2645
|
default:
|
|
2599
2646
|
const parsedBody = parsedOutput.body;
|
|
2647
|
+
const $metadata = deserializeMetadata(output);
|
|
2648
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2600
2649
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2601
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2650
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2602
2651
|
$fault: "client",
|
|
2603
|
-
$metadata
|
|
2652
|
+
$metadata,
|
|
2604
2653
|
});
|
|
2605
2654
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2606
2655
|
}
|
|
@@ -2625,8 +2674,7 @@ const deserializeAws_json1_1DescribeVirtualGatewaysCommandError = async (output,
|
|
|
2625
2674
|
body: await parseBody(output.body, context),
|
|
2626
2675
|
};
|
|
2627
2676
|
let response;
|
|
2628
|
-
|
|
2629
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2677
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2630
2678
|
switch (errorCode) {
|
|
2631
2679
|
case "DirectConnectClientException":
|
|
2632
2680
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2636,10 +2684,12 @@ const deserializeAws_json1_1DescribeVirtualGatewaysCommandError = async (output,
|
|
|
2636
2684
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2637
2685
|
default:
|
|
2638
2686
|
const parsedBody = parsedOutput.body;
|
|
2687
|
+
const $metadata = deserializeMetadata(output);
|
|
2688
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2639
2689
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2640
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2690
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2641
2691
|
$fault: "client",
|
|
2642
|
-
$metadata
|
|
2692
|
+
$metadata,
|
|
2643
2693
|
});
|
|
2644
2694
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2645
2695
|
}
|
|
@@ -2664,8 +2714,7 @@ const deserializeAws_json1_1DescribeVirtualInterfacesCommandError = async (outpu
|
|
|
2664
2714
|
body: await parseBody(output.body, context),
|
|
2665
2715
|
};
|
|
2666
2716
|
let response;
|
|
2667
|
-
|
|
2668
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2717
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2669
2718
|
switch (errorCode) {
|
|
2670
2719
|
case "DirectConnectClientException":
|
|
2671
2720
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2675,10 +2724,12 @@ const deserializeAws_json1_1DescribeVirtualInterfacesCommandError = async (outpu
|
|
|
2675
2724
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2676
2725
|
default:
|
|
2677
2726
|
const parsedBody = parsedOutput.body;
|
|
2727
|
+
const $metadata = deserializeMetadata(output);
|
|
2728
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2678
2729
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2679
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2730
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2680
2731
|
$fault: "client",
|
|
2681
|
-
$metadata
|
|
2732
|
+
$metadata,
|
|
2682
2733
|
});
|
|
2683
2734
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2684
2735
|
}
|
|
@@ -2703,8 +2754,7 @@ const deserializeAws_json1_1DisassociateConnectionFromLagCommandError = async (o
|
|
|
2703
2754
|
body: await parseBody(output.body, context),
|
|
2704
2755
|
};
|
|
2705
2756
|
let response;
|
|
2706
|
-
|
|
2707
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2757
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2708
2758
|
switch (errorCode) {
|
|
2709
2759
|
case "DirectConnectClientException":
|
|
2710
2760
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2714,10 +2764,12 @@ const deserializeAws_json1_1DisassociateConnectionFromLagCommandError = async (o
|
|
|
2714
2764
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2715
2765
|
default:
|
|
2716
2766
|
const parsedBody = parsedOutput.body;
|
|
2767
|
+
const $metadata = deserializeMetadata(output);
|
|
2768
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2717
2769
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2718
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2770
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2719
2771
|
$fault: "client",
|
|
2720
|
-
$metadata
|
|
2772
|
+
$metadata,
|
|
2721
2773
|
});
|
|
2722
2774
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2723
2775
|
}
|
|
@@ -2742,8 +2794,7 @@ const deserializeAws_json1_1DisassociateMacSecKeyCommandError = async (output, c
|
|
|
2742
2794
|
body: await parseBody(output.body, context),
|
|
2743
2795
|
};
|
|
2744
2796
|
let response;
|
|
2745
|
-
|
|
2746
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2797
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2747
2798
|
switch (errorCode) {
|
|
2748
2799
|
case "DirectConnectClientException":
|
|
2749
2800
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2753,10 +2804,12 @@ const deserializeAws_json1_1DisassociateMacSecKeyCommandError = async (output, c
|
|
|
2753
2804
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2754
2805
|
default:
|
|
2755
2806
|
const parsedBody = parsedOutput.body;
|
|
2807
|
+
const $metadata = deserializeMetadata(output);
|
|
2808
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2756
2809
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2757
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2810
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2758
2811
|
$fault: "client",
|
|
2759
|
-
$metadata
|
|
2812
|
+
$metadata,
|
|
2760
2813
|
});
|
|
2761
2814
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2762
2815
|
}
|
|
@@ -2781,8 +2834,7 @@ const deserializeAws_json1_1ListVirtualInterfaceTestHistoryCommandError = async
|
|
|
2781
2834
|
body: await parseBody(output.body, context),
|
|
2782
2835
|
};
|
|
2783
2836
|
let response;
|
|
2784
|
-
|
|
2785
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2837
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2786
2838
|
switch (errorCode) {
|
|
2787
2839
|
case "DirectConnectClientException":
|
|
2788
2840
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2792,10 +2844,12 @@ const deserializeAws_json1_1ListVirtualInterfaceTestHistoryCommandError = async
|
|
|
2792
2844
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2793
2845
|
default:
|
|
2794
2846
|
const parsedBody = parsedOutput.body;
|
|
2847
|
+
const $metadata = deserializeMetadata(output);
|
|
2848
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2795
2849
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2796
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2850
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2797
2851
|
$fault: "client",
|
|
2798
|
-
$metadata
|
|
2852
|
+
$metadata,
|
|
2799
2853
|
});
|
|
2800
2854
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2801
2855
|
}
|
|
@@ -2820,8 +2874,7 @@ const deserializeAws_json1_1StartBgpFailoverTestCommandError = async (output, co
|
|
|
2820
2874
|
body: await parseBody(output.body, context),
|
|
2821
2875
|
};
|
|
2822
2876
|
let response;
|
|
2823
|
-
|
|
2824
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2877
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2825
2878
|
switch (errorCode) {
|
|
2826
2879
|
case "DirectConnectClientException":
|
|
2827
2880
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2831,10 +2884,12 @@ const deserializeAws_json1_1StartBgpFailoverTestCommandError = async (output, co
|
|
|
2831
2884
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2832
2885
|
default:
|
|
2833
2886
|
const parsedBody = parsedOutput.body;
|
|
2887
|
+
const $metadata = deserializeMetadata(output);
|
|
2888
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2834
2889
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2835
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2890
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2836
2891
|
$fault: "client",
|
|
2837
|
-
$metadata
|
|
2892
|
+
$metadata,
|
|
2838
2893
|
});
|
|
2839
2894
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2840
2895
|
}
|
|
@@ -2859,8 +2914,7 @@ const deserializeAws_json1_1StopBgpFailoverTestCommandError = async (output, con
|
|
|
2859
2914
|
body: await parseBody(output.body, context),
|
|
2860
2915
|
};
|
|
2861
2916
|
let response;
|
|
2862
|
-
|
|
2863
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2917
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2864
2918
|
switch (errorCode) {
|
|
2865
2919
|
case "DirectConnectClientException":
|
|
2866
2920
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2870,10 +2924,12 @@ const deserializeAws_json1_1StopBgpFailoverTestCommandError = async (output, con
|
|
|
2870
2924
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2871
2925
|
default:
|
|
2872
2926
|
const parsedBody = parsedOutput.body;
|
|
2927
|
+
const $metadata = deserializeMetadata(output);
|
|
2928
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2873
2929
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2874
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2930
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2875
2931
|
$fault: "client",
|
|
2876
|
-
$metadata
|
|
2932
|
+
$metadata,
|
|
2877
2933
|
});
|
|
2878
2934
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2879
2935
|
}
|
|
@@ -2898,8 +2954,7 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2898
2954
|
body: await parseBody(output.body, context),
|
|
2899
2955
|
};
|
|
2900
2956
|
let response;
|
|
2901
|
-
|
|
2902
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2957
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2903
2958
|
switch (errorCode) {
|
|
2904
2959
|
case "DirectConnectClientException":
|
|
2905
2960
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2915,10 +2970,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
2915
2970
|
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
2916
2971
|
default:
|
|
2917
2972
|
const parsedBody = parsedOutput.body;
|
|
2973
|
+
const $metadata = deserializeMetadata(output);
|
|
2974
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2918
2975
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2919
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2976
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2920
2977
|
$fault: "client",
|
|
2921
|
-
$metadata
|
|
2978
|
+
$metadata,
|
|
2922
2979
|
});
|
|
2923
2980
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2924
2981
|
}
|
|
@@ -2943,8 +3000,7 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2943
3000
|
body: await parseBody(output.body, context),
|
|
2944
3001
|
};
|
|
2945
3002
|
let response;
|
|
2946
|
-
|
|
2947
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3003
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2948
3004
|
switch (errorCode) {
|
|
2949
3005
|
case "DirectConnectClientException":
|
|
2950
3006
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2954,10 +3010,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
2954
3010
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2955
3011
|
default:
|
|
2956
3012
|
const parsedBody = parsedOutput.body;
|
|
3013
|
+
const $metadata = deserializeMetadata(output);
|
|
3014
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2957
3015
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2958
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3016
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2959
3017
|
$fault: "client",
|
|
2960
|
-
$metadata
|
|
3018
|
+
$metadata,
|
|
2961
3019
|
});
|
|
2962
3020
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2963
3021
|
}
|
|
@@ -2982,8 +3040,7 @@ const deserializeAws_json1_1UpdateConnectionCommandError = async (output, contex
|
|
|
2982
3040
|
body: await parseBody(output.body, context),
|
|
2983
3041
|
};
|
|
2984
3042
|
let response;
|
|
2985
|
-
|
|
2986
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3043
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2987
3044
|
switch (errorCode) {
|
|
2988
3045
|
case "DirectConnectClientException":
|
|
2989
3046
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -2993,10 +3050,12 @@ const deserializeAws_json1_1UpdateConnectionCommandError = async (output, contex
|
|
|
2993
3050
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
2994
3051
|
default:
|
|
2995
3052
|
const parsedBody = parsedOutput.body;
|
|
3053
|
+
const $metadata = deserializeMetadata(output);
|
|
3054
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2996
3055
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
2997
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3056
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2998
3057
|
$fault: "client",
|
|
2999
|
-
$metadata
|
|
3058
|
+
$metadata,
|
|
3000
3059
|
});
|
|
3001
3060
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3002
3061
|
}
|
|
@@ -3021,8 +3080,7 @@ const deserializeAws_json1_1UpdateDirectConnectGatewayCommandError = async (outp
|
|
|
3021
3080
|
body: await parseBody(output.body, context),
|
|
3022
3081
|
};
|
|
3023
3082
|
let response;
|
|
3024
|
-
|
|
3025
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3083
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3026
3084
|
switch (errorCode) {
|
|
3027
3085
|
case "DirectConnectClientException":
|
|
3028
3086
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -3032,10 +3090,12 @@ const deserializeAws_json1_1UpdateDirectConnectGatewayCommandError = async (outp
|
|
|
3032
3090
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
3033
3091
|
default:
|
|
3034
3092
|
const parsedBody = parsedOutput.body;
|
|
3093
|
+
const $metadata = deserializeMetadata(output);
|
|
3094
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3035
3095
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
3036
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3096
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3037
3097
|
$fault: "client",
|
|
3038
|
-
$metadata
|
|
3098
|
+
$metadata,
|
|
3039
3099
|
});
|
|
3040
3100
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3041
3101
|
}
|
|
@@ -3060,8 +3120,7 @@ const deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommandError =
|
|
|
3060
3120
|
body: await parseBody(output.body, context),
|
|
3061
3121
|
};
|
|
3062
3122
|
let response;
|
|
3063
|
-
|
|
3064
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3123
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3065
3124
|
switch (errorCode) {
|
|
3066
3125
|
case "DirectConnectClientException":
|
|
3067
3126
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -3071,10 +3130,12 @@ const deserializeAws_json1_1UpdateDirectConnectGatewayAssociationCommandError =
|
|
|
3071
3130
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
3072
3131
|
default:
|
|
3073
3132
|
const parsedBody = parsedOutput.body;
|
|
3133
|
+
const $metadata = deserializeMetadata(output);
|
|
3134
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3074
3135
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
3075
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3136
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3076
3137
|
$fault: "client",
|
|
3077
|
-
$metadata
|
|
3138
|
+
$metadata,
|
|
3078
3139
|
});
|
|
3079
3140
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3080
3141
|
}
|
|
@@ -3099,8 +3160,7 @@ const deserializeAws_json1_1UpdateLagCommandError = async (output, context) => {
|
|
|
3099
3160
|
body: await parseBody(output.body, context),
|
|
3100
3161
|
};
|
|
3101
3162
|
let response;
|
|
3102
|
-
|
|
3103
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3163
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3104
3164
|
switch (errorCode) {
|
|
3105
3165
|
case "DirectConnectClientException":
|
|
3106
3166
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -3110,10 +3170,12 @@ const deserializeAws_json1_1UpdateLagCommandError = async (output, context) => {
|
|
|
3110
3170
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
3111
3171
|
default:
|
|
3112
3172
|
const parsedBody = parsedOutput.body;
|
|
3173
|
+
const $metadata = deserializeMetadata(output);
|
|
3174
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3113
3175
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
3114
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3176
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3115
3177
|
$fault: "client",
|
|
3116
|
-
$metadata
|
|
3178
|
+
$metadata,
|
|
3117
3179
|
});
|
|
3118
3180
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3119
3181
|
}
|
|
@@ -3138,8 +3200,7 @@ const deserializeAws_json1_1UpdateVirtualInterfaceAttributesCommandError = async
|
|
|
3138
3200
|
body: await parseBody(output.body, context),
|
|
3139
3201
|
};
|
|
3140
3202
|
let response;
|
|
3141
|
-
|
|
3142
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3203
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3143
3204
|
switch (errorCode) {
|
|
3144
3205
|
case "DirectConnectClientException":
|
|
3145
3206
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -3149,10 +3210,12 @@ const deserializeAws_json1_1UpdateVirtualInterfaceAttributesCommandError = async
|
|
|
3149
3210
|
throw await deserializeAws_json1_1DirectConnectServerExceptionResponse(parsedOutput, context);
|
|
3150
3211
|
default:
|
|
3151
3212
|
const parsedBody = parsedOutput.body;
|
|
3213
|
+
const $metadata = deserializeMetadata(output);
|
|
3214
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3152
3215
|
response = new DirectConnectServiceException_1.DirectConnectServiceException({
|
|
3153
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3216
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3154
3217
|
$fault: "client",
|
|
3155
|
-
$metadata
|
|
3218
|
+
$metadata,
|
|
3156
3219
|
});
|
|
3157
3220
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3158
3221
|
}
|
|
@@ -3195,97 +3258,86 @@ const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput,
|
|
|
3195
3258
|
};
|
|
3196
3259
|
const serializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalRequest = (input, context) => {
|
|
3197
3260
|
return {
|
|
3198
|
-
...(input.associatedGatewayOwnerAccount
|
|
3199
|
-
input.associatedGatewayOwnerAccount !== null && {
|
|
3261
|
+
...(input.associatedGatewayOwnerAccount != null && {
|
|
3200
3262
|
associatedGatewayOwnerAccount: input.associatedGatewayOwnerAccount,
|
|
3201
3263
|
}),
|
|
3202
|
-
...(input.directConnectGatewayId
|
|
3203
|
-
|
|
3204
|
-
...(input.overrideAllowedPrefixesToDirectConnectGateway !== undefined &&
|
|
3205
|
-
input.overrideAllowedPrefixesToDirectConnectGateway !== null && {
|
|
3264
|
+
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3265
|
+
...(input.overrideAllowedPrefixesToDirectConnectGateway != null && {
|
|
3206
3266
|
overrideAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.overrideAllowedPrefixesToDirectConnectGateway, context),
|
|
3207
3267
|
}),
|
|
3208
|
-
...(input.proposalId
|
|
3268
|
+
...(input.proposalId != null && { proposalId: input.proposalId }),
|
|
3209
3269
|
};
|
|
3210
3270
|
};
|
|
3211
3271
|
const serializeAws_json1_1AllocateConnectionOnInterconnectRequest = (input, context) => {
|
|
3212
3272
|
return {
|
|
3213
|
-
...(input.bandwidth
|
|
3214
|
-
...(input.connectionName
|
|
3215
|
-
|
|
3216
|
-
...(input.
|
|
3217
|
-
|
|
3218
|
-
...(input.ownerAccount !== undefined && input.ownerAccount !== null && { ownerAccount: input.ownerAccount }),
|
|
3219
|
-
...(input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }),
|
|
3273
|
+
...(input.bandwidth != null && { bandwidth: input.bandwidth }),
|
|
3274
|
+
...(input.connectionName != null && { connectionName: input.connectionName }),
|
|
3275
|
+
...(input.interconnectId != null && { interconnectId: input.interconnectId }),
|
|
3276
|
+
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
3277
|
+
...(input.vlan != null && { vlan: input.vlan }),
|
|
3220
3278
|
};
|
|
3221
3279
|
};
|
|
3222
3280
|
const serializeAws_json1_1AllocateHostedConnectionRequest = (input, context) => {
|
|
3223
3281
|
return {
|
|
3224
|
-
...(input.bandwidth
|
|
3225
|
-
...(input.connectionId
|
|
3226
|
-
...(input.connectionName
|
|
3227
|
-
|
|
3228
|
-
...(input.
|
|
3229
|
-
...(input.
|
|
3230
|
-
...(input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }),
|
|
3282
|
+
...(input.bandwidth != null && { bandwidth: input.bandwidth }),
|
|
3283
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3284
|
+
...(input.connectionName != null && { connectionName: input.connectionName }),
|
|
3285
|
+
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
3286
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3287
|
+
...(input.vlan != null && { vlan: input.vlan }),
|
|
3231
3288
|
};
|
|
3232
3289
|
};
|
|
3233
3290
|
const serializeAws_json1_1AllocatePrivateVirtualInterfaceRequest = (input, context) => {
|
|
3234
3291
|
return {
|
|
3235
|
-
...(input.connectionId
|
|
3236
|
-
...(input.newPrivateVirtualInterfaceAllocation
|
|
3237
|
-
input.newPrivateVirtualInterfaceAllocation !== null && {
|
|
3292
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3293
|
+
...(input.newPrivateVirtualInterfaceAllocation != null && {
|
|
3238
3294
|
newPrivateVirtualInterfaceAllocation: serializeAws_json1_1NewPrivateVirtualInterfaceAllocation(input.newPrivateVirtualInterfaceAllocation, context),
|
|
3239
3295
|
}),
|
|
3240
|
-
...(input.ownerAccount
|
|
3296
|
+
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
3241
3297
|
};
|
|
3242
3298
|
};
|
|
3243
3299
|
const serializeAws_json1_1AllocatePublicVirtualInterfaceRequest = (input, context) => {
|
|
3244
3300
|
return {
|
|
3245
|
-
...(input.connectionId
|
|
3246
|
-
...(input.newPublicVirtualInterfaceAllocation
|
|
3247
|
-
input.newPublicVirtualInterfaceAllocation !== null && {
|
|
3301
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3302
|
+
...(input.newPublicVirtualInterfaceAllocation != null && {
|
|
3248
3303
|
newPublicVirtualInterfaceAllocation: serializeAws_json1_1NewPublicVirtualInterfaceAllocation(input.newPublicVirtualInterfaceAllocation, context),
|
|
3249
3304
|
}),
|
|
3250
|
-
...(input.ownerAccount
|
|
3305
|
+
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
3251
3306
|
};
|
|
3252
3307
|
};
|
|
3253
3308
|
const serializeAws_json1_1AllocateTransitVirtualInterfaceRequest = (input, context) => {
|
|
3254
3309
|
return {
|
|
3255
|
-
...(input.connectionId
|
|
3256
|
-
...(input.newTransitVirtualInterfaceAllocation
|
|
3257
|
-
input.newTransitVirtualInterfaceAllocation !== null && {
|
|
3310
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3311
|
+
...(input.newTransitVirtualInterfaceAllocation != null && {
|
|
3258
3312
|
newTransitVirtualInterfaceAllocation: serializeAws_json1_1NewTransitVirtualInterfaceAllocation(input.newTransitVirtualInterfaceAllocation, context),
|
|
3259
3313
|
}),
|
|
3260
|
-
...(input.ownerAccount
|
|
3314
|
+
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
3261
3315
|
};
|
|
3262
3316
|
};
|
|
3263
3317
|
const serializeAws_json1_1AssociateConnectionWithLagRequest = (input, context) => {
|
|
3264
3318
|
return {
|
|
3265
|
-
...(input.connectionId
|
|
3266
|
-
...(input.lagId
|
|
3319
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3320
|
+
...(input.lagId != null && { lagId: input.lagId }),
|
|
3267
3321
|
};
|
|
3268
3322
|
};
|
|
3269
3323
|
const serializeAws_json1_1AssociateHostedConnectionRequest = (input, context) => {
|
|
3270
3324
|
return {
|
|
3271
|
-
...(input.connectionId
|
|
3272
|
-
...(input.parentConnectionId
|
|
3273
|
-
input.parentConnectionId !== null && { parentConnectionId: input.parentConnectionId }),
|
|
3325
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3326
|
+
...(input.parentConnectionId != null && { parentConnectionId: input.parentConnectionId }),
|
|
3274
3327
|
};
|
|
3275
3328
|
};
|
|
3276
3329
|
const serializeAws_json1_1AssociateMacSecKeyRequest = (input, context) => {
|
|
3277
3330
|
return {
|
|
3278
|
-
...(input.cak
|
|
3279
|
-
...(input.ckn
|
|
3280
|
-
...(input.connectionId
|
|
3281
|
-
...(input.secretARN
|
|
3331
|
+
...(input.cak != null && { cak: input.cak }),
|
|
3332
|
+
...(input.ckn != null && { ckn: input.ckn }),
|
|
3333
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3334
|
+
...(input.secretARN != null && { secretARN: input.secretARN }),
|
|
3282
3335
|
};
|
|
3283
3336
|
};
|
|
3284
3337
|
const serializeAws_json1_1AssociateVirtualInterfaceRequest = (input, context) => {
|
|
3285
3338
|
return {
|
|
3286
|
-
...(input.connectionId
|
|
3287
|
-
...(input.virtualInterfaceId
|
|
3288
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3339
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3340
|
+
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3289
3341
|
};
|
|
3290
3342
|
};
|
|
3291
3343
|
const serializeAws_json1_1BGPPeerIdList = (input, context) => {
|
|
@@ -3300,460 +3352,389 @@ const serializeAws_json1_1BGPPeerIdList = (input, context) => {
|
|
|
3300
3352
|
};
|
|
3301
3353
|
const serializeAws_json1_1ConfirmConnectionRequest = (input, context) => {
|
|
3302
3354
|
return {
|
|
3303
|
-
...(input.connectionId
|
|
3355
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3304
3356
|
};
|
|
3305
3357
|
};
|
|
3306
3358
|
const serializeAws_json1_1ConfirmCustomerAgreementRequest = (input, context) => {
|
|
3307
3359
|
return {
|
|
3308
|
-
...(input.agreementName
|
|
3360
|
+
...(input.agreementName != null && { agreementName: input.agreementName }),
|
|
3309
3361
|
};
|
|
3310
3362
|
};
|
|
3311
3363
|
const serializeAws_json1_1ConfirmPrivateVirtualInterfaceRequest = (input, context) => {
|
|
3312
3364
|
return {
|
|
3313
|
-
...(input.directConnectGatewayId
|
|
3314
|
-
|
|
3315
|
-
...(input.
|
|
3316
|
-
input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId }),
|
|
3317
|
-
...(input.virtualInterfaceId !== undefined &&
|
|
3318
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3365
|
+
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3366
|
+
...(input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }),
|
|
3367
|
+
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3319
3368
|
};
|
|
3320
3369
|
};
|
|
3321
3370
|
const serializeAws_json1_1ConfirmPublicVirtualInterfaceRequest = (input, context) => {
|
|
3322
3371
|
return {
|
|
3323
|
-
...(input.virtualInterfaceId
|
|
3324
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3372
|
+
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3325
3373
|
};
|
|
3326
3374
|
};
|
|
3327
3375
|
const serializeAws_json1_1ConfirmTransitVirtualInterfaceRequest = (input, context) => {
|
|
3328
3376
|
return {
|
|
3329
|
-
...(input.directConnectGatewayId
|
|
3330
|
-
|
|
3331
|
-
...(input.virtualInterfaceId !== undefined &&
|
|
3332
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3377
|
+
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3378
|
+
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3333
3379
|
};
|
|
3334
3380
|
};
|
|
3335
3381
|
const serializeAws_json1_1CreateBGPPeerRequest = (input, context) => {
|
|
3336
3382
|
return {
|
|
3337
|
-
...(input.newBGPPeer
|
|
3338
|
-
|
|
3339
|
-
...(input.virtualInterfaceId !== undefined &&
|
|
3340
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3383
|
+
...(input.newBGPPeer != null && { newBGPPeer: serializeAws_json1_1NewBGPPeer(input.newBGPPeer, context) }),
|
|
3384
|
+
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3341
3385
|
};
|
|
3342
3386
|
};
|
|
3343
3387
|
const serializeAws_json1_1CreateConnectionRequest = (input, context) => {
|
|
3344
3388
|
return {
|
|
3345
|
-
...(input.bandwidth
|
|
3346
|
-
...(input.connectionName
|
|
3347
|
-
|
|
3348
|
-
...(input.
|
|
3349
|
-
...(input.
|
|
3350
|
-
...(input.
|
|
3351
|
-
...(input.
|
|
3352
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3389
|
+
...(input.bandwidth != null && { bandwidth: input.bandwidth }),
|
|
3390
|
+
...(input.connectionName != null && { connectionName: input.connectionName }),
|
|
3391
|
+
...(input.lagId != null && { lagId: input.lagId }),
|
|
3392
|
+
...(input.location != null && { location: input.location }),
|
|
3393
|
+
...(input.providerName != null && { providerName: input.providerName }),
|
|
3394
|
+
...(input.requestMACSec != null && { requestMACSec: input.requestMACSec }),
|
|
3395
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3353
3396
|
};
|
|
3354
3397
|
};
|
|
3355
3398
|
const serializeAws_json1_1CreateDirectConnectGatewayAssociationProposalRequest = (input, context) => {
|
|
3356
3399
|
return {
|
|
3357
|
-
...(input.addAllowedPrefixesToDirectConnectGateway
|
|
3358
|
-
input.addAllowedPrefixesToDirectConnectGateway !== null && {
|
|
3400
|
+
...(input.addAllowedPrefixesToDirectConnectGateway != null && {
|
|
3359
3401
|
addAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.addAllowedPrefixesToDirectConnectGateway, context),
|
|
3360
3402
|
}),
|
|
3361
|
-
...(input.directConnectGatewayId
|
|
3362
|
-
|
|
3363
|
-
...(input.directConnectGatewayOwnerAccount !== undefined &&
|
|
3364
|
-
input.directConnectGatewayOwnerAccount !== null && {
|
|
3403
|
+
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3404
|
+
...(input.directConnectGatewayOwnerAccount != null && {
|
|
3365
3405
|
directConnectGatewayOwnerAccount: input.directConnectGatewayOwnerAccount,
|
|
3366
3406
|
}),
|
|
3367
|
-
...(input.gatewayId
|
|
3368
|
-
...(input.removeAllowedPrefixesToDirectConnectGateway
|
|
3369
|
-
input.removeAllowedPrefixesToDirectConnectGateway !== null && {
|
|
3407
|
+
...(input.gatewayId != null && { gatewayId: input.gatewayId }),
|
|
3408
|
+
...(input.removeAllowedPrefixesToDirectConnectGateway != null && {
|
|
3370
3409
|
removeAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.removeAllowedPrefixesToDirectConnectGateway, context),
|
|
3371
3410
|
}),
|
|
3372
3411
|
};
|
|
3373
3412
|
};
|
|
3374
3413
|
const serializeAws_json1_1CreateDirectConnectGatewayAssociationRequest = (input, context) => {
|
|
3375
3414
|
return {
|
|
3376
|
-
...(input.addAllowedPrefixesToDirectConnectGateway
|
|
3377
|
-
input.addAllowedPrefixesToDirectConnectGateway !== null && {
|
|
3415
|
+
...(input.addAllowedPrefixesToDirectConnectGateway != null && {
|
|
3378
3416
|
addAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.addAllowedPrefixesToDirectConnectGateway, context),
|
|
3379
3417
|
}),
|
|
3380
|
-
...(input.directConnectGatewayId
|
|
3381
|
-
|
|
3382
|
-
...(input.
|
|
3383
|
-
...(input.virtualGatewayId !== undefined &&
|
|
3384
|
-
input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId }),
|
|
3418
|
+
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3419
|
+
...(input.gatewayId != null && { gatewayId: input.gatewayId }),
|
|
3420
|
+
...(input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }),
|
|
3385
3421
|
};
|
|
3386
3422
|
};
|
|
3387
3423
|
const serializeAws_json1_1CreateDirectConnectGatewayRequest = (input, context) => {
|
|
3388
3424
|
return {
|
|
3389
|
-
...(input.amazonSideAsn
|
|
3390
|
-
...(input.directConnectGatewayName
|
|
3391
|
-
input.directConnectGatewayName !== null && { directConnectGatewayName: input.directConnectGatewayName }),
|
|
3425
|
+
...(input.amazonSideAsn != null && { amazonSideAsn: input.amazonSideAsn }),
|
|
3426
|
+
...(input.directConnectGatewayName != null && { directConnectGatewayName: input.directConnectGatewayName }),
|
|
3392
3427
|
};
|
|
3393
3428
|
};
|
|
3394
3429
|
const serializeAws_json1_1CreateInterconnectRequest = (input, context) => {
|
|
3395
3430
|
return {
|
|
3396
|
-
...(input.bandwidth
|
|
3397
|
-
...(input.interconnectName
|
|
3398
|
-
|
|
3399
|
-
...(input.
|
|
3400
|
-
...(input.
|
|
3401
|
-
...(input.
|
|
3402
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3431
|
+
...(input.bandwidth != null && { bandwidth: input.bandwidth }),
|
|
3432
|
+
...(input.interconnectName != null && { interconnectName: input.interconnectName }),
|
|
3433
|
+
...(input.lagId != null && { lagId: input.lagId }),
|
|
3434
|
+
...(input.location != null && { location: input.location }),
|
|
3435
|
+
...(input.providerName != null && { providerName: input.providerName }),
|
|
3436
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3403
3437
|
};
|
|
3404
3438
|
};
|
|
3405
3439
|
const serializeAws_json1_1CreateLagRequest = (input, context) => {
|
|
3406
3440
|
return {
|
|
3407
|
-
...(input.childConnectionTags
|
|
3408
|
-
input.childConnectionTags !== null && {
|
|
3441
|
+
...(input.childConnectionTags != null && {
|
|
3409
3442
|
childConnectionTags: serializeAws_json1_1TagList(input.childConnectionTags, context),
|
|
3410
3443
|
}),
|
|
3411
|
-
...(input.connectionId
|
|
3412
|
-
...(input.connectionsBandwidth
|
|
3413
|
-
|
|
3414
|
-
...(input.
|
|
3415
|
-
...(input.
|
|
3416
|
-
...(input.
|
|
3417
|
-
|
|
3418
|
-
...(input.
|
|
3419
|
-
...(input.requestMACSec !== undefined && input.requestMACSec !== null && { requestMACSec: input.requestMACSec }),
|
|
3420
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3444
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3445
|
+
...(input.connectionsBandwidth != null && { connectionsBandwidth: input.connectionsBandwidth }),
|
|
3446
|
+
...(input.lagName != null && { lagName: input.lagName }),
|
|
3447
|
+
...(input.location != null && { location: input.location }),
|
|
3448
|
+
...(input.numberOfConnections != null && { numberOfConnections: input.numberOfConnections }),
|
|
3449
|
+
...(input.providerName != null && { providerName: input.providerName }),
|
|
3450
|
+
...(input.requestMACSec != null && { requestMACSec: input.requestMACSec }),
|
|
3451
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3421
3452
|
};
|
|
3422
3453
|
};
|
|
3423
3454
|
const serializeAws_json1_1CreatePrivateVirtualInterfaceRequest = (input, context) => {
|
|
3424
3455
|
return {
|
|
3425
|
-
...(input.connectionId
|
|
3426
|
-
...(input.newPrivateVirtualInterface
|
|
3427
|
-
input.newPrivateVirtualInterface !== null && {
|
|
3456
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3457
|
+
...(input.newPrivateVirtualInterface != null && {
|
|
3428
3458
|
newPrivateVirtualInterface: serializeAws_json1_1NewPrivateVirtualInterface(input.newPrivateVirtualInterface, context),
|
|
3429
3459
|
}),
|
|
3430
3460
|
};
|
|
3431
3461
|
};
|
|
3432
3462
|
const serializeAws_json1_1CreatePublicVirtualInterfaceRequest = (input, context) => {
|
|
3433
3463
|
return {
|
|
3434
|
-
...(input.connectionId
|
|
3435
|
-
...(input.newPublicVirtualInterface
|
|
3436
|
-
input.newPublicVirtualInterface !== null && {
|
|
3464
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3465
|
+
...(input.newPublicVirtualInterface != null && {
|
|
3437
3466
|
newPublicVirtualInterface: serializeAws_json1_1NewPublicVirtualInterface(input.newPublicVirtualInterface, context),
|
|
3438
3467
|
}),
|
|
3439
3468
|
};
|
|
3440
3469
|
};
|
|
3441
3470
|
const serializeAws_json1_1CreateTransitVirtualInterfaceRequest = (input, context) => {
|
|
3442
3471
|
return {
|
|
3443
|
-
...(input.connectionId
|
|
3444
|
-
...(input.newTransitVirtualInterface
|
|
3445
|
-
input.newTransitVirtualInterface !== null && {
|
|
3472
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3473
|
+
...(input.newTransitVirtualInterface != null && {
|
|
3446
3474
|
newTransitVirtualInterface: serializeAws_json1_1NewTransitVirtualInterface(input.newTransitVirtualInterface, context),
|
|
3447
3475
|
}),
|
|
3448
3476
|
};
|
|
3449
3477
|
};
|
|
3450
3478
|
const serializeAws_json1_1DeleteBGPPeerRequest = (input, context) => {
|
|
3451
3479
|
return {
|
|
3452
|
-
...(input.asn
|
|
3453
|
-
...(input.bgpPeerId
|
|
3454
|
-
...(input.customerAddress
|
|
3455
|
-
|
|
3456
|
-
...(input.virtualInterfaceId !== undefined &&
|
|
3457
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3480
|
+
...(input.asn != null && { asn: input.asn }),
|
|
3481
|
+
...(input.bgpPeerId != null && { bgpPeerId: input.bgpPeerId }),
|
|
3482
|
+
...(input.customerAddress != null && { customerAddress: input.customerAddress }),
|
|
3483
|
+
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3458
3484
|
};
|
|
3459
3485
|
};
|
|
3460
3486
|
const serializeAws_json1_1DeleteConnectionRequest = (input, context) => {
|
|
3461
3487
|
return {
|
|
3462
|
-
...(input.connectionId
|
|
3488
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3463
3489
|
};
|
|
3464
3490
|
};
|
|
3465
3491
|
const serializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalRequest = (input, context) => {
|
|
3466
3492
|
return {
|
|
3467
|
-
...(input.proposalId
|
|
3493
|
+
...(input.proposalId != null && { proposalId: input.proposalId }),
|
|
3468
3494
|
};
|
|
3469
3495
|
};
|
|
3470
3496
|
const serializeAws_json1_1DeleteDirectConnectGatewayAssociationRequest = (input, context) => {
|
|
3471
3497
|
return {
|
|
3472
|
-
...(input.associationId
|
|
3473
|
-
...(input.directConnectGatewayId
|
|
3474
|
-
|
|
3475
|
-
...(input.virtualGatewayId !== undefined &&
|
|
3476
|
-
input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId }),
|
|
3498
|
+
...(input.associationId != null && { associationId: input.associationId }),
|
|
3499
|
+
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3500
|
+
...(input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }),
|
|
3477
3501
|
};
|
|
3478
3502
|
};
|
|
3479
3503
|
const serializeAws_json1_1DeleteDirectConnectGatewayRequest = (input, context) => {
|
|
3480
3504
|
return {
|
|
3481
|
-
...(input.directConnectGatewayId
|
|
3482
|
-
input.directConnectGatewayId !== null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3505
|
+
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3483
3506
|
};
|
|
3484
3507
|
};
|
|
3485
3508
|
const serializeAws_json1_1DeleteInterconnectRequest = (input, context) => {
|
|
3486
3509
|
return {
|
|
3487
|
-
...(input.interconnectId
|
|
3488
|
-
input.interconnectId !== null && { interconnectId: input.interconnectId }),
|
|
3510
|
+
...(input.interconnectId != null && { interconnectId: input.interconnectId }),
|
|
3489
3511
|
};
|
|
3490
3512
|
};
|
|
3491
3513
|
const serializeAws_json1_1DeleteLagRequest = (input, context) => {
|
|
3492
3514
|
return {
|
|
3493
|
-
...(input.lagId
|
|
3515
|
+
...(input.lagId != null && { lagId: input.lagId }),
|
|
3494
3516
|
};
|
|
3495
3517
|
};
|
|
3496
3518
|
const serializeAws_json1_1DeleteVirtualInterfaceRequest = (input, context) => {
|
|
3497
3519
|
return {
|
|
3498
|
-
...(input.virtualInterfaceId
|
|
3499
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3520
|
+
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3500
3521
|
};
|
|
3501
3522
|
};
|
|
3502
3523
|
const serializeAws_json1_1DescribeConnectionLoaRequest = (input, context) => {
|
|
3503
3524
|
return {
|
|
3504
|
-
...(input.connectionId
|
|
3505
|
-
...(input.loaContentType
|
|
3506
|
-
|
|
3507
|
-
...(input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName }),
|
|
3525
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3526
|
+
...(input.loaContentType != null && { loaContentType: input.loaContentType }),
|
|
3527
|
+
...(input.providerName != null && { providerName: input.providerName }),
|
|
3508
3528
|
};
|
|
3509
3529
|
};
|
|
3510
3530
|
const serializeAws_json1_1DescribeConnectionsOnInterconnectRequest = (input, context) => {
|
|
3511
3531
|
return {
|
|
3512
|
-
...(input.interconnectId
|
|
3513
|
-
input.interconnectId !== null && { interconnectId: input.interconnectId }),
|
|
3532
|
+
...(input.interconnectId != null && { interconnectId: input.interconnectId }),
|
|
3514
3533
|
};
|
|
3515
3534
|
};
|
|
3516
3535
|
const serializeAws_json1_1DescribeConnectionsRequest = (input, context) => {
|
|
3517
3536
|
return {
|
|
3518
|
-
...(input.connectionId
|
|
3537
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3519
3538
|
};
|
|
3520
3539
|
};
|
|
3521
3540
|
const serializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsRequest = (input, context) => {
|
|
3522
3541
|
return {
|
|
3523
|
-
...(input.associatedGatewayId
|
|
3524
|
-
|
|
3525
|
-
...(input.
|
|
3526
|
-
|
|
3527
|
-
...(input.
|
|
3528
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3529
|
-
...(input.proposalId !== undefined && input.proposalId !== null && { proposalId: input.proposalId }),
|
|
3542
|
+
...(input.associatedGatewayId != null && { associatedGatewayId: input.associatedGatewayId }),
|
|
3543
|
+
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3544
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
3545
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
3546
|
+
...(input.proposalId != null && { proposalId: input.proposalId }),
|
|
3530
3547
|
};
|
|
3531
3548
|
};
|
|
3532
3549
|
const serializeAws_json1_1DescribeDirectConnectGatewayAssociationsRequest = (input, context) => {
|
|
3533
3550
|
return {
|
|
3534
|
-
...(input.associatedGatewayId
|
|
3535
|
-
|
|
3536
|
-
...(input.
|
|
3537
|
-
...(input.
|
|
3538
|
-
|
|
3539
|
-
...(input.
|
|
3540
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3541
|
-
...(input.virtualGatewayId !== undefined &&
|
|
3542
|
-
input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId }),
|
|
3551
|
+
...(input.associatedGatewayId != null && { associatedGatewayId: input.associatedGatewayId }),
|
|
3552
|
+
...(input.associationId != null && { associationId: input.associationId }),
|
|
3553
|
+
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3554
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
3555
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
3556
|
+
...(input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }),
|
|
3543
3557
|
};
|
|
3544
3558
|
};
|
|
3545
3559
|
const serializeAws_json1_1DescribeDirectConnectGatewayAttachmentsRequest = (input, context) => {
|
|
3546
3560
|
return {
|
|
3547
|
-
...(input.directConnectGatewayId
|
|
3548
|
-
|
|
3549
|
-
...(input.
|
|
3550
|
-
...(input.
|
|
3551
|
-
...(input.virtualInterfaceId !== undefined &&
|
|
3552
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3561
|
+
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3562
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
3563
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
3564
|
+
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3553
3565
|
};
|
|
3554
3566
|
};
|
|
3555
3567
|
const serializeAws_json1_1DescribeDirectConnectGatewaysRequest = (input, context) => {
|
|
3556
3568
|
return {
|
|
3557
|
-
...(input.directConnectGatewayId
|
|
3558
|
-
|
|
3559
|
-
...(input.
|
|
3560
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3569
|
+
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3570
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
3571
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
3561
3572
|
};
|
|
3562
3573
|
};
|
|
3563
3574
|
const serializeAws_json1_1DescribeHostedConnectionsRequest = (input, context) => {
|
|
3564
3575
|
return {
|
|
3565
|
-
...(input.connectionId
|
|
3576
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3566
3577
|
};
|
|
3567
3578
|
};
|
|
3568
3579
|
const serializeAws_json1_1DescribeInterconnectLoaRequest = (input, context) => {
|
|
3569
3580
|
return {
|
|
3570
|
-
...(input.interconnectId
|
|
3571
|
-
|
|
3572
|
-
...(input.
|
|
3573
|
-
input.loaContentType !== null && { loaContentType: input.loaContentType }),
|
|
3574
|
-
...(input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName }),
|
|
3581
|
+
...(input.interconnectId != null && { interconnectId: input.interconnectId }),
|
|
3582
|
+
...(input.loaContentType != null && { loaContentType: input.loaContentType }),
|
|
3583
|
+
...(input.providerName != null && { providerName: input.providerName }),
|
|
3575
3584
|
};
|
|
3576
3585
|
};
|
|
3577
3586
|
const serializeAws_json1_1DescribeInterconnectsRequest = (input, context) => {
|
|
3578
3587
|
return {
|
|
3579
|
-
...(input.interconnectId
|
|
3580
|
-
input.interconnectId !== null && { interconnectId: input.interconnectId }),
|
|
3588
|
+
...(input.interconnectId != null && { interconnectId: input.interconnectId }),
|
|
3581
3589
|
};
|
|
3582
3590
|
};
|
|
3583
3591
|
const serializeAws_json1_1DescribeLagsRequest = (input, context) => {
|
|
3584
3592
|
return {
|
|
3585
|
-
...(input.lagId
|
|
3593
|
+
...(input.lagId != null && { lagId: input.lagId }),
|
|
3586
3594
|
};
|
|
3587
3595
|
};
|
|
3588
3596
|
const serializeAws_json1_1DescribeLoaRequest = (input, context) => {
|
|
3589
3597
|
return {
|
|
3590
|
-
...(input.connectionId
|
|
3591
|
-
...(input.loaContentType
|
|
3592
|
-
|
|
3593
|
-
...(input.providerName !== undefined && input.providerName !== null && { providerName: input.providerName }),
|
|
3598
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3599
|
+
...(input.loaContentType != null && { loaContentType: input.loaContentType }),
|
|
3600
|
+
...(input.providerName != null && { providerName: input.providerName }),
|
|
3594
3601
|
};
|
|
3595
3602
|
};
|
|
3596
3603
|
const serializeAws_json1_1DescribeRouterConfigurationRequest = (input, context) => {
|
|
3597
3604
|
return {
|
|
3598
|
-
...(input.routerTypeIdentifier
|
|
3599
|
-
|
|
3600
|
-
...(input.virtualInterfaceId !== undefined &&
|
|
3601
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3605
|
+
...(input.routerTypeIdentifier != null && { routerTypeIdentifier: input.routerTypeIdentifier }),
|
|
3606
|
+
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3602
3607
|
};
|
|
3603
3608
|
};
|
|
3604
3609
|
const serializeAws_json1_1DescribeTagsRequest = (input, context) => {
|
|
3605
3610
|
return {
|
|
3606
|
-
...(input.resourceArns
|
|
3607
|
-
input.resourceArns !== null && {
|
|
3611
|
+
...(input.resourceArns != null && {
|
|
3608
3612
|
resourceArns: serializeAws_json1_1ResourceArnList(input.resourceArns, context),
|
|
3609
3613
|
}),
|
|
3610
3614
|
};
|
|
3611
3615
|
};
|
|
3612
3616
|
const serializeAws_json1_1DescribeVirtualInterfacesRequest = (input, context) => {
|
|
3613
3617
|
return {
|
|
3614
|
-
...(input.connectionId
|
|
3615
|
-
...(input.virtualInterfaceId
|
|
3616
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3618
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3619
|
+
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3617
3620
|
};
|
|
3618
3621
|
};
|
|
3619
3622
|
const serializeAws_json1_1DisassociateConnectionFromLagRequest = (input, context) => {
|
|
3620
3623
|
return {
|
|
3621
|
-
...(input.connectionId
|
|
3622
|
-
...(input.lagId
|
|
3624
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3625
|
+
...(input.lagId != null && { lagId: input.lagId }),
|
|
3623
3626
|
};
|
|
3624
3627
|
};
|
|
3625
3628
|
const serializeAws_json1_1DisassociateMacSecKeyRequest = (input, context) => {
|
|
3626
3629
|
return {
|
|
3627
|
-
...(input.connectionId
|
|
3628
|
-
...(input.secretARN
|
|
3630
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3631
|
+
...(input.secretARN != null && { secretARN: input.secretARN }),
|
|
3629
3632
|
};
|
|
3630
3633
|
};
|
|
3631
3634
|
const serializeAws_json1_1ListVirtualInterfaceTestHistoryRequest = (input, context) => {
|
|
3632
3635
|
return {
|
|
3633
|
-
...(input.bgpPeers
|
|
3634
|
-
|
|
3635
|
-
...(input.
|
|
3636
|
-
...(input.
|
|
3637
|
-
...(input.
|
|
3638
|
-
...(input.
|
|
3639
|
-
...(input.virtualInterfaceId !== undefined &&
|
|
3640
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3636
|
+
...(input.bgpPeers != null && { bgpPeers: serializeAws_json1_1BGPPeerIdList(input.bgpPeers, context) }),
|
|
3637
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
3638
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
3639
|
+
...(input.status != null && { status: input.status }),
|
|
3640
|
+
...(input.testId != null && { testId: input.testId }),
|
|
3641
|
+
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3641
3642
|
};
|
|
3642
3643
|
};
|
|
3643
3644
|
const serializeAws_json1_1NewBGPPeer = (input, context) => {
|
|
3644
3645
|
return {
|
|
3645
|
-
...(input.addressFamily
|
|
3646
|
-
...(input.amazonAddress
|
|
3647
|
-
...(input.asn
|
|
3648
|
-
...(input.authKey
|
|
3649
|
-
...(input.customerAddress
|
|
3650
|
-
input.customerAddress !== null && { customerAddress: input.customerAddress }),
|
|
3646
|
+
...(input.addressFamily != null && { addressFamily: input.addressFamily }),
|
|
3647
|
+
...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
|
|
3648
|
+
...(input.asn != null && { asn: input.asn }),
|
|
3649
|
+
...(input.authKey != null && { authKey: input.authKey }),
|
|
3650
|
+
...(input.customerAddress != null && { customerAddress: input.customerAddress }),
|
|
3651
3651
|
};
|
|
3652
3652
|
};
|
|
3653
3653
|
const serializeAws_json1_1NewPrivateVirtualInterface = (input, context) => {
|
|
3654
3654
|
return {
|
|
3655
|
-
...(input.addressFamily
|
|
3656
|
-
...(input.amazonAddress
|
|
3657
|
-
...(input.asn
|
|
3658
|
-
...(input.authKey
|
|
3659
|
-
...(input.customerAddress
|
|
3660
|
-
|
|
3661
|
-
...(input.
|
|
3662
|
-
|
|
3663
|
-
...(input.
|
|
3664
|
-
|
|
3665
|
-
...(input.
|
|
3666
|
-
...(input.
|
|
3667
|
-
...(input.virtualGatewayId !== undefined &&
|
|
3668
|
-
input.virtualGatewayId !== null && { virtualGatewayId: input.virtualGatewayId }),
|
|
3669
|
-
...(input.virtualInterfaceName !== undefined &&
|
|
3670
|
-
input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3671
|
-
...(input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }),
|
|
3655
|
+
...(input.addressFamily != null && { addressFamily: input.addressFamily }),
|
|
3656
|
+
...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
|
|
3657
|
+
...(input.asn != null && { asn: input.asn }),
|
|
3658
|
+
...(input.authKey != null && { authKey: input.authKey }),
|
|
3659
|
+
...(input.customerAddress != null && { customerAddress: input.customerAddress }),
|
|
3660
|
+
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3661
|
+
...(input.enableSiteLink != null && { enableSiteLink: input.enableSiteLink }),
|
|
3662
|
+
...(input.mtu != null && { mtu: input.mtu }),
|
|
3663
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3664
|
+
...(input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }),
|
|
3665
|
+
...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3666
|
+
...(input.vlan != null && { vlan: input.vlan }),
|
|
3672
3667
|
};
|
|
3673
3668
|
};
|
|
3674
3669
|
const serializeAws_json1_1NewPrivateVirtualInterfaceAllocation = (input, context) => {
|
|
3675
3670
|
return {
|
|
3676
|
-
...(input.addressFamily
|
|
3677
|
-
...(input.amazonAddress
|
|
3678
|
-
...(input.asn
|
|
3679
|
-
...(input.authKey
|
|
3680
|
-
...(input.customerAddress
|
|
3681
|
-
|
|
3682
|
-
...(input.
|
|
3683
|
-
...(input.
|
|
3684
|
-
...(input.
|
|
3685
|
-
input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3686
|
-
...(input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }),
|
|
3671
|
+
...(input.addressFamily != null && { addressFamily: input.addressFamily }),
|
|
3672
|
+
...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
|
|
3673
|
+
...(input.asn != null && { asn: input.asn }),
|
|
3674
|
+
...(input.authKey != null && { authKey: input.authKey }),
|
|
3675
|
+
...(input.customerAddress != null && { customerAddress: input.customerAddress }),
|
|
3676
|
+
...(input.mtu != null && { mtu: input.mtu }),
|
|
3677
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3678
|
+
...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3679
|
+
...(input.vlan != null && { vlan: input.vlan }),
|
|
3687
3680
|
};
|
|
3688
3681
|
};
|
|
3689
3682
|
const serializeAws_json1_1NewPublicVirtualInterface = (input, context) => {
|
|
3690
3683
|
return {
|
|
3691
|
-
...(input.addressFamily
|
|
3692
|
-
...(input.amazonAddress
|
|
3693
|
-
...(input.asn
|
|
3694
|
-
...(input.authKey
|
|
3695
|
-
...(input.customerAddress
|
|
3696
|
-
|
|
3697
|
-
...(input.routeFilterPrefixes !== undefined &&
|
|
3698
|
-
input.routeFilterPrefixes !== null && {
|
|
3684
|
+
...(input.addressFamily != null && { addressFamily: input.addressFamily }),
|
|
3685
|
+
...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
|
|
3686
|
+
...(input.asn != null && { asn: input.asn }),
|
|
3687
|
+
...(input.authKey != null && { authKey: input.authKey }),
|
|
3688
|
+
...(input.customerAddress != null && { customerAddress: input.customerAddress }),
|
|
3689
|
+
...(input.routeFilterPrefixes != null && {
|
|
3699
3690
|
routeFilterPrefixes: serializeAws_json1_1RouteFilterPrefixList(input.routeFilterPrefixes, context),
|
|
3700
3691
|
}),
|
|
3701
|
-
...(input.tags
|
|
3702
|
-
...(input.virtualInterfaceName
|
|
3703
|
-
|
|
3704
|
-
...(input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }),
|
|
3692
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3693
|
+
...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3694
|
+
...(input.vlan != null && { vlan: input.vlan }),
|
|
3705
3695
|
};
|
|
3706
3696
|
};
|
|
3707
3697
|
const serializeAws_json1_1NewPublicVirtualInterfaceAllocation = (input, context) => {
|
|
3708
3698
|
return {
|
|
3709
|
-
...(input.addressFamily
|
|
3710
|
-
...(input.amazonAddress
|
|
3711
|
-
...(input.asn
|
|
3712
|
-
...(input.authKey
|
|
3713
|
-
...(input.customerAddress
|
|
3714
|
-
|
|
3715
|
-
...(input.routeFilterPrefixes !== undefined &&
|
|
3716
|
-
input.routeFilterPrefixes !== null && {
|
|
3699
|
+
...(input.addressFamily != null && { addressFamily: input.addressFamily }),
|
|
3700
|
+
...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
|
|
3701
|
+
...(input.asn != null && { asn: input.asn }),
|
|
3702
|
+
...(input.authKey != null && { authKey: input.authKey }),
|
|
3703
|
+
...(input.customerAddress != null && { customerAddress: input.customerAddress }),
|
|
3704
|
+
...(input.routeFilterPrefixes != null && {
|
|
3717
3705
|
routeFilterPrefixes: serializeAws_json1_1RouteFilterPrefixList(input.routeFilterPrefixes, context),
|
|
3718
3706
|
}),
|
|
3719
|
-
...(input.tags
|
|
3720
|
-
...(input.virtualInterfaceName
|
|
3721
|
-
|
|
3722
|
-
...(input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }),
|
|
3707
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3708
|
+
...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3709
|
+
...(input.vlan != null && { vlan: input.vlan }),
|
|
3723
3710
|
};
|
|
3724
3711
|
};
|
|
3725
3712
|
const serializeAws_json1_1NewTransitVirtualInterface = (input, context) => {
|
|
3726
3713
|
return {
|
|
3727
|
-
...(input.addressFamily
|
|
3728
|
-
...(input.amazonAddress
|
|
3729
|
-
...(input.asn
|
|
3730
|
-
...(input.authKey
|
|
3731
|
-
...(input.customerAddress
|
|
3732
|
-
|
|
3733
|
-
...(input.
|
|
3734
|
-
|
|
3735
|
-
...(input.
|
|
3736
|
-
|
|
3737
|
-
...(input.
|
|
3738
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3739
|
-
...(input.virtualInterfaceName !== undefined &&
|
|
3740
|
-
input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3741
|
-
...(input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }),
|
|
3714
|
+
...(input.addressFamily != null && { addressFamily: input.addressFamily }),
|
|
3715
|
+
...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
|
|
3716
|
+
...(input.asn != null && { asn: input.asn }),
|
|
3717
|
+
...(input.authKey != null && { authKey: input.authKey }),
|
|
3718
|
+
...(input.customerAddress != null && { customerAddress: input.customerAddress }),
|
|
3719
|
+
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3720
|
+
...(input.enableSiteLink != null && { enableSiteLink: input.enableSiteLink }),
|
|
3721
|
+
...(input.mtu != null && { mtu: input.mtu }),
|
|
3722
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3723
|
+
...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3724
|
+
...(input.vlan != null && { vlan: input.vlan }),
|
|
3742
3725
|
};
|
|
3743
3726
|
};
|
|
3744
3727
|
const serializeAws_json1_1NewTransitVirtualInterfaceAllocation = (input, context) => {
|
|
3745
3728
|
return {
|
|
3746
|
-
...(input.addressFamily
|
|
3747
|
-
...(input.amazonAddress
|
|
3748
|
-
...(input.asn
|
|
3749
|
-
...(input.authKey
|
|
3750
|
-
...(input.customerAddress
|
|
3751
|
-
|
|
3752
|
-
...(input.
|
|
3753
|
-
...(input.
|
|
3754
|
-
...(input.
|
|
3755
|
-
input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3756
|
-
...(input.vlan !== undefined && input.vlan !== null && { vlan: input.vlan }),
|
|
3729
|
+
...(input.addressFamily != null && { addressFamily: input.addressFamily }),
|
|
3730
|
+
...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
|
|
3731
|
+
...(input.asn != null && { asn: input.asn }),
|
|
3732
|
+
...(input.authKey != null && { authKey: input.authKey }),
|
|
3733
|
+
...(input.customerAddress != null && { customerAddress: input.customerAddress }),
|
|
3734
|
+
...(input.mtu != null && { mtu: input.mtu }),
|
|
3735
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3736
|
+
...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3737
|
+
...(input.vlan != null && { vlan: input.vlan }),
|
|
3757
3738
|
};
|
|
3758
3739
|
};
|
|
3759
3740
|
const serializeAws_json1_1ResourceArnList = (input, context) => {
|
|
@@ -3768,7 +3749,7 @@ const serializeAws_json1_1ResourceArnList = (input, context) => {
|
|
|
3768
3749
|
};
|
|
3769
3750
|
const serializeAws_json1_1RouteFilterPrefix = (input, context) => {
|
|
3770
3751
|
return {
|
|
3771
|
-
...(input.cidr
|
|
3752
|
+
...(input.cidr != null && { cidr: input.cidr }),
|
|
3772
3753
|
};
|
|
3773
3754
|
};
|
|
3774
3755
|
const serializeAws_json1_1RouteFilterPrefixList = (input, context) => {
|
|
@@ -3783,24 +3764,20 @@ const serializeAws_json1_1RouteFilterPrefixList = (input, context) => {
|
|
|
3783
3764
|
};
|
|
3784
3765
|
const serializeAws_json1_1StartBgpFailoverTestRequest = (input, context) => {
|
|
3785
3766
|
return {
|
|
3786
|
-
...(input.bgpPeers
|
|
3787
|
-
|
|
3788
|
-
...(input.
|
|
3789
|
-
input.testDurationInMinutes !== null && { testDurationInMinutes: input.testDurationInMinutes }),
|
|
3790
|
-
...(input.virtualInterfaceId !== undefined &&
|
|
3791
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3767
|
+
...(input.bgpPeers != null && { bgpPeers: serializeAws_json1_1BGPPeerIdList(input.bgpPeers, context) }),
|
|
3768
|
+
...(input.testDurationInMinutes != null && { testDurationInMinutes: input.testDurationInMinutes }),
|
|
3769
|
+
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3792
3770
|
};
|
|
3793
3771
|
};
|
|
3794
3772
|
const serializeAws_json1_1StopBgpFailoverTestRequest = (input, context) => {
|
|
3795
3773
|
return {
|
|
3796
|
-
...(input.virtualInterfaceId
|
|
3797
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3774
|
+
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3798
3775
|
};
|
|
3799
3776
|
};
|
|
3800
3777
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
3801
3778
|
return {
|
|
3802
|
-
...(input.key
|
|
3803
|
-
...(input.value
|
|
3779
|
+
...(input.key != null && { key: input.key }),
|
|
3780
|
+
...(input.value != null && { value: input.value }),
|
|
3804
3781
|
};
|
|
3805
3782
|
};
|
|
3806
3783
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -3825,70 +3802,61 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
3825
3802
|
};
|
|
3826
3803
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
3827
3804
|
return {
|
|
3828
|
-
...(input.resourceArn
|
|
3829
|
-
...(input.tags
|
|
3805
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
3806
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3830
3807
|
};
|
|
3831
3808
|
};
|
|
3832
3809
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
3833
3810
|
return {
|
|
3834
|
-
...(input.resourceArn
|
|
3835
|
-
...(input.tagKeys
|
|
3836
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
3811
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
3812
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
3837
3813
|
};
|
|
3838
3814
|
};
|
|
3839
3815
|
const serializeAws_json1_1UpdateConnectionRequest = (input, context) => {
|
|
3840
3816
|
return {
|
|
3841
|
-
...(input.connectionId
|
|
3842
|
-
...(input.connectionName
|
|
3843
|
-
|
|
3844
|
-
...(input.encryptionMode !== undefined &&
|
|
3845
|
-
input.encryptionMode !== null && { encryptionMode: input.encryptionMode }),
|
|
3817
|
+
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3818
|
+
...(input.connectionName != null && { connectionName: input.connectionName }),
|
|
3819
|
+
...(input.encryptionMode != null && { encryptionMode: input.encryptionMode }),
|
|
3846
3820
|
};
|
|
3847
3821
|
};
|
|
3848
3822
|
const serializeAws_json1_1UpdateDirectConnectGatewayAssociationRequest = (input, context) => {
|
|
3849
3823
|
return {
|
|
3850
|
-
...(input.addAllowedPrefixesToDirectConnectGateway
|
|
3851
|
-
input.addAllowedPrefixesToDirectConnectGateway !== null && {
|
|
3824
|
+
...(input.addAllowedPrefixesToDirectConnectGateway != null && {
|
|
3852
3825
|
addAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.addAllowedPrefixesToDirectConnectGateway, context),
|
|
3853
3826
|
}),
|
|
3854
|
-
...(input.associationId
|
|
3855
|
-
...(input.removeAllowedPrefixesToDirectConnectGateway
|
|
3856
|
-
input.removeAllowedPrefixesToDirectConnectGateway !== null && {
|
|
3827
|
+
...(input.associationId != null && { associationId: input.associationId }),
|
|
3828
|
+
...(input.removeAllowedPrefixesToDirectConnectGateway != null && {
|
|
3857
3829
|
removeAllowedPrefixesToDirectConnectGateway: serializeAws_json1_1RouteFilterPrefixList(input.removeAllowedPrefixesToDirectConnectGateway, context),
|
|
3858
3830
|
}),
|
|
3859
3831
|
};
|
|
3860
3832
|
};
|
|
3861
3833
|
const serializeAws_json1_1UpdateDirectConnectGatewayRequest = (input, context) => {
|
|
3862
3834
|
return {
|
|
3863
|
-
...(input.directConnectGatewayId
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3835
|
+
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3836
|
+
...(input.newDirectConnectGatewayName != null && {
|
|
3837
|
+
newDirectConnectGatewayName: input.newDirectConnectGatewayName,
|
|
3838
|
+
}),
|
|
3867
3839
|
};
|
|
3868
3840
|
};
|
|
3869
3841
|
const serializeAws_json1_1UpdateLagRequest = (input, context) => {
|
|
3870
3842
|
return {
|
|
3871
|
-
...(input.encryptionMode
|
|
3872
|
-
|
|
3873
|
-
...(input.
|
|
3874
|
-
...(input.
|
|
3875
|
-
...(input.minimumLinks !== undefined && input.minimumLinks !== null && { minimumLinks: input.minimumLinks }),
|
|
3843
|
+
...(input.encryptionMode != null && { encryptionMode: input.encryptionMode }),
|
|
3844
|
+
...(input.lagId != null && { lagId: input.lagId }),
|
|
3845
|
+
...(input.lagName != null && { lagName: input.lagName }),
|
|
3846
|
+
...(input.minimumLinks != null && { minimumLinks: input.minimumLinks }),
|
|
3876
3847
|
};
|
|
3877
3848
|
};
|
|
3878
3849
|
const serializeAws_json1_1UpdateVirtualInterfaceAttributesRequest = (input, context) => {
|
|
3879
3850
|
return {
|
|
3880
|
-
...(input.enableSiteLink
|
|
3881
|
-
|
|
3882
|
-
...(input.
|
|
3883
|
-
...(input.
|
|
3884
|
-
input.virtualInterfaceId !== null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3885
|
-
...(input.virtualInterfaceName !== undefined &&
|
|
3886
|
-
input.virtualInterfaceName !== null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3851
|
+
...(input.enableSiteLink != null && { enableSiteLink: input.enableSiteLink }),
|
|
3852
|
+
...(input.mtu != null && { mtu: input.mtu }),
|
|
3853
|
+
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3854
|
+
...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3887
3855
|
};
|
|
3888
3856
|
};
|
|
3889
3857
|
const deserializeAws_json1_1AcceptDirectConnectGatewayAssociationProposalResult = (output, context) => {
|
|
3890
3858
|
return {
|
|
3891
|
-
directConnectGatewayAssociation: output.directConnectGatewayAssociation
|
|
3859
|
+
directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
|
|
3892
3860
|
? deserializeAws_json1_1DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
|
|
3893
3861
|
: undefined,
|
|
3894
3862
|
};
|
|
@@ -3906,7 +3874,7 @@ const deserializeAws_json1_1AgreementList = (output, context) => {
|
|
|
3906
3874
|
};
|
|
3907
3875
|
const deserializeAws_json1_1AllocateTransitVirtualInterfaceResult = (output, context) => {
|
|
3908
3876
|
return {
|
|
3909
|
-
virtualInterface: output.virtualInterface
|
|
3877
|
+
virtualInterface: output.virtualInterface != null
|
|
3910
3878
|
? deserializeAws_json1_1VirtualInterface(output.virtualInterface, context)
|
|
3911
3879
|
: undefined,
|
|
3912
3880
|
};
|
|
@@ -3922,9 +3890,7 @@ const deserializeAws_json1_1AssociatedGateway = (output, context) => {
|
|
|
3922
3890
|
const deserializeAws_json1_1AssociateMacSecKeyResponse = (output, context) => {
|
|
3923
3891
|
return {
|
|
3924
3892
|
connectionId: (0, smithy_client_1.expectString)(output.connectionId),
|
|
3925
|
-
macSecKeys: output.macSecKeys
|
|
3926
|
-
? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context)
|
|
3927
|
-
: undefined,
|
|
3893
|
+
macSecKeys: output.macSecKeys != null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined,
|
|
3928
3894
|
};
|
|
3929
3895
|
};
|
|
3930
3896
|
const deserializeAws_json1_1AvailableMacSecPortSpeeds = (output, context) => {
|
|
@@ -4023,22 +3989,18 @@ const deserializeAws_json1_1Connection = (output, context) => {
|
|
|
4023
3989
|
hasLogicalRedundancy: (0, smithy_client_1.expectString)(output.hasLogicalRedundancy),
|
|
4024
3990
|
jumboFrameCapable: (0, smithy_client_1.expectBoolean)(output.jumboFrameCapable),
|
|
4025
3991
|
lagId: (0, smithy_client_1.expectString)(output.lagId),
|
|
4026
|
-
loaIssueTime: output.loaIssueTime
|
|
3992
|
+
loaIssueTime: output.loaIssueTime != null
|
|
4027
3993
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.loaIssueTime)))
|
|
4028
3994
|
: undefined,
|
|
4029
3995
|
location: (0, smithy_client_1.expectString)(output.location),
|
|
4030
3996
|
macSecCapable: (0, smithy_client_1.expectBoolean)(output.macSecCapable),
|
|
4031
|
-
macSecKeys: output.macSecKeys
|
|
4032
|
-
? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context)
|
|
4033
|
-
: undefined,
|
|
3997
|
+
macSecKeys: output.macSecKeys != null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined,
|
|
4034
3998
|
ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
|
|
4035
3999
|
partnerName: (0, smithy_client_1.expectString)(output.partnerName),
|
|
4036
4000
|
portEncryptionStatus: (0, smithy_client_1.expectString)(output.portEncryptionStatus),
|
|
4037
4001
|
providerName: (0, smithy_client_1.expectString)(output.providerName),
|
|
4038
4002
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
4039
|
-
tags: output.tags
|
|
4040
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
4041
|
-
: undefined,
|
|
4003
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
4042
4004
|
vlan: (0, smithy_client_1.expectInt32)(output.vlan),
|
|
4043
4005
|
};
|
|
4044
4006
|
};
|
|
@@ -4055,43 +4017,40 @@ const deserializeAws_json1_1ConnectionList = (output, context) => {
|
|
|
4055
4017
|
};
|
|
4056
4018
|
const deserializeAws_json1_1Connections = (output, context) => {
|
|
4057
4019
|
return {
|
|
4058
|
-
connections: output.connections
|
|
4059
|
-
? deserializeAws_json1_1ConnectionList(output.connections, context)
|
|
4060
|
-
: undefined,
|
|
4020
|
+
connections: output.connections != null ? deserializeAws_json1_1ConnectionList(output.connections, context) : undefined,
|
|
4061
4021
|
};
|
|
4062
4022
|
};
|
|
4063
4023
|
const deserializeAws_json1_1CreateBGPPeerResponse = (output, context) => {
|
|
4064
4024
|
return {
|
|
4065
|
-
virtualInterface: output.virtualInterface
|
|
4025
|
+
virtualInterface: output.virtualInterface != null
|
|
4066
4026
|
? deserializeAws_json1_1VirtualInterface(output.virtualInterface, context)
|
|
4067
4027
|
: undefined,
|
|
4068
4028
|
};
|
|
4069
4029
|
};
|
|
4070
4030
|
const deserializeAws_json1_1CreateDirectConnectGatewayAssociationProposalResult = (output, context) => {
|
|
4071
4031
|
return {
|
|
4072
|
-
directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal
|
|
4073
|
-
output.directConnectGatewayAssociationProposal !== null
|
|
4032
|
+
directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal != null
|
|
4074
4033
|
? deserializeAws_json1_1DirectConnectGatewayAssociationProposal(output.directConnectGatewayAssociationProposal, context)
|
|
4075
4034
|
: undefined,
|
|
4076
4035
|
};
|
|
4077
4036
|
};
|
|
4078
4037
|
const deserializeAws_json1_1CreateDirectConnectGatewayAssociationResult = (output, context) => {
|
|
4079
4038
|
return {
|
|
4080
|
-
directConnectGatewayAssociation: output.directConnectGatewayAssociation
|
|
4039
|
+
directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
|
|
4081
4040
|
? deserializeAws_json1_1DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
|
|
4082
4041
|
: undefined,
|
|
4083
4042
|
};
|
|
4084
4043
|
};
|
|
4085
4044
|
const deserializeAws_json1_1CreateDirectConnectGatewayResult = (output, context) => {
|
|
4086
4045
|
return {
|
|
4087
|
-
directConnectGateway: output.directConnectGateway
|
|
4046
|
+
directConnectGateway: output.directConnectGateway != null
|
|
4088
4047
|
? deserializeAws_json1_1DirectConnectGateway(output.directConnectGateway, context)
|
|
4089
4048
|
: undefined,
|
|
4090
4049
|
};
|
|
4091
4050
|
};
|
|
4092
4051
|
const deserializeAws_json1_1CreateTransitVirtualInterfaceResult = (output, context) => {
|
|
4093
4052
|
return {
|
|
4094
|
-
virtualInterface: output.virtualInterface
|
|
4053
|
+
virtualInterface: output.virtualInterface != null
|
|
4095
4054
|
? deserializeAws_json1_1VirtualInterface(output.virtualInterface, context)
|
|
4096
4055
|
: undefined,
|
|
4097
4056
|
};
|
|
@@ -4104,29 +4063,28 @@ const deserializeAws_json1_1CustomerAgreement = (output, context) => {
|
|
|
4104
4063
|
};
|
|
4105
4064
|
const deserializeAws_json1_1DeleteBGPPeerResponse = (output, context) => {
|
|
4106
4065
|
return {
|
|
4107
|
-
virtualInterface: output.virtualInterface
|
|
4066
|
+
virtualInterface: output.virtualInterface != null
|
|
4108
4067
|
? deserializeAws_json1_1VirtualInterface(output.virtualInterface, context)
|
|
4109
4068
|
: undefined,
|
|
4110
4069
|
};
|
|
4111
4070
|
};
|
|
4112
4071
|
const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationProposalResult = (output, context) => {
|
|
4113
4072
|
return {
|
|
4114
|
-
directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal
|
|
4115
|
-
output.directConnectGatewayAssociationProposal !== null
|
|
4073
|
+
directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal != null
|
|
4116
4074
|
? deserializeAws_json1_1DirectConnectGatewayAssociationProposal(output.directConnectGatewayAssociationProposal, context)
|
|
4117
4075
|
: undefined,
|
|
4118
4076
|
};
|
|
4119
4077
|
};
|
|
4120
4078
|
const deserializeAws_json1_1DeleteDirectConnectGatewayAssociationResult = (output, context) => {
|
|
4121
4079
|
return {
|
|
4122
|
-
directConnectGatewayAssociation: output.directConnectGatewayAssociation
|
|
4080
|
+
directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
|
|
4123
4081
|
? deserializeAws_json1_1DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
|
|
4124
4082
|
: undefined,
|
|
4125
4083
|
};
|
|
4126
4084
|
};
|
|
4127
4085
|
const deserializeAws_json1_1DeleteDirectConnectGatewayResult = (output, context) => {
|
|
4128
4086
|
return {
|
|
4129
|
-
directConnectGateway: output.directConnectGateway
|
|
4087
|
+
directConnectGateway: output.directConnectGateway != null
|
|
4130
4088
|
? deserializeAws_json1_1DirectConnectGateway(output.directConnectGateway, context)
|
|
4131
4089
|
: undefined,
|
|
4132
4090
|
};
|
|
@@ -4143,21 +4101,18 @@ const deserializeAws_json1_1DeleteVirtualInterfaceResponse = (output, context) =
|
|
|
4143
4101
|
};
|
|
4144
4102
|
const deserializeAws_json1_1DescribeConnectionLoaResponse = (output, context) => {
|
|
4145
4103
|
return {
|
|
4146
|
-
loa: output.loa
|
|
4104
|
+
loa: output.loa != null ? deserializeAws_json1_1Loa(output.loa, context) : undefined,
|
|
4147
4105
|
};
|
|
4148
4106
|
};
|
|
4149
4107
|
const deserializeAws_json1_1DescribeCustomerMetadataResponse = (output, context) => {
|
|
4150
4108
|
return {
|
|
4151
|
-
agreements: output.agreements
|
|
4152
|
-
? deserializeAws_json1_1AgreementList(output.agreements, context)
|
|
4153
|
-
: undefined,
|
|
4109
|
+
agreements: output.agreements != null ? deserializeAws_json1_1AgreementList(output.agreements, context) : undefined,
|
|
4154
4110
|
nniPartnerType: (0, smithy_client_1.expectString)(output.nniPartnerType),
|
|
4155
4111
|
};
|
|
4156
4112
|
};
|
|
4157
4113
|
const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsResult = (output, context) => {
|
|
4158
4114
|
return {
|
|
4159
|
-
directConnectGatewayAssociationProposals: output.directConnectGatewayAssociationProposals
|
|
4160
|
-
output.directConnectGatewayAssociationProposals !== null
|
|
4115
|
+
directConnectGatewayAssociationProposals: output.directConnectGatewayAssociationProposals != null
|
|
4161
4116
|
? deserializeAws_json1_1DirectConnectGatewayAssociationProposalList(output.directConnectGatewayAssociationProposals, context)
|
|
4162
4117
|
: undefined,
|
|
4163
4118
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -4165,7 +4120,7 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationProposalsResu
|
|
|
4165
4120
|
};
|
|
4166
4121
|
const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsResult = (output, context) => {
|
|
4167
4122
|
return {
|
|
4168
|
-
directConnectGatewayAssociations: output.directConnectGatewayAssociations
|
|
4123
|
+
directConnectGatewayAssociations: output.directConnectGatewayAssociations != null
|
|
4169
4124
|
? deserializeAws_json1_1DirectConnectGatewayAssociationList(output.directConnectGatewayAssociations, context)
|
|
4170
4125
|
: undefined,
|
|
4171
4126
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -4173,7 +4128,7 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAssociationsResult = (ou
|
|
|
4173
4128
|
};
|
|
4174
4129
|
const deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsResult = (output, context) => {
|
|
4175
4130
|
return {
|
|
4176
|
-
directConnectGatewayAttachments: output.directConnectGatewayAttachments
|
|
4131
|
+
directConnectGatewayAttachments: output.directConnectGatewayAttachments != null
|
|
4177
4132
|
? deserializeAws_json1_1DirectConnectGatewayAttachmentList(output.directConnectGatewayAttachments, context)
|
|
4178
4133
|
: undefined,
|
|
4179
4134
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -4181,7 +4136,7 @@ const deserializeAws_json1_1DescribeDirectConnectGatewayAttachmentsResult = (out
|
|
|
4181
4136
|
};
|
|
4182
4137
|
const deserializeAws_json1_1DescribeDirectConnectGatewaysResult = (output, context) => {
|
|
4183
4138
|
return {
|
|
4184
|
-
directConnectGateways: output.directConnectGateways
|
|
4139
|
+
directConnectGateways: output.directConnectGateways != null
|
|
4185
4140
|
? deserializeAws_json1_1DirectConnectGatewayList(output.directConnectGateways, context)
|
|
4186
4141
|
: undefined,
|
|
4187
4142
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
@@ -4189,24 +4144,20 @@ const deserializeAws_json1_1DescribeDirectConnectGatewaysResult = (output, conte
|
|
|
4189
4144
|
};
|
|
4190
4145
|
const deserializeAws_json1_1DescribeInterconnectLoaResponse = (output, context) => {
|
|
4191
4146
|
return {
|
|
4192
|
-
loa: output.loa
|
|
4147
|
+
loa: output.loa != null ? deserializeAws_json1_1Loa(output.loa, context) : undefined,
|
|
4193
4148
|
};
|
|
4194
4149
|
};
|
|
4195
4150
|
const deserializeAws_json1_1DescribeRouterConfigurationResponse = (output, context) => {
|
|
4196
4151
|
return {
|
|
4197
4152
|
customerRouterConfig: (0, smithy_client_1.expectString)(output.customerRouterConfig),
|
|
4198
|
-
router: output.router
|
|
4199
|
-
? deserializeAws_json1_1RouterType(output.router, context)
|
|
4200
|
-
: undefined,
|
|
4153
|
+
router: output.router != null ? deserializeAws_json1_1RouterType(output.router, context) : undefined,
|
|
4201
4154
|
virtualInterfaceId: (0, smithy_client_1.expectString)(output.virtualInterfaceId),
|
|
4202
4155
|
virtualInterfaceName: (0, smithy_client_1.expectString)(output.virtualInterfaceName),
|
|
4203
4156
|
};
|
|
4204
4157
|
};
|
|
4205
4158
|
const deserializeAws_json1_1DescribeTagsResponse = (output, context) => {
|
|
4206
4159
|
return {
|
|
4207
|
-
resourceTags: output.resourceTags
|
|
4208
|
-
? deserializeAws_json1_1ResourceTagList(output.resourceTags, context)
|
|
4209
|
-
: undefined,
|
|
4160
|
+
resourceTags: output.resourceTags != null ? deserializeAws_json1_1ResourceTagList(output.resourceTags, context) : undefined,
|
|
4210
4161
|
};
|
|
4211
4162
|
};
|
|
4212
4163
|
const deserializeAws_json1_1DirectConnectClientException = (output, context) => {
|
|
@@ -4226,11 +4177,10 @@ const deserializeAws_json1_1DirectConnectGateway = (output, context) => {
|
|
|
4226
4177
|
};
|
|
4227
4178
|
const deserializeAws_json1_1DirectConnectGatewayAssociation = (output, context) => {
|
|
4228
4179
|
return {
|
|
4229
|
-
allowedPrefixesToDirectConnectGateway: output.allowedPrefixesToDirectConnectGateway
|
|
4230
|
-
output.allowedPrefixesToDirectConnectGateway !== null
|
|
4180
|
+
allowedPrefixesToDirectConnectGateway: output.allowedPrefixesToDirectConnectGateway != null
|
|
4231
4181
|
? deserializeAws_json1_1RouteFilterPrefixList(output.allowedPrefixesToDirectConnectGateway, context)
|
|
4232
4182
|
: undefined,
|
|
4233
|
-
associatedGateway: output.associatedGateway
|
|
4183
|
+
associatedGateway: output.associatedGateway != null
|
|
4234
4184
|
? deserializeAws_json1_1AssociatedGateway(output.associatedGateway, context)
|
|
4235
4185
|
: undefined,
|
|
4236
4186
|
associationId: (0, smithy_client_1.expectString)(output.associationId),
|
|
@@ -4256,19 +4206,17 @@ const deserializeAws_json1_1DirectConnectGatewayAssociationList = (output, conte
|
|
|
4256
4206
|
};
|
|
4257
4207
|
const deserializeAws_json1_1DirectConnectGatewayAssociationProposal = (output, context) => {
|
|
4258
4208
|
return {
|
|
4259
|
-
associatedGateway: output.associatedGateway
|
|
4209
|
+
associatedGateway: output.associatedGateway != null
|
|
4260
4210
|
? deserializeAws_json1_1AssociatedGateway(output.associatedGateway, context)
|
|
4261
4211
|
: undefined,
|
|
4262
4212
|
directConnectGatewayId: (0, smithy_client_1.expectString)(output.directConnectGatewayId),
|
|
4263
4213
|
directConnectGatewayOwnerAccount: (0, smithy_client_1.expectString)(output.directConnectGatewayOwnerAccount),
|
|
4264
|
-
existingAllowedPrefixesToDirectConnectGateway: output.existingAllowedPrefixesToDirectConnectGateway
|
|
4265
|
-
output.existingAllowedPrefixesToDirectConnectGateway !== null
|
|
4214
|
+
existingAllowedPrefixesToDirectConnectGateway: output.existingAllowedPrefixesToDirectConnectGateway != null
|
|
4266
4215
|
? deserializeAws_json1_1RouteFilterPrefixList(output.existingAllowedPrefixesToDirectConnectGateway, context)
|
|
4267
4216
|
: undefined,
|
|
4268
4217
|
proposalId: (0, smithy_client_1.expectString)(output.proposalId),
|
|
4269
4218
|
proposalState: (0, smithy_client_1.expectString)(output.proposalState),
|
|
4270
|
-
requestedAllowedPrefixesToDirectConnectGateway: output.requestedAllowedPrefixesToDirectConnectGateway
|
|
4271
|
-
output.requestedAllowedPrefixesToDirectConnectGateway !== null
|
|
4219
|
+
requestedAllowedPrefixesToDirectConnectGateway: output.requestedAllowedPrefixesToDirectConnectGateway != null
|
|
4272
4220
|
? deserializeAws_json1_1RouteFilterPrefixList(output.requestedAllowedPrefixesToDirectConnectGateway, context)
|
|
4273
4221
|
: undefined,
|
|
4274
4222
|
};
|
|
@@ -4325,9 +4273,7 @@ const deserializeAws_json1_1DirectConnectServerException = (output, context) =>
|
|
|
4325
4273
|
const deserializeAws_json1_1DisassociateMacSecKeyResponse = (output, context) => {
|
|
4326
4274
|
return {
|
|
4327
4275
|
connectionId: (0, smithy_client_1.expectString)(output.connectionId),
|
|
4328
|
-
macSecKeys: output.macSecKeys
|
|
4329
|
-
? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context)
|
|
4330
|
-
: undefined,
|
|
4276
|
+
macSecKeys: output.macSecKeys != null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined,
|
|
4331
4277
|
};
|
|
4332
4278
|
};
|
|
4333
4279
|
const deserializeAws_json1_1DuplicateTagKeysException = (output, context) => {
|
|
@@ -4347,15 +4293,13 @@ const deserializeAws_json1_1Interconnect = (output, context) => {
|
|
|
4347
4293
|
interconnectState: (0, smithy_client_1.expectString)(output.interconnectState),
|
|
4348
4294
|
jumboFrameCapable: (0, smithy_client_1.expectBoolean)(output.jumboFrameCapable),
|
|
4349
4295
|
lagId: (0, smithy_client_1.expectString)(output.lagId),
|
|
4350
|
-
loaIssueTime: output.loaIssueTime
|
|
4296
|
+
loaIssueTime: output.loaIssueTime != null
|
|
4351
4297
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.loaIssueTime)))
|
|
4352
4298
|
: undefined,
|
|
4353
4299
|
location: (0, smithy_client_1.expectString)(output.location),
|
|
4354
4300
|
providerName: (0, smithy_client_1.expectString)(output.providerName),
|
|
4355
4301
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
4356
|
-
tags: output.tags
|
|
4357
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
4358
|
-
: undefined,
|
|
4302
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
4359
4303
|
};
|
|
4360
4304
|
};
|
|
4361
4305
|
const deserializeAws_json1_1InterconnectList = (output, context) => {
|
|
@@ -4371,9 +4315,7 @@ const deserializeAws_json1_1InterconnectList = (output, context) => {
|
|
|
4371
4315
|
};
|
|
4372
4316
|
const deserializeAws_json1_1Interconnects = (output, context) => {
|
|
4373
4317
|
return {
|
|
4374
|
-
interconnects: output.interconnects
|
|
4375
|
-
? deserializeAws_json1_1InterconnectList(output.interconnects, context)
|
|
4376
|
-
: undefined,
|
|
4318
|
+
interconnects: output.interconnects != null ? deserializeAws_json1_1InterconnectList(output.interconnects, context) : undefined,
|
|
4377
4319
|
};
|
|
4378
4320
|
};
|
|
4379
4321
|
const deserializeAws_json1_1Lag = (output, context) => {
|
|
@@ -4382,9 +4324,7 @@ const deserializeAws_json1_1Lag = (output, context) => {
|
|
|
4382
4324
|
awsDevice: (0, smithy_client_1.expectString)(output.awsDevice),
|
|
4383
4325
|
awsDeviceV2: (0, smithy_client_1.expectString)(output.awsDeviceV2),
|
|
4384
4326
|
awsLogicalDeviceId: (0, smithy_client_1.expectString)(output.awsLogicalDeviceId),
|
|
4385
|
-
connections: output.connections
|
|
4386
|
-
? deserializeAws_json1_1ConnectionList(output.connections, context)
|
|
4387
|
-
: undefined,
|
|
4327
|
+
connections: output.connections != null ? deserializeAws_json1_1ConnectionList(output.connections, context) : undefined,
|
|
4388
4328
|
connectionsBandwidth: (0, smithy_client_1.expectString)(output.connectionsBandwidth),
|
|
4389
4329
|
encryptionMode: (0, smithy_client_1.expectString)(output.encryptionMode),
|
|
4390
4330
|
hasLogicalRedundancy: (0, smithy_client_1.expectString)(output.hasLogicalRedundancy),
|
|
@@ -4394,17 +4334,13 @@ const deserializeAws_json1_1Lag = (output, context) => {
|
|
|
4394
4334
|
lagState: (0, smithy_client_1.expectString)(output.lagState),
|
|
4395
4335
|
location: (0, smithy_client_1.expectString)(output.location),
|
|
4396
4336
|
macSecCapable: (0, smithy_client_1.expectBoolean)(output.macSecCapable),
|
|
4397
|
-
macSecKeys: output.macSecKeys
|
|
4398
|
-
? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context)
|
|
4399
|
-
: undefined,
|
|
4337
|
+
macSecKeys: output.macSecKeys != null ? deserializeAws_json1_1MacSecKeyList(output.macSecKeys, context) : undefined,
|
|
4400
4338
|
minimumLinks: (0, smithy_client_1.expectInt32)(output.minimumLinks),
|
|
4401
4339
|
numberOfConnections: (0, smithy_client_1.expectInt32)(output.numberOfConnections),
|
|
4402
4340
|
ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
|
|
4403
4341
|
providerName: (0, smithy_client_1.expectString)(output.providerName),
|
|
4404
4342
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
4405
|
-
tags: output.tags
|
|
4406
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
4407
|
-
: undefined,
|
|
4343
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
4408
4344
|
};
|
|
4409
4345
|
};
|
|
4410
4346
|
const deserializeAws_json1_1LagList = (output, context) => {
|
|
@@ -4420,36 +4356,32 @@ const deserializeAws_json1_1LagList = (output, context) => {
|
|
|
4420
4356
|
};
|
|
4421
4357
|
const deserializeAws_json1_1Lags = (output, context) => {
|
|
4422
4358
|
return {
|
|
4423
|
-
lags: output.lags
|
|
4424
|
-
? deserializeAws_json1_1LagList(output.lags, context)
|
|
4425
|
-
: undefined,
|
|
4359
|
+
lags: output.lags != null ? deserializeAws_json1_1LagList(output.lags, context) : undefined,
|
|
4426
4360
|
};
|
|
4427
4361
|
};
|
|
4428
4362
|
const deserializeAws_json1_1ListVirtualInterfaceTestHistoryResponse = (output, context) => {
|
|
4429
4363
|
return {
|
|
4430
4364
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
4431
|
-
virtualInterfaceTestHistory: output.virtualInterfaceTestHistory
|
|
4365
|
+
virtualInterfaceTestHistory: output.virtualInterfaceTestHistory != null
|
|
4432
4366
|
? deserializeAws_json1_1VirtualInterfaceTestHistoryList(output.virtualInterfaceTestHistory, context)
|
|
4433
4367
|
: undefined,
|
|
4434
4368
|
};
|
|
4435
4369
|
};
|
|
4436
4370
|
const deserializeAws_json1_1Loa = (output, context) => {
|
|
4437
4371
|
return {
|
|
4438
|
-
loaContent: output.loaContent
|
|
4439
|
-
? context.base64Decoder(output.loaContent)
|
|
4440
|
-
: undefined,
|
|
4372
|
+
loaContent: output.loaContent != null ? context.base64Decoder(output.loaContent) : undefined,
|
|
4441
4373
|
loaContentType: (0, smithy_client_1.expectString)(output.loaContentType),
|
|
4442
4374
|
};
|
|
4443
4375
|
};
|
|
4444
4376
|
const deserializeAws_json1_1Location = (output, context) => {
|
|
4445
4377
|
return {
|
|
4446
|
-
availableMacSecPortSpeeds: output.availableMacSecPortSpeeds
|
|
4378
|
+
availableMacSecPortSpeeds: output.availableMacSecPortSpeeds != null
|
|
4447
4379
|
? deserializeAws_json1_1AvailableMacSecPortSpeeds(output.availableMacSecPortSpeeds, context)
|
|
4448
4380
|
: undefined,
|
|
4449
|
-
availablePortSpeeds: output.availablePortSpeeds
|
|
4381
|
+
availablePortSpeeds: output.availablePortSpeeds != null
|
|
4450
4382
|
? deserializeAws_json1_1AvailablePortSpeeds(output.availablePortSpeeds, context)
|
|
4451
4383
|
: undefined,
|
|
4452
|
-
availableProviders: output.availableProviders
|
|
4384
|
+
availableProviders: output.availableProviders != null
|
|
4453
4385
|
? deserializeAws_json1_1ProviderList(output.availableProviders, context)
|
|
4454
4386
|
: undefined,
|
|
4455
4387
|
locationCode: (0, smithy_client_1.expectString)(output.locationCode),
|
|
@@ -4470,9 +4402,7 @@ const deserializeAws_json1_1LocationList = (output, context) => {
|
|
|
4470
4402
|
};
|
|
4471
4403
|
const deserializeAws_json1_1Locations = (output, context) => {
|
|
4472
4404
|
return {
|
|
4473
|
-
locations: output.locations
|
|
4474
|
-
? deserializeAws_json1_1LocationList(output.locations, context)
|
|
4475
|
-
: undefined,
|
|
4405
|
+
locations: output.locations != null ? deserializeAws_json1_1LocationList(output.locations, context) : undefined,
|
|
4476
4406
|
};
|
|
4477
4407
|
};
|
|
4478
4408
|
const deserializeAws_json1_1MacSecKey = (output, context) => {
|
|
@@ -4508,9 +4438,7 @@ const deserializeAws_json1_1ProviderList = (output, context) => {
|
|
|
4508
4438
|
const deserializeAws_json1_1ResourceTag = (output, context) => {
|
|
4509
4439
|
return {
|
|
4510
4440
|
resourceArn: (0, smithy_client_1.expectString)(output.resourceArn),
|
|
4511
|
-
tags: output.tags
|
|
4512
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
4513
|
-
: undefined,
|
|
4441
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
4514
4442
|
};
|
|
4515
4443
|
};
|
|
4516
4444
|
const deserializeAws_json1_1ResourceTagList = (output, context) => {
|
|
@@ -4552,14 +4480,14 @@ const deserializeAws_json1_1RouterType = (output, context) => {
|
|
|
4552
4480
|
};
|
|
4553
4481
|
const deserializeAws_json1_1StartBgpFailoverTestResponse = (output, context) => {
|
|
4554
4482
|
return {
|
|
4555
|
-
virtualInterfaceTest: output.virtualInterfaceTest
|
|
4483
|
+
virtualInterfaceTest: output.virtualInterfaceTest != null
|
|
4556
4484
|
? deserializeAws_json1_1VirtualInterfaceTestHistory(output.virtualInterfaceTest, context)
|
|
4557
4485
|
: undefined,
|
|
4558
4486
|
};
|
|
4559
4487
|
};
|
|
4560
4488
|
const deserializeAws_json1_1StopBgpFailoverTestResponse = (output, context) => {
|
|
4561
4489
|
return {
|
|
4562
|
-
virtualInterfaceTest: output.virtualInterfaceTest
|
|
4490
|
+
virtualInterfaceTest: output.virtualInterfaceTest != null
|
|
4563
4491
|
? deserializeAws_json1_1VirtualInterfaceTestHistory(output.virtualInterfaceTest, context)
|
|
4564
4492
|
: undefined,
|
|
4565
4493
|
};
|
|
@@ -4594,14 +4522,14 @@ const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
|
4594
4522
|
};
|
|
4595
4523
|
const deserializeAws_json1_1UpdateDirectConnectGatewayAssociationResult = (output, context) => {
|
|
4596
4524
|
return {
|
|
4597
|
-
directConnectGatewayAssociation: output.directConnectGatewayAssociation
|
|
4525
|
+
directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
|
|
4598
4526
|
? deserializeAws_json1_1DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
|
|
4599
4527
|
: undefined,
|
|
4600
4528
|
};
|
|
4601
4529
|
};
|
|
4602
4530
|
const deserializeAws_json1_1UpdateDirectConnectGatewayResponse = (output, context) => {
|
|
4603
4531
|
return {
|
|
4604
|
-
directConnectGateway: output.directConnectGateway
|
|
4532
|
+
directConnectGateway: output.directConnectGateway != null
|
|
4605
4533
|
? deserializeAws_json1_1DirectConnectGateway(output.directConnectGateway, context)
|
|
4606
4534
|
: undefined,
|
|
4607
4535
|
};
|
|
@@ -4625,7 +4553,7 @@ const deserializeAws_json1_1VirtualGatewayList = (output, context) => {
|
|
|
4625
4553
|
};
|
|
4626
4554
|
const deserializeAws_json1_1VirtualGateways = (output, context) => {
|
|
4627
4555
|
return {
|
|
4628
|
-
virtualGateways: output.virtualGateways
|
|
4556
|
+
virtualGateways: output.virtualGateways != null
|
|
4629
4557
|
? deserializeAws_json1_1VirtualGatewayList(output.virtualGateways, context)
|
|
4630
4558
|
: undefined,
|
|
4631
4559
|
};
|
|
@@ -4639,9 +4567,7 @@ const deserializeAws_json1_1VirtualInterface = (output, context) => {
|
|
|
4639
4567
|
authKey: (0, smithy_client_1.expectString)(output.authKey),
|
|
4640
4568
|
awsDeviceV2: (0, smithy_client_1.expectString)(output.awsDeviceV2),
|
|
4641
4569
|
awsLogicalDeviceId: (0, smithy_client_1.expectString)(output.awsLogicalDeviceId),
|
|
4642
|
-
bgpPeers: output.bgpPeers
|
|
4643
|
-
? deserializeAws_json1_1BGPPeerList(output.bgpPeers, context)
|
|
4644
|
-
: undefined,
|
|
4570
|
+
bgpPeers: output.bgpPeers != null ? deserializeAws_json1_1BGPPeerList(output.bgpPeers, context) : undefined,
|
|
4645
4571
|
connectionId: (0, smithy_client_1.expectString)(output.connectionId),
|
|
4646
4572
|
customerAddress: (0, smithy_client_1.expectString)(output.customerAddress),
|
|
4647
4573
|
customerRouterConfig: (0, smithy_client_1.expectString)(output.customerRouterConfig),
|
|
@@ -4651,13 +4577,11 @@ const deserializeAws_json1_1VirtualInterface = (output, context) => {
|
|
|
4651
4577
|
mtu: (0, smithy_client_1.expectInt32)(output.mtu),
|
|
4652
4578
|
ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
|
|
4653
4579
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
4654
|
-
routeFilterPrefixes: output.routeFilterPrefixes
|
|
4580
|
+
routeFilterPrefixes: output.routeFilterPrefixes != null
|
|
4655
4581
|
? deserializeAws_json1_1RouteFilterPrefixList(output.routeFilterPrefixes, context)
|
|
4656
4582
|
: undefined,
|
|
4657
4583
|
siteLinkEnabled: (0, smithy_client_1.expectBoolean)(output.siteLinkEnabled),
|
|
4658
|
-
tags: output.tags
|
|
4659
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
4660
|
-
: undefined,
|
|
4584
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
4661
4585
|
virtualGatewayId: (0, smithy_client_1.expectString)(output.virtualGatewayId),
|
|
4662
4586
|
virtualInterfaceId: (0, smithy_client_1.expectString)(output.virtualInterfaceId),
|
|
4663
4587
|
virtualInterfaceName: (0, smithy_client_1.expectString)(output.virtualInterfaceName),
|
|
@@ -4679,23 +4603,17 @@ const deserializeAws_json1_1VirtualInterfaceList = (output, context) => {
|
|
|
4679
4603
|
};
|
|
4680
4604
|
const deserializeAws_json1_1VirtualInterfaces = (output, context) => {
|
|
4681
4605
|
return {
|
|
4682
|
-
virtualInterfaces: output.virtualInterfaces
|
|
4606
|
+
virtualInterfaces: output.virtualInterfaces != null
|
|
4683
4607
|
? deserializeAws_json1_1VirtualInterfaceList(output.virtualInterfaces, context)
|
|
4684
4608
|
: undefined,
|
|
4685
4609
|
};
|
|
4686
4610
|
};
|
|
4687
4611
|
const deserializeAws_json1_1VirtualInterfaceTestHistory = (output, context) => {
|
|
4688
4612
|
return {
|
|
4689
|
-
bgpPeers: output.bgpPeers
|
|
4690
|
-
|
|
4691
|
-
: undefined,
|
|
4692
|
-
endTime: output.endTime !== undefined && output.endTime !== null
|
|
4693
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
|
|
4694
|
-
: undefined,
|
|
4613
|
+
bgpPeers: output.bgpPeers != null ? deserializeAws_json1_1BGPPeerIdList(output.bgpPeers, context) : undefined,
|
|
4614
|
+
endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
|
|
4695
4615
|
ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
|
|
4696
|
-
startTime: output.startTime
|
|
4697
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
|
|
4698
|
-
: undefined,
|
|
4616
|
+
startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
|
|
4699
4617
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
4700
4618
|
testDurationInMinutes: (0, smithy_client_1.expectInt32)(output.testDurationInMinutes),
|
|
4701
4619
|
testId: (0, smithy_client_1.expectString)(output.testId),
|
|
@@ -4775,5 +4693,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
4775
4693
|
if (data["__type"] !== undefined) {
|
|
4776
4694
|
return sanitizeErrorCode(data["__type"]);
|
|
4777
4695
|
}
|
|
4778
|
-
return "";
|
|
4779
4696
|
};
|