@aws-sdk/client-dataexchange 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +60 -893
- package/dist-es/protocols/Aws_restJson1.js +50 -883
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -887,7 +887,7 @@ var se_UpdateRevisionCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
887
887
|
}, "se_UpdateRevisionCommand");
|
|
888
888
|
var de_CancelJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
889
889
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
890
|
-
return
|
|
890
|
+
return de_CommandError(output, context);
|
|
891
891
|
}
|
|
892
892
|
const contents = (0, import_smithy_client.map)({
|
|
893
893
|
$metadata: deserializeMetadata(output)
|
|
@@ -895,40 +895,9 @@ var de_CancelJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
895
895
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
896
896
|
return contents;
|
|
897
897
|
}, "de_CancelJobCommand");
|
|
898
|
-
var de_CancelJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
899
|
-
const parsedOutput = {
|
|
900
|
-
...output,
|
|
901
|
-
body: await parseErrorBody(output.body, context)
|
|
902
|
-
};
|
|
903
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
904
|
-
switch (errorCode) {
|
|
905
|
-
case "ConflictException":
|
|
906
|
-
case "com.amazonaws.dataexchange#ConflictException":
|
|
907
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
908
|
-
case "InternalServerException":
|
|
909
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
910
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
911
|
-
case "ResourceNotFoundException":
|
|
912
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
913
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
914
|
-
case "ThrottlingException":
|
|
915
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
916
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
917
|
-
case "ValidationException":
|
|
918
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
919
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
920
|
-
default:
|
|
921
|
-
const parsedBody = parsedOutput.body;
|
|
922
|
-
return throwDefaultError({
|
|
923
|
-
output,
|
|
924
|
-
parsedBody,
|
|
925
|
-
errorCode
|
|
926
|
-
});
|
|
927
|
-
}
|
|
928
|
-
}, "de_CancelJobCommandError");
|
|
929
898
|
var de_CreateDataSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
930
899
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
931
|
-
return
|
|
900
|
+
return de_CommandError(output, context);
|
|
932
901
|
}
|
|
933
902
|
const contents = (0, import_smithy_client.map)({
|
|
934
903
|
$metadata: deserializeMetadata(output)
|
|
@@ -950,40 +919,9 @@ var de_CreateDataSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
950
919
|
Object.assign(contents, doc);
|
|
951
920
|
return contents;
|
|
952
921
|
}, "de_CreateDataSetCommand");
|
|
953
|
-
var de_CreateDataSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
954
|
-
const parsedOutput = {
|
|
955
|
-
...output,
|
|
956
|
-
body: await parseErrorBody(output.body, context)
|
|
957
|
-
};
|
|
958
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
959
|
-
switch (errorCode) {
|
|
960
|
-
case "AccessDeniedException":
|
|
961
|
-
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
962
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
963
|
-
case "InternalServerException":
|
|
964
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
965
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
966
|
-
case "ServiceLimitExceededException":
|
|
967
|
-
case "com.amazonaws.dataexchange#ServiceLimitExceededException":
|
|
968
|
-
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
969
|
-
case "ThrottlingException":
|
|
970
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
971
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
972
|
-
case "ValidationException":
|
|
973
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
974
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
975
|
-
default:
|
|
976
|
-
const parsedBody = parsedOutput.body;
|
|
977
|
-
return throwDefaultError({
|
|
978
|
-
output,
|
|
979
|
-
parsedBody,
|
|
980
|
-
errorCode
|
|
981
|
-
});
|
|
982
|
-
}
|
|
983
|
-
}, "de_CreateDataSetCommandError");
|
|
984
922
|
var de_CreateEventActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
985
923
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
986
|
-
return
|
|
924
|
+
return de_CommandError(output, context);
|
|
987
925
|
}
|
|
988
926
|
const contents = (0, import_smithy_client.map)({
|
|
989
927
|
$metadata: deserializeMetadata(output)
|
|
@@ -1000,40 +938,9 @@ var de_CreateEventActionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1000
938
|
Object.assign(contents, doc);
|
|
1001
939
|
return contents;
|
|
1002
940
|
}, "de_CreateEventActionCommand");
|
|
1003
|
-
var de_CreateEventActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1004
|
-
const parsedOutput = {
|
|
1005
|
-
...output,
|
|
1006
|
-
body: await parseErrorBody(output.body, context)
|
|
1007
|
-
};
|
|
1008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
-
switch (errorCode) {
|
|
1010
|
-
case "AccessDeniedException":
|
|
1011
|
-
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1012
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1013
|
-
case "InternalServerException":
|
|
1014
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1015
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1016
|
-
case "ServiceLimitExceededException":
|
|
1017
|
-
case "com.amazonaws.dataexchange#ServiceLimitExceededException":
|
|
1018
|
-
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
1019
|
-
case "ThrottlingException":
|
|
1020
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1021
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "ValidationException":
|
|
1023
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1024
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1025
|
-
default:
|
|
1026
|
-
const parsedBody = parsedOutput.body;
|
|
1027
|
-
return throwDefaultError({
|
|
1028
|
-
output,
|
|
1029
|
-
parsedBody,
|
|
1030
|
-
errorCode
|
|
1031
|
-
});
|
|
1032
|
-
}
|
|
1033
|
-
}, "de_CreateEventActionCommandError");
|
|
1034
941
|
var de_CreateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1035
942
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1036
|
-
return
|
|
943
|
+
return de_CommandError(output, context);
|
|
1037
944
|
}
|
|
1038
945
|
const contents = (0, import_smithy_client.map)({
|
|
1039
946
|
$metadata: deserializeMetadata(output)
|
|
@@ -1052,43 +959,9 @@ var de_CreateJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1052
959
|
Object.assign(contents, doc);
|
|
1053
960
|
return contents;
|
|
1054
961
|
}, "de_CreateJobCommand");
|
|
1055
|
-
var de_CreateJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1056
|
-
const parsedOutput = {
|
|
1057
|
-
...output,
|
|
1058
|
-
body: await parseErrorBody(output.body, context)
|
|
1059
|
-
};
|
|
1060
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1061
|
-
switch (errorCode) {
|
|
1062
|
-
case "AccessDeniedException":
|
|
1063
|
-
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1064
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "ConflictException":
|
|
1066
|
-
case "com.amazonaws.dataexchange#ConflictException":
|
|
1067
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "InternalServerException":
|
|
1069
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1070
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "ResourceNotFoundException":
|
|
1072
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1073
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1074
|
-
case "ThrottlingException":
|
|
1075
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1076
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "ValidationException":
|
|
1078
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1079
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1080
|
-
default:
|
|
1081
|
-
const parsedBody = parsedOutput.body;
|
|
1082
|
-
return throwDefaultError({
|
|
1083
|
-
output,
|
|
1084
|
-
parsedBody,
|
|
1085
|
-
errorCode
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
}, "de_CreateJobCommandError");
|
|
1089
962
|
var de_CreateRevisionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1090
963
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1091
|
-
return
|
|
964
|
+
return de_CommandError(output, context);
|
|
1092
965
|
}
|
|
1093
966
|
const contents = (0, import_smithy_client.map)({
|
|
1094
967
|
$metadata: deserializeMetadata(output)
|
|
@@ -1111,40 +984,9 @@ var de_CreateRevisionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1111
984
|
Object.assign(contents, doc);
|
|
1112
985
|
return contents;
|
|
1113
986
|
}, "de_CreateRevisionCommand");
|
|
1114
|
-
var de_CreateRevisionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1115
|
-
const parsedOutput = {
|
|
1116
|
-
...output,
|
|
1117
|
-
body: await parseErrorBody(output.body, context)
|
|
1118
|
-
};
|
|
1119
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1120
|
-
switch (errorCode) {
|
|
1121
|
-
case "AccessDeniedException":
|
|
1122
|
-
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1123
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "InternalServerException":
|
|
1125
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1126
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "ResourceNotFoundException":
|
|
1128
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1129
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "ThrottlingException":
|
|
1131
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1132
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "ValidationException":
|
|
1134
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1135
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1136
|
-
default:
|
|
1137
|
-
const parsedBody = parsedOutput.body;
|
|
1138
|
-
return throwDefaultError({
|
|
1139
|
-
output,
|
|
1140
|
-
parsedBody,
|
|
1141
|
-
errorCode
|
|
1142
|
-
});
|
|
1143
|
-
}
|
|
1144
|
-
}, "de_CreateRevisionCommandError");
|
|
1145
987
|
var de_DeleteAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1146
988
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1147
|
-
return
|
|
989
|
+
return de_CommandError(output, context);
|
|
1148
990
|
}
|
|
1149
991
|
const contents = (0, import_smithy_client.map)({
|
|
1150
992
|
$metadata: deserializeMetadata(output)
|
|
@@ -1152,43 +994,9 @@ var de_DeleteAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1152
994
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1153
995
|
return contents;
|
|
1154
996
|
}, "de_DeleteAssetCommand");
|
|
1155
|
-
var de_DeleteAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1156
|
-
const parsedOutput = {
|
|
1157
|
-
...output,
|
|
1158
|
-
body: await parseErrorBody(output.body, context)
|
|
1159
|
-
};
|
|
1160
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1161
|
-
switch (errorCode) {
|
|
1162
|
-
case "AccessDeniedException":
|
|
1163
|
-
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1164
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "ConflictException":
|
|
1166
|
-
case "com.amazonaws.dataexchange#ConflictException":
|
|
1167
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "InternalServerException":
|
|
1169
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1170
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1171
|
-
case "ResourceNotFoundException":
|
|
1172
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1173
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1174
|
-
case "ThrottlingException":
|
|
1175
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1176
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1177
|
-
case "ValidationException":
|
|
1178
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1179
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1180
|
-
default:
|
|
1181
|
-
const parsedBody = parsedOutput.body;
|
|
1182
|
-
return throwDefaultError({
|
|
1183
|
-
output,
|
|
1184
|
-
parsedBody,
|
|
1185
|
-
errorCode
|
|
1186
|
-
});
|
|
1187
|
-
}
|
|
1188
|
-
}, "de_DeleteAssetCommandError");
|
|
1189
997
|
var de_DeleteDataSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1190
998
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1191
|
-
return
|
|
999
|
+
return de_CommandError(output, context);
|
|
1192
1000
|
}
|
|
1193
1001
|
const contents = (0, import_smithy_client.map)({
|
|
1194
1002
|
$metadata: deserializeMetadata(output)
|
|
@@ -1196,43 +1004,9 @@ var de_DeleteDataSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1196
1004
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1197
1005
|
return contents;
|
|
1198
1006
|
}, "de_DeleteDataSetCommand");
|
|
1199
|
-
var de_DeleteDataSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1200
|
-
const parsedOutput = {
|
|
1201
|
-
...output,
|
|
1202
|
-
body: await parseErrorBody(output.body, context)
|
|
1203
|
-
};
|
|
1204
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1205
|
-
switch (errorCode) {
|
|
1206
|
-
case "AccessDeniedException":
|
|
1207
|
-
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1208
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "ConflictException":
|
|
1210
|
-
case "com.amazonaws.dataexchange#ConflictException":
|
|
1211
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "InternalServerException":
|
|
1213
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1214
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "ResourceNotFoundException":
|
|
1216
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1217
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "ThrottlingException":
|
|
1219
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1220
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1221
|
-
case "ValidationException":
|
|
1222
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1223
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1224
|
-
default:
|
|
1225
|
-
const parsedBody = parsedOutput.body;
|
|
1226
|
-
return throwDefaultError({
|
|
1227
|
-
output,
|
|
1228
|
-
parsedBody,
|
|
1229
|
-
errorCode
|
|
1230
|
-
});
|
|
1231
|
-
}
|
|
1232
|
-
}, "de_DeleteDataSetCommandError");
|
|
1233
1007
|
var de_DeleteEventActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1234
1008
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1235
|
-
return
|
|
1009
|
+
return de_CommandError(output, context);
|
|
1236
1010
|
}
|
|
1237
1011
|
const contents = (0, import_smithy_client.map)({
|
|
1238
1012
|
$metadata: deserializeMetadata(output)
|
|
@@ -1240,37 +1014,9 @@ var de_DeleteEventActionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1240
1014
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1241
1015
|
return contents;
|
|
1242
1016
|
}, "de_DeleteEventActionCommand");
|
|
1243
|
-
var de_DeleteEventActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1244
|
-
const parsedOutput = {
|
|
1245
|
-
...output,
|
|
1246
|
-
body: await parseErrorBody(output.body, context)
|
|
1247
|
-
};
|
|
1248
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
|
-
switch (errorCode) {
|
|
1250
|
-
case "InternalServerException":
|
|
1251
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1252
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "ResourceNotFoundException":
|
|
1254
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1255
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "ThrottlingException":
|
|
1257
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1258
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1259
|
-
case "ValidationException":
|
|
1260
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1261
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1262
|
-
default:
|
|
1263
|
-
const parsedBody = parsedOutput.body;
|
|
1264
|
-
return throwDefaultError({
|
|
1265
|
-
output,
|
|
1266
|
-
parsedBody,
|
|
1267
|
-
errorCode
|
|
1268
|
-
});
|
|
1269
|
-
}
|
|
1270
|
-
}, "de_DeleteEventActionCommandError");
|
|
1271
1017
|
var de_DeleteRevisionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1272
1018
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1273
|
-
return
|
|
1019
|
+
return de_CommandError(output, context);
|
|
1274
1020
|
}
|
|
1275
1021
|
const contents = (0, import_smithy_client.map)({
|
|
1276
1022
|
$metadata: deserializeMetadata(output)
|
|
@@ -1278,43 +1024,9 @@ var de_DeleteRevisionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1278
1024
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1279
1025
|
return contents;
|
|
1280
1026
|
}, "de_DeleteRevisionCommand");
|
|
1281
|
-
var de_DeleteRevisionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1282
|
-
const parsedOutput = {
|
|
1283
|
-
...output,
|
|
1284
|
-
body: await parseErrorBody(output.body, context)
|
|
1285
|
-
};
|
|
1286
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1287
|
-
switch (errorCode) {
|
|
1288
|
-
case "AccessDeniedException":
|
|
1289
|
-
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1290
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1291
|
-
case "ConflictException":
|
|
1292
|
-
case "com.amazonaws.dataexchange#ConflictException":
|
|
1293
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1294
|
-
case "InternalServerException":
|
|
1295
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1296
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1297
|
-
case "ResourceNotFoundException":
|
|
1298
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1299
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1300
|
-
case "ThrottlingException":
|
|
1301
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1302
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1303
|
-
case "ValidationException":
|
|
1304
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1305
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1306
|
-
default:
|
|
1307
|
-
const parsedBody = parsedOutput.body;
|
|
1308
|
-
return throwDefaultError({
|
|
1309
|
-
output,
|
|
1310
|
-
parsedBody,
|
|
1311
|
-
errorCode
|
|
1312
|
-
});
|
|
1313
|
-
}
|
|
1314
|
-
}, "de_DeleteRevisionCommandError");
|
|
1315
1027
|
var de_GetAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1316
1028
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1317
|
-
return
|
|
1029
|
+
return de_CommandError(output, context);
|
|
1318
1030
|
}
|
|
1319
1031
|
const contents = (0, import_smithy_client.map)({
|
|
1320
1032
|
$metadata: deserializeMetadata(output)
|
|
@@ -1327,45 +1039,17 @@ var de_GetAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1327
1039
|
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
1328
1040
|
DataSetId: import_smithy_client.expectString,
|
|
1329
1041
|
Id: import_smithy_client.expectString,
|
|
1330
|
-
Name: import_smithy_client.expectString,
|
|
1331
|
-
RevisionId: import_smithy_client.expectString,
|
|
1332
|
-
SourceId: import_smithy_client.expectString,
|
|
1333
|
-
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1334
|
-
});
|
|
1335
|
-
Object.assign(contents, doc);
|
|
1336
|
-
return contents;
|
|
1337
|
-
}, "de_GetAssetCommand");
|
|
1338
|
-
var de_GetAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1339
|
-
const parsedOutput = {
|
|
1340
|
-
...output,
|
|
1341
|
-
body: await parseErrorBody(output.body, context)
|
|
1342
|
-
};
|
|
1343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1344
|
-
switch (errorCode) {
|
|
1345
|
-
case "InternalServerException":
|
|
1346
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1347
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "ResourceNotFoundException":
|
|
1349
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1350
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "ThrottlingException":
|
|
1352
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1353
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1354
|
-
case "ValidationException":
|
|
1355
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1356
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1357
|
-
default:
|
|
1358
|
-
const parsedBody = parsedOutput.body;
|
|
1359
|
-
return throwDefaultError({
|
|
1360
|
-
output,
|
|
1361
|
-
parsedBody,
|
|
1362
|
-
errorCode
|
|
1363
|
-
});
|
|
1364
|
-
}
|
|
1365
|
-
}, "de_GetAssetCommandError");
|
|
1042
|
+
Name: import_smithy_client.expectString,
|
|
1043
|
+
RevisionId: import_smithy_client.expectString,
|
|
1044
|
+
SourceId: import_smithy_client.expectString,
|
|
1045
|
+
UpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
1046
|
+
});
|
|
1047
|
+
Object.assign(contents, doc);
|
|
1048
|
+
return contents;
|
|
1049
|
+
}, "de_GetAssetCommand");
|
|
1366
1050
|
var de_GetDataSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1367
1051
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1368
|
-
return
|
|
1052
|
+
return de_CommandError(output, context);
|
|
1369
1053
|
}
|
|
1370
1054
|
const contents = (0, import_smithy_client.map)({
|
|
1371
1055
|
$metadata: deserializeMetadata(output)
|
|
@@ -1387,37 +1071,9 @@ var de_GetDataSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1387
1071
|
Object.assign(contents, doc);
|
|
1388
1072
|
return contents;
|
|
1389
1073
|
}, "de_GetDataSetCommand");
|
|
1390
|
-
var de_GetDataSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1391
|
-
const parsedOutput = {
|
|
1392
|
-
...output,
|
|
1393
|
-
body: await parseErrorBody(output.body, context)
|
|
1394
|
-
};
|
|
1395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1396
|
-
switch (errorCode) {
|
|
1397
|
-
case "InternalServerException":
|
|
1398
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1399
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1400
|
-
case "ResourceNotFoundException":
|
|
1401
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1402
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1403
|
-
case "ThrottlingException":
|
|
1404
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1405
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1406
|
-
case "ValidationException":
|
|
1407
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1408
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1409
|
-
default:
|
|
1410
|
-
const parsedBody = parsedOutput.body;
|
|
1411
|
-
return throwDefaultError({
|
|
1412
|
-
output,
|
|
1413
|
-
parsedBody,
|
|
1414
|
-
errorCode
|
|
1415
|
-
});
|
|
1416
|
-
}
|
|
1417
|
-
}, "de_GetDataSetCommandError");
|
|
1418
1074
|
var de_GetEventActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1419
1075
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1420
|
-
return
|
|
1076
|
+
return de_CommandError(output, context);
|
|
1421
1077
|
}
|
|
1422
1078
|
const contents = (0, import_smithy_client.map)({
|
|
1423
1079
|
$metadata: deserializeMetadata(output)
|
|
@@ -1434,37 +1090,9 @@ var de_GetEventActionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1434
1090
|
Object.assign(contents, doc);
|
|
1435
1091
|
return contents;
|
|
1436
1092
|
}, "de_GetEventActionCommand");
|
|
1437
|
-
var de_GetEventActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1438
|
-
const parsedOutput = {
|
|
1439
|
-
...output,
|
|
1440
|
-
body: await parseErrorBody(output.body, context)
|
|
1441
|
-
};
|
|
1442
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1443
|
-
switch (errorCode) {
|
|
1444
|
-
case "InternalServerException":
|
|
1445
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1446
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1447
|
-
case "ResourceNotFoundException":
|
|
1448
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1449
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "ThrottlingException":
|
|
1451
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1452
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "ValidationException":
|
|
1454
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1455
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1456
|
-
default:
|
|
1457
|
-
const parsedBody = parsedOutput.body;
|
|
1458
|
-
return throwDefaultError({
|
|
1459
|
-
output,
|
|
1460
|
-
parsedBody,
|
|
1461
|
-
errorCode
|
|
1462
|
-
});
|
|
1463
|
-
}
|
|
1464
|
-
}, "de_GetEventActionCommandError");
|
|
1465
1093
|
var de_GetJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1466
1094
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1467
|
-
return
|
|
1095
|
+
return de_CommandError(output, context);
|
|
1468
1096
|
}
|
|
1469
1097
|
const contents = (0, import_smithy_client.map)({
|
|
1470
1098
|
$metadata: deserializeMetadata(output)
|
|
@@ -1483,37 +1111,9 @@ var de_GetJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1483
1111
|
Object.assign(contents, doc);
|
|
1484
1112
|
return contents;
|
|
1485
1113
|
}, "de_GetJobCommand");
|
|
1486
|
-
var de_GetJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1487
|
-
const parsedOutput = {
|
|
1488
|
-
...output,
|
|
1489
|
-
body: await parseErrorBody(output.body, context)
|
|
1490
|
-
};
|
|
1491
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
|
-
switch (errorCode) {
|
|
1493
|
-
case "InternalServerException":
|
|
1494
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1495
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1496
|
-
case "ResourceNotFoundException":
|
|
1497
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1498
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1499
|
-
case "ThrottlingException":
|
|
1500
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1501
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1502
|
-
case "ValidationException":
|
|
1503
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1504
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1505
|
-
default:
|
|
1506
|
-
const parsedBody = parsedOutput.body;
|
|
1507
|
-
return throwDefaultError({
|
|
1508
|
-
output,
|
|
1509
|
-
parsedBody,
|
|
1510
|
-
errorCode
|
|
1511
|
-
});
|
|
1512
|
-
}
|
|
1513
|
-
}, "de_GetJobCommandError");
|
|
1514
1114
|
var de_GetRevisionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1515
1115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1516
|
-
return
|
|
1116
|
+
return de_CommandError(output, context);
|
|
1517
1117
|
}
|
|
1518
1118
|
const contents = (0, import_smithy_client.map)({
|
|
1519
1119
|
$metadata: deserializeMetadata(output)
|
|
@@ -1536,37 +1136,9 @@ var de_GetRevisionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1536
1136
|
Object.assign(contents, doc);
|
|
1537
1137
|
return contents;
|
|
1538
1138
|
}, "de_GetRevisionCommand");
|
|
1539
|
-
var de_GetRevisionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1540
|
-
const parsedOutput = {
|
|
1541
|
-
...output,
|
|
1542
|
-
body: await parseErrorBody(output.body, context)
|
|
1543
|
-
};
|
|
1544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1545
|
-
switch (errorCode) {
|
|
1546
|
-
case "InternalServerException":
|
|
1547
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1548
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1549
|
-
case "ResourceNotFoundException":
|
|
1550
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1551
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "ThrottlingException":
|
|
1553
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1554
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1555
|
-
case "ValidationException":
|
|
1556
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1557
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1558
|
-
default:
|
|
1559
|
-
const parsedBody = parsedOutput.body;
|
|
1560
|
-
return throwDefaultError({
|
|
1561
|
-
output,
|
|
1562
|
-
parsedBody,
|
|
1563
|
-
errorCode
|
|
1564
|
-
});
|
|
1565
|
-
}
|
|
1566
|
-
}, "de_GetRevisionCommandError");
|
|
1567
1139
|
var de_ListDataSetRevisionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1568
1140
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1569
|
-
return
|
|
1141
|
+
return de_CommandError(output, context);
|
|
1570
1142
|
}
|
|
1571
1143
|
const contents = (0, import_smithy_client.map)({
|
|
1572
1144
|
$metadata: deserializeMetadata(output)
|
|
@@ -1579,37 +1151,9 @@ var de_ListDataSetRevisionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1579
1151
|
Object.assign(contents, doc);
|
|
1580
1152
|
return contents;
|
|
1581
1153
|
}, "de_ListDataSetRevisionsCommand");
|
|
1582
|
-
var de_ListDataSetRevisionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1583
|
-
const parsedOutput = {
|
|
1584
|
-
...output,
|
|
1585
|
-
body: await parseErrorBody(output.body, context)
|
|
1586
|
-
};
|
|
1587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1588
|
-
switch (errorCode) {
|
|
1589
|
-
case "InternalServerException":
|
|
1590
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1591
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "ResourceNotFoundException":
|
|
1593
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1594
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "ThrottlingException":
|
|
1596
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1597
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "ValidationException":
|
|
1599
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1600
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1601
|
-
default:
|
|
1602
|
-
const parsedBody = parsedOutput.body;
|
|
1603
|
-
return throwDefaultError({
|
|
1604
|
-
output,
|
|
1605
|
-
parsedBody,
|
|
1606
|
-
errorCode
|
|
1607
|
-
});
|
|
1608
|
-
}
|
|
1609
|
-
}, "de_ListDataSetRevisionsCommandError");
|
|
1610
1154
|
var de_ListDataSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1611
1155
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1612
|
-
return
|
|
1156
|
+
return de_CommandError(output, context);
|
|
1613
1157
|
}
|
|
1614
1158
|
const contents = (0, import_smithy_client.map)({
|
|
1615
1159
|
$metadata: deserializeMetadata(output)
|
|
@@ -1622,37 +1166,9 @@ var de_ListDataSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1622
1166
|
Object.assign(contents, doc);
|
|
1623
1167
|
return contents;
|
|
1624
1168
|
}, "de_ListDataSetsCommand");
|
|
1625
|
-
var de_ListDataSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1626
|
-
const parsedOutput = {
|
|
1627
|
-
...output,
|
|
1628
|
-
body: await parseErrorBody(output.body, context)
|
|
1629
|
-
};
|
|
1630
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
|
-
switch (errorCode) {
|
|
1632
|
-
case "InternalServerException":
|
|
1633
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1634
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1635
|
-
case "ResourceNotFoundException":
|
|
1636
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1637
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1638
|
-
case "ThrottlingException":
|
|
1639
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1640
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1641
|
-
case "ValidationException":
|
|
1642
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1643
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1644
|
-
default:
|
|
1645
|
-
const parsedBody = parsedOutput.body;
|
|
1646
|
-
return throwDefaultError({
|
|
1647
|
-
output,
|
|
1648
|
-
parsedBody,
|
|
1649
|
-
errorCode
|
|
1650
|
-
});
|
|
1651
|
-
}
|
|
1652
|
-
}, "de_ListDataSetsCommandError");
|
|
1653
1169
|
var de_ListEventActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1654
1170
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1655
|
-
return
|
|
1171
|
+
return de_CommandError(output, context);
|
|
1656
1172
|
}
|
|
1657
1173
|
const contents = (0, import_smithy_client.map)({
|
|
1658
1174
|
$metadata: deserializeMetadata(output)
|
|
@@ -1665,37 +1181,9 @@ var de_ListEventActionsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1665
1181
|
Object.assign(contents, doc);
|
|
1666
1182
|
return contents;
|
|
1667
1183
|
}, "de_ListEventActionsCommand");
|
|
1668
|
-
var de_ListEventActionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1669
|
-
const parsedOutput = {
|
|
1670
|
-
...output,
|
|
1671
|
-
body: await parseErrorBody(output.body, context)
|
|
1672
|
-
};
|
|
1673
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
|
-
switch (errorCode) {
|
|
1675
|
-
case "InternalServerException":
|
|
1676
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1677
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1678
|
-
case "ResourceNotFoundException":
|
|
1679
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1680
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1681
|
-
case "ThrottlingException":
|
|
1682
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1683
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1684
|
-
case "ValidationException":
|
|
1685
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1686
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1687
|
-
default:
|
|
1688
|
-
const parsedBody = parsedOutput.body;
|
|
1689
|
-
return throwDefaultError({
|
|
1690
|
-
output,
|
|
1691
|
-
parsedBody,
|
|
1692
|
-
errorCode
|
|
1693
|
-
});
|
|
1694
|
-
}
|
|
1695
|
-
}, "de_ListEventActionsCommandError");
|
|
1696
1184
|
var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1697
1185
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1698
|
-
return
|
|
1186
|
+
return de_CommandError(output, context);
|
|
1699
1187
|
}
|
|
1700
1188
|
const contents = (0, import_smithy_client.map)({
|
|
1701
1189
|
$metadata: deserializeMetadata(output)
|
|
@@ -1707,81 +1195,25 @@ var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1707
1195
|
});
|
|
1708
1196
|
Object.assign(contents, doc);
|
|
1709
1197
|
return contents;
|
|
1710
|
-
}, "de_ListJobsCommand");
|
|
1711
|
-
var
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
body: await parseErrorBody(output.body, context)
|
|
1715
|
-
};
|
|
1716
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1717
|
-
switch (errorCode) {
|
|
1718
|
-
case "InternalServerException":
|
|
1719
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1720
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1721
|
-
case "ResourceNotFoundException":
|
|
1722
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1723
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1724
|
-
case "ThrottlingException":
|
|
1725
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1726
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1727
|
-
case "ValidationException":
|
|
1728
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1729
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1730
|
-
default:
|
|
1731
|
-
const parsedBody = parsedOutput.body;
|
|
1732
|
-
return throwDefaultError({
|
|
1733
|
-
output,
|
|
1734
|
-
parsedBody,
|
|
1735
|
-
errorCode
|
|
1736
|
-
});
|
|
1737
|
-
}
|
|
1738
|
-
}, "de_ListJobsCommandError");
|
|
1739
|
-
var de_ListRevisionAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1740
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1741
|
-
return de_ListRevisionAssetsCommandError(output, context);
|
|
1742
|
-
}
|
|
1743
|
-
const contents = (0, import_smithy_client.map)({
|
|
1744
|
-
$metadata: deserializeMetadata(output)
|
|
1745
|
-
});
|
|
1746
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1747
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1748
|
-
Assets: (_) => de_ListOfAssetEntry(_, context),
|
|
1749
|
-
NextToken: import_smithy_client.expectString
|
|
1750
|
-
});
|
|
1751
|
-
Object.assign(contents, doc);
|
|
1752
|
-
return contents;
|
|
1753
|
-
}, "de_ListRevisionAssetsCommand");
|
|
1754
|
-
var de_ListRevisionAssetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1755
|
-
const parsedOutput = {
|
|
1756
|
-
...output,
|
|
1757
|
-
body: await parseErrorBody(output.body, context)
|
|
1758
|
-
};
|
|
1759
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1760
|
-
switch (errorCode) {
|
|
1761
|
-
case "InternalServerException":
|
|
1762
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1763
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1764
|
-
case "ResourceNotFoundException":
|
|
1765
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1766
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1767
|
-
case "ThrottlingException":
|
|
1768
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1769
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1770
|
-
case "ValidationException":
|
|
1771
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1772
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1773
|
-
default:
|
|
1774
|
-
const parsedBody = parsedOutput.body;
|
|
1775
|
-
return throwDefaultError({
|
|
1776
|
-
output,
|
|
1777
|
-
parsedBody,
|
|
1778
|
-
errorCode
|
|
1779
|
-
});
|
|
1198
|
+
}, "de_ListJobsCommand");
|
|
1199
|
+
var de_ListRevisionAssetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1200
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1201
|
+
return de_CommandError(output, context);
|
|
1780
1202
|
}
|
|
1781
|
-
|
|
1203
|
+
const contents = (0, import_smithy_client.map)({
|
|
1204
|
+
$metadata: deserializeMetadata(output)
|
|
1205
|
+
});
|
|
1206
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1207
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1208
|
+
Assets: (_) => de_ListOfAssetEntry(_, context),
|
|
1209
|
+
NextToken: import_smithy_client.expectString
|
|
1210
|
+
});
|
|
1211
|
+
Object.assign(contents, doc);
|
|
1212
|
+
return contents;
|
|
1213
|
+
}, "de_ListRevisionAssetsCommand");
|
|
1782
1214
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1783
1215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1784
|
-
return
|
|
1216
|
+
return de_CommandError(output, context);
|
|
1785
1217
|
}
|
|
1786
1218
|
const contents = (0, import_smithy_client.map)({
|
|
1787
1219
|
$metadata: deserializeMetadata(output)
|
|
@@ -1793,22 +1225,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1793
1225
|
Object.assign(contents, doc);
|
|
1794
1226
|
return contents;
|
|
1795
1227
|
}, "de_ListTagsForResourceCommand");
|
|
1796
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1797
|
-
const parsedOutput = {
|
|
1798
|
-
...output,
|
|
1799
|
-
body: await parseErrorBody(output.body, context)
|
|
1800
|
-
};
|
|
1801
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1802
|
-
const parsedBody = parsedOutput.body;
|
|
1803
|
-
return throwDefaultError({
|
|
1804
|
-
output,
|
|
1805
|
-
parsedBody,
|
|
1806
|
-
errorCode
|
|
1807
|
-
});
|
|
1808
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1809
1228
|
var de_RevokeRevisionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1810
1229
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1811
|
-
return
|
|
1230
|
+
return de_CommandError(output, context);
|
|
1812
1231
|
}
|
|
1813
1232
|
const contents = (0, import_smithy_client.map)({
|
|
1814
1233
|
$metadata: deserializeMetadata(output)
|
|
@@ -1830,43 +1249,9 @@ var de_RevokeRevisionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1830
1249
|
Object.assign(contents, doc);
|
|
1831
1250
|
return contents;
|
|
1832
1251
|
}, "de_RevokeRevisionCommand");
|
|
1833
|
-
var de_RevokeRevisionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1834
|
-
const parsedOutput = {
|
|
1835
|
-
...output,
|
|
1836
|
-
body: await parseErrorBody(output.body, context)
|
|
1837
|
-
};
|
|
1838
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
|
-
switch (errorCode) {
|
|
1840
|
-
case "AccessDeniedException":
|
|
1841
|
-
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1842
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1843
|
-
case "ConflictException":
|
|
1844
|
-
case "com.amazonaws.dataexchange#ConflictException":
|
|
1845
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1846
|
-
case "InternalServerException":
|
|
1847
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1848
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1849
|
-
case "ResourceNotFoundException":
|
|
1850
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1851
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1852
|
-
case "ThrottlingException":
|
|
1853
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1854
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1855
|
-
case "ValidationException":
|
|
1856
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1857
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1858
|
-
default:
|
|
1859
|
-
const parsedBody = parsedOutput.body;
|
|
1860
|
-
return throwDefaultError({
|
|
1861
|
-
output,
|
|
1862
|
-
parsedBody,
|
|
1863
|
-
errorCode
|
|
1864
|
-
});
|
|
1865
|
-
}
|
|
1866
|
-
}, "de_RevokeRevisionCommandError");
|
|
1867
1252
|
var de_SendApiAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1868
1253
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1869
|
-
return
|
|
1254
|
+
return de_CommandError(output, context);
|
|
1870
1255
|
}
|
|
1871
1256
|
const contents = (0, import_smithy_client.map)({
|
|
1872
1257
|
$metadata: deserializeMetadata(output),
|
|
@@ -1882,40 +1267,9 @@ var de_SendApiAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1882
1267
|
contents.Body = (0, import_smithy_client.expectString)(data);
|
|
1883
1268
|
return contents;
|
|
1884
1269
|
}, "de_SendApiAssetCommand");
|
|
1885
|
-
var de_SendApiAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1886
|
-
const parsedOutput = {
|
|
1887
|
-
...output,
|
|
1888
|
-
body: await parseErrorBody(output.body, context)
|
|
1889
|
-
};
|
|
1890
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1891
|
-
switch (errorCode) {
|
|
1892
|
-
case "AccessDeniedException":
|
|
1893
|
-
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1894
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1895
|
-
case "InternalServerException":
|
|
1896
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1897
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1898
|
-
case "ResourceNotFoundException":
|
|
1899
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1900
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1901
|
-
case "ThrottlingException":
|
|
1902
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1903
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1904
|
-
case "ValidationException":
|
|
1905
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1906
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1907
|
-
default:
|
|
1908
|
-
const parsedBody = parsedOutput.body;
|
|
1909
|
-
return throwDefaultError({
|
|
1910
|
-
output,
|
|
1911
|
-
parsedBody,
|
|
1912
|
-
errorCode
|
|
1913
|
-
});
|
|
1914
|
-
}
|
|
1915
|
-
}, "de_SendApiAssetCommandError");
|
|
1916
1270
|
var de_SendDataSetNotificationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1917
1271
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1918
|
-
return
|
|
1272
|
+
return de_CommandError(output, context);
|
|
1919
1273
|
}
|
|
1920
1274
|
const contents = (0, import_smithy_client.map)({
|
|
1921
1275
|
$metadata: deserializeMetadata(output)
|
|
@@ -1923,43 +1277,9 @@ var de_SendDataSetNotificationCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1923
1277
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1924
1278
|
return contents;
|
|
1925
1279
|
}, "de_SendDataSetNotificationCommand");
|
|
1926
|
-
var de_SendDataSetNotificationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1927
|
-
const parsedOutput = {
|
|
1928
|
-
...output,
|
|
1929
|
-
body: await parseErrorBody(output.body, context)
|
|
1930
|
-
};
|
|
1931
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1932
|
-
switch (errorCode) {
|
|
1933
|
-
case "AccessDeniedException":
|
|
1934
|
-
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1935
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1936
|
-
case "ConflictException":
|
|
1937
|
-
case "com.amazonaws.dataexchange#ConflictException":
|
|
1938
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1939
|
-
case "InternalServerException":
|
|
1940
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1941
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1942
|
-
case "ResourceNotFoundException":
|
|
1943
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1944
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1945
|
-
case "ThrottlingException":
|
|
1946
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1947
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1948
|
-
case "ValidationException":
|
|
1949
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1950
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1951
|
-
default:
|
|
1952
|
-
const parsedBody = parsedOutput.body;
|
|
1953
|
-
return throwDefaultError({
|
|
1954
|
-
output,
|
|
1955
|
-
parsedBody,
|
|
1956
|
-
errorCode
|
|
1957
|
-
});
|
|
1958
|
-
}
|
|
1959
|
-
}, "de_SendDataSetNotificationCommandError");
|
|
1960
1280
|
var de_StartJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1961
1281
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1962
|
-
return
|
|
1282
|
+
return de_CommandError(output, context);
|
|
1963
1283
|
}
|
|
1964
1284
|
const contents = (0, import_smithy_client.map)({
|
|
1965
1285
|
$metadata: deserializeMetadata(output)
|
|
@@ -1967,43 +1287,9 @@ var de_StartJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1967
1287
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1968
1288
|
return contents;
|
|
1969
1289
|
}, "de_StartJobCommand");
|
|
1970
|
-
var de_StartJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1971
|
-
const parsedOutput = {
|
|
1972
|
-
...output,
|
|
1973
|
-
body: await parseErrorBody(output.body, context)
|
|
1974
|
-
};
|
|
1975
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1976
|
-
switch (errorCode) {
|
|
1977
|
-
case "AccessDeniedException":
|
|
1978
|
-
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1979
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1980
|
-
case "ConflictException":
|
|
1981
|
-
case "com.amazonaws.dataexchange#ConflictException":
|
|
1982
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1983
|
-
case "InternalServerException":
|
|
1984
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1985
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1986
|
-
case "ResourceNotFoundException":
|
|
1987
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1988
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1989
|
-
case "ThrottlingException":
|
|
1990
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1991
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "ValidationException":
|
|
1993
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
1994
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1995
|
-
default:
|
|
1996
|
-
const parsedBody = parsedOutput.body;
|
|
1997
|
-
return throwDefaultError({
|
|
1998
|
-
output,
|
|
1999
|
-
parsedBody,
|
|
2000
|
-
errorCode
|
|
2001
|
-
});
|
|
2002
|
-
}
|
|
2003
|
-
}, "de_StartJobCommandError");
|
|
2004
1290
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2005
1291
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2006
|
-
return
|
|
1292
|
+
return de_CommandError(output, context);
|
|
2007
1293
|
}
|
|
2008
1294
|
const contents = (0, import_smithy_client.map)({
|
|
2009
1295
|
$metadata: deserializeMetadata(output)
|
|
@@ -2011,22 +1297,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2011
1297
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2012
1298
|
return contents;
|
|
2013
1299
|
}, "de_TagResourceCommand");
|
|
2014
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2015
|
-
const parsedOutput = {
|
|
2016
|
-
...output,
|
|
2017
|
-
body: await parseErrorBody(output.body, context)
|
|
2018
|
-
};
|
|
2019
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2020
|
-
const parsedBody = parsedOutput.body;
|
|
2021
|
-
return throwDefaultError({
|
|
2022
|
-
output,
|
|
2023
|
-
parsedBody,
|
|
2024
|
-
errorCode
|
|
2025
|
-
});
|
|
2026
|
-
}, "de_TagResourceCommandError");
|
|
2027
1300
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2028
1301
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2029
|
-
return
|
|
1302
|
+
return de_CommandError(output, context);
|
|
2030
1303
|
}
|
|
2031
1304
|
const contents = (0, import_smithy_client.map)({
|
|
2032
1305
|
$metadata: deserializeMetadata(output)
|
|
@@ -2034,22 +1307,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2034
1307
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2035
1308
|
return contents;
|
|
2036
1309
|
}, "de_UntagResourceCommand");
|
|
2037
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2038
|
-
const parsedOutput = {
|
|
2039
|
-
...output,
|
|
2040
|
-
body: await parseErrorBody(output.body, context)
|
|
2041
|
-
};
|
|
2042
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2043
|
-
const parsedBody = parsedOutput.body;
|
|
2044
|
-
return throwDefaultError({
|
|
2045
|
-
output,
|
|
2046
|
-
parsedBody,
|
|
2047
|
-
errorCode
|
|
2048
|
-
});
|
|
2049
|
-
}, "de_UntagResourceCommandError");
|
|
2050
1310
|
var de_UpdateAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2051
1311
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2052
|
-
return
|
|
1312
|
+
return de_CommandError(output, context);
|
|
2053
1313
|
}
|
|
2054
1314
|
const contents = (0, import_smithy_client.map)({
|
|
2055
1315
|
$metadata: deserializeMetadata(output)
|
|
@@ -2070,43 +1330,9 @@ var de_UpdateAssetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2070
1330
|
Object.assign(contents, doc);
|
|
2071
1331
|
return contents;
|
|
2072
1332
|
}, "de_UpdateAssetCommand");
|
|
2073
|
-
var de_UpdateAssetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2074
|
-
const parsedOutput = {
|
|
2075
|
-
...output,
|
|
2076
|
-
body: await parseErrorBody(output.body, context)
|
|
2077
|
-
};
|
|
2078
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2079
|
-
switch (errorCode) {
|
|
2080
|
-
case "AccessDeniedException":
|
|
2081
|
-
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
2082
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2083
|
-
case "ConflictException":
|
|
2084
|
-
case "com.amazonaws.dataexchange#ConflictException":
|
|
2085
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2086
|
-
case "InternalServerException":
|
|
2087
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2088
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2089
|
-
case "ResourceNotFoundException":
|
|
2090
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2091
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2092
|
-
case "ThrottlingException":
|
|
2093
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2094
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2095
|
-
case "ValidationException":
|
|
2096
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
2097
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2098
|
-
default:
|
|
2099
|
-
const parsedBody = parsedOutput.body;
|
|
2100
|
-
return throwDefaultError({
|
|
2101
|
-
output,
|
|
2102
|
-
parsedBody,
|
|
2103
|
-
errorCode
|
|
2104
|
-
});
|
|
2105
|
-
}
|
|
2106
|
-
}, "de_UpdateAssetCommandError");
|
|
2107
1333
|
var de_UpdateDataSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2108
1334
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2109
|
-
return
|
|
1335
|
+
return de_CommandError(output, context);
|
|
2110
1336
|
}
|
|
2111
1337
|
const contents = (0, import_smithy_client.map)({
|
|
2112
1338
|
$metadata: deserializeMetadata(output)
|
|
@@ -2127,40 +1353,9 @@ var de_UpdateDataSetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2127
1353
|
Object.assign(contents, doc);
|
|
2128
1354
|
return contents;
|
|
2129
1355
|
}, "de_UpdateDataSetCommand");
|
|
2130
|
-
var de_UpdateDataSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2131
|
-
const parsedOutput = {
|
|
2132
|
-
...output,
|
|
2133
|
-
body: await parseErrorBody(output.body, context)
|
|
2134
|
-
};
|
|
2135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2136
|
-
switch (errorCode) {
|
|
2137
|
-
case "AccessDeniedException":
|
|
2138
|
-
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
2139
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2140
|
-
case "InternalServerException":
|
|
2141
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2142
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "ResourceNotFoundException":
|
|
2144
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2145
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2146
|
-
case "ThrottlingException":
|
|
2147
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2148
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2149
|
-
case "ValidationException":
|
|
2150
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
2151
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2152
|
-
default:
|
|
2153
|
-
const parsedBody = parsedOutput.body;
|
|
2154
|
-
return throwDefaultError({
|
|
2155
|
-
output,
|
|
2156
|
-
parsedBody,
|
|
2157
|
-
errorCode
|
|
2158
|
-
});
|
|
2159
|
-
}
|
|
2160
|
-
}, "de_UpdateDataSetCommandError");
|
|
2161
1356
|
var de_UpdateEventActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2162
1357
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2163
|
-
return
|
|
1358
|
+
return de_CommandError(output, context);
|
|
2164
1359
|
}
|
|
2165
1360
|
const contents = (0, import_smithy_client.map)({
|
|
2166
1361
|
$metadata: deserializeMetadata(output)
|
|
@@ -2177,40 +1372,9 @@ var de_UpdateEventActionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2177
1372
|
Object.assign(contents, doc);
|
|
2178
1373
|
return contents;
|
|
2179
1374
|
}, "de_UpdateEventActionCommand");
|
|
2180
|
-
var de_UpdateEventActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2181
|
-
const parsedOutput = {
|
|
2182
|
-
...output,
|
|
2183
|
-
body: await parseErrorBody(output.body, context)
|
|
2184
|
-
};
|
|
2185
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2186
|
-
switch (errorCode) {
|
|
2187
|
-
case "AccessDeniedException":
|
|
2188
|
-
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
2189
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2190
|
-
case "InternalServerException":
|
|
2191
|
-
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2192
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2193
|
-
case "ResourceNotFoundException":
|
|
2194
|
-
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2195
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2196
|
-
case "ThrottlingException":
|
|
2197
|
-
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2198
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2199
|
-
case "ValidationException":
|
|
2200
|
-
case "com.amazonaws.dataexchange#ValidationException":
|
|
2201
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2202
|
-
default:
|
|
2203
|
-
const parsedBody = parsedOutput.body;
|
|
2204
|
-
return throwDefaultError({
|
|
2205
|
-
output,
|
|
2206
|
-
parsedBody,
|
|
2207
|
-
errorCode
|
|
2208
|
-
});
|
|
2209
|
-
}
|
|
2210
|
-
}, "de_UpdateEventActionCommandError");
|
|
2211
1375
|
var de_UpdateRevisionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2212
1376
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2213
|
-
return
|
|
1377
|
+
return de_CommandError(output, context);
|
|
2214
1378
|
}
|
|
2215
1379
|
const contents = (0, import_smithy_client.map)({
|
|
2216
1380
|
$metadata: deserializeMetadata(output)
|
|
@@ -2232,16 +1396,13 @@ var de_UpdateRevisionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2232
1396
|
Object.assign(contents, doc);
|
|
2233
1397
|
return contents;
|
|
2234
1398
|
}, "de_UpdateRevisionCommand");
|
|
2235
|
-
var
|
|
1399
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2236
1400
|
const parsedOutput = {
|
|
2237
1401
|
...output,
|
|
2238
1402
|
body: await parseErrorBody(output.body, context)
|
|
2239
1403
|
};
|
|
2240
1404
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2241
1405
|
switch (errorCode) {
|
|
2242
|
-
case "AccessDeniedException":
|
|
2243
|
-
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
2244
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2245
1406
|
case "ConflictException":
|
|
2246
1407
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
2247
1408
|
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
@@ -2257,6 +1418,12 @@ var de_UpdateRevisionCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
2257
1418
|
case "ValidationException":
|
|
2258
1419
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
2259
1420
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1421
|
+
case "AccessDeniedException":
|
|
1422
|
+
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1423
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1424
|
+
case "ServiceLimitExceededException":
|
|
1425
|
+
case "com.amazonaws.dataexchange#ServiceLimitExceededException":
|
|
1426
|
+
throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
|
|
2260
1427
|
default:
|
|
2261
1428
|
const parsedBody = parsedOutput.body;
|
|
2262
1429
|
return throwDefaultError({
|
|
@@ -2265,7 +1432,7 @@ var de_UpdateRevisionCommandError = /* @__PURE__ */ __name(async (output, contex
|
|
|
2265
1432
|
errorCode
|
|
2266
1433
|
});
|
|
2267
1434
|
}
|
|
2268
|
-
}, "
|
|
1435
|
+
}, "de_CommandError");
|
|
2269
1436
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(DataExchangeServiceException);
|
|
2270
1437
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2271
1438
|
const contents = (0, import_smithy_client.map)({});
|