@aws-sdk/client-lakeformation 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
@@ -1643,7 +1643,7 @@ var se_UpdateTableStorageOptimizerCommand = /* @__PURE__ */ __name(async (input,
1643
1643
  }, "se_UpdateTableStorageOptimizerCommand");
1644
1644
  var de_AddLFTagsToResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1645
1645
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1646
- return de_AddLFTagsToResourceCommandError(output, context);
1646
+ return de_CommandError(output, context);
1647
1647
  }
1648
1648
  const contents = (0, import_smithy_client.map)({
1649
1649
  $metadata: deserializeMetadata(output)
@@ -1655,43 +1655,9 @@ var de_AddLFTagsToResourceCommand = /* @__PURE__ */ __name(async (output, contex
1655
1655
  Object.assign(contents, doc);
1656
1656
  return contents;
1657
1657
  }, "de_AddLFTagsToResourceCommand");
1658
- var de_AddLFTagsToResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1659
- const parsedOutput = {
1660
- ...output,
1661
- body: await parseErrorBody(output.body, context)
1662
- };
1663
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1664
- switch (errorCode) {
1665
- case "AccessDeniedException":
1666
- case "com.amazonaws.lakeformation#AccessDeniedException":
1667
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1668
- case "ConcurrentModificationException":
1669
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
1670
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1671
- case "EntityNotFoundException":
1672
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1673
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1674
- case "InternalServiceException":
1675
- case "com.amazonaws.lakeformation#InternalServiceException":
1676
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1677
- case "InvalidInputException":
1678
- case "com.amazonaws.lakeformation#InvalidInputException":
1679
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1680
- case "OperationTimeoutException":
1681
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1682
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1683
- default:
1684
- const parsedBody = parsedOutput.body;
1685
- return throwDefaultError({
1686
- output,
1687
- parsedBody,
1688
- errorCode
1689
- });
1690
- }
1691
- }, "de_AddLFTagsToResourceCommandError");
1692
1658
  var de_AssumeDecoratedRoleWithSAMLCommand = /* @__PURE__ */ __name(async (output, context) => {
1693
1659
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1694
- return de_AssumeDecoratedRoleWithSAMLCommandError(output, context);
1660
+ return de_CommandError(output, context);
1695
1661
  }
1696
1662
  const contents = (0, import_smithy_client.map)({
1697
1663
  $metadata: deserializeMetadata(output)
@@ -1706,40 +1672,9 @@ var de_AssumeDecoratedRoleWithSAMLCommand = /* @__PURE__ */ __name(async (output
1706
1672
  Object.assign(contents, doc);
1707
1673
  return contents;
1708
1674
  }, "de_AssumeDecoratedRoleWithSAMLCommand");
1709
- var de_AssumeDecoratedRoleWithSAMLCommandError = /* @__PURE__ */ __name(async (output, context) => {
1710
- const parsedOutput = {
1711
- ...output,
1712
- body: await parseErrorBody(output.body, context)
1713
- };
1714
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1715
- switch (errorCode) {
1716
- case "AccessDeniedException":
1717
- case "com.amazonaws.lakeformation#AccessDeniedException":
1718
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1719
- case "EntityNotFoundException":
1720
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1721
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1722
- case "InternalServiceException":
1723
- case "com.amazonaws.lakeformation#InternalServiceException":
1724
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1725
- case "InvalidInputException":
1726
- case "com.amazonaws.lakeformation#InvalidInputException":
1727
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1728
- case "OperationTimeoutException":
1729
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1730
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1731
- default:
1732
- const parsedBody = parsedOutput.body;
1733
- return throwDefaultError({
1734
- output,
1735
- parsedBody,
1736
- errorCode
1737
- });
1738
- }
1739
- }, "de_AssumeDecoratedRoleWithSAMLCommandError");
1740
1675
  var de_BatchGrantPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1741
1676
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1742
- return de_BatchGrantPermissionsCommandError(output, context);
1677
+ return de_CommandError(output, context);
1743
1678
  }
1744
1679
  const contents = (0, import_smithy_client.map)({
1745
1680
  $metadata: deserializeMetadata(output)
@@ -1751,31 +1686,9 @@ var de_BatchGrantPermissionsCommand = /* @__PURE__ */ __name(async (output, cont
1751
1686
  Object.assign(contents, doc);
1752
1687
  return contents;
1753
1688
  }, "de_BatchGrantPermissionsCommand");
1754
- var de_BatchGrantPermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1755
- const parsedOutput = {
1756
- ...output,
1757
- body: await parseErrorBody(output.body, context)
1758
- };
1759
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1760
- switch (errorCode) {
1761
- case "InvalidInputException":
1762
- case "com.amazonaws.lakeformation#InvalidInputException":
1763
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1764
- case "OperationTimeoutException":
1765
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1766
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1767
- default:
1768
- const parsedBody = parsedOutput.body;
1769
- return throwDefaultError({
1770
- output,
1771
- parsedBody,
1772
- errorCode
1773
- });
1774
- }
1775
- }, "de_BatchGrantPermissionsCommandError");
1776
1689
  var de_BatchRevokePermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1777
1690
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1778
- return de_BatchRevokePermissionsCommandError(output, context);
1691
+ return de_CommandError(output, context);
1779
1692
  }
1780
1693
  const contents = (0, import_smithy_client.map)({
1781
1694
  $metadata: deserializeMetadata(output)
@@ -1787,31 +1700,9 @@ var de_BatchRevokePermissionsCommand = /* @__PURE__ */ __name(async (output, con
1787
1700
  Object.assign(contents, doc);
1788
1701
  return contents;
1789
1702
  }, "de_BatchRevokePermissionsCommand");
1790
- var de_BatchRevokePermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1791
- const parsedOutput = {
1792
- ...output,
1793
- body: await parseErrorBody(output.body, context)
1794
- };
1795
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1796
- switch (errorCode) {
1797
- case "InvalidInputException":
1798
- case "com.amazonaws.lakeformation#InvalidInputException":
1799
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1800
- case "OperationTimeoutException":
1801
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1802
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1803
- default:
1804
- const parsedBody = parsedOutput.body;
1805
- return throwDefaultError({
1806
- output,
1807
- parsedBody,
1808
- errorCode
1809
- });
1810
- }
1811
- }, "de_BatchRevokePermissionsCommandError");
1812
1703
  var de_CancelTransactionCommand = /* @__PURE__ */ __name(async (output, context) => {
1813
1704
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1814
- return de_CancelTransactionCommandError(output, context);
1705
+ return de_CommandError(output, context);
1815
1706
  }
1816
1707
  const contents = (0, import_smithy_client.map)({
1817
1708
  $metadata: deserializeMetadata(output)
@@ -1819,46 +1710,9 @@ var de_CancelTransactionCommand = /* @__PURE__ */ __name(async (output, context)
1819
1710
  await (0, import_smithy_client.collectBody)(output.body, context);
1820
1711
  return contents;
1821
1712
  }, "de_CancelTransactionCommand");
1822
- var de_CancelTransactionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1823
- const parsedOutput = {
1824
- ...output,
1825
- body: await parseErrorBody(output.body, context)
1826
- };
1827
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1828
- switch (errorCode) {
1829
- case "ConcurrentModificationException":
1830
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
1831
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1832
- case "EntityNotFoundException":
1833
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1834
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1835
- case "InternalServiceException":
1836
- case "com.amazonaws.lakeformation#InternalServiceException":
1837
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1838
- case "InvalidInputException":
1839
- case "com.amazonaws.lakeformation#InvalidInputException":
1840
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1841
- case "OperationTimeoutException":
1842
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1843
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1844
- case "TransactionCommitInProgressException":
1845
- case "com.amazonaws.lakeformation#TransactionCommitInProgressException":
1846
- throw await de_TransactionCommitInProgressExceptionRes(parsedOutput, context);
1847
- case "TransactionCommittedException":
1848
- case "com.amazonaws.lakeformation#TransactionCommittedException":
1849
- throw await de_TransactionCommittedExceptionRes(parsedOutput, context);
1850
- default:
1851
- const parsedBody = parsedOutput.body;
1852
- return throwDefaultError({
1853
- output,
1854
- parsedBody,
1855
- errorCode
1856
- });
1857
- }
1858
- }, "de_CancelTransactionCommandError");
1859
1713
  var de_CommitTransactionCommand = /* @__PURE__ */ __name(async (output, context) => {
1860
1714
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1861
- return de_CommitTransactionCommandError(output, context);
1715
+ return de_CommandError(output, context);
1862
1716
  }
1863
1717
  const contents = (0, import_smithy_client.map)({
1864
1718
  $metadata: deserializeMetadata(output)
@@ -1870,43 +1724,9 @@ var de_CommitTransactionCommand = /* @__PURE__ */ __name(async (output, context)
1870
1724
  Object.assign(contents, doc);
1871
1725
  return contents;
1872
1726
  }, "de_CommitTransactionCommand");
1873
- var de_CommitTransactionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1874
- const parsedOutput = {
1875
- ...output,
1876
- body: await parseErrorBody(output.body, context)
1877
- };
1878
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1879
- switch (errorCode) {
1880
- case "ConcurrentModificationException":
1881
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
1882
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1883
- case "EntityNotFoundException":
1884
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1885
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1886
- case "InternalServiceException":
1887
- case "com.amazonaws.lakeformation#InternalServiceException":
1888
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1889
- case "InvalidInputException":
1890
- case "com.amazonaws.lakeformation#InvalidInputException":
1891
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1892
- case "OperationTimeoutException":
1893
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1894
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1895
- case "TransactionCanceledException":
1896
- case "com.amazonaws.lakeformation#TransactionCanceledException":
1897
- throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
1898
- default:
1899
- const parsedBody = parsedOutput.body;
1900
- return throwDefaultError({
1901
- output,
1902
- parsedBody,
1903
- errorCode
1904
- });
1905
- }
1906
- }, "de_CommitTransactionCommandError");
1907
1727
  var de_CreateDataCellsFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
1908
1728
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1909
- return de_CreateDataCellsFilterCommandError(output, context);
1729
+ return de_CommandError(output, context);
1910
1730
  }
1911
1731
  const contents = (0, import_smithy_client.map)({
1912
1732
  $metadata: deserializeMetadata(output)
@@ -1914,46 +1734,9 @@ var de_CreateDataCellsFilterCommand = /* @__PURE__ */ __name(async (output, cont
1914
1734
  await (0, import_smithy_client.collectBody)(output.body, context);
1915
1735
  return contents;
1916
1736
  }, "de_CreateDataCellsFilterCommand");
1917
- var de_CreateDataCellsFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
1918
- const parsedOutput = {
1919
- ...output,
1920
- body: await parseErrorBody(output.body, context)
1921
- };
1922
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1923
- switch (errorCode) {
1924
- case "AccessDeniedException":
1925
- case "com.amazonaws.lakeformation#AccessDeniedException":
1926
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1927
- case "AlreadyExistsException":
1928
- case "com.amazonaws.lakeformation#AlreadyExistsException":
1929
- throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
1930
- case "EntityNotFoundException":
1931
- case "com.amazonaws.lakeformation#EntityNotFoundException":
1932
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
1933
- case "InternalServiceException":
1934
- case "com.amazonaws.lakeformation#InternalServiceException":
1935
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1936
- case "InvalidInputException":
1937
- case "com.amazonaws.lakeformation#InvalidInputException":
1938
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1939
- case "OperationTimeoutException":
1940
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1941
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1942
- case "ResourceNumberLimitExceededException":
1943
- case "com.amazonaws.lakeformation#ResourceNumberLimitExceededException":
1944
- throw await de_ResourceNumberLimitExceededExceptionRes(parsedOutput, context);
1945
- default:
1946
- const parsedBody = parsedOutput.body;
1947
- return throwDefaultError({
1948
- output,
1949
- parsedBody,
1950
- errorCode
1951
- });
1952
- }
1953
- }, "de_CreateDataCellsFilterCommandError");
1954
1737
  var de_CreateLakeFormationIdentityCenterConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1955
1738
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1956
- return de_CreateLakeFormationIdentityCenterConfigurationCommandError(output, context);
1739
+ return de_CommandError(output, context);
1957
1740
  }
