@aws-sdk/client-workspaces-web 3.504.0 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1411,7 +1411,7 @@ var se_UpdateUserSettingsCommand = /* @__PURE__ */ __name(async (input, context)
1411
1411
  }, "se_UpdateUserSettingsCommand");
1412
1412
  var de_AssociateBrowserSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1413
1413
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1414
- return de_AssociateBrowserSettingsCommandError(output, context);
1414
+ return de_CommandError(output, context);
1415
1415
  }
1416
1416
  const contents = (0, import_smithy_client.map)({
1417
1417
  $metadata: deserializeMetadata(output)
@@ -1424,43 +1424,9 @@ var de_AssociateBrowserSettingsCommand = /* @__PURE__ */ __name(async (output, c
1424
1424
  Object.assign(contents, doc);
1425
1425
  return contents;
1426
1426
  }, "de_AssociateBrowserSettingsCommand");
1427
- var de_AssociateBrowserSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1428
- const parsedOutput = {
1429
- ...output,
1430
- body: await parseErrorBody(output.body, context)
1431
- };
1432
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1433
- switch (errorCode) {
1434
- case "AccessDeniedException":
1435
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1436
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1437
- case "ConflictException":
1438
- case "com.amazonaws.workspacesweb#ConflictException":
1439
- throw await de_ConflictExceptionRes(parsedOutput, context);
1440
- case "InternalServerException":
1441
- case "com.amazonaws.workspacesweb#InternalServerException":
1442
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1443
- case "ResourceNotFoundException":
1444
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1445
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1446
- case "ThrottlingException":
1447
- case "com.amazonaws.workspacesweb#ThrottlingException":
1448
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1449
- case "ValidationException":
1450
- case "com.amazonaws.workspacesweb#ValidationException":
1451
- throw await de_ValidationExceptionRes(parsedOutput, context);
1452
- default:
1453
- const parsedBody = parsedOutput.body;
1454
- return throwDefaultError({
1455
- output,
1456
- parsedBody,
1457
- errorCode
1458
- });
1459
- }
1460
- }, "de_AssociateBrowserSettingsCommandError");
1461
1427
  var de_AssociateIpAccessSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1462
1428
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1463
- return de_AssociateIpAccessSettingsCommandError(output, context);
1429
+ return de_CommandError(output, context);
1464
1430
  }
1465
1431
  const contents = (0, import_smithy_client.map)({
1466
1432
  $metadata: deserializeMetadata(output)
@@ -1473,43 +1439,9 @@ var de_AssociateIpAccessSettingsCommand = /* @__PURE__ */ __name(async (output,
1473
1439
  Object.assign(contents, doc);
1474
1440
  return contents;
1475
1441
  }, "de_AssociateIpAccessSettingsCommand");
1476
- var de_AssociateIpAccessSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1477
- const parsedOutput = {
1478
- ...output,
1479
- body: await parseErrorBody(output.body, context)
1480
- };
1481
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1482
- switch (errorCode) {
1483
- case "AccessDeniedException":
1484
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1485
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1486
- case "ConflictException":
1487
- case "com.amazonaws.workspacesweb#ConflictException":
1488
- throw await de_ConflictExceptionRes(parsedOutput, context);
1489
- case "InternalServerException":
1490
- case "com.amazonaws.workspacesweb#InternalServerException":
1491
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1492
- case "ResourceNotFoundException":
1493
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1494
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1495
- case "ThrottlingException":
1496
- case "com.amazonaws.workspacesweb#ThrottlingException":
1497
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1498
- case "ValidationException":
1499
- case "com.amazonaws.workspacesweb#ValidationException":
1500
- throw await de_ValidationExceptionRes(parsedOutput, context);
1501
- default:
1502
- const parsedBody = parsedOutput.body;
1503
- return throwDefaultError({
1504
- output,
1505
- parsedBody,
1506
- errorCode
1507
- });
1508
- }
1509
- }, "de_AssociateIpAccessSettingsCommandError");
1510
1442
  var de_AssociateNetworkSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1511
1443
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1512
- return de_AssociateNetworkSettingsCommandError(output, context);
1444
+ return de_CommandError(output, context);
1513
1445
  }
1514
1446
  const contents = (0, import_smithy_client.map)({
1515
1447
  $metadata: deserializeMetadata(output)
@@ -1522,43 +1454,9 @@ var de_AssociateNetworkSettingsCommand = /* @__PURE__ */ __name(async (output, c
1522
1454
  Object.assign(contents, doc);
1523
1455
  return contents;
1524
1456
  }, "de_AssociateNetworkSettingsCommand");
1525
- var de_AssociateNetworkSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1526
- const parsedOutput = {
1527
- ...output,
1528
- body: await parseErrorBody(output.body, context)
1529
- };
1530
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1531
- switch (errorCode) {
1532
- case "AccessDeniedException":
1533
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1534
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1535
- case "ConflictException":
1536
- case "com.amazonaws.workspacesweb#ConflictException":
1537
- throw await de_ConflictExceptionRes(parsedOutput, context);
1538
- case "InternalServerException":
1539
- case "com.amazonaws.workspacesweb#InternalServerException":
1540
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1541
- case "ResourceNotFoundException":
1542
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1543
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1544
- case "ThrottlingException":
1545
- case "com.amazonaws.workspacesweb#ThrottlingException":
1546
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1547
- case "ValidationException":
1548
- case "com.amazonaws.workspacesweb#ValidationException":
1549
- throw await de_ValidationExceptionRes(parsedOutput, context);
1550
- default:
1551
- const parsedBody = parsedOutput.body;
1552
- return throwDefaultError({
1553
- output,
1554
- parsedBody,
1555
- errorCode
1556
- });
1557
- }
1558
- }, "de_AssociateNetworkSettingsCommandError");
1559
1457
  var de_AssociateTrustStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
1560
1458
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1561
- return de_AssociateTrustStoreCommandError(output, context);
1459
+ return de_CommandError(output, context);
1562
1460
  }
1563
1461
  const contents = (0, import_smithy_client.map)({
1564
1462
  $metadata: deserializeMetadata(output)
@@ -1571,40 +1469,9 @@ var de_AssociateTrustStoreCommand = /* @__PURE__ */ __name(async (output, contex
1571
1469
  Object.assign(contents, doc);
1572
1470
  return contents;
1573
1471
  }, "de_AssociateTrustStoreCommand");
1574
- var de_AssociateTrustStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
1575
- const parsedOutput = {
1576
- ...output,
1577
- body: await parseErrorBody(output.body, context)
1578
- };
1579
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1580
- switch (errorCode) {
1581
- case "AccessDeniedException":
1582
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1583
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1584
- case "InternalServerException":
1585
- case "com.amazonaws.workspacesweb#InternalServerException":
1586
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1587
- case "ResourceNotFoundException":
1588
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1589
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1590
- case "ThrottlingException":
1591
- case "com.amazonaws.workspacesweb#ThrottlingException":
1592
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1593
- case "ValidationException":
1594
- case "com.amazonaws.workspacesweb#ValidationException":
1595
- throw await de_ValidationExceptionRes(parsedOutput, context);
1596
- default:
1597
- const parsedBody = parsedOutput.body;
1598
- return throwDefaultError({
1599
- output,
1600
- parsedBody,
1601
- errorCode
1602
- });
1603
- }
1604
- }, "de_AssociateTrustStoreCommandError");
1605
1472
  var de_AssociateUserAccessLoggingSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1606
1473
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1607
- return de_AssociateUserAccessLoggingSettingsCommandError(output, context);
1474
+ return de_CommandError(output, context);
1608
1475
  }
1609
1476
  const contents = (0, import_smithy_client.map)({
1610
1477
  $metadata: deserializeMetadata(output)
@@ -1617,43 +1484,9 @@ var de_AssociateUserAccessLoggingSettingsCommand = /* @__PURE__ */ __name(async
1617
1484
  Object.assign(contents, doc);
1618
1485
  return contents;
1619
1486
  }, "de_AssociateUserAccessLoggingSettingsCommand");
1620
- var de_AssociateUserAccessLoggingSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1621
- const parsedOutput = {
1622
- ...output,
1623
- body: await parseErrorBody(output.body, context)
1624
- };
1625
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1626
- switch (errorCode) {
1627
- case "AccessDeniedException":
1628
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1629
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1630
- case "ConflictException":
1631
- case "com.amazonaws.workspacesweb#ConflictException":
1632
- throw await de_ConflictExceptionRes(parsedOutput, context);
1633
- case "InternalServerException":
1634
- case "com.amazonaws.workspacesweb#InternalServerException":
1635
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1636
- case "ResourceNotFoundException":
1637
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1638
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1639
- case "ThrottlingException":
1640
- case "com.amazonaws.workspacesweb#ThrottlingException":
1641
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1642
- case "ValidationException":
1643
- case "com.amazonaws.workspacesweb#ValidationException":
1644
- throw await de_ValidationExceptionRes(parsedOutput, context);
1645
- default:
1646
- const parsedBody = parsedOutput.body;
1647
- return throwDefaultError({
1648
- output,
1649
- parsedBody,
1650
- errorCode
1651
- });
1652
- }
1653
- }, "de_AssociateUserAccessLoggingSettingsCommandError");
1654
1487
  var de_AssociateUserSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1655
1488
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1656
- return de_AssociateUserSettingsCommandError(output, context);
1489
+ return de_CommandError(output, context);
1657
1490
  }
1658
1491
  const contents = (0, import_smithy_client.map)({
1659
1492
  $metadata: deserializeMetadata(output)
@@ -1666,43 +1499,9 @@ var de_AssociateUserSettingsCommand = /* @__PURE__ */ __name(async (output, cont
1666
1499
  Object.assign(contents, doc);
1667
1500
  return contents;
1668
1501
  }, "de_AssociateUserSettingsCommand");
1669
- var de_AssociateUserSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1670
- const parsedOutput = {
1671
- ...output,
1672
- body: await parseErrorBody(output.body, context)
1673
- };
1674
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1675
- switch (errorCode) {
1676
- case "AccessDeniedException":
1677
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1678
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1679
- case "ConflictException":
1680
- case "com.amazonaws.workspacesweb#ConflictException":
1681
- throw await de_ConflictExceptionRes(parsedOutput, context);
1682
- case "InternalServerException":
1683
- case "com.amazonaws.workspacesweb#InternalServerException":
1684
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1685
- case "ResourceNotFoundException":
1686
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1687
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1688
- case "ThrottlingException":
1689
- case "com.amazonaws.workspacesweb#ThrottlingException":
1690
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1691
- case "ValidationException":
1692
- case "com.amazonaws.workspacesweb#ValidationException":
1693
- throw await de_ValidationExceptionRes(parsedOutput, context);
1694
- default:
1695
- const parsedBody = parsedOutput.body;
1696
- return throwDefaultError({
1697
- output,
1698
- parsedBody,
1699
- errorCode
1700
- });
1701
- }
1702
- }, "de_AssociateUserSettingsCommandError");
1703
1502
  var de_CreateBrowserSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1704
1503
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1705
- return de_CreateBrowserSettingsCommandError(output, context);
1504
+ return de_CommandError(output, context);
1706
1505
  }
