@aws-sdk/client-finspace-data 3.119.0 → 3.121.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/CHANGELOG.md +12 -0
- package/dist-cjs/protocols/Aws_restJson1.js +155 -125
- package/dist-es/protocols/Aws_restJson1.js +155 -125
- package/package.json +3 -3
|
@@ -1026,8 +1026,7 @@ const deserializeAws_restJson1AssociateUserToPermissionGroupCommandError = async
|
|
|
1026
1026
|
body: await parseBody(output.body, context),
|
|
1027
1027
|
};
|
|
1028
1028
|
let response;
|
|
1029
|
-
|
|
1030
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1029
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1031
1030
|
switch (errorCode) {
|
|
1032
1031
|
case "AccessDeniedException":
|
|
1033
1032
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1049,10 +1048,12 @@ const deserializeAws_restJson1AssociateUserToPermissionGroupCommandError = async
|
|
|
1049
1048
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1050
1049
|
default:
|
|
1051
1050
|
const parsedBody = parsedOutput.body;
|
|
1051
|
+
const $metadata = deserializeMetadata(output);
|
|
1052
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1052
1053
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1053
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1054
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1054
1055
|
$fault: "client",
|
|
1055
|
-
$metadata
|
|
1056
|
+
$metadata,
|
|
1056
1057
|
});
|
|
1057
1058
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1058
1059
|
}
|
|
@@ -1082,8 +1083,7 @@ const deserializeAws_restJson1CreateChangesetCommandError = async (output, conte
|
|
|
1082
1083
|
body: await parseBody(output.body, context),
|
|
1083
1084
|
};
|
|
1084
1085
|
let response;
|
|
1085
|
-
|
|
1086
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1086
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1087
1087
|
switch (errorCode) {
|
|
1088
1088
|
case "AccessDeniedException":
|
|
1089
1089
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1108,10 +1108,12 @@ const deserializeAws_restJson1CreateChangesetCommandError = async (output, conte
|
|
|
1108
1108
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1109
1109
|
default:
|
|
1110
1110
|
const parsedBody = parsedOutput.body;
|
|
1111
|
+
const $metadata = deserializeMetadata(output);
|
|
1112
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1111
1113
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1112
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1114
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1113
1115
|
$fault: "client",
|
|
1114
|
-
$metadata
|
|
1116
|
+
$metadata,
|
|
1115
1117
|
});
|
|
1116
1118
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1117
1119
|
}
|
|
@@ -1137,8 +1139,7 @@ const deserializeAws_restJson1CreateDatasetCommandError = async (output, context
|
|
|
1137
1139
|
body: await parseBody(output.body, context),
|
|
1138
1140
|
};
|
|
1139
1141
|
let response;
|
|
1140
|
-
|
|
1141
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1142
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1142
1143
|
switch (errorCode) {
|
|
1143
1144
|
case "AccessDeniedException":
|
|
1144
1145
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1163,10 +1164,12 @@ const deserializeAws_restJson1CreateDatasetCommandError = async (output, context
|
|
|
1163
1164
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1164
1165
|
default:
|
|
1165
1166
|
const parsedBody = parsedOutput.body;
|
|
1167
|
+
const $metadata = deserializeMetadata(output);
|
|
1168
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1166
1169
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1167
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1170
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1168
1171
|
$fault: "client",
|
|
1169
|
-
$metadata
|
|
1172
|
+
$metadata,
|
|
1170
1173
|
});
|
|
1171
1174
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1172
1175
|
}
|
|
@@ -1196,8 +1199,7 @@ const deserializeAws_restJson1CreateDataViewCommandError = async (output, contex
|
|
|
1196
1199
|
body: await parseBody(output.body, context),
|
|
1197
1200
|
};
|
|
1198
1201
|
let response;
|
|
1199
|
-
|
|
1200
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1202
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1201
1203
|
switch (errorCode) {
|
|
1202
1204
|
case "ConflictException":
|
|
1203
1205
|
case "com.amazonaws.finspacedata#ConflictException":
|
|
@@ -1219,10 +1221,12 @@ const deserializeAws_restJson1CreateDataViewCommandError = async (output, contex
|
|
|
1219
1221
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1220
1222
|
default:
|
|
1221
1223
|
const parsedBody = parsedOutput.body;
|
|
1224
|
+
const $metadata = deserializeMetadata(output);
|
|
1225
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1222
1226
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1223
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1227
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1224
1228
|
$fault: "client",
|
|
1225
|
-
$metadata
|
|
1229
|
+
$metadata,
|
|
1226
1230
|
});
|
|
1227
1231
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1228
1232
|
}
|
|
@@ -1248,8 +1252,7 @@ const deserializeAws_restJson1CreatePermissionGroupCommandError = async (output,
|
|
|
1248
1252
|
body: await parseBody(output.body, context),
|
|
1249
1253
|
};
|
|
1250
1254
|
let response;
|
|
1251
|
-
|
|
1252
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1255
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1253
1256
|
switch (errorCode) {
|
|
1254
1257
|
case "AccessDeniedException":
|
|
1255
1258
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1271,10 +1274,12 @@ const deserializeAws_restJson1CreatePermissionGroupCommandError = async (output,
|
|
|
1271
1274
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1272
1275
|
default:
|
|
1273
1276
|
const parsedBody = parsedOutput.body;
|
|
1277
|
+
const $metadata = deserializeMetadata(output);
|
|
1278
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1274
1279
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1275
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1280
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1276
1281
|
$fault: "client",
|
|
1277
|
-
$metadata
|
|
1282
|
+
$metadata,
|
|
1278
1283
|
});
|
|
1279
1284
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1280
1285
|
}
|
|
@@ -1300,8 +1305,7 @@ const deserializeAws_restJson1CreateUserCommandError = async (output, context) =
|
|
|
1300
1305
|
body: await parseBody(output.body, context),
|
|
1301
1306
|
};
|
|
1302
1307
|
let response;
|
|
1303
|
-
|
|
1304
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1308
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1305
1309
|
switch (errorCode) {
|
|
1306
1310
|
case "AccessDeniedException":
|
|
1307
1311
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1323,10 +1327,12 @@ const deserializeAws_restJson1CreateUserCommandError = async (output, context) =
|
|
|
1323
1327
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1324
1328
|
default:
|
|
1325
1329
|
const parsedBody = parsedOutput.body;
|
|
1330
|
+
const $metadata = deserializeMetadata(output);
|
|
1331
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1326
1332
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1327
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1333
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1328
1334
|
$fault: "client",
|
|
1329
|
-
$metadata
|
|
1335
|
+
$metadata,
|
|
1330
1336
|
});
|
|
1331
1337
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1332
1338
|
}
|
|
@@ -1352,8 +1358,7 @@ const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context
|
|
|
1352
1358
|
body: await parseBody(output.body, context),
|
|
1353
1359
|
};
|
|
1354
1360
|
let response;
|
|
1355
|
-
|
|
1356
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1361
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1357
1362
|
switch (errorCode) {
|
|
1358
1363
|
case "AccessDeniedException":
|
|
1359
1364
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1378,10 +1383,12 @@ const deserializeAws_restJson1DeleteDatasetCommandError = async (output, context
|
|
|
1378
1383
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1379
1384
|
default:
|
|
1380
1385
|
const parsedBody = parsedOutput.body;
|
|
1386
|
+
const $metadata = deserializeMetadata(output);
|
|
1387
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1381
1388
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1382
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1389
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1383
1390
|
$fault: "client",
|
|
1384
|
-
$metadata
|
|
1391
|
+
$metadata,
|
|
1385
1392
|
});
|
|
1386
1393
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1387
1394
|
}
|
|
@@ -1407,8 +1414,7 @@ const deserializeAws_restJson1DeletePermissionGroupCommandError = async (output,
|
|
|
1407
1414
|
body: await parseBody(output.body, context),
|
|
1408
1415
|
};
|
|
1409
1416
|
let response;
|
|
1410
|
-
|
|
1411
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1412
1418
|
switch (errorCode) {
|
|
1413
1419
|
case "AccessDeniedException":
|
|
1414
1420
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1433,10 +1439,12 @@ const deserializeAws_restJson1DeletePermissionGroupCommandError = async (output,
|
|
|
1433
1439
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1434
1440
|
default:
|
|
1435
1441
|
const parsedBody = parsedOutput.body;
|
|
1442
|
+
const $metadata = deserializeMetadata(output);
|
|
1443
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1436
1444
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1437
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1445
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1438
1446
|
$fault: "client",
|
|
1439
|
-
$metadata
|
|
1447
|
+
$metadata,
|
|
1440
1448
|
});
|
|
1441
1449
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1442
1450
|
}
|
|
@@ -1462,8 +1470,7 @@ const deserializeAws_restJson1DisableUserCommandError = async (output, context)
|
|
|
1462
1470
|
body: await parseBody(output.body, context),
|
|
1463
1471
|
};
|
|
1464
1472
|
let response;
|
|
1465
|
-
|
|
1466
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1473
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1467
1474
|
switch (errorCode) {
|
|
1468
1475
|
case "AccessDeniedException":
|
|
1469
1476
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1485,10 +1492,12 @@ const deserializeAws_restJson1DisableUserCommandError = async (output, context)
|
|
|
1485
1492
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1486
1493
|
default:
|
|
1487
1494
|
const parsedBody = parsedOutput.body;
|
|
1495
|
+
const $metadata = deserializeMetadata(output);
|
|
1496
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1488
1497
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1489
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1498
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1490
1499
|
$fault: "client",
|
|
1491
|
-
$metadata
|
|
1500
|
+
$metadata,
|
|
1492
1501
|
});
|
|
1493
1502
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1494
1503
|
}
|
|
@@ -1514,8 +1523,7 @@ const deserializeAws_restJson1DisassociateUserFromPermissionGroupCommandError =
|
|
|
1514
1523
|
body: await parseBody(output.body, context),
|
|
1515
1524
|
};
|
|
1516
1525
|
let response;
|
|
1517
|
-
|
|
1518
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1526
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1519
1527
|
switch (errorCode) {
|
|
1520
1528
|
case "AccessDeniedException":
|
|
1521
1529
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1537,10 +1545,12 @@ const deserializeAws_restJson1DisassociateUserFromPermissionGroupCommandError =
|
|
|
1537
1545
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1538
1546
|
default:
|
|
1539
1547
|
const parsedBody = parsedOutput.body;
|
|
1548
|
+
const $metadata = deserializeMetadata(output);
|
|
1549
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1540
1550
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1541
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1551
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1542
1552
|
$fault: "client",
|
|
1543
|
-
$metadata
|
|
1553
|
+
$metadata,
|
|
1544
1554
|
});
|
|
1545
1555
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1546
1556
|
}
|
|
@@ -1566,8 +1576,7 @@ const deserializeAws_restJson1EnableUserCommandError = async (output, context) =
|
|
|
1566
1576
|
body: await parseBody(output.body, context),
|
|
1567
1577
|
};
|
|
1568
1578
|
let response;
|
|
1569
|
-
|
|
1570
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1579
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1571
1580
|
switch (errorCode) {
|
|
1572
1581
|
case "AccessDeniedException":
|
|
1573
1582
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1592,10 +1601,12 @@ const deserializeAws_restJson1EnableUserCommandError = async (output, context) =
|
|
|
1592
1601
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1593
1602
|
default:
|
|
1594
1603
|
const parsedBody = parsedOutput.body;
|
|
1604
|
+
const $metadata = deserializeMetadata(output);
|
|
1605
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1595
1606
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1596
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1607
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1597
1608
|
$fault: "client",
|
|
1598
|
-
$metadata
|
|
1609
|
+
$metadata,
|
|
1599
1610
|
});
|
|
1600
1611
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1601
1612
|
}
|
|
@@ -1669,8 +1680,7 @@ const deserializeAws_restJson1GetChangesetCommandError = async (output, context)
|
|
|
1669
1680
|
body: await parseBody(output.body, context),
|
|
1670
1681
|
};
|
|
1671
1682
|
let response;
|
|
1672
|
-
|
|
1673
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1683
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
1684
|
switch (errorCode) {
|
|
1675
1685
|
case "AccessDeniedException":
|
|
1676
1686
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1692,10 +1702,12 @@ const deserializeAws_restJson1GetChangesetCommandError = async (output, context)
|
|
|
1692
1702
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1693
1703
|
default:
|
|
1694
1704
|
const parsedBody = parsedOutput.body;
|
|
1705
|
+
const $metadata = deserializeMetadata(output);
|
|
1706
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1695
1707
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1696
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1708
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1697
1709
|
$fault: "client",
|
|
1698
|
-
$metadata
|
|
1710
|
+
$metadata,
|
|
1699
1711
|
});
|
|
1700
1712
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1701
1713
|
}
|
|
@@ -1757,8 +1769,7 @@ const deserializeAws_restJson1GetDatasetCommandError = async (output, context) =
|
|
|
1757
1769
|
body: await parseBody(output.body, context),
|
|
1758
1770
|
};
|
|
1759
1771
|
let response;
|
|
1760
|
-
|
|
1761
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1772
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
1773
|
switch (errorCode) {
|
|
1763
1774
|
case "AccessDeniedException":
|
|
1764
1775
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1780,10 +1791,12 @@ const deserializeAws_restJson1GetDatasetCommandError = async (output, context) =
|
|
|
1780
1791
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1781
1792
|
default:
|
|
1782
1793
|
const parsedBody = parsedOutput.body;
|
|
1794
|
+
const $metadata = deserializeMetadata(output);
|
|
1795
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1783
1796
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1784
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1797
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1785
1798
|
$fault: "client",
|
|
1786
|
-
$metadata
|
|
1799
|
+
$metadata,
|
|
1787
1800
|
});
|
|
1788
1801
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1789
1802
|
}
|
|
@@ -1853,8 +1866,7 @@ const deserializeAws_restJson1GetDataViewCommandError = async (output, context)
|
|
|
1853
1866
|
body: await parseBody(output.body, context),
|
|
1854
1867
|
};
|
|
1855
1868
|
let response;
|
|
1856
|
-
|
|
1857
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1869
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1858
1870
|
switch (errorCode) {
|
|
1859
1871
|
case "ConflictException":
|
|
1860
1872
|
case "com.amazonaws.finspacedata#ConflictException":
|
|
@@ -1873,10 +1885,12 @@ const deserializeAws_restJson1GetDataViewCommandError = async (output, context)
|
|
|
1873
1885
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1874
1886
|
default:
|
|
1875
1887
|
const parsedBody = parsedOutput.body;
|
|
1888
|
+
const $metadata = deserializeMetadata(output);
|
|
1889
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1876
1890
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1877
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1891
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1878
1892
|
$fault: "client",
|
|
1879
|
-
$metadata
|
|
1893
|
+
$metadata,
|
|
1880
1894
|
});
|
|
1881
1895
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1882
1896
|
}
|
|
@@ -1906,8 +1920,7 @@ const deserializeAws_restJson1GetExternalDataViewAccessDetailsCommandError = asy
|
|
|
1906
1920
|
body: await parseBody(output.body, context),
|
|
1907
1921
|
};
|
|
1908
1922
|
let response;
|
|
1909
|
-
|
|
1910
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1923
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1911
1924
|
switch (errorCode) {
|
|
1912
1925
|
case "AccessDeniedException":
|
|
1913
1926
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1926,10 +1939,12 @@ const deserializeAws_restJson1GetExternalDataViewAccessDetailsCommandError = asy
|
|
|
1926
1939
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1927
1940
|
default:
|
|
1928
1941
|
const parsedBody = parsedOutput.body;
|
|
1942
|
+
const $metadata = deserializeMetadata(output);
|
|
1943
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1929
1944
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1930
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1945
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1931
1946
|
$fault: "client",
|
|
1932
|
-
$metadata
|
|
1947
|
+
$metadata,
|
|
1933
1948
|
});
|
|
1934
1949
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1935
1950
|
}
|
|
@@ -1955,8 +1970,7 @@ const deserializeAws_restJson1GetPermissionGroupCommandError = async (output, co
|
|
|
1955
1970
|
body: await parseBody(output.body, context),
|
|
1956
1971
|
};
|
|
1957
1972
|
let response;
|
|
1958
|
-
|
|
1959
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1973
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1960
1974
|
switch (errorCode) {
|
|
1961
1975
|
case "AccessDeniedException":
|
|
1962
1976
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -1975,10 +1989,12 @@ const deserializeAws_restJson1GetPermissionGroupCommandError = async (output, co
|
|
|
1975
1989
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1976
1990
|
default:
|
|
1977
1991
|
const parsedBody = parsedOutput.body;
|
|
1992
|
+
const $metadata = deserializeMetadata(output);
|
|
1993
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1978
1994
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
1979
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1995
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1980
1996
|
$fault: "client",
|
|
1981
|
-
$metadata
|
|
1997
|
+
$metadata,
|
|
1982
1998
|
});
|
|
1983
1999
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1984
2000
|
}
|
|
@@ -2008,8 +2024,7 @@ const deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError = asy
|
|
|
2008
2024
|
body: await parseBody(output.body, context),
|
|
2009
2025
|
};
|
|
2010
2026
|
let response;
|
|
2011
|
-
|
|
2012
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2027
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2013
2028
|
switch (errorCode) {
|
|
2014
2029
|
case "AccessDeniedException":
|
|
2015
2030
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2025,10 +2040,12 @@ const deserializeAws_restJson1GetProgrammaticAccessCredentialsCommandError = asy
|
|
|
2025
2040
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2026
2041
|
default:
|
|
2027
2042
|
const parsedBody = parsedOutput.body;
|
|
2043
|
+
const $metadata = deserializeMetadata(output);
|
|
2044
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2028
2045
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2029
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2046
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2030
2047
|
$fault: "client",
|
|
2031
|
-
$metadata
|
|
2048
|
+
$metadata,
|
|
2032
2049
|
});
|
|
2033
2050
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2034
2051
|
}
|
|
@@ -2102,8 +2119,7 @@ const deserializeAws_restJson1GetUserCommandError = async (output, context) => {
|
|
|
2102
2119
|
body: await parseBody(output.body, context),
|
|
2103
2120
|
};
|
|
2104
2121
|
let response;
|
|
2105
|
-
|
|
2106
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2122
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2107
2123
|
switch (errorCode) {
|
|
2108
2124
|
case "AccessDeniedException":
|
|
2109
2125
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2122,10 +2138,12 @@ const deserializeAws_restJson1GetUserCommandError = async (output, context) => {
|
|
|
2122
2138
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2123
2139
|
default:
|
|
2124
2140
|
const parsedBody = parsedOutput.body;
|
|
2141
|
+
const $metadata = deserializeMetadata(output);
|
|
2142
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2125
2143
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2126
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2144
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2127
2145
|
$fault: "client",
|
|
2128
|
-
$metadata
|
|
2146
|
+
$metadata,
|
|
2129
2147
|
});
|
|
2130
2148
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2131
2149
|
}
|
|
@@ -2159,8 +2177,7 @@ const deserializeAws_restJson1GetWorkingLocationCommandError = async (output, co
|
|
|
2159
2177
|
body: await parseBody(output.body, context),
|
|
2160
2178
|
};
|
|
2161
2179
|
let response;
|
|
2162
|
-
|
|
2163
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2180
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2164
2181
|
switch (errorCode) {
|
|
2165
2182
|
case "AccessDeniedException":
|
|
2166
2183
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2176,10 +2193,12 @@ const deserializeAws_restJson1GetWorkingLocationCommandError = async (output, co
|
|
|
2176
2193
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2177
2194
|
default:
|
|
2178
2195
|
const parsedBody = parsedOutput.body;
|
|
2196
|
+
const $metadata = deserializeMetadata(output);
|
|
2197
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2179
2198
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2180
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2199
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2181
2200
|
$fault: "client",
|
|
2182
|
-
$metadata
|
|
2201
|
+
$metadata,
|
|
2183
2202
|
});
|
|
2184
2203
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2185
2204
|
}
|
|
@@ -2209,8 +2228,7 @@ const deserializeAws_restJson1ListChangesetsCommandError = async (output, contex
|
|
|
2209
2228
|
body: await parseBody(output.body, context),
|
|
2210
2229
|
};
|
|
2211
2230
|
let response;
|
|
2212
|
-
|
|
2213
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2231
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2214
2232
|
switch (errorCode) {
|
|
2215
2233
|
case "AccessDeniedException":
|
|
2216
2234
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2232,10 +2250,12 @@ const deserializeAws_restJson1ListChangesetsCommandError = async (output, contex
|
|
|
2232
2250
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2233
2251
|
default:
|
|
2234
2252
|
const parsedBody = parsedOutput.body;
|
|
2253
|
+
const $metadata = deserializeMetadata(output);
|
|
2254
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2235
2255
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2236
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2256
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2237
2257
|
$fault: "client",
|
|
2238
|
-
$metadata
|
|
2258
|
+
$metadata,
|
|
2239
2259
|
});
|
|
2240
2260
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2241
2261
|
}
|
|
@@ -2265,8 +2285,7 @@ const deserializeAws_restJson1ListDatasetsCommandError = async (output, context)
|
|
|
2265
2285
|
body: await parseBody(output.body, context),
|
|
2266
2286
|
};
|
|
2267
2287
|
let response;
|
|
2268
|
-
|
|
2269
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2288
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2270
2289
|
switch (errorCode) {
|
|
2271
2290
|
case "ConflictException":
|
|
2272
2291
|
case "com.amazonaws.finspacedata#ConflictException":
|
|
@@ -2285,10 +2304,12 @@ const deserializeAws_restJson1ListDatasetsCommandError = async (output, context)
|
|
|
2285
2304
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2286
2305
|
default:
|
|
2287
2306
|
const parsedBody = parsedOutput.body;
|
|
2307
|
+
const $metadata = deserializeMetadata(output);
|
|
2308
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2288
2309
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2289
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2310
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2290
2311
|
$fault: "client",
|
|
2291
|
-
$metadata
|
|
2312
|
+
$metadata,
|
|
2292
2313
|
});
|
|
2293
2314
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2294
2315
|
}
|
|
@@ -2318,8 +2339,7 @@ const deserializeAws_restJson1ListDataViewsCommandError = async (output, context
|
|
|
2318
2339
|
body: await parseBody(output.body, context),
|
|
2319
2340
|
};
|
|
2320
2341
|
let response;
|
|
2321
|
-
|
|
2322
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2342
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2323
2343
|
switch (errorCode) {
|
|
2324
2344
|
case "ConflictException":
|
|
2325
2345
|
case "com.amazonaws.finspacedata#ConflictException":
|
|
@@ -2338,10 +2358,12 @@ const deserializeAws_restJson1ListDataViewsCommandError = async (output, context
|
|
|
2338
2358
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2339
2359
|
default:
|
|
2340
2360
|
const parsedBody = parsedOutput.body;
|
|
2361
|
+
const $metadata = deserializeMetadata(output);
|
|
2362
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2341
2363
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2342
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2364
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2343
2365
|
$fault: "client",
|
|
2344
|
-
$metadata
|
|
2366
|
+
$metadata,
|
|
2345
2367
|
});
|
|
2346
2368
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2347
2369
|
}
|
|
@@ -2371,8 +2393,7 @@ const deserializeAws_restJson1ListPermissionGroupsCommandError = async (output,
|
|
|
2371
2393
|
body: await parseBody(output.body, context),
|
|
2372
2394
|
};
|
|
2373
2395
|
let response;
|
|
2374
|
-
|
|
2375
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2396
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2376
2397
|
switch (errorCode) {
|
|
2377
2398
|
case "AccessDeniedException":
|
|
2378
2399
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2388,10 +2409,12 @@ const deserializeAws_restJson1ListPermissionGroupsCommandError = async (output,
|
|
|
2388
2409
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2389
2410
|
default:
|
|
2390
2411
|
const parsedBody = parsedOutput.body;
|
|
2412
|
+
const $metadata = deserializeMetadata(output);
|
|
2413
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2391
2414
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2392
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2415
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2393
2416
|
$fault: "client",
|
|
2394
|
-
$metadata
|
|
2417
|
+
$metadata,
|
|
2395
2418
|
});
|
|
2396
2419
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2397
2420
|
}
|
|
@@ -2421,8 +2444,7 @@ const deserializeAws_restJson1ListPermissionGroupsByUserCommandError = async (ou
|
|
|
2421
2444
|
body: await parseBody(output.body, context),
|
|
2422
2445
|
};
|
|
2423
2446
|
let response;
|
|
2424
|
-
|
|
2425
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2447
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2426
2448
|
switch (errorCode) {
|
|
2427
2449
|
case "AccessDeniedException":
|
|
2428
2450
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2441,10 +2463,12 @@ const deserializeAws_restJson1ListPermissionGroupsByUserCommandError = async (ou
|
|
|
2441
2463
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2442
2464
|
default:
|
|
2443
2465
|
const parsedBody = parsedOutput.body;
|
|
2466
|
+
const $metadata = deserializeMetadata(output);
|
|
2467
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2444
2468
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2445
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2469
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2446
2470
|
$fault: "client",
|
|
2447
|
-
$metadata
|
|
2471
|
+
$metadata,
|
|
2448
2472
|
});
|
|
2449
2473
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2450
2474
|
}
|
|
@@ -2474,8 +2498,7 @@ const deserializeAws_restJson1ListUsersCommandError = async (output, context) =>
|
|
|
2474
2498
|
body: await parseBody(output.body, context),
|
|
2475
2499
|
};
|
|
2476
2500
|
let response;
|
|
2477
|
-
|
|
2478
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2501
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2479
2502
|
switch (errorCode) {
|
|
2480
2503
|
case "AccessDeniedException":
|
|
2481
2504
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2491,10 +2514,12 @@ const deserializeAws_restJson1ListUsersCommandError = async (output, context) =>
|
|
|
2491
2514
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2492
2515
|
default:
|
|
2493
2516
|
const parsedBody = parsedOutput.body;
|
|
2517
|
+
const $metadata = deserializeMetadata(output);
|
|
2518
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2494
2519
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2495
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2520
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2496
2521
|
$fault: "client",
|
|
2497
|
-
$metadata
|
|
2522
|
+
$metadata,
|
|
2498
2523
|
});
|
|
2499
2524
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2500
2525
|
}
|
|
@@ -2524,8 +2549,7 @@ const deserializeAws_restJson1ListUsersByPermissionGroupCommandError = async (ou
|
|
|
2524
2549
|
body: await parseBody(output.body, context),
|
|
2525
2550
|
};
|
|
2526
2551
|
let response;
|
|
2527
|
-
|
|
2528
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2552
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2529
2553
|
switch (errorCode) {
|
|
2530
2554
|
case "AccessDeniedException":
|
|
2531
2555
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2544,10 +2568,12 @@ const deserializeAws_restJson1ListUsersByPermissionGroupCommandError = async (ou
|
|
|
2544
2568
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2545
2569
|
default:
|
|
2546
2570
|
const parsedBody = parsedOutput.body;
|
|
2571
|
+
const $metadata = deserializeMetadata(output);
|
|
2572
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2547
2573
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2548
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2574
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2549
2575
|
$fault: "client",
|
|
2550
|
-
$metadata
|
|
2576
|
+
$metadata,
|
|
2551
2577
|
});
|
|
2552
2578
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2553
2579
|
}
|
|
@@ -2577,8 +2603,7 @@ const deserializeAws_restJson1ResetUserPasswordCommandError = async (output, con
|
|
|
2577
2603
|
body: await parseBody(output.body, context),
|
|
2578
2604
|
};
|
|
2579
2605
|
let response;
|
|
2580
|
-
|
|
2581
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2606
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2582
2607
|
switch (errorCode) {
|
|
2583
2608
|
case "AccessDeniedException":
|
|
2584
2609
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2600,10 +2625,12 @@ const deserializeAws_restJson1ResetUserPasswordCommandError = async (output, con
|
|
|
2600
2625
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2601
2626
|
default:
|
|
2602
2627
|
const parsedBody = parsedOutput.body;
|
|
2628
|
+
const $metadata = deserializeMetadata(output);
|
|
2629
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2603
2630
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2604
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2631
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2605
2632
|
$fault: "client",
|
|
2606
|
-
$metadata
|
|
2633
|
+
$metadata,
|
|
2607
2634
|
});
|
|
2608
2635
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2609
2636
|
}
|
|
@@ -2633,8 +2660,7 @@ const deserializeAws_restJson1UpdateChangesetCommandError = async (output, conte
|
|
|
2633
2660
|
body: await parseBody(output.body, context),
|
|
2634
2661
|
};
|
|
2635
2662
|
let response;
|
|
2636
|
-
|
|
2637
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2663
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2638
2664
|
switch (errorCode) {
|
|
2639
2665
|
case "AccessDeniedException":
|
|
2640
2666
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2656,10 +2682,12 @@ const deserializeAws_restJson1UpdateChangesetCommandError = async (output, conte
|
|
|
2656
2682
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2657
2683
|
default:
|
|
2658
2684
|
const parsedBody = parsedOutput.body;
|
|
2685
|
+
const $metadata = deserializeMetadata(output);
|
|
2686
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2659
2687
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2660
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2688
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2661
2689
|
$fault: "client",
|
|
2662
|
-
$metadata
|
|
2690
|
+
$metadata,
|
|
2663
2691
|
});
|
|
2664
2692
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2665
2693
|
}
|
|
@@ -2685,8 +2713,7 @@ const deserializeAws_restJson1UpdateDatasetCommandError = async (output, context
|
|
|
2685
2713
|
body: await parseBody(output.body, context),
|
|
2686
2714
|
};
|
|
2687
2715
|
let response;
|
|
2688
|
-
|
|
2689
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2716
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2690
2717
|
switch (errorCode) {
|
|
2691
2718
|
case "AccessDeniedException":
|
|
2692
2719
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2708,10 +2735,12 @@ const deserializeAws_restJson1UpdateDatasetCommandError = async (output, context
|
|
|
2708
2735
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2709
2736
|
default:
|
|
2710
2737
|
const parsedBody = parsedOutput.body;
|
|
2738
|
+
const $metadata = deserializeMetadata(output);
|
|
2739
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2711
2740
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2712
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2741
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2713
2742
|
$fault: "client",
|
|
2714
|
-
$metadata
|
|
2743
|
+
$metadata,
|
|
2715
2744
|
});
|
|
2716
2745
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2717
2746
|
}
|
|
@@ -2737,8 +2766,7 @@ const deserializeAws_restJson1UpdatePermissionGroupCommandError = async (output,
|
|
|
2737
2766
|
body: await parseBody(output.body, context),
|
|
2738
2767
|
};
|
|
2739
2768
|
let response;
|
|
2740
|
-
|
|
2741
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2769
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2742
2770
|
switch (errorCode) {
|
|
2743
2771
|
case "AccessDeniedException":
|
|
2744
2772
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2760,10 +2788,12 @@ const deserializeAws_restJson1UpdatePermissionGroupCommandError = async (output,
|
|
|
2760
2788
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2761
2789
|
default:
|
|
2762
2790
|
const parsedBody = parsedOutput.body;
|
|
2791
|
+
const $metadata = deserializeMetadata(output);
|
|
2792
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2763
2793
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2764
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2794
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2765
2795
|
$fault: "client",
|
|
2766
|
-
$metadata
|
|
2796
|
+
$metadata,
|
|
2767
2797
|
});
|
|
2768
2798
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2769
2799
|
}
|
|
@@ -2789,8 +2819,7 @@ const deserializeAws_restJson1UpdateUserCommandError = async (output, context) =
|
|
|
2789
2819
|
body: await parseBody(output.body, context),
|
|
2790
2820
|
};
|
|
2791
2821
|
let response;
|
|
2792
|
-
|
|
2793
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2822
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2794
2823
|
switch (errorCode) {
|
|
2795
2824
|
case "AccessDeniedException":
|
|
2796
2825
|
case "com.amazonaws.finspacedata#AccessDeniedException":
|
|
@@ -2812,10 +2841,12 @@ const deserializeAws_restJson1UpdateUserCommandError = async (output, context) =
|
|
|
2812
2841
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2813
2842
|
default:
|
|
2814
2843
|
const parsedBody = parsedOutput.body;
|
|
2844
|
+
const $metadata = deserializeMetadata(output);
|
|
2845
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2815
2846
|
response = new FinspaceDataServiceException_1.FinspaceDataServiceException({
|
|
2816
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2847
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2817
2848
|
$fault: "client",
|
|
2818
|
-
$metadata
|
|
2849
|
+
$metadata,
|
|
2819
2850
|
});
|
|
2820
2851
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2821
2852
|
}
|
|
@@ -3467,5 +3498,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
3467
3498
|
if (data["__type"] !== undefined) {
|
|
3468
3499
|
return sanitizeErrorCode(data["__type"]);
|
|
3469
3500
|
}
|
|
3470
|
-
return "";
|
|
3471
3501
|
};
|