1958
1741
  const contents = (0, import_smithy_client.map)({
1959
1742
  $metadata: deserializeMetadata(output)
@@ -1965,43 +1748,9 @@ var de_CreateLakeFormationIdentityCenterConfigurationCommand = /* @__PURE__ */ _
1965
1748
  Object.assign(contents, doc);
1966
1749
  return contents;
1967
1750
  }, "de_CreateLakeFormationIdentityCenterConfigurationCommand");
1968
- var de_CreateLakeFormationIdentityCenterConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1969
- const parsedOutput = {
1970
- ...output,
1971
- body: await parseErrorBody(output.body, context)
1972
- };
1973
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1974
- switch (errorCode) {
1975
- case "AccessDeniedException":
1976
- case "com.amazonaws.lakeformation#AccessDeniedException":
1977
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1978
- case "AlreadyExistsException":
1979
- case "com.amazonaws.lakeformation#AlreadyExistsException":
1980
- throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
1981
- case "ConcurrentModificationException":
1982
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
1983
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
1984
- case "InternalServiceException":
1985
- case "com.amazonaws.lakeformation#InternalServiceException":
1986
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1987
- case "InvalidInputException":
1988
- case "com.amazonaws.lakeformation#InvalidInputException":
1989
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
1990
- case "OperationTimeoutException":
1991
- case "com.amazonaws.lakeformation#OperationTimeoutException":
1992
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
1993
- default:
1994
- const parsedBody = parsedOutput.body;
1995
- return throwDefaultError({
1996
- output,
1997
- parsedBody,
1998
- errorCode
1999
- });
2000
- }
2001
- }, "de_CreateLakeFormationIdentityCenterConfigurationCommandError");
2002
1751
  var de_CreateLakeFormationOptInCommand = /* @__PURE__ */ __name(async (output, context) => {
2003
1752
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2004
- return de_CreateLakeFormationOptInCommandError(output, context);
1753
+ return de_CommandError(output, context);
2005
1754
  }
2006
1755
  const contents = (0, import_smithy_client.map)({
2007
1756
  $metadata: deserializeMetadata(output)
@@ -2009,43 +1758,9 @@ var de_CreateLakeFormationOptInCommand = /* @__PURE__ */ __name(async (output, c
2009
1758
  await (0, import_smithy_client.collectBody)(output.body, context);
2010
1759
  return contents;
2011
1760
  }, "de_CreateLakeFormationOptInCommand");
2012
- var de_CreateLakeFormationOptInCommandError = /* @__PURE__ */ __name(async (output, context) => {
2013
- const parsedOutput = {
2014
- ...output,
2015
- body: await parseErrorBody(output.body, context)
2016
- };
2017
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2018
- switch (errorCode) {
2019
- case "AccessDeniedException":
2020
- case "com.amazonaws.lakeformation#AccessDeniedException":
2021
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2022
- case "ConcurrentModificationException":
2023
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
2024
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
2025
- case "EntityNotFoundException":
2026
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2027
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2028
- case "InternalServiceException":
2029
- case "com.amazonaws.lakeformation#InternalServiceException":
2030
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2031
- case "InvalidInputException":
2032
- case "com.amazonaws.lakeformation#InvalidInputException":
2033
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2034
- case "OperationTimeoutException":
2035
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2036
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2037
- default:
2038
- const parsedBody = parsedOutput.body;
2039
- return throwDefaultError({
2040
- output,
2041
- parsedBody,
2042
- errorCode
2043
- });
2044
- }
2045
- }, "de_CreateLakeFormationOptInCommandError");
2046
1761
  var de_CreateLFTagCommand = /* @__PURE__ */ __name(async (output, context) => {
2047
1762
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2048
- return de_CreateLFTagCommandError(output, context);
1763
+ return de_CommandError(output, context);
2049
1764
  }
2050
1765
  const contents = (0, import_smithy_client.map)({
2051
1766
  $metadata: deserializeMetadata(output)
@@ -2053,43 +1768,9 @@ var de_CreateLFTagCommand = /* @__PURE__ */ __name(async (output, context) => {
2053
1768
  await (0, import_smithy_client.collectBody)(output.body, context);
2054
1769
  return contents;
2055
1770
  }, "de_CreateLFTagCommand");
2056
- var de_CreateLFTagCommandError = /* @__PURE__ */ __name(async (output, context) => {
2057
- const parsedOutput = {
2058
- ...output,
2059
- body: await parseErrorBody(output.body, context)
2060
- };
2061
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2062
- switch (errorCode) {
2063
- case "AccessDeniedException":
2064
- case "com.amazonaws.lakeformation#AccessDeniedException":
2065
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2066
- case "EntityNotFoundException":
2067
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2068
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2069
- case "InternalServiceException":
2070
- case "com.amazonaws.lakeformation#InternalServiceException":
2071
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2072
- case "InvalidInputException":
2073
- case "com.amazonaws.lakeformation#InvalidInputException":
2074
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2075
- case "OperationTimeoutException":
2076
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2077
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2078
- case "ResourceNumberLimitExceededException":
2079
- case "com.amazonaws.lakeformation#ResourceNumberLimitExceededException":
2080
- throw await de_ResourceNumberLimitExceededExceptionRes(parsedOutput, context);
2081
- default:
2082
- const parsedBody = parsedOutput.body;
2083
- return throwDefaultError({
2084
- output,
2085
- parsedBody,
2086
- errorCode
2087
- });
2088
- }
2089
- }, "de_CreateLFTagCommandError");
2090
1771
  var de_DeleteDataCellsFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
2091
1772
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2092
- return de_DeleteDataCellsFilterCommandError(output, context);
1773
+ return de_CommandError(output, context);
2093
1774
  }
2094
1775
  const contents = (0, import_smithy_client.map)({
2095
1776
  $metadata: deserializeMetadata(output)
@@ -2097,40 +1778,9 @@ var de_DeleteDataCellsFilterCommand = /* @__PURE__ */ __name(async (output, cont
2097
1778
  await (0, import_smithy_client.collectBody)(output.body, context);
2098
1779
  return contents;
2099
1780
  }, "de_DeleteDataCellsFilterCommand");
2100
- var de_DeleteDataCellsFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
2101
- const parsedOutput = {
2102
- ...output,
2103
- body: await parseErrorBody(output.body, context)
2104
- };
2105
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2106
- switch (errorCode) {
2107
- case "AccessDeniedException":
2108
- case "com.amazonaws.lakeformation#AccessDeniedException":
2109
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2110
- case "EntityNotFoundException":
2111
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2112
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2113
- case "InternalServiceException":
2114
- case "com.amazonaws.lakeformation#InternalServiceException":
2115
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2116
- case "InvalidInputException":
2117
- case "com.amazonaws.lakeformation#InvalidInputException":
2118
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2119
- case "OperationTimeoutException":
2120
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2121
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2122
- default:
2123
- const parsedBody = parsedOutput.body;
2124
- return throwDefaultError({
2125
- output,
2126
- parsedBody,
2127
- errorCode
2128
- });
2129
- }
2130
- }, "de_DeleteDataCellsFilterCommandError");
2131
1781
  var de_DeleteLakeFormationIdentityCenterConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2132
1782
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2133
- return de_DeleteLakeFormationIdentityCenterConfigurationCommandError(output, context);
1783
+ return de_CommandError(output, context);
2134
1784
  }
2135
1785
  const contents = (0, import_smithy_client.map)({
2136
1786
  $metadata: deserializeMetadata(output)
@@ -2138,43 +1788,9 @@ var de_DeleteLakeFormationIdentityCenterConfigurationCommand = /* @__PURE__ */ _
2138
1788
  await (0, import_smithy_client.collectBody)(output.body, context);
2139
1789
  return contents;
2140
1790
  }, "de_DeleteLakeFormationIdentityCenterConfigurationCommand");
2141
- var de_DeleteLakeFormationIdentityCenterConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2142
- const parsedOutput = {
2143
- ...output,
2144
- body: await parseErrorBody(output.body, context)
2145
- };
2146
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2147
- switch (errorCode) {
2148
- case "AccessDeniedException":
2149
- case "com.amazonaws.lakeformation#AccessDeniedException":
2150
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2151
- case "ConcurrentModificationException":
2152
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
2153
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
2154
- case "EntityNotFoundException":
2155
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2156
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2157
- case "InternalServiceException":
2158
- case "com.amazonaws.lakeformation#InternalServiceException":
2159
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2160
- case "InvalidInputException":
2161
- case "com.amazonaws.lakeformation#InvalidInputException":
2162
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2163
- case "OperationTimeoutException":
2164
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2165
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2166
- default:
2167
- const parsedBody = parsedOutput.body;
2168
- return throwDefaultError({
2169
- output,
2170
- parsedBody,
2171
- errorCode
2172
- });
2173
- }
2174
- }, "de_DeleteLakeFormationIdentityCenterConfigurationCommandError");
2175
1791
  var de_DeleteLakeFormationOptInCommand = /* @__PURE__ */ __name(async (output, context) => {
2176
1792
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2177
- return de_DeleteLakeFormationOptInCommandError(output, context);
1793
+ return de_CommandError(output, context);
2178
1794
  }
2179
1795
  const contents = (0, import_smithy_client.map)({
2180
1796
  $metadata: deserializeMetadata(output)
@@ -2182,43 +1798,9 @@ var de_DeleteLakeFormationOptInCommand = /* @__PURE__ */ __name(async (output, c
2182
1798
  await (0, import_smithy_client.collectBody)(output.body, context);
2183
1799
  return contents;
2184
1800
  }, "de_DeleteLakeFormationOptInCommand");
2185
- var de_DeleteLakeFormationOptInCommandError = /* @__PURE__ */ __name(async (output, context) => {
2186
- const parsedOutput = {
2187
- ...output,
2188
- body: await parseErrorBody(output.body, context)
2189
- };
2190
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2191
- switch (errorCode) {
2192
- case "AccessDeniedException":
2193
- case "com.amazonaws.lakeformation#AccessDeniedException":
2194
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2195
- case "ConcurrentModificationException":
2196
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
2197
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
2198
- case "EntityNotFoundException":
2199
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2200
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2201
- case "InternalServiceException":
2202
- case "com.amazonaws.lakeformation#InternalServiceException":
2203
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2204
- case "InvalidInputException":
2205
- case "com.amazonaws.lakeformation#InvalidInputException":
2206
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2207
- case "OperationTimeoutException":
2208
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2209
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2210
- default:
2211
- const parsedBody = parsedOutput.body;
2212
- return throwDefaultError({
2213
- output,
2214
- parsedBody,
2215
- errorCode
2216
- });
2217
- }
2218
- }, "de_DeleteLakeFormationOptInCommandError");
2219
1801
  var de_DeleteLFTagCommand = /* @__PURE__ */ __name(async (output, context) => {
2220
1802
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2221
- return de_DeleteLFTagCommandError(output, context);
1803
+ return de_CommandError(output, context);
2222
1804
  }
2223
1805
  const contents = (0, import_smithy_client.map)({
2224
1806
  $metadata: deserializeMetadata(output)
@@ -2226,40 +1808,9 @@ var de_DeleteLFTagCommand = /* @__PURE__ */ __name(async (output, context) => {
2226
1808
  await (0, import_smithy_client.collectBody)(output.body, context);
2227
1809
  return contents;
2228
1810
  }, "de_DeleteLFTagCommand");
2229
- var de_DeleteLFTagCommandError = /* @__PURE__ */ __name(async (output, context) => {
2230
- const parsedOutput = {
2231
- ...output,
2232
- body: await parseErrorBody(output.body, context)
2233
- };
2234
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2235
- switch (errorCode) {
2236
- case "AccessDeniedException":
2237
- case "com.amazonaws.lakeformation#AccessDeniedException":
2238
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2239
- case "EntityNotFoundException":
2240
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2241
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2242
- case "InternalServiceException":
2243
- case "com.amazonaws.lakeformation#InternalServiceException":
2244
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2245
- case "InvalidInputException":
2246
- case "com.amazonaws.lakeformation#InvalidInputException":
2247
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2248
- case "OperationTimeoutException":
2249
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2250
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2251
- default:
2252
- const parsedBody = parsedOutput.body;
2253
- return throwDefaultError({
2254
- output,
2255
- parsedBody,
2256
- errorCode
2257
- });
2258
- }
2259
- }, "de_DeleteLFTagCommandError");
2260
1811
  var de_DeleteObjectsOnCancelCommand = /* @__PURE__ */ __name(async (output, context) => {
2261
1812
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2262
- return de_DeleteObjectsOnCancelCommandError(output, context);
1813
+ return de_CommandError(output, context);
2263
1814
  }
2264
1815
  const contents = (0, import_smithy_client.map)({
2265
1816
  $metadata: deserializeMetadata(output)
@@ -2267,49 +1818,9 @@ var de_DeleteObjectsOnCancelCommand = /* @__PURE__ */ __name(async (output, cont
2267
1818
  await (0, import_smithy_client.collectBody)(output.body, context);
2268
1819
  return contents;
2269
1820
  }, "de_DeleteObjectsOnCancelCommand");
2270
- var de_DeleteObjectsOnCancelCommandError = /* @__PURE__ */ __name(async (output, context) => {
2271
- const parsedOutput = {
2272
- ...output,
2273
- body: await parseErrorBody(output.body, context)
2274
- };
2275
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2276
- switch (errorCode) {
2277
- case "ConcurrentModificationException":
2278
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
2279
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
2280
- case "EntityNotFoundException":
2281
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2282
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2283
- case "InternalServiceException":
2284
- case "com.amazonaws.lakeformation#InternalServiceException":
2285
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2286
- case "InvalidInputException":
2287
- case "com.amazonaws.lakeformation#InvalidInputException":
2288
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2289
- case "OperationTimeoutException":
2290
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2291
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2292
- case "ResourceNotReadyException":
2293
- case "com.amazonaws.lakeformation#ResourceNotReadyException":
2294
- throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
2295
- case "TransactionCanceledException":
2296
- case "com.amazonaws.lakeformation#TransactionCanceledException":
2297
- throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
2298
- case "TransactionCommittedException":
2299
- case "com.amazonaws.lakeformation#TransactionCommittedException":
2300
- throw await de_TransactionCommittedExceptionRes(parsedOutput, context);
2301
- default:
2302
- const parsedBody = parsedOutput.body;
2303
- return throwDefaultError({
2304
- output,
2305
- parsedBody,
2306
- errorCode
2307
- });
2308
- }
2309
- }, "de_DeleteObjectsOnCancelCommandError");
2310
1821
  var de_DeregisterResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2311
1822
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2312
- return de_DeregisterResourceCommandError(output, context);
1823
+ return de_CommandError(output, context);
2313
1824
  }
2314
1825
  const contents = (0, import_smithy_client.map)({
2315
1826
  $metadata: deserializeMetadata(output)
@@ -2317,37 +1828,9 @@ var de_DeregisterResourceCommand = /* @__PURE__ */ __name(async (output, context
2317
1828
  await (0, import_smithy_client.collectBody)(output.body, context);
2318
1829
  return contents;
2319
1830
  }, "de_DeregisterResourceCommand");
2320
- var de_DeregisterResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2321
- const parsedOutput = {
2322
- ...output,
2323
- body: await parseErrorBody(output.body, context)
2324
- };
2325
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2326
- switch (errorCode) {
2327
- case "EntityNotFoundException":
2328
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2329
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2330
- case "InternalServiceException":
2331
- case "com.amazonaws.lakeformation#InternalServiceException":
2332
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2333
- case "InvalidInputException":
2334
- case "com.amazonaws.lakeformation#InvalidInputException":
2335
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2336
- case "OperationTimeoutException":
2337
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2338
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2339
- default:
2340
- const parsedBody = parsedOutput.body;
2341
- return throwDefaultError({
2342
- output,
2343
- parsedBody,
2344
- errorCode
2345
- });
2346
- }
2347
- }, "de_DeregisterResourceCommandError");
2348
1831
  var de_DescribeLakeFormationIdentityCenterConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2349
1832
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2350
- return de_DescribeLakeFormationIdentityCenterConfigurationCommandError(output, context);
1833
+ return de_CommandError(output, context);
2351
1834
  }
2352
1835
  const contents = (0, import_smithy_client.map)({
2353
1836
  $metadata: deserializeMetadata(output)
@@ -2362,40 +1845,9 @@ var de_DescribeLakeFormationIdentityCenterConfigurationCommand = /* @__PURE__ */
2362
1845
  Object.assign(contents, doc);
2363
1846
  return contents;
2364
1847
  }, "de_DescribeLakeFormationIdentityCenterConfigurationCommand");
2365
- var de_DescribeLakeFormationIdentityCenterConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2366
- const parsedOutput = {
2367
- ...output,
2368
- body: await parseErrorBody(output.body, context)
2369
- };
2370
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2371
- switch (errorCode) {
2372
- case "AccessDeniedException":
2373
- case "com.amazonaws.lakeformation#AccessDeniedException":
2374
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2375
- case "EntityNotFoundException":
2376
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2377
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2378
- case "InternalServiceException":
2379
- case "com.amazonaws.lakeformation#InternalServiceException":
2380
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2381
- case "InvalidInputException":
2382
- case "com.amazonaws.lakeformation#InvalidInputException":
2383
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2384
- case "OperationTimeoutException":
2385
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2386
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2387
- default:
2388
- const parsedBody = parsedOutput.body;
2389
- return throwDefaultError({
2390
- output,
2391
- parsedBody,
2392
- errorCode
2393
- });
2394
- }
2395
- }, "de_DescribeLakeFormationIdentityCenterConfigurationCommandError");
2396
1848
  var de_DescribeResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2397
1849
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2398
- return de_DescribeResourceCommandError(output, context);
1850
+ return de_CommandError(output, context);
2399
1851
  }
2400
1852
  const contents = (0, import_smithy_client.map)({
2401
1853
  $metadata: deserializeMetadata(output)
@@ -2406,127 +1858,34 @@ var de_DescribeResourceCommand = /* @__PURE__ */ __name(async (output, context)
2406
1858
  });
2407
1859
  Object.assign(contents, doc);
2408
1860
  return contents;
2409
- }, "de_DescribeResourceCommand");
2410
- var de_DescribeResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2411
- const parsedOutput = {
2412
- ...output,
2413
- body: await parseErrorBody(output.body, context)
2414
- };
2415
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2416
- switch (errorCode) {
2417
- case "EntityNotFoundException":
2418
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2419
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2420
- case "InternalServiceException":
2421
- case "com.amazonaws.lakeformation#InternalServiceException":
2422
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2423
- case "InvalidInputException":
2424
- case "com.amazonaws.lakeformation#InvalidInputException":
2425
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2426
- case "OperationTimeoutException":
2427
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2428
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2429
- default:
2430
- const parsedBody = parsedOutput.body;
2431
- return throwDefaultError({
2432
- output,
2433
- parsedBody,
2434
- errorCode
2435
- });
2436
- }
2437
- }, "de_DescribeResourceCommandError");
2438
- var de_DescribeTransactionCommand = /* @__PURE__ */ __name(async (output, context) => {
2439
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2440
- return de_DescribeTransactionCommandError(output, context);
2441
- }
2442
- const contents = (0, import_smithy_client.map)({
2443
- $metadata: deserializeMetadata(output)
2444
- });
2445
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2446
- const doc = (0, import_smithy_client.take)(data, {
2447
- TransactionDescription: (_) => de_TransactionDescription(_, context)
2448
- });
2449
- Object.assign(contents, doc);
2450
- return contents;
2451
- }, "de_DescribeTransactionCommand");
2452
- var de_DescribeTransactionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2453
- const parsedOutput = {
2454
- ...output,
2455
- body: await parseErrorBody(output.body, context)
2456
- };
2457
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2458
- switch (errorCode) {
2459
- case "EntityNotFoundException":
2460
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2461
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2462
- case "InternalServiceException":
2463
- case "com.amazonaws.lakeformation#InternalServiceException":
2464
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2465
- case "InvalidInputException":
2466
- case "com.amazonaws.lakeformation#InvalidInputException":
2467
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2468
- case "OperationTimeoutException":
2469
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2470
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2471
- default:
2472
- const parsedBody = parsedOutput.body;
2473
- return throwDefaultError({
2474
- output,
2475
- parsedBody,
2476
- errorCode
2477
- });
2478
- }
2479
- }, "de_DescribeTransactionCommandError");
2480
- var de_ExtendTransactionCommand = /* @__PURE__ */ __name(async (output, context) => {
2481
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2482
- return de_ExtendTransactionCommandError(output, context);
2483
- }
2484
- const contents = (0, import_smithy_client.map)({
2485
- $metadata: deserializeMetadata(output)
2486
- });
2487
- await (0, import_smithy_client.collectBody)(output.body, context);
2488
- return contents;
2489
- }, "de_ExtendTransactionCommand");
2490
- var de_ExtendTransactionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2491
- const parsedOutput = {
2492
- ...output,
2493
- body: await parseErrorBody(output.body, context)
2494
- };
2495
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2496
- switch (errorCode) {
2497
- case "EntityNotFoundException":
2498
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2499
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2500
- case "InternalServiceException":
2501
- case "com.amazonaws.lakeformation#InternalServiceException":
2502
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2503
- case "InvalidInputException":
2504
- case "com.amazonaws.lakeformation#InvalidInputException":
2505
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2506
- case "OperationTimeoutException":
2507
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2508
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2509
- case "TransactionCanceledException":
2510
- case "com.amazonaws.lakeformation#TransactionCanceledException":
2511
- throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
2512
- case "TransactionCommitInProgressException":
2513
- case "com.amazonaws.lakeformation#TransactionCommitInProgressException":
2514
- throw await de_TransactionCommitInProgressExceptionRes(parsedOutput, context);
2515
- case "TransactionCommittedException":
2516
- case "com.amazonaws.lakeformation#TransactionCommittedException":
2517
- throw await de_TransactionCommittedExceptionRes(parsedOutput, context);
2518
- default:
2519
- const parsedBody = parsedOutput.body;
2520
- return throwDefaultError({
2521
- output,
2522
- parsedBody,
2523
- errorCode
2524
- });
1861
+ }, "de_DescribeResourceCommand");
1862
+ var de_DescribeTransactionCommand = /* @__PURE__ */ __name(async (output, context) => {
1863
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1864
+ return de_CommandError(output, context);
1865
+ }
1866
+ const contents = (0, import_smithy_client.map)({
1867
+ $metadata: deserializeMetadata(output)
1868
+ });
1869
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1870
+ const doc = (0, import_smithy_client.take)(data, {
1871
+ TransactionDescription: (_) => de_TransactionDescription(_, context)
1872
+ });
1873
+ Object.assign(contents, doc);
1874
+ return contents;
1875
+ }, "de_DescribeTransactionCommand");
1876
+ var de_ExtendTransactionCommand = /* @__PURE__ */ __name(async (output, context) => {
1877
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1878
+ return de_CommandError(output, context);
2525
1879
  }
2526
- }, "de_ExtendTransactionCommandError");
1880
+ const contents = (0, import_smithy_client.map)({
1881
+ $metadata: deserializeMetadata(output)
1882
+ });
1883
+ await (0, import_smithy_client.collectBody)(output.body, context);
1884
+ return contents;
1885
+ }, "de_ExtendTransactionCommand");
2527
1886
  var de_GetDataCellsFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
