@aws-sdk/client-transfer 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +102 -1852
- package/dist-es/protocols/Aws_json1_1.js +130 -1880
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -960,7 +960,7 @@ var se_UpdateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
960
960
|
}, "se_UpdateUserCommand");
|
|
961
961
|
var de_CreateAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
962
962
|
if (output.statusCode >= 300) {
|
|
963
|
-
return
|
|
963
|
+
return de_CommandError(output, context);
|
|
964
964
|
}
|
|
965
965
|
const data = await parseBody(output.body, context);
|
|
966
966
|
let contents = {};
|
|
@@ -971,40 +971,9 @@ var de_CreateAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
971
971
|
};
|
|
972
972
|
return response;
|
|
973
973
|
}, "de_CreateAccessCommand");
|
|
974
|
-
var de_CreateAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
975
|
-
const parsedOutput = {
|
|
976
|
-
...output,
|
|
977
|
-
body: await parseErrorBody(output.body, context)
|
|
978
|
-
};
|
|
979
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
980
|
-
switch (errorCode) {
|
|
981
|
-
case "InternalServiceError":
|
|
982
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
983
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
984
|
-
case "InvalidRequestException":
|
|
985
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
986
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
987
|
-
case "ResourceExistsException":
|
|
988
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
989
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
990
|
-
case "ResourceNotFoundException":
|
|
991
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
992
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
993
|
-
case "ServiceUnavailableException":
|
|
994
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
995
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
996
|
-
default:
|
|
997
|
-
const parsedBody = parsedOutput.body;
|
|
998
|
-
return throwDefaultError({
|
|
999
|
-
output,
|
|
1000
|
-
parsedBody,
|
|
1001
|
-
errorCode
|
|
1002
|
-
});
|
|
1003
|
-
}
|
|
1004
|
-
}, "de_CreateAccessCommandError");
|
|
1005
974
|
var de_CreateAgreementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1006
975
|
if (output.statusCode >= 300) {
|
|
1007
|
-
return
|
|
976
|
+
return de_CommandError(output, context);
|
|
1008
977
|
}
|
|
1009
978
|
const data = await parseBody(output.body, context);
|
|
1010
979
|
let contents = {};
|
|
@@ -1015,43 +984,9 @@ var de_CreateAgreementCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1015
984
|
};
|
|
1016
985
|
return response;
|
|
1017
986
|
}, "de_CreateAgreementCommand");
|
|
1018
|
-
var de_CreateAgreementCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1019
|
-
const parsedOutput = {
|
|
1020
|
-
...output,
|
|
1021
|
-
body: await parseErrorBody(output.body, context)
|
|
1022
|
-
};
|
|
1023
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1024
|
-
switch (errorCode) {
|
|
1025
|
-
case "InternalServiceError":
|
|
1026
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1027
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1028
|
-
case "InvalidRequestException":
|
|
1029
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1030
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "ResourceExistsException":
|
|
1032
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
1033
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
1034
|
-
case "ResourceNotFoundException":
|
|
1035
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1036
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1037
|
-
case "ServiceUnavailableException":
|
|
1038
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1039
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1040
|
-
case "ThrottlingException":
|
|
1041
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
1042
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1043
|
-
default:
|
|
1044
|
-
const parsedBody = parsedOutput.body;
|
|
1045
|
-
return throwDefaultError({
|
|
1046
|
-
output,
|
|
1047
|
-
parsedBody,
|
|
1048
|
-
errorCode
|
|
1049
|
-
});
|
|
1050
|
-
}
|
|
1051
|
-
}, "de_CreateAgreementCommandError");
|
|
1052
987
|
var de_CreateConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1053
988
|
if (output.statusCode >= 300) {
|
|
1054
|
-
return
|
|
989
|
+
return de_CommandError(output, context);
|
|
1055
990
|
}
|
|
1056
991
|
const data = await parseBody(output.body, context);
|
|
1057
992
|
let contents = {};
|
|
@@ -1062,43 +997,9 @@ var de_CreateConnectorCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1062
997
|
};
|
|
1063
998
|
return response;
|
|
1064
999
|
}, "de_CreateConnectorCommand");
|
|
1065
|
-
var de_CreateConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1066
|
-
const parsedOutput = {
|
|
1067
|
-
...output,
|
|
1068
|
-
body: await parseErrorBody(output.body, context)
|
|
1069
|
-
};
|
|
1070
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1071
|
-
switch (errorCode) {
|
|
1072
|
-
case "InternalServiceError":
|
|
1073
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1074
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1075
|
-
case "InvalidRequestException":
|
|
1076
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1077
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "ResourceExistsException":
|
|
1079
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
1080
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
1081
|
-
case "ResourceNotFoundException":
|
|
1082
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1083
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1084
|
-
case "ServiceUnavailableException":
|
|
1085
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1086
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "ThrottlingException":
|
|
1088
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
1089
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1090
|
-
default:
|
|
1091
|
-
const parsedBody = parsedOutput.body;
|
|
1092
|
-
return throwDefaultError({
|
|
1093
|
-
output,
|
|
1094
|
-
parsedBody,
|
|
1095
|
-
errorCode
|
|
1096
|
-
});
|
|
1097
|
-
}
|
|
1098
|
-
}, "de_CreateConnectorCommandError");
|
|
1099
1000
|
var de_CreateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1100
1001
|
if (output.statusCode >= 300) {
|
|
1101
|
-
return
|
|
1002
|
+
return de_CommandError(output, context);
|
|
1102
1003
|
}
|
|
1103
1004
|
const data = await parseBody(output.body, context);
|
|
1104
1005
|
let contents = {};
|
|
@@ -1109,40 +1010,9 @@ var de_CreateProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1109
1010
|
};
|
|
1110
1011
|
return response;
|
|
1111
1012
|
}, "de_CreateProfileCommand");
|
|
1112
|
-
var de_CreateProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1113
|
-
const parsedOutput = {
|
|
1114
|
-
...output,
|
|
1115
|
-
body: await parseErrorBody(output.body, context)
|
|
1116
|
-
};
|
|
1117
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1118
|
-
switch (errorCode) {
|
|
1119
|
-
case "InternalServiceError":
|
|
1120
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1121
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1122
|
-
case "InvalidRequestException":
|
|
1123
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1124
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1125
|
-
case "ResourceNotFoundException":
|
|
1126
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1127
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1128
|
-
case "ServiceUnavailableException":
|
|
1129
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1130
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1131
|
-
case "ThrottlingException":
|
|
1132
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
1133
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1134
|
-
default:
|
|
1135
|
-
const parsedBody = parsedOutput.body;
|
|
1136
|
-
return throwDefaultError({
|
|
1137
|
-
output,
|
|
1138
|
-
parsedBody,
|
|
1139
|
-
errorCode
|
|
1140
|
-
});
|
|
1141
|
-
}
|
|
1142
|
-
}, "de_CreateProfileCommandError");
|
|
1143
1013
|
var de_CreateServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1144
1014
|
if (output.statusCode >= 300) {
|
|
1145
|
-
return
|
|
1015
|
+
return de_CommandError(output, context);
|
|
1146
1016
|
}
|
|
1147
1017
|
const data = await parseBody(output.body, context);
|
|
1148
1018
|
let contents = {};
|
|
@@ -1153,46 +1023,9 @@ var de_CreateServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1153
1023
|
};
|
|
1154
1024
|
return response;
|
|
1155
1025
|
}, "de_CreateServerCommand");
|
|
1156
|
-
var de_CreateServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1157
|
-
const parsedOutput = {
|
|
1158
|
-
...output,
|
|
1159
|
-
body: await parseErrorBody(output.body, context)
|
|
1160
|
-
};
|
|
1161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1162
|
-
switch (errorCode) {
|
|
1163
|
-
case "AccessDeniedException":
|
|
1164
|
-
case "com.amazonaws.transfer#AccessDeniedException":
|
|
1165
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1166
|
-
case "InternalServiceError":
|
|
1167
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1168
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1169
|
-
case "InvalidRequestException":
|
|
1170
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1171
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "ResourceExistsException":
|
|
1173
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
1174
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "ResourceNotFoundException":
|
|
1176
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1177
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "ServiceUnavailableException":
|
|
1179
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1180
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "ThrottlingException":
|
|
1182
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
1183
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1184
|
-
default:
|
|
1185
|
-
const parsedBody = parsedOutput.body;
|
|
1186
|
-
return throwDefaultError({
|
|
1187
|
-
output,
|
|
1188
|
-
parsedBody,
|
|
1189
|
-
errorCode
|
|
1190
|
-
});
|
|
1191
|
-
}
|
|
1192
|
-
}, "de_CreateServerCommandError");
|
|
1193
1026
|
var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1194
1027
|
if (output.statusCode >= 300) {
|
|
1195
|
-
return
|
|
1028
|
+
return de_CommandError(output, context);
|
|
1196
1029
|
}
|
|
1197
1030
|
const data = await parseBody(output.body, context);
|
|
1198
1031
|
let contents = {};
|
|
@@ -1203,40 +1036,9 @@ var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1203
1036
|
};
|
|
1204
1037
|
return response;
|
|
1205
1038
|
}, "de_CreateUserCommand");
|
|
1206
|
-
var de_CreateUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1207
|
-
const parsedOutput = {
|
|
1208
|
-
...output,
|
|
1209
|
-
body: await parseErrorBody(output.body, context)
|
|
1210
|
-
};
|
|
1211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
|
-
switch (errorCode) {
|
|
1213
|
-
case "InternalServiceError":
|
|
1214
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1215
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1216
|
-
case "InvalidRequestException":
|
|
1217
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1218
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1219
|
-
case "ResourceExistsException":
|
|
1220
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
1221
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
1222
|
-
case "ResourceNotFoundException":
|
|
1223
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1224
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1225
|
-
case "ServiceUnavailableException":
|
|
1226
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1227
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1228
|
-
default:
|
|
1229
|
-
const parsedBody = parsedOutput.body;
|
|
1230
|
-
return throwDefaultError({
|
|
1231
|
-
output,
|
|
1232
|
-
parsedBody,
|
|
1233
|
-
errorCode
|
|
1234
|
-
});
|
|
1235
|
-
}
|
|
1236
|
-
}, "de_CreateUserCommandError");
|
|
1237
1039
|
var de_CreateWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1238
1040
|
if (output.statusCode >= 300) {
|
|
1239
|
-
return
|
|
1041
|
+
return de_CommandError(output, context);
|
|
1240
1042
|
}
|
|
1241
1043
|
const data = await parseBody(output.body, context);
|
|
1242
1044
|
let contents = {};
|
|
@@ -1247,43 +1049,9 @@ var de_CreateWorkflowCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1247
1049
|
};
|
|
1248
1050
|
return response;
|
|
1249
1051
|
}, "de_CreateWorkflowCommand");
|
|
1250
|
-
var de_CreateWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1251
|
-
const parsedOutput = {
|
|
1252
|
-
...output,
|
|
1253
|
-
body: await parseErrorBody(output.body, context)
|
|
1254
|
-
};
|
|
1255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1256
|
-
switch (errorCode) {
|
|
1257
|
-
case "AccessDeniedException":
|
|
1258
|
-
case "com.amazonaws.transfer#AccessDeniedException":
|
|
1259
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1260
|
-
case "InternalServiceError":
|
|
1261
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1262
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1263
|
-
case "InvalidRequestException":
|
|
1264
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1265
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "ResourceExistsException":
|
|
1267
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
1268
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "ServiceUnavailableException":
|
|
1270
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1271
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1272
|
-
case "ThrottlingException":
|
|
1273
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
1274
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1275
|
-
default:
|
|
1276
|
-
const parsedBody = parsedOutput.body;
|
|
1277
|
-
return throwDefaultError({
|
|
1278
|
-
output,
|
|
1279
|
-
parsedBody,
|
|
1280
|
-
errorCode
|
|
1281
|
-
});
|
|
1282
|
-
}
|
|
1283
|
-
}, "de_CreateWorkflowCommandError");
|
|
1284
1052
|
var de_DeleteAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1285
1053
|
if (output.statusCode >= 300) {
|
|
1286
|
-
return
|
|
1054
|
+
return de_CommandError(output, context);
|
|
1287
1055
|
}
|
|
1288
1056
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1289
1057
|
const response = {
|
|
@@ -1291,37 +1059,9 @@ var de_DeleteAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1291
1059
|
};
|
|
1292
1060
|
return response;
|
|
1293
1061
|
}, "de_DeleteAccessCommand");
|
|
1294
|
-
var de_DeleteAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1295
|
-
const parsedOutput = {
|
|
1296
|
-
...output,
|
|
1297
|
-
body: await parseErrorBody(output.body, context)
|
|
1298
|
-
};
|
|
1299
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1300
|
-
switch (errorCode) {
|
|
1301
|
-
case "InternalServiceError":
|
|
1302
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1303
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1304
|
-
case "InvalidRequestException":
|
|
1305
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1306
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1307
|
-
case "ResourceNotFoundException":
|
|
1308
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1309
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "ServiceUnavailableException":
|
|
1311
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1312
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1313
|
-
default:
|
|
1314
|
-
const parsedBody = parsedOutput.body;
|
|
1315
|
-
return throwDefaultError({
|
|
1316
|
-
output,
|
|
1317
|
-
parsedBody,
|
|
1318
|
-
errorCode
|
|
1319
|
-
});
|
|
1320
|
-
}
|
|
1321
|
-
}, "de_DeleteAccessCommandError");
|
|
1322
1062
|
var de_DeleteAgreementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1323
1063
|
if (output.statusCode >= 300) {
|
|
1324
|
-
return
|
|
1064
|
+
return de_CommandError(output, context);
|
|
1325
1065
|
}
|
|
1326
1066
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1327
1067
|
const response = {
|
|
@@ -1329,75 +1069,19 @@ var de_DeleteAgreementCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1329
1069
|
};
|
|
1330
1070
|
return response;
|
|
1331
1071
|
}, "de_DeleteAgreementCommand");
|
|
1332
|
-
var
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
const
|
|
1338
|
-
|
|
1339
|
-
case "InternalServiceError":
|
|
1340
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1341
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1342
|
-
case "InvalidRequestException":
|
|
1343
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1344
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1345
|
-
case "ResourceNotFoundException":
|
|
1346
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1347
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "ServiceUnavailableException":
|
|
1349
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1350
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1351
|
-
default:
|
|
1352
|
-
const parsedBody = parsedOutput.body;
|
|
1353
|
-
return throwDefaultError({
|
|
1354
|
-
output,
|
|
1355
|
-
parsedBody,
|
|
1356
|
-
errorCode
|
|
1357
|
-
});
|
|
1358
|
-
}
|
|
1359
|
-
}, "de_DeleteAgreementCommandError");
|
|
1360
|
-
var de_DeleteCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1361
|
-
if (output.statusCode >= 300) {
|
|
1362
|
-
return de_DeleteCertificateCommandError(output, context);
|
|
1363
|
-
}
|
|
1364
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1365
|
-
const response = {
|
|
1366
|
-
$metadata: deserializeMetadata(output)
|
|
1072
|
+
var de_DeleteCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1073
|
+
if (output.statusCode >= 300) {
|
|
1074
|
+
return de_CommandError(output, context);
|
|
1075
|
+
}
|
|
1076
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1077
|
+
const response = {
|
|
1078
|
+
$metadata: deserializeMetadata(output)
|
|
1367
1079
|
};
|
|
1368
1080
|
return response;
|
|
1369
1081
|
}, "de_DeleteCertificateCommand");
|
|
1370
|
-
var de_DeleteCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1371
|
-
const parsedOutput = {
|
|
1372
|
-
...output,
|
|
1373
|
-
body: await parseErrorBody(output.body, context)
|
|
1374
|
-
};
|
|
1375
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1376
|
-
switch (errorCode) {
|
|
1377
|
-
case "InternalServiceError":
|
|
1378
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1379
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1380
|
-
case "InvalidRequestException":
|
|
1381
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1382
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "ResourceNotFoundException":
|
|
1384
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1385
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "ServiceUnavailableException":
|
|
1387
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1388
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1389
|
-
default:
|
|
1390
|
-
const parsedBody = parsedOutput.body;
|
|
1391
|
-
return throwDefaultError({
|
|
1392
|
-
output,
|
|
1393
|
-
parsedBody,
|
|
1394
|
-
errorCode
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
}, "de_DeleteCertificateCommandError");
|
|
1398
1082
|
var de_DeleteConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1399
1083
|
if (output.statusCode >= 300) {
|
|
1400
|
-
return
|
|
1084
|
+
return de_CommandError(output, context);
|
|
1401
1085
|
}
|
|
1402
1086
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1403
1087
|
const response = {
|
|
@@ -1405,37 +1089,9 @@ var de_DeleteConnectorCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1405
1089
|
};
|
|
1406
1090
|
return response;
|
|
1407
1091
|
}, "de_DeleteConnectorCommand");
|
|
1408
|
-
var de_DeleteConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1409
|
-
const parsedOutput = {
|
|
1410
|
-
...output,
|
|
1411
|
-
body: await parseErrorBody(output.body, context)
|
|
1412
|
-
};
|
|
1413
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1414
|
-
switch (errorCode) {
|
|
1415
|
-
case "InternalServiceError":
|
|
1416
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1417
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1418
|
-
case "InvalidRequestException":
|
|
1419
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1420
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1421
|
-
case "ResourceNotFoundException":
|
|
1422
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1423
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1424
|
-
case "ServiceUnavailableException":
|
|
1425
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1426
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1427
|
-
default:
|
|
1428
|
-
const parsedBody = parsedOutput.body;
|
|
1429
|
-
return throwDefaultError({
|
|
1430
|
-
output,
|
|
1431
|
-
parsedBody,
|
|
1432
|
-
errorCode
|
|
1433
|
-
});
|
|
1434
|
-
}
|
|
1435
|
-
}, "de_DeleteConnectorCommandError");
|
|
1436
1092
|
var de_DeleteHostKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1437
1093
|
if (output.statusCode >= 300) {
|
|
1438
|
-
return
|
|
1094
|
+
return de_CommandError(output, context);
|
|
1439
1095
|
}
|
|
1440
1096
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1441
1097
|
const response = {
|
|
@@ -1443,40 +1099,9 @@ var de_DeleteHostKeyCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1443
1099
|
};
|
|
1444
1100
|
return response;
|
|
1445
1101
|
}, "de_DeleteHostKeyCommand");
|
|
1446
|
-
var de_DeleteHostKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1447
|
-
const parsedOutput = {
|
|
1448
|
-
...output,
|
|
1449
|
-
body: await parseErrorBody(output.body, context)
|
|
1450
|
-
};
|
|
1451
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1452
|
-
switch (errorCode) {
|
|
1453
|
-
case "InternalServiceError":
|
|
1454
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1455
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1456
|
-
case "InvalidRequestException":
|
|
1457
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1458
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1459
|
-
case "ResourceNotFoundException":
|
|
1460
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1461
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "ServiceUnavailableException":
|
|
1463
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1464
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1465
|
-
case "ThrottlingException":
|
|
1466
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
1467
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1468
|
-
default:
|
|
1469
|
-
const parsedBody = parsedOutput.body;
|
|
1470
|
-
return throwDefaultError({
|
|
1471
|
-
output,
|
|
1472
|
-
parsedBody,
|
|
1473
|
-
errorCode
|
|
1474
|
-
});
|
|
1475
|
-
}
|
|
1476
|
-
}, "de_DeleteHostKeyCommandError");
|
|
1477
1102
|
var de_DeleteProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1478
1103
|
if (output.statusCode >= 300) {
|
|
1479
|
-
return
|
|
1104
|
+
return de_CommandError(output, context);
|
|
1480
1105
|
}
|
|
1481
1106
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1482
1107
|
const response = {
|
|
@@ -1484,37 +1109,9 @@ var de_DeleteProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1484
1109
|
};
|
|
1485
1110
|
return response;
|
|
1486
1111
|
}, "de_DeleteProfileCommand");
|
|
1487
|
-
var de_DeleteProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1488
|
-
const parsedOutput = {
|
|
1489
|
-
...output,
|
|
1490
|
-
body: await parseErrorBody(output.body, context)
|
|
1491
|
-
};
|
|
1492
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1493
|
-
switch (errorCode) {
|
|
1494
|
-
case "InternalServiceError":
|
|
1495
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1496
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1497
|
-
case "InvalidRequestException":
|
|
1498
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1499
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1500
|
-
case "ResourceNotFoundException":
|
|
1501
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1502
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1503
|
-
case "ServiceUnavailableException":
|
|
1504
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1505
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1506
|
-
default:
|
|
1507
|
-
const parsedBody = parsedOutput.body;
|
|
1508
|
-
return throwDefaultError({
|
|
1509
|
-
output,
|
|
1510
|
-
parsedBody,
|
|
1511
|
-
errorCode
|
|
1512
|
-
});
|
|
1513
|
-
}
|
|
1514
|
-
}, "de_DeleteProfileCommandError");
|
|
1515
1112
|
var de_DeleteServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1516
1113
|
if (output.statusCode >= 300) {
|
|
1517
|
-
return
|
|
1114
|
+
return de_CommandError(output, context);
|
|
1518
1115
|
}
|
|
1519
1116
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1520
1117
|
const response = {
|
|
@@ -1522,40 +1119,9 @@ var de_DeleteServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1522
1119
|
};
|
|
1523
1120
|
return response;
|
|
1524
1121
|
}, "de_DeleteServerCommand");
|
|
1525
|
-
var de_DeleteServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1526
|
-
const parsedOutput = {
|
|
1527
|
-
...output,
|
|
1528
|
-
body: await parseErrorBody(output.body, context)
|
|
1529
|
-
};
|
|
1530
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1531
|
-
switch (errorCode) {
|
|
1532
|
-
case "AccessDeniedException":
|
|
1533
|
-
case "com.amazonaws.transfer#AccessDeniedException":
|
|
1534
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1535
|
-
case "InternalServiceError":
|
|
1536
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1537
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1538
|
-
case "InvalidRequestException":
|
|
1539
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1540
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1541
|
-
case "ResourceNotFoundException":
|
|
1542
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1543
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1544
|
-
case "ServiceUnavailableException":
|
|
1545
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1546
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1547
|
-
default:
|
|
1548
|
-
const parsedBody = parsedOutput.body;
|
|
1549
|
-
return throwDefaultError({
|
|
1550
|
-
output,
|
|
1551
|
-
parsedBody,
|
|
1552
|
-
errorCode
|
|
1553
|
-
});
|
|
1554
|
-
}
|
|
1555
|
-
}, "de_DeleteServerCommandError");
|
|
1556
1122
|
var de_DeleteSshPublicKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1557
1123
|
if (output.statusCode >= 300) {
|
|
1558
|
-
return
|
|
1124
|
+
return de_CommandError(output, context);
|
|
1559
1125
|
}
|
|
1560
1126
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1561
1127
|
const response = {
|
|
@@ -1563,40 +1129,9 @@ var de_DeleteSshPublicKeyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1563
1129
|
};
|
|
1564
1130
|
return response;
|
|
1565
1131
|
}, "de_DeleteSshPublicKeyCommand");
|
|
1566
|
-
var de_DeleteSshPublicKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1567
|
-
const parsedOutput = {
|
|
1568
|
-
...output,
|
|
1569
|
-
body: await parseErrorBody(output.body, context)
|
|
1570
|
-
};
|
|
1571
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1572
|
-
switch (errorCode) {
|
|
1573
|
-
case "InternalServiceError":
|
|
1574
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1575
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1576
|
-
case "InvalidRequestException":
|
|
1577
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1578
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1579
|
-
case "ResourceNotFoundException":
|
|
1580
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1581
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "ServiceUnavailableException":
|
|
1583
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1584
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "ThrottlingException":
|
|
1586
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
1587
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1588
|
-
default:
|
|
1589
|
-
const parsedBody = parsedOutput.body;
|
|
1590
|
-
return throwDefaultError({
|
|
1591
|
-
output,
|
|
1592
|
-
parsedBody,
|
|
1593
|
-
errorCode
|
|
1594
|
-
});
|
|
1595
|
-
}
|
|
1596
|
-
}, "de_DeleteSshPublicKeyCommandError");
|
|
1597
1132
|
var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1598
1133
|
if (output.statusCode >= 300) {
|
|
1599
|
-
return
|
|
1134
|
+
return de_CommandError(output, context);
|
|
1600
1135
|
}
|
|
1601
1136
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1602
1137
|
const response = {
|
|
@@ -1604,37 +1139,9 @@ var de_DeleteUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1604
1139
|
};
|
|
1605
1140
|
return response;
|
|
1606
1141
|
}, "de_DeleteUserCommand");
|
|
1607
|
-
var de_DeleteUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1608
|
-
const parsedOutput = {
|
|
1609
|
-
...output,
|
|
1610
|
-
body: await parseErrorBody(output.body, context)
|
|
1611
|
-
};
|
|
1612
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1613
|
-
switch (errorCode) {
|
|
1614
|
-
case "InternalServiceError":
|
|
1615
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1616
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1617
|
-
case "InvalidRequestException":
|
|
1618
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1619
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1620
|
-
case "ResourceNotFoundException":
|
|
1621
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1622
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1623
|
-
case "ServiceUnavailableException":
|
|
1624
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1625
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1626
|
-
default:
|
|
1627
|
-
const parsedBody = parsedOutput.body;
|
|
1628
|
-
return throwDefaultError({
|
|
1629
|
-
output,
|
|
1630
|
-
parsedBody,
|
|
1631
|
-
errorCode
|
|
1632
|
-
});
|
|
1633
|
-
}
|
|
1634
|
-
}, "de_DeleteUserCommandError");
|
|
1635
1142
|
var de_DeleteWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1636
1143
|
if (output.statusCode >= 300) {
|
|
1637
|
-
return
|
|
1144
|
+
return de_CommandError(output, context);
|
|
1638
1145
|
}
|
|
1639
1146
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1640
1147
|
const response = {
|
|
@@ -1642,40 +1149,9 @@ var de_DeleteWorkflowCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1642
1149
|
};
|
|
1643
1150
|
return response;
|
|
1644
1151
|
}, "de_DeleteWorkflowCommand");
|
|
1645
|
-
var de_DeleteWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1646
|
-
const parsedOutput = {
|
|
1647
|
-
...output,
|
|
1648
|
-
body: await parseErrorBody(output.body, context)
|
|
1649
|
-
};
|
|
1650
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1651
|
-
switch (errorCode) {
|
|
1652
|
-
case "AccessDeniedException":
|
|
1653
|
-
case "com.amazonaws.transfer#AccessDeniedException":
|
|
1654
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1655
|
-
case "InternalServiceError":
|
|
1656
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1657
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1658
|
-
case "InvalidRequestException":
|
|
1659
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1660
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1661
|
-
case "ResourceNotFoundException":
|
|
1662
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1663
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1664
|
-
case "ServiceUnavailableException":
|
|
1665
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1666
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1667
|
-
default:
|
|
1668
|
-
const parsedBody = parsedOutput.body;
|
|
1669
|
-
return throwDefaultError({
|
|
1670
|
-
output,
|
|
1671
|
-
parsedBody,
|
|
1672
|
-
errorCode
|
|
1673
|
-
});
|
|
1674
|
-
}
|
|
1675
|
-
}, "de_DeleteWorkflowCommandError");
|
|
1676
1152
|
var de_DescribeAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1677
1153
|
if (output.statusCode >= 300) {
|
|
1678
|
-
return
|
|
1154
|
+
return de_CommandError(output, context);
|
|
1679
1155
|
}
|
|
1680
1156
|
const data = await parseBody(output.body, context);
|
|
1681
1157
|
let contents = {};
|
|
@@ -1686,37 +1162,9 @@ var de_DescribeAccessCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1686
1162
|
};
|
|
1687
1163
|
return response;
|
|
1688
1164
|
}, "de_DescribeAccessCommand");
|
|
1689
|
-
var de_DescribeAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1690
|
-
const parsedOutput = {
|
|
1691
|
-
...output,
|
|
1692
|
-
body: await parseErrorBody(output.body, context)
|
|
1693
|
-
};
|
|
1694
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1695
|
-
switch (errorCode) {
|
|
1696
|
-
case "InternalServiceError":
|
|
1697
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1698
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1699
|
-
case "InvalidRequestException":
|
|
1700
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1701
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "ResourceNotFoundException":
|
|
1703
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1704
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "ServiceUnavailableException":
|
|
1706
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1707
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1708
|
-
default:
|
|
1709
|
-
const parsedBody = parsedOutput.body;
|
|
1710
|
-
return throwDefaultError({
|
|
1711
|
-
output,
|
|
1712
|
-
parsedBody,
|
|
1713
|
-
errorCode
|
|
1714
|
-
});
|
|
1715
|
-
}
|
|
1716
|
-
}, "de_DescribeAccessCommandError");
|
|
1717
1165
|
var de_DescribeAgreementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1718
1166
|
if (output.statusCode >= 300) {
|
|
1719
|
-
return
|
|
1167
|
+
return de_CommandError(output, context);
|
|
1720
1168
|
}
|
|
1721
1169
|
const data = await parseBody(output.body, context);
|
|
1722
1170
|
let contents = {};
|
|
@@ -1727,37 +1175,9 @@ var de_DescribeAgreementCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1727
1175
|
};
|
|
1728
1176
|
return response;
|
|
1729
1177
|
}, "de_DescribeAgreementCommand");
|
|
1730
|
-
var de_DescribeAgreementCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1731
|
-
const parsedOutput = {
|
|
1732
|
-
...output,
|
|
1733
|
-
body: await parseErrorBody(output.body, context)
|
|
1734
|
-
};
|
|
1735
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1736
|
-
switch (errorCode) {
|
|
1737
|
-
case "InternalServiceError":
|
|
1738
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1739
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1740
|
-
case "InvalidRequestException":
|
|
1741
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1742
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1743
|
-
case "ResourceNotFoundException":
|
|
1744
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1745
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1746
|
-
case "ServiceUnavailableException":
|
|
1747
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1748
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1749
|
-
default:
|
|
1750
|
-
const parsedBody = parsedOutput.body;
|
|
1751
|
-
return throwDefaultError({
|
|
1752
|
-
output,
|
|
1753
|
-
parsedBody,
|
|
1754
|
-
errorCode
|
|
1755
|
-
});
|
|
1756
|
-
}
|
|
1757
|
-
}, "de_DescribeAgreementCommandError");
|
|
1758
1178
|
var de_DescribeCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1759
1179
|
if (output.statusCode >= 300) {
|
|
1760
|
-
return
|
|
1180
|
+
return de_CommandError(output, context);
|
|
1761
1181
|
}
|
|
1762
1182
|
const data = await parseBody(output.body, context);
|
|
1763
1183
|
let contents = {};
|
|
@@ -1768,37 +1188,9 @@ var de_DescribeCertificateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1768
1188
|
};
|
|
1769
1189
|
return response;
|
|
1770
1190
|
}, "de_DescribeCertificateCommand");
|
|
1771
|
-
var de_DescribeCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1772
|
-
const parsedOutput = {
|
|
1773
|
-
...output,
|
|
1774
|
-
body: await parseErrorBody(output.body, context)
|
|
1775
|
-
};
|
|
1776
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1777
|
-
switch (errorCode) {
|
|
1778
|
-
case "InternalServiceError":
|
|
1779
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1780
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1781
|
-
case "InvalidRequestException":
|
|
1782
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1783
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1784
|
-
case "ResourceNotFoundException":
|
|
1785
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1786
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1787
|
-
case "ServiceUnavailableException":
|
|
1788
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1789
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1790
|
-
default:
|
|
1791
|
-
const parsedBody = parsedOutput.body;
|
|
1792
|
-
return throwDefaultError({
|
|
1793
|
-
output,
|
|
1794
|
-
parsedBody,
|
|
1795
|
-
errorCode
|
|
1796
|
-
});
|
|
1797
|
-
}
|
|
1798
|
-
}, "de_DescribeCertificateCommandError");
|
|
1799
1191
|
var de_DescribeConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1800
1192
|
if (output.statusCode >= 300) {
|
|
1801
|
-
return
|
|
1193
|
+
return de_CommandError(output, context);
|
|
1802
1194
|
}
|
|
1803
1195
|
const data = await parseBody(output.body, context);
|
|
1804
1196
|
let contents = {};
|
|
@@ -1809,37 +1201,9 @@ var de_DescribeConnectorCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1809
1201
|
};
|
|
1810
1202
|
return response;
|
|
1811
1203
|
}, "de_DescribeConnectorCommand");
|
|
1812
|
-
var de_DescribeConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1813
|
-
const parsedOutput = {
|
|
1814
|
-
...output,
|
|
1815
|
-
body: await parseErrorBody(output.body, context)
|
|
1816
|
-
};
|
|
1817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1818
|
-
switch (errorCode) {
|
|
1819
|
-
case "InternalServiceError":
|
|
1820
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1821
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1822
|
-
case "InvalidRequestException":
|
|
1823
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1824
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1825
|
-
case "ResourceNotFoundException":
|
|
1826
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1827
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "ServiceUnavailableException":
|
|
1829
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1830
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1831
|
-
default:
|
|
1832
|
-
const parsedBody = parsedOutput.body;
|
|
1833
|
-
return throwDefaultError({
|
|
1834
|
-
output,
|
|
1835
|
-
parsedBody,
|
|
1836
|
-
errorCode
|
|
1837
|
-
});
|
|
1838
|
-
}
|
|
1839
|
-
}, "de_DescribeConnectorCommandError");
|
|
1840
1204
|
var de_DescribeExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1841
1205
|
if (output.statusCode >= 300) {
|
|
1842
|
-
return
|
|
1206
|
+
return de_CommandError(output, context);
|
|
1843
1207
|
}
|
|
1844
1208
|
const data = await parseBody(output.body, context);
|
|
1845
1209
|
let contents = {};
|
|
@@ -1850,37 +1214,9 @@ var de_DescribeExecutionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1850
1214
|
};
|
|
1851
1215
|
return response;
|
|
1852
1216
|
}, "de_DescribeExecutionCommand");
|
|
1853
|
-
var de_DescribeExecutionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1854
|
-
const parsedOutput = {
|
|
1855
|
-
...output,
|
|
1856
|
-
body: await parseErrorBody(output.body, context)
|
|
1857
|
-
};
|
|
1858
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1859
|
-
switch (errorCode) {
|
|
1860
|
-
case "InternalServiceError":
|
|
1861
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1862
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1863
|
-
case "InvalidRequestException":
|
|
1864
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1865
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1866
|
-
case "ResourceNotFoundException":
|
|
1867
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1868
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "ServiceUnavailableException":
|
|
1870
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1871
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1872
|
-
default:
|
|
1873
|
-
const parsedBody = parsedOutput.body;
|
|
1874
|
-
return throwDefaultError({
|
|
1875
|
-
output,
|
|
1876
|
-
parsedBody,
|
|
1877
|
-
errorCode
|
|
1878
|
-
});
|
|
1879
|
-
}
|
|
1880
|
-
}, "de_DescribeExecutionCommandError");
|
|
1881
1217
|
var de_DescribeHostKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1882
1218
|
if (output.statusCode >= 300) {
|
|
1883
|
-
return
|
|
1219
|
+
return de_CommandError(output, context);
|
|
1884
1220
|
}
|
|
1885
1221
|
const data = await parseBody(output.body, context);
|
|
1886
1222
|
let contents = {};
|
|
@@ -1891,37 +1227,9 @@ var de_DescribeHostKeyCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1891
1227
|
};
|
|
1892
1228
|
return response;
|
|
1893
1229
|
}, "de_DescribeHostKeyCommand");
|
|
1894
|
-
var de_DescribeHostKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1895
|
-
const parsedOutput = {
|
|
1896
|
-
...output,
|
|
1897
|
-
body: await parseErrorBody(output.body, context)
|
|
1898
|
-
};
|
|
1899
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1900
|
-
switch (errorCode) {
|
|
1901
|
-
case "InternalServiceError":
|
|
1902
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1903
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1904
|
-
case "InvalidRequestException":
|
|
1905
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1906
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1907
|
-
case "ResourceNotFoundException":
|
|
1908
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1909
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1910
|
-
case "ServiceUnavailableException":
|
|
1911
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1912
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1913
|
-
default:
|
|
1914
|
-
const parsedBody = parsedOutput.body;
|
|
1915
|
-
return throwDefaultError({
|
|
1916
|
-
output,
|
|
1917
|
-
parsedBody,
|
|
1918
|
-
errorCode
|
|
1919
|
-
});
|
|
1920
|
-
}
|
|
1921
|
-
}, "de_DescribeHostKeyCommandError");
|
|
1922
1230
|
var de_DescribeProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1923
1231
|
if (output.statusCode >= 300) {
|
|
1924
|
-
return
|
|
1232
|
+
return de_CommandError(output, context);
|
|
1925
1233
|
}
|
|
1926
1234
|
const data = await parseBody(output.body, context);
|
|
1927
1235
|
let contents = {};
|
|
@@ -1932,37 +1240,9 @@ var de_DescribeProfileCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1932
1240
|
};
|
|
1933
1241
|
return response;
|
|
1934
1242
|
}, "de_DescribeProfileCommand");
|
|
1935
|
-
var de_DescribeProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1936
|
-
const parsedOutput = {
|
|
1937
|
-
...output,
|
|
1938
|
-
body: await parseErrorBody(output.body, context)
|
|
1939
|
-
};
|
|
1940
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1941
|
-
switch (errorCode) {
|
|
1942
|
-
case "InternalServiceError":
|
|
1943
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1944
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1945
|
-
case "InvalidRequestException":
|
|
1946
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1947
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1948
|
-
case "ResourceNotFoundException":
|
|
1949
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1950
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1951
|
-
case "ServiceUnavailableException":
|
|
1952
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1953
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1954
|
-
default:
|
|
1955
|
-
const parsedBody = parsedOutput.body;
|
|
1956
|
-
return throwDefaultError({
|
|
1957
|
-
output,
|
|
1958
|
-
parsedBody,
|
|
1959
|
-
errorCode
|
|
1960
|
-
});
|
|
1961
|
-
}
|
|
1962
|
-
}, "de_DescribeProfileCommandError");
|
|
1963
1243
|
var de_DescribeSecurityPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1964
1244
|
if (output.statusCode >= 300) {
|
|
1965
|
-
return
|
|
1245
|
+
return de_CommandError(output, context);
|
|
1966
1246
|
}
|
|
1967
1247
|
const data = await parseBody(output.body, context);
|
|
1968
1248
|
let contents = {};
|
|
@@ -1973,37 +1253,9 @@ var de_DescribeSecurityPolicyCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1973
1253
|
};
|
|
1974
1254
|
return response;
|
|
1975
1255
|
}, "de_DescribeSecurityPolicyCommand");
|
|
1976
|
-
var de_DescribeSecurityPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1977
|
-
const parsedOutput = {
|
|
1978
|
-
...output,
|
|
1979
|
-
body: await parseErrorBody(output.body, context)
|
|
1980
|
-
};
|
|
1981
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
|
-
switch (errorCode) {
|
|
1983
|
-
case "InternalServiceError":
|
|
1984
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
1985
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1986
|
-
case "InvalidRequestException":
|
|
1987
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
1988
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1989
|
-
case "ResourceNotFoundException":
|
|
1990
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
1991
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "ServiceUnavailableException":
|
|
1993
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
1994
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1995
|
-
default:
|
|
1996
|
-
const parsedBody = parsedOutput.body;
|
|
1997
|
-
return throwDefaultError({
|
|
1998
|
-
output,
|
|
1999
|
-
parsedBody,
|
|
2000
|
-
errorCode
|
|
2001
|
-
});
|
|
2002
|
-
}
|
|
2003
|
-
}, "de_DescribeSecurityPolicyCommandError");
|
|
2004
1256
|
var de_DescribeServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2005
1257
|
if (output.statusCode >= 300) {
|
|
2006
|
-
return
|
|
1258
|
+
return de_CommandError(output, context);
|
|
2007
1259
|
}
|
|
2008
1260
|
const data = await parseBody(output.body, context);
|
|
2009
1261
|
let contents = {};
|
|
@@ -2014,37 +1266,9 @@ var de_DescribeServerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2014
1266
|
};
|
|
2015
1267
|
return response;
|
|
2016
1268
|
}, "de_DescribeServerCommand");
|
|
2017
|
-
var de_DescribeServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2018
|
-
const parsedOutput = {
|
|
2019
|
-
...output,
|
|
2020
|
-
body: await parseErrorBody(output.body, context)
|
|
2021
|
-
};
|
|
2022
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2023
|
-
switch (errorCode) {
|
|
2024
|
-
case "InternalServiceError":
|
|
2025
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2026
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2027
|
-
case "InvalidRequestException":
|
|
2028
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2029
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2030
|
-
case "ResourceNotFoundException":
|
|
2031
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2032
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2033
|
-
case "ServiceUnavailableException":
|
|
2034
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2035
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2036
|
-
default:
|
|
2037
|
-
const parsedBody = parsedOutput.body;
|
|
2038
|
-
return throwDefaultError({
|
|
2039
|
-
output,
|
|
2040
|
-
parsedBody,
|
|
2041
|
-
errorCode
|
|
2042
|
-
});
|
|
2043
|
-
}
|
|
2044
|
-
}, "de_DescribeServerCommandError");
|
|
2045
1269
|
var de_DescribeUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2046
1270
|
if (output.statusCode >= 300) {
|
|
2047
|
-
return
|
|
1271
|
+
return de_CommandError(output, context);
|
|
2048
1272
|
}
|
|
2049
1273
|
const data = await parseBody(output.body, context);
|
|
2050
1274
|
let contents = {};
|
|
@@ -2055,37 +1279,9 @@ var de_DescribeUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2055
1279
|
};
|
|
2056
1280
|
return response;
|
|
2057
1281
|
}, "de_DescribeUserCommand");
|
|
2058
|
-
var de_DescribeUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2059
|
-
const parsedOutput = {
|
|
2060
|
-
...output,
|
|
2061
|
-
body: await parseErrorBody(output.body, context)
|
|
2062
|
-
};
|
|
2063
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2064
|
-
switch (errorCode) {
|
|
2065
|
-
case "InternalServiceError":
|
|
2066
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2067
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2068
|
-
case "InvalidRequestException":
|
|
2069
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2070
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2071
|
-
case "ResourceNotFoundException":
|
|
2072
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2073
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2074
|
-
case "ServiceUnavailableException":
|
|
2075
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2076
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2077
|
-
default:
|
|
2078
|
-
const parsedBody = parsedOutput.body;
|
|
2079
|
-
return throwDefaultError({
|
|
2080
|
-
output,
|
|
2081
|
-
parsedBody,
|
|
2082
|
-
errorCode
|
|
2083
|
-
});
|
|
2084
|
-
}
|
|
2085
|
-
}, "de_DescribeUserCommandError");
|
|
2086
1282
|
var de_DescribeWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2087
1283
|
if (output.statusCode >= 300) {
|
|
2088
|
-
return
|
|
1284
|
+
return de_CommandError(output, context);
|
|
2089
1285
|
}
|
|
2090
1286
|
const data = await parseBody(output.body, context);
|
|
2091
1287
|
let contents = {};
|
|
@@ -2096,37 +1292,9 @@ var de_DescribeWorkflowCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2096
1292
|
};
|
|
2097
1293
|
return response;
|
|
2098
1294
|
}, "de_DescribeWorkflowCommand");
|
|
2099
|
-
var de_DescribeWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2100
|
-
const parsedOutput = {
|
|
2101
|
-
...output,
|
|
2102
|
-
body: await parseErrorBody(output.body, context)
|
|
2103
|
-
};
|
|
2104
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2105
|
-
switch (errorCode) {
|
|
2106
|
-
case "InternalServiceError":
|
|
2107
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2108
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2109
|
-
case "InvalidRequestException":
|
|
2110
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2111
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "ResourceNotFoundException":
|
|
2113
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2114
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2115
|
-
case "ServiceUnavailableException":
|
|
2116
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2117
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2118
|
-
default:
|
|
2119
|
-
const parsedBody = parsedOutput.body;
|
|
2120
|
-
return throwDefaultError({
|
|
2121
|
-
output,
|
|
2122
|
-
parsedBody,
|
|
2123
|
-
errorCode
|
|
2124
|
-
});
|
|
2125
|
-
}
|
|
2126
|
-
}, "de_DescribeWorkflowCommandError");
|
|
2127
1295
|
var de_ImportCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2128
1296
|
if (output.statusCode >= 300) {
|
|
2129
|
-
return
|
|
1297
|
+
return de_CommandError(output, context);
|
|
2130
1298
|
}
|
|
2131
1299
|
const data = await parseBody(output.body, context);
|
|
2132
1300
|
let contents = {};
|
|
@@ -2137,37 +1305,9 @@ var de_ImportCertificateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2137
1305
|
};
|
|
2138
1306
|
return response;
|
|
2139
1307
|
}, "de_ImportCertificateCommand");
|
|
2140
|
-
var de_ImportCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2141
|
-
const parsedOutput = {
|
|
2142
|
-
...output,
|
|
2143
|
-
body: await parseErrorBody(output.body, context)
|
|
2144
|
-
};
|
|
2145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2146
|
-
switch (errorCode) {
|
|
2147
|
-
case "InternalServiceError":
|
|
2148
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2149
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2150
|
-
case "InvalidRequestException":
|
|
2151
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2152
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2153
|
-
case "ResourceNotFoundException":
|
|
2154
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2155
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2156
|
-
case "ServiceUnavailableException":
|
|
2157
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2158
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2159
|
-
default:
|
|
2160
|
-
const parsedBody = parsedOutput.body;
|
|
2161
|
-
return throwDefaultError({
|
|
2162
|
-
output,
|
|
2163
|
-
parsedBody,
|
|
2164
|
-
errorCode
|
|
2165
|
-
});
|
|
2166
|
-
}
|
|
2167
|
-
}, "de_ImportCertificateCommandError");
|
|
2168
1308
|
var de_ImportHostKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2169
1309
|
if (output.statusCode >= 300) {
|
|
2170
|
-
return
|
|
1310
|
+
return de_CommandError(output, context);
|
|
2171
1311
|
}
|
|
2172
1312
|
const data = await parseBody(output.body, context);
|
|
2173
1313
|
let contents = {};
|
|
@@ -2178,43 +1318,9 @@ var de_ImportHostKeyCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2178
1318
|
};
|
|
2179
1319
|
return response;
|
|
2180
1320
|
}, "de_ImportHostKeyCommand");
|
|
2181
|
-
var de_ImportHostKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2182
|
-
const parsedOutput = {
|
|
2183
|
-
...output,
|
|
2184
|
-
body: await parseErrorBody(output.body, context)
|
|
2185
|
-
};
|
|
2186
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2187
|
-
switch (errorCode) {
|
|
2188
|
-
case "InternalServiceError":
|
|
2189
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2190
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2191
|
-
case "InvalidRequestException":
|
|
2192
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2193
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2194
|
-
case "ResourceExistsException":
|
|
2195
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
2196
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
2197
|
-
case "ResourceNotFoundException":
|
|
2198
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2199
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2200
|
-
case "ServiceUnavailableException":
|
|
2201
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2202
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2203
|
-
case "ThrottlingException":
|
|
2204
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2205
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2206
|
-
default:
|
|
2207
|
-
const parsedBody = parsedOutput.body;
|
|
2208
|
-
return throwDefaultError({
|
|
2209
|
-
output,
|
|
2210
|
-
parsedBody,
|
|
2211
|
-
errorCode
|
|
2212
|
-
});
|
|
2213
|
-
}
|
|
2214
|
-
}, "de_ImportHostKeyCommandError");
|
|
2215
1321
|
var de_ImportSshPublicKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2216
1322
|
if (output.statusCode >= 300) {
|
|
2217
|
-
return
|
|
1323
|
+
return de_CommandError(output, context);
|
|
2218
1324
|
}
|
|
2219
1325
|
const data = await parseBody(output.body, context);
|
|
2220
1326
|
let contents = {};
|
|
@@ -2225,43 +1331,9 @@ var de_ImportSshPublicKeyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2225
1331
|
};
|
|
2226
1332
|
return response;
|
|
2227
1333
|
}, "de_ImportSshPublicKeyCommand");
|
|
2228
|
-
var de_ImportSshPublicKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2229
|
-
const parsedOutput = {
|
|
2230
|
-
...output,
|
|
2231
|
-
body: await parseErrorBody(output.body, context)
|
|
2232
|
-
};
|
|
2233
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2234
|
-
switch (errorCode) {
|
|
2235
|
-
case "InternalServiceError":
|
|
2236
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2237
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2238
|
-
case "InvalidRequestException":
|
|
2239
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2240
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "ResourceExistsException":
|
|
2242
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
2243
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "ResourceNotFoundException":
|
|
2245
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2246
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "ServiceUnavailableException":
|
|
2248
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2249
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2250
|
-
case "ThrottlingException":
|
|
2251
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2252
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2253
|
-
default:
|
|
2254
|
-
const parsedBody = parsedOutput.body;
|
|
2255
|
-
return throwDefaultError({
|
|
2256
|
-
output,
|
|
2257
|
-
parsedBody,
|
|
2258
|
-
errorCode
|
|
2259
|
-
});
|
|
2260
|
-
}
|
|
2261
|
-
}, "de_ImportSshPublicKeyCommandError");
|
|
2262
1334
|
var de_ListAccessesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2263
1335
|
if (output.statusCode >= 300) {
|
|
2264
|
-
return
|
|
1336
|
+
return de_CommandError(output, context);
|
|
2265
1337
|
}
|
|
2266
1338
|
const data = await parseBody(output.body, context);
|
|
2267
1339
|
let contents = {};
|
|
@@ -2272,40 +1344,9 @@ var de_ListAccessesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2272
1344
|
};
|
|
2273
1345
|
return response;
|
|
2274
1346
|
}, "de_ListAccessesCommand");
|
|
2275
|
-
var de_ListAccessesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2276
|
-
const parsedOutput = {
|
|
2277
|
-
...output,
|
|
2278
|
-
body: await parseErrorBody(output.body, context)
|
|
2279
|
-
};
|
|
2280
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2281
|
-
switch (errorCode) {
|
|
2282
|
-
case "InternalServiceError":
|
|
2283
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2284
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2285
|
-
case "InvalidNextTokenException":
|
|
2286
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2287
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "InvalidRequestException":
|
|
2289
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2290
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2291
|
-
case "ResourceNotFoundException":
|
|
2292
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2293
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2294
|
-
case "ServiceUnavailableException":
|
|
2295
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2296
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2297
|
-
default:
|
|
2298
|
-
const parsedBody = parsedOutput.body;
|
|
2299
|
-
return throwDefaultError({
|
|
2300
|
-
output,
|
|
2301
|
-
parsedBody,
|
|
2302
|
-
errorCode
|
|
2303
|
-
});
|
|
2304
|
-
}
|
|
2305
|
-
}, "de_ListAccessesCommandError");
|
|
2306
1347
|
var de_ListAgreementsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2307
1348
|
if (output.statusCode >= 300) {
|
|
2308
|
-
return
|
|
1349
|
+
return de_CommandError(output, context);
|
|
2309
1350
|
}
|
|
2310
1351
|
const data = await parseBody(output.body, context);
|
|
2311
1352
|
let contents = {};
|
|
@@ -2316,40 +1357,9 @@ var de_ListAgreementsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2316
1357
|
};
|
|
2317
1358
|
return response;
|
|
2318
1359
|
}, "de_ListAgreementsCommand");
|
|
2319
|
-
var de_ListAgreementsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2320
|
-
const parsedOutput = {
|
|
2321
|
-
...output,
|
|
2322
|
-
body: await parseErrorBody(output.body, context)
|
|
2323
|
-
};
|
|
2324
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2325
|
-
switch (errorCode) {
|
|
2326
|
-
case "InternalServiceError":
|
|
2327
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2328
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2329
|
-
case "InvalidNextTokenException":
|
|
2330
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2331
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2332
|
-
case "InvalidRequestException":
|
|
2333
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2334
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2335
|
-
case "ResourceNotFoundException":
|
|
2336
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2337
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2338
|
-
case "ServiceUnavailableException":
|
|
2339
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2340
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2341
|
-
default:
|
|
2342
|
-
const parsedBody = parsedOutput.body;
|
|
2343
|
-
return throwDefaultError({
|
|
2344
|
-
output,
|
|
2345
|
-
parsedBody,
|
|
2346
|
-
errorCode
|
|
2347
|
-
});
|
|
2348
|
-
}
|
|
2349
|
-
}, "de_ListAgreementsCommandError");
|
|
2350
1360
|
var de_ListCertificatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2351
1361
|
if (output.statusCode >= 300) {
|
|
2352
|
-
return
|
|
1362
|
+
return de_CommandError(output, context);
|
|
2353
1363
|
}
|
|
2354
1364
|
const data = await parseBody(output.body, context);
|
|
2355
1365
|
let contents = {};
|
|
@@ -2360,40 +1370,9 @@ var de_ListCertificatesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2360
1370
|
};
|
|
2361
1371
|
return response;
|
|
2362
1372
|
}, "de_ListCertificatesCommand");
|
|
2363
|
-
var de_ListCertificatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2364
|
-
const parsedOutput = {
|
|
2365
|
-
...output,
|
|
2366
|
-
body: await parseErrorBody(output.body, context)
|
|
2367
|
-
};
|
|
2368
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2369
|
-
switch (errorCode) {
|
|
2370
|
-
case "InternalServiceError":
|
|
2371
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2372
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2373
|
-
case "InvalidNextTokenException":
|
|
2374
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2375
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2376
|
-
case "InvalidRequestException":
|
|
2377
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2378
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "ResourceNotFoundException":
|
|
2380
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2381
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2382
|
-
case "ServiceUnavailableException":
|
|
2383
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2384
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2385
|
-
default:
|
|
2386
|
-
const parsedBody = parsedOutput.body;
|
|
2387
|
-
return throwDefaultError({
|
|
2388
|
-
output,
|
|
2389
|
-
parsedBody,
|
|
2390
|
-
errorCode
|
|
2391
|
-
});
|
|
2392
|
-
}
|
|
2393
|
-
}, "de_ListCertificatesCommandError");
|
|
2394
1373
|
var de_ListConnectorsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2395
1374
|
if (output.statusCode >= 300) {
|
|
2396
|
-
return
|
|
1375
|
+
return de_CommandError(output, context);
|
|
2397
1376
|
}
|
|
2398
1377
|
const data = await parseBody(output.body, context);
|
|
2399
1378
|
let contents = {};
|
|
@@ -2404,40 +1383,9 @@ var de_ListConnectorsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2404
1383
|
};
|
|
2405
1384
|
return response;
|
|
2406
1385
|
}, "de_ListConnectorsCommand");
|
|
2407
|
-
var de_ListConnectorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2408
|
-
const parsedOutput = {
|
|
2409
|
-
...output,
|
|
2410
|
-
body: await parseErrorBody(output.body, context)
|
|
2411
|
-
};
|
|
2412
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2413
|
-
switch (errorCode) {
|
|
2414
|
-
case "InternalServiceError":
|
|
2415
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2416
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2417
|
-
case "InvalidNextTokenException":
|
|
2418
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2419
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2420
|
-
case "InvalidRequestException":
|
|
2421
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2422
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2423
|
-
case "ResourceNotFoundException":
|
|
2424
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2425
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2426
|
-
case "ServiceUnavailableException":
|
|
2427
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2428
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2429
|
-
default:
|
|
2430
|
-
const parsedBody = parsedOutput.body;
|
|
2431
|
-
return throwDefaultError({
|
|
2432
|
-
output,
|
|
2433
|
-
parsedBody,
|
|
2434
|
-
errorCode
|
|
2435
|
-
});
|
|
2436
|
-
}
|
|
2437
|
-
}, "de_ListConnectorsCommandError");
|
|
2438
1386
|
var de_ListExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2439
1387
|
if (output.statusCode >= 300) {
|
|
2440
|
-
return
|
|
1388
|
+
return de_CommandError(output, context);
|
|
2441
1389
|
}
|
|
2442
1390
|
const data = await parseBody(output.body, context);
|
|
2443
1391
|
let contents = {};
|
|
@@ -2448,40 +1396,9 @@ var de_ListExecutionsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2448
1396
|
};
|
|
2449
1397
|
return response;
|
|
2450
1398
|
}, "de_ListExecutionsCommand");
|
|
2451
|
-
var de_ListExecutionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2452
|
-
const parsedOutput = {
|
|
2453
|
-
...output,
|
|
2454
|
-
body: await parseErrorBody(output.body, context)
|
|
2455
|
-
};
|
|
2456
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2457
|
-
switch (errorCode) {
|
|
2458
|
-
case "InternalServiceError":
|
|
2459
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2460
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2461
|
-
case "InvalidNextTokenException":
|
|
2462
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2463
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2464
|
-
case "InvalidRequestException":
|
|
2465
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2466
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "ResourceNotFoundException":
|
|
2468
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2469
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2470
|
-
case "ServiceUnavailableException":
|
|
2471
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2472
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2473
|
-
default:
|
|
2474
|
-
const parsedBody = parsedOutput.body;
|
|
2475
|
-
return throwDefaultError({
|
|
2476
|
-
output,
|
|
2477
|
-
parsedBody,
|
|
2478
|
-
errorCode
|
|
2479
|
-
});
|
|
2480
|
-
}
|
|
2481
|
-
}, "de_ListExecutionsCommandError");
|
|
2482
1399
|
var de_ListHostKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2483
1400
|
if (output.statusCode >= 300) {
|
|
2484
|
-
return
|
|
1401
|
+
return de_CommandError(output, context);
|
|
2485
1402
|
}
|
|
2486
1403
|
const data = await parseBody(output.body, context);
|
|
2487
1404
|
let contents = {};
|
|
@@ -2492,40 +1409,9 @@ var de_ListHostKeysCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2492
1409
|
};
|
|
2493
1410
|
return response;
|
|
2494
1411
|
}, "de_ListHostKeysCommand");
|
|
2495
|
-
var de_ListHostKeysCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2496
|
-
const parsedOutput = {
|
|
2497
|
-
...output,
|
|
2498
|
-
body: await parseErrorBody(output.body, context)
|
|
2499
|
-
};
|
|
2500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2501
|
-
switch (errorCode) {
|
|
2502
|
-
case "InternalServiceError":
|
|
2503
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2504
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2505
|
-
case "InvalidNextTokenException":
|
|
2506
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2507
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2508
|
-
case "InvalidRequestException":
|
|
2509
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2510
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2511
|
-
case "ResourceNotFoundException":
|
|
2512
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2513
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2514
|
-
case "ServiceUnavailableException":
|
|
2515
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2516
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2517
|
-
default:
|
|
2518
|
-
const parsedBody = parsedOutput.body;
|
|
2519
|
-
return throwDefaultError({
|
|
2520
|
-
output,
|
|
2521
|
-
parsedBody,
|
|
2522
|
-
errorCode
|
|
2523
|
-
});
|
|
2524
|
-
}
|
|
2525
|
-
}, "de_ListHostKeysCommandError");
|
|
2526
1412
|
var de_ListProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2527
1413
|
if (output.statusCode >= 300) {
|
|
2528
|
-
return
|
|
1414
|
+
return de_CommandError(output, context);
|
|
2529
1415
|
}
|
|
2530
1416
|
const data = await parseBody(output.body, context);
|
|
2531
1417
|
let contents = {};
|
|
@@ -2536,40 +1422,9 @@ var de_ListProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2536
1422
|
};
|
|
2537
1423
|
return response;
|
|
2538
1424
|
}, "de_ListProfilesCommand");
|
|
2539
|
-
var de_ListProfilesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2540
|
-
const parsedOutput = {
|
|
2541
|
-
...output,
|
|
2542
|
-
body: await parseErrorBody(output.body, context)
|
|
2543
|
-
};
|
|
2544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2545
|
-
switch (errorCode) {
|
|
2546
|
-
case "InternalServiceError":
|
|
2547
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2548
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2549
|
-
case "InvalidNextTokenException":
|
|
2550
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2551
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2552
|
-
case "InvalidRequestException":
|
|
2553
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2554
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2555
|
-
case "ResourceNotFoundException":
|
|
2556
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2557
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2558
|
-
case "ServiceUnavailableException":
|
|
2559
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2560
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2561
|
-
default:
|
|
2562
|
-
const parsedBody = parsedOutput.body;
|
|
2563
|
-
return throwDefaultError({
|
|
2564
|
-
output,
|
|
2565
|
-
parsedBody,
|
|
2566
|
-
errorCode
|
|
2567
|
-
});
|
|
2568
|
-
}
|
|
2569
|
-
}, "de_ListProfilesCommandError");
|
|
2570
1425
|
var de_ListSecurityPoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2571
1426
|
if (output.statusCode >= 300) {
|
|
2572
|
-
return
|
|
1427
|
+
return de_CommandError(output, context);
|
|
2573
1428
|
}
|
|
2574
1429
|
const data = await parseBody(output.body, context);
|
|
2575
1430
|
let contents = {};
|
|
@@ -2580,37 +1435,9 @@ var de_ListSecurityPoliciesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2580
1435
|
};
|
|
2581
1436
|
return response;
|
|
2582
1437
|
}, "de_ListSecurityPoliciesCommand");
|
|
2583
|
-
var de_ListSecurityPoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2584
|
-
const parsedOutput = {
|
|
2585
|
-
...output,
|
|
2586
|
-
body: await parseErrorBody(output.body, context)
|
|
2587
|
-
};
|
|
2588
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2589
|
-
switch (errorCode) {
|
|
2590
|
-
case "InternalServiceError":
|
|
2591
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2592
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2593
|
-
case "InvalidNextTokenException":
|
|
2594
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2595
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2596
|
-
case "InvalidRequestException":
|
|
2597
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2598
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2599
|
-
case "ServiceUnavailableException":
|
|
2600
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2601
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2602
|
-
default:
|
|
2603
|
-
const parsedBody = parsedOutput.body;
|
|
2604
|
-
return throwDefaultError({
|
|
2605
|
-
output,
|
|
2606
|
-
parsedBody,
|
|
2607
|
-
errorCode
|
|
2608
|
-
});
|
|
2609
|
-
}
|
|
2610
|
-
}, "de_ListSecurityPoliciesCommandError");
|
|
2611
1438
|
var de_ListServersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2612
1439
|
if (output.statusCode >= 300) {
|
|
2613
|
-
return
|
|
1440
|
+
return de_CommandError(output, context);
|
|
2614
1441
|
}
|
|
2615
1442
|
const data = await parseBody(output.body, context);
|
|
2616
1443
|
let contents = {};
|
|
@@ -2621,37 +1448,9 @@ var de_ListServersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2621
1448
|
};
|
|
2622
1449
|
return response;
|
|
2623
1450
|
}, "de_ListServersCommand");
|
|
2624
|
-
var de_ListServersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2625
|
-
const parsedOutput = {
|
|
2626
|
-
...output,
|
|
2627
|
-
body: await parseErrorBody(output.body, context)
|
|
2628
|
-
};
|
|
2629
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2630
|
-
switch (errorCode) {
|
|
2631
|
-
case "InternalServiceError":
|
|
2632
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2633
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2634
|
-
case "InvalidNextTokenException":
|
|
2635
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2636
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2637
|
-
case "InvalidRequestException":
|
|
2638
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2639
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2640
|
-
case "ServiceUnavailableException":
|
|
2641
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2642
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2643
|
-
default:
|
|
2644
|
-
const parsedBody = parsedOutput.body;
|
|
2645
|
-
return throwDefaultError({
|
|
2646
|
-
output,
|
|
2647
|
-
parsedBody,
|
|
2648
|
-
errorCode
|
|
2649
|
-
});
|
|
2650
|
-
}
|
|
2651
|
-
}, "de_ListServersCommandError");
|
|
2652
1451
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2653
1452
|
if (output.statusCode >= 300) {
|
|
2654
|
-
return
|
|
1453
|
+
return de_CommandError(output, context);
|
|
2655
1454
|
}
|
|
2656
1455
|
const data = await parseBody(output.body, context);
|
|
2657
1456
|
let contents = {};
|
|
@@ -2662,37 +1461,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2662
1461
|
};
|
|
2663
1462
|
return response;
|
|
2664
1463
|
}, "de_ListTagsForResourceCommand");
|
|
2665
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2666
|
-
const parsedOutput = {
|
|
2667
|
-
...output,
|
|
2668
|
-
body: await parseErrorBody(output.body, context)
|
|
2669
|
-
};
|
|
2670
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2671
|
-
switch (errorCode) {
|
|
2672
|
-
case "InternalServiceError":
|
|
2673
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2674
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2675
|
-
case "InvalidNextTokenException":
|
|
2676
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2677
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2678
|
-
case "InvalidRequestException":
|
|
2679
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2680
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2681
|
-
case "ServiceUnavailableException":
|
|
2682
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2683
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2684
|
-
default:
|
|
2685
|
-
const parsedBody = parsedOutput.body;
|
|
2686
|
-
return throwDefaultError({
|
|
2687
|
-
output,
|
|
2688
|
-
parsedBody,
|
|
2689
|
-
errorCode
|
|
2690
|
-
});
|
|
2691
|
-
}
|
|
2692
|
-
}, "de_ListTagsForResourceCommandError");
|
|
2693
1464
|
var de_ListUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2694
1465
|
if (output.statusCode >= 300) {
|
|
2695
|
-
return
|
|
1466
|
+
return de_CommandError(output, context);
|
|
2696
1467
|
}
|
|
2697
1468
|
const data = await parseBody(output.body, context);
|
|
2698
1469
|
let contents = {};
|
|
@@ -2703,40 +1474,9 @@ var de_ListUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2703
1474
|
};
|
|
2704
1475
|
return response;
|
|
2705
1476
|
}, "de_ListUsersCommand");
|
|
2706
|
-
var de_ListUsersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2707
|
-
const parsedOutput = {
|
|
2708
|
-
...output,
|
|
2709
|
-
body: await parseErrorBody(output.body, context)
|
|
2710
|
-
};
|
|
2711
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2712
|
-
switch (errorCode) {
|
|
2713
|
-
case "InternalServiceError":
|
|
2714
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2715
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2716
|
-
case "InvalidNextTokenException":
|
|
2717
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2718
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2719
|
-
case "InvalidRequestException":
|
|
2720
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2721
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2722
|
-
case "ResourceNotFoundException":
|
|
2723
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2724
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2725
|
-
case "ServiceUnavailableException":
|
|
2726
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2727
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2728
|
-
default:
|
|
2729
|
-
const parsedBody = parsedOutput.body;
|
|
2730
|
-
return throwDefaultError({
|
|
2731
|
-
output,
|
|
2732
|
-
parsedBody,
|
|
2733
|
-
errorCode
|
|
2734
|
-
});
|
|
2735
|
-
}
|
|
2736
|
-
}, "de_ListUsersCommandError");
|
|
2737
1477
|
var de_ListWorkflowsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2738
1478
|
if (output.statusCode >= 300) {
|
|
2739
|
-
return
|
|
1479
|
+
return de_CommandError(output, context);
|
|
2740
1480
|
}
|
|
2741
1481
|
const data = await parseBody(output.body, context);
|
|
2742
1482
|
let contents = {};
|
|
@@ -2747,37 +1487,9 @@ var de_ListWorkflowsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2747
1487
|
};
|
|
2748
1488
|
return response;
|
|
2749
1489
|
}, "de_ListWorkflowsCommand");
|
|
2750
|
-
var de_ListWorkflowsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2751
|
-
const parsedOutput = {
|
|
2752
|
-
...output,
|
|
2753
|
-
body: await parseErrorBody(output.body, context)
|
|
2754
|
-
};
|
|
2755
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2756
|
-
switch (errorCode) {
|
|
2757
|
-
case "InternalServiceError":
|
|
2758
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2759
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2760
|
-
case "InvalidNextTokenException":
|
|
2761
|
-
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
2762
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
2763
|
-
case "InvalidRequestException":
|
|
2764
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2765
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2766
|
-
case "ServiceUnavailableException":
|
|
2767
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2768
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2769
|
-
default:
|
|
2770
|
-
const parsedBody = parsedOutput.body;
|
|
2771
|
-
return throwDefaultError({
|
|
2772
|
-
output,
|
|
2773
|
-
parsedBody,
|
|
2774
|
-
errorCode
|
|
2775
|
-
});
|
|
2776
|
-
}
|
|
2777
|
-
}, "de_ListWorkflowsCommandError");
|
|
2778
1490
|
var de_SendWorkflowStepStateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2779
1491
|
if (output.statusCode >= 300) {
|
|
2780
|
-
return
|
|
1492
|
+
return de_CommandError(output, context);
|
|
2781
1493
|
}
|
|
2782
1494
|
const data = await parseBody(output.body, context);
|
|
2783
1495
|
let contents = {};
|
|
@@ -2788,43 +1500,9 @@ var de_SendWorkflowStepStateCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2788
1500
|
};
|
|
2789
1501
|
return response;
|
|
2790
1502
|
}, "de_SendWorkflowStepStateCommand");
|
|
2791
|
-
var de_SendWorkflowStepStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2792
|
-
const parsedOutput = {
|
|
2793
|
-
...output,
|
|
2794
|
-
body: await parseErrorBody(output.body, context)
|
|
2795
|
-
};
|
|
2796
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2797
|
-
switch (errorCode) {
|
|
2798
|
-
case "AccessDeniedException":
|
|
2799
|
-
case "com.amazonaws.transfer#AccessDeniedException":
|
|
2800
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2801
|
-
case "InternalServiceError":
|
|
2802
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2803
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2804
|
-
case "InvalidRequestException":
|
|
2805
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2806
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2807
|
-
case "ResourceNotFoundException":
|
|
2808
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2809
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2810
|
-
case "ServiceUnavailableException":
|
|
2811
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2812
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2813
|
-
case "ThrottlingException":
|
|
2814
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2815
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2816
|
-
default:
|
|
2817
|
-
const parsedBody = parsedOutput.body;
|
|
2818
|
-
return throwDefaultError({
|
|
2819
|
-
output,
|
|
2820
|
-
parsedBody,
|
|
2821
|
-
errorCode
|
|
2822
|
-
});
|
|
2823
|
-
}
|
|
2824
|
-
}, "de_SendWorkflowStepStateCommandError");
|
|
2825
1503
|
var de_StartFileTransferCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2826
1504
|
if (output.statusCode >= 300) {
|
|
2827
|
-
return
|
|
1505
|
+
return de_CommandError(output, context);
|
|
2828
1506
|
}
|
|
2829
1507
|
const data = await parseBody(output.body, context);
|
|
2830
1508
|
let contents = {};
|
|
@@ -2835,40 +1513,9 @@ var de_StartFileTransferCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2835
1513
|
};
|
|
2836
1514
|
return response;
|
|
2837
1515
|
}, "de_StartFileTransferCommand");
|
|
2838
|
-
var de_StartFileTransferCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2839
|
-
const parsedOutput = {
|
|
2840
|
-
...output,
|
|
2841
|
-
body: await parseErrorBody(output.body, context)
|
|
2842
|
-
};
|
|
2843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2844
|
-
switch (errorCode) {
|
|
2845
|
-
case "InternalServiceError":
|
|
2846
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2847
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2848
|
-
case "InvalidRequestException":
|
|
2849
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2850
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "ResourceNotFoundException":
|
|
2852
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2853
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2854
|
-
case "ServiceUnavailableException":
|
|
2855
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2856
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2857
|
-
case "ThrottlingException":
|
|
2858
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2859
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2860
|
-
default:
|
|
2861
|
-
const parsedBody = parsedOutput.body;
|
|
2862
|
-
return throwDefaultError({
|
|
2863
|
-
output,
|
|
2864
|
-
parsedBody,
|
|
2865
|
-
errorCode
|
|
2866
|
-
});
|
|
2867
|
-
}
|
|
2868
|
-
}, "de_StartFileTransferCommandError");
|
|
2869
1516
|
var de_StartServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2870
1517
|
if (output.statusCode >= 300) {
|
|
2871
|
-
return
|
|
1518
|
+
return de_CommandError(output, context);
|
|
2872
1519
|
}
|
|
2873
1520
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2874
1521
|
const response = {
|
|
@@ -2876,40 +1523,9 @@ var de_StartServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2876
1523
|
};
|
|
2877
1524
|
return response;
|
|
2878
1525
|
}, "de_StartServerCommand");
|
|
2879
|
-
var de_StartServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2880
|
-
const parsedOutput = {
|
|
2881
|
-
...output,
|
|
2882
|
-
body: await parseErrorBody(output.body, context)
|
|
2883
|
-
};
|
|
2884
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2885
|
-
switch (errorCode) {
|
|
2886
|
-
case "InternalServiceError":
|
|
2887
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2888
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2889
|
-
case "InvalidRequestException":
|
|
2890
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2891
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2892
|
-
case "ResourceNotFoundException":
|
|
2893
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2894
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2895
|
-
case "ServiceUnavailableException":
|
|
2896
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2897
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2898
|
-
case "ThrottlingException":
|
|
2899
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2900
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2901
|
-
default:
|
|
2902
|
-
const parsedBody = parsedOutput.body;
|
|
2903
|
-
return throwDefaultError({
|
|
2904
|
-
output,
|
|
2905
|
-
parsedBody,
|
|
2906
|
-
errorCode
|
|
2907
|
-
});
|
|
2908
|
-
}
|
|
2909
|
-
}, "de_StartServerCommandError");
|
|
2910
1526
|
var de_StopServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2911
1527
|
if (output.statusCode >= 300) {
|
|
2912
|
-
return
|
|
1528
|
+
return de_CommandError(output, context);
|
|
2913
1529
|
}
|
|
2914
1530
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2915
1531
|
const response = {
|
|
@@ -2917,40 +1533,9 @@ var de_StopServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2917
1533
|
};
|
|
2918
1534
|
return response;
|
|
2919
1535
|
}, "de_StopServerCommand");
|
|
2920
|
-
var de_StopServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2921
|
-
const parsedOutput = {
|
|
2922
|
-
...output,
|
|
2923
|
-
body: await parseErrorBody(output.body, context)
|
|
2924
|
-
};
|
|
2925
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2926
|
-
switch (errorCode) {
|
|
2927
|
-
case "InternalServiceError":
|
|
2928
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2929
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2930
|
-
case "InvalidRequestException":
|
|
2931
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2932
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2933
|
-
case "ResourceNotFoundException":
|
|
2934
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2935
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2936
|
-
case "ServiceUnavailableException":
|
|
2937
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2938
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2939
|
-
case "ThrottlingException":
|
|
2940
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
2941
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2942
|
-
default:
|
|
2943
|
-
const parsedBody = parsedOutput.body;
|
|
2944
|
-
return throwDefaultError({
|
|
2945
|
-
output,
|
|
2946
|
-
parsedBody,
|
|
2947
|
-
errorCode
|
|
2948
|
-
});
|
|
2949
|
-
}
|
|
2950
|
-
}, "de_StopServerCommandError");
|
|
2951
1536
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2952
1537
|
if (output.statusCode >= 300) {
|
|
2953
|
-
return
|
|
1538
|
+
return de_CommandError(output, context);
|
|
2954
1539
|
}
|
|
2955
1540
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2956
1541
|
const response = {
|
|
@@ -2958,37 +1543,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2958
1543
|
};
|
|
2959
1544
|
return response;
|
|
2960
1545
|
}, "de_TagResourceCommand");
|
|
2961
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2962
|
-
const parsedOutput = {
|
|
2963
|
-
...output,
|
|
2964
|
-
body: await parseErrorBody(output.body, context)
|
|
2965
|
-
};
|
|
2966
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2967
|
-
switch (errorCode) {
|
|
2968
|
-
case "InternalServiceError":
|
|
2969
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
2970
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
2971
|
-
case "InvalidRequestException":
|
|
2972
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
2973
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2974
|
-
case "ResourceNotFoundException":
|
|
2975
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
2976
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2977
|
-
case "ServiceUnavailableException":
|
|
2978
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
2979
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2980
|
-
default:
|
|
2981
|
-
const parsedBody = parsedOutput.body;
|
|
2982
|
-
return throwDefaultError({
|
|
2983
|
-
output,
|
|
2984
|
-
parsedBody,
|
|
2985
|
-
errorCode
|
|
2986
|
-
});
|
|
2987
|
-
}
|
|
2988
|
-
}, "de_TagResourceCommandError");
|
|
2989
1546
|
var de_TestConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2990
1547
|
if (output.statusCode >= 300) {
|
|
2991
|
-
return
|
|
1548
|
+
return de_CommandError(output, context);
|
|
2992
1549
|
}
|
|
2993
1550
|
const data = await parseBody(output.body, context);
|
|
2994
1551
|
let contents = {};
|
|
@@ -2996,119 +1553,35 @@ var de_TestConnectionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2996
1553
|
const response = {
|
|
2997
1554
|
$metadata: deserializeMetadata(output),
|
|
2998
1555
|
...contents
|
|
2999
|
-
};
|
|
3000
|
-
return response;
|
|
3001
|
-
}, "de_TestConnectionCommand");
|
|
3002
|
-
var
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
case "ServiceUnavailableException":
|
|
3019
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
3020
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3021
|
-
default:
|
|
3022
|
-
const parsedBody = parsedOutput.body;
|
|
3023
|
-
return throwDefaultError({
|
|
3024
|
-
output,
|
|
3025
|
-
parsedBody,
|
|
3026
|
-
errorCode
|
|
3027
|
-
});
|
|
3028
|
-
}
|
|
3029
|
-
}, "de_TestConnectionCommandError");
|
|
3030
|
-
var de_TestIdentityProviderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3031
|
-
if (output.statusCode >= 300) {
|
|
3032
|
-
return de_TestIdentityProviderCommandError(output, context);
|
|
3033
|
-
}
|
|
3034
|
-
const data = await parseBody(output.body, context);
|
|
3035
|
-
let contents = {};
|
|
3036
|
-
contents = (0, import_smithy_client._json)(data);
|
|
3037
|
-
const response = {
|
|
3038
|
-
$metadata: deserializeMetadata(output),
|
|
3039
|
-
...contents
|
|
3040
|
-
};
|
|
3041
|
-
return response;
|
|
3042
|
-
}, "de_TestIdentityProviderCommand");
|
|
3043
|
-
var de_TestIdentityProviderCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3044
|
-
const parsedOutput = {
|
|
3045
|
-
...output,
|
|
3046
|
-
body: await parseErrorBody(output.body, context)
|
|
3047
|
-
};
|
|
3048
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3049
|
-
switch (errorCode) {
|
|
3050
|
-
case "InternalServiceError":
|
|
3051
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
3052
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
3053
|
-
case "InvalidRequestException":
|
|
3054
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
3055
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3056
|
-
case "ResourceNotFoundException":
|
|
3057
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
3058
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3059
|
-
case "ServiceUnavailableException":
|
|
3060
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
3061
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3062
|
-
default:
|
|
3063
|
-
const parsedBody = parsedOutput.body;
|
|
3064
|
-
return throwDefaultError({
|
|
3065
|
-
output,
|
|
3066
|
-
parsedBody,
|
|
3067
|
-
errorCode
|
|
3068
|
-
});
|
|
3069
|
-
}
|
|
3070
|
-
}, "de_TestIdentityProviderCommandError");
|
|
3071
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3072
|
-
if (output.statusCode >= 300) {
|
|
3073
|
-
return de_UntagResourceCommandError(output, context);
|
|
3074
|
-
}
|
|
3075
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3076
|
-
const response = {
|
|
3077
|
-
$metadata: deserializeMetadata(output)
|
|
3078
|
-
};
|
|
3079
|
-
return response;
|
|
3080
|
-
}, "de_UntagResourceCommand");
|
|
3081
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3082
|
-
const parsedOutput = {
|
|
3083
|
-
...output,
|
|
3084
|
-
body: await parseErrorBody(output.body, context)
|
|
3085
|
-
};
|
|
3086
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3087
|
-
switch (errorCode) {
|
|
3088
|
-
case "InternalServiceError":
|
|
3089
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
3090
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
3091
|
-
case "InvalidRequestException":
|
|
3092
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
3093
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3094
|
-
case "ResourceNotFoundException":
|
|
3095
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
3096
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3097
|
-
case "ServiceUnavailableException":
|
|
3098
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
3099
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3100
|
-
default:
|
|
3101
|
-
const parsedBody = parsedOutput.body;
|
|
3102
|
-
return throwDefaultError({
|
|
3103
|
-
output,
|
|
3104
|
-
parsedBody,
|
|
3105
|
-
errorCode
|
|
3106
|
-
});
|
|
1556
|
+
};
|
|
1557
|
+
return response;
|
|
1558
|
+
}, "de_TestConnectionCommand");
|
|
1559
|
+
var de_TestIdentityProviderCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1560
|
+
if (output.statusCode >= 300) {
|
|
1561
|
+
return de_CommandError(output, context);
|
|
1562
|
+
}
|
|
1563
|
+
const data = await parseBody(output.body, context);
|
|
1564
|
+
let contents = {};
|
|
1565
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1566
|
+
const response = {
|
|
1567
|
+
$metadata: deserializeMetadata(output),
|
|
1568
|
+
...contents
|
|
1569
|
+
};
|
|
1570
|
+
return response;
|
|
1571
|
+
}, "de_TestIdentityProviderCommand");
|
|
1572
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1573
|
+
if (output.statusCode >= 300) {
|
|
1574
|
+
return de_CommandError(output, context);
|
|
3107
1575
|
}
|
|
3108
|
-
|
|
1576
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1577
|
+
const response = {
|
|
1578
|
+
$metadata: deserializeMetadata(output)
|
|
1579
|
+
};
|
|
1580
|
+
return response;
|
|
1581
|
+
}, "de_UntagResourceCommand");
|
|
3109
1582
|
var de_UpdateAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3110
1583
|
if (output.statusCode >= 300) {
|
|
3111
|
-
return
|
|
1584
|
+
return de_CommandError(output, context);
|
|
3112
1585
|
}
|
|
3113
1586
|
const data = await parseBody(output.body, context);
|
|
3114
1587
|
let contents = {};
|
|
@@ -3119,43 +1592,9 @@ var de_UpdateAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3119
1592
|
};
|
|
3120
1593
|
return response;
|
|
3121
1594
|
}, "de_UpdateAccessCommand");
|
|
3122
|
-
var de_UpdateAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3123
|
-
const parsedOutput = {
|
|
3124
|
-
...output,
|
|
3125
|
-
body: await parseErrorBody(output.body, context)
|
|
3126
|
-
};
|
|
3127
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3128
|
-
switch (errorCode) {
|
|
3129
|
-
case "InternalServiceError":
|
|
3130
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
3131
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
3132
|
-
case "InvalidRequestException":
|
|
3133
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
3134
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3135
|
-
case "ResourceExistsException":
|
|
3136
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
3137
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
3138
|
-
case "ResourceNotFoundException":
|
|
3139
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
3140
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3141
|
-
case "ServiceUnavailableException":
|
|
3142
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
3143
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3144
|
-
case "ThrottlingException":
|
|
3145
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
3146
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3147
|
-
default:
|
|
3148
|
-
const parsedBody = parsedOutput.body;
|
|
3149
|
-
return throwDefaultError({
|
|
3150
|
-
output,
|
|
3151
|
-
parsedBody,
|
|
3152
|
-
errorCode
|
|
3153
|
-
});
|
|
3154
|
-
}
|
|
3155
|
-
}, "de_UpdateAccessCommandError");
|
|
3156
1595
|
var de_UpdateAgreementCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3157
1596
|
if (output.statusCode >= 300) {
|
|
3158
|
-
return
|
|
1597
|
+
return de_CommandError(output, context);
|
|
3159
1598
|
}
|
|
3160
1599
|
const data = await parseBody(output.body, context);
|
|
3161
1600
|
let contents = {};
|
|
@@ -3166,43 +1605,9 @@ var de_UpdateAgreementCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3166
1605
|
};
|
|
3167
1606
|
return response;
|
|
3168
1607
|
}, "de_UpdateAgreementCommand");
|
|
3169
|
-
var de_UpdateAgreementCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3170
|
-
const parsedOutput = {
|
|
3171
|
-
...output,
|
|
3172
|
-
body: await parseErrorBody(output.body, context)
|
|
3173
|
-
};
|
|
3174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3175
|
-
switch (errorCode) {
|
|
3176
|
-
case "InternalServiceError":
|
|
3177
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
3178
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
3179
|
-
case "InvalidRequestException":
|
|
3180
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
3181
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3182
|
-
case "ResourceExistsException":
|
|
3183
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
3184
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
3185
|
-
case "ResourceNotFoundException":
|
|
3186
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
3187
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3188
|
-
case "ServiceUnavailableException":
|
|
3189
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
3190
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3191
|
-
case "ThrottlingException":
|
|
3192
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
3193
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3194
|
-
default:
|
|
3195
|
-
const parsedBody = parsedOutput.body;
|
|
3196
|
-
return throwDefaultError({
|
|
3197
|
-
output,
|
|
3198
|
-
parsedBody,
|
|
3199
|
-
errorCode
|
|
3200
|
-
});
|
|
3201
|
-
}
|
|
3202
|
-
}, "de_UpdateAgreementCommandError");
|
|
3203
1608
|
var de_UpdateCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3204
1609
|
if (output.statusCode >= 300) {
|
|
3205
|
-
return
|
|
1610
|
+
return de_CommandError(output, context);
|
|
3206
1611
|
}
|
|
3207
1612
|
const data = await parseBody(output.body, context);
|
|
3208
1613
|
let contents = {};
|
|
@@ -3213,40 +1618,9 @@ var de_UpdateCertificateCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3213
1618
|
};
|
|
3214
1619
|
return response;
|
|
3215
1620
|
}, "de_UpdateCertificateCommand");
|
|
3216
|
-
var de_UpdateCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3217
|
-
const parsedOutput = {
|
|
3218
|
-
...output,
|
|
3219
|
-
body: await parseErrorBody(output.body, context)
|
|
3220
|
-
};
|
|
3221
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3222
|
-
switch (errorCode) {
|
|
3223
|
-
case "InternalServiceError":
|
|
3224
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
3225
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
3226
|
-
case "InvalidRequestException":
|
|
3227
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
3228
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3229
|
-
case "ResourceNotFoundException":
|
|
3230
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
3231
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3232
|
-
case "ServiceUnavailableException":
|
|
3233
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
3234
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3235
|
-
case "ThrottlingException":
|
|
3236
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
3237
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3238
|
-
default:
|
|
3239
|
-
const parsedBody = parsedOutput.body;
|
|
3240
|
-
return throwDefaultError({
|
|
3241
|
-
output,
|
|
3242
|
-
parsedBody,
|
|
3243
|
-
errorCode
|
|
3244
|
-
});
|
|
3245
|
-
}
|
|
3246
|
-
}, "de_UpdateCertificateCommandError");
|
|
3247
1621
|
var de_UpdateConnectorCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3248
1622
|
if (output.statusCode >= 300) {
|
|
3249
|
-
return
|
|
1623
|
+
return de_CommandError(output, context);
|
|
3250
1624
|
}
|
|
3251
1625
|
const data = await parseBody(output.body, context);
|
|
3252
1626
|
let contents = {};
|
|
@@ -3257,43 +1631,9 @@ var de_UpdateConnectorCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3257
1631
|
};
|
|
3258
1632
|
return response;
|
|
3259
1633
|
}, "de_UpdateConnectorCommand");
|
|
3260
|
-
var de_UpdateConnectorCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3261
|
-
const parsedOutput = {
|
|
3262
|
-
...output,
|
|
3263
|
-
body: await parseErrorBody(output.body, context)
|
|
3264
|
-
};
|
|
3265
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3266
|
-
switch (errorCode) {
|
|
3267
|
-
case "InternalServiceError":
|
|
3268
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
3269
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
3270
|
-
case "InvalidRequestException":
|
|
3271
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
3272
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3273
|
-
case "ResourceExistsException":
|
|
3274
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
3275
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
3276
|
-
case "ResourceNotFoundException":
|
|
3277
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
3278
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3279
|
-
case "ServiceUnavailableException":
|
|
3280
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
3281
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3282
|
-
case "ThrottlingException":
|
|
3283
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
3284
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3285
|
-
default:
|
|
3286
|
-
const parsedBody = parsedOutput.body;
|
|
3287
|
-
return throwDefaultError({
|
|
3288
|
-
output,
|
|
3289
|
-
parsedBody,
|
|
3290
|
-
errorCode
|
|
3291
|
-
});
|
|
3292
|
-
}
|
|
3293
|
-
}, "de_UpdateConnectorCommandError");
|
|
3294
1634
|
var de_UpdateHostKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3295
1635
|
if (output.statusCode >= 300) {
|
|
3296
|
-
return
|
|
1636
|
+
return de_CommandError(output, context);
|
|
3297
1637
|
}
|
|
3298
1638
|
const data = await parseBody(output.body, context);
|
|
3299
1639
|
let contents = {};
|
|
@@ -3304,40 +1644,9 @@ var de_UpdateHostKeyCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3304
1644
|
};
|
|
3305
1645
|
return response;
|
|
3306
1646
|
}, "de_UpdateHostKeyCommand");
|
|
3307
|
-
var de_UpdateHostKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3308
|
-
const parsedOutput = {
|
|
3309
|
-
...output,
|
|
3310
|
-
body: await parseErrorBody(output.body, context)
|
|
3311
|
-
};
|
|
3312
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3313
|
-
switch (errorCode) {
|
|
3314
|
-
case "InternalServiceError":
|
|
3315
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
3316
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
3317
|
-
case "InvalidRequestException":
|
|
3318
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
3319
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3320
|
-
case "ResourceNotFoundException":
|
|
3321
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
3322
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3323
|
-
case "ServiceUnavailableException":
|
|
3324
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
3325
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3326
|
-
case "ThrottlingException":
|
|
3327
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
3328
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3329
|
-
default:
|
|
3330
|
-
const parsedBody = parsedOutput.body;
|
|
3331
|
-
return throwDefaultError({
|
|
3332
|
-
output,
|
|
3333
|
-
parsedBody,
|
|
3334
|
-
errorCode
|
|
3335
|
-
});
|
|
3336
|
-
}
|
|
3337
|
-
}, "de_UpdateHostKeyCommandError");
|
|
3338
1647
|
var de_UpdateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3339
1648
|
if (output.statusCode >= 300) {
|
|
3340
|
-
return
|
|
1649
|
+
return de_CommandError(output, context);
|
|
3341
1650
|
}
|
|
3342
1651
|
const data = await parseBody(output.body, context);
|
|
3343
1652
|
let contents = {};
|
|
@@ -3348,40 +1657,9 @@ var de_UpdateProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3348
1657
|
};
|
|
3349
1658
|
return response;
|
|
3350
1659
|
}, "de_UpdateProfileCommand");
|
|
3351
|
-
var de_UpdateProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3352
|
-
const parsedOutput = {
|
|
3353
|
-
...output,
|
|
3354
|
-
body: await parseErrorBody(output.body, context)
|
|
3355
|
-
};
|
|
3356
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3357
|
-
switch (errorCode) {
|
|
3358
|
-
case "InternalServiceError":
|
|
3359
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
3360
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
3361
|
-
case "InvalidRequestException":
|
|
3362
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
3363
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3364
|
-
case "ResourceNotFoundException":
|
|
3365
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
3366
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3367
|
-
case "ServiceUnavailableException":
|
|
3368
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
3369
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3370
|
-
case "ThrottlingException":
|
|
3371
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
3372
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3373
|
-
default:
|
|
3374
|
-
const parsedBody = parsedOutput.body;
|
|
3375
|
-
return throwDefaultError({
|
|
3376
|
-
output,
|
|
3377
|
-
parsedBody,
|
|
3378
|
-
errorCode
|
|
3379
|
-
});
|
|
3380
|
-
}
|
|
3381
|
-
}, "de_UpdateProfileCommandError");
|
|
3382
1660
|
var de_UpdateServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3383
1661
|
if (output.statusCode >= 300) {
|
|
3384
|
-
return
|
|
1662
|
+
return de_CommandError(output, context);
|
|
3385
1663
|
}
|
|
3386
1664
|
const data = await parseBody(output.body, context);
|
|
3387
1665
|
let contents = {};
|
|
@@ -3392,49 +1670,9 @@ var de_UpdateServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3392
1670
|
};
|
|
3393
1671
|
return response;
|
|
3394
1672
|
}, "de_UpdateServerCommand");
|
|
3395
|
-
var de_UpdateServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3396
|
-
const parsedOutput = {
|
|
3397
|
-
...output,
|
|
3398
|
-
body: await parseErrorBody(output.body, context)
|
|
3399
|
-
};
|
|
3400
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3401
|
-
switch (errorCode) {
|
|
3402
|
-
case "AccessDeniedException":
|
|
3403
|
-
case "com.amazonaws.transfer#AccessDeniedException":
|
|
3404
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3405
|
-
case "ConflictException":
|
|
3406
|
-
case "com.amazonaws.transfer#ConflictException":
|
|
3407
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3408
|
-
case "InternalServiceError":
|
|
3409
|
-
case "com.amazonaws.transfer#InternalServiceError":
|
|
3410
|
-
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
3411
|
-
case "InvalidRequestException":
|
|
3412
|
-
case "com.amazonaws.transfer#InvalidRequestException":
|
|
3413
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3414
|
-
case "ResourceExistsException":
|
|
3415
|
-
case "com.amazonaws.transfer#ResourceExistsException":
|
|
3416
|
-
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
3417
|
-
case "ResourceNotFoundException":
|
|
3418
|
-
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
3419
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3420
|
-
case "ServiceUnavailableException":
|
|
3421
|
-
case "com.amazonaws.transfer#ServiceUnavailableException":
|
|
3422
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3423
|
-
case "ThrottlingException":
|
|
3424
|
-
case "com.amazonaws.transfer#ThrottlingException":
|
|
3425
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3426
|
-
default:
|
|
3427
|
-
const parsedBody = parsedOutput.body;
|
|
3428
|
-
return throwDefaultError({
|
|
3429
|
-
output,
|
|
3430
|
-
parsedBody,
|
|
3431
|
-
errorCode
|
|
3432
|
-
});
|
|
3433
|
-
}
|
|
3434
|
-
}, "de_UpdateServerCommandError");
|
|
3435
1673
|
var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3436
1674
|
if (output.statusCode >= 300) {
|
|
3437
|
-
return
|
|
1675
|
+
return de_CommandError(output, context);
|
|
3438
1676
|
}
|
|
3439
1677
|
const data = await parseBody(output.body, context);
|
|
3440
1678
|
let contents = {};
|
|
@@ -3445,7 +1683,7 @@ var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3445
1683
|
};
|
|
3446
1684
|
return response;
|
|
3447
1685
|
}, "de_UpdateUserCommand");
|
|
3448
|
-
var
|
|
1686
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3449
1687
|
const parsedOutput = {
|
|
3450
1688
|
...output,
|
|
3451
1689
|
body: await parseErrorBody(output.body, context)
|
|
@@ -3458,6 +1696,9 @@ var de_UpdateUserCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3458
1696
|
case "InvalidRequestException":
|
|
3459
1697
|
case "com.amazonaws.transfer#InvalidRequestException":
|
|
3460
1698
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1699
|
+
case "ResourceExistsException":
|
|
1700
|
+
case "com.amazonaws.transfer#ResourceExistsException":
|
|
1701
|
+
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
3461
1702
|
case "ResourceNotFoundException":
|
|
3462
1703
|
case "com.amazonaws.transfer#ResourceNotFoundException":
|
|
3463
1704
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -3467,6 +1708,15 @@ var de_UpdateUserCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3467
1708
|
case "ThrottlingException":
|
|
3468
1709
|
case "com.amazonaws.transfer#ThrottlingException":
|
|
3469
1710
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1711
|
+
case "AccessDeniedException":
|
|
1712
|
+
case "com.amazonaws.transfer#AccessDeniedException":
|
|
1713
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1714
|
+
case "InvalidNextTokenException":
|
|
1715
|
+
case "com.amazonaws.transfer#InvalidNextTokenException":
|
|
1716
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
1717
|
+
case "ConflictException":
|
|
1718
|
+
case "com.amazonaws.transfer#ConflictException":
|
|
1719
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3470
1720
|
default:
|
|
3471
1721
|
const parsedBody = parsedOutput.body;
|
|
3472
1722
|
return throwDefaultError({
|
|
@@ -3475,7 +1725,7 @@ var de_UpdateUserCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3475
1725
|
errorCode
|
|
3476
1726
|
});
|
|
3477
1727
|
}
|
|
3478
|
-
}, "
|
|
1728
|
+
}, "de_CommandError");
|
|
3479
1729
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3480
1730
|
const body = parsedOutput.body;
|
|
3481
1731
|
const deserialized = (0, import_smithy_client._json)(body);
|