@aws-sdk/client-customer-profiles 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
@@ -1647,7 +1647,7 @@ var se_UpdateProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
1647
1647
  }, "se_UpdateProfileCommand");
1648
1648
  var de_AddProfileKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
1649
1649
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1650
- return de_AddProfileKeyCommandError(output, context);
1650
+ return de_CommandError(output, context);
1651
1651
  }
1652
1652
  const contents = (0, import_smithy_client.map)({
1653
1653
  $metadata: deserializeMetadata(output)
@@ -1660,40 +1660,9 @@ var de_AddProfileKeyCommand = /* @__PURE__ */ __name(async (output, context) =>
1660
1660
  Object.assign(contents, doc);
1661
1661
  return contents;
1662
1662
  }, "de_AddProfileKeyCommand");
1663
- var de_AddProfileKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1664
- const parsedOutput = {
1665
- ...output,
1666
- body: await parseErrorBody(output.body, context)
1667
- };
1668
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1669
- switch (errorCode) {
1670
- case "AccessDeniedException":
1671
- case "com.amazonaws.customerprofiles#AccessDeniedException":
1672
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1673
- case "BadRequestException":
1674
- case "com.amazonaws.customerprofiles#BadRequestException":
1675
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1676
- case "InternalServerException":
1677
- case "com.amazonaws.customerprofiles#InternalServerException":
1678
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1679
- case "ResourceNotFoundException":
1680
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
1681
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1682
- case "ThrottlingException":
1683
- case "com.amazonaws.customerprofiles#ThrottlingException":
1684
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1685
- default:
1686
- const parsedBody = parsedOutput.body;
1687
- return throwDefaultError({
1688
- output,
1689
- parsedBody,
1690
- errorCode
1691
- });
1692
- }
1693
- }, "de_AddProfileKeyCommandError");
1694
1663
  var de_CreateCalculatedAttributeDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
1695
1664
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1696
- return de_CreateCalculatedAttributeDefinitionCommandError(output, context);
1665
+ return de_CommandError(output, context);
1697
1666
  }
1698
1667
  const contents = (0, import_smithy_client.map)({
1699
1668
  $metadata: deserializeMetadata(output)
@@ -1713,40 +1682,9 @@ var de_CreateCalculatedAttributeDefinitionCommand = /* @__PURE__ */ __name(async
1713
1682
  Object.assign(contents, doc);
1714
1683
  return contents;
1715
1684
  }, "de_CreateCalculatedAttributeDefinitionCommand");
1716
- var de_CreateCalculatedAttributeDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1717
- const parsedOutput = {
1718
- ...output,
1719
- body: await parseErrorBody(output.body, context)
1720
- };
1721
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1722
- switch (errorCode) {
1723
- case "AccessDeniedException":
1724
- case "com.amazonaws.customerprofiles#AccessDeniedException":
1725
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1726
- case "BadRequestException":
1727
- case "com.amazonaws.customerprofiles#BadRequestException":
1728
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1729
- case "InternalServerException":
1730
- case "com.amazonaws.customerprofiles#InternalServerException":
1731
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1732
- case "ResourceNotFoundException":
1733
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
1734
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1735
- case "ThrottlingException":
1736
- case "com.amazonaws.customerprofiles#ThrottlingException":
1737
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1738
- default:
1739
- const parsedBody = parsedOutput.body;
1740
- return throwDefaultError({
1741
- output,
1742
- parsedBody,
1743
- errorCode
1744
- });
1745
- }
1746
- }, "de_CreateCalculatedAttributeDefinitionCommandError");
1747
1685
  var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
1748
1686
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1749
- return de_CreateDomainCommandError(output, context);
1687
+ return de_CommandError(output, context);
1750
1688
  }
1751
1689
  const contents = (0, import_smithy_client.map)({
1752
1690
  $metadata: deserializeMetadata(output)
@@ -1766,40 +1704,9 @@ var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
1766
1704
  Object.assign(contents, doc);
1767
1705
  return contents;
1768
1706
  }, "de_CreateDomainCommand");
1769
- var de_CreateDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
1770
- const parsedOutput = {
1771
- ...output,
1772
- body: await parseErrorBody(output.body, context)
1773
- };
1774
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1775
- switch (errorCode) {
1776
- case "AccessDeniedException":
1777
- case "com.amazonaws.customerprofiles#AccessDeniedException":
1778
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1779
- case "BadRequestException":
1780
- case "com.amazonaws.customerprofiles#BadRequestException":
1781
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1782
- case "InternalServerException":
1783
- case "com.amazonaws.customerprofiles#InternalServerException":
1784
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1785
- case "ResourceNotFoundException":
1786
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
1787
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1788
- case "ThrottlingException":
1789
- case "com.amazonaws.customerprofiles#ThrottlingException":
1790
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1791
- default:
1792
- const parsedBody = parsedOutput.body;
1793
- return throwDefaultError({
1794
- output,
1795
- parsedBody,
1796
- errorCode
1797
- });
1798
- }
1799
- }, "de_CreateDomainCommandError");
1800
1707
  var de_CreateEventStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
1801
1708
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1802
- return de_CreateEventStreamCommandError(output, context);
1709
+ return de_CommandError(output, context);
1803
1710
  }
1804
1711
  const contents = (0, import_smithy_client.map)({
1805
1712
  $metadata: deserializeMetadata(output)
@@ -1812,40 +1719,9 @@ var de_CreateEventStreamCommand = /* @__PURE__ */ __name(async (output, context)
1812
1719
  Object.assign(contents, doc);
1813
1720
  return contents;
1814
1721
  }, "de_CreateEventStreamCommand");
1815
- var de_CreateEventStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
1816
- const parsedOutput = {
1817
- ...output,
1818
- body: await parseErrorBody(output.body, context)
1819
- };
1820
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1821
- switch (errorCode) {
1822
- case "AccessDeniedException":
1823
- case "com.amazonaws.customerprofiles#AccessDeniedException":
1824
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1825
- case "BadRequestException":
1826
- case "com.amazonaws.customerprofiles#BadRequestException":
1827
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1828
- case "InternalServerException":
1829
- case "com.amazonaws.customerprofiles#InternalServerException":
1830
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1831
- case "ResourceNotFoundException":
1832
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
1833
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1834
- case "ThrottlingException":
1835
- case "com.amazonaws.customerprofiles#ThrottlingException":
1836
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1837
- default:
1838
- const parsedBody = parsedOutput.body;
1839
- return throwDefaultError({
1840
- output,
1841
- parsedBody,
1842
- errorCode
1843
- });
1844
- }
1845
- }, "de_CreateEventStreamCommandError");
1846
1722
  var de_CreateIntegrationWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
1847
1723
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1848
- return de_CreateIntegrationWorkflowCommandError(output, context);
1724
+ return de_CommandError(output, context);
1849
1725
  }
1850
1726
  const contents = (0, import_smithy_client.map)({
1851
1727
  $metadata: deserializeMetadata(output)
@@ -1858,40 +1734,9 @@ var de_CreateIntegrationWorkflowCommand = /* @__PURE__ */ __name(async (output,
1858
1734
  Object.assign(contents, doc);
1859
1735
  return contents;
1860
1736
  }, "de_CreateIntegrationWorkflowCommand");
1861
- var de_CreateIntegrationWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
1862
- const parsedOutput = {
1863
- ...output,
1864
- body: await parseErrorBody(output.body, context)
1865
- };
1866
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1867
- switch (errorCode) {
1868
- case "AccessDeniedException":
1869
- case "com.amazonaws.customerprofiles#AccessDeniedException":
1870
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1871
- case "BadRequestException":
1872
- case "com.amazonaws.customerprofiles#BadRequestException":
1873
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1874
- case "InternalServerException":
1875
- case "com.amazonaws.customerprofiles#InternalServerException":
1876
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1877
- case "ResourceNotFoundException":
1878
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
1879
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1880
- case "ThrottlingException":
1881
- case "com.amazonaws.customerprofiles#ThrottlingException":
1882
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1883
- default:
1884
- const parsedBody = parsedOutput.body;
1885
- return throwDefaultError({
1886
- output,
1887
- parsedBody,
1888
- errorCode
1889
- });
1890
- }
1891
- }, "de_CreateIntegrationWorkflowCommandError");
1892
1737
  var de_CreateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
1893
1738
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1894
- return de_CreateProfileCommandError(output, context);
1739
+ return de_CommandError(output, context);
1895
1740
  }
1896
1741
  const contents = (0, import_smithy_client.map)({
1897
1742
  $metadata: deserializeMetadata(output)
@@ -1903,40 +1748,9 @@ var de_CreateProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
1903
1748
  Object.assign(contents, doc);
1904
1749
  return contents;
1905
1750
  }, "de_CreateProfileCommand");
1906
- var de_CreateProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
1907
- const parsedOutput = {
1908
- ...output,
1909
- body: await parseErrorBody(output.body, context)
1910
- };
1911
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1912
- switch (errorCode) {
1913
- case "AccessDeniedException":
1914
- case "com.amazonaws.customerprofiles#AccessDeniedException":
1915
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1916
- case "BadRequestException":
1917
- case "com.amazonaws.customerprofiles#BadRequestException":
1918
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1919
- case "InternalServerException":
1920
- case "com.amazonaws.customerprofiles#InternalServerException":
1921
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1922
- case "ResourceNotFoundException":
1923
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
1924
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1925
- case "ThrottlingException":
1926
- case "com.amazonaws.customerprofiles#ThrottlingException":
1927
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1928
- default:
1929
- const parsedBody = parsedOutput.body;
1930
- return throwDefaultError({
1931
- output,
1932
- parsedBody,
1933
- errorCode
1934
- });
1935
- }
1936
- }, "de_CreateProfileCommandError");
1937
1751
  var de_DeleteCalculatedAttributeDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
1938
1752
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1939
- return de_DeleteCalculatedAttributeDefinitionCommandError(output, context);
1753
+ return de_CommandError(output, context);
1940
1754
  }