2528
1887
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2529
- return de_GetDataCellsFilterCommandError(output, context);
1888
+ return de_CommandError(output, context);
2530
1889
  }
2531
1890
  const contents = (0, import_smithy_client.map)({
2532
1891
  $metadata: deserializeMetadata(output)
@@ -2538,40 +1897,9 @@ var de_GetDataCellsFilterCommand = /* @__PURE__ */ __name(async (output, context
2538
1897
  Object.assign(contents, doc);
2539
1898
  return contents;
2540
1899
  }, "de_GetDataCellsFilterCommand");
2541
- var de_GetDataCellsFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
2542
- const parsedOutput = {
2543
- ...output,
2544
- body: await parseErrorBody(output.body, context)
2545
- };
2546
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2547
- switch (errorCode) {
2548
- case "AccessDeniedException":
2549
- case "com.amazonaws.lakeformation#AccessDeniedException":
2550
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2551
- case "EntityNotFoundException":
2552
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2553
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2554
- case "InternalServiceException":
2555
- case "com.amazonaws.lakeformation#InternalServiceException":
2556
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2557
- case "InvalidInputException":
2558
- case "com.amazonaws.lakeformation#InvalidInputException":
2559
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2560
- case "OperationTimeoutException":
2561
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2562
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2563
- default:
2564
- const parsedBody = parsedOutput.body;
2565
- return throwDefaultError({
2566
- output,
2567
- parsedBody,
2568
- errorCode
2569
- });
2570
- }
2571
- }, "de_GetDataCellsFilterCommandError");
2572
1900
  var de_GetDataLakeSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2573