1707
1506
  const contents = (0, import_smithy_client.map)({
1708
1507
  $metadata: deserializeMetadata(output)
@@ -1714,46 +1513,9 @@ var de_CreateBrowserSettingsCommand = /* @__PURE__ */ __name(async (output, cont
1714
1513
  Object.assign(contents, doc);
1715
1514
  return contents;
1716
1515
  }, "de_CreateBrowserSettingsCommand");
1717
- var de_CreateBrowserSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1718
- const parsedOutput = {
1719
- ...output,
1720
- body: await parseErrorBody(output.body, context)
1721
- };
1722
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1723
- switch (errorCode) {
1724
- case "AccessDeniedException":
1725
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1726
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1727
- case "ConflictException":
1728
- case "com.amazonaws.workspacesweb#ConflictException":
1729
- throw await de_ConflictExceptionRes(parsedOutput, context);
1730
- case "InternalServerException":
1731
- case "com.amazonaws.workspacesweb#InternalServerException":
1732
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1733
- case "ResourceNotFoundException":
1734
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1735
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1736
- case "ServiceQuotaExceededException":
1737
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1738
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1739
- case "ThrottlingException":
1740
- case "com.amazonaws.workspacesweb#ThrottlingException":
1741
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1742
- case "ValidationException":
1743
- case "com.amazonaws.workspacesweb#ValidationException":
1744
- throw await de_ValidationExceptionRes(parsedOutput, context);
1745
- default:
1746
- const parsedBody = parsedOutput.body;
1747
- return throwDefaultError({
1748
- output,
1749
- parsedBody,
1750
- errorCode
1751
- });
1752
- }
1753
- }, "de_CreateBrowserSettingsCommandError");
1754
1516
  var de_CreateIdentityProviderCommand = /* @__PURE__ */ __name(async (output, context) => {
1755
1517
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1756
- return de_CreateIdentityProviderCommandError(output, context);
1518
+ return de_CommandError(output, context);
1757
1519
  }
1758
1520
  const contents = (0, import_smithy_client.map)({
1759
1521
  $metadata: deserializeMetadata(output)
@@ -1765,46 +1527,9 @@ var de_CreateIdentityProviderCommand = /* @__PURE__ */ __name(async (output, con
1765
1527
  Object.assign(contents, doc);
1766
1528
  return contents;
1767
1529
  }, "de_CreateIdentityProviderCommand");
1768
- var de_CreateIdentityProviderCommandError = /* @__PURE__ */ __name(async (output, context) => {
1769
- const parsedOutput = {
1770
- ...output,
1771
- body: await parseErrorBody(output.body, context)
1772
- };
1773
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1774
- switch (errorCode) {
1775
- case "AccessDeniedException":
1776
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1777
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1778
- case "ConflictException":
1779
- case "com.amazonaws.workspacesweb#ConflictException":
1780
- throw await de_ConflictExceptionRes(parsedOutput, context);
1781
- case "InternalServerException":
1782
- case "com.amazonaws.workspacesweb#InternalServerException":
1783
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1784
- case "ResourceNotFoundException":
1785
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1786
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1787
- case "ServiceQuotaExceededException":
1788
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1789
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1790
- case "ThrottlingException":
1791
- case "com.amazonaws.workspacesweb#ThrottlingException":
1792
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1793
- case "ValidationException":
1794
- case "com.amazonaws.workspacesweb#ValidationException":
1795
- throw await de_ValidationExceptionRes(parsedOutput, context);
1796
- default:
1797
- const parsedBody = parsedOutput.body;
1798
- return throwDefaultError({
1799
- output,
1800
- parsedBody,
1801
- errorCode
1802
- });
1803
- }
1804
- }, "de_CreateIdentityProviderCommandError");
1805
1530
  var de_CreateIpAccessSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1806
1531
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1807
- return de_CreateIpAccessSettingsCommandError(output, context);
1532
+ return de_CommandError(output, context);
1808
1533
  }
1809
1534
  const contents = (0, import_smithy_client.map)({
1810
1535
  $metadata: deserializeMetadata(output)
@@ -1816,43 +1541,9 @@ var de_CreateIpAccessSettingsCommand = /* @__PURE__ */ __name(async (output, con
1816
1541
  Object.assign(contents, doc);
1817
1542
  return contents;
1818
1543
  }, "de_CreateIpAccessSettingsCommand");
1819
- var de_CreateIpAccessSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1820
- const parsedOutput = {
1821
- ...output,
1822
- body: await parseErrorBody(output.body, context)
1823
- };
1824
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1825
- switch (errorCode) {
1826
- case "AccessDeniedException":
1827
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1828
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1829
- case "ConflictException":
1830
- case "com.amazonaws.workspacesweb#ConflictException":
1831
- throw await de_ConflictExceptionRes(parsedOutput, context);
1832
- case "InternalServerException":
1833
- case "com.amazonaws.workspacesweb#InternalServerException":
1834
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1835
- case "ServiceQuotaExceededException":
1836
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1837
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1838
- case "ThrottlingException":
1839
- case "com.amazonaws.workspacesweb#ThrottlingException":
1840
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1841
- case "ValidationException":
1842
- case "com.amazonaws.workspacesweb#ValidationException":
1843
- throw await de_ValidationExceptionRes(parsedOutput, context);
1844
- default:
1845
- const parsedBody = parsedOutput.body;
1846
- return throwDefaultError({
1847
- output,
1848
- parsedBody,
1849
- errorCode
1850
- });
1851
- }
1852
- }, "de_CreateIpAccessSettingsCommandError");
1853
1544
  var de_CreateNetworkSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
1854
1545
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1855
- return de_CreateNetworkSettingsCommandError(output, context);
1546
+ return de_CommandError(output, context);
1856
1547
  }
1857
1548
  const contents = (0, import_smithy_client.map)({
1858
1549
  $metadata: deserializeMetadata(output)
@@ -1864,43 +1555,9 @@ var de_CreateNetworkSettingsCommand = /* @__PURE__ */ __name(async (output, cont
1864
1555
  Object.assign(contents, doc);
1865
1556
  return contents;
1866
1557
  }, "de_CreateNetworkSettingsCommand");
1867
- var de_CreateNetworkSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1868
- const parsedOutput = {
1869
- ...output,
1870
- body: await parseErrorBody(output.body, context)
1871
- };
1872
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1873
- switch (errorCode) {
1874
- case "AccessDeniedException":
1875
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1876
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1877
- case "ConflictException":
1878
- case "com.amazonaws.workspacesweb#ConflictException":
1879
- throw await de_ConflictExceptionRes(parsedOutput, context);
1880
- case "InternalServerException":
1881
- case "com.amazonaws.workspacesweb#InternalServerException":
1882
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1883
- case "ServiceQuotaExceededException":
1884
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1885
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1886
- case "ThrottlingException":
1887
- case "com.amazonaws.workspacesweb#ThrottlingException":
1888
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1889
- case "ValidationException":
1890
- case "com.amazonaws.workspacesweb#ValidationException":
1891
- throw await de_ValidationExceptionRes(parsedOutput, context);
1892
- default:
1893
- const parsedBody = parsedOutput.body;
1894
- return throwDefaultError({
1895
- output,
1896
- parsedBody,
1897
- errorCode
1898
- });
1899
- }
1900
- }, "de_CreateNetworkSettingsCommandError");
1901
1558
  var de_CreatePortalCommand = /* @__PURE__ */ __name(async (output, context) => {
1902
1559
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1903
- return de_CreatePortalCommandError(output, context);
1560
+ return de_CommandError(output, context);
1904
1561
  }
1905
1562
  const contents = (0, import_smithy_client.map)({
1906
1563
  $metadata: deserializeMetadata(output)
@@ -1913,46 +1570,9 @@ var de_CreatePortalCommand = /* @__PURE__ */ __name(async (output, context) => {
1913
1570
  Object.assign(contents, doc);
1914
1571
  return contents;
1915
1572
  }, "de_CreatePortalCommand");
1916
- var de_CreatePortalCommandError = /* @__PURE__ */ __name(async (output, context) => {
1917
- const parsedOutput = {
1918
- ...output,
1919
- body: await parseErrorBody(output.body, context)
1920
- };
1921
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1922
- switch (errorCode) {
1923
- case "AccessDeniedException":
1924
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1925
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1926
- case "ConflictException":
1927
- case "com.amazonaws.workspacesweb#ConflictException":
1928
- throw await de_ConflictExceptionRes(parsedOutput, context);
1929
- case "InternalServerException":
1930
- case "com.amazonaws.workspacesweb#InternalServerException":
1931
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1932
- case "ResourceNotFoundException":
1933
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
1934
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1935
- case "ServiceQuotaExceededException":
1936
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1937
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1938
- case "ThrottlingException":
1939
- case "com.amazonaws.workspacesweb#ThrottlingException":
1940
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1941
- case "ValidationException":
1942
- case "com.amazonaws.workspacesweb#ValidationException":
1943
- throw await de_ValidationExceptionRes(parsedOutput, context);
1944
- default:
1945
- const parsedBody = parsedOutput.body;
1946
- return throwDefaultError({
1947
- output,
1948
- parsedBody,
1949
- errorCode
1950
- });
1951
- }
1952
- }, "de_CreatePortalCommandError");
1953
1573
  var de_CreateTrustStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
1954
1574
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1955
- return de_CreateTrustStoreCommandError(output, context);
1575
+ return de_CommandError(output, context);
1956
1576
  }
1957
1577
  const contents = (0, import_smithy_client.map)({
1958
1578
  $metadata: deserializeMetadata(output)
@@ -1964,43 +1584,9 @@ var de_CreateTrustStoreCommand = /* @__PURE__ */ __name(async (output, context)
1964
1584
  Object.assign(contents, doc);
1965
1585
  return contents;
1966
1586
  }, "de_CreateTrustStoreCommand");
1967
- var de_CreateTrustStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
1968
- const parsedOutput = {
1969
- ...output,
1970
- body: await parseErrorBody(output.body, context)
1971
- };
1972
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1973
- switch (errorCode) {
1974
- case "AccessDeniedException":
1975
- case "com.amazonaws.workspacesweb#AccessDeniedException":
1976
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1977
- case "ConflictException":
1978
- case "com.amazonaws.workspacesweb#ConflictException":
1979
- throw await de_ConflictExceptionRes(parsedOutput, context);
1980
- case "InternalServerException":
1981
- case "com.amazonaws.workspacesweb#InternalServerException":
1982
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1983
- case "ServiceQuotaExceededException":
1984
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
1985
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1986
- case "ThrottlingException":
1987
- case "com.amazonaws.workspacesweb#ThrottlingException":
1988
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1989
- case "ValidationException":
1990
- case "com.amazonaws.workspacesweb#ValidationException":
1991
- throw await de_ValidationExceptionRes(parsedOutput, context);
1992
- default:
1993
- const parsedBody = parsedOutput.body;
1994
- return throwDefaultError({
1995
- output,
1996
- parsedBody,
1997
- errorCode
1998
- });
1999
- }
2000
- }, "de_CreateTrustStoreCommandError");
2001
1587
  var de_CreateUserAccessLoggingSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2002
1588
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2003
- return de_CreateUserAccessLoggingSettingsCommandError(output, context);
1589
+ return de_CommandError(output, context);
2004
1590
  }
2005
1591
  const contents = (0, import_smithy_client.map)({
2006
1592
  $metadata: deserializeMetadata(output)
@@ -2012,43 +1598,9 @@ var de_CreateUserAccessLoggingSettingsCommand = /* @__PURE__ */ __name(async (ou
2012
1598
  Object.assign(contents, doc);
2013
1599
  return contents;
2014
1600
  }, "de_CreateUserAccessLoggingSettingsCommand");
2015
- var de_CreateUserAccessLoggingSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2016
- const parsedOutput = {
2017
- ...output,
2018
- body: await parseErrorBody(output.body, context)
2019
- };
2020
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2021
- switch (errorCode) {
2022
- case "AccessDeniedException":
2023
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2024
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2025
- case "ConflictException":
2026
- case "com.amazonaws.workspacesweb#ConflictException":
2027
- throw await de_ConflictExceptionRes(parsedOutput, context);
2028
- case "InternalServerException":
2029
- case "com.amazonaws.workspacesweb#InternalServerException":
2030
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2031
- case "ServiceQuotaExceededException":
2032
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
2033
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2034
- case "ThrottlingException":
2035
- case "com.amazonaws.workspacesweb#ThrottlingException":
2036
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2037
- case "ValidationException":
2038
- case "com.amazonaws.workspacesweb#ValidationException":
2039
- throw await de_ValidationExceptionRes(parsedOutput, context);
2040
- default:
2041
- const parsedBody = parsedOutput.body;
2042
- return throwDefaultError({
2043
- output,
2044
- parsedBody,
2045
- errorCode
2046
- });
2047
- }
2048
- }, "de_CreateUserAccessLoggingSettingsCommandError");
2049
1601
  var de_CreateUserSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2050
1602
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2051
- return de_CreateUserSettingsCommandError(output, context);
1603
+ return de_CommandError(output, context);
2052
1604
  }
2053
1605
  const contents = (0, import_smithy_client.map)({
2054
1606
  $metadata: deserializeMetadata(output)
@@ -2060,43 +1612,9 @@ var de_CreateUserSettingsCommand = /* @__PURE__ */ __name(async (output, context
2060
1612
  Object.assign(contents, doc);
2061
1613
  return contents;
2062
1614
  }, "de_CreateUserSettingsCommand");
2063
- var de_CreateUserSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2064
- const parsedOutput = {
2065
- ...output,
2066
- body: await parseErrorBody(output.body, context)
2067
- };
2068
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2069
- switch (errorCode) {
2070
- case "AccessDeniedException":
2071
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2072
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2073
- case "ConflictException":
2074
- case "com.amazonaws.workspacesweb#ConflictException":
2075
- throw await de_ConflictExceptionRes(parsedOutput, context);
2076
- case "InternalServerException":
2077
- case "com.amazonaws.workspacesweb#InternalServerException":
2078
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2079
- case "ServiceQuotaExceededException":
2080
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
2081
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2082
- case "ThrottlingException":
2083
- case "com.amazonaws.workspacesweb#ThrottlingException":
2084
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2085
- case "ValidationException":
2086
- case "com.amazonaws.workspacesweb#ValidationException":
2087
- throw await de_ValidationExceptionRes(parsedOutput, context);
2088
- default:
2089
- const parsedBody = parsedOutput.body;
2090
- return throwDefaultError({
2091
- output,
2092
- parsedBody,
2093
- errorCode
2094
- });
2095
- }
2096
- }, "de_CreateUserSettingsCommandError");
2097
1615
  var de_DeleteBrowserSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2098