1941
1755
  const contents = (0, import_smithy_client.map)({
1942
1756
  $metadata: deserializeMetadata(output)
@@ -1944,40 +1758,9 @@ var de_DeleteCalculatedAttributeDefinitionCommand = /* @__PURE__ */ __name(async
1944
1758
  await (0, import_smithy_client.collectBody)(output.body, context);
1945
1759
  return contents;
1946
1760
  }, "de_DeleteCalculatedAttributeDefinitionCommand");
1947
- var de_DeleteCalculatedAttributeDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
1948
- const parsedOutput = {
1949
- ...output,
1950
- body: await parseErrorBody(output.body, context)
1951
- };
1952
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1953
- switch (errorCode) {
1954
- case "AccessDeniedException":
1955
- case "com.amazonaws.customerprofiles#AccessDeniedException":
1956
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1957
- case "BadRequestException":
1958
- case "com.amazonaws.customerprofiles#BadRequestException":
1959
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1960
- case "InternalServerException":
1961
- case "com.amazonaws.customerprofiles#InternalServerException":
1962
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1963
- case "ResourceNotFoundException":
1964
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
1965
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1966
- case "ThrottlingException":
1967
- case "com.amazonaws.customerprofiles#ThrottlingException":
1968
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1969
- default:
1970
- const parsedBody = parsedOutput.body;
1971
- return throwDefaultError({
1972
- output,
1973
- parsedBody,
1974
- errorCode
1975
- });
1976
- }
1977
- }, "de_DeleteCalculatedAttributeDefinitionCommandError");
1978
1761
  var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
1979
1762
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1980
- return de_DeleteDomainCommandError(output, context);
1763
+ return de_CommandError(output, context);
1981
1764
  }
1982
1765
  const contents = (0, import_smithy_client.map)({
1983
1766
  $metadata: deserializeMetadata(output)
@@ -1989,40 +1772,9 @@ var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
1989
1772
  Object.assign(contents, doc);
1990
1773
  return contents;
1991
1774
  }, "de_DeleteDomainCommand");
1992
- var de_DeleteDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
1993
- const parsedOutput = {
1994
- ...output,
1995
- body: await parseErrorBody(output.body, context)
1996
- };
1997
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1998
- switch (errorCode) {
1999
- case "AccessDeniedException":
2000
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2001
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2002
- case "BadRequestException":
2003
- case "com.amazonaws.customerprofiles#BadRequestException":
2004
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2005
- case "InternalServerException":
2006
- case "com.amazonaws.customerprofiles#InternalServerException":
2007
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2008
- case "ResourceNotFoundException":
2009
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2010
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2011
- case "ThrottlingException":
2012
- case "com.amazonaws.customerprofiles#ThrottlingException":
2013
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2014
- default:
2015
- const parsedBody = parsedOutput.body;
2016
- return throwDefaultError({
2017
- output,
2018
- parsedBody,
2019
- errorCode
2020
- });
2021
- }
2022
- }, "de_DeleteDomainCommandError");
2023
1775
  var de_DeleteEventStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
2024
1776
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2025
- return de_DeleteEventStreamCommandError(output, context);
1777
+ return de_CommandError(output, context);
2026
1778
  }
2027
1779
  const contents = (0, import_smithy_client.map)({
2028
1780
  $metadata: deserializeMetadata(output)
@@ -2030,40 +1782,9 @@ var de_DeleteEventStreamCommand = /* @__PURE__ */ __name(async (output, context)
2030
1782
  await (0, import_smithy_client.collectBody)(output.body, context);
2031
1783
  return contents;
2032
1784
  }, "de_DeleteEventStreamCommand");
2033
- var de_DeleteEventStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
2034
- const parsedOutput = {
2035
- ...output,
2036
- body: await parseErrorBody(output.body, context)
2037
- };
2038
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2039
- switch (errorCode) {
2040
- case "AccessDeniedException":
2041
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2042
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2043
- case "BadRequestException":
2044
- case "com.amazonaws.customerprofiles#BadRequestException":
2045
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2046
- case "InternalServerException":
2047
- case "com.amazonaws.customerprofiles#InternalServerException":
2048
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2049
- case "ResourceNotFoundException":
2050
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2051
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2052
- case "ThrottlingException":
2053
- case "com.amazonaws.customerprofiles#ThrottlingException":
2054
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2055
- default:
2056
- const parsedBody = parsedOutput.body;
2057
- return throwDefaultError({
2058
- output,
2059
- parsedBody,
2060
- errorCode
2061
- });
2062
- }
2063
- }, "de_DeleteEventStreamCommandError");
2064
1785
  var de_DeleteIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
2065
1786
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2066
- return de_DeleteIntegrationCommandError(output, context);
1787
+ return de_CommandError(output, context);
2067
1788
  }
2068
1789
  const contents = (0, import_smithy_client.map)({
2069
1790
  $metadata: deserializeMetadata(output)
@@ -2075,40 +1796,9 @@ var de_DeleteIntegrationCommand = /* @__PURE__ */ __name(async (output, context)
2075
1796
  Object.assign(contents, doc);
2076
1797
  return contents;
2077
1798
  }, "de_DeleteIntegrationCommand");
2078
- var de_DeleteIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2079
- const parsedOutput = {
2080
- ...output,
2081
- body: await parseErrorBody(output.body, context)
2082
- };
2083
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2084
- switch (errorCode) {
2085
- case "AccessDeniedException":
2086
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2087
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2088
- case "BadRequestException":
2089
- case "com.amazonaws.customerprofiles#BadRequestException":
2090
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2091
- case "InternalServerException":
2092
- case "com.amazonaws.customerprofiles#InternalServerException":
2093
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2094
- case "ResourceNotFoundException":
2095
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2096
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2097
- case "ThrottlingException":
2098
- case "com.amazonaws.customerprofiles#ThrottlingException":
2099
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2100
- default:
2101
- const parsedBody = parsedOutput.body;
2102
- return throwDefaultError({
2103
- output,
2104
- parsedBody,
2105
- errorCode
2106
- });
2107
- }
2108
- }, "de_DeleteIntegrationCommandError");
2109
1799
  var de_DeleteProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
2110
1800
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2111
- return de_DeleteProfileCommandError(output, context);
1801
+ return de_CommandError(output, context);
2112
1802
  }
2113
1803
  const contents = (0, import_smithy_client.map)({
2114
1804
  $metadata: deserializeMetadata(output)
@@ -2120,40 +1810,9 @@ var de_DeleteProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
2120
1810
  Object.assign(contents, doc);
2121
1811
  return contents;
2122
1812
  }, "de_DeleteProfileCommand");
2123
- var de_DeleteProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
2124
- const parsedOutput = {
2125
- ...output,
2126
- body: await parseErrorBody(output.body, context)
2127
- };
2128
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2129
- switch (errorCode) {
2130
- case "AccessDeniedException":
2131
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2132
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2133
- case "BadRequestException":
2134
- case "com.amazonaws.customerprofiles#BadRequestException":
2135
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2136
- case "InternalServerException":
2137
- case "com.amazonaws.customerprofiles#InternalServerException":
2138
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2139
- case "ResourceNotFoundException":
2140
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2141
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2142
- case "ThrottlingException":
2143
- case "com.amazonaws.customerprofiles#ThrottlingException":
2144
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2145
- default:
2146
- const parsedBody = parsedOutput.body;
2147
- return throwDefaultError({
2148
- output,
2149
- parsedBody,
2150
- errorCode
2151
- });
2152
- }
2153
- }, "de_DeleteProfileCommandError");
2154
1813
  var de_DeleteProfileKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
2155
1814
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2156
- return de_DeleteProfileKeyCommandError(output, context);
1815
+ return de_CommandError(output, context);
2157
1816
  }
2158
1817
  const contents = (0, import_smithy_client.map)({
2159
1818
  $metadata: deserializeMetadata(output)
@@ -2165,40 +1824,9 @@ var de_DeleteProfileKeyCommand = /* @__PURE__ */ __name(async (output, context)
2165
1824
  Object.assign(contents, doc);
2166
1825
  return contents;
2167
1826
  }, "de_DeleteProfileKeyCommand");
2168
- var de_DeleteProfileKeyCommandError = /* @__PURE__ */ __name(async (output, context) => {
2169
- const parsedOutput = {
2170
- ...output,
2171
- body: await parseErrorBody(output.body, context)
2172
- };
2173
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2174
- switch (errorCode) {
2175
- case "AccessDeniedException":
2176
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2177
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2178
- case "BadRequestException":
2179
- case "com.amazonaws.customerprofiles#BadRequestException":
2180
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2181
- case "InternalServerException":
2182
- case "com.amazonaws.customerprofiles#InternalServerException":
2183
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2184
- case "ResourceNotFoundException":
2185
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2186
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2187
- case "ThrottlingException":
2188
- case "com.amazonaws.customerprofiles#ThrottlingException":
2189
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2190
- default:
2191
- const parsedBody = parsedOutput.body;
2192
- return throwDefaultError({
2193
- output,
2194
- parsedBody,
2195
- errorCode
2196
- });
2197
- }
2198
- }, "de_DeleteProfileKeyCommandError");
2199
1827
  var de_DeleteProfileObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
2200
1828
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2201
- return de_DeleteProfileObjectCommandError(output, context);
1829
+ return de_CommandError(output, context);
2202
1830
  }
2203
1831
  const contents = (0, import_smithy_client.map)({
2204
1832
  $metadata: deserializeMetadata(output)
@@ -2210,40 +1838,9 @@ var de_DeleteProfileObjectCommand = /* @__PURE__ */ __name(async (output, contex
2210
1838
  Object.assign(contents, doc);
2211
1839
  return contents;
2212
1840
  }, "de_DeleteProfileObjectCommand");
2213
- var de_DeleteProfileObjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
2214
- const parsedOutput = {
2215
- ...output,
2216
- body: await parseErrorBody(output.body, context)
2217
- };
2218
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2219
- switch (errorCode) {
2220
- case "AccessDeniedException":
2221
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2222
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2223
- case "BadRequestException":
2224
- case "com.amazonaws.customerprofiles#BadRequestException":
2225
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2226
- case "InternalServerException":
2227
- case "com.amazonaws.customerprofiles#InternalServerException":
2228
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2229
- case "ResourceNotFoundException":
2230
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2231
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2232
- case "ThrottlingException":
2233
- case "com.amazonaws.customerprofiles#ThrottlingException":
2234
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2235
- default:
2236
- const parsedBody = parsedOutput.body;
2237
- return throwDefaultError({
2238
- output,
2239
- parsedBody,
2240
- errorCode
2241
- });
2242
- }
2243
- }, "de_DeleteProfileObjectCommandError");
2244
1841
  var de_DeleteProfileObjectTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
