@aws-sdk/client-dataexchange 3.52.0 → 3.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/DataExchangeServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +109 -2
- package/dist-cjs/protocols/Aws_restJson1.js +296 -1066
- package/dist-es/index.js +1 -0
- package/dist-es/models/DataExchangeServiceException.js +12 -0
- package/dist-es/models/models_0.js +100 -1
- package/dist-es/protocols/Aws_restJson1.js +615 -1165
- package/dist-types/DataExchangeClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/DataExchangeServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +51 -22
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/DataExchangeClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/DataExchangeServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +37 -22
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
|
@@ -4,6 +4,8 @@ exports.deserializeAws_restJson1StartJobCommand = exports.deserializeAws_restJso
|
|
|
4
4
|
exports.deserializeAws_restJson1UpdateRevisionCommand = exports.deserializeAws_restJson1UpdateEventActionCommand = exports.deserializeAws_restJson1UpdateDataSetCommand = exports.deserializeAws_restJson1UpdateAssetCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const DataExchangeServiceException_1 = require("../models/DataExchangeServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_restJson1CancelJobCommand = async (input, context) => {
|
|
8
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
9
11
|
const headers = {};
|
|
@@ -910,59 +912,28 @@ const deserializeAws_restJson1CancelJobCommandError = async (output, context) =>
|
|
|
910
912
|
switch (errorCode) {
|
|
911
913
|
case "ConflictException":
|
|
912
914
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
913
|
-
|
|
914
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
915
|
-
name: errorCode,
|
|
916
|
-
$metadata: deserializeMetadata(output),
|
|
917
|
-
};
|
|
918
|
-
break;
|
|
915
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
919
916
|
case "InternalServerException":
|
|
920
917
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
921
|
-
|
|
922
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
923
|
-
name: errorCode,
|
|
924
|
-
$metadata: deserializeMetadata(output),
|
|
925
|
-
};
|
|
926
|
-
break;
|
|
918
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
927
919
|
case "ResourceNotFoundException":
|
|
928
920
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
929
|
-
|
|
930
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
931
|
-
name: errorCode,
|
|
932
|
-
$metadata: deserializeMetadata(output),
|
|
933
|
-
};
|
|
934
|
-
break;
|
|
921
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
935
922
|
case "ThrottlingException":
|
|
936
923
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
937
|
-
|
|
938
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
939
|
-
name: errorCode,
|
|
940
|
-
$metadata: deserializeMetadata(output),
|
|
941
|
-
};
|
|
942
|
-
break;
|
|
924
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
943
925
|
case "ValidationException":
|
|
944
926
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
945
|
-
|
|
946
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
947
|
-
name: errorCode,
|
|
948
|
-
$metadata: deserializeMetadata(output),
|
|
949
|
-
};
|
|
950
|
-
break;
|
|
927
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
951
928
|
default:
|
|
952
929
|
const parsedBody = parsedOutput.body;
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
...parsedBody,
|
|
956
|
-
name: `${errorCode}`,
|
|
957
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
930
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
931
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
958
932
|
$fault: "client",
|
|
959
933
|
$metadata: deserializeMetadata(output),
|
|
960
|
-
};
|
|
934
|
+
});
|
|
935
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
961
936
|
}
|
|
962
|
-
const message = response.message || response.Message || errorCode;
|
|
963
|
-
response.message = message;
|
|
964
|
-
delete response.Message;
|
|
965
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
966
937
|
};
|
|
967
938
|
const deserializeAws_restJson1CreateDataSetCommand = async (output, context) => {
|
|
968
939
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -1030,59 +1001,28 @@ const deserializeAws_restJson1CreateDataSetCommandError = async (output, context
|
|
|
1030
1001
|
switch (errorCode) {
|
|
1031
1002
|
case "AccessDeniedException":
|
|
1032
1003
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1033
|
-
|
|
1034
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1035
|
-
name: errorCode,
|
|
1036
|
-
$metadata: deserializeMetadata(output),
|
|
1037
|
-
};
|
|
1038
|
-
break;
|
|
1004
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1039
1005
|
case "InternalServerException":
|
|
1040
1006
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1041
|
-
|
|
1042
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1043
|
-
name: errorCode,
|
|
1044
|
-
$metadata: deserializeMetadata(output),
|
|
1045
|
-
};
|
|
1046
|
-
break;
|
|
1007
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1047
1008
|
case "ServiceLimitExceededException":
|
|
1048
1009
|
case "com.amazonaws.dataexchange#ServiceLimitExceededException":
|
|
1049
|
-
|
|
1050
|
-
...(await deserializeAws_restJson1ServiceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1051
|
-
name: errorCode,
|
|
1052
|
-
$metadata: deserializeMetadata(output),
|
|
1053
|
-
};
|
|
1054
|
-
break;
|
|
1010
|
+
throw await deserializeAws_restJson1ServiceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1055
1011
|
case "ThrottlingException":
|
|
1056
1012
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1057
|
-
|
|
1058
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1059
|
-
name: errorCode,
|
|
1060
|
-
$metadata: deserializeMetadata(output),
|
|
1061
|
-
};
|
|
1062
|
-
break;
|
|
1013
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1063
1014
|
case "ValidationException":
|
|
1064
1015
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1065
|
-
|
|
1066
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1067
|
-
name: errorCode,
|
|
1068
|
-
$metadata: deserializeMetadata(output),
|
|
1069
|
-
};
|
|
1070
|
-
break;
|
|
1016
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1071
1017
|
default:
|
|
1072
1018
|
const parsedBody = parsedOutput.body;
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
...parsedBody,
|
|
1076
|
-
name: `${errorCode}`,
|
|
1077
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1019
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
1020
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1078
1021
|
$fault: "client",
|
|
1079
1022
|
$metadata: deserializeMetadata(output),
|
|
1080
|
-
};
|
|
1023
|
+
});
|
|
1024
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1081
1025
|
}
|
|
1082
|
-
const message = response.message || response.Message || errorCode;
|
|
1083
|
-
response.message = message;
|
|
1084
|
-
delete response.Message;
|
|
1085
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1086
1026
|
};
|
|
1087
1027
|
const deserializeAws_restJson1CreateEventActionCommand = async (output, context) => {
|
|
1088
1028
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -1130,59 +1070,28 @@ const deserializeAws_restJson1CreateEventActionCommandError = async (output, con
|
|
|
1130
1070
|
switch (errorCode) {
|
|
1131
1071
|
case "AccessDeniedException":
|
|
1132
1072
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1133
|
-
|
|
1134
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1135
|
-
name: errorCode,
|
|
1136
|
-
$metadata: deserializeMetadata(output),
|
|
1137
|
-
};
|
|
1138
|
-
break;
|
|
1073
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1139
1074
|
case "InternalServerException":
|
|
1140
1075
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1141
|
-
|
|
1142
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1143
|
-
name: errorCode,
|
|
1144
|
-
$metadata: deserializeMetadata(output),
|
|
1145
|
-
};
|
|
1146
|
-
break;
|
|
1076
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1147
1077
|
case "ServiceLimitExceededException":
|
|
1148
1078
|
case "com.amazonaws.dataexchange#ServiceLimitExceededException":
|
|
1149
|
-
|
|
1150
|
-
...(await deserializeAws_restJson1ServiceLimitExceededExceptionResponse(parsedOutput, context)),
|
|
1151
|
-
name: errorCode,
|
|
1152
|
-
$metadata: deserializeMetadata(output),
|
|
1153
|
-
};
|
|
1154
|
-
break;
|
|
1079
|
+
throw await deserializeAws_restJson1ServiceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1155
1080
|
case "ThrottlingException":
|
|
1156
1081
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1157
|
-
|
|
1158
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1159
|
-
name: errorCode,
|
|
1160
|
-
$metadata: deserializeMetadata(output),
|
|
1161
|
-
};
|
|
1162
|
-
break;
|
|
1082
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1163
1083
|
case "ValidationException":
|
|
1164
1084
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1165
|
-
|
|
1166
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1167
|
-
name: errorCode,
|
|
1168
|
-
$metadata: deserializeMetadata(output),
|
|
1169
|
-
};
|
|
1170
|
-
break;
|
|
1085
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1171
1086
|
default:
|
|
1172
1087
|
const parsedBody = parsedOutput.body;
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
...parsedBody,
|
|
1176
|
-
name: `${errorCode}`,
|
|
1177
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1088
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
1089
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1178
1090
|
$fault: "client",
|
|
1179
1091
|
$metadata: deserializeMetadata(output),
|
|
1180
|
-
};
|
|
1092
|
+
});
|
|
1093
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1181
1094
|
}
|
|
1182
|
-
const message = response.message || response.Message || errorCode;
|
|
1183
|
-
response.message = message;
|
|
1184
|
-
delete response.Message;
|
|
1185
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1186
1095
|
};
|
|
1187
1096
|
const deserializeAws_restJson1CreateJobCommand = async (output, context) => {
|
|
1188
1097
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -1238,59 +1147,28 @@ const deserializeAws_restJson1CreateJobCommandError = async (output, context) =>
|
|
|
1238
1147
|
switch (errorCode) {
|
|
1239
1148
|
case "AccessDeniedException":
|
|
1240
1149
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1241
|
-
|
|
1242
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1243
|
-
name: errorCode,
|
|
1244
|
-
$metadata: deserializeMetadata(output),
|
|
1245
|
-
};
|
|
1246
|
-
break;
|
|
1150
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1247
1151
|
case "InternalServerException":
|
|
1248
1152
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1249
|
-
|
|
1250
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1251
|
-
name: errorCode,
|
|
1252
|
-
$metadata: deserializeMetadata(output),
|
|
1253
|
-
};
|
|
1254
|
-
break;
|
|
1153
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1255
1154
|
case "ResourceNotFoundException":
|
|
1256
1155
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1257
|
-
|
|
1258
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1259
|
-
name: errorCode,
|
|
1260
|
-
$metadata: deserializeMetadata(output),
|
|
1261
|
-
};
|
|
1262
|
-
break;
|
|
1156
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1263
1157
|
case "ThrottlingException":
|
|
1264
1158
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1265
|
-
|
|
1266
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1267
|
-
name: errorCode,
|
|
1268
|
-
$metadata: deserializeMetadata(output),
|
|
1269
|
-
};
|
|
1270
|
-
break;
|
|
1159
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1271
1160
|
case "ValidationException":
|
|
1272
1161
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1273
|
-
|
|
1274
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1275
|
-
name: errorCode,
|
|
1276
|
-
$metadata: deserializeMetadata(output),
|
|
1277
|
-
};
|
|
1278
|
-
break;
|
|
1162
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1279
1163
|
default:
|
|
1280
1164
|
const parsedBody = parsedOutput.body;
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
...parsedBody,
|
|
1284
|
-
name: `${errorCode}`,
|
|
1285
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1165
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
1166
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1286
1167
|
$fault: "client",
|
|
1287
1168
|
$metadata: deserializeMetadata(output),
|
|
1288
|
-
};
|
|
1169
|
+
});
|
|
1170
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1289
1171
|
}
|
|
1290
|
-
const message = response.message || response.Message || errorCode;
|
|
1291
|
-
response.message = message;
|
|
1292
|
-
delete response.Message;
|
|
1293
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1294
1172
|
};
|
|
1295
1173
|
const deserializeAws_restJson1CreateRevisionCommand = async (output, context) => {
|
|
1296
1174
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
@@ -1350,59 +1228,28 @@ const deserializeAws_restJson1CreateRevisionCommandError = async (output, contex
|
|
|
1350
1228
|
switch (errorCode) {
|
|
1351
1229
|
case "AccessDeniedException":
|
|
1352
1230
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1353
|
-
|
|
1354
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1355
|
-
name: errorCode,
|
|
1356
|
-
$metadata: deserializeMetadata(output),
|
|
1357
|
-
};
|
|
1358
|
-
break;
|
|
1231
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1359
1232
|
case "InternalServerException":
|
|
1360
1233
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1361
|
-
|
|
1362
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1363
|
-
name: errorCode,
|
|
1364
|
-
$metadata: deserializeMetadata(output),
|
|
1365
|
-
};
|
|
1366
|
-
break;
|
|
1234
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1367
1235
|
case "ResourceNotFoundException":
|
|
1368
1236
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1369
|
-
|
|
1370
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1371
|
-
name: errorCode,
|
|
1372
|
-
$metadata: deserializeMetadata(output),
|
|
1373
|
-
};
|
|
1374
|
-
break;
|
|
1237
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1375
1238
|
case "ThrottlingException":
|
|
1376
1239
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1377
|
-
|
|
1378
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1379
|
-
name: errorCode,
|
|
1380
|
-
$metadata: deserializeMetadata(output),
|
|
1381
|
-
};
|
|
1382
|
-
break;
|
|
1240
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1383
1241
|
case "ValidationException":
|
|
1384
1242
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1385
|
-
|
|
1386
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1387
|
-
name: errorCode,
|
|
1388
|
-
$metadata: deserializeMetadata(output),
|
|
1389
|
-
};
|
|
1390
|
-
break;
|
|
1243
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1391
1244
|
default:
|
|
1392
1245
|
const parsedBody = parsedOutput.body;
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
...parsedBody,
|
|
1396
|
-
name: `${errorCode}`,
|
|
1397
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1246
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
1247
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1398
1248
|
$fault: "client",
|
|
1399
1249
|
$metadata: deserializeMetadata(output),
|
|
1400
|
-
};
|
|
1250
|
+
});
|
|
1251
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1401
1252
|
}
|
|
1402
|
-
const message = response.message || response.Message || errorCode;
|
|
1403
|
-
response.message = message;
|
|
1404
|
-
delete response.Message;
|
|
1405
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1406
1253
|
};
|
|
1407
1254
|
const deserializeAws_restJson1DeleteAssetCommand = async (output, context) => {
|
|
1408
1255
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1426,67 +1273,31 @@ const deserializeAws_restJson1DeleteAssetCommandError = async (output, context)
|
|
|
1426
1273
|
switch (errorCode) {
|
|
1427
1274
|
case "AccessDeniedException":
|
|
1428
1275
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1429
|
-
|
|
1430
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1431
|
-
name: errorCode,
|
|
1432
|
-
$metadata: deserializeMetadata(output),
|
|
1433
|
-
};
|
|
1434
|
-
break;
|
|
1276
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1435
1277
|
case "ConflictException":
|
|
1436
1278
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
1437
|
-
|
|
1438
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1439
|
-
name: errorCode,
|
|
1440
|
-
$metadata: deserializeMetadata(output),
|
|
1441
|
-
};
|
|
1442
|
-
break;
|
|
1279
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1443
1280
|
case "InternalServerException":
|
|
1444
1281
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1445
|
-
|
|
1446
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1447
|
-
name: errorCode,
|
|
1448
|
-
$metadata: deserializeMetadata(output),
|
|
1449
|
-
};
|
|
1450
|
-
break;
|
|
1282
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1451
1283
|
case "ResourceNotFoundException":
|
|
1452
1284
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1453
|
-
|
|
1454
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1455
|
-
name: errorCode,
|
|
1456
|
-
$metadata: deserializeMetadata(output),
|
|
1457
|
-
};
|
|
1458
|
-
break;
|
|
1285
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1459
1286
|
case "ThrottlingException":
|
|
1460
1287
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1461
|
-
|
|
1462
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1463
|
-
name: errorCode,
|
|
1464
|
-
$metadata: deserializeMetadata(output),
|
|
1465
|
-
};
|
|
1466
|
-
break;
|
|
1288
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1467
1289
|
case "ValidationException":
|
|
1468
1290
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1469
|
-
|
|
1470
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1471
|
-
name: errorCode,
|
|
1472
|
-
$metadata: deserializeMetadata(output),
|
|
1473
|
-
};
|
|
1474
|
-
break;
|
|
1291
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1475
1292
|
default:
|
|
1476
1293
|
const parsedBody = parsedOutput.body;
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
...parsedBody,
|
|
1480
|
-
name: `${errorCode}`,
|
|
1481
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1294
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
1295
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1482
1296
|
$fault: "client",
|
|
1483
1297
|
$metadata: deserializeMetadata(output),
|
|
1484
|
-
};
|
|
1298
|
+
});
|
|
1299
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1485
1300
|
}
|
|
1486
|
-
const message = response.message || response.Message || errorCode;
|
|
1487
|
-
response.message = message;
|
|
1488
|
-
delete response.Message;
|
|
1489
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1490
1301
|
};
|
|
1491
1302
|
const deserializeAws_restJson1DeleteDataSetCommand = async (output, context) => {
|
|
1492
1303
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1510,67 +1321,31 @@ const deserializeAws_restJson1DeleteDataSetCommandError = async (output, context
|
|
|
1510
1321
|
switch (errorCode) {
|
|
1511
1322
|
case "AccessDeniedException":
|
|
1512
1323
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1513
|
-
|
|
1514
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1515
|
-
name: errorCode,
|
|
1516
|
-
$metadata: deserializeMetadata(output),
|
|
1517
|
-
};
|
|
1518
|
-
break;
|
|
1324
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1519
1325
|
case "ConflictException":
|
|
1520
1326
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
1521
|
-
|
|
1522
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1523
|
-
name: errorCode,
|
|
1524
|
-
$metadata: deserializeMetadata(output),
|
|
1525
|
-
};
|
|
1526
|
-
break;
|
|
1327
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1527
1328
|
case "InternalServerException":
|
|
1528
1329
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1529
|
-
|
|
1530
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1531
|
-
name: errorCode,
|
|
1532
|
-
$metadata: deserializeMetadata(output),
|
|
1533
|
-
};
|
|
1534
|
-
break;
|
|
1330
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1535
1331
|
case "ResourceNotFoundException":
|
|
1536
1332
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1537
|
-
|
|
1538
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1539
|
-
name: errorCode,
|
|
1540
|
-
$metadata: deserializeMetadata(output),
|
|
1541
|
-
};
|
|
1542
|
-
break;
|
|
1333
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1543
1334
|
case "ThrottlingException":
|
|
1544
1335
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1545
|
-
|
|
1546
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1547
|
-
name: errorCode,
|
|
1548
|
-
$metadata: deserializeMetadata(output),
|
|
1549
|
-
};
|
|
1550
|
-
break;
|
|
1336
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1551
1337
|
case "ValidationException":
|
|
1552
1338
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1553
|
-
|
|
1554
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1555
|
-
name: errorCode,
|
|
1556
|
-
$metadata: deserializeMetadata(output),
|
|
1557
|
-
};
|
|
1558
|
-
break;
|
|
1339
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1559
1340
|
default:
|
|
1560
1341
|
const parsedBody = parsedOutput.body;
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
...parsedBody,
|
|
1564
|
-
name: `${errorCode}`,
|
|
1565
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1342
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
1343
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1566
1344
|
$fault: "client",
|
|
1567
1345
|
$metadata: deserializeMetadata(output),
|
|
1568
|
-
};
|
|
1346
|
+
});
|
|
1347
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1569
1348
|
}
|
|
1570
|
-
const message = response.message || response.Message || errorCode;
|
|
1571
|
-
response.message = message;
|
|
1572
|
-
delete response.Message;
|
|
1573
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1574
1349
|
};
|
|
1575
1350
|
const deserializeAws_restJson1DeleteEventActionCommand = async (output, context) => {
|
|
1576
1351
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1594,51 +1369,25 @@ const deserializeAws_restJson1DeleteEventActionCommandError = async (output, con
|
|
|
1594
1369
|
switch (errorCode) {
|
|
1595
1370
|
case "InternalServerException":
|
|
1596
1371
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1597
|
-
|
|
1598
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1599
|
-
name: errorCode,
|
|
1600
|
-
$metadata: deserializeMetadata(output),
|
|
1601
|
-
};
|
|
1602
|
-
break;
|
|
1372
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1603
1373
|
case "ResourceNotFoundException":
|
|
1604
1374
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1605
|
-
|
|
1606
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1607
|
-
name: errorCode,
|
|
1608
|
-
$metadata: deserializeMetadata(output),
|
|
1609
|
-
};
|
|
1610
|
-
break;
|
|
1375
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1611
1376
|
case "ThrottlingException":
|
|
1612
1377
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1613
|
-
|
|
1614
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1615
|
-
name: errorCode,
|
|
1616
|
-
$metadata: deserializeMetadata(output),
|
|
1617
|
-
};
|
|
1618
|
-
break;
|
|
1378
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1619
1379
|
case "ValidationException":
|
|
1620
1380
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1621
|
-
|
|
1622
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1623
|
-
name: errorCode,
|
|
1624
|
-
$metadata: deserializeMetadata(output),
|
|
1625
|
-
};
|
|
1626
|
-
break;
|
|
1381
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1627
1382
|
default:
|
|
1628
1383
|
const parsedBody = parsedOutput.body;
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
...parsedBody,
|
|
1632
|
-
name: `${errorCode}`,
|
|
1633
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1384
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
1385
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1634
1386
|
$fault: "client",
|
|
1635
1387
|
$metadata: deserializeMetadata(output),
|
|
1636
|
-
};
|
|
1388
|
+
});
|
|
1389
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1637
1390
|
}
|
|
1638
|
-
const message = response.message || response.Message || errorCode;
|
|
1639
|
-
response.message = message;
|
|
1640
|
-
delete response.Message;
|
|
1641
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1642
1391
|
};
|
|
1643
1392
|
const deserializeAws_restJson1DeleteRevisionCommand = async (output, context) => {
|
|
1644
1393
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -1662,67 +1411,31 @@ const deserializeAws_restJson1DeleteRevisionCommandError = async (output, contex
|
|
|
1662
1411
|
switch (errorCode) {
|
|
1663
1412
|
case "AccessDeniedException":
|
|
1664
1413
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
1665
|
-
|
|
1666
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1667
|
-
name: errorCode,
|
|
1668
|
-
$metadata: deserializeMetadata(output),
|
|
1669
|
-
};
|
|
1670
|
-
break;
|
|
1414
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1671
1415
|
case "ConflictException":
|
|
1672
1416
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
1673
|
-
|
|
1674
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1675
|
-
name: errorCode,
|
|
1676
|
-
$metadata: deserializeMetadata(output),
|
|
1677
|
-
};
|
|
1678
|
-
break;
|
|
1417
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1679
1418
|
case "InternalServerException":
|
|
1680
1419
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1681
|
-
|
|
1682
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1683
|
-
name: errorCode,
|
|
1684
|
-
$metadata: deserializeMetadata(output),
|
|
1685
|
-
};
|
|
1686
|
-
break;
|
|
1420
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1687
1421
|
case "ResourceNotFoundException":
|
|
1688
1422
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1689
|
-
|
|
1690
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1691
|
-
name: errorCode,
|
|
1692
|
-
$metadata: deserializeMetadata(output),
|
|
1693
|
-
};
|
|
1694
|
-
break;
|
|
1423
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1695
1424
|
case "ThrottlingException":
|
|
1696
1425
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1697
|
-
|
|
1698
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1699
|
-
name: errorCode,
|
|
1700
|
-
$metadata: deserializeMetadata(output),
|
|
1701
|
-
};
|
|
1702
|
-
break;
|
|
1426
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1703
1427
|
case "ValidationException":
|
|
1704
1428
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1705
|
-
|
|
1706
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1707
|
-
name: errorCode,
|
|
1708
|
-
$metadata: deserializeMetadata(output),
|
|
1709
|
-
};
|
|
1710
|
-
break;
|
|
1429
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1711
1430
|
default:
|
|
1712
1431
|
const parsedBody = parsedOutput.body;
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
...parsedBody,
|
|
1716
|
-
name: `${errorCode}`,
|
|
1717
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1432
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
1433
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1718
1434
|
$fault: "client",
|
|
1719
1435
|
$metadata: deserializeMetadata(output),
|
|
1720
|
-
};
|
|
1436
|
+
});
|
|
1437
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1721
1438
|
}
|
|
1722
|
-
const message = response.message || response.Message || errorCode;
|
|
1723
|
-
response.message = message;
|
|
1724
|
-
delete response.Message;
|
|
1725
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1726
1439
|
};
|
|
1727
1440
|
const deserializeAws_restJson1GetAssetCommand = async (output, context) => {
|
|
1728
1441
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1786,51 +1499,25 @@ const deserializeAws_restJson1GetAssetCommandError = async (output, context) =>
|
|
|
1786
1499
|
switch (errorCode) {
|
|
1787
1500
|
case "InternalServerException":
|
|
1788
1501
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1789
|
-
|
|
1790
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1791
|
-
name: errorCode,
|
|
1792
|
-
$metadata: deserializeMetadata(output),
|
|
1793
|
-
};
|
|
1794
|
-
break;
|
|
1502
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1795
1503
|
case "ResourceNotFoundException":
|
|
1796
1504
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1797
|
-
|
|
1798
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1799
|
-
name: errorCode,
|
|
1800
|
-
$metadata: deserializeMetadata(output),
|
|
1801
|
-
};
|
|
1802
|
-
break;
|
|
1505
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1803
1506
|
case "ThrottlingException":
|
|
1804
1507
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1805
|
-
|
|
1806
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1807
|
-
name: errorCode,
|
|
1808
|
-
$metadata: deserializeMetadata(output),
|
|
1809
|
-
};
|
|
1810
|
-
break;
|
|
1508
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1811
1509
|
case "ValidationException":
|
|
1812
1510
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1813
|
-
|
|
1814
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1815
|
-
name: errorCode,
|
|
1816
|
-
$metadata: deserializeMetadata(output),
|
|
1817
|
-
};
|
|
1818
|
-
break;
|
|
1511
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1819
1512
|
default:
|
|
1820
1513
|
const parsedBody = parsedOutput.body;
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
...parsedBody,
|
|
1824
|
-
name: `${errorCode}`,
|
|
1825
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1514
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
1515
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1826
1516
|
$fault: "client",
|
|
1827
1517
|
$metadata: deserializeMetadata(output),
|
|
1828
|
-
};
|
|
1518
|
+
});
|
|
1519
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1829
1520
|
}
|
|
1830
|
-
const message = response.message || response.Message || errorCode;
|
|
1831
|
-
response.message = message;
|
|
1832
|
-
delete response.Message;
|
|
1833
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1834
1521
|
};
|
|
1835
1522
|
const deserializeAws_restJson1GetDataSetCommand = async (output, context) => {
|
|
1836
1523
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1898,51 +1585,25 @@ const deserializeAws_restJson1GetDataSetCommandError = async (output, context) =
|
|
|
1898
1585
|
switch (errorCode) {
|
|
1899
1586
|
case "InternalServerException":
|
|
1900
1587
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1901
|
-
|
|
1902
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1903
|
-
name: errorCode,
|
|
1904
|
-
$metadata: deserializeMetadata(output),
|
|
1905
|
-
};
|
|
1906
|
-
break;
|
|
1588
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1907
1589
|
case "ResourceNotFoundException":
|
|
1908
1590
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
1909
|
-
|
|
1910
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1911
|
-
name: errorCode,
|
|
1912
|
-
$metadata: deserializeMetadata(output),
|
|
1913
|
-
};
|
|
1914
|
-
break;
|
|
1591
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1915
1592
|
case "ThrottlingException":
|
|
1916
1593
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
1917
|
-
|
|
1918
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1919
|
-
name: errorCode,
|
|
1920
|
-
$metadata: deserializeMetadata(output),
|
|
1921
|
-
};
|
|
1922
|
-
break;
|
|
1594
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1923
1595
|
case "ValidationException":
|
|
1924
1596
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
1925
|
-
|
|
1926
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1927
|
-
name: errorCode,
|
|
1928
|
-
$metadata: deserializeMetadata(output),
|
|
1929
|
-
};
|
|
1930
|
-
break;
|
|
1597
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1931
1598
|
default:
|
|
1932
1599
|
const parsedBody = parsedOutput.body;
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
...parsedBody,
|
|
1936
|
-
name: `${errorCode}`,
|
|
1937
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1600
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
1601
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1938
1602
|
$fault: "client",
|
|
1939
1603
|
$metadata: deserializeMetadata(output),
|
|
1940
|
-
};
|
|
1604
|
+
});
|
|
1605
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1941
1606
|
}
|
|
1942
|
-
const message = response.message || response.Message || errorCode;
|
|
1943
|
-
response.message = message;
|
|
1944
|
-
delete response.Message;
|
|
1945
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1946
1607
|
};
|
|
1947
1608
|
const deserializeAws_restJson1GetEventActionCommand = async (output, context) => {
|
|
1948
1609
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1990,51 +1651,25 @@ const deserializeAws_restJson1GetEventActionCommandError = async (output, contex
|
|
|
1990
1651
|
switch (errorCode) {
|
|
1991
1652
|
case "InternalServerException":
|
|
1992
1653
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
1993
|
-
|
|
1994
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1995
|
-
name: errorCode,
|
|
1996
|
-
$metadata: deserializeMetadata(output),
|
|
1997
|
-
};
|
|
1998
|
-
break;
|
|
1654
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1999
1655
|
case "ResourceNotFoundException":
|
|
2000
1656
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2001
|
-
|
|
2002
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2003
|
-
name: errorCode,
|
|
2004
|
-
$metadata: deserializeMetadata(output),
|
|
2005
|
-
};
|
|
2006
|
-
break;
|
|
1657
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2007
1658
|
case "ThrottlingException":
|
|
2008
1659
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2009
|
-
|
|
2010
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2011
|
-
name: errorCode,
|
|
2012
|
-
$metadata: deserializeMetadata(output),
|
|
2013
|
-
};
|
|
2014
|
-
break;
|
|
1660
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2015
1661
|
case "ValidationException":
|
|
2016
1662
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
2017
|
-
|
|
2018
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2019
|
-
name: errorCode,
|
|
2020
|
-
$metadata: deserializeMetadata(output),
|
|
2021
|
-
};
|
|
2022
|
-
break;
|
|
1663
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2023
1664
|
default:
|
|
2024
1665
|
const parsedBody = parsedOutput.body;
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
...parsedBody,
|
|
2028
|
-
name: `${errorCode}`,
|
|
2029
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1666
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
1667
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2030
1668
|
$fault: "client",
|
|
2031
1669
|
$metadata: deserializeMetadata(output),
|
|
2032
|
-
};
|
|
1670
|
+
});
|
|
1671
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2033
1672
|
}
|
|
2034
|
-
const message = response.message || response.Message || errorCode;
|
|
2035
|
-
response.message = message;
|
|
2036
|
-
delete response.Message;
|
|
2037
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2038
1673
|
};
|
|
2039
1674
|
const deserializeAws_restJson1GetJobCommand = async (output, context) => {
|
|
2040
1675
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2090,51 +1725,25 @@ const deserializeAws_restJson1GetJobCommandError = async (output, context) => {
|
|
|
2090
1725
|
switch (errorCode) {
|
|
2091
1726
|
case "InternalServerException":
|
|
2092
1727
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2093
|
-
|
|
2094
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2095
|
-
name: errorCode,
|
|
2096
|
-
$metadata: deserializeMetadata(output),
|
|
2097
|
-
};
|
|
2098
|
-
break;
|
|
1728
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2099
1729
|
case "ResourceNotFoundException":
|
|
2100
1730
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2101
|
-
|
|
2102
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2103
|
-
name: errorCode,
|
|
2104
|
-
$metadata: deserializeMetadata(output),
|
|
2105
|
-
};
|
|
2106
|
-
break;
|
|
1731
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2107
1732
|
case "ThrottlingException":
|
|
2108
1733
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2109
|
-
|
|
2110
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2111
|
-
name: errorCode,
|
|
2112
|
-
$metadata: deserializeMetadata(output),
|
|
2113
|
-
};
|
|
2114
|
-
break;
|
|
1734
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2115
1735
|
case "ValidationException":
|
|
2116
1736
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
2117
|
-
|
|
2118
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2119
|
-
name: errorCode,
|
|
2120
|
-
$metadata: deserializeMetadata(output),
|
|
2121
|
-
};
|
|
2122
|
-
break;
|
|
1737
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2123
1738
|
default:
|
|
2124
1739
|
const parsedBody = parsedOutput.body;
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
...parsedBody,
|
|
2128
|
-
name: `${errorCode}`,
|
|
2129
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1740
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
1741
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2130
1742
|
$fault: "client",
|
|
2131
1743
|
$metadata: deserializeMetadata(output),
|
|
2132
|
-
};
|
|
1744
|
+
});
|
|
1745
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2133
1746
|
}
|
|
2134
|
-
const message = response.message || response.Message || errorCode;
|
|
2135
|
-
response.message = message;
|
|
2136
|
-
delete response.Message;
|
|
2137
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2138
1747
|
};
|
|
2139
1748
|
const deserializeAws_restJson1GetRevisionCommand = async (output, context) => {
|
|
2140
1749
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2194,51 +1803,25 @@ const deserializeAws_restJson1GetRevisionCommandError = async (output, context)
|
|
|
2194
1803
|
switch (errorCode) {
|
|
2195
1804
|
case "InternalServerException":
|
|
2196
1805
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2197
|
-
|
|
2198
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2199
|
-
name: errorCode,
|
|
2200
|
-
$metadata: deserializeMetadata(output),
|
|
2201
|
-
};
|
|
2202
|
-
break;
|
|
1806
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2203
1807
|
case "ResourceNotFoundException":
|
|
2204
1808
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2205
|
-
|
|
2206
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2207
|
-
name: errorCode,
|
|
2208
|
-
$metadata: deserializeMetadata(output),
|
|
2209
|
-
};
|
|
2210
|
-
break;
|
|
1809
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2211
1810
|
case "ThrottlingException":
|
|
2212
1811
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2213
|
-
|
|
2214
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2215
|
-
name: errorCode,
|
|
2216
|
-
$metadata: deserializeMetadata(output),
|
|
2217
|
-
};
|
|
2218
|
-
break;
|
|
1812
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2219
1813
|
case "ValidationException":
|
|
2220
1814
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
2221
|
-
|
|
2222
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2223
|
-
name: errorCode,
|
|
2224
|
-
$metadata: deserializeMetadata(output),
|
|
2225
|
-
};
|
|
2226
|
-
break;
|
|
1815
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2227
1816
|
default:
|
|
2228
1817
|
const parsedBody = parsedOutput.body;
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
...parsedBody,
|
|
2232
|
-
name: `${errorCode}`,
|
|
2233
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1818
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
1819
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2234
1820
|
$fault: "client",
|
|
2235
1821
|
$metadata: deserializeMetadata(output),
|
|
2236
|
-
};
|
|
1822
|
+
});
|
|
1823
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2237
1824
|
}
|
|
2238
|
-
const message = response.message || response.Message || errorCode;
|
|
2239
|
-
response.message = message;
|
|
2240
|
-
delete response.Message;
|
|
2241
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2242
1825
|
};
|
|
2243
1826
|
const deserializeAws_restJson1ListDataSetRevisionsCommand = async (output, context) => {
|
|
2244
1827
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2270,51 +1853,25 @@ const deserializeAws_restJson1ListDataSetRevisionsCommandError = async (output,
|
|
|
2270
1853
|
switch (errorCode) {
|
|
2271
1854
|
case "InternalServerException":
|
|
2272
1855
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2273
|
-
|
|
2274
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2275
|
-
name: errorCode,
|
|
2276
|
-
$metadata: deserializeMetadata(output),
|
|
2277
|
-
};
|
|
2278
|
-
break;
|
|
1856
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2279
1857
|
case "ResourceNotFoundException":
|
|
2280
1858
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2281
|
-
|
|
2282
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2283
|
-
name: errorCode,
|
|
2284
|
-
$metadata: deserializeMetadata(output),
|
|
2285
|
-
};
|
|
2286
|
-
break;
|
|
1859
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2287
1860
|
case "ThrottlingException":
|
|
2288
1861
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2289
|
-
|
|
2290
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2291
|
-
name: errorCode,
|
|
2292
|
-
$metadata: deserializeMetadata(output),
|
|
2293
|
-
};
|
|
2294
|
-
break;
|
|
1862
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2295
1863
|
case "ValidationException":
|
|
2296
1864
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
2297
|
-
|
|
2298
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2299
|
-
name: errorCode,
|
|
2300
|
-
$metadata: deserializeMetadata(output),
|
|
2301
|
-
};
|
|
2302
|
-
break;
|
|
1865
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2303
1866
|
default:
|
|
2304
1867
|
const parsedBody = parsedOutput.body;
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
...parsedBody,
|
|
2308
|
-
name: `${errorCode}`,
|
|
2309
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1868
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
1869
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2310
1870
|
$fault: "client",
|
|
2311
1871
|
$metadata: deserializeMetadata(output),
|
|
2312
|
-
};
|
|
1872
|
+
});
|
|
1873
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2313
1874
|
}
|
|
2314
|
-
const message = response.message || response.Message || errorCode;
|
|
2315
|
-
response.message = message;
|
|
2316
|
-
delete response.Message;
|
|
2317
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2318
1875
|
};
|
|
2319
1876
|
const deserializeAws_restJson1ListDataSetsCommand = async (output, context) => {
|
|
2320
1877
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2346,51 +1903,25 @@ const deserializeAws_restJson1ListDataSetsCommandError = async (output, context)
|
|
|
2346
1903
|
switch (errorCode) {
|
|
2347
1904
|
case "InternalServerException":
|
|
2348
1905
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2349
|
-
|
|
2350
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2351
|
-
name: errorCode,
|
|
2352
|
-
$metadata: deserializeMetadata(output),
|
|
2353
|
-
};
|
|
2354
|
-
break;
|
|
1906
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2355
1907
|
case "ResourceNotFoundException":
|
|
2356
1908
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2357
|
-
|
|
2358
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2359
|
-
name: errorCode,
|
|
2360
|
-
$metadata: deserializeMetadata(output),
|
|
2361
|
-
};
|
|
2362
|
-
break;
|
|
1909
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2363
1910
|
case "ThrottlingException":
|
|
2364
1911
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2365
|
-
|
|
2366
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2367
|
-
name: errorCode,
|
|
2368
|
-
$metadata: deserializeMetadata(output),
|
|
2369
|
-
};
|
|
2370
|
-
break;
|
|
1912
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2371
1913
|
case "ValidationException":
|
|
2372
1914
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
2373
|
-
|
|
2374
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2375
|
-
name: errorCode,
|
|
2376
|
-
$metadata: deserializeMetadata(output),
|
|
2377
|
-
};
|
|
2378
|
-
break;
|
|
1915
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2379
1916
|
default:
|
|
2380
1917
|
const parsedBody = parsedOutput.body;
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
...parsedBody,
|
|
2384
|
-
name: `${errorCode}`,
|
|
2385
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1918
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
1919
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2386
1920
|
$fault: "client",
|
|
2387
1921
|
$metadata: deserializeMetadata(output),
|
|
2388
|
-
};
|
|
1922
|
+
});
|
|
1923
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2389
1924
|
}
|
|
2390
|
-
const message = response.message || response.Message || errorCode;
|
|
2391
|
-
response.message = message;
|
|
2392
|
-
delete response.Message;
|
|
2393
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2394
1925
|
};
|
|
2395
1926
|
const deserializeAws_restJson1ListEventActionsCommand = async (output, context) => {
|
|
2396
1927
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2422,51 +1953,25 @@ const deserializeAws_restJson1ListEventActionsCommandError = async (output, cont
|
|
|
2422
1953
|
switch (errorCode) {
|
|
2423
1954
|
case "InternalServerException":
|
|
2424
1955
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2425
|
-
|
|
2426
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2427
|
-
name: errorCode,
|
|
2428
|
-
$metadata: deserializeMetadata(output),
|
|
2429
|
-
};
|
|
2430
|
-
break;
|
|
1956
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2431
1957
|
case "ResourceNotFoundException":
|
|
2432
1958
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2433
|
-
|
|
2434
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2435
|
-
name: errorCode,
|
|
2436
|
-
$metadata: deserializeMetadata(output),
|
|
2437
|
-
};
|
|
2438
|
-
break;
|
|
1959
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2439
1960
|
case "ThrottlingException":
|
|
2440
1961
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2441
|
-
|
|
2442
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2443
|
-
name: errorCode,
|
|
2444
|
-
$metadata: deserializeMetadata(output),
|
|
2445
|
-
};
|
|
2446
|
-
break;
|
|
1962
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2447
1963
|
case "ValidationException":
|
|
2448
1964
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
2449
|
-
|
|
2450
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2451
|
-
name: errorCode,
|
|
2452
|
-
$metadata: deserializeMetadata(output),
|
|
2453
|
-
};
|
|
2454
|
-
break;
|
|
1965
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2455
1966
|
default:
|
|
2456
1967
|
const parsedBody = parsedOutput.body;
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
...parsedBody,
|
|
2460
|
-
name: `${errorCode}`,
|
|
2461
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1968
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
1969
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2462
1970
|
$fault: "client",
|
|
2463
1971
|
$metadata: deserializeMetadata(output),
|
|
2464
|
-
};
|
|
1972
|
+
});
|
|
1973
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2465
1974
|
}
|
|
2466
|
-
const message = response.message || response.Message || errorCode;
|
|
2467
|
-
response.message = message;
|
|
2468
|
-
delete response.Message;
|
|
2469
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2470
1975
|
};
|
|
2471
1976
|
const deserializeAws_restJson1ListJobsCommand = async (output, context) => {
|
|
2472
1977
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2498,51 +2003,25 @@ const deserializeAws_restJson1ListJobsCommandError = async (output, context) =>
|
|
|
2498
2003
|
switch (errorCode) {
|
|
2499
2004
|
case "InternalServerException":
|
|
2500
2005
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2501
|
-
|
|
2502
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2503
|
-
name: errorCode,
|
|
2504
|
-
$metadata: deserializeMetadata(output),
|
|
2505
|
-
};
|
|
2506
|
-
break;
|
|
2006
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2507
2007
|
case "ResourceNotFoundException":
|
|
2508
2008
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2509
|
-
|
|
2510
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2511
|
-
name: errorCode,
|
|
2512
|
-
$metadata: deserializeMetadata(output),
|
|
2513
|
-
};
|
|
2514
|
-
break;
|
|
2009
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2515
2010
|
case "ThrottlingException":
|
|
2516
2011
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2517
|
-
|
|
2518
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2519
|
-
name: errorCode,
|
|
2520
|
-
$metadata: deserializeMetadata(output),
|
|
2521
|
-
};
|
|
2522
|
-
break;
|
|
2012
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2523
2013
|
case "ValidationException":
|
|
2524
2014
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
2525
|
-
|
|
2526
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2527
|
-
name: errorCode,
|
|
2528
|
-
$metadata: deserializeMetadata(output),
|
|
2529
|
-
};
|
|
2530
|
-
break;
|
|
2015
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2531
2016
|
default:
|
|
2532
2017
|
const parsedBody = parsedOutput.body;
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
...parsedBody,
|
|
2536
|
-
name: `${errorCode}`,
|
|
2537
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2018
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
2019
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2538
2020
|
$fault: "client",
|
|
2539
2021
|
$metadata: deserializeMetadata(output),
|
|
2540
|
-
};
|
|
2022
|
+
});
|
|
2023
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2541
2024
|
}
|
|
2542
|
-
const message = response.message || response.Message || errorCode;
|
|
2543
|
-
response.message = message;
|
|
2544
|
-
delete response.Message;
|
|
2545
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2546
2025
|
};
|
|
2547
2026
|
const deserializeAws_restJson1ListRevisionAssetsCommand = async (output, context) => {
|
|
2548
2027
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2574,51 +2053,25 @@ const deserializeAws_restJson1ListRevisionAssetsCommandError = async (output, co
|
|
|
2574
2053
|
switch (errorCode) {
|
|
2575
2054
|
case "InternalServerException":
|
|
2576
2055
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2577
|
-
|
|
2578
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2579
|
-
name: errorCode,
|
|
2580
|
-
$metadata: deserializeMetadata(output),
|
|
2581
|
-
};
|
|
2582
|
-
break;
|
|
2056
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2583
2057
|
case "ResourceNotFoundException":
|
|
2584
2058
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2585
|
-
|
|
2586
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2587
|
-
name: errorCode,
|
|
2588
|
-
$metadata: deserializeMetadata(output),
|
|
2589
|
-
};
|
|
2590
|
-
break;
|
|
2059
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2591
2060
|
case "ThrottlingException":
|
|
2592
2061
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2593
|
-
|
|
2594
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2595
|
-
name: errorCode,
|
|
2596
|
-
$metadata: deserializeMetadata(output),
|
|
2597
|
-
};
|
|
2598
|
-
break;
|
|
2062
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2599
2063
|
case "ValidationException":
|
|
2600
2064
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
2601
|
-
|
|
2602
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2603
|
-
name: errorCode,
|
|
2604
|
-
$metadata: deserializeMetadata(output),
|
|
2605
|
-
};
|
|
2606
|
-
break;
|
|
2065
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2607
2066
|
default:
|
|
2608
2067
|
const parsedBody = parsedOutput.body;
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
...parsedBody,
|
|
2612
|
-
name: `${errorCode}`,
|
|
2613
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2068
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
2069
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2614
2070
|
$fault: "client",
|
|
2615
2071
|
$metadata: deserializeMetadata(output),
|
|
2616
|
-
};
|
|
2072
|
+
});
|
|
2073
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2617
2074
|
}
|
|
2618
|
-
const message = response.message || response.Message || errorCode;
|
|
2619
|
-
response.message = message;
|
|
2620
|
-
delete response.Message;
|
|
2621
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2622
2075
|
};
|
|
2623
2076
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
2624
2077
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2646,19 +2099,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2646
2099
|
switch (errorCode) {
|
|
2647
2100
|
default:
|
|
2648
2101
|
const parsedBody = parsedOutput.body;
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
...parsedBody,
|
|
2652
|
-
name: `${errorCode}`,
|
|
2653
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2102
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
2103
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2654
2104
|
$fault: "client",
|
|
2655
2105
|
$metadata: deserializeMetadata(output),
|
|
2656
|
-
};
|
|
2106
|
+
});
|
|
2107
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2657
2108
|
}
|
|
2658
|
-
const message = response.message || response.Message || errorCode;
|
|
2659
|
-
response.message = message;
|
|
2660
|
-
delete response.Message;
|
|
2661
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2662
2109
|
};
|
|
2663
2110
|
const deserializeAws_restJson1SendApiAssetCommand = async (output, context) => {
|
|
2664
2111
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2693,59 +2140,28 @@ const deserializeAws_restJson1SendApiAssetCommandError = async (output, context)
|
|
|
2693
2140
|
switch (errorCode) {
|
|
2694
2141
|
case "AccessDeniedException":
|
|
2695
2142
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
2696
|
-
|
|
2697
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2698
|
-
name: errorCode,
|
|
2699
|
-
$metadata: deserializeMetadata(output),
|
|
2700
|
-
};
|
|
2701
|
-
break;
|
|
2143
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2702
2144
|
case "InternalServerException":
|
|
2703
2145
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2704
|
-
|
|
2705
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2706
|
-
name: errorCode,
|
|
2707
|
-
$metadata: deserializeMetadata(output),
|
|
2708
|
-
};
|
|
2709
|
-
break;
|
|
2146
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2710
2147
|
case "ResourceNotFoundException":
|
|
2711
2148
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2712
|
-
|
|
2713
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2714
|
-
name: errorCode,
|
|
2715
|
-
$metadata: deserializeMetadata(output),
|
|
2716
|
-
};
|
|
2717
|
-
break;
|
|
2149
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2718
2150
|
case "ThrottlingException":
|
|
2719
2151
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2720
|
-
|
|
2721
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2722
|
-
name: errorCode,
|
|
2723
|
-
$metadata: deserializeMetadata(output),
|
|
2724
|
-
};
|
|
2725
|
-
break;
|
|
2152
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2726
2153
|
case "ValidationException":
|
|
2727
2154
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
2728
|
-
|
|
2729
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2730
|
-
name: errorCode,
|
|
2731
|
-
$metadata: deserializeMetadata(output),
|
|
2732
|
-
};
|
|
2733
|
-
break;
|
|
2155
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2734
2156
|
default:
|
|
2735
2157
|
const parsedBody = parsedOutput.body;
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
...parsedBody,
|
|
2739
|
-
name: `${errorCode}`,
|
|
2740
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2158
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
2159
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2741
2160
|
$fault: "client",
|
|
2742
2161
|
$metadata: deserializeMetadata(output),
|
|
2743
|
-
};
|
|
2162
|
+
});
|
|
2163
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2744
2164
|
}
|
|
2745
|
-
const message = response.message || response.Message || errorCode;
|
|
2746
|
-
response.message = message;
|
|
2747
|
-
delete response.Message;
|
|
2748
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2749
2165
|
};
|
|
2750
2166
|
const deserializeAws_restJson1StartJobCommand = async (output, context) => {
|
|
2751
2167
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
@@ -2769,67 +2185,31 @@ const deserializeAws_restJson1StartJobCommandError = async (output, context) =>
|
|
|
2769
2185
|
switch (errorCode) {
|
|
2770
2186
|
case "AccessDeniedException":
|
|
2771
2187
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
2772
|
-
|
|
2773
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2774
|
-
name: errorCode,
|
|
2775
|
-
$metadata: deserializeMetadata(output),
|
|
2776
|
-
};
|
|
2777
|
-
break;
|
|
2188
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2778
2189
|
case "ConflictException":
|
|
2779
2190
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
2780
|
-
|
|
2781
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2782
|
-
name: errorCode,
|
|
2783
|
-
$metadata: deserializeMetadata(output),
|
|
2784
|
-
};
|
|
2785
|
-
break;
|
|
2191
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2786
2192
|
case "InternalServerException":
|
|
2787
2193
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2788
|
-
|
|
2789
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2790
|
-
name: errorCode,
|
|
2791
|
-
$metadata: deserializeMetadata(output),
|
|
2792
|
-
};
|
|
2793
|
-
break;
|
|
2194
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2794
2195
|
case "ResourceNotFoundException":
|
|
2795
2196
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2796
|
-
|
|
2797
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2798
|
-
name: errorCode,
|
|
2799
|
-
$metadata: deserializeMetadata(output),
|
|
2800
|
-
};
|
|
2801
|
-
break;
|
|
2197
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2802
2198
|
case "ThrottlingException":
|
|
2803
2199
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
2804
|
-
|
|
2805
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2806
|
-
name: errorCode,
|
|
2807
|
-
$metadata: deserializeMetadata(output),
|
|
2808
|
-
};
|
|
2809
|
-
break;
|
|
2200
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2810
2201
|
case "ValidationException":
|
|
2811
2202
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
2812
|
-
|
|
2813
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2814
|
-
name: errorCode,
|
|
2815
|
-
$metadata: deserializeMetadata(output),
|
|
2816
|
-
};
|
|
2817
|
-
break;
|
|
2203
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2818
2204
|
default:
|
|
2819
2205
|
const parsedBody = parsedOutput.body;
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
...parsedBody,
|
|
2823
|
-
name: `${errorCode}`,
|
|
2824
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2206
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
2207
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2825
2208
|
$fault: "client",
|
|
2826
2209
|
$metadata: deserializeMetadata(output),
|
|
2827
|
-
};
|
|
2210
|
+
});
|
|
2211
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2828
2212
|
}
|
|
2829
|
-
const message = response.message || response.Message || errorCode;
|
|
2830
|
-
response.message = message;
|
|
2831
|
-
delete response.Message;
|
|
2832
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2833
2213
|
};
|
|
2834
2214
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
2835
2215
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -2853,19 +2233,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2853
2233
|
switch (errorCode) {
|
|
2854
2234
|
default:
|
|
2855
2235
|
const parsedBody = parsedOutput.body;
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
...parsedBody,
|
|
2859
|
-
name: `${errorCode}`,
|
|
2860
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2236
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
2237
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2861
2238
|
$fault: "client",
|
|
2862
2239
|
$metadata: deserializeMetadata(output),
|
|
2863
|
-
};
|
|
2240
|
+
});
|
|
2241
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2864
2242
|
}
|
|
2865
|
-
const message = response.message || response.Message || errorCode;
|
|
2866
|
-
response.message = message;
|
|
2867
|
-
delete response.Message;
|
|
2868
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2869
2243
|
};
|
|
2870
2244
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
2871
2245
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
@@ -2889,19 +2263,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2889
2263
|
switch (errorCode) {
|
|
2890
2264
|
default:
|
|
2891
2265
|
const parsedBody = parsedOutput.body;
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
...parsedBody,
|
|
2895
|
-
name: `${errorCode}`,
|
|
2896
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2266
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
2267
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2897
2268
|
$fault: "client",
|
|
2898
2269
|
$metadata: deserializeMetadata(output),
|
|
2899
|
-
};
|
|
2270
|
+
});
|
|
2271
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2900
2272
|
}
|
|
2901
|
-
const message = response.message || response.Message || errorCode;
|
|
2902
|
-
response.message = message;
|
|
2903
|
-
delete response.Message;
|
|
2904
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2905
2273
|
};
|
|
2906
2274
|
const deserializeAws_restJson1UpdateAssetCommand = async (output, context) => {
|
|
2907
2275
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2965,67 +2333,31 @@ const deserializeAws_restJson1UpdateAssetCommandError = async (output, context)
|
|
|
2965
2333
|
switch (errorCode) {
|
|
2966
2334
|
case "AccessDeniedException":
|
|
2967
2335
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
2968
|
-
|
|
2969
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2970
|
-
name: errorCode,
|
|
2971
|
-
$metadata: deserializeMetadata(output),
|
|
2972
|
-
};
|
|
2973
|
-
break;
|
|
2336
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2974
2337
|
case "ConflictException":
|
|
2975
2338
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
2976
|
-
|
|
2977
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2978
|
-
name: errorCode,
|
|
2979
|
-
$metadata: deserializeMetadata(output),
|
|
2980
|
-
};
|
|
2981
|
-
break;
|
|
2339
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2982
2340
|
case "InternalServerException":
|
|
2983
2341
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
2984
|
-
|
|
2985
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2986
|
-
name: errorCode,
|
|
2987
|
-
$metadata: deserializeMetadata(output),
|
|
2988
|
-
};
|
|
2989
|
-
break;
|
|
2342
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2990
2343
|
case "ResourceNotFoundException":
|
|
2991
2344
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
2992
|
-
|
|
2993
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2994
|
-
name: errorCode,
|
|
2995
|
-
$metadata: deserializeMetadata(output),
|
|
2996
|
-
};
|
|
2997
|
-
break;
|
|
2345
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2998
2346
|
case "ThrottlingException":
|
|
2999
2347
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
3000
|
-
|
|
3001
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3002
|
-
name: errorCode,
|
|
3003
|
-
$metadata: deserializeMetadata(output),
|
|
3004
|
-
};
|
|
3005
|
-
break;
|
|
2348
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3006
2349
|
case "ValidationException":
|
|
3007
2350
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
3008
|
-
|
|
3009
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3010
|
-
name: errorCode,
|
|
3011
|
-
$metadata: deserializeMetadata(output),
|
|
3012
|
-
};
|
|
3013
|
-
break;
|
|
2351
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3014
2352
|
default:
|
|
3015
2353
|
const parsedBody = parsedOutput.body;
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
...parsedBody,
|
|
3019
|
-
name: `${errorCode}`,
|
|
3020
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2354
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
2355
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3021
2356
|
$fault: "client",
|
|
3022
2357
|
$metadata: deserializeMetadata(output),
|
|
3023
|
-
};
|
|
2358
|
+
});
|
|
2359
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3024
2360
|
}
|
|
3025
|
-
const message = response.message || response.Message || errorCode;
|
|
3026
|
-
response.message = message;
|
|
3027
|
-
delete response.Message;
|
|
3028
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3029
2361
|
};
|
|
3030
2362
|
const deserializeAws_restJson1UpdateDataSetCommand = async (output, context) => {
|
|
3031
2363
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3089,59 +2421,28 @@ const deserializeAws_restJson1UpdateDataSetCommandError = async (output, context
|
|
|
3089
2421
|
switch (errorCode) {
|
|
3090
2422
|
case "AccessDeniedException":
|
|
3091
2423
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
3092
|
-
|
|
3093
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3094
|
-
name: errorCode,
|
|
3095
|
-
$metadata: deserializeMetadata(output),
|
|
3096
|
-
};
|
|
3097
|
-
break;
|
|
2424
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3098
2425
|
case "InternalServerException":
|
|
3099
2426
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
3100
|
-
|
|
3101
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3102
|
-
name: errorCode,
|
|
3103
|
-
$metadata: deserializeMetadata(output),
|
|
3104
|
-
};
|
|
3105
|
-
break;
|
|
2427
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3106
2428
|
case "ResourceNotFoundException":
|
|
3107
2429
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
3108
|
-
|
|
3109
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3110
|
-
name: errorCode,
|
|
3111
|
-
$metadata: deserializeMetadata(output),
|
|
3112
|
-
};
|
|
3113
|
-
break;
|
|
2430
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3114
2431
|
case "ThrottlingException":
|
|
3115
2432
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
3116
|
-
|
|
3117
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3118
|
-
name: errorCode,
|
|
3119
|
-
$metadata: deserializeMetadata(output),
|
|
3120
|
-
};
|
|
3121
|
-
break;
|
|
2433
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3122
2434
|
case "ValidationException":
|
|
3123
2435
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
3124
|
-
|
|
3125
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3126
|
-
name: errorCode,
|
|
3127
|
-
$metadata: deserializeMetadata(output),
|
|
3128
|
-
};
|
|
3129
|
-
break;
|
|
2436
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3130
2437
|
default:
|
|
3131
2438
|
const parsedBody = parsedOutput.body;
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
...parsedBody,
|
|
3135
|
-
name: `${errorCode}`,
|
|
3136
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2439
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
2440
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3137
2441
|
$fault: "client",
|
|
3138
2442
|
$metadata: deserializeMetadata(output),
|
|
3139
|
-
};
|
|
2443
|
+
});
|
|
2444
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3140
2445
|
}
|
|
3141
|
-
const message = response.message || response.Message || errorCode;
|
|
3142
|
-
response.message = message;
|
|
3143
|
-
delete response.Message;
|
|
3144
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3145
2446
|
};
|
|
3146
2447
|
const deserializeAws_restJson1UpdateEventActionCommand = async (output, context) => {
|
|
3147
2448
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3189,59 +2490,28 @@ const deserializeAws_restJson1UpdateEventActionCommandError = async (output, con
|
|
|
3189
2490
|
switch (errorCode) {
|
|
3190
2491
|
case "AccessDeniedException":
|
|
3191
2492
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
3192
|
-
|
|
3193
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3194
|
-
name: errorCode,
|
|
3195
|
-
$metadata: deserializeMetadata(output),
|
|
3196
|
-
};
|
|
3197
|
-
break;
|
|
2493
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3198
2494
|
case "InternalServerException":
|
|
3199
2495
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
3200
|
-
|
|
3201
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3202
|
-
name: errorCode,
|
|
3203
|
-
$metadata: deserializeMetadata(output),
|
|
3204
|
-
};
|
|
3205
|
-
break;
|
|
2496
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3206
2497
|
case "ResourceNotFoundException":
|
|
3207
2498
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
3208
|
-
|
|
3209
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3210
|
-
name: errorCode,
|
|
3211
|
-
$metadata: deserializeMetadata(output),
|
|
3212
|
-
};
|
|
3213
|
-
break;
|
|
2499
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3214
2500
|
case "ThrottlingException":
|
|
3215
2501
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
3216
|
-
|
|
3217
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3218
|
-
name: errorCode,
|
|
3219
|
-
$metadata: deserializeMetadata(output),
|
|
3220
|
-
};
|
|
3221
|
-
break;
|
|
2502
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3222
2503
|
case "ValidationException":
|
|
3223
2504
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
3224
|
-
|
|
3225
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3226
|
-
name: errorCode,
|
|
3227
|
-
$metadata: deserializeMetadata(output),
|
|
3228
|
-
};
|
|
3229
|
-
break;
|
|
2505
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3230
2506
|
default:
|
|
3231
2507
|
const parsedBody = parsedOutput.body;
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
...parsedBody,
|
|
3235
|
-
name: `${errorCode}`,
|
|
3236
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2508
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
2509
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3237
2510
|
$fault: "client",
|
|
3238
2511
|
$metadata: deserializeMetadata(output),
|
|
3239
|
-
};
|
|
2512
|
+
});
|
|
2513
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3240
2514
|
}
|
|
3241
|
-
const message = response.message || response.Message || errorCode;
|
|
3242
|
-
response.message = message;
|
|
3243
|
-
delete response.Message;
|
|
3244
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3245
2515
|
};
|
|
3246
2516
|
const deserializeAws_restJson1UpdateRevisionCommand = async (output, context) => {
|
|
3247
2517
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3297,90 +2567,46 @@ const deserializeAws_restJson1UpdateRevisionCommandError = async (output, contex
|
|
|
3297
2567
|
switch (errorCode) {
|
|
3298
2568
|
case "AccessDeniedException":
|
|
3299
2569
|
case "com.amazonaws.dataexchange#AccessDeniedException":
|
|
3300
|
-
|
|
3301
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3302
|
-
name: errorCode,
|
|
3303
|
-
$metadata: deserializeMetadata(output),
|
|
3304
|
-
};
|
|
3305
|
-
break;
|
|
2570
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3306
2571
|
case "ConflictException":
|
|
3307
2572
|
case "com.amazonaws.dataexchange#ConflictException":
|
|
3308
|
-
|
|
3309
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3310
|
-
name: errorCode,
|
|
3311
|
-
$metadata: deserializeMetadata(output),
|
|
3312
|
-
};
|
|
3313
|
-
break;
|
|
2573
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3314
2574
|
case "InternalServerException":
|
|
3315
2575
|
case "com.amazonaws.dataexchange#InternalServerException":
|
|
3316
|
-
|
|
3317
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3318
|
-
name: errorCode,
|
|
3319
|
-
$metadata: deserializeMetadata(output),
|
|
3320
|
-
};
|
|
3321
|
-
break;
|
|
2576
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3322
2577
|
case "ResourceNotFoundException":
|
|
3323
2578
|
case "com.amazonaws.dataexchange#ResourceNotFoundException":
|
|
3324
|
-
|
|
3325
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3326
|
-
name: errorCode,
|
|
3327
|
-
$metadata: deserializeMetadata(output),
|
|
3328
|
-
};
|
|
3329
|
-
break;
|
|
2579
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3330
2580
|
case "ThrottlingException":
|
|
3331
2581
|
case "com.amazonaws.dataexchange#ThrottlingException":
|
|
3332
|
-
|
|
3333
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3334
|
-
name: errorCode,
|
|
3335
|
-
$metadata: deserializeMetadata(output),
|
|
3336
|
-
};
|
|
3337
|
-
break;
|
|
2582
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3338
2583
|
case "ValidationException":
|
|
3339
2584
|
case "com.amazonaws.dataexchange#ValidationException":
|
|
3340
|
-
|
|
3341
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3342
|
-
name: errorCode,
|
|
3343
|
-
$metadata: deserializeMetadata(output),
|
|
3344
|
-
};
|
|
3345
|
-
break;
|
|
2585
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3346
2586
|
default:
|
|
3347
2587
|
const parsedBody = parsedOutput.body;
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
...parsedBody,
|
|
3351
|
-
name: `${errorCode}`,
|
|
3352
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2588
|
+
response = new DataExchangeServiceException_1.DataExchangeServiceException({
|
|
2589
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3353
2590
|
$fault: "client",
|
|
3354
2591
|
$metadata: deserializeMetadata(output),
|
|
3355
|
-
};
|
|
2592
|
+
});
|
|
2593
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3356
2594
|
}
|
|
3357
|
-
const message = response.message || response.Message || errorCode;
|
|
3358
|
-
response.message = message;
|
|
3359
|
-
delete response.Message;
|
|
3360
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3361
2595
|
};
|
|
3362
2596
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
3363
|
-
const contents = {
|
|
3364
|
-
name: "AccessDeniedException",
|
|
3365
|
-
$fault: "client",
|
|
3366
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3367
|
-
Message: undefined,
|
|
3368
|
-
};
|
|
2597
|
+
const contents = {};
|
|
3369
2598
|
const data = parsedOutput.body;
|
|
3370
2599
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3371
2600
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3372
2601
|
}
|
|
3373
|
-
|
|
2602
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
2603
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2604
|
+
...contents,
|
|
2605
|
+
});
|
|
2606
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3374
2607
|
};
|
|
3375
2608
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
3376
|
-
const contents = {
|
|
3377
|
-
name: "ConflictException",
|
|
3378
|
-
$fault: "client",
|
|
3379
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3380
|
-
Message: undefined,
|
|
3381
|
-
ResourceId: undefined,
|
|
3382
|
-
ResourceType: undefined,
|
|
3383
|
-
};
|
|
2609
|
+
const contents = {};
|
|
3384
2610
|
const data = parsedOutput.body;
|
|
3385
2611
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3386
2612
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
@@ -3391,30 +2617,26 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
3391
2617
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
3392
2618
|
contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
|
|
3393
2619
|
}
|
|
3394
|
-
|
|
2620
|
+
const exception = new models_0_1.ConflictException({
|
|
2621
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2622
|
+
...contents,
|
|
2623
|
+
});
|
|
2624
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3395
2625
|
};
|
|
3396
2626
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
3397
|
-
const contents = {
|
|
3398
|
-
name: "InternalServerException",
|
|
3399
|
-
$fault: "server",
|
|
3400
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3401
|
-
Message: undefined,
|
|
3402
|
-
};
|
|
2627
|
+
const contents = {};
|
|
3403
2628
|
const data = parsedOutput.body;
|
|
3404
2629
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3405
2630
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3406
2631
|
}
|
|
3407
|
-
|
|
2632
|
+
const exception = new models_0_1.InternalServerException({
|
|
2633
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2634
|
+
...contents,
|
|
2635
|
+
});
|
|
2636
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3408
2637
|
};
|
|
3409
2638
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3410
|
-
const contents = {
|
|
3411
|
-
name: "ResourceNotFoundException",
|
|
3412
|
-
$fault: "client",
|
|
3413
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3414
|
-
Message: undefined,
|
|
3415
|
-
ResourceId: undefined,
|
|
3416
|
-
ResourceType: undefined,
|
|
3417
|
-
};
|
|
2639
|
+
const contents = {};
|
|
3418
2640
|
const data = parsedOutput.body;
|
|
3419
2641
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3420
2642
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
@@ -3425,17 +2647,14 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
3425
2647
|
if (data.ResourceType !== undefined && data.ResourceType !== null) {
|
|
3426
2648
|
contents.ResourceType = smithy_client_1.expectString(data.ResourceType);
|
|
3427
2649
|
}
|
|
3428
|
-
|
|
2650
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
2651
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2652
|
+
...contents,
|
|
2653
|
+
});
|
|
2654
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3429
2655
|
};
|
|
3430
2656
|
const deserializeAws_restJson1ServiceLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3431
|
-
const contents = {
|
|
3432
|
-
name: "ServiceLimitExceededException",
|
|
3433
|
-
$fault: "client",
|
|
3434
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3435
|
-
LimitName: undefined,
|
|
3436
|
-
LimitValue: undefined,
|
|
3437
|
-
Message: undefined,
|
|
3438
|
-
};
|
|
2657
|
+
const contents = {};
|
|
3439
2658
|
const data = parsedOutput.body;
|
|
3440
2659
|
if (data.LimitName !== undefined && data.LimitName !== null) {
|
|
3441
2660
|
contents.LimitName = smithy_client_1.expectString(data.LimitName);
|
|
@@ -3446,29 +2665,26 @@ const deserializeAws_restJson1ServiceLimitExceededExceptionResponse = async (par
|
|
|
3446
2665
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3447
2666
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3448
2667
|
}
|
|
3449
|
-
|
|
2668
|
+
const exception = new models_0_1.ServiceLimitExceededException({
|
|
2669
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2670
|
+
...contents,
|
|
2671
|
+
});
|
|
2672
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3450
2673
|
};
|
|
3451
2674
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
3452
|
-
const contents = {
|
|
3453
|
-
name: "ThrottlingException",
|
|
3454
|
-
$fault: "client",
|
|
3455
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3456
|
-
Message: undefined,
|
|
3457
|
-
};
|
|
2675
|
+
const contents = {};
|
|
3458
2676
|
const data = parsedOutput.body;
|
|
3459
2677
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3460
2678
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3461
2679
|
}
|
|
3462
|
-
|
|
2680
|
+
const exception = new models_0_1.ThrottlingException({
|
|
2681
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2682
|
+
...contents,
|
|
2683
|
+
});
|
|
2684
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3463
2685
|
};
|
|
3464
2686
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
3465
|
-
const contents = {
|
|
3466
|
-
name: "ValidationException",
|
|
3467
|
-
$fault: "client",
|
|
3468
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3469
|
-
ExceptionCause: undefined,
|
|
3470
|
-
Message: undefined,
|
|
3471
|
-
};
|
|
2687
|
+
const contents = {};
|
|
3472
2688
|
const data = parsedOutput.body;
|
|
3473
2689
|
if (data.ExceptionCause !== undefined && data.ExceptionCause !== null) {
|
|
3474
2690
|
contents.ExceptionCause = smithy_client_1.expectString(data.ExceptionCause);
|
|
@@ -3476,7 +2692,11 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
3476
2692
|
if (data.Message !== undefined && data.Message !== null) {
|
|
3477
2693
|
contents.Message = smithy_client_1.expectString(data.Message);
|
|
3478
2694
|
}
|
|
3479
|
-
|
|
2695
|
+
const exception = new models_0_1.ValidationException({
|
|
2696
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
2697
|
+
...contents,
|
|
2698
|
+
});
|
|
2699
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
3480
2700
|
};
|
|
3481
2701
|
const serializeAws_restJson1Action = (input, context) => {
|
|
3482
2702
|
return {
|
|
@@ -3975,7 +3195,7 @@ const deserializeAws_restJson1JobError = (output, context) => {
|
|
|
3975
3195
|
};
|
|
3976
3196
|
};
|
|
3977
3197
|
const deserializeAws_restJson1ListOfAssetDestinationEntry = (output, context) => {
|
|
3978
|
-
|
|
3198
|
+
const retVal = (output || [])
|
|
3979
3199
|
.filter((e) => e != null)
|
|
3980
3200
|
.map((entry) => {
|
|
3981
3201
|
if (entry === null) {
|
|
@@ -3983,9 +3203,10 @@ const deserializeAws_restJson1ListOfAssetDestinationEntry = (output, context) =>
|
|
|
3983
3203
|
}
|
|
3984
3204
|
return deserializeAws_restJson1AssetDestinationEntry(entry, context);
|
|
3985
3205
|
});
|
|
3206
|
+
return retVal;
|
|
3986
3207
|
};
|
|
3987
3208
|
const deserializeAws_restJson1ListOfAssetEntry = (output, context) => {
|
|
3988
|
-
|
|
3209
|
+
const retVal = (output || [])
|
|
3989
3210
|
.filter((e) => e != null)
|
|
3990
3211
|
.map((entry) => {
|
|
3991
3212
|
if (entry === null) {
|
|
@@ -3993,9 +3214,10 @@ const deserializeAws_restJson1ListOfAssetEntry = (output, context) => {
|
|
|
3993
3214
|
}
|
|
3994
3215
|
return deserializeAws_restJson1AssetEntry(entry, context);
|
|
3995
3216
|
});
|
|
3217
|
+
return retVal;
|
|
3996
3218
|
};
|
|
3997
3219
|
const deserializeAws_restJson1ListOfAssetSourceEntry = (output, context) => {
|
|
3998
|
-
|
|
3220
|
+
const retVal = (output || [])
|
|
3999
3221
|
.filter((e) => e != null)
|
|
4000
3222
|
.map((entry) => {
|
|
4001
3223
|
if (entry === null) {
|
|
@@ -4003,9 +3225,10 @@ const deserializeAws_restJson1ListOfAssetSourceEntry = (output, context) => {
|
|
|
4003
3225
|
}
|
|
4004
3226
|
return deserializeAws_restJson1AssetSourceEntry(entry, context);
|
|
4005
3227
|
});
|
|
3228
|
+
return retVal;
|
|
4006
3229
|
};
|
|
4007
3230
|
const deserializeAws_restJson1ListOfDataSetEntry = (output, context) => {
|
|
4008
|
-
|
|
3231
|
+
const retVal = (output || [])
|
|
4009
3232
|
.filter((e) => e != null)
|
|
4010
3233
|
.map((entry) => {
|
|
4011
3234
|
if (entry === null) {
|
|
@@ -4013,9 +3236,10 @@ const deserializeAws_restJson1ListOfDataSetEntry = (output, context) => {
|
|
|
4013
3236
|
}
|
|
4014
3237
|
return deserializeAws_restJson1DataSetEntry(entry, context);
|
|
4015
3238
|
});
|
|
3239
|
+
return retVal;
|
|
4016
3240
|
};
|
|
4017
3241
|
const deserializeAws_restJson1ListOfEventActionEntry = (output, context) => {
|
|
4018
|
-
|
|
3242
|
+
const retVal = (output || [])
|
|
4019
3243
|
.filter((e) => e != null)
|
|
4020
3244
|
.map((entry) => {
|
|
4021
3245
|
if (entry === null) {
|
|
@@ -4023,9 +3247,10 @@ const deserializeAws_restJson1ListOfEventActionEntry = (output, context) => {
|
|
|
4023
3247
|
}
|
|
4024
3248
|
return deserializeAws_restJson1EventActionEntry(entry, context);
|
|
4025
3249
|
});
|
|
3250
|
+
return retVal;
|
|
4026
3251
|
};
|
|
4027
3252
|
const deserializeAws_restJson1ListOfJobEntry = (output, context) => {
|
|
4028
|
-
|
|
3253
|
+
const retVal = (output || [])
|
|
4029
3254
|
.filter((e) => e != null)
|
|
4030
3255
|
.map((entry) => {
|
|
4031
3256
|
if (entry === null) {
|
|
@@ -4033,9 +3258,10 @@ const deserializeAws_restJson1ListOfJobEntry = (output, context) => {
|
|
|
4033
3258
|
}
|
|
4034
3259
|
return deserializeAws_restJson1JobEntry(entry, context);
|
|
4035
3260
|
});
|
|
3261
|
+
return retVal;
|
|
4036
3262
|
};
|
|
4037
3263
|
const deserializeAws_restJson1ListOfJobError = (output, context) => {
|
|
4038
|
-
|
|
3264
|
+
const retVal = (output || [])
|
|
4039
3265
|
.filter((e) => e != null)
|
|
4040
3266
|
.map((entry) => {
|
|
4041
3267
|
if (entry === null) {
|
|
@@ -4043,9 +3269,10 @@ const deserializeAws_restJson1ListOfJobError = (output, context) => {
|
|
|
4043
3269
|
}
|
|
4044
3270
|
return deserializeAws_restJson1JobError(entry, context);
|
|
4045
3271
|
});
|
|
3272
|
+
return retVal;
|
|
4046
3273
|
};
|
|
4047
3274
|
const deserializeAws_restJson1ListOfRedshiftDataShareAssetSourceEntry = (output, context) => {
|
|
4048
|
-
|
|
3275
|
+
const retVal = (output || [])
|
|
4049
3276
|
.filter((e) => e != null)
|
|
4050
3277
|
.map((entry) => {
|
|
4051
3278
|
if (entry === null) {
|
|
@@ -4053,9 +3280,10 @@ const deserializeAws_restJson1ListOfRedshiftDataShareAssetSourceEntry = (output,
|
|
|
4053
3280
|
}
|
|
4054
3281
|
return deserializeAws_restJson1RedshiftDataShareAssetSourceEntry(entry, context);
|
|
4055
3282
|
});
|
|
3283
|
+
return retVal;
|
|
4056
3284
|
};
|
|
4057
3285
|
const deserializeAws_restJson1ListOfRevisionDestinationEntry = (output, context) => {
|
|
4058
|
-
|
|
3286
|
+
const retVal = (output || [])
|
|
4059
3287
|
.filter((e) => e != null)
|
|
4060
3288
|
.map((entry) => {
|
|
4061
3289
|
if (entry === null) {
|
|
@@ -4063,9 +3291,10 @@ const deserializeAws_restJson1ListOfRevisionDestinationEntry = (output, context)
|
|
|
4063
3291
|
}
|
|
4064
3292
|
return deserializeAws_restJson1RevisionDestinationEntry(entry, context);
|
|
4065
3293
|
});
|
|
3294
|
+
return retVal;
|
|
4066
3295
|
};
|
|
4067
3296
|
const deserializeAws_restJson1ListOfRevisionEntry = (output, context) => {
|
|
4068
|
-
|
|
3297
|
+
const retVal = (output || [])
|
|
4069
3298
|
.filter((e) => e != null)
|
|
4070
3299
|
.map((entry) => {
|
|
4071
3300
|
if (entry === null) {
|
|
@@ -4073,6 +3302,7 @@ const deserializeAws_restJson1ListOfRevisionEntry = (output, context) => {
|
|
|
4073
3302
|
}
|
|
4074
3303
|
return deserializeAws_restJson1RevisionEntry(entry, context);
|
|
4075
3304
|
});
|
|
3305
|
+
return retVal;
|
|
4076
3306
|
};
|
|
4077
3307
|
const deserializeAws_restJson1MapOf__string = (output, context) => {
|
|
4078
3308
|
return Object.entries(output).reduce((acc, [key, value]) => {
|