1616
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2099
- return de_DeleteBrowserSettingsCommandError(output, context);
1617
+ return de_CommandError(output, context);
2100
1618
  }
2101
1619
  const contents = (0, import_smithy_client.map)({
2102
1620
  $metadata: deserializeMetadata(output)
@@ -2104,40 +1622,9 @@ var de_DeleteBrowserSettingsCommand = /* @__PURE__ */ __name(async (output, cont
2104
1622
  await (0, import_smithy_client.collectBody)(output.body, context);
2105
1623
  return contents;
2106
1624
  }, "de_DeleteBrowserSettingsCommand");
2107
- var de_DeleteBrowserSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2108
- const parsedOutput = {
2109
- ...output,
2110
- body: await parseErrorBody(output.body, context)
2111
- };
2112
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2113
- switch (errorCode) {
2114
- case "AccessDeniedException":
2115
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2116
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2117
- case "ConflictException":
2118
- case "com.amazonaws.workspacesweb#ConflictException":
2119
- throw await de_ConflictExceptionRes(parsedOutput, context);
2120
- case "InternalServerException":
2121
- case "com.amazonaws.workspacesweb#InternalServerException":
2122
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2123
- case "ThrottlingException":
2124
- case "com.amazonaws.workspacesweb#ThrottlingException":
2125
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2126
- case "ValidationException":
2127
- case "com.amazonaws.workspacesweb#ValidationException":
2128
- throw await de_ValidationExceptionRes(parsedOutput, context);
2129
- default:
2130
- const parsedBody = parsedOutput.body;
2131
- return throwDefaultError({
2132
- output,
2133
- parsedBody,
2134
- errorCode
2135
- });
2136
- }
2137
- }, "de_DeleteBrowserSettingsCommandError");
2138
1625
  var de_DeleteIdentityProviderCommand = /* @__PURE__ */ __name(async (output, context) => {
2139
1626
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2140
- return de_DeleteIdentityProviderCommandError(output, context);
1627
+ return de_CommandError(output, context);
2141
1628
  }
2142
1629
  const contents = (0, import_smithy_client.map)({
2143
1630
  $metadata: deserializeMetadata(output)
@@ -2145,40 +1632,9 @@ var de_DeleteIdentityProviderCommand = /* @__PURE__ */ __name(async (output, con
2145
1632
  await (0, import_smithy_client.collectBody)(output.body, context);
2146
1633
  return contents;
2147
1634
  }, "de_DeleteIdentityProviderCommand");
2148
- var de_DeleteIdentityProviderCommandError = /* @__PURE__ */ __name(async (output, context) => {
2149
- const parsedOutput = {
2150
- ...output,
2151
- body: await parseErrorBody(output.body, context)
2152
- };
2153
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2154
- switch (errorCode) {
2155
- case "AccessDeniedException":
2156
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2157
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2158
- case "ConflictException":
2159
- case "com.amazonaws.workspacesweb#ConflictException":
2160
- throw await de_ConflictExceptionRes(parsedOutput, context);
2161
- case "InternalServerException":
2162
- case "com.amazonaws.workspacesweb#InternalServerException":
2163
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2164
- case "ThrottlingException":
2165
- case "com.amazonaws.workspacesweb#ThrottlingException":
2166
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2167
- case "ValidationException":
2168
- case "com.amazonaws.workspacesweb#ValidationException":
2169
- throw await de_ValidationExceptionRes(parsedOutput, context);
2170
- default:
2171
- const parsedBody = parsedOutput.body;
2172
- return throwDefaultError({
2173
- output,
2174
- parsedBody,
2175
- errorCode
2176
- });
2177
- }
2178
- }, "de_DeleteIdentityProviderCommandError");
2179
1635
  var de_DeleteIpAccessSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2180
1636
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2181
- return de_DeleteIpAccessSettingsCommandError(output, context);
1637
+ return de_CommandError(output, context);
2182
1638
  }
2183
1639
  const contents = (0, import_smithy_client.map)({
2184
1640
  $metadata: deserializeMetadata(output)
@@ -2186,40 +1642,9 @@ var de_DeleteIpAccessSettingsCommand = /* @__PURE__ */ __name(async (output, con
2186
1642
  await (0, import_smithy_client.collectBody)(output.body, context);
2187
1643
  return contents;
2188
1644
  }, "de_DeleteIpAccessSettingsCommand");
2189
- var de_DeleteIpAccessSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2190
- const parsedOutput = {
2191
- ...output,
2192
- body: await parseErrorBody(output.body, context)
2193
- };
2194
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2195
- switch (errorCode) {
2196
- case "AccessDeniedException":
2197
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2198
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2199
- case "ConflictException":
2200
- case "com.amazonaws.workspacesweb#ConflictException":
2201
- throw await de_ConflictExceptionRes(parsedOutput, context);
2202
- case "InternalServerException":
2203
- case "com.amazonaws.workspacesweb#InternalServerException":
2204
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2205
- case "ThrottlingException":
2206
- case "com.amazonaws.workspacesweb#ThrottlingException":
2207
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2208
- case "ValidationException":
2209
- case "com.amazonaws.workspacesweb#ValidationException":
2210
- throw await de_ValidationExceptionRes(parsedOutput, context);
2211
- default:
2212
- const parsedBody = parsedOutput.body;
2213
- return throwDefaultError({
2214
- output,
2215
- parsedBody,
2216
- errorCode
2217
- });
2218
- }
2219
- }, "de_DeleteIpAccessSettingsCommandError");
2220
1645
  var de_DeleteNetworkSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2221
1646
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2222
- return de_DeleteNetworkSettingsCommandError(output, context);
1647
+ return de_CommandError(output, context);
2223
1648
  }
2224
1649
  const contents = (0, import_smithy_client.map)({
2225
1650
  $metadata: deserializeMetadata(output)
@@ -2227,40 +1652,9 @@ var de_DeleteNetworkSettingsCommand = /* @__PURE__ */ __name(async (output, cont
2227
1652
  await (0, import_smithy_client.collectBody)(output.body, context);
2228
1653
  return contents;
2229
1654
  }, "de_DeleteNetworkSettingsCommand");
2230
- var de_DeleteNetworkSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2231
- const parsedOutput = {
2232
- ...output,
2233
- body: await parseErrorBody(output.body, context)
2234
- };
2235
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2236
- switch (errorCode) {
2237
- case "AccessDeniedException":
2238
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2239
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2240
- case "ConflictException":
2241
- case "com.amazonaws.workspacesweb#ConflictException":
2242
- throw await de_ConflictExceptionRes(parsedOutput, context);
2243
- case "InternalServerException":
2244
- case "com.amazonaws.workspacesweb#InternalServerException":
2245
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2246
- case "ThrottlingException":
2247
- case "com.amazonaws.workspacesweb#ThrottlingException":
2248
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2249
- case "ValidationException":
2250
- case "com.amazonaws.workspacesweb#ValidationException":
2251
- throw await de_ValidationExceptionRes(parsedOutput, context);
2252
- default:
2253
- const parsedBody = parsedOutput.body;
2254
- return throwDefaultError({
2255
- output,
2256
- parsedBody,
2257
- errorCode
2258
- });
2259
- }
2260
- }, "de_DeleteNetworkSettingsCommandError");
2261
1655
  var de_DeletePortalCommand = /* @__PURE__ */ __name(async (output, context) => {
2262
1656
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2263
- return de_DeletePortalCommandError(output, context);
1657
+ return de_CommandError(output, context);
2264
1658
  }
2265
1659
  const contents = (0, import_smithy_client.map)({
2266
1660
  $metadata: deserializeMetadata(output)
@@ -2268,40 +1662,9 @@ var de_DeletePortalCommand = /* @__PURE__ */ __name(async (output, context) => {
2268
1662
  await (0, import_smithy_client.collectBody)(output.body, context);
2269
1663
  return contents;
2270
1664
  }, "de_DeletePortalCommand");
2271
- var de_DeletePortalCommandError = /* @__PURE__ */ __name(async (output, context) => {
2272
- const parsedOutput = {
2273
- ...output,
2274
- body: await parseErrorBody(output.body, context)
2275
- };
2276
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2277
- switch (errorCode) {
2278
- case "AccessDeniedException":
2279
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2280
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2281
- case "ConflictException":
2282
- case "com.amazonaws.workspacesweb#ConflictException":
2283
- throw await de_ConflictExceptionRes(parsedOutput, context);
2284
- case "InternalServerException":
2285
- case "com.amazonaws.workspacesweb#InternalServerException":
2286
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2287
- case "ThrottlingException":
2288
- case "com.amazonaws.workspacesweb#ThrottlingException":
2289
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2290
- case "ValidationException":
2291
- case "com.amazonaws.workspacesweb#ValidationException":
2292
- throw await de_ValidationExceptionRes(parsedOutput, context);
2293
- default:
2294
- const parsedBody = parsedOutput.body;
2295
- return throwDefaultError({
2296
- output,
2297
- parsedBody,
2298
- errorCode
2299
- });
2300
- }
2301
- }, "de_DeletePortalCommandError");
2302
1665
  var de_DeleteTrustStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
2303
1666
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2304
- return de_DeleteTrustStoreCommandError(output, context);
1667
+ return de_CommandError(output, context);
2305
1668
  }
2306
1669
  const contents = (0, import_smithy_client.map)({
2307
1670
  $metadata: deserializeMetadata(output)
@@ -2309,40 +1672,9 @@ var de_DeleteTrustStoreCommand = /* @__PURE__ */ __name(async (output, context)
2309
1672
  await (0, import_smithy_client.collectBody)(output.body, context);
2310
1673
  return contents;
2311
1674
  }, "de_DeleteTrustStoreCommand");
2312
- var de_DeleteTrustStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
2313
- const parsedOutput = {
2314
- ...output,
2315
- body: await parseErrorBody(output.body, context)
2316
- };
2317
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2318
- switch (errorCode) {
2319
- case "AccessDeniedException":
2320
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2321
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2322
- case "ConflictException":
2323
- case "com.amazonaws.workspacesweb#ConflictException":
2324
- throw await de_ConflictExceptionRes(parsedOutput, context);
2325
- case "InternalServerException":
2326
- case "com.amazonaws.workspacesweb#InternalServerException":
2327
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2328
- case "ThrottlingException":
2329
- case "com.amazonaws.workspacesweb#ThrottlingException":
2330
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2331
- case "ValidationException":
2332
- case "com.amazonaws.workspacesweb#ValidationException":
2333
- throw await de_ValidationExceptionRes(parsedOutput, context);
2334
- default:
2335
- const parsedBody = parsedOutput.body;
2336
- return throwDefaultError({
2337
- output,
2338
- parsedBody,
2339
- errorCode
2340
- });
2341
- }
2342
- }, "de_DeleteTrustStoreCommandError");
2343
1675
  var de_DeleteUserAccessLoggingSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2344
1676
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2345
- return de_DeleteUserAccessLoggingSettingsCommandError(output, context);
1677
+ return de_CommandError(output, context);
2346
1678
  }
2347
1679
  const contents = (0, import_smithy_client.map)({
2348
1680
  $metadata: deserializeMetadata(output)
@@ -2350,40 +1682,9 @@ var de_DeleteUserAccessLoggingSettingsCommand = /* @__PURE__ */ __name(async (ou
2350
1682
  await (0, import_smithy_client.collectBody)(output.body, context);
2351
1683
  return contents;
2352
1684
  }, "de_DeleteUserAccessLoggingSettingsCommand");
2353
- var de_DeleteUserAccessLoggingSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2354
- const parsedOutput = {
2355
- ...output,
2356
- body: await parseErrorBody(output.body, context)
2357
- };
2358
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2359
- switch (errorCode) {
2360
- case "AccessDeniedException":
2361
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2362
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2363
- case "ConflictException":
2364
- case "com.amazonaws.workspacesweb#ConflictException":
2365
- throw await de_ConflictExceptionRes(parsedOutput, context);
2366
- case "InternalServerException":
2367
- case "com.amazonaws.workspacesweb#InternalServerException":
2368
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2369
- case "ThrottlingException":
2370
- case "com.amazonaws.workspacesweb#ThrottlingException":
2371
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2372
- case "ValidationException":
2373
- case "com.amazonaws.workspacesweb#ValidationException":
2374
- throw await de_ValidationExceptionRes(parsedOutput, context);
2375
- default:
2376
- const parsedBody = parsedOutput.body;
2377
- return throwDefaultError({
2378
- output,
2379
- parsedBody,
2380
- errorCode
2381
- });
2382
- }
2383
- }, "de_DeleteUserAccessLoggingSettingsCommandError");
2384
1685
  var de_DeleteUserSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2385
1686
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2386
- return de_DeleteUserSettingsCommandError(output, context);
1687
+ return de_CommandError(output, context);
2387
1688
  }