2245
1842
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2246
- return de_DeleteProfileObjectTypeCommandError(output, context);
1843
+ return de_CommandError(output, context);
2247
1844
  }
2248
1845
  const contents = (0, import_smithy_client.map)({
2249
1846
  $metadata: deserializeMetadata(output)
@@ -2255,40 +1852,9 @@ var de_DeleteProfileObjectTypeCommand = /* @__PURE__ */ __name(async (output, co
2255
1852
  Object.assign(contents, doc);
2256
1853
  return contents;
2257
1854
  }, "de_DeleteProfileObjectTypeCommand");
2258
- var de_DeleteProfileObjectTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
2259
- const parsedOutput = {
2260
- ...output,
2261
- body: await parseErrorBody(output.body, context)
2262
- };
2263
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2264
- switch (errorCode) {
2265
- case "AccessDeniedException":
2266
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2267
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2268
- case "BadRequestException":
2269
- case "com.amazonaws.customerprofiles#BadRequestException":
2270
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2271
- case "InternalServerException":
2272
- case "com.amazonaws.customerprofiles#InternalServerException":
2273
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2274
- case "ResourceNotFoundException":
2275
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2276
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2277
- case "ThrottlingException":
2278
- case "com.amazonaws.customerprofiles#ThrottlingException":
2279
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2280
- default:
2281
- const parsedBody = parsedOutput.body;
2282
- return throwDefaultError({
2283
- output,
2284
- parsedBody,
2285
- errorCode
2286
- });
2287
- }
2288
- }, "de_DeleteProfileObjectTypeCommandError");
2289
1855
  var de_DeleteWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
2290
1856
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2291
- return de_DeleteWorkflowCommandError(output, context);
1857
+ return de_CommandError(output, context);
2292
1858
  }
2293
1859
  const contents = (0, import_smithy_client.map)({
2294
1860
  $metadata: deserializeMetadata(output)
@@ -2296,40 +1862,9 @@ var de_DeleteWorkflowCommand = /* @__PURE__ */ __name(async (output, context) =>
2296
1862
  await (0, import_smithy_client.collectBody)(output.body, context);
2297
1863
  return contents;
2298
1864
  }, "de_DeleteWorkflowCommand");
2299
- var de_DeleteWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
2300
- const parsedOutput = {
2301
- ...output,
2302
- body: await parseErrorBody(output.body, context)
2303
- };
2304
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2305
- switch (errorCode) {
2306
- case "AccessDeniedException":
2307
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2308
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2309
- case "BadRequestException":
2310
- case "com.amazonaws.customerprofiles#BadRequestException":
2311
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2312
- case "InternalServerException":
2313
- case "com.amazonaws.customerprofiles#InternalServerException":
2314
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2315
- case "ResourceNotFoundException":
2316
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2317
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2318
- case "ThrottlingException":
2319
- case "com.amazonaws.customerprofiles#ThrottlingException":
2320
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2321
- default:
2322
- const parsedBody = parsedOutput.body;
2323
- return throwDefaultError({
2324
- output,
2325
- parsedBody,
2326
- errorCode
2327
- });
2328
- }
2329
- }, "de_DeleteWorkflowCommandError");
2330
1865
  var de_DetectProfileObjectTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
2331
1866
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2332
- return de_DetectProfileObjectTypeCommandError(output, context);
1867
+ return de_CommandError(output, context);
2333
1868
  }
2334
1869
  const contents = (0, import_smithy_client.map)({
2335
1870
  $metadata: deserializeMetadata(output)
@@ -2341,40 +1876,9 @@ var de_DetectProfileObjectTypeCommand = /* @__PURE__ */ __name(async (output, co
2341
1876
  Object.assign(contents, doc);
2342
1877
  return contents;
2343
1878
  }, "de_DetectProfileObjectTypeCommand");
2344
- var de_DetectProfileObjectTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
2345
- const parsedOutput = {
2346
- ...output,
2347
- body: await parseErrorBody(output.body, context)
2348
- };
2349
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2350
- switch (errorCode) {
2351
- case "AccessDeniedException":
2352
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2353
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2354
- case "BadRequestException":
2355
- case "com.amazonaws.customerprofiles#BadRequestException":
2356
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2357
- case "InternalServerException":
2358
- case "com.amazonaws.customerprofiles#InternalServerException":
2359
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2360
- case "ResourceNotFoundException":
2361
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2362
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2363
- case "ThrottlingException":
2364
- case "com.amazonaws.customerprofiles#ThrottlingException":
2365
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2366
- default:
2367
- const parsedBody = parsedOutput.body;
2368
- return throwDefaultError({
2369
- output,
2370
- parsedBody,
2371
- errorCode
2372
- });
2373
- }
2374
- }, "de_DetectProfileObjectTypeCommandError");
2375
1879
  var de_GetAutoMergingPreviewCommand = /* @__PURE__ */ __name(async (output, context) => {
2376
1880
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2377
- return de_GetAutoMergingPreviewCommandError(output, context);
1881
+ return de_CommandError(output, context);
2378
1882
  }
2379
1883
  const contents = (0, import_smithy_client.map)({
2380
1884
  $metadata: deserializeMetadata(output)
@@ -2389,40 +1893,9 @@ var de_GetAutoMergingPreviewCommand = /* @__PURE__ */ __name(async (output, cont
2389
1893
  Object.assign(contents, doc);
2390
1894
  return contents;
2391
1895
  }, "de_GetAutoMergingPreviewCommand");
2392
- var de_GetAutoMergingPreviewCommandError = /* @__PURE__ */ __name(async (output, context) => {
2393
- const parsedOutput = {
2394
- ...output,
2395
- body: await parseErrorBody(output.body, context)
2396
- };
2397
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2398
- switch (errorCode) {
2399
- case "AccessDeniedException":
2400
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2401
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2402
- case "BadRequestException":
2403
- case "com.amazonaws.customerprofiles#BadRequestException":
2404
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2405
- case "InternalServerException":
2406
- case "com.amazonaws.customerprofiles#InternalServerException":
2407
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2408
- case "ResourceNotFoundException":
2409
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2410
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2411
- case "ThrottlingException":
2412
- case "com.amazonaws.customerprofiles#ThrottlingException":
2413
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2414
- default:
2415
- const parsedBody = parsedOutput.body;
2416
- return throwDefaultError({
2417
- output,
2418
- parsedBody,
2419
- errorCode
2420
- });
2421
- }
2422
- }, "de_GetAutoMergingPreviewCommandError");
2423
1896
  var de_GetCalculatedAttributeDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
2424
1897
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2425
- return de_GetCalculatedAttributeDefinitionCommandError(output, context);
1898
+ return de_CommandError(output, context);
2426
1899
  }
2427
1900
  const contents = (0, import_smithy_client.map)({
2428
1901
  $metadata: deserializeMetadata(output)
@@ -2442,40 +1915,9 @@ var de_GetCalculatedAttributeDefinitionCommand = /* @__PURE__ */ __name(async (o
2442
1915
  Object.assign(contents, doc);
2443
1916
  return contents;
2444
1917
  }, "de_GetCalculatedAttributeDefinitionCommand");
2445
- var de_GetCalculatedAttributeDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
2446
- const parsedOutput = {
2447
- ...output,
2448
- body: await parseErrorBody(output.body, context)
2449
- };
2450
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2451
- switch (errorCode) {
2452
- case "AccessDeniedException":
2453
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2454
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2455
- case "BadRequestException":
2456
- case "com.amazonaws.customerprofiles#BadRequestException":
2457
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2458
- case "InternalServerException":
2459
- case "com.amazonaws.customerprofiles#InternalServerException":
2460
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2461
- case "ResourceNotFoundException":
2462
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2463
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2464
- case "ThrottlingException":
2465
- case "com.amazonaws.customerprofiles#ThrottlingException":
2466
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2467
- default:
2468
- const parsedBody = parsedOutput.body;
2469
- return throwDefaultError({
2470
- output,
2471
- parsedBody,
2472
- errorCode
2473
- });
2474
- }
2475
- }, "de_GetCalculatedAttributeDefinitionCommandError");
2476
1918
  var de_GetCalculatedAttributeForProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
2477
1919
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2478
- return de_GetCalculatedAttributeForProfileCommandError(output, context);
1920
+ return de_CommandError(output, context);
2479
1921
  }
2480
1922
  const contents = (0, import_smithy_client.map)({
2481
1923
  $metadata: deserializeMetadata(output)
@@ -2490,40 +1932,9 @@ var de_GetCalculatedAttributeForProfileCommand = /* @__PURE__ */ __name(async (o
2490
1932
  Object.assign(contents, doc);
2491
1933
  return contents;
2492
1934
  }, "de_GetCalculatedAttributeForProfileCommand");
2493
- var de_GetCalculatedAttributeForProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
2494
- const parsedOutput = {
2495
- ...output,
2496
- body: await parseErrorBody(output.body, context)
2497
- };
2498
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2499
- switch (errorCode) {
2500
- case "AccessDeniedException":
2501
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2502
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2503
- case "BadRequestException":
2504
- case "com.amazonaws.customerprofiles#BadRequestException":
2505
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2506
- case "InternalServerException":
2507
- case "com.amazonaws.customerprofiles#InternalServerException":
2508
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2509
- case "ResourceNotFoundException":
2510
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2511
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2512
- case "ThrottlingException":
2513
- case "com.amazonaws.customerprofiles#ThrottlingException":
2514
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2515
- default:
2516
- const parsedBody = parsedOutput.body;
2517
- return throwDefaultError({
2518
- output,
2519
- parsedBody,
2520
- errorCode
2521
- });
2522
- }
2523
- }, "de_GetCalculatedAttributeForProfileCommandError");
2524
1935
  var de_GetDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
2525
1936
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2526
- return de_GetDomainCommandError(output, context);
1937
+ return de_CommandError(output, context);
2527
1938
  }