1901
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2574
- return de_GetDataLakeSettingsCommandError(output, context);
1902
+ return de_CommandError(output, context);
2575
1903
  }
2576
1904
  const contents = (0, import_smithy_client.map)({
2577
1905
  $metadata: deserializeMetadata(output)
@@ -2583,34 +1911,9 @@ var de_GetDataLakeSettingsCommand = /* @__PURE__ */ __name(async (output, contex
2583
1911
  Object.assign(contents, doc);
2584
1912
  return contents;
2585
1913
  }, "de_GetDataLakeSettingsCommand");
2586
- var de_GetDataLakeSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2587
- const parsedOutput = {
2588
- ...output,
2589
- body: await parseErrorBody(output.body, context)
2590
- };
2591
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2592
- switch (errorCode) {
2593
- case "EntityNotFoundException":
2594
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2595
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2596
- case "InternalServiceException":
2597
- case "com.amazonaws.lakeformation#InternalServiceException":
2598
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2599
- case "InvalidInputException":
2600
- case "com.amazonaws.lakeformation#InvalidInputException":
2601
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2602
- default:
2603
- const parsedBody = parsedOutput.body;
2604
- return throwDefaultError({
2605
- output,
2606
- parsedBody,
2607
- errorCode
2608
- });
2609
- }
2610
- }, "de_GetDataLakeSettingsCommandError");
2611
1914
  var de_GetEffectivePermissionsForPathCommand = /* @__PURE__ */ __name(async (output, context) => {
2612
1915
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2613
- return de_GetEffectivePermissionsForPathCommandError(output, context);
1916
+ return de_CommandError(output, context);
2614
1917
  }
2615
1918
  const contents = (0, import_smithy_client.map)({
2616
1919
  $metadata: deserializeMetadata(output)
@@ -2623,37 +1926,9 @@ var de_GetEffectivePermissionsForPathCommand = /* @__PURE__ */ __name(async (out
2623
1926
  Object.assign(contents, doc);
2624
1927
  return contents;
2625
1928
  }, "de_GetEffectivePermissionsForPathCommand");
2626
- var de_GetEffectivePermissionsForPathCommandError = /* @__PURE__ */ __name(async (output, context) => {
2627
- const parsedOutput = {
2628
- ...output,
2629
- body: await parseErrorBody(output.body, context)
2630
- };
2631
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2632
- switch (errorCode) {
2633
- case "EntityNotFoundException":
2634
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2635
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2636
- case "InternalServiceException":
2637
- case "com.amazonaws.lakeformation#InternalServiceException":
2638
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2639
- case "InvalidInputException":
2640
- case "com.amazonaws.lakeformation#InvalidInputException":
2641
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2642
- case "OperationTimeoutException":
2643
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2644
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2645
- default:
2646
- const parsedBody = parsedOutput.body;
2647
- return throwDefaultError({
2648
- output,
2649
- parsedBody,
2650
- errorCode
2651
- });
2652
- }
2653
- }, "de_GetEffectivePermissionsForPathCommandError");
2654
1929
  var de_GetLFTagCommand = /* @__PURE__ */ __name(async (output, context) => {
2655
1930
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2656
- return de_GetLFTagCommandError(output, context);
1931
+ return de_CommandError(output, context);
2657
1932
  }
2658
1933
  const contents = (0, import_smithy_client.map)({
2659
1934
  $metadata: deserializeMetadata(output)
@@ -2667,40 +1942,9 @@ var de_GetLFTagCommand = /* @__PURE__ */ __name(async (output, context) => {
2667
1942
  Object.assign(contents, doc);
2668
1943
  return contents;
2669
1944
  }, "de_GetLFTagCommand");
2670
- var de_GetLFTagCommandError = /* @__PURE__ */ __name(async (output, context) => {
2671
- const parsedOutput = {
2672
- ...output,
2673
- body: await parseErrorBody(output.body, context)
2674
- };
2675
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2676
- switch (errorCode) {
2677
- case "AccessDeniedException":
2678
- case "com.amazonaws.lakeformation#AccessDeniedException":
2679
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2680
- case "EntityNotFoundException":
2681
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2682
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2683
- case "InternalServiceException":
2684
- case "com.amazonaws.lakeformation#InternalServiceException":
2685
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2686
- case "InvalidInputException":
2687
- case "com.amazonaws.lakeformation#InvalidInputException":
2688
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2689
- case "OperationTimeoutException":
2690
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2691
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2692
- default:
2693
- const parsedBody = parsedOutput.body;
2694
- return throwDefaultError({
2695
- output,
2696
- parsedBody,
2697
- errorCode
2698
- });
2699
- }
2700
- }, "de_GetLFTagCommandError");
2701
1945
  var de_GetQueryStateCommand = /* @__PURE__ */ __name(async (output, context) => {
2702
1946
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2703
- return de_GetQueryStateCommandError(output, context);
1947
+ return de_CommandError(output, context);
2704
1948
  }
2705
1949
  const contents = (0, import_smithy_client.map)({
2706
1950
  $metadata: deserializeMetadata(output)
@@ -2713,34 +1957,9 @@ var de_GetQueryStateCommand = /* @__PURE__ */ __name(async (output, context) =>
2713
1957
  Object.assign(contents, doc);
2714
1958
  return contents;
2715
1959
  }, "de_GetQueryStateCommand");
2716
- var de_GetQueryStateCommandError = /* @__PURE__ */ __name(async (output, context) => {
2717
- const parsedOutput = {
2718
- ...output,
2719
- body: await parseErrorBody(output.body, context)
2720
- };
2721
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2722
- switch (errorCode) {
2723
- case "AccessDeniedException":
2724
- case "com.amazonaws.lakeformation#AccessDeniedException":
2725
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2726
- case "InternalServiceException":
2727
- case "com.amazonaws.lakeformation#InternalServiceException":
2728
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2729
- case "InvalidInputException":
2730
- case "com.amazonaws.lakeformation#InvalidInputException":
2731
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2732
- default:
2733
- const parsedBody = parsedOutput.body;
2734
- return throwDefaultError({
2735
- output,
2736
- parsedBody,
2737
- errorCode
2738
- });
2739
- }
2740
- }, "de_GetQueryStateCommandError");
2741
1960
  var de_GetQueryStatisticsCommand = /* @__PURE__ */ __name(async (output, context) => {
2742
1961
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2743
- return de_GetQueryStatisticsCommandError(output, context);
1962
+ return de_CommandError(output, context);
2744
1963
  }
2745
1964
  const contents = (0, import_smithy_client.map)({
2746
1965
  $metadata: deserializeMetadata(output)
@@ -2754,43 +1973,9 @@ var de_GetQueryStatisticsCommand = /* @__PURE__ */ __name(async (output, context
2754
1973
  Object.assign(contents, doc);
2755
1974
  return contents;
2756
1975
  }, "de_GetQueryStatisticsCommand");
2757
- var de_GetQueryStatisticsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2758
- const parsedOutput = {
2759
- ...output,
2760
- body: await parseErrorBody(output.body, context)
2761
- };
2762
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2763
- switch (errorCode) {
2764
- case "AccessDeniedException":
2765
- case "com.amazonaws.lakeformation#AccessDeniedException":
2766
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2767
- case "ExpiredException":
2768
- case "com.amazonaws.lakeformation#ExpiredException":
2769
- throw await de_ExpiredExceptionRes(parsedOutput, context);
2770
- case "InternalServiceException":
2771
- case "com.amazonaws.lakeformation#InternalServiceException":
2772
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2773
- case "InvalidInputException":
2774
- case "com.amazonaws.lakeformation#InvalidInputException":
2775
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2776
- case "StatisticsNotReadyYetException":
2777
- case "com.amazonaws.lakeformation#StatisticsNotReadyYetException":
2778
- throw await de_StatisticsNotReadyYetExceptionRes(parsedOutput, context);
2779
- case "ThrottledException":
2780
- case "com.amazonaws.lakeformation#ThrottledException":
2781
- throw await de_ThrottledExceptionRes(parsedOutput, context);
2782
- default:
2783
- const parsedBody = parsedOutput.body;
2784
- return throwDefaultError({
2785
- output,
2786
- parsedBody,
2787
- errorCode
2788
- });
2789
- }
2790
- }, "de_GetQueryStatisticsCommandError");
2791
1976
  var de_GetResourceLFTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
2792
1977
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2793
- return de_GetResourceLFTagsCommandError(output, context);
1978
+ return de_CommandError(output, context);
2794
1979
  }
2795
1980
  const contents = (0, import_smithy_client.map)({
2796
1981
  $metadata: deserializeMetadata(output)
@@ -2804,43 +1989,9 @@ var de_GetResourceLFTagsCommand = /* @__PURE__ */ __name(async (output, context)
2804
1989
  Object.assign(contents, doc);
2805
1990
  return contents;
2806
1991
  }, "de_GetResourceLFTagsCommand");
2807
- var de_GetResourceLFTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2808
- const parsedOutput = {
2809
- ...output,
2810
- body: await parseErrorBody(output.body, context)
2811
- };
2812
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2813
- switch (errorCode) {
2814
- case "AccessDeniedException":
2815
- case "com.amazonaws.lakeformation#AccessDeniedException":
2816
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2817
- case "EntityNotFoundException":
2818
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2819
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2820
- case "GlueEncryptionException":
2821
- case "com.amazonaws.lakeformation#GlueEncryptionException":
2822
- throw await de_GlueEncryptionExceptionRes(parsedOutput, context);
2823
- case "InternalServiceException":
2824
- case "com.amazonaws.lakeformation#InternalServiceException":
2825
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2826
- case "InvalidInputException":
2827
- case "com.amazonaws.lakeformation#InvalidInputException":
2828
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2829
- case "OperationTimeoutException":
2830
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2831
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2832
- default:
2833
- const parsedBody = parsedOutput.body;
2834
- return throwDefaultError({
2835
- output,
2836
- parsedBody,
2837
- errorCode
2838
- });
2839
- }
2840
- }, "de_GetResourceLFTagsCommandError");
2841
1992
  var de_GetTableObjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
2842
1993
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2843
- return de_GetTableObjectsCommandError(output, context);
1994
+ return de_CommandError(output, context);
2844
1995
  }
2845
1996
  const contents = (0, import_smithy_client.map)({
2846
1997
  $metadata: deserializeMetadata(output)
@@ -2848,51 +1999,14 @@ var de_GetTableObjectsCommand = /* @__PURE__ */ __name(async (output, context) =
2848
1999
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2849
2000
  const doc = (0, import_smithy_client.take)(data, {
2850
2001
  NextToken: import_smithy_client.expectString,
2851
- Objects: import_smithy_client._json
2852
- });
2853
- Object.assign(contents, doc);
2854
- return contents;
2855
- }, "de_GetTableObjectsCommand");
2856
- var de_GetTableObjectsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2857
- const parsedOutput = {
2858
- ...output,
2859
- body: await parseErrorBody(output.body, context)
2860
- };
2861
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2862
- switch (errorCode) {
2863
- case "EntityNotFoundException":
2864
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2865
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2866
- case "InternalServiceException":
2867
- case "com.amazonaws.lakeformation#InternalServiceException":
2868
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2869
- case "InvalidInputException":
2870
- case "com.amazonaws.lakeformation#InvalidInputException":
2871
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2872
- case "OperationTimeoutException":
2873
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2874
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2875
- case "ResourceNotReadyException":
2876
- case "com.amazonaws.lakeformation#ResourceNotReadyException":
2877
- throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
2878
- case "TransactionCanceledException":
2879
- case "com.amazonaws.lakeformation#TransactionCanceledException":
2880
- throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
2881
- case "TransactionCommittedException":
2882
- case "com.amazonaws.lakeformation#TransactionCommittedException":
2883
- throw await de_TransactionCommittedExceptionRes(parsedOutput, context);
2884
- default:
2885
- const parsedBody = parsedOutput.body;
2886
- return throwDefaultError({
2887
- output,
2888
- parsedBody,
2889
- errorCode
2890
- });
2891
- }
2892
- }, "de_GetTableObjectsCommandError");
2002
+ Objects: import_smithy_client._json
2003
+ });
2004
+ Object.assign(contents, doc);
2005
+ return contents;
2006
+ }, "de_GetTableObjectsCommand");
2893
2007
  var de_GetTemporaryGluePartitionCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
2894
2008
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2895
- return de_GetTemporaryGluePartitionCredentialsCommandError(output, context);
2009
+ return de_CommandError(output, context);
2896
2010
  }