2388
1689
  const contents = (0, import_smithy_client.map)({
2389
1690
  $metadata: deserializeMetadata(output)
@@ -2391,40 +1692,9 @@ var de_DeleteUserSettingsCommand = /* @__PURE__ */ __name(async (output, context
2391
1692
  await (0, import_smithy_client.collectBody)(output.body, context);
2392
1693
  return contents;
2393
1694
  }, "de_DeleteUserSettingsCommand");
2394
- var de_DeleteUserSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2395
- const parsedOutput = {
2396
- ...output,
2397
- body: await parseErrorBody(output.body, context)
2398
- };
2399
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2400
- switch (errorCode) {
2401
- case "AccessDeniedException":
2402
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2403
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2404
- case "ConflictException":
2405
- case "com.amazonaws.workspacesweb#ConflictException":
2406
- throw await de_ConflictExceptionRes(parsedOutput, context);
2407
- case "InternalServerException":
2408
- case "com.amazonaws.workspacesweb#InternalServerException":
2409
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2410
- case "ThrottlingException":
2411
- case "com.amazonaws.workspacesweb#ThrottlingException":
2412
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2413
- case "ValidationException":
2414
- case "com.amazonaws.workspacesweb#ValidationException":
2415
- throw await de_ValidationExceptionRes(parsedOutput, context);
2416
- default:
2417
- const parsedBody = parsedOutput.body;
2418
- return throwDefaultError({
2419
- output,
2420
- parsedBody,
2421
- errorCode
2422
- });
2423
- }
2424
- }, "de_DeleteUserSettingsCommandError");
2425
1695
  var de_DisassociateBrowserSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2426
1696
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2427
- return de_DisassociateBrowserSettingsCommandError(output, context);
1697
+ return de_CommandError(output, context);
2428
1698
  }
2429
1699
  const contents = (0, import_smithy_client.map)({
2430
1700
  $metadata: deserializeMetadata(output)
@@ -2432,40 +1702,9 @@ var de_DisassociateBrowserSettingsCommand = /* @__PURE__ */ __name(async (output
2432
1702
  await (0, import_smithy_client.collectBody)(output.body, context);
2433
1703
  return contents;
2434
1704
  }, "de_DisassociateBrowserSettingsCommand");
2435
- var de_DisassociateBrowserSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2436
- const parsedOutput = {
2437
- ...output,
2438
- body: await parseErrorBody(output.body, context)
2439
- };
2440
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2441
- switch (errorCode) {
2442
- case "AccessDeniedException":
2443
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2444
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2445
- case "InternalServerException":
2446
- case "com.amazonaws.workspacesweb#InternalServerException":
2447
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2448
- case "ResourceNotFoundException":
2449
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2450
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2451
- case "ThrottlingException":
2452
- case "com.amazonaws.workspacesweb#ThrottlingException":
2453
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2454
- case "ValidationException":
2455
- case "com.amazonaws.workspacesweb#ValidationException":
2456
- throw await de_ValidationExceptionRes(parsedOutput, context);
2457
- default:
2458
- const parsedBody = parsedOutput.body;
2459
- return throwDefaultError({
2460
- output,
2461
- parsedBody,
2462
- errorCode
2463
- });
2464
- }
2465
- }, "de_DisassociateBrowserSettingsCommandError");
2466
1705
  var de_DisassociateIpAccessSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2467
1706
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2468
- return de_DisassociateIpAccessSettingsCommandError(output, context);
1707
+ return de_CommandError(output, context);
2469
1708
  }
2470
1709
  const contents = (0, import_smithy_client.map)({
2471
1710
  $metadata: deserializeMetadata(output)
@@ -2473,40 +1712,9 @@ var de_DisassociateIpAccessSettingsCommand = /* @__PURE__ */ __name(async (outpu
2473
1712
  await (0, import_smithy_client.collectBody)(output.body, context);
2474
1713
  return contents;
2475
1714
  }, "de_DisassociateIpAccessSettingsCommand");
2476
- var de_DisassociateIpAccessSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2477
- const parsedOutput = {
2478
- ...output,
2479
- body: await parseErrorBody(output.body, context)
2480
- };
2481
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2482
- switch (errorCode) {
2483
- case "AccessDeniedException":
2484
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2485
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2486
- case "InternalServerException":
2487
- case "com.amazonaws.workspacesweb#InternalServerException":
2488
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2489
- case "ResourceNotFoundException":
2490
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2491
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2492
- case "ThrottlingException":
2493
- case "com.amazonaws.workspacesweb#ThrottlingException":
2494
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2495
- case "ValidationException":
2496
- case "com.amazonaws.workspacesweb#ValidationException":
2497
- throw await de_ValidationExceptionRes(parsedOutput, context);
2498
- default:
2499
- const parsedBody = parsedOutput.body;
2500
- return throwDefaultError({
2501
- output,
2502
- parsedBody,
2503
- errorCode
2504
- });
2505
- }
2506
- }, "de_DisassociateIpAccessSettingsCommandError");
2507
1715
  var de_DisassociateNetworkSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2508
1716
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2509
- return de_DisassociateNetworkSettingsCommandError(output, context);
1717
+ return de_CommandError(output, context);
2510
1718
  }
2511
1719
  const contents = (0, import_smithy_client.map)({
2512
1720
  $metadata: deserializeMetadata(output)
@@ -2514,40 +1722,9 @@ var de_DisassociateNetworkSettingsCommand = /* @__PURE__ */ __name(async (output
2514
1722
  await (0, import_smithy_client.collectBody)(output.body, context);
2515
1723
  return contents;
2516
1724
  }, "de_DisassociateNetworkSettingsCommand");
2517
- var de_DisassociateNetworkSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2518
- const parsedOutput = {
2519
- ...output,
2520
- body: await parseErrorBody(output.body, context)
2521
- };
2522
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2523
- switch (errorCode) {
2524
- case "AccessDeniedException":
2525
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2526
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2527
- case "InternalServerException":
2528
- case "com.amazonaws.workspacesweb#InternalServerException":
2529
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2530
- case "ResourceNotFoundException":
2531
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2532
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2533
- case "ThrottlingException":
2534
- case "com.amazonaws.workspacesweb#ThrottlingException":
2535
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2536
- case "ValidationException":
2537
- case "com.amazonaws.workspacesweb#ValidationException":
2538
- throw await de_ValidationExceptionRes(parsedOutput, context);
2539
- default:
2540
- const parsedBody = parsedOutput.body;
2541
- return throwDefaultError({
2542
- output,
2543
- parsedBody,
2544
- errorCode
2545
- });
2546
- }
2547
- }, "de_DisassociateNetworkSettingsCommandError");
2548
1725
  var de_DisassociateTrustStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
2549
1726
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2550
- return de_DisassociateTrustStoreCommandError(output, context);
1727
+ return de_CommandError(output, context);
2551
1728
  }
2552
1729
  const contents = (0, import_smithy_client.map)({
2553
1730
  $metadata: deserializeMetadata(output)
@@ -2555,40 +1732,9 @@ var de_DisassociateTrustStoreCommand = /* @__PURE__ */ __name(async (output, con
2555
1732
  await (0, import_smithy_client.collectBody)(output.body, context);
2556
1733
  return contents;
2557
1734
  }, "de_DisassociateTrustStoreCommand");
2558
- var de_DisassociateTrustStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
2559
- const parsedOutput = {
2560
- ...output,
2561
- body: await parseErrorBody(output.body, context)
2562
- };
2563
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2564
- switch (errorCode) {
2565
- case "AccessDeniedException":
2566
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2567
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2568
- case "InternalServerException":
2569
- case "com.amazonaws.workspacesweb#InternalServerException":
2570
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2571
- case "ResourceNotFoundException":
2572
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2573
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2574
- case "ThrottlingException":
2575
- case "com.amazonaws.workspacesweb#ThrottlingException":
2576
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2577
- case "ValidationException":
2578
- case "com.amazonaws.workspacesweb#ValidationException":
2579
- throw await de_ValidationExceptionRes(parsedOutput, context);
2580
- default:
2581
- const parsedBody = parsedOutput.body;
2582
- return throwDefaultError({
2583
- output,
2584
- parsedBody,
2585
- errorCode
2586
- });
2587
- }
2588
- }, "de_DisassociateTrustStoreCommandError");
2589
1735
  var de_DisassociateUserAccessLoggingSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2590
1736
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2591
- return de_DisassociateUserAccessLoggingSettingsCommandError(output, context);
1737
+ return de_CommandError(output, context);
2592
1738
  }
2593
1739
  const contents = (0, import_smithy_client.map)({
2594
1740
  $metadata: deserializeMetadata(output)
@@ -2596,40 +1742,9 @@ var de_DisassociateUserAccessLoggingSettingsCommand = /* @__PURE__ */ __name(asy
2596
1742
  await (0, import_smithy_client.collectBody)(output.body, context);
2597
1743
  return contents;
2598
1744
  }, "de_DisassociateUserAccessLoggingSettingsCommand");
2599
- var de_DisassociateUserAccessLoggingSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2600
- const parsedOutput = {
2601
- ...output,
2602
- body: await parseErrorBody(output.body, context)
2603
- };
2604
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2605
- switch (errorCode) {
2606
- case "AccessDeniedException":
2607
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2608
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2609
- case "InternalServerException":
2610
- case "com.amazonaws.workspacesweb#InternalServerException":
2611
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2612
- case "ResourceNotFoundException":
2613
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2614
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2615
- case "ThrottlingException":
2616
- case "com.amazonaws.workspacesweb#ThrottlingException":
2617
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2618
- case "ValidationException":
2619
- case "com.amazonaws.workspacesweb#ValidationException":
2620
- throw await de_ValidationExceptionRes(parsedOutput, context);
2621
- default:
2622
- const parsedBody = parsedOutput.body;
2623
- return throwDefaultError({
2624
- output,
2625
- parsedBody,
2626
- errorCode
2627
- });
2628
- }
2629
- }, "de_DisassociateUserAccessLoggingSettingsCommandError");
2630
1745
  var de_DisassociateUserSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2631
1746
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2632
- return de_DisassociateUserSettingsCommandError(output, context);
1747
+ return de_CommandError(output, context);
2633
1748
  }
2634
1749
  const contents = (0, import_smithy_client.map)({
2635
1750
  $metadata: deserializeMetadata(output)
@@ -2637,40 +1752,9 @@ var de_DisassociateUserSettingsCommand = /* @__PURE__ */ __name(async (output, c
2637
1752
  await (0, import_smithy_client.collectBody)(output.body, context);
2638
1753
  return contents;
2639
1754
  }, "de_DisassociateUserSettingsCommand");
2640
- var de_DisassociateUserSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2641
- const parsedOutput = {
2642
- ...output,
2643
- body: await parseErrorBody(output.body, context)
2644
- };
2645
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2646
- switch (errorCode) {
2647
- case "AccessDeniedException":
2648
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2649
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2650
- case "InternalServerException":
2651
- case "com.amazonaws.workspacesweb#InternalServerException":
2652
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2653
- case "ResourceNotFoundException":
2654
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2655
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2656
- case "ThrottlingException":
2657
- case "com.amazonaws.workspacesweb#ThrottlingException":
2658
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2659
- case "ValidationException":
2660
- case "com.amazonaws.workspacesweb#ValidationException":
2661
- throw await de_ValidationExceptionRes(parsedOutput, context);
2662
- default:
2663
- const parsedBody = parsedOutput.body;
2664
- return throwDefaultError({
2665
- output,
2666
- parsedBody,
2667
- errorCode
2668
- });
2669
- }
2670
- }, "de_DisassociateUserSettingsCommandError");
2671
1755
  var de_GetBrowserSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2672
1756
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2673
- return de_GetBrowserSettingsCommandError(output, context);
1757
+ return de_CommandError(output, context);
2674
1758
  }