2528
1939
  const contents = (0, import_smithy_client.map)({
2529
1940
  $metadata: deserializeMetadata(output)
@@ -2544,40 +1955,9 @@ var de_GetDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
2544
1955
  Object.assign(contents, doc);
2545
1956
  return contents;
2546
1957
  }, "de_GetDomainCommand");
2547
- var de_GetDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
2548
- const parsedOutput = {
2549
- ...output,
2550
- body: await parseErrorBody(output.body, context)
2551
- };
2552
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2553
- switch (errorCode) {
2554
- case "AccessDeniedException":
2555
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2556
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2557
- case "BadRequestException":
2558
- case "com.amazonaws.customerprofiles#BadRequestException":
2559
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2560
- case "InternalServerException":
2561
- case "com.amazonaws.customerprofiles#InternalServerException":
2562
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2563
- case "ResourceNotFoundException":
2564
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2565
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2566
- case "ThrottlingException":
2567
- case "com.amazonaws.customerprofiles#ThrottlingException":
2568
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2569
- default:
2570
- const parsedBody = parsedOutput.body;
2571
- return throwDefaultError({
2572
- output,
2573
- parsedBody,
2574
- errorCode
2575
- });
2576
- }
2577
- }, "de_GetDomainCommandError");
2578
1958
  var de_GetEventStreamCommand = /* @__PURE__ */ __name(async (output, context) => {
2579
1959
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2580
- return de_GetEventStreamCommandError(output, context);
1960
+ return de_CommandError(output, context);
2581
1961
  }
2582
1962
  const contents = (0, import_smithy_client.map)({
2583
1963
  $metadata: deserializeMetadata(output)
@@ -2595,40 +1975,9 @@ var de_GetEventStreamCommand = /* @__PURE__ */ __name(async (output, context) =>
2595
1975
  Object.assign(contents, doc);
2596
1976
  return contents;
2597
1977
  }, "de_GetEventStreamCommand");
2598
- var de_GetEventStreamCommandError = /* @__PURE__ */ __name(async (output, context) => {
2599
- const parsedOutput = {
2600
- ...output,
2601
- body: await parseErrorBody(output.body, context)
2602
- };
2603
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2604
- switch (errorCode) {
2605
- case "AccessDeniedException":
2606
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2607
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2608
- case "BadRequestException":
2609
- case "com.amazonaws.customerprofiles#BadRequestException":
2610
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2611
- case "InternalServerException":
2612
- case "com.amazonaws.customerprofiles#InternalServerException":
2613
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2614
- case "ResourceNotFoundException":
2615
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2616
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2617
- case "ThrottlingException":
2618
- case "com.amazonaws.customerprofiles#ThrottlingException":
2619
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2620
- default:
2621
- const parsedBody = parsedOutput.body;
2622
- return throwDefaultError({
2623
- output,
2624
- parsedBody,
2625
- errorCode
2626
- });
2627
- }
2628
- }, "de_GetEventStreamCommandError");
2629
1978
  var de_GetIdentityResolutionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
2630
1979
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2631
- return de_GetIdentityResolutionJobCommandError(output, context);
1980
+ return de_CommandError(output, context);
2632
1981
  }
2633
1982
  const contents = (0, import_smithy_client.map)({
2634
1983
  $metadata: deserializeMetadata(output)
@@ -2650,40 +1999,9 @@ var de_GetIdentityResolutionJobCommand = /* @__PURE__ */ __name(async (output, c
2650
1999
  Object.assign(contents, doc);
2651
2000
  return contents;
2652
2001
  }, "de_GetIdentityResolutionJobCommand");
2653
- var de_GetIdentityResolutionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
2654
- const parsedOutput = {
2655
- ...output,
2656
- body: await parseErrorBody(output.body, context)
2657
- };
2658
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2659
- switch (errorCode) {
2660
- case "AccessDeniedException":
2661
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2662
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2663
- case "BadRequestException":
2664
- case "com.amazonaws.customerprofiles#BadRequestException":
2665
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2666
- case "InternalServerException":
2667
- case "com.amazonaws.customerprofiles#InternalServerException":
2668
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2669
- case "ResourceNotFoundException":
2670
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2671
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2672
- case "ThrottlingException":
2673
- case "com.amazonaws.customerprofiles#ThrottlingException":
2674
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2675
- default:
2676
- const parsedBody = parsedOutput.body;
2677
- return throwDefaultError({
2678
- output,
2679
- parsedBody,
2680
- errorCode
2681
- });
2682
- }
2683
- }, "de_GetIdentityResolutionJobCommandError");
2684
2002
  var de_GetIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
2685
2003
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2686
- return de_GetIntegrationCommandError(output, context);
2004
+ return de_CommandError(output, context);
2687
2005
  }
2688
2006
  const contents = (0, import_smithy_client.map)({
2689
2007
  $metadata: deserializeMetadata(output)
@@ -2703,40 +2021,9 @@ var de_GetIntegrationCommand = /* @__PURE__ */ __name(async (output, context) =>
2703
2021
  Object.assign(contents, doc);
2704
2022
  return contents;
2705
2023
  }, "de_GetIntegrationCommand");
2706
- var de_GetIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2707
- const parsedOutput = {
2708
- ...output,
2709
- body: await parseErrorBody(output.body, context)
2710
- };
2711
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2712
- switch (errorCode) {
2713
- case "AccessDeniedException":
2714
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2715
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2716
- case "BadRequestException":
2717
- case "com.amazonaws.customerprofiles#BadRequestException":
2718
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2719
- case "InternalServerException":
2720
- case "com.amazonaws.customerprofiles#InternalServerException":
2721
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2722
- case "ResourceNotFoundException":
2723
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2724
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2725
- case "ThrottlingException":
2726
- case "com.amazonaws.customerprofiles#ThrottlingException":
2727
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2728
- default:
2729
- const parsedBody = parsedOutput.body;
2730
- return throwDefaultError({
2731
- output,
2732
- parsedBody,
2733
- errorCode
2734
- });
2735
- }
2736
- }, "de_GetIntegrationCommandError");
2737
2024
  var de_GetMatchesCommand = /* @__PURE__ */ __name(async (output, context) => {
2738
2025
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2739
- return de_GetMatchesCommandError(output, context);
2026
+ return de_CommandError(output, context);
2740
2027
  }
2741
2028
  const contents = (0, import_smithy_client.map)({
2742
2029
  $metadata: deserializeMetadata(output)
@@ -2751,40 +2038,9 @@ var de_GetMatchesCommand = /* @__PURE__ */ __name(async (output, context) => {
2751
2038
  Object.assign(contents, doc);
2752
2039
  return contents;
2753
2040
  }, "de_GetMatchesCommand");
2754
- var de_GetMatchesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2755
- const parsedOutput = {
2756
- ...output,
2757
- body: await parseErrorBody(output.body, context)
2758
- };
2759
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2760
- switch (errorCode) {
2761
- case "AccessDeniedException":
2762
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2763
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2764
- case "BadRequestException":
2765
- case "com.amazonaws.customerprofiles#BadRequestException":
2766
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2767
- case "InternalServerException":
2768
- case "com.amazonaws.customerprofiles#InternalServerException":
2769
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2770
- case "ResourceNotFoundException":
2771
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2772
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2773
- case "ThrottlingException":
2774
- case "com.amazonaws.customerprofiles#ThrottlingException":
2775
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2776
- default:
2777
- const parsedBody = parsedOutput.body;
2778
- return throwDefaultError({
2779
- output,
2780
- parsedBody,
2781
- errorCode
2782
- });
2783
- }
2784
- }, "de_GetMatchesCommandError");
2785
2041
  var de_GetProfileObjectTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
2786
2042
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2787
- return de_GetProfileObjectTypeCommandError(output, context);
2043
+ return de_CommandError(output, context);
2788
2044
  }
2789
2045
  const contents = (0, import_smithy_client.map)({
2790
2046
  $metadata: deserializeMetadata(output)
@@ -2807,40 +2063,9 @@ var de_GetProfileObjectTypeCommand = /* @__PURE__ */ __name(async (output, conte
2807
2063
  Object.assign(contents, doc);
2808
2064
  return contents;
2809
2065
  }, "de_GetProfileObjectTypeCommand");
2810
- var de_GetProfileObjectTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
2811
- const parsedOutput = {
2812
- ...output,
2813
- body: await parseErrorBody(output.body, context)
2814
- };
2815
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2816
- switch (errorCode) {
2817
- case "AccessDeniedException":
2818
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2819
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2820
- case "BadRequestException":
2821
- case "com.amazonaws.customerprofiles#BadRequestException":
2822
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2823
- case "InternalServerException":
2824
- case "com.amazonaws.customerprofiles#InternalServerException":
2825
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2826
- case "ResourceNotFoundException":
2827
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2828
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2829
- case "ThrottlingException":
2830
- case "com.amazonaws.customerprofiles#ThrottlingException":
2831
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2832
- default:
2833
- const parsedBody = parsedOutput.body;
2834
- return throwDefaultError({
2835
- output,
2836
- parsedBody,
2837
- errorCode
2838
- });
2839
- }
2840
- }, "de_GetProfileObjectTypeCommandError");
2841
2066
  var de_GetProfileObjectTypeTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
2842
2067
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2843
- return de_GetProfileObjectTypeTemplateCommandError(output, context);
2068
+ return de_CommandError(output, context);
2844
2069
  }
2845
2070
  const contents = (0, import_smithy_client.map)({
2846
2071
  $metadata: deserializeMetadata(output)
@@ -2858,40 +2083,9 @@ var de_GetProfileObjectTypeTemplateCommand = /* @__PURE__ */ __name(async (outpu
2858
2083
  Object.assign(contents, doc);
2859
2084
  return contents;
2860
2085
  }, "de_GetProfileObjectTypeTemplateCommand");
2861
- var de_GetProfileObjectTypeTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
2862
- const parsedOutput = {
2863
- ...output,
2864
- body: await parseErrorBody(output.body, context)
2865
- };
2866
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2867
- switch (errorCode) {
2868
- case "AccessDeniedException":
2869
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2870
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2871
- case "BadRequestException":
2872
- case "com.amazonaws.customerprofiles#BadRequestException":
2873
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2874
- case "InternalServerException":
2875
- case "com.amazonaws.customerprofiles#InternalServerException":
2876
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2877
- case "ResourceNotFoundException":
2878
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2879
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2880
- case "ThrottlingException":
2881
- case "com.amazonaws.customerprofiles#ThrottlingException":
2882
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2883
- default:
2884
- const parsedBody = parsedOutput.body;
2885
- return throwDefaultError({
2886
- output,
2887
- parsedBody,
2888
- errorCode
2889
- });
2890
- }
2891
- }, "de_GetProfileObjectTypeTemplateCommandError");
2892
2086
  var de_GetSimilarProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