2897
2011
  const contents = (0, import_smithy_client.map)({
2898
2012
  $metadata: deserializeMetadata(output)
@@ -2907,43 +2021,9 @@ var de_GetTemporaryGluePartitionCredentialsCommand = /* @__PURE__ */ __name(asyn
2907
2021
  Object.assign(contents, doc);
2908
2022
  return contents;
2909
2023
  }, "de_GetTemporaryGluePartitionCredentialsCommand");
2910
- var de_GetTemporaryGluePartitionCredentialsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2911
- const parsedOutput = {
2912
- ...output,
2913
- body: await parseErrorBody(output.body, context)
2914
- };
2915
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2916
- switch (errorCode) {
2917
- case "AccessDeniedException":
2918
- case "com.amazonaws.lakeformation#AccessDeniedException":
2919
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2920
- case "EntityNotFoundException":
2921
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2922
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2923
- case "InternalServiceException":
2924
- case "com.amazonaws.lakeformation#InternalServiceException":
2925
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2926
- case "InvalidInputException":
2927
- case "com.amazonaws.lakeformation#InvalidInputException":
2928
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2929
- case "OperationTimeoutException":
2930
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2931
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2932
- case "PermissionTypeMismatchException":
2933
- case "com.amazonaws.lakeformation#PermissionTypeMismatchException":
2934
- throw await de_PermissionTypeMismatchExceptionRes(parsedOutput, context);
2935
- default:
2936
- const parsedBody = parsedOutput.body;
2937
- return throwDefaultError({
2938
- output,
2939
- parsedBody,
2940
- errorCode
2941
- });
2942
- }
2943
- }, "de_GetTemporaryGluePartitionCredentialsCommandError");
2944
2024
  var de_GetTemporaryGlueTableCredentialsCommand = /* @__PURE__ */ __name(async (output, context) => {
2945
2025
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2946
- return de_GetTemporaryGlueTableCredentialsCommandError(output, context);
2026
+ return de_CommandError(output, context);
2947
2027
  }
2948
2028
  const contents = (0, import_smithy_client.map)({
2949
2029
  $metadata: deserializeMetadata(output)
@@ -2959,43 +2039,9 @@ var de_GetTemporaryGlueTableCredentialsCommand = /* @__PURE__ */ __name(async (o
2959
2039
  Object.assign(contents, doc);
2960
2040
  return contents;
2961
2041
  }, "de_GetTemporaryGlueTableCredentialsCommand");
2962
- var de_GetTemporaryGlueTableCredentialsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2963
- const parsedOutput = {
2964
- ...output,
2965
- body: await parseErrorBody(output.body, context)
2966
- };
2967
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2968
- switch (errorCode) {
2969
- case "AccessDeniedException":
2970
- case "com.amazonaws.lakeformation#AccessDeniedException":
2971
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2972
- case "EntityNotFoundException":
2973
- case "com.amazonaws.lakeformation#EntityNotFoundException":
2974
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
2975
- case "InternalServiceException":
2976
- case "com.amazonaws.lakeformation#InternalServiceException":
2977
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
2978
- case "InvalidInputException":
2979
- case "com.amazonaws.lakeformation#InvalidInputException":
2980
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
2981
- case "OperationTimeoutException":
2982
- case "com.amazonaws.lakeformation#OperationTimeoutException":
2983
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2984
- case "PermissionTypeMismatchException":
2985
- case "com.amazonaws.lakeformation#PermissionTypeMismatchException":
2986
- throw await de_PermissionTypeMismatchExceptionRes(parsedOutput, context);
2987
- default:
2988
- const parsedBody = parsedOutput.body;
2989
- return throwDefaultError({
2990
- output,
2991
- parsedBody,
2992
- errorCode
2993
- });
2994
- }
2995
- }, "de_GetTemporaryGlueTableCredentialsCommandError");
2996
2042
  var de_GetWorkUnitResultsCommand = /* @__PURE__ */ __name(async (output, context) => {
2997
2043
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2998
- return de_GetWorkUnitResultsCommandError(output, context);
2044
+ return de_CommandError(output, context);
2999
2045
  }
3000
2046
  const contents = (0, import_smithy_client.map)({
3001
2047
  $metadata: deserializeMetadata(output)
@@ -3005,40 +2051,9 @@ var de_GetWorkUnitResultsCommand = /* @__PURE__ */ __name(async (output, context
3005
2051
  contents.ResultStream = data;
3006
2052
  return contents;
3007
2053
  }, "de_GetWorkUnitResultsCommand");
3008
- var de_GetWorkUnitResultsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3009
- const parsedOutput = {
3010
- ...output,
3011
- body: await parseErrorBody(output.body, context)
3012
- };
3013
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3014
- switch (errorCode) {
3015
- case "AccessDeniedException":
3016
- case "com.amazonaws.lakeformation#AccessDeniedException":
3017
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3018
- case "ExpiredException":
3019
- case "com.amazonaws.lakeformation#ExpiredException":
3020
- throw await de_ExpiredExceptionRes(parsedOutput, context);
3021
- case "InternalServiceException":
3022
- case "com.amazonaws.lakeformation#InternalServiceException":
3023
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3024
- case "InvalidInputException":
3025
- case "com.amazonaws.lakeformation#InvalidInputException":
3026
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3027
- case "ThrottledException":
3028
- case "com.amazonaws.lakeformation#ThrottledException":
3029
- throw await de_ThrottledExceptionRes(parsedOutput, context);
3030
- default:
3031
- const parsedBody = parsedOutput.body;
3032
- return throwDefaultError({
3033
- output,
3034
- parsedBody,
3035
- errorCode
3036
- });
3037
- }
3038
- }, "de_GetWorkUnitResultsCommandError");
3039
2054
  var de_GetWorkUnitsCommand = /* @__PURE__ */ __name(async (output, context) => {
3040
2055
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3041
- return de_GetWorkUnitsCommandError(output, context);
2056
+ return de_CommandError(output, context);
3042
2057
  }
3043
2058
  const contents = (0, import_smithy_client.map)({
3044
2059
  $metadata: deserializeMetadata(output)
@@ -3052,40 +2067,9 @@ var de_GetWorkUnitsCommand = /* @__PURE__ */ __name(async (output, context) => {
3052
2067
  Object.assign(contents, doc);
3053
2068
  return contents;
3054
2069
  }, "de_GetWorkUnitsCommand");
3055
- var de_GetWorkUnitsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3056
- const parsedOutput = {
3057
- ...output,
3058
- body: await parseErrorBody(output.body, context)
3059
- };
3060
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3061
- switch (errorCode) {
3062
- case "AccessDeniedException":
3063
- case "com.amazonaws.lakeformation#AccessDeniedException":
3064
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3065
- case "ExpiredException":
3066
- case "com.amazonaws.lakeformation#ExpiredException":
3067
- throw await de_ExpiredExceptionRes(parsedOutput, context);
3068
- case "InternalServiceException":
3069
- case "com.amazonaws.lakeformation#InternalServiceException":
3070
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3071
- case "InvalidInputException":
3072
- case "com.amazonaws.lakeformation#InvalidInputException":
3073
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3074
- case "WorkUnitsNotReadyYetException":
3075
- case "com.amazonaws.lakeformation#WorkUnitsNotReadyYetException":
3076
- throw await de_WorkUnitsNotReadyYetExceptionRes(parsedOutput, context);
3077
- default:
3078
- const parsedBody = parsedOutput.body;
3079
- return throwDefaultError({
3080
- output,
3081
- parsedBody,
3082
- errorCode
3083
- });
3084
- }
3085
- }, "de_GetWorkUnitsCommandError");
3086
2070
  var de_GrantPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
3087
2071
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3088
- return de_GrantPermissionsCommandError(output, context);
2072
+ return de_CommandError(output, context);
3089
2073
  }
3090
2074
  const contents = (0, import_smithy_client.map)({
3091
2075
  $metadata: deserializeMetadata(output)
@@ -3093,34 +2077,9 @@ var de_GrantPermissionsCommand = /* @__PURE__ */ __name(async (output, context)
3093
2077
  await (0, import_smithy_client.collectBody)(output.body, context);
3094
2078
  return contents;
3095
2079
  }, "de_GrantPermissionsCommand");
3096
- var de_GrantPermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3097
- const parsedOutput = {
3098
- ...output,
3099
- body: await parseErrorBody(output.body, context)
3100
- };
3101
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3102
- switch (errorCode) {
3103
- case "ConcurrentModificationException":
3104
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
3105
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3106
- case "EntityNotFoundException":
3107
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3108
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3109
- case "InvalidInputException":
3110
- case "com.amazonaws.lakeformation#InvalidInputException":
3111
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3112
- default:
3113
- const parsedBody = parsedOutput.body;
3114
- return throwDefaultError({
3115
- output,
3116
- parsedBody,
3117
- errorCode
3118
- });
3119
- }
3120
- }, "de_GrantPermissionsCommandError");
3121
2080
  var de_ListDataCellsFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
3122
2081
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3123
- return de_ListDataCellsFilterCommandError(output, context);
2082
+ return de_CommandError(output, context);
3124
2083
  }
3125
2084
  const contents = (0, import_smithy_client.map)({
3126
2085
  $metadata: deserializeMetadata(output)
@@ -3133,37 +2092,9 @@ var de_ListDataCellsFilterCommand = /* @__PURE__ */ __name(async (output, contex
3133
2092
  Object.assign(contents, doc);
3134
2093
  return contents;
3135
2094
  }, "de_ListDataCellsFilterCommand");
3136
- var de_ListDataCellsFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
3137
- const parsedOutput = {
3138
- ...output,
3139
- body: await parseErrorBody(output.body, context)
3140
- };
3141
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3142
- switch (errorCode) {
3143
- case "AccessDeniedException":
3144
- case "com.amazonaws.lakeformation#AccessDeniedException":
3145
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3146
- case "InternalServiceException":
3147
- case "com.amazonaws.lakeformation#InternalServiceException":
3148
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3149
- case "InvalidInputException":
3150
- case "com.amazonaws.lakeformation#InvalidInputException":
3151
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3152
- case "OperationTimeoutException":
3153
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3154
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3155
- default:
3156
- const parsedBody = parsedOutput.body;
3157
- return throwDefaultError({
3158
- output,
3159
- parsedBody,
3160
- errorCode
3161
- });
3162
- }
3163
- }, "de_ListDataCellsFilterCommandError");
3164
2095
  var de_ListLakeFormationOptInsCommand = /* @__PURE__ */ __name(async (output, context) => {
3165
2096
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3166
- return de_ListLakeFormationOptInsCommandError(output, context);
2097
+ return de_CommandError(output, context);
3167
2098
  }
3168
2099
  const contents = (0, import_smithy_client.map)({
3169
2100
  $metadata: deserializeMetadata(output)
@@ -3176,37 +2107,9 @@ var de_ListLakeFormationOptInsCommand = /* @__PURE__ */ __name(async (output, co
3176
2107
  Object.assign(contents, doc);
3177
2108
  return contents;
3178
2109
  }, "de_ListLakeFormationOptInsCommand");
3179
- var de_ListLakeFormationOptInsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3180
- const parsedOutput = {
3181
- ...output,
3182
- body: await parseErrorBody(output.body, context)
3183
- };
3184
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3185
- switch (errorCode) {
3186
- case "AccessDeniedException":
3187
- case "com.amazonaws.lakeformation#AccessDeniedException":
3188
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3189
- case "InternalServiceException":
3190
- case "com.amazonaws.lakeformation#InternalServiceException":
3191
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3192
- case "InvalidInputException":
3193
- case "com.amazonaws.lakeformation#InvalidInputException":
3194
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3195
- case "OperationTimeoutException":
3196
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3197
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3198
- default:
3199
- const parsedBody = parsedOutput.body;
3200
- return throwDefaultError({
3201
- output,
3202
- parsedBody,
3203
- errorCode
3204
- });
3205
- }
3206
- }, "de_ListLakeFormationOptInsCommandError");
3207
2110
  var de_ListLFTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
3208
2111
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3209
- return de_ListLFTagsCommandError(output, context);
2112
+ return de_CommandError(output, context);
3210
2113
  }