2675
1759
  const contents = (0, import_smithy_client.map)({
2676
1760
  $metadata: deserializeMetadata(output)
@@ -2682,40 +1766,9 @@ var de_GetBrowserSettingsCommand = /* @__PURE__ */ __name(async (output, context
2682
1766
  Object.assign(contents, doc);
2683
1767
  return contents;
2684
1768
  }, "de_GetBrowserSettingsCommand");
2685
- var de_GetBrowserSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2686
- const parsedOutput = {
2687
- ...output,
2688
- body: await parseErrorBody(output.body, context)
2689
- };
2690
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2691
- switch (errorCode) {
2692
- case "AccessDeniedException":
2693
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2694
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2695
- case "InternalServerException":
2696
- case "com.amazonaws.workspacesweb#InternalServerException":
2697
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2698
- case "ResourceNotFoundException":
2699
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2700
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2701
- case "ThrottlingException":
2702
- case "com.amazonaws.workspacesweb#ThrottlingException":
2703
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2704
- case "ValidationException":
2705
- case "com.amazonaws.workspacesweb#ValidationException":
2706
- throw await de_ValidationExceptionRes(parsedOutput, context);
2707
- default:
2708
- const parsedBody = parsedOutput.body;
2709
- return throwDefaultError({
2710
- output,
2711
- parsedBody,
2712
- errorCode
2713
- });
2714
- }
2715
- }, "de_GetBrowserSettingsCommandError");
2716
1769
  var de_GetIdentityProviderCommand = /* @__PURE__ */ __name(async (output, context) => {
2717
1770
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2718
- return de_GetIdentityProviderCommandError(output, context);
1771
+ return de_CommandError(output, context);
2719
1772
  }
2720
1773
  const contents = (0, import_smithy_client.map)({
2721
1774
  $metadata: deserializeMetadata(output)
@@ -2727,40 +1780,9 @@ var de_GetIdentityProviderCommand = /* @__PURE__ */ __name(async (output, contex
2727
1780
  Object.assign(contents, doc);
2728
1781
  return contents;
2729
1782
  }, "de_GetIdentityProviderCommand");
2730
- var de_GetIdentityProviderCommandError = /* @__PURE__ */ __name(async (output, context) => {
2731
- const parsedOutput = {
2732
- ...output,
2733
- body: await parseErrorBody(output.body, context)
2734
- };
2735
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2736
- switch (errorCode) {
2737
- case "AccessDeniedException":
2738
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2739
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2740
- case "InternalServerException":
2741
- case "com.amazonaws.workspacesweb#InternalServerException":
2742
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2743
- case "ResourceNotFoundException":
2744
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2745
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2746
- case "ThrottlingException":
2747
- case "com.amazonaws.workspacesweb#ThrottlingException":
2748
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2749
- case "ValidationException":
2750
- case "com.amazonaws.workspacesweb#ValidationException":
2751
- throw await de_ValidationExceptionRes(parsedOutput, context);
2752
- default:
2753
- const parsedBody = parsedOutput.body;
2754
- return throwDefaultError({
2755
- output,
2756
- parsedBody,
2757
- errorCode
2758
- });
2759
- }
2760
- }, "de_GetIdentityProviderCommandError");
2761
1783
  var de_GetIpAccessSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2762
1784
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2763
- return de_GetIpAccessSettingsCommandError(output, context);
1785
+ return de_CommandError(output, context);
2764
1786
  }
2765
1787
  const contents = (0, import_smithy_client.map)({
2766
1788
  $metadata: deserializeMetadata(output)
@@ -2772,40 +1794,9 @@ var de_GetIpAccessSettingsCommand = /* @__PURE__ */ __name(async (output, contex
2772
1794
  Object.assign(contents, doc);
2773
1795
  return contents;
2774
1796
  }, "de_GetIpAccessSettingsCommand");
2775
- var de_GetIpAccessSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2776
- const parsedOutput = {
2777
- ...output,
2778
- body: await parseErrorBody(output.body, context)
2779
- };
2780
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2781
- switch (errorCode) {
2782
- case "AccessDeniedException":
2783
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2784
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2785
- case "InternalServerException":
2786
- case "com.amazonaws.workspacesweb#InternalServerException":
2787
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2788
- case "ResourceNotFoundException":
2789
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2790
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2791
- case "ThrottlingException":
2792
- case "com.amazonaws.workspacesweb#ThrottlingException":
2793
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2794
- case "ValidationException":
2795
- case "com.amazonaws.workspacesweb#ValidationException":
2796
- throw await de_ValidationExceptionRes(parsedOutput, context);
2797
- default:
2798
- const parsedBody = parsedOutput.body;
2799
- return throwDefaultError({
2800
- output,
2801
- parsedBody,
2802
- errorCode
2803
- });
2804
- }
2805
- }, "de_GetIpAccessSettingsCommandError");
2806
1797
  var de_GetNetworkSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2807
1798
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2808
- return de_GetNetworkSettingsCommandError(output, context);
1799
+ return de_CommandError(output, context);
2809
1800
  }
2810
1801
  const contents = (0, import_smithy_client.map)({
2811
1802
  $metadata: deserializeMetadata(output)
@@ -2817,40 +1808,9 @@ var de_GetNetworkSettingsCommand = /* @__PURE__ */ __name(async (output, context
2817
1808
  Object.assign(contents, doc);
2818
1809
  return contents;
2819
1810
  }, "de_GetNetworkSettingsCommand");
2820
- var de_GetNetworkSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2821
- const parsedOutput = {
2822
- ...output,
2823
- body: await parseErrorBody(output.body, context)
2824
- };
2825
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2826
- switch (errorCode) {
2827
- case "AccessDeniedException":
2828
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2829
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2830
- case "InternalServerException":
2831
- case "com.amazonaws.workspacesweb#InternalServerException":
2832
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2833
- case "ResourceNotFoundException":
2834
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2835
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2836
- case "ThrottlingException":
2837
- case "com.amazonaws.workspacesweb#ThrottlingException":
2838
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2839
- case "ValidationException":
2840
- case "com.amazonaws.workspacesweb#ValidationException":
2841
- throw await de_ValidationExceptionRes(parsedOutput, context);
2842
- default:
2843
- const parsedBody = parsedOutput.body;
2844
- return throwDefaultError({
2845
- output,
2846
- parsedBody,
2847
- errorCode
2848
- });
2849
- }
2850
- }, "de_GetNetworkSettingsCommandError");
2851
1811
  var de_GetPortalCommand = /* @__PURE__ */ __name(async (output, context) => {
2852
1812
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2853
- return de_GetPortalCommandError(output, context);
1813
+ return de_CommandError(output, context);
2854
1814
  }
2855
1815
  const contents = (0, import_smithy_client.map)({
2856
1816
  $metadata: deserializeMetadata(output)
@@ -2862,40 +1822,9 @@ var de_GetPortalCommand = /* @__PURE__ */ __name(async (output, context) => {
2862
1822
  Object.assign(contents, doc);
2863
1823
  return contents;
2864
1824
  }, "de_GetPortalCommand");
2865
- var de_GetPortalCommandError = /* @__PURE__ */ __name(async (output, context) => {
2866
- const parsedOutput = {
2867
- ...output,
2868
- body: await parseErrorBody(output.body, context)
2869
- };
2870
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2871
- switch (errorCode) {
2872
- case "AccessDeniedException":
2873
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2874
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2875
- case "InternalServerException":
2876
- case "com.amazonaws.workspacesweb#InternalServerException":
2877
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2878
- case "ResourceNotFoundException":
2879
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2880
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2881
- case "ThrottlingException":
2882
- case "com.amazonaws.workspacesweb#ThrottlingException":
2883
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2884
- case "ValidationException":
2885
- case "com.amazonaws.workspacesweb#ValidationException":
2886
- throw await de_ValidationExceptionRes(parsedOutput, context);
2887
- default:
2888
- const parsedBody = parsedOutput.body;
2889
- return throwDefaultError({
2890
- output,
2891
- parsedBody,
2892
- errorCode
2893
- });
2894
- }
2895
- }, "de_GetPortalCommandError");
2896
1825
  var de_GetPortalServiceProviderMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
2897
1826
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2898
- return de_GetPortalServiceProviderMetadataCommandError(output, context);
1827
+ return de_CommandError(output, context);
2899
1828
  }
2900
1829
  const contents = (0, import_smithy_client.map)({
2901
1830
  $metadata: deserializeMetadata(output)
@@ -2908,40 +1837,9 @@ var de_GetPortalServiceProviderMetadataCommand = /* @__PURE__ */ __name(async (o
2908
1837
  Object.assign(contents, doc);
2909
1838
  return contents;
2910
1839
  }, "de_GetPortalServiceProviderMetadataCommand");
2911
- var de_GetPortalServiceProviderMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
2912
- const parsedOutput = {
2913
- ...output,
2914
- body: await parseErrorBody(output.body, context)
2915
- };
2916
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2917
- switch (errorCode) {
2918
- case "AccessDeniedException":
2919
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2920
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2921
- case "InternalServerException":
2922
- case "com.amazonaws.workspacesweb#InternalServerException":
2923
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2924
- case "ResourceNotFoundException":
2925
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2926
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2927
- case "ThrottlingException":
2928
- case "com.amazonaws.workspacesweb#ThrottlingException":
2929
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2930
- case "ValidationException":
2931
- case "com.amazonaws.workspacesweb#ValidationException":
2932
- throw await de_ValidationExceptionRes(parsedOutput, context);
2933
- default:
2934
- const parsedBody = parsedOutput.body;
2935
- return throwDefaultError({
2936
- output,
2937
- parsedBody,
2938
- errorCode
2939
- });
2940
- }
2941
- }, "de_GetPortalServiceProviderMetadataCommandError");
2942
1840
  var de_GetTrustStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
2943
1841
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2944
- return de_GetTrustStoreCommandError(output, context);
1842
+ return de_CommandError(output, context);
2945
1843
  }
2946
1844
  const contents = (0, import_smithy_client.map)({
2947
1845
  $metadata: deserializeMetadata(output)
@@ -2953,40 +1851,9 @@ var de_GetTrustStoreCommand = /* @__PURE__ */ __name(async (output, context) =>
2953
1851
  Object.assign(contents, doc);
2954
1852
  return contents;
2955
1853
  }, "de_GetTrustStoreCommand");
2956
- var de_GetTrustStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
2957
- const parsedOutput = {
2958
- ...output,
2959
- body: await parseErrorBody(output.body, context)
2960
- };
2961
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2962
- switch (errorCode) {
2963
- case "AccessDeniedException":
2964
- case "com.amazonaws.workspacesweb#AccessDeniedException":
2965
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2966
- case "InternalServerException":
2967
- case "com.amazonaws.workspacesweb#InternalServerException":
2968
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2969
- case "ResourceNotFoundException":
2970
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
2971
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2972
- case "ThrottlingException":
2973
- case "com.amazonaws.workspacesweb#ThrottlingException":
2974
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2975
- case "ValidationException":
2976
- case "com.amazonaws.workspacesweb#ValidationException":
2977
- throw await de_ValidationExceptionRes(parsedOutput, context);
2978
- default:
2979
- const parsedBody = parsedOutput.body;
2980
- return throwDefaultError({
2981
- output,
2982
- parsedBody,
2983
- errorCode
2984
- });
2985
- }
2986
- }, "de_GetTrustStoreCommandError");
2987
1854
  var de_GetTrustStoreCertificateCommand = /* @__PURE__ */ __name(async (output, context) => {
2988
1855
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2989
- return de_GetTrustStoreCertificateCommandError(output, context);
1856
+ return de_CommandError(output, context);
2990
1857
  }
2991
1858
  const contents = (0, import_smithy_client.map)({
2992
1859
  $metadata: deserializeMetadata(output)
@@ -2999,40 +1866,9 @@ var de_GetTrustStoreCertificateCommand = /* @__PURE__ */ __name(async (output, c
2999
1866
  Object.assign(contents, doc);
3000
1867
  return contents;
3001
1868
  }, "de_GetTrustStoreCertificateCommand");
3002
- var de_GetTrustStoreCertificateCommandError = /* @__PURE__ */ __name(async (output, context) => {
3003
- const parsedOutput = {
3004
- ...output,
3005
- body: await parseErrorBody(output.body, context)
3006
- };
3007
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3008
- switch (errorCode) {
3009
- case "AccessDeniedException":
3010
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3011
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3012
- case "InternalServerException":
3013
- case "com.amazonaws.workspacesweb#InternalServerException":
3014
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3015
- case "ResourceNotFoundException":
3016
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3017
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3018
- case "ThrottlingException":
3019
- case "com.amazonaws.workspacesweb#ThrottlingException":
3020
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3021
- case "ValidationException":
3022
- case "com.amazonaws.workspacesweb#ValidationException":
3023
- throw await de_ValidationExceptionRes(parsedOutput, context);
3024
- default:
3025
- const parsedBody = parsedOutput.body;
3026
- return throwDefaultError({
3027
- output,
3028
- parsedBody,
3029
- errorCode
3030
- });
3031
- }
3032
- }, "de_GetTrustStoreCertificateCommandError");
3033
1869
  var de_GetUserAccessLoggingSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3034
1870
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3035
- return de_GetUserAccessLoggingSettingsCommandError(output, context);
1871
+ return de_CommandError(output, context);
3036
1872
  }
3037
1873
  const contents = (0, import_smithy_client.map)({
3038
1874
  $metadata: deserializeMetadata(output)
@@ -3044,40 +1880,9 @@ var de_GetUserAccessLoggingSettingsCommand = /* @__PURE__ */ __name(async (outpu
3044
1880
  Object.assign(contents, doc);
3045
1881
  return contents;
3046
1882
  }, "de_GetUserAccessLoggingSettingsCommand");
3047
- var de_GetUserAccessLoggingSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3048
- const parsedOutput = {
3049
- ...output,
3050
- body: await parseErrorBody(output.body, context)
3051
- };
3052
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3053
- switch (errorCode) {
3054
- case "AccessDeniedException":
3055
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3056
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3057
- case "InternalServerException":
3058
- case "com.amazonaws.workspacesweb#InternalServerException":
3059
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3060
- case "ResourceNotFoundException":
3061
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3062
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3063
- case "ThrottlingException":
3064
- case "com.amazonaws.workspacesweb#ThrottlingException":
3065
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3066
- case "ValidationException":
3067
- case "com.amazonaws.workspacesweb#ValidationException":
3068
- throw await de_ValidationExceptionRes(parsedOutput, context);
3069
- default:
3070
- const parsedBody = parsedOutput.body;
3071
- return throwDefaultError({
3072
- output,
3073
- parsedBody,
3074
- errorCode
3075
- });
3076
- }
3077
- }, "de_GetUserAccessLoggingSettingsCommandError");
3078
1883
  var de_GetUserSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3079
1884
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3080
- return de_GetUserSettingsCommandError(output, context);
1885
+ return de_CommandError(output, context);
3081
1886
  }
3082
1887
  const contents = (0, import_smithy_client.map)({
3083
1888
  $metadata: deserializeMetadata(output)
@@ -3089,40 +1894,9 @@ var de_GetUserSettingsCommand = /* @__PURE__ */ __name(async (output, context) =
3089
1894
  Object.assign(contents, doc);
3090
1895
  return contents;
3091
1896
  }, "de_GetUserSettingsCommand");
3092
- var de_GetUserSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3093
- const parsedOutput = {
3094
- ...output,
3095
- body: await parseErrorBody(output.body, context)
3096
- };
3097
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3098
- switch (errorCode) {
3099
- case "AccessDeniedException":
3100
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3101
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3102
- case "InternalServerException":
3103
- case "com.amazonaws.workspacesweb#InternalServerException":
3104
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3105
- case "ResourceNotFoundException":
3106
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3107
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3108
- case "ThrottlingException":
3109
- case "com.amazonaws.workspacesweb#ThrottlingException":
3110
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3111
- case "ValidationException":
3112
- case "com.amazonaws.workspacesweb#ValidationException":
3113
- throw await de_ValidationExceptionRes(parsedOutput, context);
3114
- default:
3115
- const parsedBody = parsedOutput.body;
3116
- return throwDefaultError({
3117
- output,
3118
- parsedBody,
3119
- errorCode
3120
- });
3121
- }
3122
- }, "de_GetUserSettingsCommandError");
3123
1897
  var de_ListBrowserSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3124
1898
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3125
- return de_ListBrowserSettingsCommandError(output, context);
1899
+ return de_CommandError(output, context);
3126
1900
  }
