@aws-sdk/client-amplifybackend 3.52.0 → 3.53.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 +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/AmplifyBackendServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +62 -3
- package/dist-cjs/protocols/Aws_restJson1.js +294 -1094
- package/dist-es/index.js +1 -0
- package/dist-es/models/AmplifyBackendServiceException.js +12 -0
- package/dist-es/models/models_0.js +56 -1
- package/dist-es/protocols/Aws_restJson1.js +659 -1223
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/AmplifyBackendServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +30 -13
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/AmplifyBackendServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +22 -13
- package/package.json +25 -25
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { AmplifyBackendServiceException as __BaseException } from "../models/AmplifyBackendServiceException";
|
|
5
|
+
import { BadRequestException, GatewayTimeoutException, NotFoundException, TooManyRequestsException, } from "../models/models_0";
|
|
4
6
|
export var serializeAws_restJson1CloneBackendCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
6
8
|
return __generator(this, function (_c) {
|
|
@@ -1341,16 +1343,16 @@ export var deserializeAws_restJson1CloneBackendCommand = function (output, conte
|
|
|
1341
1343
|
});
|
|
1342
1344
|
}); };
|
|
1343
1345
|
var deserializeAws_restJson1CloneBackendCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1344
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1345
|
-
var
|
|
1346
|
-
return __generator(this, function (
|
|
1347
|
-
switch (
|
|
1346
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1347
|
+
var _c;
|
|
1348
|
+
return __generator(this, function (_d) {
|
|
1349
|
+
switch (_d.label) {
|
|
1348
1350
|
case 0:
|
|
1349
1351
|
_a = [__assign({}, output)];
|
|
1350
|
-
|
|
1352
|
+
_c = {};
|
|
1351
1353
|
return [4, parseBody(output.body, context)];
|
|
1352
1354
|
case 1:
|
|
1353
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1355
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1354
1356
|
errorCode = "UnknownError";
|
|
1355
1357
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1356
1358
|
_b = errorCode;
|
|
@@ -1365,40 +1367,22 @@ var deserializeAws_restJson1CloneBackendCommandError = function (output, context
|
|
|
1365
1367
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
1366
1368
|
}
|
|
1367
1369
|
return [3, 10];
|
|
1368
|
-
case 2:
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
case
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
case 4
|
|
1375
|
-
|
|
1376
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1377
|
-
case 5:
|
|
1378
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1379
|
-
return [3, 11];
|
|
1380
|
-
case 6:
|
|
1381
|
-
_e = [{}];
|
|
1382
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1383
|
-
case 7:
|
|
1384
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1385
|
-
return [3, 11];
|
|
1386
|
-
case 8:
|
|
1387
|
-
_f = [{}];
|
|
1388
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1389
|
-
case 9:
|
|
1390
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1391
|
-
return [3, 11];
|
|
1370
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1371
|
+
case 3: throw _d.sent();
|
|
1372
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1373
|
+
case 5: throw _d.sent();
|
|
1374
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1375
|
+
case 7: throw _d.sent();
|
|
1376
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1377
|
+
case 9: throw _d.sent();
|
|
1392
1378
|
case 10:
|
|
1393
1379
|
parsedBody = parsedOutput.body;
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
response
|
|
1400
|
-
delete response.Message;
|
|
1401
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1380
|
+
response = new __BaseException({
|
|
1381
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1382
|
+
$fault: "client",
|
|
1383
|
+
$metadata: deserializeMetadata(output),
|
|
1384
|
+
});
|
|
1385
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1402
1386
|
}
|
|
1403
1387
|
});
|
|
1404
1388
|
}); };
|
|
@@ -1447,16 +1431,16 @@ export var deserializeAws_restJson1CreateBackendCommand = function (output, cont
|
|
|
1447
1431
|
});
|
|
1448
1432
|
}); };
|
|
1449
1433
|
var deserializeAws_restJson1CreateBackendCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1450
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1451
|
-
var
|
|
1452
|
-
return __generator(this, function (
|
|
1453
|
-
switch (
|
|
1434
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1435
|
+
var _c;
|
|
1436
|
+
return __generator(this, function (_d) {
|
|
1437
|
+
switch (_d.label) {
|
|
1454
1438
|
case 0:
|
|
1455
1439
|
_a = [__assign({}, output)];
|
|
1456
|
-
|
|
1440
|
+
_c = {};
|
|
1457
1441
|
return [4, parseBody(output.body, context)];
|
|
1458
1442
|
case 1:
|
|
1459
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1443
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1460
1444
|
errorCode = "UnknownError";
|
|
1461
1445
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1462
1446
|
_b = errorCode;
|
|
@@ -1471,40 +1455,22 @@ var deserializeAws_restJson1CreateBackendCommandError = function (output, contex
|
|
|
1471
1455
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
1472
1456
|
}
|
|
1473
1457
|
return [3, 10];
|
|
1474
|
-
case 2:
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
case
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
case 4
|
|
1481
|
-
|
|
1482
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1483
|
-
case 5:
|
|
1484
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1485
|
-
return [3, 11];
|
|
1486
|
-
case 6:
|
|
1487
|
-
_e = [{}];
|
|
1488
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1489
|
-
case 7:
|
|
1490
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1491
|
-
return [3, 11];
|
|
1492
|
-
case 8:
|
|
1493
|
-
_f = [{}];
|
|
1494
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1495
|
-
case 9:
|
|
1496
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1497
|
-
return [3, 11];
|
|
1458
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1459
|
+
case 3: throw _d.sent();
|
|
1460
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1461
|
+
case 5: throw _d.sent();
|
|
1462
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1463
|
+
case 7: throw _d.sent();
|
|
1464
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1465
|
+
case 9: throw _d.sent();
|
|
1498
1466
|
case 10:
|
|
1499
1467
|
parsedBody = parsedOutput.body;
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
response
|
|
1506
|
-
delete response.Message;
|
|
1507
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1468
|
+
response = new __BaseException({
|
|
1469
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1470
|
+
$fault: "client",
|
|
1471
|
+
$metadata: deserializeMetadata(output),
|
|
1472
|
+
});
|
|
1473
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1508
1474
|
}
|
|
1509
1475
|
});
|
|
1510
1476
|
}); };
|
|
@@ -1553,16 +1519,16 @@ export var deserializeAws_restJson1CreateBackendAPICommand = function (output, c
|
|
|
1553
1519
|
});
|
|
1554
1520
|
}); };
|
|
1555
1521
|
var deserializeAws_restJson1CreateBackendAPICommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1556
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1557
|
-
var
|
|
1558
|
-
return __generator(this, function (
|
|
1559
|
-
switch (
|
|
1522
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1523
|
+
var _c;
|
|
1524
|
+
return __generator(this, function (_d) {
|
|
1525
|
+
switch (_d.label) {
|
|
1560
1526
|
case 0:
|
|
1561
1527
|
_a = [__assign({}, output)];
|
|
1562
|
-
|
|
1528
|
+
_c = {};
|
|
1563
1529
|
return [4, parseBody(output.body, context)];
|
|
1564
1530
|
case 1:
|
|
1565
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1531
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1566
1532
|
errorCode = "UnknownError";
|
|
1567
1533
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1568
1534
|
_b = errorCode;
|
|
@@ -1577,40 +1543,22 @@ var deserializeAws_restJson1CreateBackendAPICommandError = function (output, con
|
|
|
1577
1543
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
1578
1544
|
}
|
|
1579
1545
|
return [3, 10];
|
|
1580
|
-
case 2:
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
case
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
case 4
|
|
1587
|
-
|
|
1588
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1589
|
-
case 5:
|
|
1590
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1591
|
-
return [3, 11];
|
|
1592
|
-
case 6:
|
|
1593
|
-
_e = [{}];
|
|
1594
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1595
|
-
case 7:
|
|
1596
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1597
|
-
return [3, 11];
|
|
1598
|
-
case 8:
|
|
1599
|
-
_f = [{}];
|
|
1600
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1601
|
-
case 9:
|
|
1602
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1603
|
-
return [3, 11];
|
|
1546
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1547
|
+
case 3: throw _d.sent();
|
|
1548
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1549
|
+
case 5: throw _d.sent();
|
|
1550
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1551
|
+
case 7: throw _d.sent();
|
|
1552
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1553
|
+
case 9: throw _d.sent();
|
|
1604
1554
|
case 10:
|
|
1605
1555
|
parsedBody = parsedOutput.body;
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
response
|
|
1612
|
-
delete response.Message;
|
|
1613
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1556
|
+
response = new __BaseException({
|
|
1557
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1558
|
+
$fault: "client",
|
|
1559
|
+
$metadata: deserializeMetadata(output),
|
|
1560
|
+
});
|
|
1561
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1614
1562
|
}
|
|
1615
1563
|
});
|
|
1616
1564
|
}); };
|
|
@@ -1659,16 +1607,16 @@ export var deserializeAws_restJson1CreateBackendAuthCommand = function (output,
|
|
|
1659
1607
|
});
|
|
1660
1608
|
}); };
|
|
1661
1609
|
var deserializeAws_restJson1CreateBackendAuthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1662
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1663
|
-
var
|
|
1664
|
-
return __generator(this, function (
|
|
1665
|
-
switch (
|
|
1610
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1611
|
+
var _c;
|
|
1612
|
+
return __generator(this, function (_d) {
|
|
1613
|
+
switch (_d.label) {
|
|
1666
1614
|
case 0:
|
|
1667
1615
|
_a = [__assign({}, output)];
|
|
1668
|
-
|
|
1616
|
+
_c = {};
|
|
1669
1617
|
return [4, parseBody(output.body, context)];
|
|
1670
1618
|
case 1:
|
|
1671
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1619
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1672
1620
|
errorCode = "UnknownError";
|
|
1673
1621
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1674
1622
|
_b = errorCode;
|
|
@@ -1683,40 +1631,22 @@ var deserializeAws_restJson1CreateBackendAuthCommandError = function (output, co
|
|
|
1683
1631
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
1684
1632
|
}
|
|
1685
1633
|
return [3, 10];
|
|
1686
|
-
case 2:
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
case
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
case 4
|
|
1693
|
-
|
|
1694
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1695
|
-
case 5:
|
|
1696
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1697
|
-
return [3, 11];
|
|
1698
|
-
case 6:
|
|
1699
|
-
_e = [{}];
|
|
1700
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1701
|
-
case 7:
|
|
1702
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1703
|
-
return [3, 11];
|
|
1704
|
-
case 8:
|
|
1705
|
-
_f = [{}];
|
|
1706
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1707
|
-
case 9:
|
|
1708
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1709
|
-
return [3, 11];
|
|
1634
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1635
|
+
case 3: throw _d.sent();
|
|
1636
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1637
|
+
case 5: throw _d.sent();
|
|
1638
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1639
|
+
case 7: throw _d.sent();
|
|
1640
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1641
|
+
case 9: throw _d.sent();
|
|
1710
1642
|
case 10:
|
|
1711
1643
|
parsedBody = parsedOutput.body;
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
response
|
|
1718
|
-
delete response.Message;
|
|
1719
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1644
|
+
response = new __BaseException({
|
|
1645
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1646
|
+
$fault: "client",
|
|
1647
|
+
$metadata: deserializeMetadata(output),
|
|
1648
|
+
});
|
|
1649
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1720
1650
|
}
|
|
1721
1651
|
});
|
|
1722
1652
|
}); };
|
|
@@ -1757,16 +1687,16 @@ export var deserializeAws_restJson1CreateBackendConfigCommand = function (output
|
|
|
1757
1687
|
});
|
|
1758
1688
|
}); };
|
|
1759
1689
|
var deserializeAws_restJson1CreateBackendConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1760
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1761
|
-
var
|
|
1762
|
-
return __generator(this, function (
|
|
1763
|
-
switch (
|
|
1690
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1691
|
+
var _c;
|
|
1692
|
+
return __generator(this, function (_d) {
|
|
1693
|
+
switch (_d.label) {
|
|
1764
1694
|
case 0:
|
|
1765
1695
|
_a = [__assign({}, output)];
|
|
1766
|
-
|
|
1696
|
+
_c = {};
|
|
1767
1697
|
return [4, parseBody(output.body, context)];
|
|
1768
1698
|
case 1:
|
|
1769
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1699
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1770
1700
|
errorCode = "UnknownError";
|
|
1771
1701
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1772
1702
|
_b = errorCode;
|
|
@@ -1781,40 +1711,22 @@ var deserializeAws_restJson1CreateBackendConfigCommandError = function (output,
|
|
|
1781
1711
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
1782
1712
|
}
|
|
1783
1713
|
return [3, 10];
|
|
1784
|
-
case 2:
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
case
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
case 4
|
|
1791
|
-
|
|
1792
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1793
|
-
case 5:
|
|
1794
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1795
|
-
return [3, 11];
|
|
1796
|
-
case 6:
|
|
1797
|
-
_e = [{}];
|
|
1798
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1799
|
-
case 7:
|
|
1800
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1801
|
-
return [3, 11];
|
|
1802
|
-
case 8:
|
|
1803
|
-
_f = [{}];
|
|
1804
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1805
|
-
case 9:
|
|
1806
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1807
|
-
return [3, 11];
|
|
1714
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1715
|
+
case 3: throw _d.sent();
|
|
1716
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1717
|
+
case 5: throw _d.sent();
|
|
1718
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1719
|
+
case 7: throw _d.sent();
|
|
1720
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1721
|
+
case 9: throw _d.sent();
|
|
1808
1722
|
case 10:
|
|
1809
1723
|
parsedBody = parsedOutput.body;
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
response
|
|
1816
|
-
delete response.Message;
|
|
1817
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1724
|
+
response = new __BaseException({
|
|
1725
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1726
|
+
$fault: "client",
|
|
1727
|
+
$metadata: deserializeMetadata(output),
|
|
1728
|
+
});
|
|
1729
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1818
1730
|
}
|
|
1819
1731
|
});
|
|
1820
1732
|
}); };
|
|
@@ -1855,16 +1767,16 @@ export var deserializeAws_restJson1CreateBackendStorageCommand = function (outpu
|
|
|
1855
1767
|
});
|
|
1856
1768
|
}); };
|
|
1857
1769
|
var deserializeAws_restJson1CreateBackendStorageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1858
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1859
|
-
var
|
|
1860
|
-
return __generator(this, function (
|
|
1861
|
-
switch (
|
|
1770
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1771
|
+
var _c;
|
|
1772
|
+
return __generator(this, function (_d) {
|
|
1773
|
+
switch (_d.label) {
|
|
1862
1774
|
case 0:
|
|
1863
1775
|
_a = [__assign({}, output)];
|
|
1864
|
-
|
|
1776
|
+
_c = {};
|
|
1865
1777
|
return [4, parseBody(output.body, context)];
|
|
1866
1778
|
case 1:
|
|
1867
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1779
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1868
1780
|
errorCode = "UnknownError";
|
|
1869
1781
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1870
1782
|
_b = errorCode;
|
|
@@ -1879,40 +1791,22 @@ var deserializeAws_restJson1CreateBackendStorageCommandError = function (output,
|
|
|
1879
1791
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
1880
1792
|
}
|
|
1881
1793
|
return [3, 10];
|
|
1882
|
-
case 2:
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
case
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
case 4
|
|
1889
|
-
|
|
1890
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1891
|
-
case 5:
|
|
1892
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1893
|
-
return [3, 11];
|
|
1894
|
-
case 6:
|
|
1895
|
-
_e = [{}];
|
|
1896
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1897
|
-
case 7:
|
|
1898
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1899
|
-
return [3, 11];
|
|
1900
|
-
case 8:
|
|
1901
|
-
_f = [{}];
|
|
1902
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1903
|
-
case 9:
|
|
1904
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1905
|
-
return [3, 11];
|
|
1794
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1795
|
+
case 3: throw _d.sent();
|
|
1796
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1797
|
+
case 5: throw _d.sent();
|
|
1798
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1799
|
+
case 7: throw _d.sent();
|
|
1800
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1801
|
+
case 9: throw _d.sent();
|
|
1906
1802
|
case 10:
|
|
1907
1803
|
parsedBody = parsedOutput.body;
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
response
|
|
1914
|
-
delete response.Message;
|
|
1915
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1804
|
+
response = new __BaseException({
|
|
1805
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1806
|
+
$fault: "client",
|
|
1807
|
+
$metadata: deserializeMetadata(output),
|
|
1808
|
+
});
|
|
1809
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1916
1810
|
}
|
|
1917
1811
|
});
|
|
1918
1812
|
}); };
|
|
@@ -1953,16 +1847,16 @@ export var deserializeAws_restJson1CreateTokenCommand = function (output, contex
|
|
|
1953
1847
|
});
|
|
1954
1848
|
}); };
|
|
1955
1849
|
var deserializeAws_restJson1CreateTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1956
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
1957
|
-
var
|
|
1958
|
-
return __generator(this, function (
|
|
1959
|
-
switch (
|
|
1850
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1851
|
+
var _c;
|
|
1852
|
+
return __generator(this, function (_d) {
|
|
1853
|
+
switch (_d.label) {
|
|
1960
1854
|
case 0:
|
|
1961
1855
|
_a = [__assign({}, output)];
|
|
1962
|
-
|
|
1856
|
+
_c = {};
|
|
1963
1857
|
return [4, parseBody(output.body, context)];
|
|
1964
1858
|
case 1:
|
|
1965
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1859
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1966
1860
|
errorCode = "UnknownError";
|
|
1967
1861
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1968
1862
|
_b = errorCode;
|
|
@@ -1977,40 +1871,22 @@ var deserializeAws_restJson1CreateTokenCommandError = function (output, context)
|
|
|
1977
1871
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
1978
1872
|
}
|
|
1979
1873
|
return [3, 10];
|
|
1980
|
-
case 2:
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
case
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
case 4
|
|
1987
|
-
|
|
1988
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1989
|
-
case 5:
|
|
1990
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1991
|
-
return [3, 11];
|
|
1992
|
-
case 6:
|
|
1993
|
-
_e = [{}];
|
|
1994
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1995
|
-
case 7:
|
|
1996
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1997
|
-
return [3, 11];
|
|
1998
|
-
case 8:
|
|
1999
|
-
_f = [{}];
|
|
2000
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2001
|
-
case 9:
|
|
2002
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2003
|
-
return [3, 11];
|
|
1874
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1875
|
+
case 3: throw _d.sent();
|
|
1876
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1877
|
+
case 5: throw _d.sent();
|
|
1878
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1879
|
+
case 7: throw _d.sent();
|
|
1880
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1881
|
+
case 9: throw _d.sent();
|
|
2004
1882
|
case 10:
|
|
2005
1883
|
parsedBody = parsedOutput.body;
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
response
|
|
2012
|
-
delete response.Message;
|
|
2013
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1884
|
+
response = new __BaseException({
|
|
1885
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1886
|
+
$fault: "client",
|
|
1887
|
+
$metadata: deserializeMetadata(output),
|
|
1888
|
+
});
|
|
1889
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2014
1890
|
}
|
|
2015
1891
|
});
|
|
2016
1892
|
}); };
|
|
@@ -2059,16 +1935,16 @@ export var deserializeAws_restJson1DeleteBackendCommand = function (output, cont
|
|
|
2059
1935
|
});
|
|
2060
1936
|
}); };
|
|
2061
1937
|
var deserializeAws_restJson1DeleteBackendCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2062
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2063
|
-
var
|
|
2064
|
-
return __generator(this, function (
|
|
2065
|
-
switch (
|
|
1938
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1939
|
+
var _c;
|
|
1940
|
+
return __generator(this, function (_d) {
|
|
1941
|
+
switch (_d.label) {
|
|
2066
1942
|
case 0:
|
|
2067
1943
|
_a = [__assign({}, output)];
|
|
2068
|
-
|
|
1944
|
+
_c = {};
|
|
2069
1945
|
return [4, parseBody(output.body, context)];
|
|
2070
1946
|
case 1:
|
|
2071
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
1947
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2072
1948
|
errorCode = "UnknownError";
|
|
2073
1949
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2074
1950
|
_b = errorCode;
|
|
@@ -2083,40 +1959,22 @@ var deserializeAws_restJson1DeleteBackendCommandError = function (output, contex
|
|
|
2083
1959
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2084
1960
|
}
|
|
2085
1961
|
return [3, 10];
|
|
2086
|
-
case 2:
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
case
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
case 4
|
|
2093
|
-
|
|
2094
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2095
|
-
case 5:
|
|
2096
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2097
|
-
return [3, 11];
|
|
2098
|
-
case 6:
|
|
2099
|
-
_e = [{}];
|
|
2100
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2101
|
-
case 7:
|
|
2102
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2103
|
-
return [3, 11];
|
|
2104
|
-
case 8:
|
|
2105
|
-
_f = [{}];
|
|
2106
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2107
|
-
case 9:
|
|
2108
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2109
|
-
return [3, 11];
|
|
1962
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1963
|
+
case 3: throw _d.sent();
|
|
1964
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
1965
|
+
case 5: throw _d.sent();
|
|
1966
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
1967
|
+
case 7: throw _d.sent();
|
|
1968
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1969
|
+
case 9: throw _d.sent();
|
|
2110
1970
|
case 10:
|
|
2111
1971
|
parsedBody = parsedOutput.body;
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
response
|
|
2118
|
-
delete response.Message;
|
|
2119
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1972
|
+
response = new __BaseException({
|
|
1973
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1974
|
+
$fault: "client",
|
|
1975
|
+
$metadata: deserializeMetadata(output),
|
|
1976
|
+
});
|
|
1977
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2120
1978
|
}
|
|
2121
1979
|
});
|
|
2122
1980
|
}); };
|
|
@@ -2165,16 +2023,16 @@ export var deserializeAws_restJson1DeleteBackendAPICommand = function (output, c
|
|
|
2165
2023
|
});
|
|
2166
2024
|
}); };
|
|
2167
2025
|
var deserializeAws_restJson1DeleteBackendAPICommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2168
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2169
|
-
var
|
|
2170
|
-
return __generator(this, function (
|
|
2171
|
-
switch (
|
|
2026
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2027
|
+
var _c;
|
|
2028
|
+
return __generator(this, function (_d) {
|
|
2029
|
+
switch (_d.label) {
|
|
2172
2030
|
case 0:
|
|
2173
2031
|
_a = [__assign({}, output)];
|
|
2174
|
-
|
|
2032
|
+
_c = {};
|
|
2175
2033
|
return [4, parseBody(output.body, context)];
|
|
2176
2034
|
case 1:
|
|
2177
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2035
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2178
2036
|
errorCode = "UnknownError";
|
|
2179
2037
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2180
2038
|
_b = errorCode;
|
|
@@ -2189,40 +2047,22 @@ var deserializeAws_restJson1DeleteBackendAPICommandError = function (output, con
|
|
|
2189
2047
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2190
2048
|
}
|
|
2191
2049
|
return [3, 10];
|
|
2192
|
-
case 2:
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
case
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
case 4
|
|
2199
|
-
|
|
2200
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2201
|
-
case 5:
|
|
2202
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2203
|
-
return [3, 11];
|
|
2204
|
-
case 6:
|
|
2205
|
-
_e = [{}];
|
|
2206
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2207
|
-
case 7:
|
|
2208
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2209
|
-
return [3, 11];
|
|
2210
|
-
case 8:
|
|
2211
|
-
_f = [{}];
|
|
2212
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2213
|
-
case 9:
|
|
2214
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2215
|
-
return [3, 11];
|
|
2050
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2051
|
+
case 3: throw _d.sent();
|
|
2052
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2053
|
+
case 5: throw _d.sent();
|
|
2054
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2055
|
+
case 7: throw _d.sent();
|
|
2056
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2057
|
+
case 9: throw _d.sent();
|
|
2216
2058
|
case 10:
|
|
2217
2059
|
parsedBody = parsedOutput.body;
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
response
|
|
2224
|
-
delete response.Message;
|
|
2225
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2060
|
+
response = new __BaseException({
|
|
2061
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2062
|
+
$fault: "client",
|
|
2063
|
+
$metadata: deserializeMetadata(output),
|
|
2064
|
+
});
|
|
2065
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2226
2066
|
}
|
|
2227
2067
|
});
|
|
2228
2068
|
}); };
|
|
@@ -2271,16 +2111,16 @@ export var deserializeAws_restJson1DeleteBackendAuthCommand = function (output,
|
|
|
2271
2111
|
});
|
|
2272
2112
|
}); };
|
|
2273
2113
|
var deserializeAws_restJson1DeleteBackendAuthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2274
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2275
|
-
var
|
|
2276
|
-
return __generator(this, function (
|
|
2277
|
-
switch (
|
|
2114
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2115
|
+
var _c;
|
|
2116
|
+
return __generator(this, function (_d) {
|
|
2117
|
+
switch (_d.label) {
|
|
2278
2118
|
case 0:
|
|
2279
2119
|
_a = [__assign({}, output)];
|
|
2280
|
-
|
|
2120
|
+
_c = {};
|
|
2281
2121
|
return [4, parseBody(output.body, context)];
|
|
2282
2122
|
case 1:
|
|
2283
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2123
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2284
2124
|
errorCode = "UnknownError";
|
|
2285
2125
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2286
2126
|
_b = errorCode;
|
|
@@ -2295,40 +2135,22 @@ var deserializeAws_restJson1DeleteBackendAuthCommandError = function (output, co
|
|
|
2295
2135
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2296
2136
|
}
|
|
2297
2137
|
return [3, 10];
|
|
2298
|
-
case 2:
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
case
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
case 4
|
|
2305
|
-
|
|
2306
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2307
|
-
case 5:
|
|
2308
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2309
|
-
return [3, 11];
|
|
2310
|
-
case 6:
|
|
2311
|
-
_e = [{}];
|
|
2312
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2313
|
-
case 7:
|
|
2314
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2315
|
-
return [3, 11];
|
|
2316
|
-
case 8:
|
|
2317
|
-
_f = [{}];
|
|
2318
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2319
|
-
case 9:
|
|
2320
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2321
|
-
return [3, 11];
|
|
2138
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2139
|
+
case 3: throw _d.sent();
|
|
2140
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2141
|
+
case 5: throw _d.sent();
|
|
2142
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2143
|
+
case 7: throw _d.sent();
|
|
2144
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2145
|
+
case 9: throw _d.sent();
|
|
2322
2146
|
case 10:
|
|
2323
2147
|
parsedBody = parsedOutput.body;
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
response
|
|
2330
|
-
delete response.Message;
|
|
2331
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2148
|
+
response = new __BaseException({
|
|
2149
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2150
|
+
$fault: "client",
|
|
2151
|
+
$metadata: deserializeMetadata(output),
|
|
2152
|
+
});
|
|
2153
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2332
2154
|
}
|
|
2333
2155
|
});
|
|
2334
2156
|
}); };
|
|
@@ -2369,16 +2191,16 @@ export var deserializeAws_restJson1DeleteBackendStorageCommand = function (outpu
|
|
|
2369
2191
|
});
|
|
2370
2192
|
}); };
|
|
2371
2193
|
var deserializeAws_restJson1DeleteBackendStorageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2372
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2373
|
-
var
|
|
2374
|
-
return __generator(this, function (
|
|
2375
|
-
switch (
|
|
2194
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2195
|
+
var _c;
|
|
2196
|
+
return __generator(this, function (_d) {
|
|
2197
|
+
switch (_d.label) {
|
|
2376
2198
|
case 0:
|
|
2377
2199
|
_a = [__assign({}, output)];
|
|
2378
|
-
|
|
2200
|
+
_c = {};
|
|
2379
2201
|
return [4, parseBody(output.body, context)];
|
|
2380
2202
|
case 1:
|
|
2381
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2203
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2382
2204
|
errorCode = "UnknownError";
|
|
2383
2205
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2384
2206
|
_b = errorCode;
|
|
@@ -2393,40 +2215,22 @@ var deserializeAws_restJson1DeleteBackendStorageCommandError = function (output,
|
|
|
2393
2215
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2394
2216
|
}
|
|
2395
2217
|
return [3, 10];
|
|
2396
|
-
case 2:
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
case
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
case 4
|
|
2403
|
-
|
|
2404
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2405
|
-
case 5:
|
|
2406
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2407
|
-
return [3, 11];
|
|
2408
|
-
case 6:
|
|
2409
|
-
_e = [{}];
|
|
2410
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2411
|
-
case 7:
|
|
2412
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2413
|
-
return [3, 11];
|
|
2414
|
-
case 8:
|
|
2415
|
-
_f = [{}];
|
|
2416
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2417
|
-
case 9:
|
|
2418
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2419
|
-
return [3, 11];
|
|
2218
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2219
|
+
case 3: throw _d.sent();
|
|
2220
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2221
|
+
case 5: throw _d.sent();
|
|
2222
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2223
|
+
case 7: throw _d.sent();
|
|
2224
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2225
|
+
case 9: throw _d.sent();
|
|
2420
2226
|
case 10:
|
|
2421
2227
|
parsedBody = parsedOutput.body;
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
response
|
|
2428
|
-
delete response.Message;
|
|
2429
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2228
|
+
response = new __BaseException({
|
|
2229
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2230
|
+
$fault: "client",
|
|
2231
|
+
$metadata: deserializeMetadata(output),
|
|
2232
|
+
});
|
|
2233
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2430
2234
|
}
|
|
2431
2235
|
});
|
|
2432
2236
|
}); };
|
|
@@ -2455,16 +2259,16 @@ export var deserializeAws_restJson1DeleteTokenCommand = function (output, contex
|
|
|
2455
2259
|
});
|
|
2456
2260
|
}); };
|
|
2457
2261
|
var deserializeAws_restJson1DeleteTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2458
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2459
|
-
var
|
|
2460
|
-
return __generator(this, function (
|
|
2461
|
-
switch (
|
|
2262
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2263
|
+
var _c;
|
|
2264
|
+
return __generator(this, function (_d) {
|
|
2265
|
+
switch (_d.label) {
|
|
2462
2266
|
case 0:
|
|
2463
2267
|
_a = [__assign({}, output)];
|
|
2464
|
-
|
|
2268
|
+
_c = {};
|
|
2465
2269
|
return [4, parseBody(output.body, context)];
|
|
2466
2270
|
case 1:
|
|
2467
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2271
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2468
2272
|
errorCode = "UnknownError";
|
|
2469
2273
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2470
2274
|
_b = errorCode;
|
|
@@ -2479,40 +2283,22 @@ var deserializeAws_restJson1DeleteTokenCommandError = function (output, context)
|
|
|
2479
2283
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2480
2284
|
}
|
|
2481
2285
|
return [3, 10];
|
|
2482
|
-
case 2:
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
case
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
case 4
|
|
2489
|
-
|
|
2490
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2491
|
-
case 5:
|
|
2492
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2493
|
-
return [3, 11];
|
|
2494
|
-
case 6:
|
|
2495
|
-
_e = [{}];
|
|
2496
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2497
|
-
case 7:
|
|
2498
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2499
|
-
return [3, 11];
|
|
2500
|
-
case 8:
|
|
2501
|
-
_f = [{}];
|
|
2502
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2503
|
-
case 9:
|
|
2504
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2505
|
-
return [3, 11];
|
|
2286
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2287
|
+
case 3: throw _d.sent();
|
|
2288
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2289
|
+
case 5: throw _d.sent();
|
|
2290
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2291
|
+
case 7: throw _d.sent();
|
|
2292
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2293
|
+
case 9: throw _d.sent();
|
|
2506
2294
|
case 10:
|
|
2507
2295
|
parsedBody = parsedOutput.body;
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
response
|
|
2514
|
-
delete response.Message;
|
|
2515
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2296
|
+
response = new __BaseException({
|
|
2297
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2298
|
+
$fault: "client",
|
|
2299
|
+
$metadata: deserializeMetadata(output),
|
|
2300
|
+
});
|
|
2301
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2516
2302
|
}
|
|
2517
2303
|
});
|
|
2518
2304
|
}); };
|
|
@@ -2561,16 +2347,16 @@ export var deserializeAws_restJson1GenerateBackendAPIModelsCommand = function (o
|
|
|
2561
2347
|
});
|
|
2562
2348
|
}); };
|
|
2563
2349
|
var deserializeAws_restJson1GenerateBackendAPIModelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2564
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2565
|
-
var
|
|
2566
|
-
return __generator(this, function (
|
|
2567
|
-
switch (
|
|
2350
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2351
|
+
var _c;
|
|
2352
|
+
return __generator(this, function (_d) {
|
|
2353
|
+
switch (_d.label) {
|
|
2568
2354
|
case 0:
|
|
2569
2355
|
_a = [__assign({}, output)];
|
|
2570
|
-
|
|
2356
|
+
_c = {};
|
|
2571
2357
|
return [4, parseBody(output.body, context)];
|
|
2572
2358
|
case 1:
|
|
2573
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2359
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2574
2360
|
errorCode = "UnknownError";
|
|
2575
2361
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2576
2362
|
_b = errorCode;
|
|
@@ -2585,40 +2371,22 @@ var deserializeAws_restJson1GenerateBackendAPIModelsCommandError = function (out
|
|
|
2585
2371
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2586
2372
|
}
|
|
2587
2373
|
return [3, 10];
|
|
2588
|
-
case 2:
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
case
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
case 4
|
|
2595
|
-
|
|
2596
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2597
|
-
case 5:
|
|
2598
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2599
|
-
return [3, 11];
|
|
2600
|
-
case 6:
|
|
2601
|
-
_e = [{}];
|
|
2602
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2603
|
-
case 7:
|
|
2604
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2605
|
-
return [3, 11];
|
|
2606
|
-
case 8:
|
|
2607
|
-
_f = [{}];
|
|
2608
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2609
|
-
case 9:
|
|
2610
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2611
|
-
return [3, 11];
|
|
2374
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2375
|
+
case 3: throw _d.sent();
|
|
2376
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2377
|
+
case 5: throw _d.sent();
|
|
2378
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2379
|
+
case 7: throw _d.sent();
|
|
2380
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2381
|
+
case 9: throw _d.sent();
|
|
2612
2382
|
case 10:
|
|
2613
2383
|
parsedBody = parsedOutput.body;
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
response
|
|
2620
|
-
delete response.Message;
|
|
2621
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2384
|
+
response = new __BaseException({
|
|
2385
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2386
|
+
$fault: "client",
|
|
2387
|
+
$metadata: deserializeMetadata(output),
|
|
2388
|
+
});
|
|
2389
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2622
2390
|
}
|
|
2623
2391
|
});
|
|
2624
2392
|
}); };
|
|
@@ -2671,16 +2439,16 @@ export var deserializeAws_restJson1GetBackendCommand = function (output, context
|
|
|
2671
2439
|
});
|
|
2672
2440
|
}); };
|
|
2673
2441
|
var deserializeAws_restJson1GetBackendCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2674
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2675
|
-
var
|
|
2676
|
-
return __generator(this, function (
|
|
2677
|
-
switch (
|
|
2442
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2443
|
+
var _c;
|
|
2444
|
+
return __generator(this, function (_d) {
|
|
2445
|
+
switch (_d.label) {
|
|
2678
2446
|
case 0:
|
|
2679
2447
|
_a = [__assign({}, output)];
|
|
2680
|
-
|
|
2448
|
+
_c = {};
|
|
2681
2449
|
return [4, parseBody(output.body, context)];
|
|
2682
2450
|
case 1:
|
|
2683
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2451
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2684
2452
|
errorCode = "UnknownError";
|
|
2685
2453
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2686
2454
|
_b = errorCode;
|
|
@@ -2695,40 +2463,22 @@ var deserializeAws_restJson1GetBackendCommandError = function (output, context)
|
|
|
2695
2463
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2696
2464
|
}
|
|
2697
2465
|
return [3, 10];
|
|
2698
|
-
case 2:
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
case
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
case 4
|
|
2705
|
-
|
|
2706
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2707
|
-
case 5:
|
|
2708
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2709
|
-
return [3, 11];
|
|
2710
|
-
case 6:
|
|
2711
|
-
_e = [{}];
|
|
2712
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2713
|
-
case 7:
|
|
2714
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2715
|
-
return [3, 11];
|
|
2716
|
-
case 8:
|
|
2717
|
-
_f = [{}];
|
|
2718
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2719
|
-
case 9:
|
|
2720
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2721
|
-
return [3, 11];
|
|
2466
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2467
|
+
case 3: throw _d.sent();
|
|
2468
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2469
|
+
case 5: throw _d.sent();
|
|
2470
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2471
|
+
case 7: throw _d.sent();
|
|
2472
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2473
|
+
case 9: throw _d.sent();
|
|
2722
2474
|
case 10:
|
|
2723
2475
|
parsedBody = parsedOutput.body;
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
response
|
|
2730
|
-
delete response.Message;
|
|
2731
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2476
|
+
response = new __BaseException({
|
|
2477
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2478
|
+
$fault: "client",
|
|
2479
|
+
$metadata: deserializeMetadata(output),
|
|
2480
|
+
});
|
|
2481
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2732
2482
|
}
|
|
2733
2483
|
});
|
|
2734
2484
|
}); };
|
|
@@ -2773,16 +2523,16 @@ export var deserializeAws_restJson1GetBackendAPICommand = function (output, cont
|
|
|
2773
2523
|
});
|
|
2774
2524
|
}); };
|
|
2775
2525
|
var deserializeAws_restJson1GetBackendAPICommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2776
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2777
|
-
var
|
|
2778
|
-
return __generator(this, function (
|
|
2779
|
-
switch (
|
|
2526
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2527
|
+
var _c;
|
|
2528
|
+
return __generator(this, function (_d) {
|
|
2529
|
+
switch (_d.label) {
|
|
2780
2530
|
case 0:
|
|
2781
2531
|
_a = [__assign({}, output)];
|
|
2782
|
-
|
|
2532
|
+
_c = {};
|
|
2783
2533
|
return [4, parseBody(output.body, context)];
|
|
2784
2534
|
case 1:
|
|
2785
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2535
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2786
2536
|
errorCode = "UnknownError";
|
|
2787
2537
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2788
2538
|
_b = errorCode;
|
|
@@ -2797,40 +2547,22 @@ var deserializeAws_restJson1GetBackendAPICommandError = function (output, contex
|
|
|
2797
2547
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2798
2548
|
}
|
|
2799
2549
|
return [3, 10];
|
|
2800
|
-
case 2:
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
case
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
case 4
|
|
2807
|
-
|
|
2808
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2809
|
-
case 5:
|
|
2810
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2811
|
-
return [3, 11];
|
|
2812
|
-
case 6:
|
|
2813
|
-
_e = [{}];
|
|
2814
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2815
|
-
case 7:
|
|
2816
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2817
|
-
return [3, 11];
|
|
2818
|
-
case 8:
|
|
2819
|
-
_f = [{}];
|
|
2820
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2821
|
-
case 9:
|
|
2822
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2823
|
-
return [3, 11];
|
|
2550
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2551
|
+
case 3: throw _d.sent();
|
|
2552
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2553
|
+
case 5: throw _d.sent();
|
|
2554
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2555
|
+
case 7: throw _d.sent();
|
|
2556
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2557
|
+
case 9: throw _d.sent();
|
|
2824
2558
|
case 10:
|
|
2825
2559
|
parsedBody = parsedOutput.body;
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
response
|
|
2832
|
-
delete response.Message;
|
|
2833
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2560
|
+
response = new __BaseException({
|
|
2561
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2562
|
+
$fault: "client",
|
|
2563
|
+
$metadata: deserializeMetadata(output),
|
|
2564
|
+
});
|
|
2565
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2834
2566
|
}
|
|
2835
2567
|
});
|
|
2836
2568
|
}); };
|
|
@@ -2863,16 +2595,16 @@ export var deserializeAws_restJson1GetBackendAPIModelsCommand = function (output
|
|
|
2863
2595
|
});
|
|
2864
2596
|
}); };
|
|
2865
2597
|
var deserializeAws_restJson1GetBackendAPIModelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2866
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2867
|
-
var
|
|
2868
|
-
return __generator(this, function (
|
|
2869
|
-
switch (
|
|
2598
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2599
|
+
var _c;
|
|
2600
|
+
return __generator(this, function (_d) {
|
|
2601
|
+
switch (_d.label) {
|
|
2870
2602
|
case 0:
|
|
2871
2603
|
_a = [__assign({}, output)];
|
|
2872
|
-
|
|
2604
|
+
_c = {};
|
|
2873
2605
|
return [4, parseBody(output.body, context)];
|
|
2874
2606
|
case 1:
|
|
2875
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2607
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2876
2608
|
errorCode = "UnknownError";
|
|
2877
2609
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2878
2610
|
_b = errorCode;
|
|
@@ -2887,40 +2619,22 @@ var deserializeAws_restJson1GetBackendAPIModelsCommandError = function (output,
|
|
|
2887
2619
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2888
2620
|
}
|
|
2889
2621
|
return [3, 10];
|
|
2890
|
-
case 2:
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
case
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
case 4
|
|
2897
|
-
|
|
2898
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2899
|
-
case 5:
|
|
2900
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2901
|
-
return [3, 11];
|
|
2902
|
-
case 6:
|
|
2903
|
-
_e = [{}];
|
|
2904
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2905
|
-
case 7:
|
|
2906
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2907
|
-
return [3, 11];
|
|
2908
|
-
case 8:
|
|
2909
|
-
_f = [{}];
|
|
2910
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2911
|
-
case 9:
|
|
2912
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2913
|
-
return [3, 11];
|
|
2622
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2623
|
+
case 3: throw _d.sent();
|
|
2624
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2625
|
+
case 5: throw _d.sent();
|
|
2626
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2627
|
+
case 7: throw _d.sent();
|
|
2628
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2629
|
+
case 9: throw _d.sent();
|
|
2914
2630
|
case 10:
|
|
2915
2631
|
parsedBody = parsedOutput.body;
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
response
|
|
2922
|
-
delete response.Message;
|
|
2923
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2632
|
+
response = new __BaseException({
|
|
2633
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2634
|
+
$fault: "client",
|
|
2635
|
+
$metadata: deserializeMetadata(output),
|
|
2636
|
+
});
|
|
2637
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2924
2638
|
}
|
|
2925
2639
|
});
|
|
2926
2640
|
}); };
|
|
@@ -2965,16 +2679,16 @@ export var deserializeAws_restJson1GetBackendAuthCommand = function (output, con
|
|
|
2965
2679
|
});
|
|
2966
2680
|
}); };
|
|
2967
2681
|
var deserializeAws_restJson1GetBackendAuthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2968
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
2969
|
-
var
|
|
2970
|
-
return __generator(this, function (
|
|
2971
|
-
switch (
|
|
2682
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2683
|
+
var _c;
|
|
2684
|
+
return __generator(this, function (_d) {
|
|
2685
|
+
switch (_d.label) {
|
|
2972
2686
|
case 0:
|
|
2973
2687
|
_a = [__assign({}, output)];
|
|
2974
|
-
|
|
2688
|
+
_c = {};
|
|
2975
2689
|
return [4, parseBody(output.body, context)];
|
|
2976
2690
|
case 1:
|
|
2977
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2691
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2978
2692
|
errorCode = "UnknownError";
|
|
2979
2693
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2980
2694
|
_b = errorCode;
|
|
@@ -2989,40 +2703,22 @@ var deserializeAws_restJson1GetBackendAuthCommandError = function (output, conte
|
|
|
2989
2703
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
2990
2704
|
}
|
|
2991
2705
|
return [3, 10];
|
|
2992
|
-
case 2:
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
case
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
case 4
|
|
2999
|
-
|
|
3000
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3001
|
-
case 5:
|
|
3002
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3003
|
-
return [3, 11];
|
|
3004
|
-
case 6:
|
|
3005
|
-
_e = [{}];
|
|
3006
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3007
|
-
case 7:
|
|
3008
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3009
|
-
return [3, 11];
|
|
3010
|
-
case 8:
|
|
3011
|
-
_f = [{}];
|
|
3012
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3013
|
-
case 9:
|
|
3014
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3015
|
-
return [3, 11];
|
|
2706
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2707
|
+
case 3: throw _d.sent();
|
|
2708
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2709
|
+
case 5: throw _d.sent();
|
|
2710
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2711
|
+
case 7: throw _d.sent();
|
|
2712
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2713
|
+
case 9: throw _d.sent();
|
|
3016
2714
|
case 10:
|
|
3017
2715
|
parsedBody = parsedOutput.body;
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
response
|
|
3024
|
-
delete response.Message;
|
|
3025
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2716
|
+
response = new __BaseException({
|
|
2717
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2718
|
+
$fault: "client",
|
|
2719
|
+
$metadata: deserializeMetadata(output),
|
|
2720
|
+
});
|
|
2721
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3026
2722
|
}
|
|
3027
2723
|
});
|
|
3028
2724
|
}); };
|
|
@@ -3079,16 +2775,16 @@ export var deserializeAws_restJson1GetBackendJobCommand = function (output, cont
|
|
|
3079
2775
|
});
|
|
3080
2776
|
}); };
|
|
3081
2777
|
var deserializeAws_restJson1GetBackendJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3082
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3083
|
-
var
|
|
3084
|
-
return __generator(this, function (
|
|
3085
|
-
switch (
|
|
2778
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2779
|
+
var _c;
|
|
2780
|
+
return __generator(this, function (_d) {
|
|
2781
|
+
switch (_d.label) {
|
|
3086
2782
|
case 0:
|
|
3087
2783
|
_a = [__assign({}, output)];
|
|
3088
|
-
|
|
2784
|
+
_c = {};
|
|
3089
2785
|
return [4, parseBody(output.body, context)];
|
|
3090
2786
|
case 1:
|
|
3091
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2787
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3092
2788
|
errorCode = "UnknownError";
|
|
3093
2789
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3094
2790
|
_b = errorCode;
|
|
@@ -3103,40 +2799,22 @@ var deserializeAws_restJson1GetBackendJobCommandError = function (output, contex
|
|
|
3103
2799
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
3104
2800
|
}
|
|
3105
2801
|
return [3, 10];
|
|
3106
|
-
case 2:
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
case
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
case 4
|
|
3113
|
-
|
|
3114
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3115
|
-
case 5:
|
|
3116
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3117
|
-
return [3, 11];
|
|
3118
|
-
case 6:
|
|
3119
|
-
_e = [{}];
|
|
3120
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3121
|
-
case 7:
|
|
3122
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3123
|
-
return [3, 11];
|
|
3124
|
-
case 8:
|
|
3125
|
-
_f = [{}];
|
|
3126
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3127
|
-
case 9:
|
|
3128
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3129
|
-
return [3, 11];
|
|
2802
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2803
|
+
case 3: throw _d.sent();
|
|
2804
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2805
|
+
case 5: throw _d.sent();
|
|
2806
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2807
|
+
case 7: throw _d.sent();
|
|
2808
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2809
|
+
case 9: throw _d.sent();
|
|
3130
2810
|
case 10:
|
|
3131
2811
|
parsedBody = parsedOutput.body;
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
response
|
|
3138
|
-
delete response.Message;
|
|
3139
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2812
|
+
response = new __BaseException({
|
|
2813
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2814
|
+
$fault: "client",
|
|
2815
|
+
$metadata: deserializeMetadata(output),
|
|
2816
|
+
});
|
|
2817
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3140
2818
|
}
|
|
3141
2819
|
});
|
|
3142
2820
|
}); };
|
|
@@ -3177,16 +2855,16 @@ export var deserializeAws_restJson1GetBackendStorageCommand = function (output,
|
|
|
3177
2855
|
});
|
|
3178
2856
|
}); };
|
|
3179
2857
|
var deserializeAws_restJson1GetBackendStorageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3180
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3181
|
-
var
|
|
3182
|
-
return __generator(this, function (
|
|
3183
|
-
switch (
|
|
2858
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2859
|
+
var _c;
|
|
2860
|
+
return __generator(this, function (_d) {
|
|
2861
|
+
switch (_d.label) {
|
|
3184
2862
|
case 0:
|
|
3185
2863
|
_a = [__assign({}, output)];
|
|
3186
|
-
|
|
2864
|
+
_c = {};
|
|
3187
2865
|
return [4, parseBody(output.body, context)];
|
|
3188
2866
|
case 1:
|
|
3189
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2867
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3190
2868
|
errorCode = "UnknownError";
|
|
3191
2869
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3192
2870
|
_b = errorCode;
|
|
@@ -3201,40 +2879,22 @@ var deserializeAws_restJson1GetBackendStorageCommandError = function (output, co
|
|
|
3201
2879
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
3202
2880
|
}
|
|
3203
2881
|
return [3, 10];
|
|
3204
|
-
case 2:
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
case
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
case 4
|
|
3211
|
-
|
|
3212
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3213
|
-
case 5:
|
|
3214
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3215
|
-
return [3, 11];
|
|
3216
|
-
case 6:
|
|
3217
|
-
_e = [{}];
|
|
3218
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3219
|
-
case 7:
|
|
3220
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3221
|
-
return [3, 11];
|
|
3222
|
-
case 8:
|
|
3223
|
-
_f = [{}];
|
|
3224
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3225
|
-
case 9:
|
|
3226
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3227
|
-
return [3, 11];
|
|
2882
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2883
|
+
case 3: throw _d.sent();
|
|
2884
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2885
|
+
case 5: throw _d.sent();
|
|
2886
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2887
|
+
case 7: throw _d.sent();
|
|
2888
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2889
|
+
case 9: throw _d.sent();
|
|
3228
2890
|
case 10:
|
|
3229
2891
|
parsedBody = parsedOutput.body;
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
response
|
|
3236
|
-
delete response.Message;
|
|
3237
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2892
|
+
response = new __BaseException({
|
|
2893
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2894
|
+
$fault: "client",
|
|
2895
|
+
$metadata: deserializeMetadata(output),
|
|
2896
|
+
});
|
|
2897
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3238
2898
|
}
|
|
3239
2899
|
});
|
|
3240
2900
|
}); };
|
|
@@ -3275,16 +2935,16 @@ export var deserializeAws_restJson1GetTokenCommand = function (output, context)
|
|
|
3275
2935
|
});
|
|
3276
2936
|
}); };
|
|
3277
2937
|
var deserializeAws_restJson1GetTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3278
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3279
|
-
var
|
|
3280
|
-
return __generator(this, function (
|
|
3281
|
-
switch (
|
|
2938
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2939
|
+
var _c;
|
|
2940
|
+
return __generator(this, function (_d) {
|
|
2941
|
+
switch (_d.label) {
|
|
3282
2942
|
case 0:
|
|
3283
2943
|
_a = [__assign({}, output)];
|
|
3284
|
-
|
|
2944
|
+
_c = {};
|
|
3285
2945
|
return [4, parseBody(output.body, context)];
|
|
3286
2946
|
case 1:
|
|
3287
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
2947
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3288
2948
|
errorCode = "UnknownError";
|
|
3289
2949
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3290
2950
|
_b = errorCode;
|
|
@@ -3299,40 +2959,22 @@ var deserializeAws_restJson1GetTokenCommandError = function (output, context) {
|
|
|
3299
2959
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
3300
2960
|
}
|
|
3301
2961
|
return [3, 10];
|
|
3302
|
-
case 2:
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
case
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
case 4
|
|
3309
|
-
|
|
3310
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3311
|
-
case 5:
|
|
3312
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3313
|
-
return [3, 11];
|
|
3314
|
-
case 6:
|
|
3315
|
-
_e = [{}];
|
|
3316
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3317
|
-
case 7:
|
|
3318
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3319
|
-
return [3, 11];
|
|
3320
|
-
case 8:
|
|
3321
|
-
_f = [{}];
|
|
3322
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3323
|
-
case 9:
|
|
3324
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3325
|
-
return [3, 11];
|
|
2962
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2963
|
+
case 3: throw _d.sent();
|
|
2964
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
2965
|
+
case 5: throw _d.sent();
|
|
2966
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
2967
|
+
case 7: throw _d.sent();
|
|
2968
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2969
|
+
case 9: throw _d.sent();
|
|
3326
2970
|
case 10:
|
|
3327
2971
|
parsedBody = parsedOutput.body;
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
response
|
|
3334
|
-
delete response.Message;
|
|
3335
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2972
|
+
response = new __BaseException({
|
|
2973
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2974
|
+
$fault: "client",
|
|
2975
|
+
$metadata: deserializeMetadata(output),
|
|
2976
|
+
});
|
|
2977
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3336
2978
|
}
|
|
3337
2979
|
});
|
|
3338
2980
|
}); };
|
|
@@ -3381,16 +3023,16 @@ export var deserializeAws_restJson1ImportBackendAuthCommand = function (output,
|
|
|
3381
3023
|
});
|
|
3382
3024
|
}); };
|
|
3383
3025
|
var deserializeAws_restJson1ImportBackendAuthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3384
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3385
|
-
var
|
|
3386
|
-
return __generator(this, function (
|
|
3387
|
-
switch (
|
|
3026
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3027
|
+
var _c;
|
|
3028
|
+
return __generator(this, function (_d) {
|
|
3029
|
+
switch (_d.label) {
|
|
3388
3030
|
case 0:
|
|
3389
3031
|
_a = [__assign({}, output)];
|
|
3390
|
-
|
|
3032
|
+
_c = {};
|
|
3391
3033
|
return [4, parseBody(output.body, context)];
|
|
3392
3034
|
case 1:
|
|
3393
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3035
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3394
3036
|
errorCode = "UnknownError";
|
|
3395
3037
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3396
3038
|
_b = errorCode;
|
|
@@ -3405,40 +3047,22 @@ var deserializeAws_restJson1ImportBackendAuthCommandError = function (output, co
|
|
|
3405
3047
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
3406
3048
|
}
|
|
3407
3049
|
return [3, 10];
|
|
3408
|
-
case 2:
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
case
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
case 4
|
|
3415
|
-
|
|
3416
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3417
|
-
case 5:
|
|
3418
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3419
|
-
return [3, 11];
|
|
3420
|
-
case 6:
|
|
3421
|
-
_e = [{}];
|
|
3422
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3423
|
-
case 7:
|
|
3424
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3425
|
-
return [3, 11];
|
|
3426
|
-
case 8:
|
|
3427
|
-
_f = [{}];
|
|
3428
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3429
|
-
case 9:
|
|
3430
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3431
|
-
return [3, 11];
|
|
3050
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3051
|
+
case 3: throw _d.sent();
|
|
3052
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3053
|
+
case 5: throw _d.sent();
|
|
3054
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3055
|
+
case 7: throw _d.sent();
|
|
3056
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3057
|
+
case 9: throw _d.sent();
|
|
3432
3058
|
case 10:
|
|
3433
3059
|
parsedBody = parsedOutput.body;
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
response
|
|
3440
|
-
delete response.Message;
|
|
3441
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3060
|
+
response = new __BaseException({
|
|
3061
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3062
|
+
$fault: "client",
|
|
3063
|
+
$metadata: deserializeMetadata(output),
|
|
3064
|
+
});
|
|
3065
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3442
3066
|
}
|
|
3443
3067
|
});
|
|
3444
3068
|
}); };
|
|
@@ -3479,16 +3103,16 @@ export var deserializeAws_restJson1ImportBackendStorageCommand = function (outpu
|
|
|
3479
3103
|
});
|
|
3480
3104
|
}); };
|
|
3481
3105
|
var deserializeAws_restJson1ImportBackendStorageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3482
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3483
|
-
var
|
|
3484
|
-
return __generator(this, function (
|
|
3485
|
-
switch (
|
|
3106
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3107
|
+
var _c;
|
|
3108
|
+
return __generator(this, function (_d) {
|
|
3109
|
+
switch (_d.label) {
|
|
3486
3110
|
case 0:
|
|
3487
3111
|
_a = [__assign({}, output)];
|
|
3488
|
-
|
|
3112
|
+
_c = {};
|
|
3489
3113
|
return [4, parseBody(output.body, context)];
|
|
3490
3114
|
case 1:
|
|
3491
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3115
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3492
3116
|
errorCode = "UnknownError";
|
|
3493
3117
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3494
3118
|
_b = errorCode;
|
|
@@ -3503,40 +3127,22 @@ var deserializeAws_restJson1ImportBackendStorageCommandError = function (output,
|
|
|
3503
3127
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
3504
3128
|
}
|
|
3505
3129
|
return [3, 10];
|
|
3506
|
-
case 2:
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
case
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
case 4
|
|
3513
|
-
|
|
3514
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3515
|
-
case 5:
|
|
3516
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3517
|
-
return [3, 11];
|
|
3518
|
-
case 6:
|
|
3519
|
-
_e = [{}];
|
|
3520
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3521
|
-
case 7:
|
|
3522
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3523
|
-
return [3, 11];
|
|
3524
|
-
case 8:
|
|
3525
|
-
_f = [{}];
|
|
3526
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3527
|
-
case 9:
|
|
3528
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3529
|
-
return [3, 11];
|
|
3130
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3131
|
+
case 3: throw _d.sent();
|
|
3132
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3133
|
+
case 5: throw _d.sent();
|
|
3134
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3135
|
+
case 7: throw _d.sent();
|
|
3136
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3137
|
+
case 9: throw _d.sent();
|
|
3530
3138
|
case 10:
|
|
3531
3139
|
parsedBody = parsedOutput.body;
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
response
|
|
3538
|
-
delete response.Message;
|
|
3539
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3140
|
+
response = new __BaseException({
|
|
3141
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3142
|
+
$fault: "client",
|
|
3143
|
+
$metadata: deserializeMetadata(output),
|
|
3144
|
+
});
|
|
3145
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3540
3146
|
}
|
|
3541
3147
|
});
|
|
3542
3148
|
}); };
|
|
@@ -3569,16 +3175,16 @@ export var deserializeAws_restJson1ListBackendJobsCommand = function (output, co
|
|
|
3569
3175
|
});
|
|
3570
3176
|
}); };
|
|
3571
3177
|
var deserializeAws_restJson1ListBackendJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3572
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3573
|
-
var
|
|
3574
|
-
return __generator(this, function (
|
|
3575
|
-
switch (
|
|
3178
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3179
|
+
var _c;
|
|
3180
|
+
return __generator(this, function (_d) {
|
|
3181
|
+
switch (_d.label) {
|
|
3576
3182
|
case 0:
|
|
3577
3183
|
_a = [__assign({}, output)];
|
|
3578
|
-
|
|
3184
|
+
_c = {};
|
|
3579
3185
|
return [4, parseBody(output.body, context)];
|
|
3580
3186
|
case 1:
|
|
3581
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3187
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3582
3188
|
errorCode = "UnknownError";
|
|
3583
3189
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3584
3190
|
_b = errorCode;
|
|
@@ -3593,40 +3199,22 @@ var deserializeAws_restJson1ListBackendJobsCommandError = function (output, cont
|
|
|
3593
3199
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
3594
3200
|
}
|
|
3595
3201
|
return [3, 10];
|
|
3596
|
-
case 2:
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
case
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
case 4
|
|
3603
|
-
|
|
3604
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3605
|
-
case 5:
|
|
3606
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3607
|
-
return [3, 11];
|
|
3608
|
-
case 6:
|
|
3609
|
-
_e = [{}];
|
|
3610
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3611
|
-
case 7:
|
|
3612
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3613
|
-
return [3, 11];
|
|
3614
|
-
case 8:
|
|
3615
|
-
_f = [{}];
|
|
3616
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3617
|
-
case 9:
|
|
3618
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3619
|
-
return [3, 11];
|
|
3202
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3203
|
+
case 3: throw _d.sent();
|
|
3204
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3205
|
+
case 5: throw _d.sent();
|
|
3206
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3207
|
+
case 7: throw _d.sent();
|
|
3208
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3209
|
+
case 9: throw _d.sent();
|
|
3620
3210
|
case 10:
|
|
3621
3211
|
parsedBody = parsedOutput.body;
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
response
|
|
3628
|
-
delete response.Message;
|
|
3629
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3212
|
+
response = new __BaseException({
|
|
3213
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3214
|
+
$fault: "client",
|
|
3215
|
+
$metadata: deserializeMetadata(output),
|
|
3216
|
+
});
|
|
3217
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3630
3218
|
}
|
|
3631
3219
|
});
|
|
3632
3220
|
}); };
|
|
@@ -3659,16 +3247,16 @@ export var deserializeAws_restJson1ListS3BucketsCommand = function (output, cont
|
|
|
3659
3247
|
});
|
|
3660
3248
|
}); };
|
|
3661
3249
|
var deserializeAws_restJson1ListS3BucketsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3662
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3663
|
-
var
|
|
3664
|
-
return __generator(this, function (
|
|
3665
|
-
switch (
|
|
3250
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3251
|
+
var _c;
|
|
3252
|
+
return __generator(this, function (_d) {
|
|
3253
|
+
switch (_d.label) {
|
|
3666
3254
|
case 0:
|
|
3667
3255
|
_a = [__assign({}, output)];
|
|
3668
|
-
|
|
3256
|
+
_c = {};
|
|
3669
3257
|
return [4, parseBody(output.body, context)];
|
|
3670
3258
|
case 1:
|
|
3671
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3259
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3672
3260
|
errorCode = "UnknownError";
|
|
3673
3261
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3674
3262
|
_b = errorCode;
|
|
@@ -3683,40 +3271,22 @@ var deserializeAws_restJson1ListS3BucketsCommandError = function (output, contex
|
|
|
3683
3271
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
3684
3272
|
}
|
|
3685
3273
|
return [3, 10];
|
|
3686
|
-
case 2:
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
case
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
case 4
|
|
3693
|
-
|
|
3694
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3695
|
-
case 5:
|
|
3696
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3697
|
-
return [3, 11];
|
|
3698
|
-
case 6:
|
|
3699
|
-
_e = [{}];
|
|
3700
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3701
|
-
case 7:
|
|
3702
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3703
|
-
return [3, 11];
|
|
3704
|
-
case 8:
|
|
3705
|
-
_f = [{}];
|
|
3706
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3707
|
-
case 9:
|
|
3708
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3709
|
-
return [3, 11];
|
|
3274
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3275
|
+
case 3: throw _d.sent();
|
|
3276
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3277
|
+
case 5: throw _d.sent();
|
|
3278
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3279
|
+
case 7: throw _d.sent();
|
|
3280
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3281
|
+
case 9: throw _d.sent();
|
|
3710
3282
|
case 10:
|
|
3711
3283
|
parsedBody = parsedOutput.body;
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
response
|
|
3718
|
-
delete response.Message;
|
|
3719
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3284
|
+
response = new __BaseException({
|
|
3285
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3286
|
+
$fault: "client",
|
|
3287
|
+
$metadata: deserializeMetadata(output),
|
|
3288
|
+
});
|
|
3289
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3720
3290
|
}
|
|
3721
3291
|
});
|
|
3722
3292
|
}); };
|
|
@@ -3761,16 +3331,16 @@ export var deserializeAws_restJson1RemoveAllBackendsCommand = function (output,
|
|
|
3761
3331
|
});
|
|
3762
3332
|
}); };
|
|
3763
3333
|
var deserializeAws_restJson1RemoveAllBackendsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3764
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3765
|
-
var
|
|
3766
|
-
return __generator(this, function (
|
|
3767
|
-
switch (
|
|
3334
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3335
|
+
var _c;
|
|
3336
|
+
return __generator(this, function (_d) {
|
|
3337
|
+
switch (_d.label) {
|
|
3768
3338
|
case 0:
|
|
3769
3339
|
_a = [__assign({}, output)];
|
|
3770
|
-
|
|
3340
|
+
_c = {};
|
|
3771
3341
|
return [4, parseBody(output.body, context)];
|
|
3772
3342
|
case 1:
|
|
3773
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3343
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3774
3344
|
errorCode = "UnknownError";
|
|
3775
3345
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3776
3346
|
_b = errorCode;
|
|
@@ -3785,40 +3355,22 @@ var deserializeAws_restJson1RemoveAllBackendsCommandError = function (output, co
|
|
|
3785
3355
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
3786
3356
|
}
|
|
3787
3357
|
return [3, 10];
|
|
3788
|
-
case 2:
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
case
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
case 4
|
|
3795
|
-
|
|
3796
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3797
|
-
case 5:
|
|
3798
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3799
|
-
return [3, 11];
|
|
3800
|
-
case 6:
|
|
3801
|
-
_e = [{}];
|
|
3802
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3803
|
-
case 7:
|
|
3804
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3805
|
-
return [3, 11];
|
|
3806
|
-
case 8:
|
|
3807
|
-
_f = [{}];
|
|
3808
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3809
|
-
case 9:
|
|
3810
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3811
|
-
return [3, 11];
|
|
3358
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3359
|
+
case 3: throw _d.sent();
|
|
3360
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3361
|
+
case 5: throw _d.sent();
|
|
3362
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3363
|
+
case 7: throw _d.sent();
|
|
3364
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3365
|
+
case 9: throw _d.sent();
|
|
3812
3366
|
case 10:
|
|
3813
3367
|
parsedBody = parsedOutput.body;
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
response
|
|
3820
|
-
delete response.Message;
|
|
3821
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3368
|
+
response = new __BaseException({
|
|
3369
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3370
|
+
$fault: "client",
|
|
3371
|
+
$metadata: deserializeMetadata(output),
|
|
3372
|
+
});
|
|
3373
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3822
3374
|
}
|
|
3823
3375
|
});
|
|
3824
3376
|
}); };
|
|
@@ -3847,16 +3399,16 @@ export var deserializeAws_restJson1RemoveBackendConfigCommand = function (output
|
|
|
3847
3399
|
});
|
|
3848
3400
|
}); };
|
|
3849
3401
|
var deserializeAws_restJson1RemoveBackendConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3850
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3851
|
-
var
|
|
3852
|
-
return __generator(this, function (
|
|
3853
|
-
switch (
|
|
3402
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3403
|
+
var _c;
|
|
3404
|
+
return __generator(this, function (_d) {
|
|
3405
|
+
switch (_d.label) {
|
|
3854
3406
|
case 0:
|
|
3855
3407
|
_a = [__assign({}, output)];
|
|
3856
|
-
|
|
3408
|
+
_c = {};
|
|
3857
3409
|
return [4, parseBody(output.body, context)];
|
|
3858
3410
|
case 1:
|
|
3859
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3411
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3860
3412
|
errorCode = "UnknownError";
|
|
3861
3413
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3862
3414
|
_b = errorCode;
|
|
@@ -3871,40 +3423,22 @@ var deserializeAws_restJson1RemoveBackendConfigCommandError = function (output,
|
|
|
3871
3423
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
3872
3424
|
}
|
|
3873
3425
|
return [3, 10];
|
|
3874
|
-
case 2:
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
case
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
case 4
|
|
3881
|
-
|
|
3882
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3883
|
-
case 5:
|
|
3884
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3885
|
-
return [3, 11];
|
|
3886
|
-
case 6:
|
|
3887
|
-
_e = [{}];
|
|
3888
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3889
|
-
case 7:
|
|
3890
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3891
|
-
return [3, 11];
|
|
3892
|
-
case 8:
|
|
3893
|
-
_f = [{}];
|
|
3894
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3895
|
-
case 9:
|
|
3896
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3897
|
-
return [3, 11];
|
|
3426
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3427
|
+
case 3: throw _d.sent();
|
|
3428
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3429
|
+
case 5: throw _d.sent();
|
|
3430
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3431
|
+
case 7: throw _d.sent();
|
|
3432
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3433
|
+
case 9: throw _d.sent();
|
|
3898
3434
|
case 10:
|
|
3899
3435
|
parsedBody = parsedOutput.body;
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
response
|
|
3906
|
-
delete response.Message;
|
|
3907
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3436
|
+
response = new __BaseException({
|
|
3437
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3438
|
+
$fault: "client",
|
|
3439
|
+
$metadata: deserializeMetadata(output),
|
|
3440
|
+
});
|
|
3441
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3908
3442
|
}
|
|
3909
3443
|
});
|
|
3910
3444
|
}); };
|
|
@@ -3953,16 +3487,16 @@ export var deserializeAws_restJson1UpdateBackendAPICommand = function (output, c
|
|
|
3953
3487
|
});
|
|
3954
3488
|
}); };
|
|
3955
3489
|
var deserializeAws_restJson1UpdateBackendAPICommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3956
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
3957
|
-
var
|
|
3958
|
-
return __generator(this, function (
|
|
3959
|
-
switch (
|
|
3490
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3491
|
+
var _c;
|
|
3492
|
+
return __generator(this, function (_d) {
|
|
3493
|
+
switch (_d.label) {
|
|
3960
3494
|
case 0:
|
|
3961
3495
|
_a = [__assign({}, output)];
|
|
3962
|
-
|
|
3496
|
+
_c = {};
|
|
3963
3497
|
return [4, parseBody(output.body, context)];
|
|
3964
3498
|
case 1:
|
|
3965
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3499
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3966
3500
|
errorCode = "UnknownError";
|
|
3967
3501
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3968
3502
|
_b = errorCode;
|
|
@@ -3977,40 +3511,22 @@ var deserializeAws_restJson1UpdateBackendAPICommandError = function (output, con
|
|
|
3977
3511
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
3978
3512
|
}
|
|
3979
3513
|
return [3, 10];
|
|
3980
|
-
case 2:
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
case
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
case 4
|
|
3987
|
-
|
|
3988
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3989
|
-
case 5:
|
|
3990
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3991
|
-
return [3, 11];
|
|
3992
|
-
case 6:
|
|
3993
|
-
_e = [{}];
|
|
3994
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3995
|
-
case 7:
|
|
3996
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3997
|
-
return [3, 11];
|
|
3998
|
-
case 8:
|
|
3999
|
-
_f = [{}];
|
|
4000
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4001
|
-
case 9:
|
|
4002
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4003
|
-
return [3, 11];
|
|
3514
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3515
|
+
case 3: throw _d.sent();
|
|
3516
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3517
|
+
case 5: throw _d.sent();
|
|
3518
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3519
|
+
case 7: throw _d.sent();
|
|
3520
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3521
|
+
case 9: throw _d.sent();
|
|
4004
3522
|
case 10:
|
|
4005
3523
|
parsedBody = parsedOutput.body;
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
response
|
|
4012
|
-
delete response.Message;
|
|
4013
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3524
|
+
response = new __BaseException({
|
|
3525
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3526
|
+
$fault: "client",
|
|
3527
|
+
$metadata: deserializeMetadata(output),
|
|
3528
|
+
});
|
|
3529
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4014
3530
|
}
|
|
4015
3531
|
});
|
|
4016
3532
|
}); };
|
|
@@ -4059,16 +3575,16 @@ export var deserializeAws_restJson1UpdateBackendAuthCommand = function (output,
|
|
|
4059
3575
|
});
|
|
4060
3576
|
}); };
|
|
4061
3577
|
var deserializeAws_restJson1UpdateBackendAuthCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4062
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4063
|
-
var
|
|
4064
|
-
return __generator(this, function (
|
|
4065
|
-
switch (
|
|
3578
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3579
|
+
var _c;
|
|
3580
|
+
return __generator(this, function (_d) {
|
|
3581
|
+
switch (_d.label) {
|
|
4066
3582
|
case 0:
|
|
4067
3583
|
_a = [__assign({}, output)];
|
|
4068
|
-
|
|
3584
|
+
_c = {};
|
|
4069
3585
|
return [4, parseBody(output.body, context)];
|
|
4070
3586
|
case 1:
|
|
4071
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3587
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4072
3588
|
errorCode = "UnknownError";
|
|
4073
3589
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4074
3590
|
_b = errorCode;
|
|
@@ -4083,40 +3599,22 @@ var deserializeAws_restJson1UpdateBackendAuthCommandError = function (output, co
|
|
|
4083
3599
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
4084
3600
|
}
|
|
4085
3601
|
return [3, 10];
|
|
4086
|
-
case 2:
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
case
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
case 4
|
|
4093
|
-
|
|
4094
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
4095
|
-
case 5:
|
|
4096
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4097
|
-
return [3, 11];
|
|
4098
|
-
case 6:
|
|
4099
|
-
_e = [{}];
|
|
4100
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4101
|
-
case 7:
|
|
4102
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4103
|
-
return [3, 11];
|
|
4104
|
-
case 8:
|
|
4105
|
-
_f = [{}];
|
|
4106
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4107
|
-
case 9:
|
|
4108
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4109
|
-
return [3, 11];
|
|
3602
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3603
|
+
case 3: throw _d.sent();
|
|
3604
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3605
|
+
case 5: throw _d.sent();
|
|
3606
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3607
|
+
case 7: throw _d.sent();
|
|
3608
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3609
|
+
case 9: throw _d.sent();
|
|
4110
3610
|
case 10:
|
|
4111
3611
|
parsedBody = parsedOutput.body;
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
response
|
|
4118
|
-
delete response.Message;
|
|
4119
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3612
|
+
response = new __BaseException({
|
|
3613
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3614
|
+
$fault: "client",
|
|
3615
|
+
$metadata: deserializeMetadata(output),
|
|
3616
|
+
});
|
|
3617
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4120
3618
|
}
|
|
4121
3619
|
});
|
|
4122
3620
|
}); };
|
|
@@ -4157,16 +3655,16 @@ export var deserializeAws_restJson1UpdateBackendConfigCommand = function (output
|
|
|
4157
3655
|
});
|
|
4158
3656
|
}); };
|
|
4159
3657
|
var deserializeAws_restJson1UpdateBackendConfigCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4160
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4161
|
-
var
|
|
4162
|
-
return __generator(this, function (
|
|
4163
|
-
switch (
|
|
3658
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3659
|
+
var _c;
|
|
3660
|
+
return __generator(this, function (_d) {
|
|
3661
|
+
switch (_d.label) {
|
|
4164
3662
|
case 0:
|
|
4165
3663
|
_a = [__assign({}, output)];
|
|
4166
|
-
|
|
3664
|
+
_c = {};
|
|
4167
3665
|
return [4, parseBody(output.body, context)];
|
|
4168
3666
|
case 1:
|
|
4169
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3667
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4170
3668
|
errorCode = "UnknownError";
|
|
4171
3669
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4172
3670
|
_b = errorCode;
|
|
@@ -4181,40 +3679,22 @@ var deserializeAws_restJson1UpdateBackendConfigCommandError = function (output,
|
|
|
4181
3679
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
4182
3680
|
}
|
|
4183
3681
|
return [3, 10];
|
|
4184
|
-
case 2:
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
case
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
case 4
|
|
4191
|
-
|
|
4192
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
4193
|
-
case 5:
|
|
4194
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4195
|
-
return [3, 11];
|
|
4196
|
-
case 6:
|
|
4197
|
-
_e = [{}];
|
|
4198
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4199
|
-
case 7:
|
|
4200
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4201
|
-
return [3, 11];
|
|
4202
|
-
case 8:
|
|
4203
|
-
_f = [{}];
|
|
4204
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4205
|
-
case 9:
|
|
4206
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4207
|
-
return [3, 11];
|
|
3682
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3683
|
+
case 3: throw _d.sent();
|
|
3684
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3685
|
+
case 5: throw _d.sent();
|
|
3686
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3687
|
+
case 7: throw _d.sent();
|
|
3688
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3689
|
+
case 9: throw _d.sent();
|
|
4208
3690
|
case 10:
|
|
4209
3691
|
parsedBody = parsedOutput.body;
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
response
|
|
4216
|
-
delete response.Message;
|
|
4217
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3692
|
+
response = new __BaseException({
|
|
3693
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3694
|
+
$fault: "client",
|
|
3695
|
+
$metadata: deserializeMetadata(output),
|
|
3696
|
+
});
|
|
3697
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4218
3698
|
}
|
|
4219
3699
|
});
|
|
4220
3700
|
}); };
|
|
@@ -4271,16 +3751,16 @@ export var deserializeAws_restJson1UpdateBackendJobCommand = function (output, c
|
|
|
4271
3751
|
});
|
|
4272
3752
|
}); };
|
|
4273
3753
|
var deserializeAws_restJson1UpdateBackendJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4274
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4275
|
-
var
|
|
4276
|
-
return __generator(this, function (
|
|
4277
|
-
switch (
|
|
3754
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3755
|
+
var _c;
|
|
3756
|
+
return __generator(this, function (_d) {
|
|
3757
|
+
switch (_d.label) {
|
|
4278
3758
|
case 0:
|
|
4279
3759
|
_a = [__assign({}, output)];
|
|
4280
|
-
|
|
3760
|
+
_c = {};
|
|
4281
3761
|
return [4, parseBody(output.body, context)];
|
|
4282
3762
|
case 1:
|
|
4283
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3763
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4284
3764
|
errorCode = "UnknownError";
|
|
4285
3765
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4286
3766
|
_b = errorCode;
|
|
@@ -4295,40 +3775,22 @@ var deserializeAws_restJson1UpdateBackendJobCommandError = function (output, con
|
|
|
4295
3775
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
4296
3776
|
}
|
|
4297
3777
|
return [3, 10];
|
|
4298
|
-
case 2:
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
case
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
case 4
|
|
4305
|
-
|
|
4306
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
4307
|
-
case 5:
|
|
4308
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4309
|
-
return [3, 11];
|
|
4310
|
-
case 6:
|
|
4311
|
-
_e = [{}];
|
|
4312
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4313
|
-
case 7:
|
|
4314
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4315
|
-
return [3, 11];
|
|
4316
|
-
case 8:
|
|
4317
|
-
_f = [{}];
|
|
4318
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4319
|
-
case 9:
|
|
4320
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4321
|
-
return [3, 11];
|
|
3778
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3779
|
+
case 3: throw _d.sent();
|
|
3780
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3781
|
+
case 5: throw _d.sent();
|
|
3782
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3783
|
+
case 7: throw _d.sent();
|
|
3784
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3785
|
+
case 9: throw _d.sent();
|
|
4322
3786
|
case 10:
|
|
4323
3787
|
parsedBody = parsedOutput.body;
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
response
|
|
4330
|
-
delete response.Message;
|
|
4331
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3788
|
+
response = new __BaseException({
|
|
3789
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3790
|
+
$fault: "client",
|
|
3791
|
+
$metadata: deserializeMetadata(output),
|
|
3792
|
+
});
|
|
3793
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4332
3794
|
}
|
|
4333
3795
|
});
|
|
4334
3796
|
}); };
|
|
@@ -4369,16 +3831,16 @@ export var deserializeAws_restJson1UpdateBackendStorageCommand = function (outpu
|
|
|
4369
3831
|
});
|
|
4370
3832
|
}); };
|
|
4371
3833
|
var deserializeAws_restJson1UpdateBackendStorageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4372
|
-
var parsedOutput, _a, response, errorCode, _b,
|
|
4373
|
-
var
|
|
4374
|
-
return __generator(this, function (
|
|
4375
|
-
switch (
|
|
3834
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3835
|
+
var _c;
|
|
3836
|
+
return __generator(this, function (_d) {
|
|
3837
|
+
switch (_d.label) {
|
|
4376
3838
|
case 0:
|
|
4377
3839
|
_a = [__assign({}, output)];
|
|
4378
|
-
|
|
3840
|
+
_c = {};
|
|
4379
3841
|
return [4, parseBody(output.body, context)];
|
|
4380
3842
|
case 1:
|
|
4381
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3843
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4382
3844
|
errorCode = "UnknownError";
|
|
4383
3845
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4384
3846
|
_b = errorCode;
|
|
@@ -4393,85 +3855,53 @@ var deserializeAws_restJson1UpdateBackendStorageCommandError = function (output,
|
|
|
4393
3855
|
case "com.amazonaws.amplifybackend#TooManyRequestsException": return [3, 8];
|
|
4394
3856
|
}
|
|
4395
3857
|
return [3, 10];
|
|
4396
|
-
case 2:
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
case
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
case 4
|
|
4403
|
-
|
|
4404
|
-
return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
4405
|
-
case 5:
|
|
4406
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4407
|
-
return [3, 11];
|
|
4408
|
-
case 6:
|
|
4409
|
-
_e = [{}];
|
|
4410
|
-
return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
4411
|
-
case 7:
|
|
4412
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4413
|
-
return [3, 11];
|
|
4414
|
-
case 8:
|
|
4415
|
-
_f = [{}];
|
|
4416
|
-
return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
4417
|
-
case 9:
|
|
4418
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4419
|
-
return [3, 11];
|
|
3858
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3859
|
+
case 3: throw _d.sent();
|
|
3860
|
+
case 4: return [4, deserializeAws_restJson1GatewayTimeoutExceptionResponse(parsedOutput, context)];
|
|
3861
|
+
case 5: throw _d.sent();
|
|
3862
|
+
case 6: return [4, deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)];
|
|
3863
|
+
case 7: throw _d.sent();
|
|
3864
|
+
case 8: return [4, deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
3865
|
+
case 9: throw _d.sent();
|
|
4420
3866
|
case 10:
|
|
4421
3867
|
parsedBody = parsedOutput.body;
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
response
|
|
4428
|
-
delete response.Message;
|
|
4429
|
-
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3868
|
+
response = new __BaseException({
|
|
3869
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3870
|
+
$fault: "client",
|
|
3871
|
+
$metadata: deserializeMetadata(output),
|
|
3872
|
+
});
|
|
3873
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4430
3874
|
}
|
|
4431
3875
|
});
|
|
4432
3876
|
}); };
|
|
4433
3877
|
var deserializeAws_restJson1BadRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4434
|
-
var contents, data;
|
|
3878
|
+
var contents, data, exception;
|
|
4435
3879
|
return __generator(this, function (_a) {
|
|
4436
|
-
contents = {
|
|
4437
|
-
name: "BadRequestException",
|
|
4438
|
-
$fault: "client",
|
|
4439
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4440
|
-
Message: undefined,
|
|
4441
|
-
};
|
|
3880
|
+
contents = {};
|
|
4442
3881
|
data = parsedOutput.body;
|
|
4443
3882
|
if (data.message !== undefined && data.message !== null) {
|
|
4444
3883
|
contents.Message = __expectString(data.message);
|
|
4445
3884
|
}
|
|
4446
|
-
|
|
3885
|
+
exception = new BadRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3886
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4447
3887
|
});
|
|
4448
3888
|
}); };
|
|
4449
3889
|
var deserializeAws_restJson1GatewayTimeoutExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4450
|
-
var contents, data;
|
|
3890
|
+
var contents, data, exception;
|
|
4451
3891
|
return __generator(this, function (_a) {
|
|
4452
|
-
contents = {
|
|
4453
|
-
name: "GatewayTimeoutException",
|
|
4454
|
-
$fault: "server",
|
|
4455
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4456
|
-
Message: undefined,
|
|
4457
|
-
};
|
|
3892
|
+
contents = {};
|
|
4458
3893
|
data = parsedOutput.body;
|
|
4459
3894
|
if (data.message !== undefined && data.message !== null) {
|
|
4460
3895
|
contents.Message = __expectString(data.message);
|
|
4461
3896
|
}
|
|
4462
|
-
|
|
3897
|
+
exception = new GatewayTimeoutException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3898
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4463
3899
|
});
|
|
4464
3900
|
}); };
|
|
4465
3901
|
var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4466
|
-
var contents, data;
|
|
3902
|
+
var contents, data, exception;
|
|
4467
3903
|
return __generator(this, function (_a) {
|
|
4468
|
-
contents = {
|
|
4469
|
-
name: "NotFoundException",
|
|
4470
|
-
$fault: "client",
|
|
4471
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4472
|
-
Message: undefined,
|
|
4473
|
-
ResourceType: undefined,
|
|
4474
|
-
};
|
|
3904
|
+
contents = {};
|
|
4475
3905
|
data = parsedOutput.body;
|
|
4476
3906
|
if (data.message !== undefined && data.message !== null) {
|
|
4477
3907
|
contents.Message = __expectString(data.message);
|
|
@@ -4479,19 +3909,14 @@ var deserializeAws_restJson1NotFoundExceptionResponse = function (parsedOutput,
|
|
|
4479
3909
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
4480
3910
|
contents.ResourceType = __expectString(data.resourceType);
|
|
4481
3911
|
}
|
|
4482
|
-
|
|
3912
|
+
exception = new NotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3913
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4483
3914
|
});
|
|
4484
3915
|
}); };
|
|
4485
3916
|
var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4486
|
-
var contents, data;
|
|
3917
|
+
var contents, data, exception;
|
|
4487
3918
|
return __generator(this, function (_a) {
|
|
4488
|
-
contents = {
|
|
4489
|
-
name: "TooManyRequestsException",
|
|
4490
|
-
$fault: "client",
|
|
4491
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4492
|
-
LimitType: undefined,
|
|
4493
|
-
Message: undefined,
|
|
4494
|
-
};
|
|
3919
|
+
contents = {};
|
|
4495
3920
|
data = parsedOutput.body;
|
|
4496
3921
|
if (data.limitType !== undefined && data.limitType !== null) {
|
|
4497
3922
|
contents.LimitType = __expectString(data.limitType);
|
|
@@ -4499,7 +3924,8 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
|
|
|
4499
3924
|
if (data.message !== undefined && data.message !== null) {
|
|
4500
3925
|
contents.Message = __expectString(data.message);
|
|
4501
3926
|
}
|
|
4502
|
-
|
|
3927
|
+
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
3928
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4503
3929
|
});
|
|
4504
3930
|
}); };
|
|
4505
3931
|
var serializeAws_restJson1BackendAPIAppSyncAuthSettings = function (input, context) {
|
|
@@ -4975,7 +4401,7 @@ var deserializeAws_restJson1GetBackendStorageResourceConfig = function (output,
|
|
|
4975
4401
|
};
|
|
4976
4402
|
};
|
|
4977
4403
|
var deserializeAws_restJson1ListOf__string = function (output, context) {
|
|
4978
|
-
|
|
4404
|
+
var retVal = (output || [])
|
|
4979
4405
|
.filter(function (e) { return e != null; })
|
|
4980
4406
|
.map(function (entry) {
|
|
4981
4407
|
if (entry === null) {
|
|
@@ -4983,9 +4409,10 @@ var deserializeAws_restJson1ListOf__string = function (output, context) {
|
|
|
4983
4409
|
}
|
|
4984
4410
|
return __expectString(entry);
|
|
4985
4411
|
});
|
|
4412
|
+
return retVal;
|
|
4986
4413
|
};
|
|
4987
4414
|
var deserializeAws_restJson1ListOfAdditionalConstraintsElement = function (output, context) {
|
|
4988
|
-
|
|
4415
|
+
var retVal = (output || [])
|
|
4989
4416
|
.filter(function (e) { return e != null; })
|
|
4990
4417
|
.map(function (entry) {
|
|
4991
4418
|
if (entry === null) {
|
|
@@ -4993,9 +4420,10 @@ var deserializeAws_restJson1ListOfAdditionalConstraintsElement = function (outpu
|
|
|
4993
4420
|
}
|
|
4994
4421
|
return __expectString(entry);
|
|
4995
4422
|
});
|
|
4423
|
+
return retVal;
|
|
4996
4424
|
};
|
|
4997
4425
|
var deserializeAws_restJson1ListOfAuthenticatedElement = function (output, context) {
|
|
4998
|
-
|
|
4426
|
+
var retVal = (output || [])
|
|
4999
4427
|
.filter(function (e) { return e != null; })
|
|
5000
4428
|
.map(function (entry) {
|
|
5001
4429
|
if (entry === null) {
|
|
@@ -5003,9 +4431,10 @@ var deserializeAws_restJson1ListOfAuthenticatedElement = function (output, conte
|
|
|
5003
4431
|
}
|
|
5004
4432
|
return __expectString(entry);
|
|
5005
4433
|
});
|
|
4434
|
+
return retVal;
|
|
5006
4435
|
};
|
|
5007
4436
|
var deserializeAws_restJson1ListOfBackendAPIAuthType = function (output, context) {
|
|
5008
|
-
|
|
4437
|
+
var retVal = (output || [])
|
|
5009
4438
|
.filter(function (e) { return e != null; })
|
|
5010
4439
|
.map(function (entry) {
|
|
5011
4440
|
if (entry === null) {
|
|
@@ -5013,9 +4442,10 @@ var deserializeAws_restJson1ListOfBackendAPIAuthType = function (output, context
|
|
|
5013
4442
|
}
|
|
5014
4443
|
return deserializeAws_restJson1BackendAPIAuthType(entry, context);
|
|
5015
4444
|
});
|
|
4445
|
+
return retVal;
|
|
5016
4446
|
};
|
|
5017
4447
|
var deserializeAws_restJson1ListOfBackendJobRespObj = function (output, context) {
|
|
5018
|
-
|
|
4448
|
+
var retVal = (output || [])
|
|
5019
4449
|
.filter(function (e) { return e != null; })
|
|
5020
4450
|
.map(function (entry) {
|
|
5021
4451
|
if (entry === null) {
|
|
@@ -5023,9 +4453,10 @@ var deserializeAws_restJson1ListOfBackendJobRespObj = function (output, context)
|
|
|
5023
4453
|
}
|
|
5024
4454
|
return deserializeAws_restJson1BackendJobRespObj(entry, context);
|
|
5025
4455
|
});
|
|
4456
|
+
return retVal;
|
|
5026
4457
|
};
|
|
5027
4458
|
var deserializeAws_restJson1ListOfMfaTypesElement = function (output, context) {
|
|
5028
|
-
|
|
4459
|
+
var retVal = (output || [])
|
|
5029
4460
|
.filter(function (e) { return e != null; })
|
|
5030
4461
|
.map(function (entry) {
|
|
5031
4462
|
if (entry === null) {
|
|
@@ -5033,9 +4464,10 @@ var deserializeAws_restJson1ListOfMfaTypesElement = function (output, context) {
|
|
|
5033
4464
|
}
|
|
5034
4465
|
return __expectString(entry);
|
|
5035
4466
|
});
|
|
4467
|
+
return retVal;
|
|
5036
4468
|
};
|
|
5037
4469
|
var deserializeAws_restJson1ListOfOAuthScopesElement = function (output, context) {
|
|
5038
|
-
|
|
4470
|
+
var retVal = (output || [])
|
|
5039
4471
|
.filter(function (e) { return e != null; })
|
|
5040
4472
|
.map(function (entry) {
|
|
5041
4473
|
if (entry === null) {
|
|
@@ -5043,9 +4475,10 @@ var deserializeAws_restJson1ListOfOAuthScopesElement = function (output, context
|
|
|
5043
4475
|
}
|
|
5044
4476
|
return __expectString(entry);
|
|
5045
4477
|
});
|
|
4478
|
+
return retVal;
|
|
5046
4479
|
};
|
|
5047
4480
|
var deserializeAws_restJson1ListOfRequiredSignUpAttributesElement = function (output, context) {
|
|
5048
|
-
|
|
4481
|
+
var retVal = (output || [])
|
|
5049
4482
|
.filter(function (e) { return e != null; })
|
|
5050
4483
|
.map(function (entry) {
|
|
5051
4484
|
if (entry === null) {
|
|
@@ -5053,9 +4486,10 @@ var deserializeAws_restJson1ListOfRequiredSignUpAttributesElement = function (ou
|
|
|
5053
4486
|
}
|
|
5054
4487
|
return __expectString(entry);
|
|
5055
4488
|
});
|
|
4489
|
+
return retVal;
|
|
5056
4490
|
};
|
|
5057
4491
|
var deserializeAws_restJson1ListOfS3BucketInfo = function (output, context) {
|
|
5058
|
-
|
|
4492
|
+
var retVal = (output || [])
|
|
5059
4493
|
.filter(function (e) { return e != null; })
|
|
5060
4494
|
.map(function (entry) {
|
|
5061
4495
|
if (entry === null) {
|
|
@@ -5063,9 +4497,10 @@ var deserializeAws_restJson1ListOfS3BucketInfo = function (output, context) {
|
|
|
5063
4497
|
}
|
|
5064
4498
|
return deserializeAws_restJson1S3BucketInfo(entry, context);
|
|
5065
4499
|
});
|
|
4500
|
+
return retVal;
|
|
5066
4501
|
};
|
|
5067
4502
|
var deserializeAws_restJson1ListOfUnAuthenticatedElement = function (output, context) {
|
|
5068
|
-
|
|
4503
|
+
var retVal = (output || [])
|
|
5069
4504
|
.filter(function (e) { return e != null; })
|
|
5070
4505
|
.map(function (entry) {
|
|
5071
4506
|
if (entry === null) {
|
|
@@ -5073,6 +4508,7 @@ var deserializeAws_restJson1ListOfUnAuthenticatedElement = function (output, con
|
|
|
5073
4508
|
}
|
|
5074
4509
|
return __expectString(entry);
|
|
5075
4510
|
});
|
|
4511
|
+
return retVal;
|
|
5076
4512
|
};
|
|
5077
4513
|
var deserializeAws_restJson1LoginAuthConfigReqObj = function (output, context) {
|
|
5078
4514
|
return {
|