@aws-sdk/client-finspace-data 3.504.0 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +63 -1047
- package/dist-es/protocols/Aws_restJson1.js +54 -1038
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1003,7 +1003,7 @@ var se_UpdateUserCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1003
1003
|
}, "se_UpdateUserCommand");
|
|
1004
1004
|
var de_AssociateUserToPermissionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1005
1005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1006
|
-
return
|
|
1006
|
+
return de_CommandError(output, context);
|
|
1007
1007
|
}
|
|
1008
1008
|
const contents = (0, import_smithy_client.map)({
|
|
1009
1009
|
$metadata: deserializeMetadata(output)
|
|
@@ -1014,43 +1014,9 @@ var de_AssociateUserToPermissionGroupCommand = /* @__PURE__ */ __name(async (out
|
|
|
1014
1014
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1015
1015
|
return contents;
|
|
1016
1016
|
}, "de_AssociateUserToPermissionGroupCommand");
|
|
1017
|
-
var de_AssociateUserToPermissionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1018
|
-
const parsedOutput = {
|
|
1019
|
-
...output,
|
|
1020
|
-
body: await parseErrorBody(output.body, context)
|
|
1021
|
-
};
|
|
1022
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1023
|
-
switch (errorCode) {
|
|
1024
|
-
case "AccessDeniedException":
|
|
1025
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1026
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1027
|
-
case "ConflictException":
|
|
1028
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
1029
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "InternalServerException":
|
|
1031
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1032
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1033
|
-
case "ResourceNotFoundException":
|
|
1034
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1035
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1036
|
-
case "ThrottlingException":
|
|
1037
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1038
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1039
|
-
case "ValidationException":
|
|
1040
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1041
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1042
|
-
default:
|
|
1043
|
-
const parsedBody = parsedOutput.body;
|
|
1044
|
-
return throwDefaultError({
|
|
1045
|
-
output,
|
|
1046
|
-
parsedBody,
|
|
1047
|
-
errorCode
|
|
1048
|
-
});
|
|
1049
|
-
}
|
|
1050
|
-
}, "de_AssociateUserToPermissionGroupCommandError");
|
|
1051
1017
|
var de_CreateChangesetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1052
1018
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1053
|
-
return
|
|
1019
|
+
return de_CommandError(output, context);
|
|
1054
1020
|
}
|
|
1055
1021
|
const contents = (0, import_smithy_client.map)({
|
|
1056
1022
|
$metadata: deserializeMetadata(output)
|
|
@@ -1063,46 +1029,9 @@ var de_CreateChangesetCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1063
1029
|
Object.assign(contents, doc);
|
|
1064
1030
|
return contents;
|
|
1065
1031
|
}, "de_CreateChangesetCommand");
|
|
1066
|
-
var de_CreateChangesetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1067
|
-
const parsedOutput = {
|
|
1068
|
-
...output,
|
|
1069
|
-
body: await parseErrorBody(output.body, context)
|
|
1070
|
-
};
|
|
1071
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1072
|
-
switch (errorCode) {
|
|
1073
|
-
case "AccessDeniedException":
|
|
1074
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1075
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "ConflictException":
|
|
1077
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
1078
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "InternalServerException":
|
|
1080
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1081
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "LimitExceededException":
|
|
1083
|
-
case "com.amazonaws.finspacedata#LimitExceededException":
|
|
1084
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "ResourceNotFoundException":
|
|
1086
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1087
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "ThrottlingException":
|
|
1089
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1090
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "ValidationException":
|
|
1092
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1093
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1094
|
-
default:
|
|
1095
|
-
const parsedBody = parsedOutput.body;
|
|
1096
|
-
return throwDefaultError({
|
|
1097
|
-
output,
|
|
1098
|
-
parsedBody,
|
|
1099
|
-
errorCode
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
|
-
}, "de_CreateChangesetCommandError");
|
|
1103
1032
|
var de_CreateDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1104
1033
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1105
|
-
return
|
|
1034
|
+
return de_CommandError(output, context);
|
|
1106
1035
|
}
|
|
1107
1036
|
const contents = (0, import_smithy_client.map)({
|
|
1108
1037
|
$metadata: deserializeMetadata(output)
|
|
@@ -1114,46 +1043,9 @@ var de_CreateDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1114
1043
|
Object.assign(contents, doc);
|
|
1115
1044
|
return contents;
|
|
1116
1045
|
}, "de_CreateDatasetCommand");
|
|
1117
|
-
var de_CreateDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1118
|
-
const parsedOutput = {
|
|
1119
|
-
...output,
|
|
1120
|
-
body: await parseErrorBody(output.body, context)
|
|
1121
|
-
};
|
|
1122
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
|
-
switch (errorCode) {
|
|
1124
|
-
case "AccessDeniedException":
|
|
1125
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1126
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "ConflictException":
|
|
1128
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
1129
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "InternalServerException":
|
|
1131
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1132
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "LimitExceededException":
|
|
1134
|
-
case "com.amazonaws.finspacedata#LimitExceededException":
|
|
1135
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1136
|
-
case "ResourceNotFoundException":
|
|
1137
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1138
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1139
|
-
case "ThrottlingException":
|
|
1140
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1141
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1142
|
-
case "ValidationException":
|
|
1143
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1144
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1145
|
-
default:
|
|
1146
|
-
const parsedBody = parsedOutput.body;
|
|
1147
|
-
return throwDefaultError({
|
|
1148
|
-
output,
|
|
1149
|
-
parsedBody,
|
|
1150
|
-
errorCode
|
|
1151
|
-
});
|
|
1152
|
-
}
|
|
1153
|
-
}, "de_CreateDatasetCommandError");
|
|
1154
1046
|
var de_CreateDataViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1155
1047
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1156
|
-
return
|
|
1048
|
+
return de_CommandError(output, context);
|
|
1157
1049
|
}
|
|
1158
1050
|
const contents = (0, import_smithy_client.map)({
|
|
1159
1051
|
$metadata: deserializeMetadata(output)
|
|
@@ -1166,43 +1058,9 @@ var de_CreateDataViewCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1166
1058
|
Object.assign(contents, doc);
|
|
1167
1059
|
return contents;
|
|
1168
1060
|
}, "de_CreateDataViewCommand");
|
|
1169
|
-
var de_CreateDataViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1170
|
-
const parsedOutput = {
|
|
1171
|
-
...output,
|
|
1172
|
-
body: await parseErrorBody(output.body, context)
|
|
1173
|
-
};
|
|
1174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1175
|
-
switch (errorCode) {
|
|
1176
|
-
case "ConflictException":
|
|
1177
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
1178
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "InternalServerException":
|
|
1180
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1181
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "LimitExceededException":
|
|
1183
|
-
case "com.amazonaws.finspacedata#LimitExceededException":
|
|
1184
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ResourceNotFoundException":
|
|
1186
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1187
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1188
|
-
case "ThrottlingException":
|
|
1189
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1190
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1191
|
-
case "ValidationException":
|
|
1192
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1193
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1194
|
-
default:
|
|
1195
|
-
const parsedBody = parsedOutput.body;
|
|
1196
|
-
return throwDefaultError({
|
|
1197
|
-
output,
|
|
1198
|
-
parsedBody,
|
|
1199
|
-
errorCode
|
|
1200
|
-
});
|
|
1201
|
-
}
|
|
1202
|
-
}, "de_CreateDataViewCommandError");
|
|
1203
1061
|
var de_CreatePermissionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1204
1062
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1205
|
-
return
|
|
1063
|
+
return de_CommandError(output, context);
|
|
1206
1064
|
}
|
|
1207
1065
|
const contents = (0, import_smithy_client.map)({
|
|
1208
1066
|
$metadata: deserializeMetadata(output)
|
|
@@ -1214,43 +1072,9 @@ var de_CreatePermissionGroupCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1214
1072
|
Object.assign(contents, doc);
|
|
1215
1073
|
return contents;
|
|
1216
1074
|
}, "de_CreatePermissionGroupCommand");
|
|
1217
|
-
var de_CreatePermissionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1218
|
-
const parsedOutput = {
|
|
1219
|
-
...output,
|
|
1220
|
-
body: await parseErrorBody(output.body, context)
|
|
1221
|
-
};
|
|
1222
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1223
|
-
switch (errorCode) {
|
|
1224
|
-
case "AccessDeniedException":
|
|
1225
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1226
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1227
|
-
case "ConflictException":
|
|
1228
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
1229
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1230
|
-
case "InternalServerException":
|
|
1231
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1232
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1233
|
-
case "LimitExceededException":
|
|
1234
|
-
case "com.amazonaws.finspacedata#LimitExceededException":
|
|
1235
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1236
|
-
case "ThrottlingException":
|
|
1237
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1238
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1239
|
-
case "ValidationException":
|
|
1240
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1241
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1242
|
-
default:
|
|
1243
|
-
const parsedBody = parsedOutput.body;
|
|
1244
|
-
return throwDefaultError({
|
|
1245
|
-
output,
|
|
1246
|
-
parsedBody,
|
|
1247
|
-
errorCode
|
|
1248
|
-
});
|
|
1249
|
-
}
|
|
1250
|
-
}, "de_CreatePermissionGroupCommandError");
|
|
1251
1075
|
var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1252
1076
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1253
|
-
return
|
|
1077
|
+
return de_CommandError(output, context);
|
|
1254
1078
|
}
|
|
1255
1079
|
const contents = (0, import_smithy_client.map)({
|
|
1256
1080
|
$metadata: deserializeMetadata(output)
|
|
@@ -1262,43 +1086,9 @@ var de_CreateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1262
1086
|
Object.assign(contents, doc);
|
|
1263
1087
|
return contents;
|
|
1264
1088
|
}, "de_CreateUserCommand");
|
|
1265
|
-
var de_CreateUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1266
|
-
const parsedOutput = {
|
|
1267
|
-
...output,
|
|
1268
|
-
body: await parseErrorBody(output.body, context)
|
|
1269
|
-
};
|
|
1270
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1271
|
-
switch (errorCode) {
|
|
1272
|
-
case "AccessDeniedException":
|
|
1273
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1274
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1275
|
-
case "ConflictException":
|
|
1276
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
1277
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1278
|
-
case "InternalServerException":
|
|
1279
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1280
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1281
|
-
case "LimitExceededException":
|
|
1282
|
-
case "com.amazonaws.finspacedata#LimitExceededException":
|
|
1283
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1284
|
-
case "ThrottlingException":
|
|
1285
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1286
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1287
|
-
case "ValidationException":
|
|
1288
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1289
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1290
|
-
default:
|
|
1291
|
-
const parsedBody = parsedOutput.body;
|
|
1292
|
-
return throwDefaultError({
|
|
1293
|
-
output,
|
|
1294
|
-
parsedBody,
|
|
1295
|
-
errorCode
|
|
1296
|
-
});
|
|
1297
|
-
}
|
|
1298
|
-
}, "de_CreateUserCommandError");
|
|
1299
1089
|
var de_DeleteDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1300
1090
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1301
|
-
return
|
|
1091
|
+
return de_CommandError(output, context);
|
|
1302
1092
|
}
|
|
1303
1093
|
const contents = (0, import_smithy_client.map)({
|
|
1304
1094
|
$metadata: deserializeMetadata(output)
|
|
@@ -1310,46 +1100,9 @@ var de_DeleteDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1310
1100
|
Object.assign(contents, doc);
|
|
1311
1101
|
return contents;
|
|
1312
1102
|
}, "de_DeleteDatasetCommand");
|
|
1313
|
-
var de_DeleteDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1314
|
-
const parsedOutput = {
|
|
1315
|
-
...output,
|
|
1316
|
-
body: await parseErrorBody(output.body, context)
|
|
1317
|
-
};
|
|
1318
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1319
|
-
switch (errorCode) {
|
|
1320
|
-
case "AccessDeniedException":
|
|
1321
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1322
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1323
|
-
case "ConflictException":
|
|
1324
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
1325
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1326
|
-
case "InternalServerException":
|
|
1327
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1328
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1329
|
-
case "LimitExceededException":
|
|
1330
|
-
case "com.amazonaws.finspacedata#LimitExceededException":
|
|
1331
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1332
|
-
case "ResourceNotFoundException":
|
|
1333
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1334
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1335
|
-
case "ThrottlingException":
|
|
1336
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1337
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1338
|
-
case "ValidationException":
|
|
1339
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1340
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1341
|
-
default:
|
|
1342
|
-
const parsedBody = parsedOutput.body;
|
|
1343
|
-
return throwDefaultError({
|
|
1344
|
-
output,
|
|
1345
|
-
parsedBody,
|
|
1346
|
-
errorCode
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
}, "de_DeleteDatasetCommandError");
|
|
1350
1103
|
var de_DeletePermissionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1351
1104
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1352
|
-
return
|
|
1105
|
+
return de_CommandError(output, context);
|
|
1353
1106
|
}
|
|
1354
1107
|
const contents = (0, import_smithy_client.map)({
|
|
1355
1108
|
$metadata: deserializeMetadata(output)
|
|
@@ -1361,46 +1114,9 @@ var de_DeletePermissionGroupCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1361
1114
|
Object.assign(contents, doc);
|
|
1362
1115
|
return contents;
|
|
1363
1116
|
}, "de_DeletePermissionGroupCommand");
|
|
1364
|
-
var de_DeletePermissionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1365
|
-
const parsedOutput = {
|
|
1366
|
-
...output,
|
|
1367
|
-
body: await parseErrorBody(output.body, context)
|
|
1368
|
-
};
|
|
1369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1370
|
-
switch (errorCode) {
|
|
1371
|
-
case "AccessDeniedException":
|
|
1372
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1373
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "ConflictException":
|
|
1375
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
1376
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "InternalServerException":
|
|
1378
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1379
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "LimitExceededException":
|
|
1381
|
-
case "com.amazonaws.finspacedata#LimitExceededException":
|
|
1382
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "ResourceNotFoundException":
|
|
1384
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1385
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "ThrottlingException":
|
|
1387
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1388
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "ValidationException":
|
|
1390
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1391
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1392
|
-
default:
|
|
1393
|
-
const parsedBody = parsedOutput.body;
|
|
1394
|
-
return throwDefaultError({
|
|
1395
|
-
output,
|
|
1396
|
-
parsedBody,
|
|
1397
|
-
errorCode
|
|
1398
|
-
});
|
|
1399
|
-
}
|
|
1400
|
-
}, "de_DeletePermissionGroupCommandError");
|
|
1401
1117
|
var de_DisableUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1402
1118
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1403
|
-
return
|
|
1119
|
+
return de_CommandError(output, context);
|
|
1404
1120
|
}
|
|
1405
1121
|
const contents = (0, import_smithy_client.map)({
|
|
1406
1122
|
$metadata: deserializeMetadata(output)
|
|
@@ -1412,43 +1128,9 @@ var de_DisableUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1412
1128
|
Object.assign(contents, doc);
|
|
1413
1129
|
return contents;
|
|
1414
1130
|
}, "de_DisableUserCommand");
|
|
1415
|
-
var de_DisableUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1416
|
-
const parsedOutput = {
|
|
1417
|
-
...output,
|
|
1418
|
-
body: await parseErrorBody(output.body, context)
|
|
1419
|
-
};
|
|
1420
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1421
|
-
switch (errorCode) {
|
|
1422
|
-
case "AccessDeniedException":
|
|
1423
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1424
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1425
|
-
case "ConflictException":
|
|
1426
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
1427
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1428
|
-
case "InternalServerException":
|
|
1429
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1430
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "ResourceNotFoundException":
|
|
1432
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1433
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "ThrottlingException":
|
|
1435
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1436
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "ValidationException":
|
|
1438
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1439
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1440
|
-
default:
|
|
1441
|
-
const parsedBody = parsedOutput.body;
|
|
1442
|
-
return throwDefaultError({
|
|
1443
|
-
output,
|
|
1444
|
-
parsedBody,
|
|
1445
|
-
errorCode
|
|
1446
|
-
});
|
|
1447
|
-
}
|
|
1448
|
-
}, "de_DisableUserCommandError");
|
|
1449
1131
|
var de_DisassociateUserFromPermissionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1450
1132
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1451
|
-
return
|
|
1133
|
+
return de_CommandError(output, context);
|
|
1452
1134
|
}
|
|
1453
1135
|
const contents = (0, import_smithy_client.map)({
|
|
1454
1136
|
$metadata: deserializeMetadata(output)
|
|
@@ -1459,43 +1141,9 @@ var de_DisassociateUserFromPermissionGroupCommand = /* @__PURE__ */ __name(async
|
|
|
1459
1141
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1460
1142
|
return contents;
|
|
1461
1143
|
}, "de_DisassociateUserFromPermissionGroupCommand");
|
|
1462
|
-
var de_DisassociateUserFromPermissionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1463
|
-
const parsedOutput = {
|
|
1464
|
-
...output,
|
|
1465
|
-
body: await parseErrorBody(output.body, context)
|
|
1466
|
-
};
|
|
1467
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1468
|
-
switch (errorCode) {
|
|
1469
|
-
case "AccessDeniedException":
|
|
1470
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1471
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "ConflictException":
|
|
1473
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
1474
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "InternalServerException":
|
|
1476
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1477
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "ResourceNotFoundException":
|
|
1479
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1480
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "ThrottlingException":
|
|
1482
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1483
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1484
|
-
case "ValidationException":
|
|
1485
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1486
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1487
|
-
default:
|
|
1488
|
-
const parsedBody = parsedOutput.body;
|
|
1489
|
-
return throwDefaultError({
|
|
1490
|
-
output,
|
|
1491
|
-
parsedBody,
|
|
1492
|
-
errorCode
|
|
1493
|
-
});
|
|
1494
|
-
}
|
|
1495
|
-
}, "de_DisassociateUserFromPermissionGroupCommandError");
|
|
1496
1144
|
var de_EnableUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1497
1145
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1498
|
-
return
|
|
1146
|
+
return de_CommandError(output, context);
|
|
1499
1147
|
}
|
|
1500
1148
|
const contents = (0, import_smithy_client.map)({
|
|
1501
1149
|
$metadata: deserializeMetadata(output)
|
|
@@ -1507,46 +1155,9 @@ var de_EnableUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1507
1155
|
Object.assign(contents, doc);
|
|
1508
1156
|
return contents;
|
|
1509
1157
|
}, "de_EnableUserCommand");
|
|
1510
|
-
var de_EnableUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1511
|
-
const parsedOutput = {
|
|
1512
|
-
...output,
|
|
1513
|
-
body: await parseErrorBody(output.body, context)
|
|
1514
|
-
};
|
|
1515
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1516
|
-
switch (errorCode) {
|
|
1517
|
-
case "AccessDeniedException":
|
|
1518
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1519
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1520
|
-
case "ConflictException":
|
|
1521
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
1522
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1523
|
-
case "InternalServerException":
|
|
1524
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1525
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1526
|
-
case "LimitExceededException":
|
|
1527
|
-
case "com.amazonaws.finspacedata#LimitExceededException":
|
|
1528
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1529
|
-
case "ResourceNotFoundException":
|
|
1530
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1531
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1532
|
-
case "ThrottlingException":
|
|
1533
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1534
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1535
|
-
case "ValidationException":
|
|
1536
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1537
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1538
|
-
default:
|
|
1539
|
-
const parsedBody = parsedOutput.body;
|
|
1540
|
-
return throwDefaultError({
|
|
1541
|
-
output,
|
|
1542
|
-
parsedBody,
|
|
1543
|
-
errorCode
|
|
1544
|
-
});
|
|
1545
|
-
}
|
|
1546
|
-
}, "de_EnableUserCommandError");
|
|
1547
1158
|
var de_GetChangesetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1548
1159
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1549
|
-
return
|
|
1160
|
+
return de_CommandError(output, context);
|
|
1550
1161
|
}
|
|
1551
1162
|
const contents = (0, import_smithy_client.map)({
|
|
1552
1163
|
$metadata: deserializeMetadata(output)
|
|
@@ -1570,43 +1181,9 @@ var de_GetChangesetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1570
1181
|
Object.assign(contents, doc);
|
|
1571
1182
|
return contents;
|
|
1572
1183
|
}, "de_GetChangesetCommand");
|
|
1573
|
-
var de_GetChangesetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1574
|
-
const parsedOutput = {
|
|
1575
|
-
...output,
|
|
1576
|
-
body: await parseErrorBody(output.body, context)
|
|
1577
|
-
};
|
|
1578
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
|
-
switch (errorCode) {
|
|
1580
|
-
case "AccessDeniedException":
|
|
1581
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1582
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1583
|
-
case "ConflictException":
|
|
1584
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
1585
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "InternalServerException":
|
|
1587
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1588
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "ResourceNotFoundException":
|
|
1590
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1591
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "ThrottlingException":
|
|
1593
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1594
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "ValidationException":
|
|
1596
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1597
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1598
|
-
default:
|
|
1599
|
-
const parsedBody = parsedOutput.body;
|
|
1600
|
-
return throwDefaultError({
|
|
1601
|
-
output,
|
|
1602
|
-
parsedBody,
|
|
1603
|
-
errorCode
|
|
1604
|
-
});
|
|
1605
|
-
}
|
|
1606
|
-
}, "de_GetChangesetCommandError");
|
|
1607
1184
|
var de_GetDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1608
1185
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1609
|
-
return
|
|
1186
|
+
return de_CommandError(output, context);
|
|
1610
1187
|
}
|
|
1611
1188
|
const contents = (0, import_smithy_client.map)({
|
|
1612
1189
|
$metadata: deserializeMetadata(output)
|
|
@@ -1627,43 +1204,9 @@ var de_GetDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1627
1204
|
Object.assign(contents, doc);
|
|
1628
1205
|
return contents;
|
|
1629
1206
|
}, "de_GetDatasetCommand");
|
|
1630
|
-
var de_GetDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1631
|
-
const parsedOutput = {
|
|
1632
|
-
...output,
|
|
1633
|
-
body: await parseErrorBody(output.body, context)
|
|
1634
|
-
};
|
|
1635
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1636
|
-
switch (errorCode) {
|
|
1637
|
-
case "AccessDeniedException":
|
|
1638
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1639
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1640
|
-
case "ConflictException":
|
|
1641
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
1642
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1643
|
-
case "InternalServerException":
|
|
1644
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1645
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1646
|
-
case "ResourceNotFoundException":
|
|
1647
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1648
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1649
|
-
case "ThrottlingException":
|
|
1650
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1651
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1652
|
-
case "ValidationException":
|
|
1653
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1654
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1655
|
-
default:
|
|
1656
|
-
const parsedBody = parsedOutput.body;
|
|
1657
|
-
return throwDefaultError({
|
|
1658
|
-
output,
|
|
1659
|
-
parsedBody,
|
|
1660
|
-
errorCode
|
|
1661
|
-
});
|
|
1662
|
-
}
|
|
1663
|
-
}, "de_GetDatasetCommandError");
|
|
1664
1207
|
var de_GetDataViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1665
1208
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1666
|
-
return
|
|
1209
|
+
return de_CommandError(output, context);
|
|
1667
1210
|
}
|
|
1668
1211
|
const contents = (0, import_smithy_client.map)({
|
|
1669
1212
|
$metadata: deserializeMetadata(output)
|
|
@@ -1674,52 +1217,21 @@ var de_GetDataViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1674
1217
|
autoUpdate: import_smithy_client.expectBoolean,
|
|
1675
1218
|
createTime: import_smithy_client.expectLong,
|
|
1676
1219
|
dataViewArn: import_smithy_client.expectString,
|
|
1677
|
-
dataViewId: import_smithy_client.expectString,
|
|
1678
|
-
datasetId: import_smithy_client.expectString,
|
|
1679
|
-
destinationTypeParams: import_smithy_client._json,
|
|
1680
|
-
errorInfo: import_smithy_client._json,
|
|
1681
|
-
lastModifiedTime: import_smithy_client.expectLong,
|
|
1682
|
-
partitionColumns: import_smithy_client._json,
|
|
1683
|
-
sortColumns: import_smithy_client._json,
|
|
1684
|
-
status: import_smithy_client.expectString
|
|
1685
|
-
});
|
|
1686
|
-
Object.assign(contents, doc);
|
|
1687
|
-
return contents;
|
|
1688
|
-
}, "de_GetDataViewCommand");
|
|
1689
|
-
var de_GetDataViewCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1690
|
-
const parsedOutput = {
|
|
1691
|
-
...output,
|
|
1692
|
-
body: await parseErrorBody(output.body, context)
|
|
1693
|
-
};
|
|
1694
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1695
|
-
switch (errorCode) {
|
|
1696
|
-
case "ConflictException":
|
|
1697
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
1698
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1699
|
-
case "InternalServerException":
|
|
1700
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1701
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "ResourceNotFoundException":
|
|
1703
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1704
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "ThrottlingException":
|
|
1706
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1707
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "ValidationException":
|
|
1709
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1710
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1711
|
-
default:
|
|
1712
|
-
const parsedBody = parsedOutput.body;
|
|
1713
|
-
return throwDefaultError({
|
|
1714
|
-
output,
|
|
1715
|
-
parsedBody,
|
|
1716
|
-
errorCode
|
|
1717
|
-
});
|
|
1718
|
-
}
|
|
1719
|
-
}, "de_GetDataViewCommandError");
|
|
1220
|
+
dataViewId: import_smithy_client.expectString,
|
|
1221
|
+
datasetId: import_smithy_client.expectString,
|
|
1222
|
+
destinationTypeParams: import_smithy_client._json,
|
|
1223
|
+
errorInfo: import_smithy_client._json,
|
|
1224
|
+
lastModifiedTime: import_smithy_client.expectLong,
|
|
1225
|
+
partitionColumns: import_smithy_client._json,
|
|
1226
|
+
sortColumns: import_smithy_client._json,
|
|
1227
|
+
status: import_smithy_client.expectString
|
|
1228
|
+
});
|
|
1229
|
+
Object.assign(contents, doc);
|
|
1230
|
+
return contents;
|
|
1231
|
+
}, "de_GetDataViewCommand");
|
|
1720
1232
|
var de_GetExternalDataViewAccessDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1721
1233
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1722
|
-
return
|
|
1234
|
+
return de_CommandError(output, context);
|
|
1723
1235
|
}
|
|
1724
1236
|
const contents = (0, import_smithy_client.map)({
|
|
1725
1237
|
$metadata: deserializeMetadata(output)
|
|
@@ -1732,40 +1244,9 @@ var de_GetExternalDataViewAccessDetailsCommand = /* @__PURE__ */ __name(async (o
|
|
|
1732
1244
|
Object.assign(contents, doc);
|
|
1733
1245
|
return contents;
|
|
1734
1246
|
}, "de_GetExternalDataViewAccessDetailsCommand");
|
|
1735
|
-
var de_GetExternalDataViewAccessDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1736
|
-
const parsedOutput = {
|
|
1737
|
-
...output,
|
|
1738
|
-
body: await parseErrorBody(output.body, context)
|
|
1739
|
-
};
|
|
1740
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1741
|
-
switch (errorCode) {
|
|
1742
|
-
case "AccessDeniedException":
|
|
1743
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1744
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1745
|
-
case "InternalServerException":
|
|
1746
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1747
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1748
|
-
case "ResourceNotFoundException":
|
|
1749
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1750
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "ThrottlingException":
|
|
1752
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1753
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "ValidationException":
|
|
1755
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1756
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1757
|
-
default:
|
|
1758
|
-
const parsedBody = parsedOutput.body;
|
|
1759
|
-
return throwDefaultError({
|
|
1760
|
-
output,
|
|
1761
|
-
parsedBody,
|
|
1762
|
-
errorCode
|
|
1763
|
-
});
|
|
1764
|
-
}
|
|
1765
|
-
}, "de_GetExternalDataViewAccessDetailsCommandError");
|
|
1766
1247
|
var de_GetPermissionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1767
1248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1768
|
-
return
|
|
1249
|
+
return de_CommandError(output, context);
|
|
1769
1250
|
}
|
|
1770
1251
|
const contents = (0, import_smithy_client.map)({
|
|
1771
1252
|
$metadata: deserializeMetadata(output)
|
|
@@ -1777,40 +1258,9 @@ var de_GetPermissionGroupCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1777
1258
|
Object.assign(contents, doc);
|
|
1778
1259
|
return contents;
|
|
1779
1260
|
}, "de_GetPermissionGroupCommand");
|
|
1780
|
-
var de_GetPermissionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1781
|
-
const parsedOutput = {
|
|
1782
|
-
...output,
|
|
1783
|
-
body: await parseErrorBody(output.body, context)
|
|
1784
|
-
};
|
|
1785
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1786
|
-
switch (errorCode) {
|
|
1787
|
-
case "AccessDeniedException":
|
|
1788
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1789
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1790
|
-
case "InternalServerException":
|
|
1791
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1792
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1793
|
-
case "ResourceNotFoundException":
|
|
1794
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1795
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1796
|
-
case "ThrottlingException":
|
|
1797
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1798
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1799
|
-
case "ValidationException":
|
|
1800
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1801
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1802
|
-
default:
|
|
1803
|
-
const parsedBody = parsedOutput.body;
|
|
1804
|
-
return throwDefaultError({
|
|
1805
|
-
output,
|
|
1806
|
-
parsedBody,
|
|
1807
|
-
errorCode
|
|
1808
|
-
});
|
|
1809
|
-
}
|
|
1810
|
-
}, "de_GetPermissionGroupCommandError");
|
|
1811
1261
|
var de_GetProgrammaticAccessCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1812
1262
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1813
|
-
return
|
|
1263
|
+
return de_CommandError(output, context);
|
|
1814
1264
|
}
|
|
1815
1265
|
const contents = (0, import_smithy_client.map)({
|
|
1816
1266
|
$metadata: deserializeMetadata(output)
|
|
@@ -1823,37 +1273,9 @@ var de_GetProgrammaticAccessCredentialsCommand = /* @__PURE__ */ __name(async (o
|
|
|
1823
1273
|
Object.assign(contents, doc);
|
|
1824
1274
|
return contents;
|
|
1825
1275
|
}, "de_GetProgrammaticAccessCredentialsCommand");
|
|
1826
|
-
var de_GetProgrammaticAccessCredentialsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1827
|
-
const parsedOutput = {
|
|
1828
|
-
...output,
|
|
1829
|
-
body: await parseErrorBody(output.body, context)
|
|
1830
|
-
};
|
|
1831
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1832
|
-
switch (errorCode) {
|
|
1833
|
-
case "AccessDeniedException":
|
|
1834
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1835
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1836
|
-
case "InternalServerException":
|
|
1837
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1838
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1839
|
-
case "ThrottlingException":
|
|
1840
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1841
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1842
|
-
case "ValidationException":
|
|
1843
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1844
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1845
|
-
default:
|
|
1846
|
-
const parsedBody = parsedOutput.body;
|
|
1847
|
-
return throwDefaultError({
|
|
1848
|
-
output,
|
|
1849
|
-
parsedBody,
|
|
1850
|
-
errorCode
|
|
1851
|
-
});
|
|
1852
|
-
}
|
|
1853
|
-
}, "de_GetProgrammaticAccessCredentialsCommandError");
|
|
1854
1276
|
var de_GetUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1855
1277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1856
|
-
return
|
|
1278
|
+
return de_CommandError(output, context);
|
|
1857
1279
|
}
|
|
1858
1280
|
const contents = (0, import_smithy_client.map)({
|
|
1859
1281
|
$metadata: deserializeMetadata(output)
|
|
@@ -1877,40 +1299,9 @@ var de_GetUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1877
1299
|
Object.assign(contents, doc);
|
|
1878
1300
|
return contents;
|
|
1879
1301
|
}, "de_GetUserCommand");
|
|
1880
|
-
var de_GetUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1881
|
-
const parsedOutput = {
|
|
1882
|
-
...output,
|
|
1883
|
-
body: await parseErrorBody(output.body, context)
|
|
1884
|
-
};
|
|
1885
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1886
|
-
switch (errorCode) {
|
|
1887
|
-
case "AccessDeniedException":
|
|
1888
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1889
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1890
|
-
case "InternalServerException":
|
|
1891
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1892
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1893
|
-
case "ResourceNotFoundException":
|
|
1894
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1895
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1896
|
-
case "ThrottlingException":
|
|
1897
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1898
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1899
|
-
case "ValidationException":
|
|
1900
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1901
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1902
|
-
default:
|
|
1903
|
-
const parsedBody = parsedOutput.body;
|
|
1904
|
-
return throwDefaultError({
|
|
1905
|
-
output,
|
|
1906
|
-
parsedBody,
|
|
1907
|
-
errorCode
|
|
1908
|
-
});
|
|
1909
|
-
}
|
|
1910
|
-
}, "de_GetUserCommandError");
|
|
1911
1302
|
var de_GetWorkingLocationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1912
1303
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1913
|
-
return
|
|
1304
|
+
return de_CommandError(output, context);
|
|
1914
1305
|
}
|
|
1915
1306
|
const contents = (0, import_smithy_client.map)({
|
|
1916
1307
|
$metadata: deserializeMetadata(output)
|
|
@@ -1924,37 +1315,9 @@ var de_GetWorkingLocationCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1924
1315
|
Object.assign(contents, doc);
|
|
1925
1316
|
return contents;
|
|
1926
1317
|
}, "de_GetWorkingLocationCommand");
|
|
1927
|
-
var de_GetWorkingLocationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1928
|
-
const parsedOutput = {
|
|
1929
|
-
...output,
|
|
1930
|
-
body: await parseErrorBody(output.body, context)
|
|
1931
|
-
};
|
|
1932
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1933
|
-
switch (errorCode) {
|
|
1934
|
-
case "AccessDeniedException":
|
|
1935
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1936
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1937
|
-
case "InternalServerException":
|
|
1938
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1939
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1940
|
-
case "ThrottlingException":
|
|
1941
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1942
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1943
|
-
case "ValidationException":
|
|
1944
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1945
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1946
|
-
default:
|
|
1947
|
-
const parsedBody = parsedOutput.body;
|
|
1948
|
-
return throwDefaultError({
|
|
1949
|
-
output,
|
|
1950
|
-
parsedBody,
|
|
1951
|
-
errorCode
|
|
1952
|
-
});
|
|
1953
|
-
}
|
|
1954
|
-
}, "de_GetWorkingLocationCommandError");
|
|
1955
1318
|
var de_ListChangesetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1956
1319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1957
|
-
return
|
|
1320
|
+
return de_CommandError(output, context);
|
|
1958
1321
|
}
|
|
1959
1322
|
const contents = (0, import_smithy_client.map)({
|
|
1960
1323
|
$metadata: deserializeMetadata(output)
|
|
@@ -1967,43 +1330,9 @@ var de_ListChangesetsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1967
1330
|
Object.assign(contents, doc);
|
|
1968
1331
|
return contents;
|
|
1969
1332
|
}, "de_ListChangesetsCommand");
|
|
1970
|
-
var de_ListChangesetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1971
|
-
const parsedOutput = {
|
|
1972
|
-
...output,
|
|
1973
|
-
body: await parseErrorBody(output.body, context)
|
|
1974
|
-
};
|
|
1975
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1976
|
-
switch (errorCode) {
|
|
1977
|
-
case "AccessDeniedException":
|
|
1978
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
1979
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1980
|
-
case "ConflictException":
|
|
1981
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
1982
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1983
|
-
case "InternalServerException":
|
|
1984
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
1985
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1986
|
-
case "ResourceNotFoundException":
|
|
1987
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
1988
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1989
|
-
case "ThrottlingException":
|
|
1990
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
1991
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "ValidationException":
|
|
1993
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
1994
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1995
|
-
default:
|
|
1996
|
-
const parsedBody = parsedOutput.body;
|
|
1997
|
-
return throwDefaultError({
|
|
1998
|
-
output,
|
|
1999
|
-
parsedBody,
|
|
2000
|
-
errorCode
|
|
2001
|
-
});
|
|
2002
|
-
}
|
|
2003
|
-
}, "de_ListChangesetsCommandError");
|
|
2004
1333
|
var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2005
1334
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2006
|
-
return
|
|
1335
|
+
return de_CommandError(output, context);
|
|
2007
1336
|
}
|
|
2008
1337
|
const contents = (0, import_smithy_client.map)({
|
|
2009
1338
|
$metadata: deserializeMetadata(output)
|
|
@@ -2014,88 +1343,26 @@ var de_ListDatasetsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2014
1343
|
nextToken: import_smithy_client.expectString
|
|
2015
1344
|
});
|
|
2016
1345
|
Object.assign(contents, doc);
|
|
2017
|
-
return contents;
|
|
2018
|
-
}, "de_ListDatasetsCommand");
|
|
2019
|
-
var
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
body: await parseErrorBody(output.body, context)
|
|
2023
|
-
};
|
|
2024
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2025
|
-
switch (errorCode) {
|
|
2026
|
-
case "ConflictException":
|
|
2027
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
2028
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2029
|
-
case "InternalServerException":
|
|
2030
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
2031
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2032
|
-
case "ResourceNotFoundException":
|
|
2033
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
2034
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2035
|
-
case "ThrottlingException":
|
|
2036
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
2037
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2038
|
-
case "ValidationException":
|
|
2039
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
2040
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2041
|
-
default:
|
|
2042
|
-
const parsedBody = parsedOutput.body;
|
|
2043
|
-
return throwDefaultError({
|
|
2044
|
-
output,
|
|
2045
|
-
parsedBody,
|
|
2046
|
-
errorCode
|
|
2047
|
-
});
|
|
2048
|
-
}
|
|
2049
|
-
}, "de_ListDatasetsCommandError");
|
|
2050
|
-
var de_ListDataViewsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2051
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2052
|
-
return de_ListDataViewsCommandError(output, context);
|
|
2053
|
-
}
|
|
2054
|
-
const contents = (0, import_smithy_client.map)({
|
|
2055
|
-
$metadata: deserializeMetadata(output)
|
|
2056
|
-
});
|
|
2057
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2058
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
2059
|
-
dataViews: import_smithy_client._json,
|
|
2060
|
-
nextToken: import_smithy_client.expectString
|
|
2061
|
-
});
|
|
2062
|
-
Object.assign(contents, doc);
|
|
2063
|
-
return contents;
|
|
2064
|
-
}, "de_ListDataViewsCommand");
|
|
2065
|
-
var de_ListDataViewsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2066
|
-
const parsedOutput = {
|
|
2067
|
-
...output,
|
|
2068
|
-
body: await parseErrorBody(output.body, context)
|
|
2069
|
-
};
|
|
2070
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2071
|
-
switch (errorCode) {
|
|
2072
|
-
case "ConflictException":
|
|
2073
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
2074
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2075
|
-
case "InternalServerException":
|
|
2076
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
2077
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2078
|
-
case "ResourceNotFoundException":
|
|
2079
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
2080
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2081
|
-
case "ThrottlingException":
|
|
2082
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
2083
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2084
|
-
case "ValidationException":
|
|
2085
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
2086
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2087
|
-
default:
|
|
2088
|
-
const parsedBody = parsedOutput.body;
|
|
2089
|
-
return throwDefaultError({
|
|
2090
|
-
output,
|
|
2091
|
-
parsedBody,
|
|
2092
|
-
errorCode
|
|
2093
|
-
});
|
|
1346
|
+
return contents;
|
|
1347
|
+
}, "de_ListDatasetsCommand");
|
|
1348
|
+
var de_ListDataViewsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1349
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1350
|
+
return de_CommandError(output, context);
|
|
2094
1351
|
}
|
|
2095
|
-
|
|
1352
|
+
const contents = (0, import_smithy_client.map)({
|
|
1353
|
+
$metadata: deserializeMetadata(output)
|
|
1354
|
+
});
|
|
1355
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1356
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1357
|
+
dataViews: import_smithy_client._json,
|
|
1358
|
+
nextToken: import_smithy_client.expectString
|
|
1359
|
+
});
|
|
1360
|
+
Object.assign(contents, doc);
|
|
1361
|
+
return contents;
|
|
1362
|
+
}, "de_ListDataViewsCommand");
|
|
2096
1363
|
var de_ListPermissionGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2097
1364
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2098
|
-
return
|
|
1365
|
+
return de_CommandError(output, context);
|
|
2099
1366
|
}
|
|
2100
1367
|
const contents = (0, import_smithy_client.map)({
|
|
2101
1368
|
$metadata: deserializeMetadata(output)
|
|
@@ -2108,37 +1375,9 @@ var de_ListPermissionGroupsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2108
1375
|
Object.assign(contents, doc);
|
|
2109
1376
|
return contents;
|
|
2110
1377
|
}, "de_ListPermissionGroupsCommand");
|
|
2111
|
-
var de_ListPermissionGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2112
|
-
const parsedOutput = {
|
|
2113
|
-
...output,
|
|
2114
|
-
body: await parseErrorBody(output.body, context)
|
|
2115
|
-
};
|
|
2116
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2117
|
-
switch (errorCode) {
|
|
2118
|
-
case "AccessDeniedException":
|
|
2119
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
2120
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2121
|
-
case "InternalServerException":
|
|
2122
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
2123
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2124
|
-
case "ThrottlingException":
|
|
2125
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
2126
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2127
|
-
case "ValidationException":
|
|
2128
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
2129
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2130
|
-
default:
|
|
2131
|
-
const parsedBody = parsedOutput.body;
|
|
2132
|
-
return throwDefaultError({
|
|
2133
|
-
output,
|
|
2134
|
-
parsedBody,
|
|
2135
|
-
errorCode
|
|
2136
|
-
});
|
|
2137
|
-
}
|
|
2138
|
-
}, "de_ListPermissionGroupsCommandError");
|
|
2139
1378
|
var de_ListPermissionGroupsByUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2140
1379
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2141
|
-
return
|
|
1380
|
+
return de_CommandError(output, context);
|
|
2142
1381
|
}
|
|
2143
1382
|
const contents = (0, import_smithy_client.map)({
|
|
2144
1383
|
$metadata: deserializeMetadata(output)
|
|
@@ -2151,40 +1390,9 @@ var de_ListPermissionGroupsByUserCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2151
1390
|
Object.assign(contents, doc);
|
|
2152
1391
|
return contents;
|
|
2153
1392
|
}, "de_ListPermissionGroupsByUserCommand");
|
|
2154
|
-
var de_ListPermissionGroupsByUserCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2155
|
-
const parsedOutput = {
|
|
2156
|
-
...output,
|
|
2157
|
-
body: await parseErrorBody(output.body, context)
|
|
2158
|
-
};
|
|
2159
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2160
|
-
switch (errorCode) {
|
|
2161
|
-
case "AccessDeniedException":
|
|
2162
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
2163
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2164
|
-
case "InternalServerException":
|
|
2165
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
2166
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2167
|
-
case "ResourceNotFoundException":
|
|
2168
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
2169
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2170
|
-
case "ThrottlingException":
|
|
2171
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
2172
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2173
|
-
case "ValidationException":
|
|
2174
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
2175
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2176
|
-
default:
|
|
2177
|
-
const parsedBody = parsedOutput.body;
|
|
2178
|
-
return throwDefaultError({
|
|
2179
|
-
output,
|
|
2180
|
-
parsedBody,
|
|
2181
|
-
errorCode
|
|
2182
|
-
});
|
|
2183
|
-
}
|
|
2184
|
-
}, "de_ListPermissionGroupsByUserCommandError");
|
|
2185
1393
|
var de_ListUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2186
1394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2187
|
-
return
|
|
1395
|
+
return de_CommandError(output, context);
|
|
2188
1396
|
}
|
|
2189
1397
|
const contents = (0, import_smithy_client.map)({
|
|
2190
1398
|
$metadata: deserializeMetadata(output)
|
|
@@ -2197,37 +1405,9 @@ var de_ListUsersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2197
1405
|
Object.assign(contents, doc);
|
|
2198
1406
|
return contents;
|
|
2199
1407
|
}, "de_ListUsersCommand");
|
|
2200
|
-
var de_ListUsersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2201
|
-
const parsedOutput = {
|
|
2202
|
-
...output,
|
|
2203
|
-
body: await parseErrorBody(output.body, context)
|
|
2204
|
-
};
|
|
2205
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2206
|
-
switch (errorCode) {
|
|
2207
|
-
case "AccessDeniedException":
|
|
2208
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
2209
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2210
|
-
case "InternalServerException":
|
|
2211
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
2212
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2213
|
-
case "ThrottlingException":
|
|
2214
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
2215
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2216
|
-
case "ValidationException":
|
|
2217
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
2218
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2219
|
-
default:
|
|
2220
|
-
const parsedBody = parsedOutput.body;
|
|
2221
|
-
return throwDefaultError({
|
|
2222
|
-
output,
|
|
2223
|
-
parsedBody,
|
|
2224
|
-
errorCode
|
|
2225
|
-
});
|
|
2226
|
-
}
|
|
2227
|
-
}, "de_ListUsersCommandError");
|
|
2228
1408
|
var de_ListUsersByPermissionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2229
1409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2230
|
-
return
|
|
1410
|
+
return de_CommandError(output, context);
|
|
2231
1411
|
}
|
|
2232
1412
|
const contents = (0, import_smithy_client.map)({
|
|
2233
1413
|
$metadata: deserializeMetadata(output)
|
|
@@ -2240,40 +1420,9 @@ var de_ListUsersByPermissionGroupCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2240
1420
|
Object.assign(contents, doc);
|
|
2241
1421
|
return contents;
|
|
2242
1422
|
}, "de_ListUsersByPermissionGroupCommand");
|
|
2243
|
-
var de_ListUsersByPermissionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2244
|
-
const parsedOutput = {
|
|
2245
|
-
...output,
|
|
2246
|
-
body: await parseErrorBody(output.body, context)
|
|
2247
|
-
};
|
|
2248
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2249
|
-
switch (errorCode) {
|
|
2250
|
-
case "AccessDeniedException":
|
|
2251
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
2252
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2253
|
-
case "InternalServerException":
|
|
2254
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
2255
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2256
|
-
case "ResourceNotFoundException":
|
|
2257
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
2258
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2259
|
-
case "ThrottlingException":
|
|
2260
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
2261
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2262
|
-
case "ValidationException":
|
|
2263
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
2264
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2265
|
-
default:
|
|
2266
|
-
const parsedBody = parsedOutput.body;
|
|
2267
|
-
return throwDefaultError({
|
|
2268
|
-
output,
|
|
2269
|
-
parsedBody,
|
|
2270
|
-
errorCode
|
|
2271
|
-
});
|
|
2272
|
-
}
|
|
2273
|
-
}, "de_ListUsersByPermissionGroupCommandError");
|
|
2274
1423
|
var de_ResetUserPasswordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2275
1424
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2276
|
-
return
|
|
1425
|
+
return de_CommandError(output, context);
|
|
2277
1426
|
}
|
|
2278
1427
|
const contents = (0, import_smithy_client.map)({
|
|
2279
1428
|
$metadata: deserializeMetadata(output)
|
|
@@ -2286,43 +1435,9 @@ var de_ResetUserPasswordCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2286
1435
|
Object.assign(contents, doc);
|
|
2287
1436
|
return contents;
|
|
2288
1437
|
}, "de_ResetUserPasswordCommand");
|
|
2289
|
-
var de_ResetUserPasswordCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2290
|
-
const parsedOutput = {
|
|
2291
|
-
...output,
|
|
2292
|
-
body: await parseErrorBody(output.body, context)
|
|
2293
|
-
};
|
|
2294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2295
|
-
switch (errorCode) {
|
|
2296
|
-
case "AccessDeniedException":
|
|
2297
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
2298
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2299
|
-
case "ConflictException":
|
|
2300
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
2301
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2302
|
-
case "InternalServerException":
|
|
2303
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
2304
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2305
|
-
case "ResourceNotFoundException":
|
|
2306
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
2307
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2308
|
-
case "ThrottlingException":
|
|
2309
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
2310
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2311
|
-
case "ValidationException":
|
|
2312
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
2313
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2314
|
-
default:
|
|
2315
|
-
const parsedBody = parsedOutput.body;
|
|
2316
|
-
return throwDefaultError({
|
|
2317
|
-
output,
|
|
2318
|
-
parsedBody,
|
|
2319
|
-
errorCode
|
|
2320
|
-
});
|
|
2321
|
-
}
|
|
2322
|
-
}, "de_ResetUserPasswordCommandError");
|
|
2323
1438
|
var de_UpdateChangesetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2324
1439
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2325
|
-
return
|
|
1440
|
+
return de_CommandError(output, context);
|
|
2326
1441
|
}
|
|
2327
1442
|
const contents = (0, import_smithy_client.map)({
|
|
2328
1443
|
$metadata: deserializeMetadata(output)
|
|
@@ -2335,43 +1450,9 @@ var de_UpdateChangesetCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2335
1450
|
Object.assign(contents, doc);
|
|
2336
1451
|
return contents;
|
|
2337
1452
|
}, "de_UpdateChangesetCommand");
|
|
2338
|
-
var de_UpdateChangesetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2339
|
-
const parsedOutput = {
|
|
2340
|
-
...output,
|
|
2341
|
-
body: await parseErrorBody(output.body, context)
|
|
2342
|
-
};
|
|
2343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2344
|
-
switch (errorCode) {
|
|
2345
|
-
case "AccessDeniedException":
|
|
2346
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
2347
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2348
|
-
case "ConflictException":
|
|
2349
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
2350
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2351
|
-
case "InternalServerException":
|
|
2352
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
2353
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2354
|
-
case "ResourceNotFoundException":
|
|
2355
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
2356
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2357
|
-
case "ThrottlingException":
|
|
2358
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
2359
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2360
|
-
case "ValidationException":
|
|
2361
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
2362
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2363
|
-
default:
|
|
2364
|
-
const parsedBody = parsedOutput.body;
|
|
2365
|
-
return throwDefaultError({
|
|
2366
|
-
output,
|
|
2367
|
-
parsedBody,
|
|
2368
|
-
errorCode
|
|
2369
|
-
});
|
|
2370
|
-
}
|
|
2371
|
-
}, "de_UpdateChangesetCommandError");
|
|
2372
1453
|
var de_UpdateDatasetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2373
1454
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2374
|
-
return
|
|
1455
|
+
return de_CommandError(output, context);
|
|
2375
1456
|
}
|
|
2376
1457
|
const contents = (0, import_smithy_client.map)({
|
|
2377
1458
|
$metadata: deserializeMetadata(output)
|
|
@@ -2383,43 +1464,9 @@ var de_UpdateDatasetCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2383
1464
|
Object.assign(contents, doc);
|
|
2384
1465
|
return contents;
|
|
2385
1466
|
}, "de_UpdateDatasetCommand");
|
|
2386
|
-
var de_UpdateDatasetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2387
|
-
const parsedOutput = {
|
|
2388
|
-
...output,
|
|
2389
|
-
body: await parseErrorBody(output.body, context)
|
|
2390
|
-
};
|
|
2391
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2392
|
-
switch (errorCode) {
|
|
2393
|
-
case "AccessDeniedException":
|
|
2394
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
2395
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2396
|
-
case "ConflictException":
|
|
2397
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
2398
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2399
|
-
case "InternalServerException":
|
|
2400
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
2401
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2402
|
-
case "ResourceNotFoundException":
|
|
2403
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
2404
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2405
|
-
case "ThrottlingException":
|
|
2406
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
2407
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2408
|
-
case "ValidationException":
|
|
2409
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
2410
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2411
|
-
default:
|
|
2412
|
-
const parsedBody = parsedOutput.body;
|
|
2413
|
-
return throwDefaultError({
|
|
2414
|
-
output,
|
|
2415
|
-
parsedBody,
|
|
2416
|
-
errorCode
|
|
2417
|
-
});
|
|
2418
|
-
}
|
|
2419
|
-
}, "de_UpdateDatasetCommandError");
|
|
2420
1467
|
var de_UpdatePermissionGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2421
1468
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2422
|
-
return
|
|
1469
|
+
return de_CommandError(output, context);
|
|
2423
1470
|
}
|
|
2424
1471
|
const contents = (0, import_smithy_client.map)({
|
|
2425
1472
|
$metadata: deserializeMetadata(output)
|
|
@@ -2431,43 +1478,9 @@ var de_UpdatePermissionGroupCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2431
1478
|
Object.assign(contents, doc);
|
|
2432
1479
|
return contents;
|
|
2433
1480
|
}, "de_UpdatePermissionGroupCommand");
|
|
2434
|
-
var de_UpdatePermissionGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2435
|
-
const parsedOutput = {
|
|
2436
|
-
...output,
|
|
2437
|
-
body: await parseErrorBody(output.body, context)
|
|
2438
|
-
};
|
|
2439
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2440
|
-
switch (errorCode) {
|
|
2441
|
-
case "AccessDeniedException":
|
|
2442
|
-
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
2443
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2444
|
-
case "ConflictException":
|
|
2445
|
-
case "com.amazonaws.finspacedata#ConflictException":
|
|
2446
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2447
|
-
case "InternalServerException":
|
|
2448
|
-
case "com.amazonaws.finspacedata#InternalServerException":
|
|
2449
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2450
|
-
case "ResourceNotFoundException":
|
|
2451
|
-
case "com.amazonaws.finspacedata#ResourceNotFoundException":
|
|
2452
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2453
|
-
case "ThrottlingException":
|
|
2454
|
-
case "com.amazonaws.finspacedata#ThrottlingException":
|
|
2455
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2456
|
-
case "ValidationException":
|
|
2457
|
-
case "com.amazonaws.finspacedata#ValidationException":
|
|
2458
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2459
|
-
default:
|
|
2460
|
-
const parsedBody = parsedOutput.body;
|
|
2461
|
-
return throwDefaultError({
|
|
2462
|
-
output,
|
|
2463
|
-
parsedBody,
|
|
2464
|
-
errorCode
|
|
2465
|
-
});
|
|
2466
|
-
}
|
|
2467
|
-
}, "de_UpdatePermissionGroupCommandError");
|
|
2468
1481
|
var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2469
1482
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2470
|
-
return
|
|
1483
|
+
return de_CommandError(output, context);
|
|
2471
1484
|
}
|
|
2472
1485
|
const contents = (0, import_smithy_client.map)({
|
|
2473
1486
|
$metadata: deserializeMetadata(output)
|
|
@@ -2479,7 +1492,7 @@ var de_UpdateUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2479
1492
|
Object.assign(contents, doc);
|
|
2480
1493
|
return contents;
|
|
2481
1494
|
}, "de_UpdateUserCommand");
|
|
2482
|
-
var
|
|
1495
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2483
1496
|
const parsedOutput = {
|
|
2484
1497
|
...output,
|
|
2485
1498
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2504,6 +1517,9 @@ var de_UpdateUserCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2504
1517
|
case "ValidationException":
|
|
2505
1518
|
case "com.amazonaws.finspacedata#ValidationException":
|
|
2506
1519
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1520
|
+
case "LimitExceededException":
|
|
1521
|
+
case "com.amazonaws.finspacedata#LimitExceededException":
|
|
1522
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2507
1523
|
default:
|
|
2508
1524
|
const parsedBody = parsedOutput.body;
|
|
2509
1525
|
return throwDefaultError({
|
|
@@ -2512,7 +1528,7 @@ var de_UpdateUserCommandError = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2512
1528
|
errorCode
|
|
2513
1529
|
});
|
|
2514
1530
|
}
|
|
2515
|
-
}, "
|
|
1531
|
+
}, "de_CommandError");
|
|
2516
1532
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(FinspaceDataServiceException);
|
|
2517
1533
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2518
1534
|
const contents = (0, import_smithy_client.map)({});
|