@aws-sdk/client-workspaces-web 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/WorkSpacesWebServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +123 -3
- package/dist-cjs/protocols/Aws_restJson1.js +477 -1885
- package/dist-es/index.js +1 -0
- package/dist-es/models/WorkSpacesWebServiceException.js +12 -0
- package/dist-es/models/models_0.js +113 -1
- package/dist-es/protocols/Aws_restJson1.js +1041 -2070
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/WorkSpacesWebServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +58 -33
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/WorkSpacesWebServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +42 -33
- package/package.json +25 -25
|
@@ -5,6 +5,8 @@ exports.deserializeAws_restJson1UpdateUserSettingsCommand = exports.deserializeA
|
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const WorkSpacesWebServiceException_1 = require("../models/WorkSpacesWebServiceException");
|
|
8
10
|
const serializeAws_restJson1AssociateBrowserSettingsCommand = async (input, context) => {
|
|
9
11
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
12
|
const headers = {};
|
|
@@ -1387,67 +1389,31 @@ const deserializeAws_restJson1AssociateBrowserSettingsCommandError = async (outp
|
|
|
1387
1389
|
switch (errorCode) {
|
|
1388
1390
|
case "AccessDeniedException":
|
|
1389
1391
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1390
|
-
|
|
1391
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1392
|
-
name: errorCode,
|
|
1393
|
-
$metadata: deserializeMetadata(output),
|
|
1394
|
-
};
|
|
1395
|
-
break;
|
|
1392
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1396
1393
|
case "ConflictException":
|
|
1397
1394
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1398
|
-
|
|
1399
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1400
|
-
name: errorCode,
|
|
1401
|
-
$metadata: deserializeMetadata(output),
|
|
1402
|
-
};
|
|
1403
|
-
break;
|
|
1395
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1404
1396
|
case "InternalServerException":
|
|
1405
1397
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1406
|
-
|
|
1407
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1408
|
-
name: errorCode,
|
|
1409
|
-
$metadata: deserializeMetadata(output),
|
|
1410
|
-
};
|
|
1411
|
-
break;
|
|
1398
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1412
1399
|
case "ResourceNotFoundException":
|
|
1413
1400
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1414
|
-
|
|
1415
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1416
|
-
name: errorCode,
|
|
1417
|
-
$metadata: deserializeMetadata(output),
|
|
1418
|
-
};
|
|
1419
|
-
break;
|
|
1401
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1420
1402
|
case "ThrottlingException":
|
|
1421
1403
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1422
|
-
|
|
1423
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1424
|
-
name: errorCode,
|
|
1425
|
-
$metadata: deserializeMetadata(output),
|
|
1426
|
-
};
|
|
1427
|
-
break;
|
|
1404
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1428
1405
|
case "ValidationException":
|
|
1429
1406
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1430
|
-
|
|
1431
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1432
|
-
name: errorCode,
|
|
1433
|
-
$metadata: deserializeMetadata(output),
|
|
1434
|
-
};
|
|
1435
|
-
break;
|
|
1407
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1436
1408
|
default:
|
|
1437
1409
|
const parsedBody = parsedOutput.body;
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
...parsedBody,
|
|
1441
|
-
name: `${errorCode}`,
|
|
1442
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1410
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1411
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1443
1412
|
$fault: "client",
|
|
1444
1413
|
$metadata: deserializeMetadata(output),
|
|
1445
|
-
};
|
|
1414
|
+
});
|
|
1415
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1446
1416
|
}
|
|
1447
|
-
const message = response.message || response.Message || errorCode;
|
|
1448
|
-
response.message = message;
|
|
1449
|
-
delete response.Message;
|
|
1450
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1451
1417
|
};
|
|
1452
1418
|
const deserializeAws_restJson1AssociateNetworkSettingsCommand = async (output, context) => {
|
|
1453
1419
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1479,67 +1445,31 @@ const deserializeAws_restJson1AssociateNetworkSettingsCommandError = async (outp
|
|
|
1479
1445
|
switch (errorCode) {
|
|
1480
1446
|
case "AccessDeniedException":
|
|
1481
1447
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1482
|
-
|
|
1483
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1484
|
-
name: errorCode,
|
|
1485
|
-
$metadata: deserializeMetadata(output),
|
|
1486
|
-
};
|
|
1487
|
-
break;
|
|
1448
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1488
1449
|
case "ConflictException":
|
|
1489
1450
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1490
|
-
|
|
1491
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1492
|
-
name: errorCode,
|
|
1493
|
-
$metadata: deserializeMetadata(output),
|
|
1494
|
-
};
|
|
1495
|
-
break;
|
|
1451
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1496
1452
|
case "InternalServerException":
|
|
1497
1453
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1498
|
-
|
|
1499
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1500
|
-
name: errorCode,
|
|
1501
|
-
$metadata: deserializeMetadata(output),
|
|
1502
|
-
};
|
|
1503
|
-
break;
|
|
1454
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1504
1455
|
case "ResourceNotFoundException":
|
|
1505
1456
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1506
|
-
|
|
1507
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1508
|
-
name: errorCode,
|
|
1509
|
-
$metadata: deserializeMetadata(output),
|
|
1510
|
-
};
|
|
1511
|
-
break;
|
|
1457
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1512
1458
|
case "ThrottlingException":
|
|
1513
1459
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1514
|
-
|
|
1515
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1516
|
-
name: errorCode,
|
|
1517
|
-
$metadata: deserializeMetadata(output),
|
|
1518
|
-
};
|
|
1519
|
-
break;
|
|
1460
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1520
1461
|
case "ValidationException":
|
|
1521
1462
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1522
|
-
|
|
1523
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1524
|
-
name: errorCode,
|
|
1525
|
-
$metadata: deserializeMetadata(output),
|
|
1526
|
-
};
|
|
1527
|
-
break;
|
|
1463
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1528
1464
|
default:
|
|
1529
1465
|
const parsedBody = parsedOutput.body;
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
...parsedBody,
|
|
1533
|
-
name: `${errorCode}`,
|
|
1534
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1466
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1467
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1535
1468
|
$fault: "client",
|
|
1536
1469
|
$metadata: deserializeMetadata(output),
|
|
1537
|
-
};
|
|
1470
|
+
});
|
|
1471
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1538
1472
|
}
|
|
1539
|
-
const message = response.message || response.Message || errorCode;
|
|
1540
|
-
response.message = message;
|
|
1541
|
-
delete response.Message;
|
|
1542
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1543
1473
|
};
|
|
1544
1474
|
const deserializeAws_restJson1AssociateTrustStoreCommand = async (output, context) => {
|
|
1545
1475
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1571,59 +1501,28 @@ const deserializeAws_restJson1AssociateTrustStoreCommandError = async (output, c
|
|
|
1571
1501
|
switch (errorCode) {
|
|
1572
1502
|
case "AccessDeniedException":
|
|
1573
1503
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1574
|
-
|
|
1575
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1576
|
-
name: errorCode,
|
|
1577
|
-
$metadata: deserializeMetadata(output),
|
|
1578
|
-
};
|
|
1579
|
-
break;
|
|
1504
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1580
1505
|
case "InternalServerException":
|
|
1581
1506
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1582
|
-
|
|
1583
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1584
|
-
name: errorCode,
|
|
1585
|
-
$metadata: deserializeMetadata(output),
|
|
1586
|
-
};
|
|
1587
|
-
break;
|
|
1507
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1588
1508
|
case "ResourceNotFoundException":
|
|
1589
1509
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1590
|
-
|
|
1591
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1592
|
-
name: errorCode,
|
|
1593
|
-
$metadata: deserializeMetadata(output),
|
|
1594
|
-
};
|
|
1595
|
-
break;
|
|
1510
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1596
1511
|
case "ThrottlingException":
|
|
1597
1512
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1598
|
-
|
|
1599
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1600
|
-
name: errorCode,
|
|
1601
|
-
$metadata: deserializeMetadata(output),
|
|
1602
|
-
};
|
|
1603
|
-
break;
|
|
1513
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1604
1514
|
case "ValidationException":
|
|
1605
1515
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1606
|
-
|
|
1607
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1608
|
-
name: errorCode,
|
|
1609
|
-
$metadata: deserializeMetadata(output),
|
|
1610
|
-
};
|
|
1611
|
-
break;
|
|
1516
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1612
1517
|
default:
|
|
1613
1518
|
const parsedBody = parsedOutput.body;
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
...parsedBody,
|
|
1617
|
-
name: `${errorCode}`,
|
|
1618
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1519
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1520
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1619
1521
|
$fault: "client",
|
|
1620
1522
|
$metadata: deserializeMetadata(output),
|
|
1621
|
-
};
|
|
1523
|
+
});
|
|
1524
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1622
1525
|
}
|
|
1623
|
-
const message = response.message || response.Message || errorCode;
|
|
1624
|
-
response.message = message;
|
|
1625
|
-
delete response.Message;
|
|
1626
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1627
1526
|
};
|
|
1628
1527
|
const deserializeAws_restJson1AssociateUserSettingsCommand = async (output, context) => {
|
|
1629
1528
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1655,67 +1554,31 @@ const deserializeAws_restJson1AssociateUserSettingsCommandError = async (output,
|
|
|
1655
1554
|
switch (errorCode) {
|
|
1656
1555
|
case "AccessDeniedException":
|
|
1657
1556
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1658
|
-
|
|
1659
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1660
|
-
name: errorCode,
|
|
1661
|
-
$metadata: deserializeMetadata(output),
|
|
1662
|
-
};
|
|
1663
|
-
break;
|
|
1557
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1664
1558
|
case "ConflictException":
|
|
1665
1559
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1666
|
-
|
|
1667
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1668
|
-
name: errorCode,
|
|
1669
|
-
$metadata: deserializeMetadata(output),
|
|
1670
|
-
};
|
|
1671
|
-
break;
|
|
1560
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1672
1561
|
case "InternalServerException":
|
|
1673
1562
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1674
|
-
|
|
1675
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1676
|
-
name: errorCode,
|
|
1677
|
-
$metadata: deserializeMetadata(output),
|
|
1678
|
-
};
|
|
1679
|
-
break;
|
|
1563
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1680
1564
|
case "ResourceNotFoundException":
|
|
1681
1565
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1682
|
-
|
|
1683
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1684
|
-
name: errorCode,
|
|
1685
|
-
$metadata: deserializeMetadata(output),
|
|
1686
|
-
};
|
|
1687
|
-
break;
|
|
1566
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1688
1567
|
case "ThrottlingException":
|
|
1689
1568
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1690
|
-
|
|
1691
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1692
|
-
name: errorCode,
|
|
1693
|
-
$metadata: deserializeMetadata(output),
|
|
1694
|
-
};
|
|
1695
|
-
break;
|
|
1569
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1696
1570
|
case "ValidationException":
|
|
1697
1571
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1698
|
-
|
|
1699
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1700
|
-
name: errorCode,
|
|
1701
|
-
$metadata: deserializeMetadata(output),
|
|
1702
|
-
};
|
|
1703
|
-
break;
|
|
1572
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1704
1573
|
default:
|
|
1705
1574
|
const parsedBody = parsedOutput.body;
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
...parsedBody,
|
|
1709
|
-
name: `${errorCode}`,
|
|
1710
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1575
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1576
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1711
1577
|
$fault: "client",
|
|
1712
1578
|
$metadata: deserializeMetadata(output),
|
|
1713
|
-
};
|
|
1579
|
+
});
|
|
1580
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1714
1581
|
}
|
|
1715
|
-
const message = response.message || response.Message || errorCode;
|
|
1716
|
-
response.message = message;
|
|
1717
|
-
delete response.Message;
|
|
1718
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1719
1582
|
};
|
|
1720
1583
|
const deserializeAws_restJson1CreateBrowserSettingsCommand = async (output, context) => {
|
|
1721
1584
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1743,75 +1606,34 @@ const deserializeAws_restJson1CreateBrowserSettingsCommandError = async (output,
|
|
|
1743
1606
|
switch (errorCode) {
|
|
1744
1607
|
case "AccessDeniedException":
|
|
1745
1608
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1746
|
-
|
|
1747
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1748
|
-
name: errorCode,
|
|
1749
|
-
$metadata: deserializeMetadata(output),
|
|
1750
|
-
};
|
|
1751
|
-
break;
|
|
1609
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1752
1610
|
case "ConflictException":
|
|
1753
1611
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1754
|
-
|
|
1755
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1756
|
-
name: errorCode,
|
|
1757
|
-
$metadata: deserializeMetadata(output),
|
|
1758
|
-
};
|
|
1759
|
-
break;
|
|
1612
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1760
1613
|
case "InternalServerException":
|
|
1761
1614
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1762
|
-
|
|
1763
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1764
|
-
name: errorCode,
|
|
1765
|
-
$metadata: deserializeMetadata(output),
|
|
1766
|
-
};
|
|
1767
|
-
break;
|
|
1615
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1768
1616
|
case "ResourceNotFoundException":
|
|
1769
1617
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1770
|
-
|
|
1771
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1772
|
-
name: errorCode,
|
|
1773
|
-
$metadata: deserializeMetadata(output),
|
|
1774
|
-
};
|
|
1775
|
-
break;
|
|
1618
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1776
1619
|
case "ServiceQuotaExceededException":
|
|
1777
1620
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1778
|
-
|
|
1779
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1780
|
-
name: errorCode,
|
|
1781
|
-
$metadata: deserializeMetadata(output),
|
|
1782
|
-
};
|
|
1783
|
-
break;
|
|
1621
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1784
1622
|
case "ThrottlingException":
|
|
1785
1623
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1786
|
-
|
|
1787
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1788
|
-
name: errorCode,
|
|
1789
|
-
$metadata: deserializeMetadata(output),
|
|
1790
|
-
};
|
|
1791
|
-
break;
|
|
1624
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1792
1625
|
case "ValidationException":
|
|
1793
1626
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1794
|
-
|
|
1795
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1796
|
-
name: errorCode,
|
|
1797
|
-
$metadata: deserializeMetadata(output),
|
|
1798
|
-
};
|
|
1799
|
-
break;
|
|
1627
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1800
1628
|
default:
|
|
1801
1629
|
const parsedBody = parsedOutput.body;
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
...parsedBody,
|
|
1805
|
-
name: `${errorCode}`,
|
|
1806
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1630
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1631
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1807
1632
|
$fault: "client",
|
|
1808
1633
|
$metadata: deserializeMetadata(output),
|
|
1809
|
-
};
|
|
1634
|
+
});
|
|
1635
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1810
1636
|
}
|
|
1811
|
-
const message = response.message || response.Message || errorCode;
|
|
1812
|
-
response.message = message;
|
|
1813
|
-
delete response.Message;
|
|
1814
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1815
1637
|
};
|
|
1816
1638
|
const deserializeAws_restJson1CreateIdentityProviderCommand = async (output, context) => {
|
|
1817
1639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1839,67 +1661,31 @@ const deserializeAws_restJson1CreateIdentityProviderCommandError = async (output
|
|
|
1839
1661
|
switch (errorCode) {
|
|
1840
1662
|
case "AccessDeniedException":
|
|
1841
1663
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1842
|
-
|
|
1843
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1844
|
-
name: errorCode,
|
|
1845
|
-
$metadata: deserializeMetadata(output),
|
|
1846
|
-
};
|
|
1847
|
-
break;
|
|
1664
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1848
1665
|
case "ConflictException":
|
|
1849
1666
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1850
|
-
|
|
1851
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1852
|
-
name: errorCode,
|
|
1853
|
-
$metadata: deserializeMetadata(output),
|
|
1854
|
-
};
|
|
1855
|
-
break;
|
|
1667
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1856
1668
|
case "InternalServerException":
|
|
1857
1669
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1858
|
-
|
|
1859
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1860
|
-
name: errorCode,
|
|
1861
|
-
$metadata: deserializeMetadata(output),
|
|
1862
|
-
};
|
|
1863
|
-
break;
|
|
1670
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1864
1671
|
case "ResourceNotFoundException":
|
|
1865
1672
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
1866
|
-
|
|
1867
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1868
|
-
name: errorCode,
|
|
1869
|
-
$metadata: deserializeMetadata(output),
|
|
1870
|
-
};
|
|
1871
|
-
break;
|
|
1673
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1872
1674
|
case "ThrottlingException":
|
|
1873
1675
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1874
|
-
|
|
1875
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1876
|
-
name: errorCode,
|
|
1877
|
-
$metadata: deserializeMetadata(output),
|
|
1878
|
-
};
|
|
1879
|
-
break;
|
|
1676
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1880
1677
|
case "ValidationException":
|
|
1881
1678
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1882
|
-
|
|
1883
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1884
|
-
name: errorCode,
|
|
1885
|
-
$metadata: deserializeMetadata(output),
|
|
1886
|
-
};
|
|
1887
|
-
break;
|
|
1679
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1888
1680
|
default:
|
|
1889
1681
|
const parsedBody = parsedOutput.body;
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
...parsedBody,
|
|
1893
|
-
name: `${errorCode}`,
|
|
1894
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1682
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1683
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1895
1684
|
$fault: "client",
|
|
1896
1685
|
$metadata: deserializeMetadata(output),
|
|
1897
|
-
};
|
|
1686
|
+
});
|
|
1687
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1898
1688
|
}
|
|
1899
|
-
const message = response.message || response.Message || errorCode;
|
|
1900
|
-
response.message = message;
|
|
1901
|
-
delete response.Message;
|
|
1902
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1903
1689
|
};
|
|
1904
1690
|
const deserializeAws_restJson1CreateNetworkSettingsCommand = async (output, context) => {
|
|
1905
1691
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1927,67 +1713,31 @@ const deserializeAws_restJson1CreateNetworkSettingsCommandError = async (output,
|
|
|
1927
1713
|
switch (errorCode) {
|
|
1928
1714
|
case "AccessDeniedException":
|
|
1929
1715
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
1930
|
-
|
|
1931
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1932
|
-
name: errorCode,
|
|
1933
|
-
$metadata: deserializeMetadata(output),
|
|
1934
|
-
};
|
|
1935
|
-
break;
|
|
1716
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1936
1717
|
case "ConflictException":
|
|
1937
1718
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
1938
|
-
|
|
1939
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
1940
|
-
name: errorCode,
|
|
1941
|
-
$metadata: deserializeMetadata(output),
|
|
1942
|
-
};
|
|
1943
|
-
break;
|
|
1719
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1944
1720
|
case "InternalServerException":
|
|
1945
1721
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
1946
|
-
|
|
1947
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
1948
|
-
name: errorCode,
|
|
1949
|
-
$metadata: deserializeMetadata(output),
|
|
1950
|
-
};
|
|
1951
|
-
break;
|
|
1722
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1952
1723
|
case "ServiceQuotaExceededException":
|
|
1953
1724
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
1954
|
-
|
|
1955
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
1956
|
-
name: errorCode,
|
|
1957
|
-
$metadata: deserializeMetadata(output),
|
|
1958
|
-
};
|
|
1959
|
-
break;
|
|
1725
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1960
1726
|
case "ThrottlingException":
|
|
1961
1727
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
1962
|
-
|
|
1963
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
1964
|
-
name: errorCode,
|
|
1965
|
-
$metadata: deserializeMetadata(output),
|
|
1966
|
-
};
|
|
1967
|
-
break;
|
|
1728
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1968
1729
|
case "ValidationException":
|
|
1969
1730
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
1970
|
-
|
|
1971
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
1972
|
-
name: errorCode,
|
|
1973
|
-
$metadata: deserializeMetadata(output),
|
|
1974
|
-
};
|
|
1975
|
-
break;
|
|
1731
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1976
1732
|
default:
|
|
1977
1733
|
const parsedBody = parsedOutput.body;
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
...parsedBody,
|
|
1981
|
-
name: `${errorCode}`,
|
|
1982
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1734
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1735
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1983
1736
|
$fault: "client",
|
|
1984
1737
|
$metadata: deserializeMetadata(output),
|
|
1985
|
-
};
|
|
1738
|
+
});
|
|
1739
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1986
1740
|
}
|
|
1987
|
-
const message = response.message || response.Message || errorCode;
|
|
1988
|
-
response.message = message;
|
|
1989
|
-
delete response.Message;
|
|
1990
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1991
1741
|
};
|
|
1992
1742
|
const deserializeAws_restJson1CreatePortalCommand = async (output, context) => {
|
|
1993
1743
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2019,75 +1769,34 @@ const deserializeAws_restJson1CreatePortalCommandError = async (output, context)
|
|
|
2019
1769
|
switch (errorCode) {
|
|
2020
1770
|
case "AccessDeniedException":
|
|
2021
1771
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2022
|
-
|
|
2023
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2024
|
-
name: errorCode,
|
|
2025
|
-
$metadata: deserializeMetadata(output),
|
|
2026
|
-
};
|
|
2027
|
-
break;
|
|
1772
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2028
1773
|
case "ConflictException":
|
|
2029
1774
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
2030
|
-
|
|
2031
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2032
|
-
name: errorCode,
|
|
2033
|
-
$metadata: deserializeMetadata(output),
|
|
2034
|
-
};
|
|
2035
|
-
break;
|
|
1775
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2036
1776
|
case "InternalServerException":
|
|
2037
1777
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2038
|
-
|
|
2039
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2040
|
-
name: errorCode,
|
|
2041
|
-
$metadata: deserializeMetadata(output),
|
|
2042
|
-
};
|
|
2043
|
-
break;
|
|
1778
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2044
1779
|
case "ResourceNotFoundException":
|
|
2045
1780
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2046
|
-
|
|
2047
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2048
|
-
name: errorCode,
|
|
2049
|
-
$metadata: deserializeMetadata(output),
|
|
2050
|
-
};
|
|
2051
|
-
break;
|
|
1781
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2052
1782
|
case "ServiceQuotaExceededException":
|
|
2053
1783
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
2054
|
-
|
|
2055
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2056
|
-
name: errorCode,
|
|
2057
|
-
$metadata: deserializeMetadata(output),
|
|
2058
|
-
};
|
|
2059
|
-
break;
|
|
1784
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2060
1785
|
case "ThrottlingException":
|
|
2061
1786
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2062
|
-
|
|
2063
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2064
|
-
name: errorCode,
|
|
2065
|
-
$metadata: deserializeMetadata(output),
|
|
2066
|
-
};
|
|
2067
|
-
break;
|
|
1787
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2068
1788
|
case "ValidationException":
|
|
2069
1789
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2070
|
-
|
|
2071
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2072
|
-
name: errorCode,
|
|
2073
|
-
$metadata: deserializeMetadata(output),
|
|
2074
|
-
};
|
|
2075
|
-
break;
|
|
1790
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2076
1791
|
default:
|
|
2077
1792
|
const parsedBody = parsedOutput.body;
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
...parsedBody,
|
|
2081
|
-
name: `${errorCode}`,
|
|
2082
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1793
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1794
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2083
1795
|
$fault: "client",
|
|
2084
1796
|
$metadata: deserializeMetadata(output),
|
|
2085
|
-
};
|
|
1797
|
+
});
|
|
1798
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2086
1799
|
}
|
|
2087
|
-
const message = response.message || response.Message || errorCode;
|
|
2088
|
-
response.message = message;
|
|
2089
|
-
delete response.Message;
|
|
2090
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2091
1800
|
};
|
|
2092
1801
|
const deserializeAws_restJson1CreateTrustStoreCommand = async (output, context) => {
|
|
2093
1802
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2115,67 +1824,31 @@ const deserializeAws_restJson1CreateTrustStoreCommandError = async (output, cont
|
|
|
2115
1824
|
switch (errorCode) {
|
|
2116
1825
|
case "AccessDeniedException":
|
|
2117
1826
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2118
|
-
|
|
2119
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2120
|
-
name: errorCode,
|
|
2121
|
-
$metadata: deserializeMetadata(output),
|
|
2122
|
-
};
|
|
2123
|
-
break;
|
|
1827
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2124
1828
|
case "ConflictException":
|
|
2125
1829
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
2126
|
-
|
|
2127
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2128
|
-
name: errorCode,
|
|
2129
|
-
$metadata: deserializeMetadata(output),
|
|
2130
|
-
};
|
|
2131
|
-
break;
|
|
1830
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2132
1831
|
case "InternalServerException":
|
|
2133
1832
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2134
|
-
|
|
2135
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2136
|
-
name: errorCode,
|
|
2137
|
-
$metadata: deserializeMetadata(output),
|
|
2138
|
-
};
|
|
2139
|
-
break;
|
|
1833
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2140
1834
|
case "ServiceQuotaExceededException":
|
|
2141
1835
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
2142
|
-
|
|
2143
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2144
|
-
name: errorCode,
|
|
2145
|
-
$metadata: deserializeMetadata(output),
|
|
2146
|
-
};
|
|
2147
|
-
break;
|
|
1836
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2148
1837
|
case "ThrottlingException":
|
|
2149
1838
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2150
|
-
|
|
2151
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2152
|
-
name: errorCode,
|
|
2153
|
-
$metadata: deserializeMetadata(output),
|
|
2154
|
-
};
|
|
2155
|
-
break;
|
|
1839
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2156
1840
|
case "ValidationException":
|
|
2157
1841
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2158
|
-
|
|
2159
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2160
|
-
name: errorCode,
|
|
2161
|
-
$metadata: deserializeMetadata(output),
|
|
2162
|
-
};
|
|
2163
|
-
break;
|
|
1842
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2164
1843
|
default:
|
|
2165
1844
|
const parsedBody = parsedOutput.body;
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
...parsedBody,
|
|
2169
|
-
name: `${errorCode}`,
|
|
2170
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1845
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1846
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2171
1847
|
$fault: "client",
|
|
2172
1848
|
$metadata: deserializeMetadata(output),
|
|
2173
|
-
};
|
|
1849
|
+
});
|
|
1850
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2174
1851
|
}
|
|
2175
|
-
const message = response.message || response.Message || errorCode;
|
|
2176
|
-
response.message = message;
|
|
2177
|
-
delete response.Message;
|
|
2178
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2179
1852
|
};
|
|
2180
1853
|
const deserializeAws_restJson1CreateUserSettingsCommand = async (output, context) => {
|
|
2181
1854
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2203,67 +1876,31 @@ const deserializeAws_restJson1CreateUserSettingsCommandError = async (output, co
|
|
|
2203
1876
|
switch (errorCode) {
|
|
2204
1877
|
case "AccessDeniedException":
|
|
2205
1878
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2206
|
-
|
|
2207
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2208
|
-
name: errorCode,
|
|
2209
|
-
$metadata: deserializeMetadata(output),
|
|
2210
|
-
};
|
|
2211
|
-
break;
|
|
1879
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2212
1880
|
case "ConflictException":
|
|
2213
1881
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
2214
|
-
|
|
2215
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2216
|
-
name: errorCode,
|
|
2217
|
-
$metadata: deserializeMetadata(output),
|
|
2218
|
-
};
|
|
2219
|
-
break;
|
|
1882
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2220
1883
|
case "InternalServerException":
|
|
2221
1884
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2222
|
-
|
|
2223
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2224
|
-
name: errorCode,
|
|
2225
|
-
$metadata: deserializeMetadata(output),
|
|
2226
|
-
};
|
|
2227
|
-
break;
|
|
1885
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2228
1886
|
case "ServiceQuotaExceededException":
|
|
2229
1887
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
2230
|
-
|
|
2231
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
2232
|
-
name: errorCode,
|
|
2233
|
-
$metadata: deserializeMetadata(output),
|
|
2234
|
-
};
|
|
2235
|
-
break;
|
|
1888
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
2236
1889
|
case "ThrottlingException":
|
|
2237
1890
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2238
|
-
|
|
2239
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2240
|
-
name: errorCode,
|
|
2241
|
-
$metadata: deserializeMetadata(output),
|
|
2242
|
-
};
|
|
2243
|
-
break;
|
|
1891
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2244
1892
|
case "ValidationException":
|
|
2245
1893
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2246
|
-
|
|
2247
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2248
|
-
name: errorCode,
|
|
2249
|
-
$metadata: deserializeMetadata(output),
|
|
2250
|
-
};
|
|
2251
|
-
break;
|
|
1894
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2252
1895
|
default:
|
|
2253
1896
|
const parsedBody = parsedOutput.body;
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
...parsedBody,
|
|
2257
|
-
name: `${errorCode}`,
|
|
2258
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1897
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1898
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2259
1899
|
$fault: "client",
|
|
2260
1900
|
$metadata: deserializeMetadata(output),
|
|
2261
|
-
};
|
|
1901
|
+
});
|
|
1902
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2262
1903
|
}
|
|
2263
|
-
const message = response.message || response.Message || errorCode;
|
|
2264
|
-
response.message = message;
|
|
2265
|
-
delete response.Message;
|
|
2266
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2267
1904
|
};
|
|
2268
1905
|
const deserializeAws_restJson1DeleteBrowserSettingsCommand = async (output, context) => {
|
|
2269
1906
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2287,59 +1924,28 @@ const deserializeAws_restJson1DeleteBrowserSettingsCommandError = async (output,
|
|
|
2287
1924
|
switch (errorCode) {
|
|
2288
1925
|
case "AccessDeniedException":
|
|
2289
1926
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2290
|
-
|
|
2291
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2292
|
-
name: errorCode,
|
|
2293
|
-
$metadata: deserializeMetadata(output),
|
|
2294
|
-
};
|
|
2295
|
-
break;
|
|
1927
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2296
1928
|
case "ConflictException":
|
|
2297
1929
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
2298
|
-
|
|
2299
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2300
|
-
name: errorCode,
|
|
2301
|
-
$metadata: deserializeMetadata(output),
|
|
2302
|
-
};
|
|
2303
|
-
break;
|
|
1930
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2304
1931
|
case "InternalServerException":
|
|
2305
1932
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2306
|
-
|
|
2307
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2308
|
-
name: errorCode,
|
|
2309
|
-
$metadata: deserializeMetadata(output),
|
|
2310
|
-
};
|
|
2311
|
-
break;
|
|
1933
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2312
1934
|
case "ThrottlingException":
|
|
2313
1935
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2314
|
-
|
|
2315
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2316
|
-
name: errorCode,
|
|
2317
|
-
$metadata: deserializeMetadata(output),
|
|
2318
|
-
};
|
|
2319
|
-
break;
|
|
1936
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2320
1937
|
case "ValidationException":
|
|
2321
1938
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2322
|
-
|
|
2323
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2324
|
-
name: errorCode,
|
|
2325
|
-
$metadata: deserializeMetadata(output),
|
|
2326
|
-
};
|
|
2327
|
-
break;
|
|
1939
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2328
1940
|
default:
|
|
2329
1941
|
const parsedBody = parsedOutput.body;
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
...parsedBody,
|
|
2333
|
-
name: `${errorCode}`,
|
|
2334
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1942
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1943
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2335
1944
|
$fault: "client",
|
|
2336
1945
|
$metadata: deserializeMetadata(output),
|
|
2337
|
-
};
|
|
1946
|
+
});
|
|
1947
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2338
1948
|
}
|
|
2339
|
-
const message = response.message || response.Message || errorCode;
|
|
2340
|
-
response.message = message;
|
|
2341
|
-
delete response.Message;
|
|
2342
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2343
1949
|
};
|
|
2344
1950
|
const deserializeAws_restJson1DeleteIdentityProviderCommand = async (output, context) => {
|
|
2345
1951
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2363,59 +1969,28 @@ const deserializeAws_restJson1DeleteIdentityProviderCommandError = async (output
|
|
|
2363
1969
|
switch (errorCode) {
|
|
2364
1970
|
case "AccessDeniedException":
|
|
2365
1971
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2366
|
-
|
|
2367
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2368
|
-
name: errorCode,
|
|
2369
|
-
$metadata: deserializeMetadata(output),
|
|
2370
|
-
};
|
|
2371
|
-
break;
|
|
1972
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2372
1973
|
case "ConflictException":
|
|
2373
1974
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
2374
|
-
|
|
2375
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2376
|
-
name: errorCode,
|
|
2377
|
-
$metadata: deserializeMetadata(output),
|
|
2378
|
-
};
|
|
2379
|
-
break;
|
|
1975
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2380
1976
|
case "InternalServerException":
|
|
2381
1977
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2382
|
-
|
|
2383
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2384
|
-
name: errorCode,
|
|
2385
|
-
$metadata: deserializeMetadata(output),
|
|
2386
|
-
};
|
|
2387
|
-
break;
|
|
1978
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2388
1979
|
case "ThrottlingException":
|
|
2389
1980
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2390
|
-
|
|
2391
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2392
|
-
name: errorCode,
|
|
2393
|
-
$metadata: deserializeMetadata(output),
|
|
2394
|
-
};
|
|
2395
|
-
break;
|
|
1981
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2396
1982
|
case "ValidationException":
|
|
2397
1983
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2398
|
-
|
|
2399
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2400
|
-
name: errorCode,
|
|
2401
|
-
$metadata: deserializeMetadata(output),
|
|
2402
|
-
};
|
|
2403
|
-
break;
|
|
1984
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2404
1985
|
default:
|
|
2405
1986
|
const parsedBody = parsedOutput.body;
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
...parsedBody,
|
|
2409
|
-
name: `${errorCode}`,
|
|
2410
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1987
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
1988
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2411
1989
|
$fault: "client",
|
|
2412
1990
|
$metadata: deserializeMetadata(output),
|
|
2413
|
-
};
|
|
1991
|
+
});
|
|
1992
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2414
1993
|
}
|
|
2415
|
-
const message = response.message || response.Message || errorCode;
|
|
2416
|
-
response.message = message;
|
|
2417
|
-
delete response.Message;
|
|
2418
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2419
1994
|
};
|
|
2420
1995
|
const deserializeAws_restJson1DeleteNetworkSettingsCommand = async (output, context) => {
|
|
2421
1996
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2439,59 +2014,28 @@ const deserializeAws_restJson1DeleteNetworkSettingsCommandError = async (output,
|
|
|
2439
2014
|
switch (errorCode) {
|
|
2440
2015
|
case "AccessDeniedException":
|
|
2441
2016
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2442
|
-
|
|
2443
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2444
|
-
name: errorCode,
|
|
2445
|
-
$metadata: deserializeMetadata(output),
|
|
2446
|
-
};
|
|
2447
|
-
break;
|
|
2017
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2448
2018
|
case "ConflictException":
|
|
2449
2019
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
2450
|
-
|
|
2451
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2452
|
-
name: errorCode,
|
|
2453
|
-
$metadata: deserializeMetadata(output),
|
|
2454
|
-
};
|
|
2455
|
-
break;
|
|
2020
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2456
2021
|
case "InternalServerException":
|
|
2457
2022
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2458
|
-
|
|
2459
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2460
|
-
name: errorCode,
|
|
2461
|
-
$metadata: deserializeMetadata(output),
|
|
2462
|
-
};
|
|
2463
|
-
break;
|
|
2023
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2464
2024
|
case "ThrottlingException":
|
|
2465
2025
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2466
|
-
|
|
2467
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2468
|
-
name: errorCode,
|
|
2469
|
-
$metadata: deserializeMetadata(output),
|
|
2470
|
-
};
|
|
2471
|
-
break;
|
|
2026
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2472
2027
|
case "ValidationException":
|
|
2473
2028
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2474
|
-
|
|
2475
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2476
|
-
name: errorCode,
|
|
2477
|
-
$metadata: deserializeMetadata(output),
|
|
2478
|
-
};
|
|
2479
|
-
break;
|
|
2029
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2480
2030
|
default:
|
|
2481
2031
|
const parsedBody = parsedOutput.body;
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
...parsedBody,
|
|
2485
|
-
name: `${errorCode}`,
|
|
2486
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2032
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2033
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2487
2034
|
$fault: "client",
|
|
2488
2035
|
$metadata: deserializeMetadata(output),
|
|
2489
|
-
};
|
|
2036
|
+
});
|
|
2037
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2490
2038
|
}
|
|
2491
|
-
const message = response.message || response.Message || errorCode;
|
|
2492
|
-
response.message = message;
|
|
2493
|
-
delete response.Message;
|
|
2494
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2495
2039
|
};
|
|
2496
2040
|
const deserializeAws_restJson1DeletePortalCommand = async (output, context) => {
|
|
2497
2041
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2515,59 +2059,28 @@ const deserializeAws_restJson1DeletePortalCommandError = async (output, context)
|
|
|
2515
2059
|
switch (errorCode) {
|
|
2516
2060
|
case "AccessDeniedException":
|
|
2517
2061
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2518
|
-
|
|
2519
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2520
|
-
name: errorCode,
|
|
2521
|
-
$metadata: deserializeMetadata(output),
|
|
2522
|
-
};
|
|
2523
|
-
break;
|
|
2062
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2524
2063
|
case "ConflictException":
|
|
2525
2064
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
2526
|
-
|
|
2527
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2528
|
-
name: errorCode,
|
|
2529
|
-
$metadata: deserializeMetadata(output),
|
|
2530
|
-
};
|
|
2531
|
-
break;
|
|
2065
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2532
2066
|
case "InternalServerException":
|
|
2533
2067
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2534
|
-
|
|
2535
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2536
|
-
name: errorCode,
|
|
2537
|
-
$metadata: deserializeMetadata(output),
|
|
2538
|
-
};
|
|
2539
|
-
break;
|
|
2068
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2540
2069
|
case "ThrottlingException":
|
|
2541
2070
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2542
|
-
|
|
2543
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2544
|
-
name: errorCode,
|
|
2545
|
-
$metadata: deserializeMetadata(output),
|
|
2546
|
-
};
|
|
2547
|
-
break;
|
|
2071
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2548
2072
|
case "ValidationException":
|
|
2549
2073
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2550
|
-
|
|
2551
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2552
|
-
name: errorCode,
|
|
2553
|
-
$metadata: deserializeMetadata(output),
|
|
2554
|
-
};
|
|
2555
|
-
break;
|
|
2074
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2556
2075
|
default:
|
|
2557
2076
|
const parsedBody = parsedOutput.body;
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
...parsedBody,
|
|
2561
|
-
name: `${errorCode}`,
|
|
2562
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2077
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2078
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2563
2079
|
$fault: "client",
|
|
2564
2080
|
$metadata: deserializeMetadata(output),
|
|
2565
|
-
};
|
|
2081
|
+
});
|
|
2082
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2566
2083
|
}
|
|
2567
|
-
const message = response.message || response.Message || errorCode;
|
|
2568
|
-
response.message = message;
|
|
2569
|
-
delete response.Message;
|
|
2570
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2571
2084
|
};
|
|
2572
2085
|
const deserializeAws_restJson1DeleteTrustStoreCommand = async (output, context) => {
|
|
2573
2086
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2591,59 +2104,28 @@ const deserializeAws_restJson1DeleteTrustStoreCommandError = async (output, cont
|
|
|
2591
2104
|
switch (errorCode) {
|
|
2592
2105
|
case "AccessDeniedException":
|
|
2593
2106
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2594
|
-
|
|
2595
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2596
|
-
name: errorCode,
|
|
2597
|
-
$metadata: deserializeMetadata(output),
|
|
2598
|
-
};
|
|
2599
|
-
break;
|
|
2107
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2600
2108
|
case "ConflictException":
|
|
2601
2109
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
2602
|
-
|
|
2603
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2604
|
-
name: errorCode,
|
|
2605
|
-
$metadata: deserializeMetadata(output),
|
|
2606
|
-
};
|
|
2607
|
-
break;
|
|
2110
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2608
2111
|
case "InternalServerException":
|
|
2609
2112
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2610
|
-
|
|
2611
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2612
|
-
name: errorCode,
|
|
2613
|
-
$metadata: deserializeMetadata(output),
|
|
2614
|
-
};
|
|
2615
|
-
break;
|
|
2113
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2616
2114
|
case "ThrottlingException":
|
|
2617
2115
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2618
|
-
|
|
2619
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2620
|
-
name: errorCode,
|
|
2621
|
-
$metadata: deserializeMetadata(output),
|
|
2622
|
-
};
|
|
2623
|
-
break;
|
|
2116
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2624
2117
|
case "ValidationException":
|
|
2625
2118
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2626
|
-
|
|
2627
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2628
|
-
name: errorCode,
|
|
2629
|
-
$metadata: deserializeMetadata(output),
|
|
2630
|
-
};
|
|
2631
|
-
break;
|
|
2119
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2632
2120
|
default:
|
|
2633
2121
|
const parsedBody = parsedOutput.body;
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
...parsedBody,
|
|
2637
|
-
name: `${errorCode}`,
|
|
2638
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2122
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2123
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2639
2124
|
$fault: "client",
|
|
2640
2125
|
$metadata: deserializeMetadata(output),
|
|
2641
|
-
};
|
|
2126
|
+
});
|
|
2127
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2642
2128
|
}
|
|
2643
|
-
const message = response.message || response.Message || errorCode;
|
|
2644
|
-
response.message = message;
|
|
2645
|
-
delete response.Message;
|
|
2646
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2647
2129
|
};
|
|
2648
2130
|
const deserializeAws_restJson1DeleteUserSettingsCommand = async (output, context) => {
|
|
2649
2131
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2667,59 +2149,28 @@ const deserializeAws_restJson1DeleteUserSettingsCommandError = async (output, co
|
|
|
2667
2149
|
switch (errorCode) {
|
|
2668
2150
|
case "AccessDeniedException":
|
|
2669
2151
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2670
|
-
|
|
2671
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2672
|
-
name: errorCode,
|
|
2673
|
-
$metadata: deserializeMetadata(output),
|
|
2674
|
-
};
|
|
2675
|
-
break;
|
|
2152
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2676
2153
|
case "ConflictException":
|
|
2677
2154
|
case "com.amazonaws.workspacesweb#ConflictException":
|
|
2678
|
-
|
|
2679
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2680
|
-
name: errorCode,
|
|
2681
|
-
$metadata: deserializeMetadata(output),
|
|
2682
|
-
};
|
|
2683
|
-
break;
|
|
2155
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2684
2156
|
case "InternalServerException":
|
|
2685
2157
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2686
|
-
|
|
2687
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2688
|
-
name: errorCode,
|
|
2689
|
-
$metadata: deserializeMetadata(output),
|
|
2690
|
-
};
|
|
2691
|
-
break;
|
|
2158
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2692
2159
|
case "ThrottlingException":
|
|
2693
2160
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2694
|
-
|
|
2695
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2696
|
-
name: errorCode,
|
|
2697
|
-
$metadata: deserializeMetadata(output),
|
|
2698
|
-
};
|
|
2699
|
-
break;
|
|
2161
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2700
2162
|
case "ValidationException":
|
|
2701
2163
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2702
|
-
|
|
2703
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2704
|
-
name: errorCode,
|
|
2705
|
-
$metadata: deserializeMetadata(output),
|
|
2706
|
-
};
|
|
2707
|
-
break;
|
|
2164
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2708
2165
|
default:
|
|
2709
2166
|
const parsedBody = parsedOutput.body;
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
...parsedBody,
|
|
2713
|
-
name: `${errorCode}`,
|
|
2714
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2167
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2168
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2715
2169
|
$fault: "client",
|
|
2716
2170
|
$metadata: deserializeMetadata(output),
|
|
2717
|
-
};
|
|
2171
|
+
});
|
|
2172
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2718
2173
|
}
|
|
2719
|
-
const message = response.message || response.Message || errorCode;
|
|
2720
|
-
response.message = message;
|
|
2721
|
-
delete response.Message;
|
|
2722
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2723
2174
|
};
|
|
2724
2175
|
const deserializeAws_restJson1DisassociateBrowserSettingsCommand = async (output, context) => {
|
|
2725
2176
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2743,59 +2194,28 @@ const deserializeAws_restJson1DisassociateBrowserSettingsCommandError = async (o
|
|
|
2743
2194
|
switch (errorCode) {
|
|
2744
2195
|
case "AccessDeniedException":
|
|
2745
2196
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2746
|
-
|
|
2747
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2748
|
-
name: errorCode,
|
|
2749
|
-
$metadata: deserializeMetadata(output),
|
|
2750
|
-
};
|
|
2751
|
-
break;
|
|
2197
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2752
2198
|
case "InternalServerException":
|
|
2753
2199
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2754
|
-
|
|
2755
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2756
|
-
name: errorCode,
|
|
2757
|
-
$metadata: deserializeMetadata(output),
|
|
2758
|
-
};
|
|
2759
|
-
break;
|
|
2200
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2760
2201
|
case "ResourceNotFoundException":
|
|
2761
2202
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2762
|
-
|
|
2763
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2764
|
-
name: errorCode,
|
|
2765
|
-
$metadata: deserializeMetadata(output),
|
|
2766
|
-
};
|
|
2767
|
-
break;
|
|
2203
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2768
2204
|
case "ThrottlingException":
|
|
2769
2205
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2770
|
-
|
|
2771
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2772
|
-
name: errorCode,
|
|
2773
|
-
$metadata: deserializeMetadata(output),
|
|
2774
|
-
};
|
|
2775
|
-
break;
|
|
2206
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2776
2207
|
case "ValidationException":
|
|
2777
2208
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2778
|
-
|
|
2779
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2780
|
-
name: errorCode,
|
|
2781
|
-
$metadata: deserializeMetadata(output),
|
|
2782
|
-
};
|
|
2783
|
-
break;
|
|
2209
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2784
2210
|
default:
|
|
2785
2211
|
const parsedBody = parsedOutput.body;
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
...parsedBody,
|
|
2789
|
-
name: `${errorCode}`,
|
|
2790
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2212
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2213
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2791
2214
|
$fault: "client",
|
|
2792
2215
|
$metadata: deserializeMetadata(output),
|
|
2793
|
-
};
|
|
2216
|
+
});
|
|
2217
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2794
2218
|
}
|
|
2795
|
-
const message = response.message || response.Message || errorCode;
|
|
2796
|
-
response.message = message;
|
|
2797
|
-
delete response.Message;
|
|
2798
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2799
2219
|
};
|
|
2800
2220
|
const deserializeAws_restJson1DisassociateNetworkSettingsCommand = async (output, context) => {
|
|
2801
2221
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2819,59 +2239,28 @@ const deserializeAws_restJson1DisassociateNetworkSettingsCommandError = async (o
|
|
|
2819
2239
|
switch (errorCode) {
|
|
2820
2240
|
case "AccessDeniedException":
|
|
2821
2241
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2822
|
-
|
|
2823
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2824
|
-
name: errorCode,
|
|
2825
|
-
$metadata: deserializeMetadata(output),
|
|
2826
|
-
};
|
|
2827
|
-
break;
|
|
2242
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2828
2243
|
case "InternalServerException":
|
|
2829
2244
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2830
|
-
|
|
2831
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2832
|
-
name: errorCode,
|
|
2833
|
-
$metadata: deserializeMetadata(output),
|
|
2834
|
-
};
|
|
2835
|
-
break;
|
|
2245
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2836
2246
|
case "ResourceNotFoundException":
|
|
2837
2247
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2838
|
-
|
|
2839
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2840
|
-
name: errorCode,
|
|
2841
|
-
$metadata: deserializeMetadata(output),
|
|
2842
|
-
};
|
|
2843
|
-
break;
|
|
2248
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2844
2249
|
case "ThrottlingException":
|
|
2845
2250
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2846
|
-
|
|
2847
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2848
|
-
name: errorCode,
|
|
2849
|
-
$metadata: deserializeMetadata(output),
|
|
2850
|
-
};
|
|
2851
|
-
break;
|
|
2251
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2852
2252
|
case "ValidationException":
|
|
2853
2253
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2854
|
-
|
|
2855
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2856
|
-
name: errorCode,
|
|
2857
|
-
$metadata: deserializeMetadata(output),
|
|
2858
|
-
};
|
|
2859
|
-
break;
|
|
2254
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2860
2255
|
default:
|
|
2861
2256
|
const parsedBody = parsedOutput.body;
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
...parsedBody,
|
|
2865
|
-
name: `${errorCode}`,
|
|
2866
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2257
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2258
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2867
2259
|
$fault: "client",
|
|
2868
2260
|
$metadata: deserializeMetadata(output),
|
|
2869
|
-
};
|
|
2261
|
+
});
|
|
2262
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2870
2263
|
}
|
|
2871
|
-
const message = response.message || response.Message || errorCode;
|
|
2872
|
-
response.message = message;
|
|
2873
|
-
delete response.Message;
|
|
2874
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2875
2264
|
};
|
|
2876
2265
|
const deserializeAws_restJson1DisassociateTrustStoreCommand = async (output, context) => {
|
|
2877
2266
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2895,59 +2284,28 @@ const deserializeAws_restJson1DisassociateTrustStoreCommandError = async (output
|
|
|
2895
2284
|
switch (errorCode) {
|
|
2896
2285
|
case "AccessDeniedException":
|
|
2897
2286
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2898
|
-
|
|
2899
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2900
|
-
name: errorCode,
|
|
2901
|
-
$metadata: deserializeMetadata(output),
|
|
2902
|
-
};
|
|
2903
|
-
break;
|
|
2287
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2904
2288
|
case "InternalServerException":
|
|
2905
2289
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2906
|
-
|
|
2907
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2908
|
-
name: errorCode,
|
|
2909
|
-
$metadata: deserializeMetadata(output),
|
|
2910
|
-
};
|
|
2911
|
-
break;
|
|
2290
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2912
2291
|
case "ResourceNotFoundException":
|
|
2913
2292
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2914
|
-
|
|
2915
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2916
|
-
name: errorCode,
|
|
2917
|
-
$metadata: deserializeMetadata(output),
|
|
2918
|
-
};
|
|
2919
|
-
break;
|
|
2293
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2920
2294
|
case "ThrottlingException":
|
|
2921
2295
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2922
|
-
|
|
2923
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
2924
|
-
name: errorCode,
|
|
2925
|
-
$metadata: deserializeMetadata(output),
|
|
2926
|
-
};
|
|
2927
|
-
break;
|
|
2296
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
2928
2297
|
case "ValidationException":
|
|
2929
2298
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
2930
|
-
|
|
2931
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
2932
|
-
name: errorCode,
|
|
2933
|
-
$metadata: deserializeMetadata(output),
|
|
2934
|
-
};
|
|
2935
|
-
break;
|
|
2299
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2936
2300
|
default:
|
|
2937
2301
|
const parsedBody = parsedOutput.body;
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
...parsedBody,
|
|
2941
|
-
name: `${errorCode}`,
|
|
2942
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2302
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2303
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2943
2304
|
$fault: "client",
|
|
2944
2305
|
$metadata: deserializeMetadata(output),
|
|
2945
|
-
};
|
|
2306
|
+
});
|
|
2307
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2946
2308
|
}
|
|
2947
|
-
const message = response.message || response.Message || errorCode;
|
|
2948
|
-
response.message = message;
|
|
2949
|
-
delete response.Message;
|
|
2950
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2951
2309
|
};
|
|
2952
2310
|
const deserializeAws_restJson1DisassociateUserSettingsCommand = async (output, context) => {
|
|
2953
2311
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2971,59 +2329,28 @@ const deserializeAws_restJson1DisassociateUserSettingsCommandError = async (outp
|
|
|
2971
2329
|
switch (errorCode) {
|
|
2972
2330
|
case "AccessDeniedException":
|
|
2973
2331
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
2974
|
-
|
|
2975
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
2976
|
-
name: errorCode,
|
|
2977
|
-
$metadata: deserializeMetadata(output),
|
|
2978
|
-
};
|
|
2979
|
-
break;
|
|
2332
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2980
2333
|
case "InternalServerException":
|
|
2981
2334
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
2982
|
-
|
|
2983
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
2984
|
-
name: errorCode,
|
|
2985
|
-
$metadata: deserializeMetadata(output),
|
|
2986
|
-
};
|
|
2987
|
-
break;
|
|
2335
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
2988
2336
|
case "ResourceNotFoundException":
|
|
2989
2337
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
2990
|
-
|
|
2991
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2992
|
-
name: errorCode,
|
|
2993
|
-
$metadata: deserializeMetadata(output),
|
|
2994
|
-
};
|
|
2995
|
-
break;
|
|
2338
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2996
2339
|
case "ThrottlingException":
|
|
2997
2340
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
2998
|
-
|
|
2999
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3000
|
-
name: errorCode,
|
|
3001
|
-
$metadata: deserializeMetadata(output),
|
|
3002
|
-
};
|
|
3003
|
-
break;
|
|
2341
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3004
2342
|
case "ValidationException":
|
|
3005
2343
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3006
|
-
|
|
3007
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3008
|
-
name: errorCode,
|
|
3009
|
-
$metadata: deserializeMetadata(output),
|
|
3010
|
-
};
|
|
3011
|
-
break;
|
|
2344
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3012
2345
|
default:
|
|
3013
2346
|
const parsedBody = parsedOutput.body;
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
...parsedBody,
|
|
3017
|
-
name: `${errorCode}`,
|
|
3018
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2347
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2348
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3019
2349
|
$fault: "client",
|
|
3020
2350
|
$metadata: deserializeMetadata(output),
|
|
3021
|
-
};
|
|
2351
|
+
});
|
|
2352
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3022
2353
|
}
|
|
3023
|
-
const message = response.message || response.Message || errorCode;
|
|
3024
|
-
response.message = message;
|
|
3025
|
-
delete response.Message;
|
|
3026
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3027
2354
|
};
|
|
3028
2355
|
const deserializeAws_restJson1GetBrowserSettingsCommand = async (output, context) => {
|
|
3029
2356
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3051,59 +2378,28 @@ const deserializeAws_restJson1GetBrowserSettingsCommandError = async (output, co
|
|
|
3051
2378
|
switch (errorCode) {
|
|
3052
2379
|
case "AccessDeniedException":
|
|
3053
2380
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3054
|
-
|
|
3055
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3056
|
-
name: errorCode,
|
|
3057
|
-
$metadata: deserializeMetadata(output),
|
|
3058
|
-
};
|
|
3059
|
-
break;
|
|
2381
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3060
2382
|
case "InternalServerException":
|
|
3061
2383
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3062
|
-
|
|
3063
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3064
|
-
name: errorCode,
|
|
3065
|
-
$metadata: deserializeMetadata(output),
|
|
3066
|
-
};
|
|
3067
|
-
break;
|
|
2384
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3068
2385
|
case "ResourceNotFoundException":
|
|
3069
2386
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3070
|
-
|
|
3071
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3072
|
-
name: errorCode,
|
|
3073
|
-
$metadata: deserializeMetadata(output),
|
|
3074
|
-
};
|
|
3075
|
-
break;
|
|
2387
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3076
2388
|
case "ThrottlingException":
|
|
3077
2389
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3078
|
-
|
|
3079
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3080
|
-
name: errorCode,
|
|
3081
|
-
$metadata: deserializeMetadata(output),
|
|
3082
|
-
};
|
|
3083
|
-
break;
|
|
2390
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3084
2391
|
case "ValidationException":
|
|
3085
2392
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3086
|
-
|
|
3087
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3088
|
-
name: errorCode,
|
|
3089
|
-
$metadata: deserializeMetadata(output),
|
|
3090
|
-
};
|
|
3091
|
-
break;
|
|
2393
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3092
2394
|
default:
|
|
3093
2395
|
const parsedBody = parsedOutput.body;
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
...parsedBody,
|
|
3097
|
-
name: `${errorCode}`,
|
|
3098
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2396
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2397
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3099
2398
|
$fault: "client",
|
|
3100
2399
|
$metadata: deserializeMetadata(output),
|
|
3101
|
-
};
|
|
2400
|
+
});
|
|
2401
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3102
2402
|
}
|
|
3103
|
-
const message = response.message || response.Message || errorCode;
|
|
3104
|
-
response.message = message;
|
|
3105
|
-
delete response.Message;
|
|
3106
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3107
2403
|
};
|
|
3108
2404
|
const deserializeAws_restJson1GetIdentityProviderCommand = async (output, context) => {
|
|
3109
2405
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3131,59 +2427,28 @@ const deserializeAws_restJson1GetIdentityProviderCommandError = async (output, c
|
|
|
3131
2427
|
switch (errorCode) {
|
|
3132
2428
|
case "AccessDeniedException":
|
|
3133
2429
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3134
|
-
|
|
3135
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3136
|
-
name: errorCode,
|
|
3137
|
-
$metadata: deserializeMetadata(output),
|
|
3138
|
-
};
|
|
3139
|
-
break;
|
|
2430
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3140
2431
|
case "InternalServerException":
|
|
3141
2432
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3142
|
-
|
|
3143
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3144
|
-
name: errorCode,
|
|
3145
|
-
$metadata: deserializeMetadata(output),
|
|
3146
|
-
};
|
|
3147
|
-
break;
|
|
2433
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3148
2434
|
case "ResourceNotFoundException":
|
|
3149
2435
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3150
|
-
|
|
3151
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3152
|
-
name: errorCode,
|
|
3153
|
-
$metadata: deserializeMetadata(output),
|
|
3154
|
-
};
|
|
3155
|
-
break;
|
|
2436
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3156
2437
|
case "ThrottlingException":
|
|
3157
2438
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3158
|
-
|
|
3159
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3160
|
-
name: errorCode,
|
|
3161
|
-
$metadata: deserializeMetadata(output),
|
|
3162
|
-
};
|
|
3163
|
-
break;
|
|
2439
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3164
2440
|
case "ValidationException":
|
|
3165
2441
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3166
|
-
|
|
3167
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3168
|
-
name: errorCode,
|
|
3169
|
-
$metadata: deserializeMetadata(output),
|
|
3170
|
-
};
|
|
3171
|
-
break;
|
|
2442
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3172
2443
|
default:
|
|
3173
2444
|
const parsedBody = parsedOutput.body;
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
...parsedBody,
|
|
3177
|
-
name: `${errorCode}`,
|
|
3178
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2445
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2446
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3179
2447
|
$fault: "client",
|
|
3180
2448
|
$metadata: deserializeMetadata(output),
|
|
3181
|
-
};
|
|
2449
|
+
});
|
|
2450
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3182
2451
|
}
|
|
3183
|
-
const message = response.message || response.Message || errorCode;
|
|
3184
|
-
response.message = message;
|
|
3185
|
-
delete response.Message;
|
|
3186
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3187
2452
|
};
|
|
3188
2453
|
const deserializeAws_restJson1GetNetworkSettingsCommand = async (output, context) => {
|
|
3189
2454
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3211,59 +2476,28 @@ const deserializeAws_restJson1GetNetworkSettingsCommandError = async (output, co
|
|
|
3211
2476
|
switch (errorCode) {
|
|
3212
2477
|
case "AccessDeniedException":
|
|
3213
2478
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3214
|
-
|
|
3215
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3216
|
-
name: errorCode,
|
|
3217
|
-
$metadata: deserializeMetadata(output),
|
|
3218
|
-
};
|
|
3219
|
-
break;
|
|
2479
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3220
2480
|
case "InternalServerException":
|
|
3221
2481
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3222
|
-
|
|
3223
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3224
|
-
name: errorCode,
|
|
3225
|
-
$metadata: deserializeMetadata(output),
|
|
3226
|
-
};
|
|
3227
|
-
break;
|
|
2482
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3228
2483
|
case "ResourceNotFoundException":
|
|
3229
2484
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3230
|
-
|
|
3231
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3232
|
-
name: errorCode,
|
|
3233
|
-
$metadata: deserializeMetadata(output),
|
|
3234
|
-
};
|
|
3235
|
-
break;
|
|
2485
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3236
2486
|
case "ThrottlingException":
|
|
3237
2487
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3238
|
-
|
|
3239
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3240
|
-
name: errorCode,
|
|
3241
|
-
$metadata: deserializeMetadata(output),
|
|
3242
|
-
};
|
|
3243
|
-
break;
|
|
2488
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3244
2489
|
case "ValidationException":
|
|
3245
2490
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3246
|
-
|
|
3247
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3248
|
-
name: errorCode,
|
|
3249
|
-
$metadata: deserializeMetadata(output),
|
|
3250
|
-
};
|
|
3251
|
-
break;
|
|
2491
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3252
2492
|
default:
|
|
3253
2493
|
const parsedBody = parsedOutput.body;
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
...parsedBody,
|
|
3257
|
-
name: `${errorCode}`,
|
|
3258
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2494
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2495
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3259
2496
|
$fault: "client",
|
|
3260
2497
|
$metadata: deserializeMetadata(output),
|
|
3261
|
-
};
|
|
2498
|
+
});
|
|
2499
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3262
2500
|
}
|
|
3263
|
-
const message = response.message || response.Message || errorCode;
|
|
3264
|
-
response.message = message;
|
|
3265
|
-
delete response.Message;
|
|
3266
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3267
2501
|
};
|
|
3268
2502
|
const deserializeAws_restJson1GetPortalCommand = async (output, context) => {
|
|
3269
2503
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3291,59 +2525,28 @@ const deserializeAws_restJson1GetPortalCommandError = async (output, context) =>
|
|
|
3291
2525
|
switch (errorCode) {
|
|
3292
2526
|
case "AccessDeniedException":
|
|
3293
2527
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3294
|
-
|
|
3295
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3296
|
-
name: errorCode,
|
|
3297
|
-
$metadata: deserializeMetadata(output),
|
|
3298
|
-
};
|
|
3299
|
-
break;
|
|
2528
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3300
2529
|
case "InternalServerException":
|
|
3301
2530
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3302
|
-
|
|
3303
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3304
|
-
name: errorCode,
|
|
3305
|
-
$metadata: deserializeMetadata(output),
|
|
3306
|
-
};
|
|
3307
|
-
break;
|
|
2531
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3308
2532
|
case "ResourceNotFoundException":
|
|
3309
2533
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3310
|
-
|
|
3311
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3312
|
-
name: errorCode,
|
|
3313
|
-
$metadata: deserializeMetadata(output),
|
|
3314
|
-
};
|
|
3315
|
-
break;
|
|
2534
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3316
2535
|
case "ThrottlingException":
|
|
3317
2536
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3318
|
-
|
|
3319
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3320
|
-
name: errorCode,
|
|
3321
|
-
$metadata: deserializeMetadata(output),
|
|
3322
|
-
};
|
|
3323
|
-
break;
|
|
2537
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3324
2538
|
case "ValidationException":
|
|
3325
2539
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3326
|
-
|
|
3327
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3328
|
-
name: errorCode,
|
|
3329
|
-
$metadata: deserializeMetadata(output),
|
|
3330
|
-
};
|
|
3331
|
-
break;
|
|
2540
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3332
2541
|
default:
|
|
3333
2542
|
const parsedBody = parsedOutput.body;
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
...parsedBody,
|
|
3337
|
-
name: `${errorCode}`,
|
|
3338
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2543
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2544
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3339
2545
|
$fault: "client",
|
|
3340
2546
|
$metadata: deserializeMetadata(output),
|
|
3341
|
-
};
|
|
2547
|
+
});
|
|
2548
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3342
2549
|
}
|
|
3343
|
-
const message = response.message || response.Message || errorCode;
|
|
3344
|
-
response.message = message;
|
|
3345
|
-
delete response.Message;
|
|
3346
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3347
2550
|
};
|
|
3348
2551
|
const deserializeAws_restJson1GetPortalServiceProviderMetadataCommand = async (output, context) => {
|
|
3349
2552
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3375,59 +2578,28 @@ const deserializeAws_restJson1GetPortalServiceProviderMetadataCommandError = asy
|
|
|
3375
2578
|
switch (errorCode) {
|
|
3376
2579
|
case "AccessDeniedException":
|
|
3377
2580
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3378
|
-
|
|
3379
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3380
|
-
name: errorCode,
|
|
3381
|
-
$metadata: deserializeMetadata(output),
|
|
3382
|
-
};
|
|
3383
|
-
break;
|
|
2581
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3384
2582
|
case "InternalServerException":
|
|
3385
2583
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3386
|
-
|
|
3387
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3388
|
-
name: errorCode,
|
|
3389
|
-
$metadata: deserializeMetadata(output),
|
|
3390
|
-
};
|
|
3391
|
-
break;
|
|
2584
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3392
2585
|
case "ResourceNotFoundException":
|
|
3393
2586
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3394
|
-
|
|
3395
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3396
|
-
name: errorCode,
|
|
3397
|
-
$metadata: deserializeMetadata(output),
|
|
3398
|
-
};
|
|
3399
|
-
break;
|
|
2587
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3400
2588
|
case "ThrottlingException":
|
|
3401
2589
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3402
|
-
|
|
3403
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3404
|
-
name: errorCode,
|
|
3405
|
-
$metadata: deserializeMetadata(output),
|
|
3406
|
-
};
|
|
3407
|
-
break;
|
|
2590
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3408
2591
|
case "ValidationException":
|
|
3409
2592
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3410
|
-
|
|
3411
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3412
|
-
name: errorCode,
|
|
3413
|
-
$metadata: deserializeMetadata(output),
|
|
3414
|
-
};
|
|
3415
|
-
break;
|
|
2593
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3416
2594
|
default:
|
|
3417
2595
|
const parsedBody = parsedOutput.body;
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
...parsedBody,
|
|
3421
|
-
name: `${errorCode}`,
|
|
3422
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2596
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2597
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3423
2598
|
$fault: "client",
|
|
3424
2599
|
$metadata: deserializeMetadata(output),
|
|
3425
|
-
};
|
|
2600
|
+
});
|
|
2601
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3426
2602
|
}
|
|
3427
|
-
const message = response.message || response.Message || errorCode;
|
|
3428
|
-
response.message = message;
|
|
3429
|
-
delete response.Message;
|
|
3430
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3431
2603
|
};
|
|
3432
2604
|
const deserializeAws_restJson1GetTrustStoreCommand = async (output, context) => {
|
|
3433
2605
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3455,59 +2627,28 @@ const deserializeAws_restJson1GetTrustStoreCommandError = async (output, context
|
|
|
3455
2627
|
switch (errorCode) {
|
|
3456
2628
|
case "AccessDeniedException":
|
|
3457
2629
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3458
|
-
|
|
3459
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3460
|
-
name: errorCode,
|
|
3461
|
-
$metadata: deserializeMetadata(output),
|
|
3462
|
-
};
|
|
3463
|
-
break;
|
|
2630
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3464
2631
|
case "InternalServerException":
|
|
3465
2632
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3466
|
-
|
|
3467
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3468
|
-
name: errorCode,
|
|
3469
|
-
$metadata: deserializeMetadata(output),
|
|
3470
|
-
};
|
|
3471
|
-
break;
|
|
2633
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3472
2634
|
case "ResourceNotFoundException":
|
|
3473
2635
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3474
|
-
|
|
3475
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3476
|
-
name: errorCode,
|
|
3477
|
-
$metadata: deserializeMetadata(output),
|
|
3478
|
-
};
|
|
3479
|
-
break;
|
|
2636
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3480
2637
|
case "ThrottlingException":
|
|
3481
2638
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3482
|
-
|
|
3483
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3484
|
-
name: errorCode,
|
|
3485
|
-
$metadata: deserializeMetadata(output),
|
|
3486
|
-
};
|
|
3487
|
-
break;
|
|
2639
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3488
2640
|
case "ValidationException":
|
|
3489
2641
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3490
|
-
|
|
3491
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3492
|
-
name: errorCode,
|
|
3493
|
-
$metadata: deserializeMetadata(output),
|
|
3494
|
-
};
|
|
3495
|
-
break;
|
|
2642
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3496
2643
|
default:
|
|
3497
2644
|
const parsedBody = parsedOutput.body;
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
...parsedBody,
|
|
3501
|
-
name: `${errorCode}`,
|
|
3502
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2645
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2646
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3503
2647
|
$fault: "client",
|
|
3504
2648
|
$metadata: deserializeMetadata(output),
|
|
3505
|
-
};
|
|
2649
|
+
});
|
|
2650
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3506
2651
|
}
|
|
3507
|
-
const message = response.message || response.Message || errorCode;
|
|
3508
|
-
response.message = message;
|
|
3509
|
-
delete response.Message;
|
|
3510
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3511
2652
|
};
|
|
3512
2653
|
const deserializeAws_restJson1GetTrustStoreCertificateCommand = async (output, context) => {
|
|
3513
2654
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3539,59 +2680,28 @@ const deserializeAws_restJson1GetTrustStoreCertificateCommandError = async (outp
|
|
|
3539
2680
|
switch (errorCode) {
|
|
3540
2681
|
case "AccessDeniedException":
|
|
3541
2682
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3542
|
-
|
|
3543
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3544
|
-
name: errorCode,
|
|
3545
|
-
$metadata: deserializeMetadata(output),
|
|
3546
|
-
};
|
|
3547
|
-
break;
|
|
2683
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3548
2684
|
case "InternalServerException":
|
|
3549
2685
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3550
|
-
|
|
3551
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3552
|
-
name: errorCode,
|
|
3553
|
-
$metadata: deserializeMetadata(output),
|
|
3554
|
-
};
|
|
3555
|
-
break;
|
|
2686
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3556
2687
|
case "ResourceNotFoundException":
|
|
3557
2688
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3558
|
-
|
|
3559
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3560
|
-
name: errorCode,
|
|
3561
|
-
$metadata: deserializeMetadata(output),
|
|
3562
|
-
};
|
|
3563
|
-
break;
|
|
2689
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3564
2690
|
case "ThrottlingException":
|
|
3565
2691
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3566
|
-
|
|
3567
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3568
|
-
name: errorCode,
|
|
3569
|
-
$metadata: deserializeMetadata(output),
|
|
3570
|
-
};
|
|
3571
|
-
break;
|
|
2692
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3572
2693
|
case "ValidationException":
|
|
3573
2694
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3574
|
-
|
|
3575
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3576
|
-
name: errorCode,
|
|
3577
|
-
$metadata: deserializeMetadata(output),
|
|
3578
|
-
};
|
|
3579
|
-
break;
|
|
2695
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3580
2696
|
default:
|
|
3581
2697
|
const parsedBody = parsedOutput.body;
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
...parsedBody,
|
|
3585
|
-
name: `${errorCode}`,
|
|
3586
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2698
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2699
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3587
2700
|
$fault: "client",
|
|
3588
2701
|
$metadata: deserializeMetadata(output),
|
|
3589
|
-
};
|
|
2702
|
+
});
|
|
2703
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3590
2704
|
}
|
|
3591
|
-
const message = response.message || response.Message || errorCode;
|
|
3592
|
-
response.message = message;
|
|
3593
|
-
delete response.Message;
|
|
3594
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3595
2705
|
};
|
|
3596
2706
|
const deserializeAws_restJson1GetUserSettingsCommand = async (output, context) => {
|
|
3597
2707
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3619,59 +2729,28 @@ const deserializeAws_restJson1GetUserSettingsCommandError = async (output, conte
|
|
|
3619
2729
|
switch (errorCode) {
|
|
3620
2730
|
case "AccessDeniedException":
|
|
3621
2731
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3622
|
-
|
|
3623
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3624
|
-
name: errorCode,
|
|
3625
|
-
$metadata: deserializeMetadata(output),
|
|
3626
|
-
};
|
|
3627
|
-
break;
|
|
2732
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3628
2733
|
case "InternalServerException":
|
|
3629
2734
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3630
|
-
|
|
3631
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3632
|
-
name: errorCode,
|
|
3633
|
-
$metadata: deserializeMetadata(output),
|
|
3634
|
-
};
|
|
3635
|
-
break;
|
|
2735
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3636
2736
|
case "ResourceNotFoundException":
|
|
3637
2737
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
3638
|
-
|
|
3639
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3640
|
-
name: errorCode,
|
|
3641
|
-
$metadata: deserializeMetadata(output),
|
|
3642
|
-
};
|
|
3643
|
-
break;
|
|
2738
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3644
2739
|
case "ThrottlingException":
|
|
3645
2740
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3646
|
-
|
|
3647
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3648
|
-
name: errorCode,
|
|
3649
|
-
$metadata: deserializeMetadata(output),
|
|
3650
|
-
};
|
|
3651
|
-
break;
|
|
2741
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3652
2742
|
case "ValidationException":
|
|
3653
2743
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3654
|
-
|
|
3655
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3656
|
-
name: errorCode,
|
|
3657
|
-
$metadata: deserializeMetadata(output),
|
|
3658
|
-
};
|
|
3659
|
-
break;
|
|
2744
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3660
2745
|
default:
|
|
3661
2746
|
const parsedBody = parsedOutput.body;
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
...parsedBody,
|
|
3665
|
-
name: `${errorCode}`,
|
|
3666
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2747
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2748
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3667
2749
|
$fault: "client",
|
|
3668
2750
|
$metadata: deserializeMetadata(output),
|
|
3669
|
-
};
|
|
2751
|
+
});
|
|
2752
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3670
2753
|
}
|
|
3671
|
-
const message = response.message || response.Message || errorCode;
|
|
3672
|
-
response.message = message;
|
|
3673
|
-
delete response.Message;
|
|
3674
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3675
2754
|
};
|
|
3676
2755
|
const deserializeAws_restJson1ListBrowserSettingsCommand = async (output, context) => {
|
|
3677
2756
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3703,51 +2782,25 @@ const deserializeAws_restJson1ListBrowserSettingsCommandError = async (output, c
|
|
|
3703
2782
|
switch (errorCode) {
|
|
3704
2783
|
case "AccessDeniedException":
|
|
3705
2784
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3706
|
-
|
|
3707
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3708
|
-
name: errorCode,
|
|
3709
|
-
$metadata: deserializeMetadata(output),
|
|
3710
|
-
};
|
|
3711
|
-
break;
|
|
2785
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3712
2786
|
case "InternalServerException":
|
|
3713
2787
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3714
|
-
|
|
3715
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3716
|
-
name: errorCode,
|
|
3717
|
-
$metadata: deserializeMetadata(output),
|
|
3718
|
-
};
|
|
3719
|
-
break;
|
|
2788
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3720
2789
|
case "ThrottlingException":
|
|
3721
2790
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3722
|
-
|
|
3723
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3724
|
-
name: errorCode,
|
|
3725
|
-
$metadata: deserializeMetadata(output),
|
|
3726
|
-
};
|
|
3727
|
-
break;
|
|
2791
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3728
2792
|
case "ValidationException":
|
|
3729
2793
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3730
|
-
|
|
3731
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3732
|
-
name: errorCode,
|
|
3733
|
-
$metadata: deserializeMetadata(output),
|
|
3734
|
-
};
|
|
3735
|
-
break;
|
|
2794
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3736
2795
|
default:
|
|
3737
2796
|
const parsedBody = parsedOutput.body;
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
...parsedBody,
|
|
3741
|
-
name: `${errorCode}`,
|
|
3742
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2797
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2798
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3743
2799
|
$fault: "client",
|
|
3744
2800
|
$metadata: deserializeMetadata(output),
|
|
3745
|
-
};
|
|
2801
|
+
});
|
|
2802
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3746
2803
|
}
|
|
3747
|
-
const message = response.message || response.Message || errorCode;
|
|
3748
|
-
response.message = message;
|
|
3749
|
-
delete response.Message;
|
|
3750
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3751
2804
|
};
|
|
3752
2805
|
const deserializeAws_restJson1ListIdentityProvidersCommand = async (output, context) => {
|
|
3753
2806
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3779,51 +2832,25 @@ const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output,
|
|
|
3779
2832
|
switch (errorCode) {
|
|
3780
2833
|
case "AccessDeniedException":
|
|
3781
2834
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3782
|
-
|
|
3783
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3784
|
-
name: errorCode,
|
|
3785
|
-
$metadata: deserializeMetadata(output),
|
|
3786
|
-
};
|
|
3787
|
-
break;
|
|
2835
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3788
2836
|
case "InternalServerException":
|
|
3789
2837
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3790
|
-
|
|
3791
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3792
|
-
name: errorCode,
|
|
3793
|
-
$metadata: deserializeMetadata(output),
|
|
3794
|
-
};
|
|
3795
|
-
break;
|
|
2838
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3796
2839
|
case "ThrottlingException":
|
|
3797
2840
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3798
|
-
|
|
3799
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3800
|
-
name: errorCode,
|
|
3801
|
-
$metadata: deserializeMetadata(output),
|
|
3802
|
-
};
|
|
3803
|
-
break;
|
|
2841
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3804
2842
|
case "ValidationException":
|
|
3805
2843
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3806
|
-
|
|
3807
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3808
|
-
name: errorCode,
|
|
3809
|
-
$metadata: deserializeMetadata(output),
|
|
3810
|
-
};
|
|
3811
|
-
break;
|
|
2844
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3812
2845
|
default:
|
|
3813
2846
|
const parsedBody = parsedOutput.body;
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
...parsedBody,
|
|
3817
|
-
name: `${errorCode}`,
|
|
3818
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2847
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2848
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3819
2849
|
$fault: "client",
|
|
3820
2850
|
$metadata: deserializeMetadata(output),
|
|
3821
|
-
};
|
|
2851
|
+
});
|
|
2852
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3822
2853
|
}
|
|
3823
|
-
const message = response.message || response.Message || errorCode;
|
|
3824
|
-
response.message = message;
|
|
3825
|
-
delete response.Message;
|
|
3826
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3827
2854
|
};
|
|
3828
2855
|
const deserializeAws_restJson1ListNetworkSettingsCommand = async (output, context) => {
|
|
3829
2856
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3855,51 +2882,25 @@ const deserializeAws_restJson1ListNetworkSettingsCommandError = async (output, c
|
|
|
3855
2882
|
switch (errorCode) {
|
|
3856
2883
|
case "AccessDeniedException":
|
|
3857
2884
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3858
|
-
|
|
3859
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3860
|
-
name: errorCode,
|
|
3861
|
-
$metadata: deserializeMetadata(output),
|
|
3862
|
-
};
|
|
3863
|
-
break;
|
|
2885
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3864
2886
|
case "InternalServerException":
|
|
3865
2887
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3866
|
-
|
|
3867
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3868
|
-
name: errorCode,
|
|
3869
|
-
$metadata: deserializeMetadata(output),
|
|
3870
|
-
};
|
|
3871
|
-
break;
|
|
2888
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3872
2889
|
case "ThrottlingException":
|
|
3873
2890
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3874
|
-
|
|
3875
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3876
|
-
name: errorCode,
|
|
3877
|
-
$metadata: deserializeMetadata(output),
|
|
3878
|
-
};
|
|
3879
|
-
break;
|
|
2891
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3880
2892
|
case "ValidationException":
|
|
3881
2893
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3882
|
-
|
|
3883
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3884
|
-
name: errorCode,
|
|
3885
|
-
$metadata: deserializeMetadata(output),
|
|
3886
|
-
};
|
|
3887
|
-
break;
|
|
2894
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3888
2895
|
default:
|
|
3889
2896
|
const parsedBody = parsedOutput.body;
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
...parsedBody,
|
|
3893
|
-
name: `${errorCode}`,
|
|
3894
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2897
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2898
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3895
2899
|
$fault: "client",
|
|
3896
2900
|
$metadata: deserializeMetadata(output),
|
|
3897
|
-
};
|
|
2901
|
+
});
|
|
2902
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3898
2903
|
}
|
|
3899
|
-
const message = response.message || response.Message || errorCode;
|
|
3900
|
-
response.message = message;
|
|
3901
|
-
delete response.Message;
|
|
3902
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3903
2904
|
};
|
|
3904
2905
|
const deserializeAws_restJson1ListPortalsCommand = async (output, context) => {
|
|
3905
2906
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3931,51 +2932,25 @@ const deserializeAws_restJson1ListPortalsCommandError = async (output, context)
|
|
|
3931
2932
|
switch (errorCode) {
|
|
3932
2933
|
case "AccessDeniedException":
|
|
3933
2934
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
3934
|
-
|
|
3935
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
3936
|
-
name: errorCode,
|
|
3937
|
-
$metadata: deserializeMetadata(output),
|
|
3938
|
-
};
|
|
3939
|
-
break;
|
|
2935
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3940
2936
|
case "InternalServerException":
|
|
3941
2937
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
3942
|
-
|
|
3943
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
3944
|
-
name: errorCode,
|
|
3945
|
-
$metadata: deserializeMetadata(output),
|
|
3946
|
-
};
|
|
3947
|
-
break;
|
|
2938
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3948
2939
|
case "ThrottlingException":
|
|
3949
2940
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
3950
|
-
|
|
3951
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
3952
|
-
name: errorCode,
|
|
3953
|
-
$metadata: deserializeMetadata(output),
|
|
3954
|
-
};
|
|
3955
|
-
break;
|
|
2941
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3956
2942
|
case "ValidationException":
|
|
3957
2943
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
3958
|
-
|
|
3959
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3960
|
-
name: errorCode,
|
|
3961
|
-
$metadata: deserializeMetadata(output),
|
|
3962
|
-
};
|
|
3963
|
-
break;
|
|
2944
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3964
2945
|
default:
|
|
3965
2946
|
const parsedBody = parsedOutput.body;
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
...parsedBody,
|
|
3969
|
-
name: `${errorCode}`,
|
|
3970
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2947
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2948
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3971
2949
|
$fault: "client",
|
|
3972
2950
|
$metadata: deserializeMetadata(output),
|
|
3973
|
-
};
|
|
2951
|
+
});
|
|
2952
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3974
2953
|
}
|
|
3975
|
-
const message = response.message || response.Message || errorCode;
|
|
3976
|
-
response.message = message;
|
|
3977
|
-
delete response.Message;
|
|
3978
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3979
2954
|
};
|
|
3980
2955
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
3981
2956
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4003,59 +2978,28 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
4003
2978
|
switch (errorCode) {
|
|
4004
2979
|
case "AccessDeniedException":
|
|
4005
2980
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
4006
|
-
|
|
4007
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4008
|
-
name: errorCode,
|
|
4009
|
-
$metadata: deserializeMetadata(output),
|
|
4010
|
-
};
|
|
4011
|
-
break;
|
|
2981
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4012
2982
|
case "InternalServerException":
|
|
4013
2983
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
4014
|
-
|
|
4015
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4016
|
-
name: errorCode,
|
|
4017
|
-
$metadata: deserializeMetadata(output),
|
|
4018
|
-
};
|
|
4019
|
-
break;
|
|
2984
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4020
2985
|
case "ResourceNotFoundException":
|
|
4021
2986
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
4022
|
-
|
|
4023
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4024
|
-
name: errorCode,
|
|
4025
|
-
$metadata: deserializeMetadata(output),
|
|
4026
|
-
};
|
|
4027
|
-
break;
|
|
2987
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4028
2988
|
case "ThrottlingException":
|
|
4029
2989
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
4030
|
-
|
|
4031
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4032
|
-
name: errorCode,
|
|
4033
|
-
$metadata: deserializeMetadata(output),
|
|
4034
|
-
};
|
|
4035
|
-
break;
|
|
2990
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4036
2991
|
case "ValidationException":
|
|
4037
2992
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
4038
|
-
|
|
4039
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4040
|
-
name: errorCode,
|
|
4041
|
-
$metadata: deserializeMetadata(output),
|
|
4042
|
-
};
|
|
4043
|
-
break;
|
|
2993
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4044
2994
|
default:
|
|
4045
2995
|
const parsedBody = parsedOutput.body;
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
...parsedBody,
|
|
4049
|
-
name: `${errorCode}`,
|
|
4050
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2996
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
2997
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4051
2998
|
$fault: "client",
|
|
4052
2999
|
$metadata: deserializeMetadata(output),
|
|
4053
|
-
};
|
|
3000
|
+
});
|
|
3001
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4054
3002
|
}
|
|
4055
|
-
const message = response.message || response.Message || errorCode;
|
|
4056
|
-
response.message = message;
|
|
4057
|
-
delete response.Message;
|
|
4058
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4059
3003
|
};
|
|
4060
3004
|
const deserializeAws_restJson1ListTrustStoreCertificatesCommand = async (output, context) => {
|
|
4061
3005
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4091,59 +3035,28 @@ const deserializeAws_restJson1ListTrustStoreCertificatesCommandError = async (ou
|
|
|
4091
3035
|
switch (errorCode) {
|
|
4092
3036
|
case "AccessDeniedException":
|
|
4093
3037
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
4094
|
-
|
|
4095
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4096
|
-
name: errorCode,
|
|
4097
|
-
$metadata: deserializeMetadata(output),
|
|
4098
|
-
};
|
|
4099
|
-
break;
|
|
3038
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4100
3039
|
case "InternalServerException":
|
|
4101
3040
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
4102
|
-
|
|
4103
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4104
|
-
name: errorCode,
|
|
4105
|
-
$metadata: deserializeMetadata(output),
|
|
4106
|
-
};
|
|
4107
|
-
break;
|
|
3041
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4108
3042
|
case "ResourceNotFoundException":
|
|
4109
3043
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
4110
|
-
|
|
4111
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4112
|
-
name: errorCode,
|
|
4113
|
-
$metadata: deserializeMetadata(output),
|
|
4114
|
-
};
|
|
4115
|
-
break;
|
|
3044
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4116
3045
|
case "ThrottlingException":
|
|
4117
3046
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
4118
|
-
|
|
4119
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4120
|
-
name: errorCode,
|
|
4121
|
-
$metadata: deserializeMetadata(output),
|
|
4122
|
-
};
|
|
4123
|
-
break;
|
|
3047
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4124
3048
|
case "ValidationException":
|
|
4125
3049
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
4126
|
-
|
|
4127
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4128
|
-
name: errorCode,
|
|
4129
|
-
$metadata: deserializeMetadata(output),
|
|
4130
|
-
};
|
|
4131
|
-
break;
|
|
3050
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4132
3051
|
default:
|
|
4133
3052
|
const parsedBody = parsedOutput.body;
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
...parsedBody,
|
|
4137
|
-
name: `${errorCode}`,
|
|
4138
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3053
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3054
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4139
3055
|
$fault: "client",
|
|
4140
3056
|
$metadata: deserializeMetadata(output),
|
|
4141
|
-
};
|
|
3057
|
+
});
|
|
3058
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4142
3059
|
}
|
|
4143
|
-
const message = response.message || response.Message || errorCode;
|
|
4144
|
-
response.message = message;
|
|
4145
|
-
delete response.Message;
|
|
4146
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4147
3060
|
};
|
|
4148
3061
|
const deserializeAws_restJson1ListTrustStoresCommand = async (output, context) => {
|
|
4149
3062
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4175,51 +3088,25 @@ const deserializeAws_restJson1ListTrustStoresCommandError = async (output, conte
|
|
|
4175
3088
|
switch (errorCode) {
|
|
4176
3089
|
case "AccessDeniedException":
|
|
4177
3090
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
4178
|
-
|
|
4179
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4180
|
-
name: errorCode,
|
|
4181
|
-
$metadata: deserializeMetadata(output),
|
|
4182
|
-
};
|
|
4183
|
-
break;
|
|
3091
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4184
3092
|
case "InternalServerException":
|
|
4185
3093
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
4186
|
-
|
|
4187
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4188
|
-
name: errorCode,
|
|
4189
|
-
$metadata: deserializeMetadata(output),
|
|
4190
|
-
};
|
|
4191
|
-
break;
|
|
3094
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4192
3095
|
case "ThrottlingException":
|
|
4193
3096
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
4194
|
-
|
|
4195
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4196
|
-
name: errorCode,
|
|
4197
|
-
$metadata: deserializeMetadata(output),
|
|
4198
|
-
};
|
|
4199
|
-
break;
|
|
3097
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4200
3098
|
case "ValidationException":
|
|
4201
3099
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
4202
|
-
|
|
4203
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4204
|
-
name: errorCode,
|
|
4205
|
-
$metadata: deserializeMetadata(output),
|
|
4206
|
-
};
|
|
4207
|
-
break;
|
|
3100
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4208
3101
|
default:
|
|
4209
3102
|
const parsedBody = parsedOutput.body;
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
...parsedBody,
|
|
4213
|
-
name: `${errorCode}`,
|
|
4214
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3103
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3104
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4215
3105
|
$fault: "client",
|
|
4216
3106
|
$metadata: deserializeMetadata(output),
|
|
4217
|
-
};
|
|
3107
|
+
});
|
|
3108
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4218
3109
|
}
|
|
4219
|
-
const message = response.message || response.Message || errorCode;
|
|
4220
|
-
response.message = message;
|
|
4221
|
-
delete response.Message;
|
|
4222
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4223
3110
|
};
|
|
4224
3111
|
const deserializeAws_restJson1ListUserSettingsCommand = async (output, context) => {
|
|
4225
3112
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4251,51 +3138,25 @@ const deserializeAws_restJson1ListUserSettingsCommandError = async (output, cont
|
|
|
4251
3138
|
switch (errorCode) {
|
|
4252
3139
|
case "AccessDeniedException":
|
|
4253
3140
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
4254
|
-
|
|
4255
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4256
|
-
name: errorCode,
|
|
4257
|
-
$metadata: deserializeMetadata(output),
|
|
4258
|
-
};
|
|
4259
|
-
break;
|
|
3141
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4260
3142
|
case "InternalServerException":
|
|
4261
3143
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
4262
|
-
|
|
4263
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4264
|
-
name: errorCode,
|
|
4265
|
-
$metadata: deserializeMetadata(output),
|
|
4266
|
-
};
|
|
4267
|
-
break;
|
|
3144
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4268
3145
|
case "ThrottlingException":
|
|
4269
3146
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
4270
|
-
|
|
4271
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4272
|
-
name: errorCode,
|
|
4273
|
-
$metadata: deserializeMetadata(output),
|
|
4274
|
-
};
|
|
4275
|
-
break;
|
|
3147
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4276
3148
|
case "ValidationException":
|
|
4277
3149
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
4278
|
-
|
|
4279
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4280
|
-
name: errorCode,
|
|
4281
|
-
$metadata: deserializeMetadata(output),
|
|
4282
|
-
};
|
|
4283
|
-
break;
|
|
3150
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4284
3151
|
default:
|
|
4285
3152
|
const parsedBody = parsedOutput.body;
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
...parsedBody,
|
|
4289
|
-
name: `${errorCode}`,
|
|
4290
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3153
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3154
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4291
3155
|
$fault: "client",
|
|
4292
3156
|
$metadata: deserializeMetadata(output),
|
|
4293
|
-
};
|
|
3157
|
+
});
|
|
3158
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4294
3159
|
}
|
|
4295
|
-
const message = response.message || response.Message || errorCode;
|
|
4296
|
-
response.message = message;
|
|
4297
|
-
delete response.Message;
|
|
4298
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4299
3160
|
};
|
|
4300
3161
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
4301
3162
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4319,67 +3180,31 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4319
3180
|
switch (errorCode) {
|
|
4320
3181
|
case "AccessDeniedException":
|
|
4321
3182
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
4322
|
-
|
|
4323
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4324
|
-
name: errorCode,
|
|
4325
|
-
$metadata: deserializeMetadata(output),
|
|
4326
|
-
};
|
|
4327
|
-
break;
|
|
3183
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4328
3184
|
case "InternalServerException":
|
|
4329
3185
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
4330
|
-
|
|
4331
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4332
|
-
name: errorCode,
|
|
4333
|
-
$metadata: deserializeMetadata(output),
|
|
4334
|
-
};
|
|
4335
|
-
break;
|
|
3186
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4336
3187
|
case "ResourceNotFoundException":
|
|
4337
3188
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
4338
|
-
|
|
4339
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4340
|
-
name: errorCode,
|
|
4341
|
-
$metadata: deserializeMetadata(output),
|
|
4342
|
-
};
|
|
4343
|
-
break;
|
|
3189
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4344
3190
|
case "ThrottlingException":
|
|
4345
3191
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
4346
|
-
|
|
4347
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4348
|
-
name: errorCode,
|
|
4349
|
-
$metadata: deserializeMetadata(output),
|
|
4350
|
-
};
|
|
4351
|
-
break;
|
|
3192
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4352
3193
|
case "TooManyTagsException":
|
|
4353
3194
|
case "com.amazonaws.workspacesweb#TooManyTagsException":
|
|
4354
|
-
|
|
4355
|
-
...(await deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
4356
|
-
name: errorCode,
|
|
4357
|
-
$metadata: deserializeMetadata(output),
|
|
4358
|
-
};
|
|
4359
|
-
break;
|
|
3195
|
+
throw await deserializeAws_restJson1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
4360
3196
|
case "ValidationException":
|
|
4361
3197
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
4362
|
-
|
|
4363
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4364
|
-
name: errorCode,
|
|
4365
|
-
$metadata: deserializeMetadata(output),
|
|
4366
|
-
};
|
|
4367
|
-
break;
|
|
3198
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4368
3199
|
default:
|
|
4369
3200
|
const parsedBody = parsedOutput.body;
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
...parsedBody,
|
|
4373
|
-
name: `${errorCode}`,
|
|
4374
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3201
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3202
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4375
3203
|
$fault: "client",
|
|
4376
3204
|
$metadata: deserializeMetadata(output),
|
|
4377
|
-
};
|
|
3205
|
+
});
|
|
3206
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4378
3207
|
}
|
|
4379
|
-
const message = response.message || response.Message || errorCode;
|
|
4380
|
-
response.message = message;
|
|
4381
|
-
delete response.Message;
|
|
4382
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4383
3208
|
};
|
|
4384
3209
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
4385
3210
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4403,59 +3228,28 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4403
3228
|
switch (errorCode) {
|
|
4404
3229
|
case "AccessDeniedException":
|
|
4405
3230
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
4406
|
-
|
|
4407
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4408
|
-
name: errorCode,
|
|
4409
|
-
$metadata: deserializeMetadata(output),
|
|
4410
|
-
};
|
|
4411
|
-
break;
|
|
3231
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4412
3232
|
case "InternalServerException":
|
|
4413
3233
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
4414
|
-
|
|
4415
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4416
|
-
name: errorCode,
|
|
4417
|
-
$metadata: deserializeMetadata(output),
|
|
4418
|
-
};
|
|
4419
|
-
break;
|
|
3234
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4420
3235
|
case "ResourceNotFoundException":
|
|
4421
3236
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
4422
|
-
|
|
4423
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4424
|
-
name: errorCode,
|
|
4425
|
-
$metadata: deserializeMetadata(output),
|
|
4426
|
-
};
|
|
4427
|
-
break;
|
|
3237
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4428
3238
|
case "ThrottlingException":
|
|
4429
3239
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
4430
|
-
|
|
4431
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4432
|
-
name: errorCode,
|
|
4433
|
-
$metadata: deserializeMetadata(output),
|
|
4434
|
-
};
|
|
4435
|
-
break;
|
|
3240
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4436
3241
|
case "ValidationException":
|
|
4437
3242
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
4438
|
-
|
|
4439
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4440
|
-
name: errorCode,
|
|
4441
|
-
$metadata: deserializeMetadata(output),
|
|
4442
|
-
};
|
|
4443
|
-
break;
|
|
3243
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4444
3244
|
default:
|
|
4445
3245
|
const parsedBody = parsedOutput.body;
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
...parsedBody,
|
|
4449
|
-
name: `${errorCode}`,
|
|
4450
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3246
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3247
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4451
3248
|
$fault: "client",
|
|
4452
3249
|
$metadata: deserializeMetadata(output),
|
|
4453
|
-
};
|
|
3250
|
+
});
|
|
3251
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4454
3252
|
}
|
|
4455
|
-
const message = response.message || response.Message || errorCode;
|
|
4456
|
-
response.message = message;
|
|
4457
|
-
delete response.Message;
|
|
4458
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4459
3253
|
};
|
|
4460
3254
|
const deserializeAws_restJson1UpdateBrowserSettingsCommand = async (output, context) => {
|
|
4461
3255
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4483,59 +3277,28 @@ const deserializeAws_restJson1UpdateBrowserSettingsCommandError = async (output,
|
|
|
4483
3277
|
switch (errorCode) {
|
|
4484
3278
|
case "AccessDeniedException":
|
|
4485
3279
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
4486
|
-
|
|
4487
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4488
|
-
name: errorCode,
|
|
4489
|
-
$metadata: deserializeMetadata(output),
|
|
4490
|
-
};
|
|
4491
|
-
break;
|
|
3280
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4492
3281
|
case "InternalServerException":
|
|
4493
3282
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
4494
|
-
|
|
4495
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4496
|
-
name: errorCode,
|
|
4497
|
-
$metadata: deserializeMetadata(output),
|
|
4498
|
-
};
|
|
4499
|
-
break;
|
|
3283
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4500
3284
|
case "ResourceNotFoundException":
|
|
4501
3285
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
4502
|
-
|
|
4503
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4504
|
-
name: errorCode,
|
|
4505
|
-
$metadata: deserializeMetadata(output),
|
|
4506
|
-
};
|
|
4507
|
-
break;
|
|
3286
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4508
3287
|
case "ThrottlingException":
|
|
4509
3288
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
4510
|
-
|
|
4511
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4512
|
-
name: errorCode,
|
|
4513
|
-
$metadata: deserializeMetadata(output),
|
|
4514
|
-
};
|
|
4515
|
-
break;
|
|
3289
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4516
3290
|
case "ValidationException":
|
|
4517
3291
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
4518
|
-
|
|
4519
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4520
|
-
name: errorCode,
|
|
4521
|
-
$metadata: deserializeMetadata(output),
|
|
4522
|
-
};
|
|
4523
|
-
break;
|
|
3292
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4524
3293
|
default:
|
|
4525
3294
|
const parsedBody = parsedOutput.body;
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
...parsedBody,
|
|
4529
|
-
name: `${errorCode}`,
|
|
4530
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3295
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3296
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4531
3297
|
$fault: "client",
|
|
4532
3298
|
$metadata: deserializeMetadata(output),
|
|
4533
|
-
};
|
|
3299
|
+
});
|
|
3300
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4534
3301
|
}
|
|
4535
|
-
const message = response.message || response.Message || errorCode;
|
|
4536
|
-
response.message = message;
|
|
4537
|
-
delete response.Message;
|
|
4538
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4539
3302
|
};
|
|
4540
3303
|
const deserializeAws_restJson1UpdateIdentityProviderCommand = async (output, context) => {
|
|
4541
3304
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4563,59 +3326,28 @@ const deserializeAws_restJson1UpdateIdentityProviderCommandError = async (output
|
|
|
4563
3326
|
switch (errorCode) {
|
|
4564
3327
|
case "AccessDeniedException":
|
|
4565
3328
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
4566
|
-
|
|
4567
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4568
|
-
name: errorCode,
|
|
4569
|
-
$metadata: deserializeMetadata(output),
|
|
4570
|
-
};
|
|
4571
|
-
break;
|
|
3329
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4572
3330
|
case "InternalServerException":
|
|
4573
3331
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
4574
|
-
|
|
4575
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4576
|
-
name: errorCode,
|
|
4577
|
-
$metadata: deserializeMetadata(output),
|
|
4578
|
-
};
|
|
4579
|
-
break;
|
|
3332
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4580
3333
|
case "ResourceNotFoundException":
|
|
4581
3334
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
4582
|
-
|
|
4583
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4584
|
-
name: errorCode,
|
|
4585
|
-
$metadata: deserializeMetadata(output),
|
|
4586
|
-
};
|
|
4587
|
-
break;
|
|
3335
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4588
3336
|
case "ThrottlingException":
|
|
4589
3337
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
4590
|
-
|
|
4591
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4592
|
-
name: errorCode,
|
|
4593
|
-
$metadata: deserializeMetadata(output),
|
|
4594
|
-
};
|
|
4595
|
-
break;
|
|
3338
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4596
3339
|
case "ValidationException":
|
|
4597
3340
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
4598
|
-
|
|
4599
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4600
|
-
name: errorCode,
|
|
4601
|
-
$metadata: deserializeMetadata(output),
|
|
4602
|
-
};
|
|
4603
|
-
break;
|
|
3341
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4604
3342
|
default:
|
|
4605
3343
|
const parsedBody = parsedOutput.body;
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
...parsedBody,
|
|
4609
|
-
name: `${errorCode}`,
|
|
4610
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3344
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3345
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4611
3346
|
$fault: "client",
|
|
4612
3347
|
$metadata: deserializeMetadata(output),
|
|
4613
|
-
};
|
|
3348
|
+
});
|
|
3349
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4614
3350
|
}
|
|
4615
|
-
const message = response.message || response.Message || errorCode;
|
|
4616
|
-
response.message = message;
|
|
4617
|
-
delete response.Message;
|
|
4618
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4619
3351
|
};
|
|
4620
3352
|
const deserializeAws_restJson1UpdateNetworkSettingsCommand = async (output, context) => {
|
|
4621
3353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4643,59 +3375,28 @@ const deserializeAws_restJson1UpdateNetworkSettingsCommandError = async (output,
|
|
|
4643
3375
|
switch (errorCode) {
|
|
4644
3376
|
case "AccessDeniedException":
|
|
4645
3377
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
4646
|
-
|
|
4647
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4648
|
-
name: errorCode,
|
|
4649
|
-
$metadata: deserializeMetadata(output),
|
|
4650
|
-
};
|
|
4651
|
-
break;
|
|
3378
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4652
3379
|
case "InternalServerException":
|
|
4653
3380
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
4654
|
-
|
|
4655
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4656
|
-
name: errorCode,
|
|
4657
|
-
$metadata: deserializeMetadata(output),
|
|
4658
|
-
};
|
|
4659
|
-
break;
|
|
3381
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4660
3382
|
case "ResourceNotFoundException":
|
|
4661
3383
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
4662
|
-
|
|
4663
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4664
|
-
name: errorCode,
|
|
4665
|
-
$metadata: deserializeMetadata(output),
|
|
4666
|
-
};
|
|
4667
|
-
break;
|
|
3384
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4668
3385
|
case "ThrottlingException":
|
|
4669
3386
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
4670
|
-
|
|
4671
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4672
|
-
name: errorCode,
|
|
4673
|
-
$metadata: deserializeMetadata(output),
|
|
4674
|
-
};
|
|
4675
|
-
break;
|
|
3387
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4676
3388
|
case "ValidationException":
|
|
4677
3389
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
4678
|
-
|
|
4679
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4680
|
-
name: errorCode,
|
|
4681
|
-
$metadata: deserializeMetadata(output),
|
|
4682
|
-
};
|
|
4683
|
-
break;
|
|
3390
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4684
3391
|
default:
|
|
4685
3392
|
const parsedBody = parsedOutput.body;
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
...parsedBody,
|
|
4689
|
-
name: `${errorCode}`,
|
|
4690
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3393
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3394
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4691
3395
|
$fault: "client",
|
|
4692
3396
|
$metadata: deserializeMetadata(output),
|
|
4693
|
-
};
|
|
3397
|
+
});
|
|
3398
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4694
3399
|
}
|
|
4695
|
-
const message = response.message || response.Message || errorCode;
|
|
4696
|
-
response.message = message;
|
|
4697
|
-
delete response.Message;
|
|
4698
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4699
3400
|
};
|
|
4700
3401
|
const deserializeAws_restJson1UpdatePortalCommand = async (output, context) => {
|
|
4701
3402
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4723,59 +3424,28 @@ const deserializeAws_restJson1UpdatePortalCommandError = async (output, context)
|
|
|
4723
3424
|
switch (errorCode) {
|
|
4724
3425
|
case "AccessDeniedException":
|
|
4725
3426
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
4726
|
-
|
|
4727
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4728
|
-
name: errorCode,
|
|
4729
|
-
$metadata: deserializeMetadata(output),
|
|
4730
|
-
};
|
|
4731
|
-
break;
|
|
3427
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4732
3428
|
case "InternalServerException":
|
|
4733
3429
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
4734
|
-
|
|
4735
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4736
|
-
name: errorCode,
|
|
4737
|
-
$metadata: deserializeMetadata(output),
|
|
4738
|
-
};
|
|
4739
|
-
break;
|
|
3430
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4740
3431
|
case "ResourceNotFoundException":
|
|
4741
3432
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
4742
|
-
|
|
4743
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4744
|
-
name: errorCode,
|
|
4745
|
-
$metadata: deserializeMetadata(output),
|
|
4746
|
-
};
|
|
4747
|
-
break;
|
|
3433
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4748
3434
|
case "ThrottlingException":
|
|
4749
3435
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
4750
|
-
|
|
4751
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4752
|
-
name: errorCode,
|
|
4753
|
-
$metadata: deserializeMetadata(output),
|
|
4754
|
-
};
|
|
4755
|
-
break;
|
|
3436
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4756
3437
|
case "ValidationException":
|
|
4757
3438
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
4758
|
-
|
|
4759
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4760
|
-
name: errorCode,
|
|
4761
|
-
$metadata: deserializeMetadata(output),
|
|
4762
|
-
};
|
|
4763
|
-
break;
|
|
3439
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4764
3440
|
default:
|
|
4765
3441
|
const parsedBody = parsedOutput.body;
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
...parsedBody,
|
|
4769
|
-
name: `${errorCode}`,
|
|
4770
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3442
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3443
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4771
3444
|
$fault: "client",
|
|
4772
3445
|
$metadata: deserializeMetadata(output),
|
|
4773
|
-
};
|
|
3446
|
+
});
|
|
3447
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4774
3448
|
}
|
|
4775
|
-
const message = response.message || response.Message || errorCode;
|
|
4776
|
-
response.message = message;
|
|
4777
|
-
delete response.Message;
|
|
4778
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4779
3449
|
};
|
|
4780
3450
|
const deserializeAws_restJson1UpdateTrustStoreCommand = async (output, context) => {
|
|
4781
3451
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4803,67 +3473,31 @@ const deserializeAws_restJson1UpdateTrustStoreCommandError = async (output, cont
|
|
|
4803
3473
|
switch (errorCode) {
|
|
4804
3474
|
case "AccessDeniedException":
|
|
4805
3475
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
4806
|
-
|
|
4807
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4808
|
-
name: errorCode,
|
|
4809
|
-
$metadata: deserializeMetadata(output),
|
|
4810
|
-
};
|
|
4811
|
-
break;
|
|
3476
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4812
3477
|
case "InternalServerException":
|
|
4813
3478
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
4814
|
-
|
|
4815
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4816
|
-
name: errorCode,
|
|
4817
|
-
$metadata: deserializeMetadata(output),
|
|
4818
|
-
};
|
|
4819
|
-
break;
|
|
3479
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4820
3480
|
case "ResourceNotFoundException":
|
|
4821
3481
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
4822
|
-
|
|
4823
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4824
|
-
name: errorCode,
|
|
4825
|
-
$metadata: deserializeMetadata(output),
|
|
4826
|
-
};
|
|
4827
|
-
break;
|
|
3482
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4828
3483
|
case "ServiceQuotaExceededException":
|
|
4829
3484
|
case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
|
|
4830
|
-
|
|
4831
|
-
...(await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)),
|
|
4832
|
-
name: errorCode,
|
|
4833
|
-
$metadata: deserializeMetadata(output),
|
|
4834
|
-
};
|
|
4835
|
-
break;
|
|
3485
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
4836
3486
|
case "ThrottlingException":
|
|
4837
3487
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
4838
|
-
|
|
4839
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4840
|
-
name: errorCode,
|
|
4841
|
-
$metadata: deserializeMetadata(output),
|
|
4842
|
-
};
|
|
4843
|
-
break;
|
|
3488
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4844
3489
|
case "ValidationException":
|
|
4845
3490
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
4846
|
-
|
|
4847
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4848
|
-
name: errorCode,
|
|
4849
|
-
$metadata: deserializeMetadata(output),
|
|
4850
|
-
};
|
|
4851
|
-
break;
|
|
3491
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4852
3492
|
default:
|
|
4853
3493
|
const parsedBody = parsedOutput.body;
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
...parsedBody,
|
|
4857
|
-
name: `${errorCode}`,
|
|
4858
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3494
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3495
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4859
3496
|
$fault: "client",
|
|
4860
3497
|
$metadata: deserializeMetadata(output),
|
|
4861
|
-
};
|
|
3498
|
+
});
|
|
3499
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4862
3500
|
}
|
|
4863
|
-
const message = response.message || response.Message || errorCode;
|
|
4864
|
-
response.message = message;
|
|
4865
|
-
delete response.Message;
|
|
4866
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4867
3501
|
};
|
|
4868
3502
|
const deserializeAws_restJson1UpdateUserSettingsCommand = async (output, context) => {
|
|
4869
3503
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4891,82 +3525,43 @@ const deserializeAws_restJson1UpdateUserSettingsCommandError = async (output, co
|
|
|
4891
3525
|
switch (errorCode) {
|
|
4892
3526
|
case "AccessDeniedException":
|
|
4893
3527
|
case "com.amazonaws.workspacesweb#AccessDeniedException":
|
|
4894
|
-
|
|
4895
|
-
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4896
|
-
name: errorCode,
|
|
4897
|
-
$metadata: deserializeMetadata(output),
|
|
4898
|
-
};
|
|
4899
|
-
break;
|
|
3528
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
4900
3529
|
case "InternalServerException":
|
|
4901
3530
|
case "com.amazonaws.workspacesweb#InternalServerException":
|
|
4902
|
-
|
|
4903
|
-
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4904
|
-
name: errorCode,
|
|
4905
|
-
$metadata: deserializeMetadata(output),
|
|
4906
|
-
};
|
|
4907
|
-
break;
|
|
3531
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
4908
3532
|
case "ResourceNotFoundException":
|
|
4909
3533
|
case "com.amazonaws.workspacesweb#ResourceNotFoundException":
|
|
4910
|
-
|
|
4911
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4912
|
-
name: errorCode,
|
|
4913
|
-
$metadata: deserializeMetadata(output),
|
|
4914
|
-
};
|
|
4915
|
-
break;
|
|
3534
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4916
3535
|
case "ThrottlingException":
|
|
4917
3536
|
case "com.amazonaws.workspacesweb#ThrottlingException":
|
|
4918
|
-
|
|
4919
|
-
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
4920
|
-
name: errorCode,
|
|
4921
|
-
$metadata: deserializeMetadata(output),
|
|
4922
|
-
};
|
|
4923
|
-
break;
|
|
3537
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
4924
3538
|
case "ValidationException":
|
|
4925
3539
|
case "com.amazonaws.workspacesweb#ValidationException":
|
|
4926
|
-
|
|
4927
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4928
|
-
name: errorCode,
|
|
4929
|
-
$metadata: deserializeMetadata(output),
|
|
4930
|
-
};
|
|
4931
|
-
break;
|
|
3540
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
4932
3541
|
default:
|
|
4933
3542
|
const parsedBody = parsedOutput.body;
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
...parsedBody,
|
|
4937
|
-
name: `${errorCode}`,
|
|
4938
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3543
|
+
response = new WorkSpacesWebServiceException_1.WorkSpacesWebServiceException({
|
|
3544
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4939
3545
|
$fault: "client",
|
|
4940
3546
|
$metadata: deserializeMetadata(output),
|
|
4941
|
-
};
|
|
3547
|
+
});
|
|
3548
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4942
3549
|
}
|
|
4943
|
-
const message = response.message || response.Message || errorCode;
|
|
4944
|
-
response.message = message;
|
|
4945
|
-
delete response.Message;
|
|
4946
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4947
3550
|
};
|
|
4948
3551
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
4949
|
-
const contents = {
|
|
4950
|
-
name: "AccessDeniedException",
|
|
4951
|
-
$fault: "client",
|
|
4952
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4953
|
-
message: undefined,
|
|
4954
|
-
};
|
|
3552
|
+
const contents = {};
|
|
4955
3553
|
const data = parsedOutput.body;
|
|
4956
3554
|
if (data.message !== undefined && data.message !== null) {
|
|
4957
3555
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4958
3556
|
}
|
|
4959
|
-
|
|
3557
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
3558
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3559
|
+
...contents,
|
|
3560
|
+
});
|
|
3561
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4960
3562
|
};
|
|
4961
3563
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
4962
|
-
const contents = {
|
|
4963
|
-
name: "ConflictException",
|
|
4964
|
-
$fault: "client",
|
|
4965
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4966
|
-
message: undefined,
|
|
4967
|
-
resourceId: undefined,
|
|
4968
|
-
resourceType: undefined,
|
|
4969
|
-
};
|
|
3564
|
+
const contents = {};
|
|
4970
3565
|
const data = parsedOutput.body;
|
|
4971
3566
|
if (data.message !== undefined && data.message !== null) {
|
|
4972
3567
|
contents.message = smithy_client_1.expectString(data.message);
|
|
@@ -4977,16 +3572,14 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
4977
3572
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
4978
3573
|
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
4979
3574
|
}
|
|
4980
|
-
|
|
3575
|
+
const exception = new models_0_1.ConflictException({
|
|
3576
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3577
|
+
...contents,
|
|
3578
|
+
});
|
|
3579
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4981
3580
|
};
|
|
4982
3581
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
4983
|
-
const contents = {
|
|
4984
|
-
name: "InternalServerException",
|
|
4985
|
-
$fault: "server",
|
|
4986
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4987
|
-
message: undefined,
|
|
4988
|
-
retryAfterSeconds: undefined,
|
|
4989
|
-
};
|
|
3582
|
+
const contents = {};
|
|
4990
3583
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
4991
3584
|
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
4992
3585
|
}
|
|
@@ -4994,17 +3587,14 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
4994
3587
|
if (data.message !== undefined && data.message !== null) {
|
|
4995
3588
|
contents.message = smithy_client_1.expectString(data.message);
|
|
4996
3589
|
}
|
|
4997
|
-
|
|
3590
|
+
const exception = new models_0_1.InternalServerException({
|
|
3591
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3592
|
+
...contents,
|
|
3593
|
+
});
|
|
3594
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
4998
3595
|
};
|
|
4999
3596
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
5000
|
-
const contents = {
|
|
5001
|
-
name: "ResourceNotFoundException",
|
|
5002
|
-
$fault: "client",
|
|
5003
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
5004
|
-
message: undefined,
|
|
5005
|
-
resourceId: undefined,
|
|
5006
|
-
resourceType: undefined,
|
|
5007
|
-
};
|
|
3597
|
+
const contents = {};
|
|
5008
3598
|
const data = parsedOutput.body;
|
|
5009
3599
|
if (data.message !== undefined && data.message !== null) {
|
|
5010
3600
|
contents.message = smithy_client_1.expectString(data.message);
|
|
@@ -5015,19 +3605,14 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
5015
3605
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
5016
3606
|
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
5017
3607
|
}
|
|
5018
|
-
|
|
3608
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
3609
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3610
|
+
...contents,
|
|
3611
|
+
});
|
|
3612
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
5019
3613
|
};
|
|
5020
3614
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
5021
|
-
const contents = {
|
|
5022
|
-
name: "ServiceQuotaExceededException",
|
|
5023
|
-
$fault: "client",
|
|
5024
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
5025
|
-
message: undefined,
|
|
5026
|
-
quotaCode: undefined,
|
|
5027
|
-
resourceId: undefined,
|
|
5028
|
-
resourceType: undefined,
|
|
5029
|
-
serviceCode: undefined,
|
|
5030
|
-
};
|
|
3615
|
+
const contents = {};
|
|
5031
3616
|
const data = parsedOutput.body;
|
|
5032
3617
|
if (data.message !== undefined && data.message !== null) {
|
|
5033
3618
|
contents.message = smithy_client_1.expectString(data.message);
|
|
@@ -5044,18 +3629,14 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
5044
3629
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
5045
3630
|
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
5046
3631
|
}
|
|
5047
|
-
|
|
3632
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
3633
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3634
|
+
...contents,
|
|
3635
|
+
});
|
|
3636
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
5048
3637
|
};
|
|
5049
3638
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
5050
|
-
const contents = {
|
|
5051
|
-
name: "ThrottlingException",
|
|
5052
|
-
$fault: "client",
|
|
5053
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
5054
|
-
message: undefined,
|
|
5055
|
-
quotaCode: undefined,
|
|
5056
|
-
retryAfterSeconds: undefined,
|
|
5057
|
-
serviceCode: undefined,
|
|
5058
|
-
};
|
|
3639
|
+
const contents = {};
|
|
5059
3640
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
5060
3641
|
contents.retryAfterSeconds = smithy_client_1.strictParseInt32(parsedOutput.headers["retry-after"]);
|
|
5061
3642
|
}
|
|
@@ -5069,16 +3650,14 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
5069
3650
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
5070
3651
|
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
5071
3652
|
}
|
|
5072
|
-
|
|
3653
|
+
const exception = new models_0_1.ThrottlingException({
|
|
3654
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3655
|
+
...contents,
|
|
3656
|
+
});
|
|
3657
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
5073
3658
|
};
|
|
5074
3659
|
const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
5075
|
-
const contents = {
|
|
5076
|
-
name: "TooManyTagsException",
|
|
5077
|
-
$fault: "client",
|
|
5078
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
5079
|
-
message: undefined,
|
|
5080
|
-
resourceName: undefined,
|
|
5081
|
-
};
|
|
3660
|
+
const contents = {};
|
|
5082
3661
|
const data = parsedOutput.body;
|
|
5083
3662
|
if (data.message !== undefined && data.message !== null) {
|
|
5084
3663
|
contents.message = smithy_client_1.expectString(data.message);
|
|
@@ -5086,17 +3665,14 @@ const deserializeAws_restJson1TooManyTagsExceptionResponse = async (parsedOutput
|
|
|
5086
3665
|
if (data.resourceName !== undefined && data.resourceName !== null) {
|
|
5087
3666
|
contents.resourceName = smithy_client_1.expectString(data.resourceName);
|
|
5088
3667
|
}
|
|
5089
|
-
|
|
3668
|
+
const exception = new models_0_1.TooManyTagsException({
|
|
3669
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3670
|
+
...contents,
|
|
3671
|
+
});
|
|
3672
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
5090
3673
|
};
|
|
5091
3674
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
5092
|
-
const contents = {
|
|
5093
|
-
name: "ValidationException",
|
|
5094
|
-
$fault: "client",
|
|
5095
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
5096
|
-
fieldList: undefined,
|
|
5097
|
-
message: undefined,
|
|
5098
|
-
reason: undefined,
|
|
5099
|
-
};
|
|
3675
|
+
const contents = {};
|
|
5100
3676
|
const data = parsedOutput.body;
|
|
5101
3677
|
if (data.fieldList !== undefined && data.fieldList !== null) {
|
|
5102
3678
|
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
@@ -5107,7 +3683,11 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
5107
3683
|
if (data.reason !== undefined && data.reason !== null) {
|
|
5108
3684
|
contents.reason = smithy_client_1.expectString(data.reason);
|
|
5109
3685
|
}
|
|
5110
|
-
|
|
3686
|
+
const exception = new models_0_1.ValidationException({
|
|
3687
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3688
|
+
...contents,
|
|
3689
|
+
});
|
|
3690
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
5111
3691
|
};
|
|
5112
3692
|
const serializeAws_restJson1CertificateList = (input, context) => {
|
|
5113
3693
|
return input
|
|
@@ -5188,7 +3768,7 @@ const serializeAws_restJson1TagList = (input, context) => {
|
|
|
5188
3768
|
});
|
|
5189
3769
|
};
|
|
5190
3770
|
const deserializeAws_restJson1ArnList = (output, context) => {
|
|
5191
|
-
|
|
3771
|
+
const retVal = (output || [])
|
|
5192
3772
|
.filter((e) => e != null)
|
|
5193
3773
|
.map((entry) => {
|
|
5194
3774
|
if (entry === null) {
|
|
@@ -5196,6 +3776,7 @@ const deserializeAws_restJson1ArnList = (output, context) => {
|
|
|
5196
3776
|
}
|
|
5197
3777
|
return smithy_client_1.expectString(entry);
|
|
5198
3778
|
});
|
|
3779
|
+
return retVal;
|
|
5199
3780
|
};
|
|
5200
3781
|
const deserializeAws_restJson1BrowserSettings = (output, context) => {
|
|
5201
3782
|
return {
|
|
@@ -5207,7 +3788,7 @@ const deserializeAws_restJson1BrowserSettings = (output, context) => {
|
|
|
5207
3788
|
};
|
|
5208
3789
|
};
|
|
5209
3790
|
const deserializeAws_restJson1BrowserSettingsList = (output, context) => {
|
|
5210
|
-
|
|
3791
|
+
const retVal = (output || [])
|
|
5211
3792
|
.filter((e) => e != null)
|
|
5212
3793
|
.map((entry) => {
|
|
5213
3794
|
if (entry === null) {
|
|
@@ -5215,6 +3796,7 @@ const deserializeAws_restJson1BrowserSettingsList = (output, context) => {
|
|
|
5215
3796
|
}
|
|
5216
3797
|
return deserializeAws_restJson1BrowserSettingsSummary(entry, context);
|
|
5217
3798
|
});
|
|
3799
|
+
return retVal;
|
|
5218
3800
|
};
|
|
5219
3801
|
const deserializeAws_restJson1BrowserSettingsSummary = (output, context) => {
|
|
5220
3802
|
return {
|
|
@@ -5249,7 +3831,7 @@ const deserializeAws_restJson1CertificateSummary = (output, context) => {
|
|
|
5249
3831
|
};
|
|
5250
3832
|
};
|
|
5251
3833
|
const deserializeAws_restJson1CertificateSummaryList = (output, context) => {
|
|
5252
|
-
|
|
3834
|
+
const retVal = (output || [])
|
|
5253
3835
|
.filter((e) => e != null)
|
|
5254
3836
|
.map((entry) => {
|
|
5255
3837
|
if (entry === null) {
|
|
@@ -5257,6 +3839,7 @@ const deserializeAws_restJson1CertificateSummaryList = (output, context) => {
|
|
|
5257
3839
|
}
|
|
5258
3840
|
return deserializeAws_restJson1CertificateSummary(entry, context);
|
|
5259
3841
|
});
|
|
3842
|
+
return retVal;
|
|
5260
3843
|
};
|
|
5261
3844
|
const deserializeAws_restJson1IdentityProvider = (output, context) => {
|
|
5262
3845
|
return {
|
|
@@ -5280,7 +3863,7 @@ const deserializeAws_restJson1IdentityProviderDetails = (output, context) => {
|
|
|
5280
3863
|
}, {});
|
|
5281
3864
|
};
|
|
5282
3865
|
const deserializeAws_restJson1IdentityProviderList = (output, context) => {
|
|
5283
|
-
|
|
3866
|
+
const retVal = (output || [])
|
|
5284
3867
|
.filter((e) => e != null)
|
|
5285
3868
|
.map((entry) => {
|
|
5286
3869
|
if (entry === null) {
|
|
@@ -5288,6 +3871,7 @@ const deserializeAws_restJson1IdentityProviderList = (output, context) => {
|
|
|
5288
3871
|
}
|
|
5289
3872
|
return deserializeAws_restJson1IdentityProviderSummary(entry, context);
|
|
5290
3873
|
});
|
|
3874
|
+
return retVal;
|
|
5291
3875
|
};
|
|
5292
3876
|
const deserializeAws_restJson1IdentityProviderSummary = (output, context) => {
|
|
5293
3877
|
return {
|
|
@@ -5312,7 +3896,7 @@ const deserializeAws_restJson1NetworkSettings = (output, context) => {
|
|
|
5312
3896
|
};
|
|
5313
3897
|
};
|
|
5314
3898
|
const deserializeAws_restJson1NetworkSettingsList = (output, context) => {
|
|
5315
|
-
|
|
3899
|
+
const retVal = (output || [])
|
|
5316
3900
|
.filter((e) => e != null)
|
|
5317
3901
|
.map((entry) => {
|
|
5318
3902
|
if (entry === null) {
|
|
@@ -5320,6 +3904,7 @@ const deserializeAws_restJson1NetworkSettingsList = (output, context) => {
|
|
|
5320
3904
|
}
|
|
5321
3905
|
return deserializeAws_restJson1NetworkSettingsSummary(entry, context);
|
|
5322
3906
|
});
|
|
3907
|
+
return retVal;
|
|
5323
3908
|
};
|
|
5324
3909
|
const deserializeAws_restJson1NetworkSettingsSummary = (output, context) => {
|
|
5325
3910
|
return {
|
|
@@ -5346,7 +3931,7 @@ const deserializeAws_restJson1Portal = (output, context) => {
|
|
|
5346
3931
|
};
|
|
5347
3932
|
};
|
|
5348
3933
|
const deserializeAws_restJson1PortalList = (output, context) => {
|
|
5349
|
-
|
|
3934
|
+
const retVal = (output || [])
|
|
5350
3935
|
.filter((e) => e != null)
|
|
5351
3936
|
.map((entry) => {
|
|
5352
3937
|
if (entry === null) {
|
|
@@ -5354,6 +3939,7 @@ const deserializeAws_restJson1PortalList = (output, context) => {
|
|
|
5354
3939
|
}
|
|
5355
3940
|
return deserializeAws_restJson1PortalSummary(entry, context);
|
|
5356
3941
|
});
|
|
3942
|
+
return retVal;
|
|
5357
3943
|
};
|
|
5358
3944
|
const deserializeAws_restJson1PortalSummary = (output, context) => {
|
|
5359
3945
|
return {
|
|
@@ -5373,7 +3959,7 @@ const deserializeAws_restJson1PortalSummary = (output, context) => {
|
|
|
5373
3959
|
};
|
|
5374
3960
|
};
|
|
5375
3961
|
const deserializeAws_restJson1SecurityGroupIdList = (output, context) => {
|
|
5376
|
-
|
|
3962
|
+
const retVal = (output || [])
|
|
5377
3963
|
.filter((e) => e != null)
|
|
5378
3964
|
.map((entry) => {
|
|
5379
3965
|
if (entry === null) {
|
|
@@ -5381,9 +3967,10 @@ const deserializeAws_restJson1SecurityGroupIdList = (output, context) => {
|
|
|
5381
3967
|
}
|
|
5382
3968
|
return smithy_client_1.expectString(entry);
|
|
5383
3969
|
});
|
|
3970
|
+
return retVal;
|
|
5384
3971
|
};
|
|
5385
3972
|
const deserializeAws_restJson1SubnetIdList = (output, context) => {
|
|
5386
|
-
|
|
3973
|
+
const retVal = (output || [])
|
|
5387
3974
|
.filter((e) => e != null)
|
|
5388
3975
|
.map((entry) => {
|
|
5389
3976
|
if (entry === null) {
|
|
@@ -5391,6 +3978,7 @@ const deserializeAws_restJson1SubnetIdList = (output, context) => {
|
|
|
5391
3978
|
}
|
|
5392
3979
|
return smithy_client_1.expectString(entry);
|
|
5393
3980
|
});
|
|
3981
|
+
return retVal;
|
|
5394
3982
|
};
|
|
5395
3983
|
const deserializeAws_restJson1Tag = (output, context) => {
|
|
5396
3984
|
return {
|
|
@@ -5399,7 +3987,7 @@ const deserializeAws_restJson1Tag = (output, context) => {
|
|
|
5399
3987
|
};
|
|
5400
3988
|
};
|
|
5401
3989
|
const deserializeAws_restJson1TagList = (output, context) => {
|
|
5402
|
-
|
|
3990
|
+
const retVal = (output || [])
|
|
5403
3991
|
.filter((e) => e != null)
|
|
5404
3992
|
.map((entry) => {
|
|
5405
3993
|
if (entry === null) {
|
|
@@ -5407,6 +3995,7 @@ const deserializeAws_restJson1TagList = (output, context) => {
|
|
|
5407
3995
|
}
|
|
5408
3996
|
return deserializeAws_restJson1Tag(entry, context);
|
|
5409
3997
|
});
|
|
3998
|
+
return retVal;
|
|
5410
3999
|
};
|
|
5411
4000
|
const deserializeAws_restJson1TrustStore = (output, context) => {
|
|
5412
4001
|
return {
|
|
@@ -5422,7 +4011,7 @@ const deserializeAws_restJson1TrustStoreSummary = (output, context) => {
|
|
|
5422
4011
|
};
|
|
5423
4012
|
};
|
|
5424
4013
|
const deserializeAws_restJson1TrustStoreSummaryList = (output, context) => {
|
|
5425
|
-
|
|
4014
|
+
const retVal = (output || [])
|
|
5426
4015
|
.filter((e) => e != null)
|
|
5427
4016
|
.map((entry) => {
|
|
5428
4017
|
if (entry === null) {
|
|
@@ -5430,6 +4019,7 @@ const deserializeAws_restJson1TrustStoreSummaryList = (output, context) => {
|
|
|
5430
4019
|
}
|
|
5431
4020
|
return deserializeAws_restJson1TrustStoreSummary(entry, context);
|
|
5432
4021
|
});
|
|
4022
|
+
return retVal;
|
|
5433
4023
|
};
|
|
5434
4024
|
const deserializeAws_restJson1UserSettings = (output, context) => {
|
|
5435
4025
|
return {
|
|
@@ -5445,7 +4035,7 @@ const deserializeAws_restJson1UserSettings = (output, context) => {
|
|
|
5445
4035
|
};
|
|
5446
4036
|
};
|
|
5447
4037
|
const deserializeAws_restJson1UserSettingsList = (output, context) => {
|
|
5448
|
-
|
|
4038
|
+
const retVal = (output || [])
|
|
5449
4039
|
.filter((e) => e != null)
|
|
5450
4040
|
.map((entry) => {
|
|
5451
4041
|
if (entry === null) {
|
|
@@ -5453,6 +4043,7 @@ const deserializeAws_restJson1UserSettingsList = (output, context) => {
|
|
|
5453
4043
|
}
|
|
5454
4044
|
return deserializeAws_restJson1UserSettingsSummary(entry, context);
|
|
5455
4045
|
});
|
|
4046
|
+
return retVal;
|
|
5456
4047
|
};
|
|
5457
4048
|
const deserializeAws_restJson1UserSettingsSummary = (output, context) => {
|
|
5458
4049
|
return {
|
|
@@ -5471,7 +4062,7 @@ const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
|
5471
4062
|
};
|
|
5472
4063
|
};
|
|
5473
4064
|
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
|
|
5474
|
-
|
|
4065
|
+
const retVal = (output || [])
|
|
5475
4066
|
.filter((e) => e != null)
|
|
5476
4067
|
.map((entry) => {
|
|
5477
4068
|
if (entry === null) {
|
|
@@ -5479,6 +4070,7 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
|
|
|
5479
4070
|
}
|
|
5480
4071
|
return deserializeAws_restJson1ValidationExceptionField(entry, context);
|
|
5481
4072
|
});
|
|
4073
|
+
return retVal;
|
|
5482
4074
|
};
|
|
5483
4075
|
const deserializeMetadata = (output) => {
|
|
5484
4076
|
var _a;
|