3127
1901
  const contents = (0, import_smithy_client.map)({
3128
1902
  $metadata: deserializeMetadata(output)
@@ -3135,37 +1909,9 @@ var de_ListBrowserSettingsCommand = /* @__PURE__ */ __name(async (output, contex
3135
1909
  Object.assign(contents, doc);
3136
1910
  return contents;
3137
1911
  }, "de_ListBrowserSettingsCommand");
3138
- var de_ListBrowserSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3139
- const parsedOutput = {
3140
- ...output,
3141
- body: await parseErrorBody(output.body, context)
3142
- };
3143
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3144
- switch (errorCode) {
3145
- case "AccessDeniedException":
3146
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3147
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3148
- case "InternalServerException":
3149
- case "com.amazonaws.workspacesweb#InternalServerException":
3150
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3151
- case "ThrottlingException":
3152
- case "com.amazonaws.workspacesweb#ThrottlingException":
3153
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3154
- case "ValidationException":
3155
- case "com.amazonaws.workspacesweb#ValidationException":
3156
- throw await de_ValidationExceptionRes(parsedOutput, context);
3157
- default:
3158
- const parsedBody = parsedOutput.body;
3159
- return throwDefaultError({
3160
- output,
3161
- parsedBody,
3162
- errorCode
3163
- });
3164
- }
3165
- }, "de_ListBrowserSettingsCommandError");
3166
1912
  var de_ListIdentityProvidersCommand = /* @__PURE__ */ __name(async (output, context) => {
3167
1913
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3168
- return de_ListIdentityProvidersCommandError(output, context);
1914
+ return de_CommandError(output, context);
3169
1915
  }
3170
1916
  const contents = (0, import_smithy_client.map)({
3171
1917
  $metadata: deserializeMetadata(output)
@@ -3177,38 +1923,10 @@ var de_ListIdentityProvidersCommand = /* @__PURE__ */ __name(async (output, cont
3177
1923
  });
3178
1924
  Object.assign(contents, doc);
3179
1925
  return contents;
3180
- }, "de_ListIdentityProvidersCommand");
3181
- var de_ListIdentityProvidersCommandError = /* @__PURE__ */ __name(async (output, context) => {
3182
- const parsedOutput = {
3183
- ...output,
3184
- body: await parseErrorBody(output.body, context)
3185
- };
3186
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3187
- switch (errorCode) {
3188
- case "AccessDeniedException":
3189
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3190
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3191
- case "InternalServerException":
3192
- case "com.amazonaws.workspacesweb#InternalServerException":
3193
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3194
- case "ThrottlingException":
3195
- case "com.amazonaws.workspacesweb#ThrottlingException":
3196
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3197
- case "ValidationException":
3198
- case "com.amazonaws.workspacesweb#ValidationException":
3199
- throw await de_ValidationExceptionRes(parsedOutput, context);
3200
- default:
3201
- const parsedBody = parsedOutput.body;
3202
- return throwDefaultError({
3203
- output,
3204
- parsedBody,
3205
- errorCode
3206
- });
3207
- }
3208
- }, "de_ListIdentityProvidersCommandError");
1926
+ }, "de_ListIdentityProvidersCommand");
3209
1927
  var de_ListIpAccessSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3210
1928
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3211
- return de_ListIpAccessSettingsCommandError(output, context);
1929
+ return de_CommandError(output, context);
3212
1930
  }
3213
1931
  const contents = (0, import_smithy_client.map)({
3214
1932
  $metadata: deserializeMetadata(output)
@@ -3221,37 +1939,9 @@ var de_ListIpAccessSettingsCommand = /* @__PURE__ */ __name(async (output, conte
3221
1939
  Object.assign(contents, doc);
3222
1940
  return contents;
3223
1941
  }, "de_ListIpAccessSettingsCommand");
3224
- var de_ListIpAccessSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3225
- const parsedOutput = {
3226
- ...output,
3227
- body: await parseErrorBody(output.body, context)
3228
- };
3229
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3230
- switch (errorCode) {
3231
- case "AccessDeniedException":
3232
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3233
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3234
- case "InternalServerException":
3235
- case "com.amazonaws.workspacesweb#InternalServerException":
3236
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3237
- case "ThrottlingException":
3238
- case "com.amazonaws.workspacesweb#ThrottlingException":
3239
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3240
- case "ValidationException":
3241
- case "com.amazonaws.workspacesweb#ValidationException":
3242
- throw await de_ValidationExceptionRes(parsedOutput, context);
3243
- default:
3244
- const parsedBody = parsedOutput.body;
3245
- return throwDefaultError({
3246
- output,
3247
- parsedBody,
3248
- errorCode
3249
- });
3250
- }
3251
- }, "de_ListIpAccessSettingsCommandError");
3252
1942
  var de_ListNetworkSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3253
1943
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3254
- return de_ListNetworkSettingsCommandError(output, context);
1944
+ return de_CommandError(output, context);
3255
1945
  }
3256
1946
  const contents = (0, import_smithy_client.map)({
3257
1947
  $metadata: deserializeMetadata(output)
@@ -3264,37 +1954,9 @@ var de_ListNetworkSettingsCommand = /* @__PURE__ */ __name(async (output, contex
3264
1954
  Object.assign(contents, doc);
3265
1955
  return contents;
3266
1956
  }, "de_ListNetworkSettingsCommand");
3267
- var de_ListNetworkSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3268
- const parsedOutput = {
3269
- ...output,
3270
- body: await parseErrorBody(output.body, context)
3271
- };
3272
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3273
- switch (errorCode) {
3274
- case "AccessDeniedException":
3275
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3276
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3277
- case "InternalServerException":
3278
- case "com.amazonaws.workspacesweb#InternalServerException":
3279
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3280
- case "ThrottlingException":
3281
- case "com.amazonaws.workspacesweb#ThrottlingException":
3282
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3283
- case "ValidationException":
3284
- case "com.amazonaws.workspacesweb#ValidationException":
3285
- throw await de_ValidationExceptionRes(parsedOutput, context);
3286
- default:
3287
- const parsedBody = parsedOutput.body;
3288
- return throwDefaultError({
3289
- output,
3290
- parsedBody,
3291
- errorCode
3292
- });
3293
- }
3294
- }, "de_ListNetworkSettingsCommandError");
3295
1957
  var de_ListPortalsCommand = /* @__PURE__ */ __name(async (output, context) => {
3296
1958
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3297
- return de_ListPortalsCommandError(output, context);
1959
+ return de_CommandError(output, context);
3298
1960
  }
3299
1961
  const contents = (0, import_smithy_client.map)({
3300
1962
  $metadata: deserializeMetadata(output)
@@ -3307,37 +1969,9 @@ var de_ListPortalsCommand = /* @__PURE__ */ __name(async (output, context) => {
3307
1969
  Object.assign(contents, doc);
3308
1970
  return contents;
3309
1971
  }, "de_ListPortalsCommand");
3310
- var de_ListPortalsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3311
- const parsedOutput = {
3312
- ...output,
3313
- body: await parseErrorBody(output.body, context)
3314
- };
3315
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3316
- switch (errorCode) {
3317
- case "AccessDeniedException":
3318
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3319
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3320
- case "InternalServerException":
3321
- case "com.amazonaws.workspacesweb#InternalServerException":
3322
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3323
- case "ThrottlingException":
3324
- case "com.amazonaws.workspacesweb#ThrottlingException":
3325
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3326
- case "ValidationException":
3327
- case "com.amazonaws.workspacesweb#ValidationException":
3328
- throw await de_ValidationExceptionRes(parsedOutput, context);
3329
- default:
3330
- const parsedBody = parsedOutput.body;
3331
- return throwDefaultError({
3332
- output,
3333
- parsedBody,
3334
- errorCode
3335
- });
3336
- }
3337
- }, "de_ListPortalsCommandError");
3338
1972
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3339
1973
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3340
- return de_ListTagsForResourceCommandError(output, context);
1974
+ return de_CommandError(output, context);
3341
1975
  }
3342
1976
  const contents = (0, import_smithy_client.map)({
3343
1977
  $metadata: deserializeMetadata(output)
@@ -3349,40 +1983,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
3349
1983
  Object.assign(contents, doc);
3350
1984
  return contents;
3351
1985
  }, "de_ListTagsForResourceCommand");