3211
2114
  const contents = (0, import_smithy_client.map)({
3212
2115
  $metadata: deserializeMetadata(output)
@@ -3219,40 +2122,9 @@ var de_ListLFTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
3219
2122
  Object.assign(contents, doc);
3220
2123
  return contents;
3221
2124
  }, "de_ListLFTagsCommand");
3222
- var de_ListLFTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3223
- const parsedOutput = {
3224
- ...output,
3225
- body: await parseErrorBody(output.body, context)
3226
- };
3227
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3228
- switch (errorCode) {
3229
- case "AccessDeniedException":
3230
- case "com.amazonaws.lakeformation#AccessDeniedException":
3231
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3232
- case "EntityNotFoundException":
3233
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3234
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3235
- case "InternalServiceException":
3236
- case "com.amazonaws.lakeformation#InternalServiceException":
3237
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3238
- case "InvalidInputException":
3239
- case "com.amazonaws.lakeformation#InvalidInputException":
3240
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3241
- case "OperationTimeoutException":
3242
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3243
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3244
- default:
3245
- const parsedBody = parsedOutput.body;
3246
- return throwDefaultError({
3247
- output,
3248
- parsedBody,
3249
- errorCode
3250
- });
3251
- }
3252
- }, "de_ListLFTagsCommandError");
3253
2125
  var de_ListPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
3254
2126
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3255
- return de_ListPermissionsCommandError(output, context);
2127
+ return de_CommandError(output, context);
3256
2128
  }
3257
2129
  const contents = (0, import_smithy_client.map)({
3258
2130
  $metadata: deserializeMetadata(output)
@@ -3263,36 +2135,11 @@ var de_ListPermissionsCommand = /* @__PURE__ */ __name(async (output, context) =
3263
2135
  PrincipalResourcePermissions: (_) => de_PrincipalResourcePermissionsList(_, context)
3264
2136
  });
3265
2137
  Object.assign(contents, doc);
3266
- return contents;
3267
- }, "de_ListPermissionsCommand");
3268
- var de_ListPermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3269
- const parsedOutput = {
3270
- ...output,
3271
- body: await parseErrorBody(output.body, context)
3272
- };
3273
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3274
- switch (errorCode) {
3275
- case "InternalServiceException":
3276
- case "com.amazonaws.lakeformation#InternalServiceException":
3277
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3278
- case "InvalidInputException":
3279
- case "com.amazonaws.lakeformation#InvalidInputException":
3280
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3281
- case "OperationTimeoutException":
3282
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3283
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3284
- default:
3285
- const parsedBody = parsedOutput.body;
3286
- return throwDefaultError({
3287
- output,
3288
- parsedBody,
3289
- errorCode
3290
- });
3291
- }
3292
- }, "de_ListPermissionsCommandError");
2138
+ return contents;
2139
+ }, "de_ListPermissionsCommand");
3293
2140
  var de_ListResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
3294
2141
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3295
- return de_ListResourcesCommandError(output, context);
2142
+ return de_CommandError(output, context);
3296
2143
  }
3297
2144
  const contents = (0, import_smithy_client.map)({
3298
2145
  $metadata: deserializeMetadata(output)
@@ -3305,34 +2152,9 @@ var de_ListResourcesCommand = /* @__PURE__ */ __name(async (output, context) =>
3305
2152
  Object.assign(contents, doc);
3306
2153
  return contents;
3307
2154
  }, "de_ListResourcesCommand");
3308
- var de_ListResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3309
- const parsedOutput = {
3310
- ...output,
3311
- body: await parseErrorBody(output.body, context)
3312
- };
3313
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3314
- switch (errorCode) {
3315
- case "InternalServiceException":
3316
- case "com.amazonaws.lakeformation#InternalServiceException":
3317
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3318
- case "InvalidInputException":
3319
- case "com.amazonaws.lakeformation#InvalidInputException":
3320
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3321
- case "OperationTimeoutException":
3322
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3323
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3324
- default:
3325
- const parsedBody = parsedOutput.body;
3326
- return throwDefaultError({
3327
- output,
3328
- parsedBody,
3329
- errorCode
3330
- });
3331
- }
3332
- }, "de_ListResourcesCommandError");
3333
2155
  var de_ListTableStorageOptimizersCommand = /* @__PURE__ */ __name(async (output, context) => {
3334
2156
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3335
- return de_ListTableStorageOptimizersCommandError(output, context);
2157
+ return de_CommandError(output, context);
3336
2158
  }
3337
2159
  const contents = (0, import_smithy_client.map)({
3338
2160
  $metadata: deserializeMetadata(output)
@@ -3345,37 +2167,9 @@ var de_ListTableStorageOptimizersCommand = /* @__PURE__ */ __name(async (output,
3345
2167
  Object.assign(contents, doc);
3346
2168
  return contents;
3347
2169
  }, "de_ListTableStorageOptimizersCommand");
3348
- var de_ListTableStorageOptimizersCommandError = /* @__PURE__ */ __name(async (output, context) => {
3349
- const parsedOutput = {
3350
- ...output,
3351
- body: await parseErrorBody(output.body, context)
3352
- };
3353
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3354
- switch (errorCode) {
3355
- case "AccessDeniedException":
3356
- case "com.amazonaws.lakeformation#AccessDeniedException":
3357
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3358
- case "EntityNotFoundException":
3359
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3360
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3361
- case "InternalServiceException":
3362
- case "com.amazonaws.lakeformation#InternalServiceException":
3363
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3364
- case "InvalidInputException":
3365
- case "com.amazonaws.lakeformation#InvalidInputException":
3366
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3367
- default:
3368
- const parsedBody = parsedOutput.body;
3369
- return throwDefaultError({
3370
- output,
3371
- parsedBody,
3372
- errorCode
3373
- });
3374
- }
3375
- }, "de_ListTableStorageOptimizersCommandError");
3376
2170
  var de_ListTransactionsCommand = /* @__PURE__ */ __name(async (output, context) => {
3377
2171
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3378
- return de_ListTransactionsCommandError(output, context);
2172
+ return de_CommandError(output, context);
3379
2173
  }
3380
2174
  const contents = (0, import_smithy_client.map)({
3381
2175
  $metadata: deserializeMetadata(output)
@@ -3388,34 +2182,9 @@ var de_ListTransactionsCommand = /* @__PURE__ */ __name(async (output, context)
3388
2182
  Object.assign(contents, doc);
3389
2183
  return contents;
3390
2184
  }, "de_ListTransactionsCommand");
3391
- var de_ListTransactionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3392
- const parsedOutput = {
3393
- ...output,
3394
- body: await parseErrorBody(output.body, context)
3395
- };
3396
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3397
- switch (errorCode) {
3398
- case "InternalServiceException":
3399
- case "com.amazonaws.lakeformation#InternalServiceException":
3400
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3401
- case "InvalidInputException":
3402
- case "com.amazonaws.lakeformation#InvalidInputException":
3403
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3404
- case "OperationTimeoutException":
3405
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3406
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3407
- default:
3408
- const parsedBody = parsedOutput.body;
3409
- return throwDefaultError({
3410
- output,
3411
- parsedBody,
3412
- errorCode
3413
- });
3414
- }
3415
- }, "de_ListTransactionsCommandError");
3416
2185
  var de_PutDataLakeSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3417
2186
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3418
- return de_PutDataLakeSettingsCommandError(output, context);
2187
+ return de_CommandError(output, context);
3419
2188
  }
3420
2189
  const contents = (0, import_smithy_client.map)({
3421
2190
  $metadata: deserializeMetadata(output)
@@ -3423,31 +2192,9 @@ var de_PutDataLakeSettingsCommand = /* @__PURE__ */ __name(async (output, contex
3423
2192
  await (0, import_smithy_client.collectBody)(output.body, context);
3424
2193
  return contents;
3425
2194
  }, "de_PutDataLakeSettingsCommand");
3426
- var de_PutDataLakeSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3427
- const parsedOutput = {
3428
- ...output,
3429
- body: await parseErrorBody(output.body, context)
3430
- };
3431
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3432
- switch (errorCode) {
3433
- case "InternalServiceException":
3434
- case "com.amazonaws.lakeformation#InternalServiceException":
3435
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3436
- case "InvalidInputException":
3437
- case "com.amazonaws.lakeformation#InvalidInputException":
3438
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3439
- default:
3440
- const parsedBody = parsedOutput.body;
3441
- return throwDefaultError({
3442
- output,
3443
- parsedBody,
3444
- errorCode
3445
- });
3446
- }
3447
- }, "de_PutDataLakeSettingsCommandError");
3448
2195
  var de_RegisterResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3449
2196
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3450
- return de_RegisterResourceCommandError(output, context);
2197
+ return de_CommandError(output, context);
3451
2198
  }
3452
2199
  const contents = (0, import_smithy_client.map)({
3453
2200
  $metadata: deserializeMetadata(output)
@@ -3455,46 +2202,9 @@ var de_RegisterResourceCommand = /* @__PURE__ */ __name(async (output, context)
3455
2202
  await (0, import_smithy_client.collectBody)(output.body, context);
3456
2203
  return contents;
3457
2204
  }, "de_RegisterResourceCommand");
3458
- var de_RegisterResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3459
- const parsedOutput = {
3460
- ...output,
3461
- body: await parseErrorBody(output.body, context)
3462
- };
3463
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3464
- switch (errorCode) {
3465
- case "AccessDeniedException":
3466
- case "com.amazonaws.lakeformation#AccessDeniedException":
3467
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3468
- case "AlreadyExistsException":
3469
- case "com.amazonaws.lakeformation#AlreadyExistsException":
3470
- throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
3471
- case "EntityNotFoundException":
3472
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3473
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3474
- case "InternalServiceException":
3475
- case "com.amazonaws.lakeformation#InternalServiceException":
3476
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3477
- case "InvalidInputException":
3478
- case "com.amazonaws.lakeformation#InvalidInputException":
3479
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3480
- case "OperationTimeoutException":
3481
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3482
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3483
- case "ResourceNumberLimitExceededException":
3484
- case "com.amazonaws.lakeformation#ResourceNumberLimitExceededException":
3485
- throw await de_ResourceNumberLimitExceededExceptionRes(parsedOutput, context);
3486
- default:
3487
- const parsedBody = parsedOutput.body;
3488
- return throwDefaultError({
3489
- output,
3490
- parsedBody,
3491
- errorCode
3492
- });
3493
- }
3494
- }, "de_RegisterResourceCommandError");
3495
2205
  var de_RemoveLFTagsFromResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3496
2206
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3497
- return de_RemoveLFTagsFromResourceCommandError(output, context);
2207
+ return de_CommandError(output, context);
3498
2208
  }
