@aws-sdk/client-direct-connect 3.525.0 → 3.529.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +66 -106
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -264,6 +264,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
264
264
|
var import_types = require("@smithy/types");
|
|
265
265
|
|
|
266
266
|
// src/protocols/Aws_json1_1.ts
|
|
267
|
+
var import_core2 = require("@aws-sdk/core");
|
|
267
268
|
|
|
268
269
|
|
|
269
270
|
|
|
@@ -832,7 +833,7 @@ var de_AcceptDirectConnectGatewayAssociationProposalCommand = /* @__PURE__ */ __
|
|
|
832
833
|
if (output.statusCode >= 300) {
|
|
833
834
|
return de_CommandError(output, context);
|
|
834
835
|
}
|
|
835
|
-
const data = await
|
|
836
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
836
837
|
let contents = {};
|
|
837
838
|
contents = (0, import_smithy_client._json)(data);
|
|
838
839
|
const response = {
|
|
@@ -845,7 +846,7 @@ var de_AllocateConnectionOnInterconnectCommand = /* @__PURE__ */ __name(async (o
|
|
|
845
846
|
if (output.statusCode >= 300) {
|
|
846
847
|
return de_CommandError(output, context);
|
|
847
848
|
}
|
|
848
|
-
const data = await
|
|
849
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
849
850
|
let contents = {};
|
|
850
851
|
contents = de_Connection(data, context);
|
|
851
852
|
const response = {
|
|
@@ -858,7 +859,7 @@ var de_AllocateHostedConnectionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
858
859
|
if (output.statusCode >= 300) {
|
|
859
860
|
return de_CommandError(output, context);
|
|
860
861
|
}
|
|
861
|
-
const data = await
|
|
862
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
862
863
|
let contents = {};
|
|
863
864
|
contents = de_Connection(data, context);
|
|
864
865
|
const response = {
|
|
@@ -871,7 +872,7 @@ var de_AllocatePrivateVirtualInterfaceCommand = /* @__PURE__ */ __name(async (ou
|
|
|
871
872
|
if (output.statusCode >= 300) {
|
|
872
873
|
return de_CommandError(output, context);
|
|
873
874
|
}
|
|
874
|
-
const data = await
|
|
875
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
875
876
|
let contents = {};
|
|
876
877
|
contents = (0, import_smithy_client._json)(data);
|
|
877
878
|
const response = {
|
|
@@ -884,7 +885,7 @@ var de_AllocatePublicVirtualInterfaceCommand = /* @__PURE__ */ __name(async (out
|
|
|
884
885
|
if (output.statusCode >= 300) {
|
|
885
886
|
return de_CommandError(output, context);
|
|
886
887
|
}
|
|
887
|
-
const data = await
|
|
888
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
888
889
|
let contents = {};
|
|
889
890
|
contents = (0, import_smithy_client._json)(data);
|
|
890
891
|
const response = {
|
|
@@ -897,7 +898,7 @@ var de_AllocateTransitVirtualInterfaceCommand = /* @__PURE__ */ __name(async (ou
|
|
|
897
898
|
if (output.statusCode >= 300) {
|
|
898
899
|
return de_CommandError(output, context);
|
|
899
900
|
}
|
|
900
|
-
const data = await
|
|
901
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
901
902
|
let contents = {};
|
|
902
903
|
contents = (0, import_smithy_client._json)(data);
|
|
903
904
|
const response = {
|
|
@@ -910,7 +911,7 @@ var de_AssociateConnectionWithLagCommand = /* @__PURE__ */ __name(async (output,
|
|
|
910
911
|
if (output.statusCode >= 300) {
|
|
911
912
|
return de_CommandError(output, context);
|
|
912
913
|
}
|
|
913
|
-
const data = await
|
|
914
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
914
915
|
let contents = {};
|
|
915
916
|
contents = de_Connection(data, context);
|
|
916
917
|
const response = {
|
|
@@ -923,7 +924,7 @@ var de_AssociateHostedConnectionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
923
924
|
if (output.statusCode >= 300) {
|
|
924
925
|
return de_CommandError(output, context);
|
|
925
926
|
}
|
|
926
|
-
const data = await
|
|
927
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
927
928
|
let contents = {};
|
|
928
929
|
contents = de_Connection(data, context);
|
|
929
930
|
const response = {
|
|
@@ -936,7 +937,7 @@ var de_AssociateMacSecKeyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
936
937
|
if (output.statusCode >= 300) {
|
|
937
938
|
return de_CommandError(output, context);
|
|
938
939
|
}
|
|
939
|
-
const data = await
|
|
940
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
940
941
|
let contents = {};
|
|
941
942
|
contents = (0, import_smithy_client._json)(data);
|
|
942
943
|
const response = {
|
|
@@ -949,7 +950,7 @@ var de_AssociateVirtualInterfaceCommand = /* @__PURE__ */ __name(async (output,
|
|
|
949
950
|
if (output.statusCode >= 300) {
|
|
950
951
|
return de_CommandError(output, context);
|
|
951
952
|
}
|
|
952
|
-
const data = await
|
|
953
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
953
954
|
let contents = {};
|
|
954
955
|
contents = (0, import_smithy_client._json)(data);
|
|
955
956
|
const response = {
|
|
@@ -962,7 +963,7 @@ var de_ConfirmConnectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
962
963
|
if (output.statusCode >= 300) {
|
|
963
964
|
return de_CommandError(output, context);
|
|
964
965
|
}
|
|
965
|
-
const data = await
|
|
966
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
966
967
|
let contents = {};
|
|
967
968
|
contents = (0, import_smithy_client._json)(data);
|
|
968
969
|
const response = {
|
|
@@ -975,7 +976,7 @@ var de_ConfirmCustomerAgreementCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
975
976
|
if (output.statusCode >= 300) {
|
|
976
977
|
return de_CommandError(output, context);
|
|
977
978
|
}
|
|
978
|
-
const data = await
|
|
979
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
979
980
|
let contents = {};
|
|
980
981
|
contents = (0, import_smithy_client._json)(data);
|
|
981
982
|
const response = {
|
|
@@ -988,7 +989,7 @@ var de_ConfirmPrivateVirtualInterfaceCommand = /* @__PURE__ */ __name(async (out
|
|
|
988
989
|
if (output.statusCode >= 300) {
|
|
989
990
|
return de_CommandError(output, context);
|
|
990
991
|
}
|
|
991
|
-
const data = await
|
|
992
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
992
993
|
let contents = {};
|
|
993
994
|
contents = (0, import_smithy_client._json)(data);
|
|
994
995
|
const response = {
|
|
@@ -1001,7 +1002,7 @@ var de_ConfirmPublicVirtualInterfaceCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1001
1002
|
if (output.statusCode >= 300) {
|
|
1002
1003
|
return de_CommandError(output, context);
|
|
1003
1004
|
}
|
|
1004
|
-
const data = await
|
|
1005
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1005
1006
|
let contents = {};
|
|
1006
1007
|
contents = (0, import_smithy_client._json)(data);
|
|
1007
1008
|
const response = {
|
|
@@ -1014,7 +1015,7 @@ var de_ConfirmTransitVirtualInterfaceCommand = /* @__PURE__ */ __name(async (out
|
|
|
1014
1015
|
if (output.statusCode >= 300) {
|
|
1015
1016
|
return de_CommandError(output, context);
|
|
1016
1017
|
}
|
|
1017
|
-
const data = await
|
|
1018
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1018
1019
|
let contents = {};
|
|
1019
1020
|
contents = (0, import_smithy_client._json)(data);
|
|
1020
1021
|
const response = {
|
|
@@ -1027,7 +1028,7 @@ var de_CreateBGPPeerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1027
1028
|
if (output.statusCode >= 300) {
|
|
1028
1029
|
return de_CommandError(output, context);
|
|
1029
1030
|
}
|
|
1030
|
-
const data = await
|
|
1031
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1031
1032
|
let contents = {};
|
|
1032
1033
|
contents = (0, import_smithy_client._json)(data);
|
|
1033
1034
|
const response = {
|
|
@@ -1040,7 +1041,7 @@ var de_CreateConnectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1040
1041
|
if (output.statusCode >= 300) {
|
|
1041
1042
|
return de_CommandError(output, context);
|
|
1042
1043
|
}
|
|
1043
|
-
const data = await
|
|
1044
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1044
1045
|
let contents = {};
|
|
1045
1046
|
contents = de_Connection(data, context);
|
|
1046
1047
|
const response = {
|
|
@@ -1053,7 +1054,7 @@ var de_CreateDirectConnectGatewayCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1053
1054
|
if (output.statusCode >= 300) {
|
|
1054
1055
|
return de_CommandError(output, context);
|
|
1055
1056
|
}
|
|
1056
|
-
const data = await
|
|
1057
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1057
1058
|
let contents = {};
|
|
1058
1059
|
contents = (0, import_smithy_client._json)(data);
|
|
1059
1060
|
const response = {
|
|
@@ -1066,7 +1067,7 @@ var de_CreateDirectConnectGatewayAssociationCommand = /* @__PURE__ */ __name(asy
|
|
|
1066
1067
|
if (output.statusCode >= 300) {
|
|
1067
1068
|
return de_CommandError(output, context);
|
|
1068
1069
|
}
|
|
1069
|
-
const data = await
|
|
1070
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1070
1071
|
let contents = {};
|
|
1071
1072
|
contents = (0, import_smithy_client._json)(data);
|
|
1072
1073
|
const response = {
|
|
@@ -1079,7 +1080,7 @@ var de_CreateDirectConnectGatewayAssociationProposalCommand = /* @__PURE__ */ __
|
|
|
1079
1080
|
if (output.statusCode >= 300) {
|
|
1080
1081
|
return de_CommandError(output, context);
|
|
1081
1082
|
}
|
|
1082
|
-
const data = await
|
|
1083
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1083
1084
|
let contents = {};
|
|
1084
1085
|
contents = (0, import_smithy_client._json)(data);
|
|
1085
1086
|
const response = {
|
|
@@ -1092,7 +1093,7 @@ var de_CreateInterconnectCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1092
1093
|
if (output.statusCode >= 300) {
|
|
1093
1094
|
return de_CommandError(output, context);
|
|
1094
1095
|
}
|
|
1095
|
-
const data = await
|
|
1096
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1096
1097
|
let contents = {};
|
|
1097
1098
|
contents = de_Interconnect(data, context);
|
|
1098
1099
|
const response = {
|
|
@@ -1105,7 +1106,7 @@ var de_CreateLagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1105
1106
|
if (output.statusCode >= 300) {
|
|
1106
1107
|
return de_CommandError(output, context);
|
|
1107
1108
|
}
|
|
1108
|
-
const data = await
|
|
1109
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1109
1110
|
let contents = {};
|
|
1110
1111
|
contents = de_Lag(data, context);
|
|
1111
1112
|
const response = {
|
|
@@ -1118,7 +1119,7 @@ var de_CreatePrivateVirtualInterfaceCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1118
1119
|
if (output.statusCode >= 300) {
|
|
1119
1120
|
return de_CommandError(output, context);
|
|
1120
1121
|
}
|
|
1121
|
-
const data = await
|
|
1122
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1122
1123
|
let contents = {};
|
|
1123
1124
|
contents = (0, import_smithy_client._json)(data);
|
|
1124
1125
|
const response = {
|
|
@@ -1131,7 +1132,7 @@ var de_CreatePublicVirtualInterfaceCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1131
1132
|
if (output.statusCode >= 300) {
|
|
1132
1133
|
return de_CommandError(output, context);
|
|
1133
1134
|
}
|
|
1134
|
-
const data = await
|
|
1135
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1135
1136
|
let contents = {};
|
|
1136
1137
|
contents = (0, import_smithy_client._json)(data);
|
|
1137
1138
|
const response = {
|
|
@@ -1144,7 +1145,7 @@ var de_CreateTransitVirtualInterfaceCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1144
1145
|
if (output.statusCode >= 300) {
|
|
1145
1146
|
return de_CommandError(output, context);
|
|
1146
1147
|
}
|
|
1147
|
-
const data = await
|
|
1148
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1148
1149
|
let contents = {};
|
|
1149
1150
|
contents = (0, import_smithy_client._json)(data);
|
|
1150
1151
|
const response = {
|
|
@@ -1157,7 +1158,7 @@ var de_DeleteBGPPeerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1157
1158
|
if (output.statusCode >= 300) {
|
|
1158
1159
|
return de_CommandError(output, context);
|
|
1159
1160
|
}
|
|
1160
|
-
const data = await
|
|
1161
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1161
1162
|
let contents = {};
|
|
1162
1163
|
contents = (0, import_smithy_client._json)(data);
|
|
1163
1164
|
const response = {
|
|
@@ -1170,7 +1171,7 @@ var de_DeleteConnectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1170
1171
|
if (output.statusCode >= 300) {
|
|
1171
1172
|
return de_CommandError(output, context);
|
|
1172
1173
|
}
|
|
1173
|
-
const data = await
|
|
1174
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1174
1175
|
let contents = {};
|
|
1175
1176
|
contents = de_Connection(data, context);
|
|
1176
1177
|
const response = {
|
|
@@ -1183,7 +1184,7 @@ var de_DeleteDirectConnectGatewayCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1183
1184
|
if (output.statusCode >= 300) {
|
|
1184
1185
|
return de_CommandError(output, context);
|
|
1185
1186
|
}
|
|
1186
|
-
const data = await
|
|
1187
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1187
1188
|
let contents = {};
|
|
1188
1189
|
contents = (0, import_smithy_client._json)(data);
|
|
1189
1190
|
const response = {
|
|
@@ -1196,7 +1197,7 @@ var de_DeleteDirectConnectGatewayAssociationCommand = /* @__PURE__ */ __name(asy
|
|
|
1196
1197
|
if (output.statusCode >= 300) {
|
|
1197
1198
|
return de_CommandError(output, context);
|
|
1198
1199
|
}
|
|
1199
|
-
const data = await
|
|
1200
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1200
1201
|
let contents = {};
|
|
1201
1202
|
contents = (0, import_smithy_client._json)(data);
|
|
1202
1203
|
const response = {
|
|
@@ -1209,7 +1210,7 @@ var de_DeleteDirectConnectGatewayAssociationProposalCommand = /* @__PURE__ */ __
|
|
|
1209
1210
|
if (output.statusCode >= 300) {
|
|
1210
1211
|
return de_CommandError(output, context);
|
|
1211
1212
|
}
|
|
1212
|
-
const data = await
|
|
1213
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1213
1214
|
let contents = {};
|
|
1214
1215
|
contents = (0, import_smithy_client._json)(data);
|
|
1215
1216
|
const response = {
|
|
@@ -1222,7 +1223,7 @@ var de_DeleteInterconnectCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1222
1223
|
if (output.statusCode >= 300) {
|
|
1223
1224
|
return de_CommandError(output, context);
|
|
1224
1225
|
}
|
|
1225
|
-
const data = await
|
|
1226
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1226
1227
|
let contents = {};
|
|
1227
1228
|
contents = (0, import_smithy_client._json)(data);
|
|
1228
1229
|
const response = {
|
|
@@ -1235,7 +1236,7 @@ var de_DeleteLagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1235
1236
|
if (output.statusCode >= 300) {
|
|
1236
1237
|
return de_CommandError(output, context);
|
|
1237
1238
|
}
|
|
1238
|
-
const data = await
|
|
1239
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1239
1240
|
let contents = {};
|
|
1240
1241
|
contents = de_Lag(data, context);
|
|
1241
1242
|
const response = {
|
|
@@ -1248,7 +1249,7 @@ var de_DeleteVirtualInterfaceCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1248
1249
|
if (output.statusCode >= 300) {
|
|
1249
1250
|
return de_CommandError(output, context);
|
|
1250
1251
|
}
|
|
1251
|
-
const data = await
|
|
1252
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1252
1253
|
let contents = {};
|
|
1253
1254
|
contents = (0, import_smithy_client._json)(data);
|
|
1254
1255
|
const response = {
|
|
@@ -1261,7 +1262,7 @@ var de_DescribeConnectionLoaCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1261
1262
|
if (output.statusCode >= 300) {
|
|
1262
1263
|
return de_CommandError(output, context);
|
|
1263
1264
|
}
|
|
1264
|
-
const data = await
|
|
1265
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1265
1266
|
let contents = {};
|
|
1266
1267
|
contents = de_DescribeConnectionLoaResponse(data, context);
|
|
1267
1268
|
const response = {
|
|
@@ -1274,7 +1275,7 @@ var de_DescribeConnectionsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1274
1275
|
if (output.statusCode >= 300) {
|
|
1275
1276
|
return de_CommandError(output, context);
|
|
1276
1277
|
}
|
|
1277
|
-
const data = await
|
|
1278
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1278
1279
|
let contents = {};
|
|
1279
1280
|
contents = de_Connections(data, context);
|
|
1280
1281
|
const response = {
|
|
@@ -1287,7 +1288,7 @@ var de_DescribeConnectionsOnInterconnectCommand = /* @__PURE__ */ __name(async (
|
|
|
1287
1288
|
if (output.statusCode >= 300) {
|
|
1288
1289
|
return de_CommandError(output, context);
|
|
1289
1290
|
}
|
|
1290
|
-
const data = await
|
|
1291
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1291
1292
|
let contents = {};
|
|
1292
1293
|
contents = de_Connections(data, context);
|
|
1293
1294
|
const response = {
|
|
@@ -1300,7 +1301,7 @@ var de_DescribeCustomerMetadataCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1300
1301
|
if (output.statusCode >= 300) {
|
|
1301
1302
|
return de_CommandError(output, context);
|
|
1302
1303
|
}
|
|
1303
|
-
const data = await
|
|
1304
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1304
1305
|
let contents = {};
|
|
1305
1306
|
contents = (0, import_smithy_client._json)(data);
|
|
1306
1307
|
const response = {
|
|
@@ -1313,7 +1314,7 @@ var de_DescribeDirectConnectGatewayAssociationProposalsCommand = /* @__PURE__ */
|
|
|
1313
1314
|
if (output.statusCode >= 300) {
|
|
1314
1315
|
return de_CommandError(output, context);
|
|
1315
1316
|
}
|
|
1316
|
-
const data = await
|
|
1317
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1317
1318
|
let contents = {};
|
|
1318
1319
|
contents = (0, import_smithy_client._json)(data);
|
|
1319
1320
|
const response = {
|
|
@@ -1326,7 +1327,7 @@ var de_DescribeDirectConnectGatewayAssociationsCommand = /* @__PURE__ */ __name(
|
|
|
1326
1327
|
if (output.statusCode >= 300) {
|
|
1327
1328
|
return de_CommandError(output, context);
|
|
1328
1329
|
}
|
|
1329
|
-
const data = await
|
|
1330
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1330
1331
|
let contents = {};
|
|
1331
1332
|
contents = (0, import_smithy_client._json)(data);
|
|
1332
1333
|
const response = {
|
|
@@ -1339,7 +1340,7 @@ var de_DescribeDirectConnectGatewayAttachmentsCommand = /* @__PURE__ */ __name(a
|
|
|
1339
1340
|
if (output.statusCode >= 300) {
|
|
1340
1341
|
return de_CommandError(output, context);
|
|
1341
1342
|
}
|
|
1342
|
-
const data = await
|
|
1343
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1343
1344
|
let contents = {};
|
|
1344
1345
|
contents = (0, import_smithy_client._json)(data);
|
|
1345
1346
|
const response = {
|
|
@@ -1352,7 +1353,7 @@ var de_DescribeDirectConnectGatewaysCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1352
1353
|
if (output.statusCode >= 300) {
|
|
1353
1354
|
return de_CommandError(output, context);
|
|
1354
1355
|
}
|
|
1355
|
-
const data = await
|
|
1356
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1356
1357
|
let contents = {};
|
|
1357
1358
|
contents = (0, import_smithy_client._json)(data);
|
|
1358
1359
|
const response = {
|
|
@@ -1365,7 +1366,7 @@ var de_DescribeHostedConnectionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1365
1366
|
if (output.statusCode >= 300) {
|
|
1366
1367
|
return de_CommandError(output, context);
|
|
1367
1368
|
}
|
|
1368
|
-
const data = await
|
|
1369
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1369
1370
|
let contents = {};
|
|
1370
1371
|
contents = de_Connections(data, context);
|
|
1371
1372
|
const response = {
|
|
@@ -1378,7 +1379,7 @@ var de_DescribeInterconnectLoaCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1378
1379
|
if (output.statusCode >= 300) {
|
|
1379
1380
|
return de_CommandError(output, context);
|
|
1380
1381
|
}
|
|
1381
|
-
const data = await
|
|
1382
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1382
1383
|
let contents = {};
|
|
1383
1384
|
contents = de_DescribeInterconnectLoaResponse(data, context);
|
|
1384
1385
|
const response = {
|
|
@@ -1391,7 +1392,7 @@ var de_DescribeInterconnectsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1391
1392
|
if (output.statusCode >= 300) {
|
|
1392
1393
|
return de_CommandError(output, context);
|
|
1393
1394
|
}
|
|
1394
|
-
const data = await
|
|
1395
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1395
1396
|
let contents = {};
|
|
1396
1397
|
contents = de_Interconnects(data, context);
|
|
1397
1398
|
const response = {
|
|
@@ -1404,7 +1405,7 @@ var de_DescribeLagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1404
1405
|
if (output.statusCode >= 300) {
|
|
1405
1406
|
return de_CommandError(output, context);
|
|
1406
1407
|
}
|
|
1407
|
-
const data = await
|
|
1408
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1408
1409
|
let contents = {};
|
|
1409
1410
|
contents = de_Lags(data, context);
|
|
1410
1411
|
const response = {
|
|
@@ -1417,7 +1418,7 @@ var de_DescribeLoaCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1417
1418
|
if (output.statusCode >= 300) {
|
|
1418
1419
|
return de_CommandError(output, context);
|
|
1419
1420
|
}
|
|
1420
|
-
const data = await
|
|
1421
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1421
1422
|
let contents = {};
|
|
1422
1423
|
contents = de_Loa(data, context);
|
|
1423
1424
|
const response = {
|
|
@@ -1430,7 +1431,7 @@ var de_DescribeLocationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1430
1431
|
if (output.statusCode >= 300) {
|
|
1431
1432
|
return de_CommandError(output, context);
|
|
1432
1433
|
}
|
|
1433
|
-
const data = await
|
|
1434
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1434
1435
|
let contents = {};
|
|
1435
1436
|
contents = (0, import_smithy_client._json)(data);
|
|
1436
1437
|
const response = {
|
|
@@ -1443,7 +1444,7 @@ var de_DescribeRouterConfigurationCommand = /* @__PURE__ */ __name(async (output
|
|
|
1443
1444
|
if (output.statusCode >= 300) {
|
|
1444
1445
|
return de_CommandError(output, context);
|
|
1445
1446
|
}
|
|
1446
|
-
const data = await
|
|
1447
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1447
1448
|
let contents = {};
|
|
1448
1449
|
contents = (0, import_smithy_client._json)(data);
|
|
1449
1450
|
const response = {
|
|
@@ -1456,7 +1457,7 @@ var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1456
1457
|
if (output.statusCode >= 300) {
|
|
1457
1458
|
return de_CommandError(output, context);
|
|
1458
1459
|
}
|
|
1459
|
-
const data = await
|
|
1460
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1460
1461
|
let contents = {};
|
|
1461
1462
|
contents = (0, import_smithy_client._json)(data);
|
|
1462
1463
|
const response = {
|
|
@@ -1469,7 +1470,7 @@ var de_DescribeVirtualGatewaysCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1469
1470
|
if (output.statusCode >= 300) {
|
|
1470
1471
|
return de_CommandError(output, context);
|
|
1471
1472
|
}
|
|
1472
|
-
const data = await
|
|
1473
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1473
1474
|
let contents = {};
|
|
1474
1475
|
contents = (0, import_smithy_client._json)(data);
|
|
1475
1476
|
const response = {
|
|
@@ -1482,7 +1483,7 @@ var de_DescribeVirtualInterfacesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1482
1483
|
if (output.statusCode >= 300) {
|
|
1483
1484
|
return de_CommandError(output, context);
|
|
1484
1485
|
}
|
|
1485
|
-
const data = await
|
|
1486
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1486
1487
|
let contents = {};
|
|
1487
1488
|
contents = (0, import_smithy_client._json)(data);
|
|
1488
1489
|
const response = {
|
|
@@ -1495,7 +1496,7 @@ var de_DisassociateConnectionFromLagCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1495
1496
|
if (output.statusCode >= 300) {
|
|
1496
1497
|
return de_CommandError(output, context);
|
|
1497
1498
|
}
|
|
1498
|
-
const data = await
|
|
1499
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1499
1500
|
let contents = {};
|
|
1500
1501
|
contents = de_Connection(data, context);
|
|
1501
1502
|
const response = {
|
|
@@ -1508,7 +1509,7 @@ var de_DisassociateMacSecKeyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1508
1509
|
if (output.statusCode >= 300) {
|
|
1509
1510
|
return de_CommandError(output, context);
|
|
1510
1511
|
}
|
|
1511
|
-
const data = await
|
|
1512
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1512
1513
|
let contents = {};
|
|
1513
1514
|
contents = (0, import_smithy_client._json)(data);
|
|
1514
1515
|
const response = {
|
|
@@ -1521,7 +1522,7 @@ var de_ListVirtualInterfaceTestHistoryCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1521
1522
|
if (output.statusCode >= 300) {
|
|
1522
1523
|
return de_CommandError(output, context);
|
|
1523
1524
|
}
|
|
1524
|
-
const data = await
|
|
1525
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1525
1526
|
let contents = {};
|
|
1526
1527
|
contents = de_ListVirtualInterfaceTestHistoryResponse(data, context);
|
|
1527
1528
|
const response = {
|
|
@@ -1534,7 +1535,7 @@ var de_StartBgpFailoverTestCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1534
1535
|
if (output.statusCode >= 300) {
|
|
1535
1536
|
return de_CommandError(output, context);
|
|
1536
1537
|
}
|
|
1537
|
-
const data = await
|
|
1538
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1538
1539
|
let contents = {};
|
|
1539
1540
|
contents = de_StartBgpFailoverTestResponse(data, context);
|
|
1540
1541
|
const response = {
|
|
@@ -1547,7 +1548,7 @@ var de_StopBgpFailoverTestCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1547
1548
|
if (output.statusCode >= 300) {
|
|
1548
1549
|
return de_CommandError(output, context);
|
|
1549
1550
|
}
|
|
1550
|
-
const data = await
|
|
1551
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1551
1552
|
let contents = {};
|
|
1552
1553
|
contents = de_StopBgpFailoverTestResponse(data, context);
|
|
1553
1554
|
const response = {
|
|
@@ -1560,7 +1561,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1560
1561
|
if (output.statusCode >= 300) {
|
|
1561
1562
|
return de_CommandError(output, context);
|
|
1562
1563
|
}
|
|
1563
|
-
const data = await
|
|
1564
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1564
1565
|
let contents = {};
|
|
1565
1566
|
contents = (0, import_smithy_client._json)(data);
|
|
1566
1567
|
const response = {
|
|
@@ -1573,7 +1574,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1573
1574
|
if (output.statusCode >= 300) {
|
|
1574
1575
|
return de_CommandError(output, context);
|
|
1575
1576
|
}
|
|
1576
|
-
const data = await
|
|
1577
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1577
1578
|
let contents = {};
|
|
1578
1579
|
contents = (0, import_smithy_client._json)(data);
|
|
1579
1580
|
const response = {
|
|
@@ -1586,7 +1587,7 @@ var de_UpdateConnectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1586
1587
|
if (output.statusCode >= 300) {
|
|
1587
1588
|
return de_CommandError(output, context);
|
|
1588
1589
|
}
|
|
1589
|
-
const data = await
|
|
1590
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1590
1591
|
let contents = {};
|
|
1591
1592
|
contents = de_Connection(data, context);
|
|
1592
1593
|
const response = {
|
|
@@ -1599,7 +1600,7 @@ var de_UpdateDirectConnectGatewayCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1599
1600
|
if (output.statusCode >= 300) {
|
|
1600
1601
|
return de_CommandError(output, context);
|
|
1601
1602
|
}
|
|
1602
|
-
const data = await
|
|
1603
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1603
1604
|
let contents = {};
|
|
1604
1605
|
contents = (0, import_smithy_client._json)(data);
|
|
1605
1606
|
const response = {
|
|
@@ -1612,7 +1613,7 @@ var de_UpdateDirectConnectGatewayAssociationCommand = /* @__PURE__ */ __name(asy
|
|
|
1612
1613
|
if (output.statusCode >= 300) {
|
|
1613
1614
|
return de_CommandError(output, context);
|
|
1614
1615
|
}
|
|
1615
|
-
const data = await
|
|
1616
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1616
1617
|
let contents = {};
|
|
1617
1618
|
contents = (0, import_smithy_client._json)(data);
|
|
1618
1619
|
const response = {
|
|
@@ -1625,7 +1626,7 @@ var de_UpdateLagCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1625
1626
|
if (output.statusCode >= 300) {
|
|
1626
1627
|
return de_CommandError(output, context);
|
|
1627
1628
|
}
|
|
1628
|
-
const data = await
|
|
1629
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1629
1630
|
let contents = {};
|
|
1630
1631
|
contents = de_Lag(data, context);
|
|
1631
1632
|
const response = {
|
|
@@ -1638,7 +1639,7 @@ var de_UpdateVirtualInterfaceAttributesCommand = /* @__PURE__ */ __name(async (o
|
|
|
1638
1639
|
if (output.statusCode >= 300) {
|
|
1639
1640
|
return de_CommandError(output, context);
|
|
1640
1641
|
}
|
|
1641
|
-
const data = await
|
|
1642
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1642
1643
|
let contents = {};
|
|
1643
1644
|
contents = (0, import_smithy_client._json)(data);
|
|
1644
1645
|
const response = {
|
|
@@ -1650,9 +1651,9 @@ var de_UpdateVirtualInterfaceAttributesCommand = /* @__PURE__ */ __name(async (o
|
|
|
1650
1651
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1651
1652
|
const parsedOutput = {
|
|
1652
1653
|
...output,
|
|
1653
|
-
body: await
|
|
1654
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1654
1655
|
};
|
|
1655
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1656
1657
|
switch (errorCode) {
|
|
1657
1658
|
case "DirectConnectClientException":
|
|
1658
1659
|
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
@@ -1870,7 +1871,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1870
1871
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1871
1872
|
cfId: output.headers["x-amz-cf-id"]
|
|
1872
1873
|
}), "deserializeMetadata");
|
|
1873
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1874
1874
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(DirectConnectServiceException);
|
|
1875
1875
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1876
1876
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1897,46 +1897,6 @@ function sharedHeaders(operation) {
|
|
|
1897
1897
|
};
|
|
1898
1898
|
}
|
|
1899
1899
|
__name(sharedHeaders, "sharedHeaders");
|
|
1900
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1901
|
-
if (encoded.length) {
|
|
1902
|
-
return JSON.parse(encoded);
|
|
1903
|
-
}
|
|
1904
|
-
return {};
|
|
1905
|
-
}), "parseBody");
|
|
1906
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1907
|
-
const value = await parseBody(errorBody, context);
|
|
1908
|
-
value.message = value.message ?? value.Message;
|
|
1909
|
-
return value;
|
|
1910
|
-
}, "parseErrorBody");
|
|
1911
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1912
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1913
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1914
|
-
let cleanValue = rawValue;
|
|
1915
|
-
if (typeof cleanValue === "number") {
|
|
1916
|
-
cleanValue = cleanValue.toString();
|
|
1917
|
-
}
|
|
1918
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1919
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1920
|
-
}
|
|
1921
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1922
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1923
|
-
}
|
|
1924
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1925
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1926
|
-
}
|
|
1927
|
-
return cleanValue;
|
|
1928
|
-
}, "sanitizeErrorCode");
|
|
1929
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1930
|
-
if (headerKey !== void 0) {
|
|
1931
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1932
|
-
}
|
|
1933
|
-
if (data.code !== void 0) {
|
|
1934
|
-
return sanitizeErrorCode(data.code);
|
|
1935
|
-
}
|
|
1936
|
-
if (data["__type"] !== void 0) {
|
|
1937
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1938
|
-
}
|
|
1939
|
-
}, "loadRestJsonErrorCode");
|
|
1940
1900
|
|
|
1941
1901
|
// src/commands/AcceptDirectConnectGatewayAssociationProposalCommand.ts
|
|
1942
1902
|
var _AcceptDirectConnectGatewayAssociationProposalCommand = class _AcceptDirectConnectGatewayAssociationProposalCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { DirectConnectServiceException as __BaseException } from "../models/DirectConnectServiceException";
|
|
@@ -1453,43 +1454,3 @@ function sharedHeaders(operation) {
|
|
|
1453
1454
|
"x-amz-target": `OvertureService.${operation}`,
|
|
1454
1455
|
};
|
|
1455
1456
|
}
|
|
1456
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1457
|
-
if (encoded.length) {
|
|
1458
|
-
return JSON.parse(encoded);
|
|
1459
|
-
}
|
|
1460
|
-
return {};
|
|
1461
|
-
});
|
|
1462
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1463
|
-
const value = await parseBody(errorBody, context);
|
|
1464
|
-
value.message = value.message ?? value.Message;
|
|
1465
|
-
return value;
|
|
1466
|
-
};
|
|
1467
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1468
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1469
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1470
|
-
let cleanValue = rawValue;
|
|
1471
|
-
if (typeof cleanValue === "number") {
|
|
1472
|
-
cleanValue = cleanValue.toString();
|
|
1473
|
-
}
|
|
1474
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1475
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1476
|
-
}
|
|
1477
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1478
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1479
|
-
}
|
|
1480
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1481
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1482
|
-
}
|
|
1483
|
-
return cleanValue;
|
|
1484
|
-
};
|
|
1485
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1486
|
-
if (headerKey !== undefined) {
|
|
1487
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1488
|
-
}
|
|
1489
|
-
if (data.code !== undefined) {
|
|
1490
|
-
return sanitizeErrorCode(data.code);
|
|
1491
|
-
}
|
|
1492
|
-
if (data["__type"] !== undefined) {
|
|
1493
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1494
|
-
}
|
|
1495
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-direct-connect",
|
|
3
3
|
"description": "AWS SDK for JavaScript Direct Connect Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-direct-connect",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|