3352
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3353
- const parsedOutput = {
3354
- ...output,
3355
- body: await parseErrorBody(output.body, context)
3356
- };
3357
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3358
- switch (errorCode) {
3359
- case "AccessDeniedException":
3360
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3361
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3362
- case "InternalServerException":
3363
- case "com.amazonaws.workspacesweb#InternalServerException":
3364
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3365
- case "ResourceNotFoundException":
3366
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3367
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3368
- case "ThrottlingException":
3369
- case "com.amazonaws.workspacesweb#ThrottlingException":
3370
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3371
- case "ValidationException":
3372
- case "com.amazonaws.workspacesweb#ValidationException":
3373
- throw await de_ValidationExceptionRes(parsedOutput, context);
3374
- default:
3375
- const parsedBody = parsedOutput.body;
3376
- return throwDefaultError({
3377
- output,
3378
- parsedBody,
3379
- errorCode
3380
- });
3381
- }
3382
- }, "de_ListTagsForResourceCommandError");
3383
1986
  var de_ListTrustStoreCertificatesCommand = /* @__PURE__ */ __name(async (output, context) => {
3384
1987
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3385
- return de_ListTrustStoreCertificatesCommandError(output, context);
1988
+ return de_CommandError(output, context);
3386
1989
  }
3387
1990
  const contents = (0, import_smithy_client.map)({
3388
1991
  $metadata: deserializeMetadata(output)
@@ -3396,40 +1999,9 @@ var de_ListTrustStoreCertificatesCommand = /* @__PURE__ */ __name(async (output,
3396
1999
  Object.assign(contents, doc);
3397
2000
  return contents;
3398
2001
  }, "de_ListTrustStoreCertificatesCommand");
3399
- var de_ListTrustStoreCertificatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3400
- const parsedOutput = {
3401
- ...output,
3402
- body: await parseErrorBody(output.body, context)
3403
- };
3404
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3405
- switch (errorCode) {
3406
- case "AccessDeniedException":
3407
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3408
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3409
- case "InternalServerException":
3410
- case "com.amazonaws.workspacesweb#InternalServerException":
3411
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3412
- case "ResourceNotFoundException":
3413
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3414
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3415
- case "ThrottlingException":
3416
- case "com.amazonaws.workspacesweb#ThrottlingException":
3417
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3418
- case "ValidationException":
3419
- case "com.amazonaws.workspacesweb#ValidationException":
3420
- throw await de_ValidationExceptionRes(parsedOutput, context);
3421
- default:
3422
- const parsedBody = parsedOutput.body;
3423
- return throwDefaultError({
3424
- output,
3425
- parsedBody,
3426
- errorCode
3427
- });
3428
- }
3429
- }, "de_ListTrustStoreCertificatesCommandError");
3430
2002
  var de_ListTrustStoresCommand = /* @__PURE__ */ __name(async (output, context) => {
3431
2003
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3432
- return de_ListTrustStoresCommandError(output, context);
2004
+ return de_CommandError(output, context);
3433
2005
  }
3434
2006
  const contents = (0, import_smithy_client.map)({
3435
2007
  $metadata: deserializeMetadata(output)
@@ -3442,37 +2014,9 @@ var de_ListTrustStoresCommand = /* @__PURE__ */ __name(async (output, context) =
3442
2014
  Object.assign(contents, doc);
3443
2015
  return contents;
3444
2016
  }, "de_ListTrustStoresCommand");
3445
- var de_ListTrustStoresCommandError = /* @__PURE__ */ __name(async (output, context) => {
3446
- const parsedOutput = {
3447
- ...output,
3448
- body: await parseErrorBody(output.body, context)
3449
- };
3450
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3451
- switch (errorCode) {
3452
- case "AccessDeniedException":
3453
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3454
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3455
- case "InternalServerException":
3456
- case "com.amazonaws.workspacesweb#InternalServerException":
3457
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3458
- case "ThrottlingException":
3459
- case "com.amazonaws.workspacesweb#ThrottlingException":
3460
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3461
- case "ValidationException":
3462
- case "com.amazonaws.workspacesweb#ValidationException":
3463
- throw await de_ValidationExceptionRes(parsedOutput, context);
3464
- default:
3465
- const parsedBody = parsedOutput.body;
3466
- return throwDefaultError({
3467
- output,
3468
- parsedBody,
3469
- errorCode
3470
- });
3471
- }
3472
- }, "de_ListTrustStoresCommandError");
3473
2017
  var de_ListUserAccessLoggingSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3474
2018
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3475
- return de_ListUserAccessLoggingSettingsCommandError(output, context);
2019
+ return de_CommandError(output, context);
3476
2020
  }
3477
2021
  const contents = (0, import_smithy_client.map)({
3478
2022
  $metadata: deserializeMetadata(output)
@@ -3485,37 +2029,9 @@ var de_ListUserAccessLoggingSettingsCommand = /* @__PURE__ */ __name(async (outp
3485
2029
  Object.assign(contents, doc);
3486
2030
  return contents;
3487
2031
  }, "de_ListUserAccessLoggingSettingsCommand");
3488
- var de_ListUserAccessLoggingSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3489
- const parsedOutput = {
3490
- ...output,
3491
- body: await parseErrorBody(output.body, context)
3492
- };
3493
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3494
- switch (errorCode) {
3495
- case "AccessDeniedException":
3496
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3497
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3498
- case "InternalServerException":
3499
- case "com.amazonaws.workspacesweb#InternalServerException":
3500
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3501
- case "ThrottlingException":
3502
- case "com.amazonaws.workspacesweb#ThrottlingException":
3503
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3504
- case "ValidationException":
3505
- case "com.amazonaws.workspacesweb#ValidationException":
3506
- throw await de_ValidationExceptionRes(parsedOutput, context);
3507
- default:
3508
- const parsedBody = parsedOutput.body;
3509
- return throwDefaultError({
3510
- output,
3511
- parsedBody,
3512
- errorCode
3513
- });
3514
- }
3515
- }, "de_ListUserAccessLoggingSettingsCommandError");
3516
2032
  var de_ListUserSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3517
2033
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3518
- return de_ListUserSettingsCommandError(output, context);
2034
+ return de_CommandError(output, context);
3519
2035
  }
3520
2036
  const contents = (0, import_smithy_client.map)({
3521
2037
  $metadata: deserializeMetadata(output)
@@ -3527,82 +2043,20 @@ var de_ListUserSettingsCommand = /* @__PURE__ */ __name(async (output, context)
3527
2043
  });
3528
2044
  Object.assign(contents, doc);
3529
2045
  return contents;
3530
- }, "de_ListUserSettingsCommand");
3531
- var de_ListUserSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3532
- const parsedOutput = {
3533
- ...output,
3534
- body: await parseErrorBody(output.body, context)
3535
- };
3536
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3537
- switch (errorCode) {
3538
- case "AccessDeniedException":
3539
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3540
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3541
- case "InternalServerException":
3542
- case "com.amazonaws.workspacesweb#InternalServerException":
3543
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3544
- case "ThrottlingException":
3545
- case "com.amazonaws.workspacesweb#ThrottlingException":
3546
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3547
- case "ValidationException":
3548
- case "com.amazonaws.workspacesweb#ValidationException":
3549
- throw await de_ValidationExceptionRes(parsedOutput, context);
3550
- default:
3551
- const parsedBody = parsedOutput.body;
3552
- return throwDefaultError({
3553
- output,
3554
- parsedBody,
3555
- errorCode
3556
- });
3557
- }
3558
- }, "de_ListUserSettingsCommandError");
3559
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3560
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3561
- return de_TagResourceCommandError(output, context);
3562
- }
3563
- const contents = (0, import_smithy_client.map)({
3564
- $metadata: deserializeMetadata(output)
3565
- });
3566
- await (0, import_smithy_client.collectBody)(output.body, context);
3567
- return contents;
3568
- }, "de_TagResourceCommand");
3569
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3570
- const parsedOutput = {
3571
- ...output,
3572
- body: await parseErrorBody(output.body, context)
3573
- };
3574
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3575
- switch (errorCode) {
3576
- case "AccessDeniedException":
3577
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3578
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3579
- case "InternalServerException":
3580
- case "com.amazonaws.workspacesweb#InternalServerException":
3581
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3582
- case "ResourceNotFoundException":
3583
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3584
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3585
- case "ThrottlingException":
3586
- case "com.amazonaws.workspacesweb#ThrottlingException":
3587
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3588
- case "TooManyTagsException":
3589
- case "com.amazonaws.workspacesweb#TooManyTagsException":
3590
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
3591
- case "ValidationException":
3592
- case "com.amazonaws.workspacesweb#ValidationException":
3593
- throw await de_ValidationExceptionRes(parsedOutput, context);
3594
- default:
3595
- const parsedBody = parsedOutput.body;
3596
- return throwDefaultError({
3597
- output,
3598
- parsedBody,
3599
- errorCode
3600
- });
2046
+ }, "de_ListUserSettingsCommand");
2047
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2048
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2049
+ return de_CommandError(output, context);
3601
2050
  }
3602
- }, "de_TagResourceCommandError");
2051
+ const contents = (0, import_smithy_client.map)({
2052
+ $metadata: deserializeMetadata(output)
2053
+ });
2054
+ await (0, import_smithy_client.collectBody)(output.body, context);
2055
+ return contents;
2056
+ }, "de_TagResourceCommand");
3603
2057
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3604
2058
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3605
- return de_UntagResourceCommandError(output, context);
2059
+ return de_CommandError(output, context);
3606
2060
  }
3607
2061
  const contents = (0, import_smithy_client.map)({
3608
2062
  $metadata: deserializeMetadata(output)
@@ -3610,40 +2064,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
3610
2064
  await (0, import_smithy_client.collectBody)(output.body, context);
3611
2065
  return contents;
3612
2066
  }, "de_UntagResourceCommand");
3613
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3614
- const parsedOutput = {
3615
- ...output,
3616
- body: await parseErrorBody(output.body, context)
3617
- };
3618
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3619
- switch (errorCode) {
3620
- case "AccessDeniedException":
3621
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3622
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3623
- case "InternalServerException":
3624
- case "com.amazonaws.workspacesweb#InternalServerException":
3625
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3626
- case "ResourceNotFoundException":
3627
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3628
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3629
- case "ThrottlingException":
3630
- case "com.amazonaws.workspacesweb#ThrottlingException":
3631
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3632
- case "ValidationException":
3633
- case "com.amazonaws.workspacesweb#ValidationException":
3634
- throw await de_ValidationExceptionRes(parsedOutput, context);
3635
- default:
3636
- const parsedBody = parsedOutput.body;
3637
- return throwDefaultError({
3638
- output,
3639
- parsedBody,
3640
- errorCode
3641
- });
3642
- }
3643
- }, "de_UntagResourceCommandError");
3644
2067
  var de_UpdateBrowserSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3645
2068
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3646
- return de_UpdateBrowserSettingsCommandError(output, context);
2069
+ return de_CommandError(output, context);
3647
2070
  }