2893
2087
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2894
- return de_GetSimilarProfilesCommandError(output, context);
2088
+ return de_CommandError(output, context);
2895
2089
  }
2896
2090
  const contents = (0, import_smithy_client.map)({
2897
2091
  $metadata: deserializeMetadata(output)
@@ -2908,40 +2102,9 @@ var de_GetSimilarProfilesCommand = /* @__PURE__ */ __name(async (output, context
2908
2102
  Object.assign(contents, doc);
2909
2103
  return contents;
2910
2104
  }, "de_GetSimilarProfilesCommand");
2911
- var de_GetSimilarProfilesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2912
- const parsedOutput = {
2913
- ...output,
2914
- body: await parseErrorBody(output.body, context)
2915
- };
2916
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2917
- switch (errorCode) {
2918
- case "AccessDeniedException":
2919
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2920
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2921
- case "BadRequestException":
2922
- case "com.amazonaws.customerprofiles#BadRequestException":
2923
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2924
- case "InternalServerException":
2925
- case "com.amazonaws.customerprofiles#InternalServerException":
2926
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2927
- case "ResourceNotFoundException":
2928
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2929
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2930
- case "ThrottlingException":
2931
- case "com.amazonaws.customerprofiles#ThrottlingException":
2932
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2933
- default:
2934
- const parsedBody = parsedOutput.body;
2935
- return throwDefaultError({
2936
- output,
2937
- parsedBody,
2938
- errorCode
2939
- });
2940
- }
2941
- }, "de_GetSimilarProfilesCommandError");
2942
2105
  var de_GetWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
2943
2106
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2944
- return de_GetWorkflowCommandError(output, context);
2107
+ return de_CommandError(output, context);
2945
2108
  }
2946
2109
  const contents = (0, import_smithy_client.map)({
2947
2110
  $metadata: deserializeMetadata(output)
@@ -2960,40 +2123,9 @@ var de_GetWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
2960
2123
  Object.assign(contents, doc);
2961
2124
  return contents;
2962
2125
  }, "de_GetWorkflowCommand");
2963
- var de_GetWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
2964
- const parsedOutput = {
2965
- ...output,
2966
- body: await parseErrorBody(output.body, context)
2967
- };
2968
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2969
- switch (errorCode) {
2970
- case "AccessDeniedException":
2971
- case "com.amazonaws.customerprofiles#AccessDeniedException":
2972
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2973
- case "BadRequestException":
2974
- case "com.amazonaws.customerprofiles#BadRequestException":
2975
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2976
- case "InternalServerException":
2977
- case "com.amazonaws.customerprofiles#InternalServerException":
2978
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2979
- case "ResourceNotFoundException":
2980
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
2981
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2982
- case "ThrottlingException":
2983
- case "com.amazonaws.customerprofiles#ThrottlingException":
2984
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2985
- default:
2986
- const parsedBody = parsedOutput.body;
2987
- return throwDefaultError({
2988
- output,
2989
- parsedBody,
2990
- errorCode
2991
- });
2992
- }
2993
- }, "de_GetWorkflowCommandError");
2994
2126
  var de_GetWorkflowStepsCommand = /* @__PURE__ */ __name(async (output, context) => {
2995
2127
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2996
- return de_GetWorkflowStepsCommandError(output, context);
2128
+ return de_CommandError(output, context);
2997
2129
  }
2998
2130
  const contents = (0, import_smithy_client.map)({
2999
2131
  $metadata: deserializeMetadata(output)
@@ -3008,40 +2140,9 @@ var de_GetWorkflowStepsCommand = /* @__PURE__ */ __name(async (output, context)
3008
2140
  Object.assign(contents, doc);
3009
2141
  return contents;
3010
2142
  }, "de_GetWorkflowStepsCommand");
3011
- var de_GetWorkflowStepsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3012
- const parsedOutput = {
3013
- ...output,
3014
- body: await parseErrorBody(output.body, context)
3015
- };
3016
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3017
- switch (errorCode) {
3018
- case "AccessDeniedException":
3019
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3020
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3021
- case "BadRequestException":
3022
- case "com.amazonaws.customerprofiles#BadRequestException":
3023
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3024
- case "InternalServerException":
3025
- case "com.amazonaws.customerprofiles#InternalServerException":
3026
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3027
- case "ResourceNotFoundException":
3028
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3029
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3030
- case "ThrottlingException":
3031
- case "com.amazonaws.customerprofiles#ThrottlingException":
3032
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3033
- default:
3034
- const parsedBody = parsedOutput.body;
3035
- return throwDefaultError({
3036
- output,
3037
- parsedBody,
3038
- errorCode
3039
- });
3040
- }
3041
- }, "de_GetWorkflowStepsCommandError");
3042
2143
  var de_ListAccountIntegrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
3043
2144
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3044
- return de_ListAccountIntegrationsCommandError(output, context);
2145
+ return de_CommandError(output, context);
3045
2146
  }
3046
2147
  const contents = (0, import_smithy_client.map)({
3047
2148
  $metadata: deserializeMetadata(output)
@@ -3054,40 +2155,9 @@ var de_ListAccountIntegrationsCommand = /* @__PURE__ */ __name(async (output, co
3054
2155
  Object.assign(contents, doc);
3055
2156
  return contents;
3056
2157
  }, "de_ListAccountIntegrationsCommand");
3057
- var de_ListAccountIntegrationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3058
- const parsedOutput = {
3059
- ...output,
3060
- body: await parseErrorBody(output.body, context)
3061
- };
3062
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3063
- switch (errorCode) {
3064
- case "AccessDeniedException":
3065
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3066
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3067
- case "BadRequestException":
3068
- case "com.amazonaws.customerprofiles#BadRequestException":
3069
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3070
- case "InternalServerException":
3071
- case "com.amazonaws.customerprofiles#InternalServerException":
3072
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3073
- case "ResourceNotFoundException":
3074
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3075
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3076
- case "ThrottlingException":
3077
- case "com.amazonaws.customerprofiles#ThrottlingException":
3078
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3079
- default:
3080
- const parsedBody = parsedOutput.body;
3081
- return throwDefaultError({
3082
- output,
3083
- parsedBody,
3084
- errorCode
3085
- });
3086
- }
3087
- }, "de_ListAccountIntegrationsCommandError");
3088
2158
  var de_ListCalculatedAttributeDefinitionsCommand = /* @__PURE__ */ __name(async (output, context) => {
3089
2159
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3090
- return de_ListCalculatedAttributeDefinitionsCommandError(output, context);
2160
+ return de_CommandError(output, context);
3091
2161
  }
3092
2162
  const contents = (0, import_smithy_client.map)({
3093
2163
  $metadata: deserializeMetadata(output)
@@ -3100,40 +2170,9 @@ var de_ListCalculatedAttributeDefinitionsCommand = /* @__PURE__ */ __name(async
3100
2170
  Object.assign(contents, doc);
3101
2171
  return contents;
3102
2172
  }, "de_ListCalculatedAttributeDefinitionsCommand");
3103
- var de_ListCalculatedAttributeDefinitionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3104
- const parsedOutput = {
3105
- ...output,
3106
- body: await parseErrorBody(output.body, context)
3107
- };
3108
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3109
- switch (errorCode) {
3110
- case "AccessDeniedException":
3111
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3112
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3113
- case "BadRequestException":
3114
- case "com.amazonaws.customerprofiles#BadRequestException":
3115
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3116
- case "InternalServerException":
3117
- case "com.amazonaws.customerprofiles#InternalServerException":
3118
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3119
- case "ResourceNotFoundException":
3120
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3121
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3122
- case "ThrottlingException":
3123
- case "com.amazonaws.customerprofiles#ThrottlingException":
3124
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3125
- default:
3126
- const parsedBody = parsedOutput.body;
3127
- return throwDefaultError({
3128
- output,
3129
- parsedBody,
3130
- errorCode
3131
- });
3132
- }
3133
- }, "de_ListCalculatedAttributeDefinitionsCommandError");
3134
2173
  var de_ListCalculatedAttributesForProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
3135
2174
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3136
- return de_ListCalculatedAttributesForProfileCommandError(output, context);
2175
+ return de_CommandError(output, context);
3137
2176
  }
3138
2177
  const contents = (0, import_smithy_client.map)({
3139
2178
  $metadata: deserializeMetadata(output)
@@ -3146,40 +2185,9 @@ var de_ListCalculatedAttributesForProfileCommand = /* @__PURE__ */ __name(async
3146
2185
  Object.assign(contents, doc);
3147
2186
  return contents;
3148
2187
  }, "de_ListCalculatedAttributesForProfileCommand");
3149
- var de_ListCalculatedAttributesForProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
3150
- const parsedOutput = {
3151
- ...output,
3152
- body: await parseErrorBody(output.body, context)
3153
- };
3154
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3155
- switch (errorCode) {
3156
- case "AccessDeniedException":
3157
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3158
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3159
- case "BadRequestException":
3160
- case "com.amazonaws.customerprofiles#BadRequestException":
3161
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3162
- case "InternalServerException":
3163
- case "com.amazonaws.customerprofiles#InternalServerException":
3164
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3165
- case "ResourceNotFoundException":
3166
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3167
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3168
- case "ThrottlingException":
3169
- case "com.amazonaws.customerprofiles#ThrottlingException":
3170
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3171
- default:
3172
- const parsedBody = parsedOutput.body;
3173
- return throwDefaultError({
3174
- output,
3175
- parsedBody,
3176
- errorCode
3177
- });
3178
- }
3179
- }, "de_ListCalculatedAttributesForProfileCommandError");
3180
2188
  var de_ListDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
3181
2189
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3182
- return de_ListDomainsCommandError(output, context);
2190
+ return de_CommandError(output, context);
3183
2191
  }