3499
2209
  const contents = (0, import_smithy_client.map)({
3500
2210
  $metadata: deserializeMetadata(output)
@@ -3506,46 +2216,9 @@ var de_RemoveLFTagsFromResourceCommand = /* @__PURE__ */ __name(async (output, c
3506
2216
  Object.assign(contents, doc);
3507
2217
  return contents;
3508
2218
  }, "de_RemoveLFTagsFromResourceCommand");
3509
- var de_RemoveLFTagsFromResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3510
- const parsedOutput = {
3511
- ...output,
3512
- body: await parseErrorBody(output.body, context)
3513
- };
3514
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3515
- switch (errorCode) {
3516
- case "AccessDeniedException":
3517
- case "com.amazonaws.lakeformation#AccessDeniedException":
3518
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3519
- case "ConcurrentModificationException":
3520
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
3521
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3522
- case "EntityNotFoundException":
3523
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3524
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3525
- case "GlueEncryptionException":
3526
- case "com.amazonaws.lakeformation#GlueEncryptionException":
3527
- throw await de_GlueEncryptionExceptionRes(parsedOutput, context);
3528
- case "InternalServiceException":
3529
- case "com.amazonaws.lakeformation#InternalServiceException":
3530
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3531
- case "InvalidInputException":
3532
- case "com.amazonaws.lakeformation#InvalidInputException":
3533
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3534
- case "OperationTimeoutException":
3535
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3536
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3537
- default:
3538
- const parsedBody = parsedOutput.body;
3539
- return throwDefaultError({
3540
- output,
3541
- parsedBody,
3542
- errorCode
3543
- });
3544
- }
3545
- }, "de_RemoveLFTagsFromResourceCommandError");
3546
2219
  var de_RevokePermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
3547
2220
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3548
- return de_RevokePermissionsCommandError(output, context);
2221
+ return de_CommandError(output, context);
3549
2222
  }
3550
2223
  const contents = (0, import_smithy_client.map)({
3551
2224
  $metadata: deserializeMetadata(output)
@@ -3553,34 +2226,9 @@ var de_RevokePermissionsCommand = /* @__PURE__ */ __name(async (output, context)
3553
2226
  await (0, import_smithy_client.collectBody)(output.body, context);
3554
2227
  return contents;
3555
2228
  }, "de_RevokePermissionsCommand");
3556
- var de_RevokePermissionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3557
- const parsedOutput = {
3558
- ...output,
3559
- body: await parseErrorBody(output.body, context)
3560
- };
3561
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3562
- switch (errorCode) {
3563
- case "ConcurrentModificationException":
3564
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
3565
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3566
- case "EntityNotFoundException":
3567
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3568
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3569
- case "InvalidInputException":
3570
- case "com.amazonaws.lakeformation#InvalidInputException":
3571
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3572
- default:
3573
- const parsedBody = parsedOutput.body;
3574
- return throwDefaultError({
3575
- output,
3576
- parsedBody,
3577
- errorCode
3578
- });
3579
- }
3580
- }, "de_RevokePermissionsCommandError");
3581
2229
  var de_SearchDatabasesByLFTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
3582
2230
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3583
- return de_SearchDatabasesByLFTagsCommandError(output, context);
2231
+ return de_CommandError(output, context);
3584
2232
  }
3585
2233
  const contents = (0, import_smithy_client.map)({
3586
2234
  $metadata: deserializeMetadata(output)
@@ -3593,43 +2241,9 @@ var de_SearchDatabasesByLFTagsCommand = /* @__PURE__ */ __name(async (output, co
3593
2241
  Object.assign(contents, doc);
3594
2242
  return contents;
3595
2243
  }, "de_SearchDatabasesByLFTagsCommand");
3596
- var de_SearchDatabasesByLFTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3597
- const parsedOutput = {
3598
- ...output,
3599
- body: await parseErrorBody(output.body, context)
3600
- };
3601
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3602
- switch (errorCode) {
3603
- case "AccessDeniedException":
3604
- case "com.amazonaws.lakeformation#AccessDeniedException":
3605
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3606
- case "EntityNotFoundException":
3607
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3608
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3609
- case "GlueEncryptionException":
3610
- case "com.amazonaws.lakeformation#GlueEncryptionException":
3611
- throw await de_GlueEncryptionExceptionRes(parsedOutput, context);
3612
- case "InternalServiceException":
3613
- case "com.amazonaws.lakeformation#InternalServiceException":
3614
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3615
- case "InvalidInputException":
3616
- case "com.amazonaws.lakeformation#InvalidInputException":
3617
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3618
- case "OperationTimeoutException":
3619
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3620
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3621
- default:
3622
- const parsedBody = parsedOutput.body;
3623
- return throwDefaultError({
3624
- output,
3625
- parsedBody,
3626
- errorCode
3627
- });
3628
- }
3629
- }, "de_SearchDatabasesByLFTagsCommandError");
3630
2244
  var de_SearchTablesByLFTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
3631
2245
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3632
- return de_SearchTablesByLFTagsCommandError(output, context);
2246
+ return de_CommandError(output, context);
3633
2247
  }
3634
2248
  const contents = (0, import_smithy_client.map)({
3635
2249
  $metadata: deserializeMetadata(output)
@@ -3637,48 +2251,14 @@ var de_SearchTablesByLFTagsCommand = /* @__PURE__ */ __name(async (output, conte
3637
2251
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3638
2252
  const doc = (0, import_smithy_client.take)(data, {
3639
2253
  NextToken: import_smithy_client.expectString,
3640
- TableList: import_smithy_client._json
3641
- });
3642
- Object.assign(contents, doc);
3643
- return contents;
3644
- }, "de_SearchTablesByLFTagsCommand");
3645
- var de_SearchTablesByLFTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3646
- const parsedOutput = {
3647
- ...output,
3648
- body: await parseErrorBody(output.body, context)
3649
- };
3650
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3651
- switch (errorCode) {
3652
- case "AccessDeniedException":
3653
- case "com.amazonaws.lakeformation#AccessDeniedException":
3654
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3655
- case "EntityNotFoundException":
3656
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3657
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3658
- case "GlueEncryptionException":
3659
- case "com.amazonaws.lakeformation#GlueEncryptionException":
3660
- throw await de_GlueEncryptionExceptionRes(parsedOutput, context);
3661
- case "InternalServiceException":
3662
- case "com.amazonaws.lakeformation#InternalServiceException":
3663
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3664
- case "InvalidInputException":
3665
- case "com.amazonaws.lakeformation#InvalidInputException":
3666
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3667
- case "OperationTimeoutException":
3668
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3669
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3670
- default:
3671
- const parsedBody = parsedOutput.body;
3672
- return throwDefaultError({
3673
- output,
3674
- parsedBody,
3675
- errorCode
3676
- });
3677
- }
3678
- }, "de_SearchTablesByLFTagsCommandError");
2254
+ TableList: import_smithy_client._json
2255
+ });
2256
+ Object.assign(contents, doc);
2257
+ return contents;
2258
+ }, "de_SearchTablesByLFTagsCommand");
3679
2259
  var de_StartQueryPlanningCommand = /* @__PURE__ */ __name(async (output, context) => {
3680
2260
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3681
- return de_StartQueryPlanningCommandError(output, context);
2261
+ return de_CommandError(output, context);
3682
2262
  }
3683
2263
  const contents = (0, import_smithy_client.map)({
3684
2264
  $metadata: deserializeMetadata(output)
@@ -3690,37 +2270,9 @@ var de_StartQueryPlanningCommand = /* @__PURE__ */ __name(async (output, context
3690
2270
  Object.assign(contents, doc);
3691
2271
  return contents;
3692
2272
  }, "de_StartQueryPlanningCommand");
3693
- var de_StartQueryPlanningCommandError = /* @__PURE__ */ __name(async (output, context) => {
3694
- const parsedOutput = {
3695
- ...output,
3696
- body: await parseErrorBody(output.body, context)
3697
- };
3698
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3699
- switch (errorCode) {
3700
- case "AccessDeniedException":
3701
- case "com.amazonaws.lakeformation#AccessDeniedException":
3702
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3703
- case "InternalServiceException":
3704
- case "com.amazonaws.lakeformation#InternalServiceException":
3705
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3706
- case "InvalidInputException":
3707
- case "com.amazonaws.lakeformation#InvalidInputException":
3708
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3709
- case "ThrottledException":
3710
- case "com.amazonaws.lakeformation#ThrottledException":
3711
- throw await de_ThrottledExceptionRes(parsedOutput, context);
3712
- default:
3713
- const parsedBody = parsedOutput.body;
3714
- return throwDefaultError({
3715
- output,
3716
- parsedBody,
3717
- errorCode
3718
- });
3719
- }
3720
- }, "de_StartQueryPlanningCommandError");
3721
2273
  var de_StartTransactionCommand = /* @__PURE__ */ __name(async (output, context) => {
3722
2274
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3723
- return de_StartTransactionCommandError(output, context);
2275
+ return de_CommandError(output, context);
3724
2276
  }
3725
2277
  const contents = (0, import_smithy_client.map)({
3726
2278
  $metadata: deserializeMetadata(output)
@@ -3732,31 +2284,9 @@ var de_StartTransactionCommand = /* @__PURE__ */ __name(async (output, context)
3732
2284
  Object.assign(contents, doc);
3733
2285
  return contents;
3734
2286
  }, "de_StartTransactionCommand");
3735
- var de_StartTransactionCommandError = /* @__PURE__ */ __name(async (output, context) => {
3736
- const parsedOutput = {
3737
- ...output,
3738
- body: await parseErrorBody(output.body, context)
3739
- };
3740
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3741
- switch (errorCode) {
3742
- case "InternalServiceException":
3743
- case "com.amazonaws.lakeformation#InternalServiceException":
3744
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3745
- case "OperationTimeoutException":
3746
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3747
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3748
- default:
3749
- const parsedBody = parsedOutput.body;
3750
- return throwDefaultError({
3751
- output,
3752
- parsedBody,
3753
- errorCode
3754
- });
3755
- }
3756
- }, "de_StartTransactionCommandError");
3757
2287
  var de_UpdateDataCellsFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
3758
2288
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3759
- return de_UpdateDataCellsFilterCommandError(output, context);
2289
+ return de_CommandError(output, context);
3760
2290
  }
3761
2291
  const contents = (0, import_smithy_client.map)({
3762
2292
  $metadata: deserializeMetadata(output)
@@ -3764,43 +2294,9 @@ var de_UpdateDataCellsFilterCommand = /* @__PURE__ */ __name(async (output, cont
3764
2294
  await (0, import_smithy_client.collectBody)(output.body, context);
3765
2295
  return contents;
3766
2296
  }, "de_UpdateDataCellsFilterCommand");
3767
- var de_UpdateDataCellsFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
3768
- const parsedOutput = {
3769
- ...output,
3770
- body: await parseErrorBody(output.body, context)
3771
- };
3772
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3773
- switch (errorCode) {
3774
- case "AccessDeniedException":
3775
- case "com.amazonaws.lakeformation#AccessDeniedException":
3776
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3777
- case "ConcurrentModificationException":
3778
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
3779
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3780
- case "EntityNotFoundException":
3781
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3782
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3783
- case "InternalServiceException":
3784
- case "com.amazonaws.lakeformation#InternalServiceException":
3785
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3786
- case "InvalidInputException":
3787
- case "com.amazonaws.lakeformation#InvalidInputException":
3788
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3789
- case "OperationTimeoutException":
3790
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3791
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3792
- default:
3793
- const parsedBody = parsedOutput.body;
3794
- return throwDefaultError({
3795
- output,
3796
- parsedBody,
3797
- errorCode
3798
- });
3799
- }
3800
- }, "de_UpdateDataCellsFilterCommandError");
3801
2297
  var de_UpdateLakeFormationIdentityCenterConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
3802
2298
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3803
- return de_UpdateLakeFormationIdentityCenterConfigurationCommandError(output, context);
2299
+ return de_CommandError(output, context);
3804
2300
  }
3805
2301
  const contents = (0, import_smithy_client.map)({
3806
2302
  $metadata: deserializeMetadata(output)
@@ -3808,43 +2304,9 @@ var de_UpdateLakeFormationIdentityCenterConfigurationCommand = /* @__PURE__ */ _
3808
2304
  await (0, import_smithy_client.collectBody)(output.body, context);
3809
2305
  return contents;
3810
2306
  }, "de_UpdateLakeFormationIdentityCenterConfigurationCommand");
3811
- var de_UpdateLakeFormationIdentityCenterConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3812
- const parsedOutput = {
3813
- ...output,
3814
- body: await parseErrorBody(output.body, context)
3815
- };
3816
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3817
- switch (errorCode) {
3818
- case "AccessDeniedException":
3819
- case "com.amazonaws.lakeformation#AccessDeniedException":
3820
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3821
- case "ConcurrentModificationException":
3822
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
3823
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3824
- case "EntityNotFoundException":
3825
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3826
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3827
- case "InternalServiceException":
3828
- case "com.amazonaws.lakeformation#InternalServiceException":
3829
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3830
- case "InvalidInputException":
3831
- case "com.amazonaws.lakeformation#InvalidInputException":
3832
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3833
- case "OperationTimeoutException":
3834
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3835
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3836
- default:
3837
- const parsedBody = parsedOutput.body;
3838
- return throwDefaultError({
3839
- output,
3840
- parsedBody,
3841
- errorCode
3842
- });
3843
- }
3844
- }, "de_UpdateLakeFormationIdentityCenterConfigurationCommandError");
3845
2307
  var de_UpdateLFTagCommand = /* @__PURE__ */ __name(async (output, context) => {
3846
2308
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3847
- return de_UpdateLFTagCommandError(output, context);
2309
+ return de_CommandError(output, context);
3848
2310
  }
3849
2311
  const contents = (0, import_smithy_client.map)({
3850
2312
  $metadata: deserializeMetadata(output)
@@ -3852,43 +2314,9 @@ var de_UpdateLFTagCommand = /* @__PURE__ */ __name(async (output, context) => {
3852
2314
  await (0, import_smithy_client.collectBody)(output.body, context);
3853
2315
  return contents;
3854
2316
  }, "de_UpdateLFTagCommand");
3855
- var de_UpdateLFTagCommandError = /* @__PURE__ */ __name(async (output, context) => {
3856
- const parsedOutput = {
3857
- ...output,
3858
- body: await parseErrorBody(output.body, context)
3859
- };
3860
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3861
- switch (errorCode) {
3862
- case "AccessDeniedException":
3863
- case "com.amazonaws.lakeformation#AccessDeniedException":
3864
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3865
- case "ConcurrentModificationException":
3866
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
3867
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3868
- case "EntityNotFoundException":
3869
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3870
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3871
- case "InternalServiceException":
3872
- case "com.amazonaws.lakeformation#InternalServiceException":
3873
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3874
- case "InvalidInputException":
3875
- case "com.amazonaws.lakeformation#InvalidInputException":
3876
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3877
- case "OperationTimeoutException":
3878
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3879
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3880
- default:
3881
- const parsedBody = parsedOutput.body;
3882
- return throwDefaultError({
3883
- output,
3884
- parsedBody,
3885
- errorCode
3886
- });
3887
- }
3888
- }, "de_UpdateLFTagCommandError");
3889
2317
  var de_UpdateResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3890
2318
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3891
- return de_UpdateResourceCommandError(output, context);
2319
+ return de_CommandError(output, context);
3892
2320
  }
3893
2321
  const contents = (0, import_smithy_client.map)({
3894
2322
  $metadata: deserializeMetadata(output)
@@ -3896,37 +2324,9 @@ var de_UpdateResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
3896
2324
  await (0, import_smithy_client.collectBody)(output.body, context);
3897
2325
  return contents;
3898
2326
  }, "de_UpdateResourceCommand");
3899
- var de_UpdateResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3900
- const parsedOutput = {
3901
- ...output,
3902
- body: await parseErrorBody(output.body, context)
3903
- };
3904
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3905
- switch (errorCode) {
3906
- case "EntityNotFoundException":
3907
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3908
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3909
- case "InternalServiceException":
3910
- case "com.amazonaws.lakeformation#InternalServiceException":
3911
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3912
- case "InvalidInputException":
3913
- case "com.amazonaws.lakeformation#InvalidInputException":
3914
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3915
- case "OperationTimeoutException":
3916
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3917
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3918
- default:
3919
- const parsedBody = parsedOutput.body;
3920
- return throwDefaultError({
3921
- output,
3922
- parsedBody,
3923
- errorCode
3924
- });
3925
- }
3926
- }, "de_UpdateResourceCommandError");
3927
2327
  var de_UpdateTableObjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
3928
2328
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3929
- return de_UpdateTableObjectsCommandError(output, context);
2329
+ return de_CommandError(output, context);
3930
2330
  }