3648
2071
  const contents = (0, import_smithy_client.map)({
3649
2072
  $metadata: deserializeMetadata(output)
@@ -3655,40 +2078,9 @@ var de_UpdateBrowserSettingsCommand = /* @__PURE__ */ __name(async (output, cont
3655
2078
  Object.assign(contents, doc);
3656
2079
  return contents;
3657
2080
  }, "de_UpdateBrowserSettingsCommand");
3658
- var de_UpdateBrowserSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3659
- const parsedOutput = {
3660
- ...output,
3661
- body: await parseErrorBody(output.body, context)
3662
- };
3663
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3664
- switch (errorCode) {
3665
- case "AccessDeniedException":
3666
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3667
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3668
- case "InternalServerException":
3669
- case "com.amazonaws.workspacesweb#InternalServerException":
3670
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3671
- case "ResourceNotFoundException":
3672
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3673
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3674
- case "ThrottlingException":
3675
- case "com.amazonaws.workspacesweb#ThrottlingException":
3676
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3677
- case "ValidationException":
3678
- case "com.amazonaws.workspacesweb#ValidationException":
3679
- throw await de_ValidationExceptionRes(parsedOutput, context);
3680
- default:
3681
- const parsedBody = parsedOutput.body;
3682
- return throwDefaultError({
3683
- output,
3684
- parsedBody,
3685
- errorCode
3686
- });
3687
- }
3688
- }, "de_UpdateBrowserSettingsCommandError");
3689
2081
  var de_UpdateIdentityProviderCommand = /* @__PURE__ */ __name(async (output, context) => {
3690
2082
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3691
- return de_UpdateIdentityProviderCommandError(output, context);
2083
+ return de_CommandError(output, context);
3692
2084
  }
3693
2085
  const contents = (0, import_smithy_client.map)({
3694
2086
  $metadata: deserializeMetadata(output)
@@ -3700,40 +2092,9 @@ var de_UpdateIdentityProviderCommand = /* @__PURE__ */ __name(async (output, con
3700
2092
  Object.assign(contents, doc);
3701
2093
  return contents;
3702
2094
  }, "de_UpdateIdentityProviderCommand");
3703
- var de_UpdateIdentityProviderCommandError = /* @__PURE__ */ __name(async (output, context) => {
3704
- const parsedOutput = {
3705
- ...output,
3706
- body: await parseErrorBody(output.body, context)
3707
- };
3708
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3709
- switch (errorCode) {
3710
- case "AccessDeniedException":
3711
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3712
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3713
- case "InternalServerException":
3714
- case "com.amazonaws.workspacesweb#InternalServerException":
3715
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3716
- case "ResourceNotFoundException":
3717
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3718
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3719
- case "ThrottlingException":
3720
- case "com.amazonaws.workspacesweb#ThrottlingException":
3721
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3722
- case "ValidationException":
3723
- case "com.amazonaws.workspacesweb#ValidationException":
3724
- throw await de_ValidationExceptionRes(parsedOutput, context);
3725
- default:
3726
- const parsedBody = parsedOutput.body;
3727
- return throwDefaultError({
3728
- output,
3729
- parsedBody,
3730
- errorCode
3731
- });
3732
- }
3733
- }, "de_UpdateIdentityProviderCommandError");
3734
2095
  var de_UpdateIpAccessSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3735
2096
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3736
- return de_UpdateIpAccessSettingsCommandError(output, context);
2097
+ return de_CommandError(output, context);
3737
2098
  }
3738
2099
  const contents = (0, import_smithy_client.map)({
3739
2100
  $metadata: deserializeMetadata(output)
@@ -3745,40 +2106,9 @@ var de_UpdateIpAccessSettingsCommand = /* @__PURE__ */ __name(async (output, con
3745
2106
  Object.assign(contents, doc);
3746
2107
  return contents;
3747
2108
  }, "de_UpdateIpAccessSettingsCommand");
3748
- var de_UpdateIpAccessSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3749
- const parsedOutput = {
3750
- ...output,
3751
- body: await parseErrorBody(output.body, context)
3752
- };
3753
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3754
- switch (errorCode) {
3755
- case "AccessDeniedException":
3756
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3757
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3758
- case "InternalServerException":
3759
- case "com.amazonaws.workspacesweb#InternalServerException":
3760
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3761
- case "ResourceNotFoundException":
3762
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3763
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3764
- case "ThrottlingException":
3765
- case "com.amazonaws.workspacesweb#ThrottlingException":
3766
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3767
- case "ValidationException":
3768
- case "com.amazonaws.workspacesweb#ValidationException":
3769
- throw await de_ValidationExceptionRes(parsedOutput, context);
3770
- default:
3771
- const parsedBody = parsedOutput.body;
3772
- return throwDefaultError({
3773
- output,
3774
- parsedBody,
3775
- errorCode
3776
- });
3777
- }
3778
- }, "de_UpdateIpAccessSettingsCommandError");
3779
2109
  var de_UpdateNetworkSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3780
2110
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3781
- return de_UpdateNetworkSettingsCommandError(output, context);
2111
+ return de_CommandError(output, context);
3782
2112
  }
3783
2113
  const contents = (0, import_smithy_client.map)({
3784
2114
  $metadata: deserializeMetadata(output)
@@ -3790,40 +2120,9 @@ var de_UpdateNetworkSettingsCommand = /* @__PURE__ */ __name(async (output, cont
3790
2120
  Object.assign(contents, doc);
3791
2121
  return contents;
3792
2122
  }, "de_UpdateNetworkSettingsCommand");
3793
- var de_UpdateNetworkSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3794
- const parsedOutput = {
3795
- ...output,
3796
- body: await parseErrorBody(output.body, context)
3797
- };
3798
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3799
- switch (errorCode) {
3800
- case "AccessDeniedException":
3801
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3802
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3803
- case "InternalServerException":
3804
- case "com.amazonaws.workspacesweb#InternalServerException":
3805
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3806
- case "ResourceNotFoundException":
3807
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3808
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3809
- case "ThrottlingException":
3810
- case "com.amazonaws.workspacesweb#ThrottlingException":
3811
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3812
- case "ValidationException":
3813
- case "com.amazonaws.workspacesweb#ValidationException":
3814
- throw await de_ValidationExceptionRes(parsedOutput, context);
3815
- default:
3816
- const parsedBody = parsedOutput.body;
3817
- return throwDefaultError({
3818
- output,
3819
- parsedBody,
3820
- errorCode
3821
- });
3822
- }
3823
- }, "de_UpdateNetworkSettingsCommandError");
3824
2123
  var de_UpdatePortalCommand = /* @__PURE__ */ __name(async (output, context) => {
3825
2124
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3826
- return de_UpdatePortalCommandError(output, context);
2125
+ return de_CommandError(output, context);
3827
2126
  }
3828
2127
  const contents = (0, import_smithy_client.map)({
3829
2128
  $metadata: deserializeMetadata(output)
@@ -3835,43 +2134,9 @@ var de_UpdatePortalCommand = /* @__PURE__ */ __name(async (output, context) => {
3835
2134
  Object.assign(contents, doc);
3836
2135
  return contents;
3837
2136
  }, "de_UpdatePortalCommand");
3838
- var de_UpdatePortalCommandError = /* @__PURE__ */ __name(async (output, context) => {
3839
- const parsedOutput = {
3840
- ...output,
3841
- body: await parseErrorBody(output.body, context)
3842
- };
3843
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3844
- switch (errorCode) {
3845
- case "AccessDeniedException":
3846
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3847
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3848
- case "ConflictException":
3849
- case "com.amazonaws.workspacesweb#ConflictException":
3850
- throw await de_ConflictExceptionRes(parsedOutput, context);
3851
- case "InternalServerException":
3852
- case "com.amazonaws.workspacesweb#InternalServerException":
3853
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3854
- case "ResourceNotFoundException":
3855
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3856
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3857
- case "ThrottlingException":
3858
- case "com.amazonaws.workspacesweb#ThrottlingException":
3859
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3860
- case "ValidationException":
3861
- case "com.amazonaws.workspacesweb#ValidationException":
3862
- throw await de_ValidationExceptionRes(parsedOutput, context);
3863
- default:
3864
- const parsedBody = parsedOutput.body;
3865
- return throwDefaultError({
3866
- output,
3867
- parsedBody,
3868
- errorCode
3869
- });
3870
- }
3871
- }, "de_UpdatePortalCommandError");
3872
2137
  var de_UpdateTrustStoreCommand = /* @__PURE__ */ __name(async (output, context) => {
3873
2138
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3874
- return de_UpdateTrustStoreCommandError(output, context);
2139
+ return de_CommandError(output, context);
3875
2140
  }
3876
2141
  const contents = (0, import_smithy_client.map)({
3877
2142
  $metadata: deserializeMetadata(output)
@@ -3883,43 +2148,9 @@ var de_UpdateTrustStoreCommand = /* @__PURE__ */ __name(async (output, context)
3883
2148
  Object.assign(contents, doc);
3884
2149
  return contents;
3885
2150
  }, "de_UpdateTrustStoreCommand");
3886
- var de_UpdateTrustStoreCommandError = /* @__PURE__ */ __name(async (output, context) => {
3887
- const parsedOutput = {
3888
- ...output,
3889
- body: await parseErrorBody(output.body, context)
3890
- };
3891
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3892
- switch (errorCode) {
3893
- case "AccessDeniedException":
3894
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3895
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3896
- case "InternalServerException":
3897
- case "com.amazonaws.workspacesweb#InternalServerException":
3898
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3899
- case "ResourceNotFoundException":
3900
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3901
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3902
- case "ServiceQuotaExceededException":
3903
- case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
3904
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3905
- case "ThrottlingException":
3906
- case "com.amazonaws.workspacesweb#ThrottlingException":
3907
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3908
- case "ValidationException":
3909
- case "com.amazonaws.workspacesweb#ValidationException":
3910
- throw await de_ValidationExceptionRes(parsedOutput, context);
3911
- default:
3912
- const parsedBody = parsedOutput.body;
3913
- return throwDefaultError({
3914
- output,
3915
- parsedBody,
3916
- errorCode
3917
- });
3918
- }
3919
- }, "de_UpdateTrustStoreCommandError");
3920
2151
  var de_UpdateUserAccessLoggingSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3921
2152
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3922
- return de_UpdateUserAccessLoggingSettingsCommandError(output, context);
2153
+ return de_CommandError(output, context);
3923
2154
  }
3924
2155
  const contents = (0, import_smithy_client.map)({
3925
2156
  $metadata: deserializeMetadata(output)
@@ -3931,40 +2162,9 @@ var de_UpdateUserAccessLoggingSettingsCommand = /* @__PURE__ */ __name(async (ou
3931
2162
  Object.assign(contents, doc);
3932
2163
  return contents;
3933
2164
  }, "de_UpdateUserAccessLoggingSettingsCommand");
3934
- var de_UpdateUserAccessLoggingSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3935
- const parsedOutput = {
3936
- ...output,
3937
- body: await parseErrorBody(output.body, context)
3938
- };
3939
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3940
- switch (errorCode) {
3941
- case "AccessDeniedException":
3942
- case "com.amazonaws.workspacesweb#AccessDeniedException":
3943
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3944
- case "InternalServerException":
3945
- case "com.amazonaws.workspacesweb#InternalServerException":
3946
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3947
- case "ResourceNotFoundException":
3948
- case "com.amazonaws.workspacesweb#ResourceNotFoundException":
3949
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3950
- case "ThrottlingException":
3951
- case "com.amazonaws.workspacesweb#ThrottlingException":
3952
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3953
- case "ValidationException":
3954
- case "com.amazonaws.workspacesweb#ValidationException":
3955
- throw await de_ValidationExceptionRes(parsedOutput, context);
3956
- default:
3957
- const parsedBody = parsedOutput.body;
3958
- return throwDefaultError({
3959
- output,
3960
- parsedBody,
3961
- errorCode
3962
- });
3963
- }
3964
- }, "de_UpdateUserAccessLoggingSettingsCommandError");
3965
2165
  var de_UpdateUserSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3966
2166
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3967
- return de_UpdateUserSettingsCommandError(output, context);
2167
+ return de_CommandError(output, context);
3968
2168
  }
3969
2169
  const contents = (0, import_smithy_client.map)({
3970
2170
  $metadata: deserializeMetadata(output)
@@ -3976,7 +2176,7 @@ var de_UpdateUserSettingsCommand = /* @__PURE__ */ __name(async (output, context
3976
2176
  Object.assign(contents, doc);
3977
2177
  return contents;
3978
2178
  }, "de_UpdateUserSettingsCommand");
3979
- var de_UpdateUserSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2179
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
3980
2180
  const parsedOutput = {
3981
2181
  ...output,
3982
2182
  body: await parseErrorBody(output.body, context)
@@ -3986,6 +2186,9 @@ var de_UpdateUserSettingsCommandError = /* @__PURE__ */ __name(async (output, co
3986
2186
  case "AccessDeniedException":
3987
2187
  case "com.amazonaws.workspacesweb#AccessDeniedException":
3988
2188
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2189
+ case "ConflictException":
2190
+ case "com.amazonaws.workspacesweb#ConflictException":
2191
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3989
2192
  case "InternalServerException":
3990
2193
  case "com.amazonaws.workspacesweb#InternalServerException":
3991
2194
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -3998,6 +2201,12 @@ var de_UpdateUserSettingsCommandError = /* @__PURE__ */ __name(async (output, co
3998
2201
  case "ValidationException":
3999
2202
  case "com.amazonaws.workspacesweb#ValidationException":
4000
2203
  throw await de_ValidationExceptionRes(parsedOutput, context);
2204
+ case "ServiceQuotaExceededException":
2205
+ case "com.amazonaws.workspacesweb#ServiceQuotaExceededException":
2206
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2207
+ case "TooManyTagsException":
2208
+ case "com.amazonaws.workspacesweb#TooManyTagsException":
2209
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
4001
2210
  default:
4002
2211
  const parsedBody = parsedOutput.body;
4003
2212
  return throwDefaultError({
@@ -4006,7 +2215,7 @@ var de_UpdateUserSettingsCommandError = /* @__PURE__ */ __name(async (output, co
4006
2215
  errorCode
4007
2216
  });
4008
2217
  }
4009
- }, "de_UpdateUserSettingsCommandError");
2218
+ }, "de_CommandError");
4010
2219
  var throwDefaultError = (0, import_smithy_client.withBaseException)(WorkSpacesWebServiceException);
4011
2220
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4012
2221
  const contents = (0, import_smithy_client.map)({});