3184
2192
  const contents = (0, import_smithy_client.map)({
3185
2193
  $metadata: deserializeMetadata(output)
@@ -3192,40 +2200,9 @@ var de_ListDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
3192
2200
  Object.assign(contents, doc);
3193
2201
  return contents;
3194
2202
  }, "de_ListDomainsCommand");
3195
- var de_ListDomainsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3196
- const parsedOutput = {
3197
- ...output,
3198
- body: await parseErrorBody(output.body, context)
3199
- };
3200
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3201
- switch (errorCode) {
3202
- case "AccessDeniedException":
3203
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3204
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3205
- case "BadRequestException":
3206
- case "com.amazonaws.customerprofiles#BadRequestException":
3207
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3208
- case "InternalServerException":
3209
- case "com.amazonaws.customerprofiles#InternalServerException":
3210
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3211
- case "ResourceNotFoundException":
3212
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3213
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3214
- case "ThrottlingException":
3215
- case "com.amazonaws.customerprofiles#ThrottlingException":
3216
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3217
- default:
3218
- const parsedBody = parsedOutput.body;
3219
- return throwDefaultError({
3220
- output,
3221
- parsedBody,
3222
- errorCode
3223
- });
3224
- }
3225
- }, "de_ListDomainsCommandError");
3226
2203
  var de_ListEventStreamsCommand = /* @__PURE__ */ __name(async (output, context) => {
3227
2204
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3228
- return de_ListEventStreamsCommandError(output, context);
2205
+ return de_CommandError(output, context);
3229
2206
  }
3230
2207
  const contents = (0, import_smithy_client.map)({
3231
2208
  $metadata: deserializeMetadata(output)
@@ -3238,40 +2215,9 @@ var de_ListEventStreamsCommand = /* @__PURE__ */ __name(async (output, context)
3238
2215
  Object.assign(contents, doc);
3239
2216
  return contents;
3240
2217
  }, "de_ListEventStreamsCommand");
3241
- var de_ListEventStreamsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3242
- const parsedOutput = {
3243
- ...output,
3244
- body: await parseErrorBody(output.body, context)
3245
- };
3246
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3247
- switch (errorCode) {
3248
- case "AccessDeniedException":
3249
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3250
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3251
- case "BadRequestException":
3252
- case "com.amazonaws.customerprofiles#BadRequestException":
3253
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3254
- case "InternalServerException":
3255
- case "com.amazonaws.customerprofiles#InternalServerException":
3256
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3257
- case "ResourceNotFoundException":
3258
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3259
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3260
- case "ThrottlingException":
3261
- case "com.amazonaws.customerprofiles#ThrottlingException":
3262
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3263
- default:
3264
- const parsedBody = parsedOutput.body;
3265
- return throwDefaultError({
3266
- output,
3267
- parsedBody,
3268
- errorCode
3269
- });
3270
- }
3271
- }, "de_ListEventStreamsCommandError");
3272
2218
  var de_ListIdentityResolutionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
3273
2219
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3274
- return de_ListIdentityResolutionJobsCommandError(output, context);
2220
+ return de_CommandError(output, context);
3275
2221
  }
3276
2222
  const contents = (0, import_smithy_client.map)({
3277
2223
  $metadata: deserializeMetadata(output)
@@ -3284,40 +2230,9 @@ var de_ListIdentityResolutionJobsCommand = /* @__PURE__ */ __name(async (output,
3284
2230
  Object.assign(contents, doc);
3285
2231
  return contents;
3286
2232
  }, "de_ListIdentityResolutionJobsCommand");
3287
- var de_ListIdentityResolutionJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3288
- const parsedOutput = {
3289
- ...output,
3290
- body: await parseErrorBody(output.body, context)
3291
- };
3292
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3293
- switch (errorCode) {
3294
- case "AccessDeniedException":
3295
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3296
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3297
- case "BadRequestException":
3298
- case "com.amazonaws.customerprofiles#BadRequestException":
3299
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3300
- case "InternalServerException":
3301
- case "com.amazonaws.customerprofiles#InternalServerException":
3302
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3303
- case "ResourceNotFoundException":
3304
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3305
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3306
- case "ThrottlingException":
3307
- case "com.amazonaws.customerprofiles#ThrottlingException":
3308
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3309
- default:
3310
- const parsedBody = parsedOutput.body;
3311
- return throwDefaultError({
3312
- output,
3313
- parsedBody,
3314
- errorCode
3315
- });
3316
- }
3317
- }, "de_ListIdentityResolutionJobsCommandError");
3318
2233
  var de_ListIntegrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
3319
2234
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3320
- return de_ListIntegrationsCommandError(output, context);
2235
+ return de_CommandError(output, context);
3321
2236
  }
3322
2237
  const contents = (0, import_smithy_client.map)({
3323
2238
  $metadata: deserializeMetadata(output)
@@ -3330,40 +2245,9 @@ var de_ListIntegrationsCommand = /* @__PURE__ */ __name(async (output, context)
3330
2245
  Object.assign(contents, doc);
3331
2246
  return contents;
3332
2247
  }, "de_ListIntegrationsCommand");
3333
- var de_ListIntegrationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3334
- const parsedOutput = {
3335
- ...output,
3336
- body: await parseErrorBody(output.body, context)
3337
- };
3338
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3339
- switch (errorCode) {
3340
- case "AccessDeniedException":
3341
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3342
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3343
- case "BadRequestException":
3344
- case "com.amazonaws.customerprofiles#BadRequestException":
3345
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3346
- case "InternalServerException":
3347
- case "com.amazonaws.customerprofiles#InternalServerException":
3348
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3349
- case "ResourceNotFoundException":
3350
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3351
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3352
- case "ThrottlingException":
3353
- case "com.amazonaws.customerprofiles#ThrottlingException":
3354
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3355
- default:
3356
- const parsedBody = parsedOutput.body;
3357
- return throwDefaultError({
3358
- output,
3359
- parsedBody,
3360
- errorCode
3361
- });
3362
- }
3363
- }, "de_ListIntegrationsCommandError");
3364
2248
  var de_ListProfileObjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
3365
2249
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3366
- return de_ListProfileObjectsCommandError(output, context);
2250
+ return de_CommandError(output, context);
3367
2251
  }
3368
2252
  const contents = (0, import_smithy_client.map)({
3369
2253
  $metadata: deserializeMetadata(output)
@@ -3376,40 +2260,9 @@ var de_ListProfileObjectsCommand = /* @__PURE__ */ __name(async (output, context
3376
2260
  Object.assign(contents, doc);
3377
2261
  return contents;
3378
2262
  }, "de_ListProfileObjectsCommand");
3379
- var de_ListProfileObjectsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3380
- const parsedOutput = {
3381
- ...output,
3382
- body: await parseErrorBody(output.body, context)
3383
- };
3384
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3385
- switch (errorCode) {
3386
- case "AccessDeniedException":
3387
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3388
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3389
- case "BadRequestException":
3390
- case "com.amazonaws.customerprofiles#BadRequestException":
3391
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3392
- case "InternalServerException":
3393
- case "com.amazonaws.customerprofiles#InternalServerException":
3394
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3395
- case "ResourceNotFoundException":
3396
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3397
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3398
- case "ThrottlingException":
3399
- case "com.amazonaws.customerprofiles#ThrottlingException":
3400
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3401
- default:
3402
- const parsedBody = parsedOutput.body;
3403
- return throwDefaultError({
3404
- output,
3405
- parsedBody,
3406
- errorCode
3407
- });
3408
- }
3409
- }, "de_ListProfileObjectsCommandError");
3410
2263
  var de_ListProfileObjectTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
3411
2264
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3412
- return de_ListProfileObjectTypesCommandError(output, context);
2265
+ return de_CommandError(output, context);
3413
2266
  }
3414
2267
  const contents = (0, import_smithy_client.map)({
3415
2268
  $metadata: deserializeMetadata(output)
@@ -3422,40 +2275,9 @@ var de_ListProfileObjectTypesCommand = /* @__PURE__ */ __name(async (output, con
3422
2275
  Object.assign(contents, doc);
3423
2276
  return contents;
3424
2277
  }, "de_ListProfileObjectTypesCommand");
3425
- var de_ListProfileObjectTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3426
- const parsedOutput = {
3427
- ...output,
3428
- body: await parseErrorBody(output.body, context)
3429
- };
3430
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3431
- switch (errorCode) {
3432
- case "AccessDeniedException":
3433
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3434
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3435
- case "BadRequestException":
3436
- case "com.amazonaws.customerprofiles#BadRequestException":
3437
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3438
- case "InternalServerException":
3439
- case "com.amazonaws.customerprofiles#InternalServerException":
3440
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3441
- case "ResourceNotFoundException":
3442
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3443
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3444
- case "ThrottlingException":
3445
- case "com.amazonaws.customerprofiles#ThrottlingException":
3446
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3447
- default:
3448
- const parsedBody = parsedOutput.body;
3449
- return throwDefaultError({
3450
- output,
3451
- parsedBody,
3452
- errorCode
3453
- });
3454
- }
3455
- }, "de_ListProfileObjectTypesCommandError");
3456
2278
  var de_ListProfileObjectTypeTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
3457
2279
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3458
- return de_ListProfileObjectTypeTemplatesCommandError(output, context);
2280
+ return de_CommandError(output, context);
3459
2281
  }