3931
2331
  const contents = (0, import_smithy_client.map)({
3932
2332
  $metadata: deserializeMetadata(output)
@@ -3934,52 +2334,9 @@ var de_UpdateTableObjectsCommand = /* @__PURE__ */ __name(async (output, context
3934
2334
  await (0, import_smithy_client.collectBody)(output.body, context);
3935
2335
  return contents;
3936
2336
  }, "de_UpdateTableObjectsCommand");
3937
- var de_UpdateTableObjectsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3938
- const parsedOutput = {
3939
- ...output,
3940
- body: await parseErrorBody(output.body, context)
3941
- };
3942
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3943
- switch (errorCode) {
3944
- case "ConcurrentModificationException":
3945
- case "com.amazonaws.lakeformation#ConcurrentModificationException":
3946
- throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
3947
- case "EntityNotFoundException":
3948
- case "com.amazonaws.lakeformation#EntityNotFoundException":
3949
- throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
3950
- case "InternalServiceException":
3951
- case "com.amazonaws.lakeformation#InternalServiceException":
3952
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
3953
- case "InvalidInputException":
3954
- case "com.amazonaws.lakeformation#InvalidInputException":
3955
- throw await de_InvalidInputExceptionRes(parsedOutput, context);
3956
- case "OperationTimeoutException":
3957
- case "com.amazonaws.lakeformation#OperationTimeoutException":
3958
- throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
3959
- case "ResourceNotReadyException":
3960
- case "com.amazonaws.lakeformation#ResourceNotReadyException":
3961
- throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
3962
- case "TransactionCanceledException":
3963
- case "com.amazonaws.lakeformation#TransactionCanceledException":
3964
- throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
3965
- case "TransactionCommitInProgressException":
3966
- case "com.amazonaws.lakeformation#TransactionCommitInProgressException":
3967
- throw await de_TransactionCommitInProgressExceptionRes(parsedOutput, context);
3968
- case "TransactionCommittedException":
3969
- case "com.amazonaws.lakeformation#TransactionCommittedException":
3970
- throw await de_TransactionCommittedExceptionRes(parsedOutput, context);
3971
- default:
3972
- const parsedBody = parsedOutput.body;
3973
- return throwDefaultError({
3974
- output,
3975
- parsedBody,
3976
- errorCode
3977
- });
3978
- }
3979
- }, "de_UpdateTableObjectsCommandError");
3980
2337
  var de_UpdateTableStorageOptimizerCommand = /* @__PURE__ */ __name(async (output, context) => {
3981
2338
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3982
- return de_UpdateTableStorageOptimizerCommandError(output, context);
2339
+ return de_CommandError(output, context);
3983
2340
  }
3984
2341
  const contents = (0, import_smithy_client.map)({
3985
2342
  $metadata: deserializeMetadata(output)
@@ -3991,7 +2348,7 @@ var de_UpdateTableStorageOptimizerCommand = /* @__PURE__ */ __name(async (output
3991
2348
  Object.assign(contents, doc);
3992
2349
  return contents;
3993
2350
  }, "de_UpdateTableStorageOptimizerCommand");
3994
- var de_UpdateTableStorageOptimizerCommandError = /* @__PURE__ */ __name(async (output, context) => {
2351
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
3995
2352
  const parsedOutput = {
3996
2353
  ...output,
3997
2354
  body: await parseErrorBody(output.body, context)
@@ -4001,6 +2358,9 @@ var de_UpdateTableStorageOptimizerCommandError = /* @__PURE__ */ __name(async (o
4001
2358
  case "AccessDeniedException":
4002
2359
  case "com.amazonaws.lakeformation#AccessDeniedException":
4003
2360
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2361
+ case "ConcurrentModificationException":
2362
+ case "com.amazonaws.lakeformation#ConcurrentModificationException":
2363
+ throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
4004
2364
  case "EntityNotFoundException":
4005
2365
  case "com.amazonaws.lakeformation#EntityNotFoundException":
4006
2366
  throw await de_EntityNotFoundExceptionRes(parsedOutput, context);
@@ -4010,6 +2370,45 @@ var de_UpdateTableStorageOptimizerCommandError = /* @__PURE__ */ __name(async (o
4010
2370
  case "InvalidInputException":
4011
2371
  case "com.amazonaws.lakeformation#InvalidInputException":
4012
2372
  throw await de_InvalidInputExceptionRes(parsedOutput, context);
2373
+ case "OperationTimeoutException":
2374
+ case "com.amazonaws.lakeformation#OperationTimeoutException":
2375
+ throw await de_OperationTimeoutExceptionRes(parsedOutput, context);
2376
+ case "TransactionCommitInProgressException":
2377
+ case "com.amazonaws.lakeformation#TransactionCommitInProgressException":
2378
+ throw await de_TransactionCommitInProgressExceptionRes(parsedOutput, context);
2379
+ case "TransactionCommittedException":
2380
+ case "com.amazonaws.lakeformation#TransactionCommittedException":
2381
+ throw await de_TransactionCommittedExceptionRes(parsedOutput, context);
2382
+ case "TransactionCanceledException":
2383
+ case "com.amazonaws.lakeformation#TransactionCanceledException":
2384
+ throw await de_TransactionCanceledExceptionRes(parsedOutput, context);
2385
+ case "AlreadyExistsException":
2386
+ case "com.amazonaws.lakeformation#AlreadyExistsException":
2387
+ throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
2388
+ case "ResourceNumberLimitExceededException":
2389
+ case "com.amazonaws.lakeformation#ResourceNumberLimitExceededException":
2390
+ throw await de_ResourceNumberLimitExceededExceptionRes(parsedOutput, context);
2391
+ case "ResourceNotReadyException":
2392
+ case "com.amazonaws.lakeformation#ResourceNotReadyException":
2393
+ throw await de_ResourceNotReadyExceptionRes(parsedOutput, context);
2394
+ case "ExpiredException":
2395
+ case "com.amazonaws.lakeformation#ExpiredException":
2396
+ throw await de_ExpiredExceptionRes(parsedOutput, context);
2397
+ case "StatisticsNotReadyYetException":
2398
+ case "com.amazonaws.lakeformation#StatisticsNotReadyYetException":
2399
+ throw await de_StatisticsNotReadyYetExceptionRes(parsedOutput, context);
2400
+ case "ThrottledException":
2401
+ case "com.amazonaws.lakeformation#ThrottledException":
2402
+ throw await de_ThrottledExceptionRes(parsedOutput, context);
2403
+ case "GlueEncryptionException":
2404
+ case "com.amazonaws.lakeformation#GlueEncryptionException":
2405
+ throw await de_GlueEncryptionExceptionRes(parsedOutput, context);
2406
+ case "PermissionTypeMismatchException":
2407
+ case "com.amazonaws.lakeformation#PermissionTypeMismatchException":
2408
+ throw await de_PermissionTypeMismatchExceptionRes(parsedOutput, context);
2409
+ case "WorkUnitsNotReadyYetException":
2410
+ case "com.amazonaws.lakeformation#WorkUnitsNotReadyYetException":
2411
+ throw await de_WorkUnitsNotReadyYetExceptionRes(parsedOutput, context);
4013
2412
  default:
4014
2413
  const parsedBody = parsedOutput.body;
4015
2414
  return throwDefaultError({
@@ -4018,7 +2417,7 @@ var de_UpdateTableStorageOptimizerCommandError = /* @__PURE__ */ __name(async (o
4018
2417
  errorCode
4019
2418
  });
4020
2419
  }
4021
- }, "de_UpdateTableStorageOptimizerCommandError");
2420
+ }, "de_CommandError");
4022
2421
  var throwDefaultError = (0, import_smithy_client.withBaseException)(LakeFormationServiceException);
4023
2422
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4024
2423
  const contents = (0, import_smithy_client.map)({});