3460
2282
  const contents = (0, import_smithy_client.map)({
3461
2283
  $metadata: deserializeMetadata(output)
@@ -3468,40 +2290,9 @@ var de_ListProfileObjectTypeTemplatesCommand = /* @__PURE__ */ __name(async (out
3468
2290
  Object.assign(contents, doc);
3469
2291
  return contents;
3470
2292
  }, "de_ListProfileObjectTypeTemplatesCommand");
3471
- var de_ListProfileObjectTypeTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3472
- const parsedOutput = {
3473
- ...output,
3474
- body: await parseErrorBody(output.body, context)
3475
- };
3476
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3477
- switch (errorCode) {
3478
- case "AccessDeniedException":
3479
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3480
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3481
- case "BadRequestException":
3482
- case "com.amazonaws.customerprofiles#BadRequestException":
3483
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3484
- case "InternalServerException":
3485
- case "com.amazonaws.customerprofiles#InternalServerException":
3486
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3487
- case "ResourceNotFoundException":
3488
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3489
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3490
- case "ThrottlingException":
3491
- case "com.amazonaws.customerprofiles#ThrottlingException":
3492
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3493
- default:
3494
- const parsedBody = parsedOutput.body;
3495
- return throwDefaultError({
3496
- output,
3497
- parsedBody,
3498
- errorCode
3499
- });
3500
- }
3501
- }, "de_ListProfileObjectTypeTemplatesCommandError");
3502
2293
  var de_ListRuleBasedMatchesCommand = /* @__PURE__ */ __name(async (output, context) => {
3503
2294
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3504
- return de_ListRuleBasedMatchesCommandError(output, context);
2295
+ return de_CommandError(output, context);
3505
2296
  }
3506
2297
  const contents = (0, import_smithy_client.map)({
3507
2298
  $metadata: deserializeMetadata(output)
@@ -3514,40 +2305,9 @@ var de_ListRuleBasedMatchesCommand = /* @__PURE__ */ __name(async (output, conte
3514
2305
  Object.assign(contents, doc);
3515
2306
  return contents;
3516
2307
  }, "de_ListRuleBasedMatchesCommand");
3517
- var de_ListRuleBasedMatchesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3518
- const parsedOutput = {
3519
- ...output,
3520
- body: await parseErrorBody(output.body, context)
3521
- };
3522
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3523
- switch (errorCode) {
3524
- case "AccessDeniedException":
3525
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3526
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3527
- case "BadRequestException":
3528
- case "com.amazonaws.customerprofiles#BadRequestException":
3529
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3530
- case "InternalServerException":
3531
- case "com.amazonaws.customerprofiles#InternalServerException":
3532
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3533
- case "ResourceNotFoundException":
3534
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3535
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3536
- case "ThrottlingException":
3537
- case "com.amazonaws.customerprofiles#ThrottlingException":
3538
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3539
- default:
3540
- const parsedBody = parsedOutput.body;
3541
- return throwDefaultError({
3542
- output,
3543
- parsedBody,
3544
- errorCode
3545
- });
3546
- }
3547
- }, "de_ListRuleBasedMatchesCommandError");
3548
2308
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3549
2309
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3550
- return de_ListTagsForResourceCommandError(output, context);
2310
+ return de_CommandError(output, context);
3551
2311
  }
3552
2312
  const contents = (0, import_smithy_client.map)({
3553
2313
  $metadata: deserializeMetadata(output)
@@ -3559,80 +2319,24 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
3559
2319
  Object.assign(contents, doc);
3560
2320
  return contents;
3561
2321
  }, "de_ListTagsForResourceCommand");
3562
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3563
- const parsedOutput = {
3564
- ...output,
3565
- body: await parseErrorBody(output.body, context)
3566
- };
3567
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3568
- switch (errorCode) {
3569
- case "BadRequestException":
3570
- case "com.amazonaws.customerprofiles#BadRequestException":
3571
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3572
- case "InternalServerException":
3573
- case "com.amazonaws.customerprofiles#InternalServerException":
3574
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3575
- case "ResourceNotFoundException":
3576
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3577
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3578
- default:
3579
- const parsedBody = parsedOutput.body;
3580
- return throwDefaultError({
3581
- output,
3582
- parsedBody,
3583
- errorCode
3584
- });
3585
- }
3586
- }, "de_ListTagsForResourceCommandError");
3587
2322
  var de_ListWorkflowsCommand = /* @__PURE__ */ __name(async (output, context) => {
3588
2323
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3589
- return de_ListWorkflowsCommandError(output, context);
2324
+ return de_CommandError(output, context);
3590
2325
  }
3591
2326
  const contents = (0, import_smithy_client.map)({
3592
- $metadata: deserializeMetadata(output)
3593
- });
3594
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3595
- const doc = (0, import_smithy_client.take)(data, {
3596
- Items: (_) => de_WorkflowList(_, context),
3597
- NextToken: import_smithy_client.expectString
3598
- });
3599
- Object.assign(contents, doc);
3600
- return contents;
3601
- }, "de_ListWorkflowsCommand");
3602
- var de_ListWorkflowsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3603
- const parsedOutput = {
3604
- ...output,
3605
- body: await parseErrorBody(output.body, context)
3606
- };
3607
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3608
- switch (errorCode) {
3609
- case "AccessDeniedException":
3610
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3611
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3612
- case "BadRequestException":
3613
- case "com.amazonaws.customerprofiles#BadRequestException":
3614
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3615
- case "InternalServerException":
3616
- case "com.amazonaws.customerprofiles#InternalServerException":
3617
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3618
- case "ResourceNotFoundException":
3619
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3620
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3621
- case "ThrottlingException":
3622
- case "com.amazonaws.customerprofiles#ThrottlingException":
3623
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3624
- default:
3625
- const parsedBody = parsedOutput.body;
3626
- return throwDefaultError({
3627
- output,
3628
- parsedBody,
3629
- errorCode
3630
- });
3631
- }
3632
- }, "de_ListWorkflowsCommandError");
2327
+ $metadata: deserializeMetadata(output)
2328
+ });
2329
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2330
+ const doc = (0, import_smithy_client.take)(data, {
2331
+ Items: (_) => de_WorkflowList(_, context),
2332
+ NextToken: import_smithy_client.expectString
2333
+ });
2334
+ Object.assign(contents, doc);
2335
+ return contents;
2336
+ }, "de_ListWorkflowsCommand");
3633
2337
  var de_MergeProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
3634
2338
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3635
- return de_MergeProfilesCommandError(output, context);
2339
+ return de_CommandError(output, context);
3636
2340
  }
3637
2341
  const contents = (0, import_smithy_client.map)({
3638
2342
  $metadata: deserializeMetadata(output)
@@ -3644,37 +2348,9 @@ var de_MergeProfilesCommand = /* @__PURE__ */ __name(async (output, context) =>
3644
2348
  Object.assign(contents, doc);
3645
2349
  return contents;
3646
2350
  }, "de_MergeProfilesCommand");
3647
- var de_MergeProfilesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3648
- const parsedOutput = {
3649
- ...output,
3650
- body: await parseErrorBody(output.body, context)
3651
- };
3652
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3653
- switch (errorCode) {
3654
- case "BadRequestException":
3655
- case "com.amazonaws.customerprofiles#BadRequestException":
3656
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3657
- case "InternalServerException":
3658
- case "com.amazonaws.customerprofiles#InternalServerException":
3659
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3660
- case "ResourceNotFoundException":
3661
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3662
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3663
- case "ThrottlingException":
3664
- case "com.amazonaws.customerprofiles#ThrottlingException":
3665
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3666
- default:
3667
- const parsedBody = parsedOutput.body;
3668
- return throwDefaultError({
3669
- output,
3670
- parsedBody,
3671
- errorCode
3672
- });
3673
- }
3674
- }, "de_MergeProfilesCommandError");
3675
2351
  var de_PutIntegrationCommand = /* @__PURE__ */ __name(async (output, context) => {
3676
2352
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3677
- return de_PutIntegrationCommandError(output, context);
2353
+ return de_CommandError(output, context);
3678
2354
  }
3679
2355
  const contents = (0, import_smithy_client.map)({
3680
2356
  $metadata: deserializeMetadata(output)
@@ -3694,40 +2370,9 @@ var de_PutIntegrationCommand = /* @__PURE__ */ __name(async (output, context) =>
3694
2370
  Object.assign(contents, doc);
3695
2371
  return contents;
3696
2372
  }, "de_PutIntegrationCommand");
3697
- var de_PutIntegrationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3698
- const parsedOutput = {
3699
- ...output,
3700
- body: await parseErrorBody(output.body, context)
3701
- };
3702
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3703
- switch (errorCode) {
3704
- case "AccessDeniedException":
3705
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3706
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3707
- case "BadRequestException":
3708
- case "com.amazonaws.customerprofiles#BadRequestException":
3709
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3710
- case "InternalServerException":
3711
- case "com.amazonaws.customerprofiles#InternalServerException":
3712
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3713
- case "ResourceNotFoundException":
3714
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3715
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3716
- case "ThrottlingException":
3717
- case "com.amazonaws.customerprofiles#ThrottlingException":
3718
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3719
- default:
3720
- const parsedBody = parsedOutput.body;
3721
- return throwDefaultError({
3722
- output,
3723
- parsedBody,
3724
- errorCode
3725
- });
3726
- }
3727
- }, "de_PutIntegrationCommandError");
3728
2373
  var de_PutProfileObjectCommand = /* @__PURE__ */ __name(async (output, context) => {
3729
2374
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3730
- return de_PutProfileObjectCommandError(output, context);
2375
+ return de_CommandError(output, context);
3731
2376
  }
3732
2377
  const contents = (0, import_smithy_client.map)({
3733
2378
  $metadata: deserializeMetadata(output)
@@ -3739,40 +2384,9 @@ var de_PutProfileObjectCommand = /* @__PURE__ */ __name(async (output, context)
3739
2384
  Object.assign(contents, doc);
3740
2385
  return contents;
3741
2386
  }, "de_PutProfileObjectCommand");
3742
- var de_PutProfileObjectCommandError = /* @__PURE__ */ __name(async (output, context) => {
3743
- const parsedOutput = {
3744
- ...output,
3745
- body: await parseErrorBody(output.body, context)
3746
- };
3747
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3748
- switch (errorCode) {
3749
- case "AccessDeniedException":
3750
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3751
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3752
- case "BadRequestException":
3753
- case "com.amazonaws.customerprofiles#BadRequestException":
3754
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3755
- case "InternalServerException":
3756
- case "com.amazonaws.customerprofiles#InternalServerException":
3757
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3758
- case "ResourceNotFoundException":
3759
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3760
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3761
- case "ThrottlingException":
3762
- case "com.amazonaws.customerprofiles#ThrottlingException":
3763
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3764
- default:
3765
- const parsedBody = parsedOutput.body;
3766
- return throwDefaultError({
3767
- output,
3768
- parsedBody,
3769
- errorCode
3770
- });
3771
- }
3772
- }, "de_PutProfileObjectCommandError");
3773
2387
  var de_PutProfileObjectTypeCommand = /* @__PURE__ */ __name(async (output, context) => {
3774
2388
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3775
- return de_PutProfileObjectTypeCommandError(output, context);
2389
+ return de_CommandError(output, context);
3776
2390
  }
3777
2391
  const contents = (0, import_smithy_client.map)({
3778
2392
  $metadata: deserializeMetadata(output)
@@ -3795,40 +2409,9 @@ var de_PutProfileObjectTypeCommand = /* @__PURE__ */ __name(async (output, conte
3795
2409
  Object.assign(contents, doc);
3796
2410
  return contents;
3797
2411
  }, "de_PutProfileObjectTypeCommand");
3798
- var de_PutProfileObjectTypeCommandError = /* @__PURE__ */ __name(async (output, context) => {
3799
- const parsedOutput = {
3800
- ...output,
3801
- body: await parseErrorBody(output.body, context)
3802
- };
3803
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3804
- switch (errorCode) {
3805
- case "AccessDeniedException":
3806
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3807
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3808
- case "BadRequestException":
3809
- case "com.amazonaws.customerprofiles#BadRequestException":
3810
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3811
- case "InternalServerException":
3812
- case "com.amazonaws.customerprofiles#InternalServerException":
3813
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3814
- case "ResourceNotFoundException":
3815
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3816
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3817
- case "ThrottlingException":
3818
- case "com.amazonaws.customerprofiles#ThrottlingException":
3819
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3820
- default:
3821
- const parsedBody = parsedOutput.body;
3822
- return throwDefaultError({
3823
- output,
3824
- parsedBody,
3825
- errorCode
3826
- });
3827
- }
3828
- }, "de_PutProfileObjectTypeCommandError");
3829
2412
  var de_SearchProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
3830
2413
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3831
- return de_SearchProfilesCommandError(output, context);
2414
+ return de_CommandError(output, context);
3832
2415
  }
3833
2416
  const contents = (0, import_smithy_client.map)({
3834
2417
  $metadata: deserializeMetadata(output)
@@ -3841,40 +2424,9 @@ var de_SearchProfilesCommand = /* @__PURE__ */ __name(async (output, context) =>
3841
2424
  Object.assign(contents, doc);
3842
2425
  return contents;
3843
2426
  }, "de_SearchProfilesCommand");
3844
- var de_SearchProfilesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3845
- const parsedOutput = {
3846
- ...output,
3847
- body: await parseErrorBody(output.body, context)
3848
- };
3849
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3850
- switch (errorCode) {
3851
- case "AccessDeniedException":
3852
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3853
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3854
- case "BadRequestException":
3855
- case "com.amazonaws.customerprofiles#BadRequestException":
3856
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3857
- case "InternalServerException":
3858
- case "com.amazonaws.customerprofiles#InternalServerException":
3859
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3860
- case "ResourceNotFoundException":
3861
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3862
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3863
- case "ThrottlingException":
3864
- case "com.amazonaws.customerprofiles#ThrottlingException":
3865
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3866
- default:
3867
- const parsedBody = parsedOutput.body;
3868
- return throwDefaultError({
3869
- output,
3870
- parsedBody,
3871
- errorCode
3872
- });
3873
- }
3874
- }, "de_SearchProfilesCommandError");
3875
2427
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3876
2428
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3877
- return de_TagResourceCommandError(output, context);
2429
+ return de_CommandError(output, context);
3878
2430
  }
3879
2431
  const contents = (0, import_smithy_client.map)({
3880
2432
  $metadata: deserializeMetadata(output)
@@ -3882,34 +2434,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3882
2434
  await (0, import_smithy_client.collectBody)(output.body, context);
3883
2435
  return contents;
3884
2436
  }, "de_TagResourceCommand");
3885
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3886
- const parsedOutput = {
3887
- ...output,
3888
- body: await parseErrorBody(output.body, context)
3889
- };
3890
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3891
- switch (errorCode) {
3892
- case "BadRequestException":
3893
- case "com.amazonaws.customerprofiles#BadRequestException":
3894
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3895
- case "InternalServerException":
3896
- case "com.amazonaws.customerprofiles#InternalServerException":
3897
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3898
- case "ResourceNotFoundException":
3899
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3900
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3901
- default:
3902
- const parsedBody = parsedOutput.body;
3903
- return throwDefaultError({
3904
- output,
3905
- parsedBody,
3906
- errorCode
3907
- });
3908
- }
3909
- }, "de_TagResourceCommandError");
3910
2437
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3911
2438
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3912
- return de_UntagResourceCommandError(output, context);
2439
+ return de_CommandError(output, context);
3913
2440
  }
3914
2441
  const contents = (0, import_smithy_client.map)({
3915
2442
  $metadata: deserializeMetadata(output)
@@ -3917,34 +2444,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
3917
2444
  await (0, import_smithy_client.collectBody)(output.body, context);
3918
2445
  return contents;
3919
2446
  }, "de_UntagResourceCommand");
3920
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3921
- const parsedOutput = {
3922
- ...output,
3923
- body: await parseErrorBody(output.body, context)
3924
- };
3925
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3926
- switch (errorCode) {
3927
- case "BadRequestException":
3928
- case "com.amazonaws.customerprofiles#BadRequestException":
3929
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3930
- case "InternalServerException":
3931
- case "com.amazonaws.customerprofiles#InternalServerException":
3932
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3933
- case "ResourceNotFoundException":
3934
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3935
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3936
- default:
3937
- const parsedBody = parsedOutput.body;
3938
- return throwDefaultError({
3939
- output,
3940
- parsedBody,
3941
- errorCode
3942
- });
3943
- }
3944
- }, "de_UntagResourceCommandError");
3945
2447
  var de_UpdateCalculatedAttributeDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
3946
2448
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3947
- return de_UpdateCalculatedAttributeDefinitionCommandError(output, context);
2449
+ return de_CommandError(output, context);
3948
2450
  }
3949
2451
  const contents = (0, import_smithy_client.map)({
3950
2452
  $metadata: deserializeMetadata(output)
@@ -3964,40 +2466,9 @@ var de_UpdateCalculatedAttributeDefinitionCommand = /* @__PURE__ */ __name(async
3964
2466
  Object.assign(contents, doc);
3965
2467
  return contents;
3966
2468
  }, "de_UpdateCalculatedAttributeDefinitionCommand");
3967
- var de_UpdateCalculatedAttributeDefinitionCommandError = /* @__PURE__ */ __name(async (output, context) => {
3968
- const parsedOutput = {
3969
- ...output,
3970
- body: await parseErrorBody(output.body, context)
3971
- };
3972
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3973
- switch (errorCode) {
3974
- case "AccessDeniedException":
3975
- case "com.amazonaws.customerprofiles#AccessDeniedException":
3976
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3977
- case "BadRequestException":
3978
- case "com.amazonaws.customerprofiles#BadRequestException":
3979
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3980
- case "InternalServerException":
3981
- case "com.amazonaws.customerprofiles#InternalServerException":
3982
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3983
- case "ResourceNotFoundException":
3984
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
3985
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3986
- case "ThrottlingException":
3987
- case "com.amazonaws.customerprofiles#ThrottlingException":
3988
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3989
- default:
3990
- const parsedBody = parsedOutput.body;
3991
- return throwDefaultError({
3992
- output,
3993
- parsedBody,
3994
- errorCode
3995
- });
3996
- }
3997
- }, "de_UpdateCalculatedAttributeDefinitionCommandError");
3998
2469
  var de_UpdateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
3999
2470
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4000
- return de_UpdateDomainCommandError(output, context);
2471
+ return de_CommandError(output, context);
4001
2472
  }
4002
2473
  const contents = (0, import_smithy_client.map)({
4003
2474
  $metadata: deserializeMetadata(output)
@@ -4017,40 +2488,9 @@ var de_UpdateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
4017
2488
  Object.assign(contents, doc);
4018
2489
  return contents;
4019
2490
  }, "de_UpdateDomainCommand");
4020
- var de_UpdateDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
4021
- const parsedOutput = {
4022
- ...output,
4023
- body: await parseErrorBody(output.body, context)
4024
- };
4025
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4026
- switch (errorCode) {
4027
- case "AccessDeniedException":
4028
- case "com.amazonaws.customerprofiles#AccessDeniedException":
4029
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4030
- case "BadRequestException":
4031
- case "com.amazonaws.customerprofiles#BadRequestException":
4032
- throw await de_BadRequestExceptionRes(parsedOutput, context);
4033
- case "InternalServerException":
4034
- case "com.amazonaws.customerprofiles#InternalServerException":
4035
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4036
- case "ResourceNotFoundException":
4037
- case "com.amazonaws.customerprofiles#ResourceNotFoundException":
4038
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4039
- case "ThrottlingException":
4040
- case "com.amazonaws.customerprofiles#ThrottlingException":
4041
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4042
- default:
4043
- const parsedBody = parsedOutput.body;
4044
- return throwDefaultError({
4045
- output,
4046
- parsedBody,
4047
- errorCode
4048
- });
4049
- }
4050
- }, "de_UpdateDomainCommandError");
4051
2491
  var de_UpdateProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
4052
2492
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4053
- return de_UpdateProfileCommandError(output, context);
2493
+ return de_CommandError(output, context);
4054
2494
  }
4055
2495
  const contents = (0, import_smithy_client.map)({
4056
2496
  $metadata: deserializeMetadata(output)
@@ -4062,7 +2502,7 @@ var de_UpdateProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
4062
2502
  Object.assign(contents, doc);
4063
2503
  return contents;
4064
2504
  }, "de_UpdateProfileCommand");
4065
- var de_UpdateProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
2505
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
4066
2506
  const parsedOutput = {
4067
2507
  ...output,
4068
2508
  body: await parseErrorBody(output.body, context)
@@ -4092,7 +2532,7 @@ var de_UpdateProfileCommandError = /* @__PURE__ */ __name(async (output, context
4092
2532
  errorCode
4093
2533
  });
4094
2534
  }
4095
- }, "de_UpdateProfileCommandError");
2535
+ }, "de_CommandError");
4096
2536
  var throwDefaultError = (0, import_smithy_client.withBaseException)(CustomerProfilesServiceException);
4097
2537
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4098
2538
  const contents = (0, import_smithy_client.map)({});