@aws-sdk/client-opensearch 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 +122 -1929
- package/dist-es/protocols/Aws_restJson1.js +115 -1922
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1752,7 +1752,7 @@ var se_UpgradeDomainCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1752
1752
|
}, "se_UpgradeDomainCommand");
|
|
1753
1753
|
var de_AcceptInboundConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1754
1754
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1755
|
-
return
|
|
1755
|
+
return de_CommandError(output, context);
|
|
1756
1756
|
}
|
|
1757
1757
|
const contents = (0, import_smithy_client.map)({
|
|
1758
1758
|
$metadata: deserializeMetadata(output)
|
|
@@ -1764,34 +1764,9 @@ var de_AcceptInboundConnectionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1764
1764
|
Object.assign(contents, doc);
|
|
1765
1765
|
return contents;
|
|
1766
1766
|
}, "de_AcceptInboundConnectionCommand");
|
|
1767
|
-
var de_AcceptInboundConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1768
|
-
const parsedOutput = {
|
|
1769
|
-
...output,
|
|
1770
|
-
body: await parseErrorBody(output.body, context)
|
|
1771
|
-
};
|
|
1772
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1773
|
-
switch (errorCode) {
|
|
1774
|
-
case "DisabledOperationException":
|
|
1775
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1776
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1777
|
-
case "LimitExceededException":
|
|
1778
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1779
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1780
|
-
case "ResourceNotFoundException":
|
|
1781
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1782
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1783
|
-
default:
|
|
1784
|
-
const parsedBody = parsedOutput.body;
|
|
1785
|
-
return throwDefaultError({
|
|
1786
|
-
output,
|
|
1787
|
-
parsedBody,
|
|
1788
|
-
errorCode
|
|
1789
|
-
});
|
|
1790
|
-
}
|
|
1791
|
-
}, "de_AcceptInboundConnectionCommandError");
|
|
1792
1767
|
var de_AddDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1793
1768
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1794
|
-
return
|
|
1769
|
+
return de_CommandError(output, context);
|
|
1795
1770
|
}
|
|
1796
1771
|
const contents = (0, import_smithy_client.map)({
|
|
1797
1772
|
$metadata: deserializeMetadata(output)
|
|
@@ -1803,46 +1778,9 @@ var de_AddDataSourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1803
1778
|
Object.assign(contents, doc);
|
|
1804
1779
|
return contents;
|
|
1805
1780
|
}, "de_AddDataSourceCommand");
|
|
1806
|
-
var de_AddDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1807
|
-
const parsedOutput = {
|
|
1808
|
-
...output,
|
|
1809
|
-
body: await parseErrorBody(output.body, context)
|
|
1810
|
-
};
|
|
1811
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1812
|
-
switch (errorCode) {
|
|
1813
|
-
case "BaseException":
|
|
1814
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1815
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1816
|
-
case "DependencyFailureException":
|
|
1817
|
-
case "com.amazonaws.opensearch#DependencyFailureException":
|
|
1818
|
-
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
1819
|
-
case "DisabledOperationException":
|
|
1820
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1821
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1822
|
-
case "InternalException":
|
|
1823
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1824
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1825
|
-
case "LimitExceededException":
|
|
1826
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1827
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1828
|
-
case "ResourceNotFoundException":
|
|
1829
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1830
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "ValidationException":
|
|
1832
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1833
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1834
|
-
default:
|
|
1835
|
-
const parsedBody = parsedOutput.body;
|
|
1836
|
-
return throwDefaultError({
|
|
1837
|
-
output,
|
|
1838
|
-
parsedBody,
|
|
1839
|
-
errorCode
|
|
1840
|
-
});
|
|
1841
|
-
}
|
|
1842
|
-
}, "de_AddDataSourceCommandError");
|
|
1843
1781
|
var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1844
1782
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1845
|
-
return
|
|
1783
|
+
return de_CommandError(output, context);
|
|
1846
1784
|
}
|
|
1847
1785
|
const contents = (0, import_smithy_client.map)({
|
|
1848
1786
|
$metadata: deserializeMetadata(output)
|
|
@@ -1850,37 +1788,9 @@ var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1850
1788
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1851
1789
|
return contents;
|
|
1852
1790
|
}, "de_AddTagsCommand");
|
|
1853
|
-
var de_AddTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1854
|
-
const parsedOutput = {
|
|
1855
|
-
...output,
|
|
1856
|
-
body: await parseErrorBody(output.body, context)
|
|
1857
|
-
};
|
|
1858
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1859
|
-
switch (errorCode) {
|
|
1860
|
-
case "BaseException":
|
|
1861
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1862
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1863
|
-
case "InternalException":
|
|
1864
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1865
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1866
|
-
case "LimitExceededException":
|
|
1867
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1868
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "ValidationException":
|
|
1870
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1871
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1872
|
-
default:
|
|
1873
|
-
const parsedBody = parsedOutput.body;
|
|
1874
|
-
return throwDefaultError({
|
|
1875
|
-
output,
|
|
1876
|
-
parsedBody,
|
|
1877
|
-
errorCode
|
|
1878
|
-
});
|
|
1879
|
-
}
|
|
1880
|
-
}, "de_AddTagsCommandError");
|
|
1881
1791
|
var de_AssociatePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1882
1792
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1883
|
-
return
|
|
1793
|
+
return de_CommandError(output, context);
|
|
1884
1794
|
}
|
|
1885
1795
|
const contents = (0, import_smithy_client.map)({
|
|
1886
1796
|
$metadata: deserializeMetadata(output)
|
|
@@ -1892,43 +1802,9 @@ var de_AssociatePackageCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1892
1802
|
Object.assign(contents, doc);
|
|
1893
1803
|
return contents;
|
|
1894
1804
|
}, "de_AssociatePackageCommand");
|
|
1895
|
-
var de_AssociatePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1896
|
-
const parsedOutput = {
|
|
1897
|
-
...output,
|
|
1898
|
-
body: await parseErrorBody(output.body, context)
|
|
1899
|
-
};
|
|
1900
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1901
|
-
switch (errorCode) {
|
|
1902
|
-
case "AccessDeniedException":
|
|
1903
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
1904
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1905
|
-
case "BaseException":
|
|
1906
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1907
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1908
|
-
case "ConflictException":
|
|
1909
|
-
case "com.amazonaws.opensearch#ConflictException":
|
|
1910
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1911
|
-
case "InternalException":
|
|
1912
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1913
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1914
|
-
case "ResourceNotFoundException":
|
|
1915
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1916
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1917
|
-
case "ValidationException":
|
|
1918
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1919
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1920
|
-
default:
|
|
1921
|
-
const parsedBody = parsedOutput.body;
|
|
1922
|
-
return throwDefaultError({
|
|
1923
|
-
output,
|
|
1924
|
-
parsedBody,
|
|
1925
|
-
errorCode
|
|
1926
|
-
});
|
|
1927
|
-
}
|
|
1928
|
-
}, "de_AssociatePackageCommandError");
|
|
1929
1805
|
var de_AuthorizeVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1930
1806
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1931
|
-
return
|
|
1807
|
+
return de_CommandError(output, context);
|
|
1932
1808
|
}
|
|
1933
1809
|
const contents = (0, import_smithy_client.map)({
|
|
1934
1810
|
$metadata: deserializeMetadata(output)
|
|
@@ -1940,43 +1816,9 @@ var de_AuthorizeVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1940
1816
|
Object.assign(contents, doc);
|
|
1941
1817
|
return contents;
|
|
1942
1818
|
}, "de_AuthorizeVpcEndpointAccessCommand");
|
|
1943
|
-
var de_AuthorizeVpcEndpointAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1944
|
-
const parsedOutput = {
|
|
1945
|
-
...output,
|
|
1946
|
-
body: await parseErrorBody(output.body, context)
|
|
1947
|
-
};
|
|
1948
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1949
|
-
switch (errorCode) {
|
|
1950
|
-
case "BaseException":
|
|
1951
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1952
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1953
|
-
case "DisabledOperationException":
|
|
1954
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1955
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1956
|
-
case "InternalException":
|
|
1957
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1958
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1959
|
-
case "LimitExceededException":
|
|
1960
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1961
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1962
|
-
case "ResourceNotFoundException":
|
|
1963
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1964
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1965
|
-
case "ValidationException":
|
|
1966
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1967
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1968
|
-
default:
|
|
1969
|
-
const parsedBody = parsedOutput.body;
|
|
1970
|
-
return throwDefaultError({
|
|
1971
|
-
output,
|
|
1972
|
-
parsedBody,
|
|
1973
|
-
errorCode
|
|
1974
|
-
});
|
|
1975
|
-
}
|
|
1976
|
-
}, "de_AuthorizeVpcEndpointAccessCommandError");
|
|
1977
1819
|
var de_CancelServiceSoftwareUpdateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1978
1820
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1979
|
-
return
|
|
1821
|
+
return de_CommandError(output, context);
|
|
1980
1822
|
}
|
|
1981
1823
|
const contents = (0, import_smithy_client.map)({
|
|
1982
1824
|
$metadata: deserializeMetadata(output)
|
|
@@ -1988,37 +1830,9 @@ var de_CancelServiceSoftwareUpdateCommand = /* @__PURE__ */ __name(async (output
|
|
|
1988
1830
|
Object.assign(contents, doc);
|
|
1989
1831
|
return contents;
|
|
1990
1832
|
}, "de_CancelServiceSoftwareUpdateCommand");
|
|
1991
|
-
var de_CancelServiceSoftwareUpdateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1992
|
-
const parsedOutput = {
|
|
1993
|
-
...output,
|
|
1994
|
-
body: await parseErrorBody(output.body, context)
|
|
1995
|
-
};
|
|
1996
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1997
|
-
switch (errorCode) {
|
|
1998
|
-
case "BaseException":
|
|
1999
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2000
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2001
|
-
case "InternalException":
|
|
2002
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2003
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2004
|
-
case "ResourceNotFoundException":
|
|
2005
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2006
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2007
|
-
case "ValidationException":
|
|
2008
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2009
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2010
|
-
default:
|
|
2011
|
-
const parsedBody = parsedOutput.body;
|
|
2012
|
-
return throwDefaultError({
|
|
2013
|
-
output,
|
|
2014
|
-
parsedBody,
|
|
2015
|
-
errorCode
|
|
2016
|
-
});
|
|
2017
|
-
}
|
|
2018
|
-
}, "de_CancelServiceSoftwareUpdateCommandError");
|
|
2019
1833
|
var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2020
1834
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2021
|
-
return
|
|
1835
|
+
return de_CommandError(output, context);
|
|
2022
1836
|
}
|
|
2023
1837
|
const contents = (0, import_smithy_client.map)({
|
|
2024
1838
|
$metadata: deserializeMetadata(output)
|
|
@@ -2030,46 +1844,9 @@ var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2030
1844
|
Object.assign(contents, doc);
|
|
2031
1845
|
return contents;
|
|
2032
1846
|
}, "de_CreateDomainCommand");
|
|
2033
|
-
var de_CreateDomainCommandError = /* @__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 "BaseException":
|
|
2041
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2042
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2043
|
-
case "DisabledOperationException":
|
|
2044
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2045
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2046
|
-
case "InternalException":
|
|
2047
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2048
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2049
|
-
case "InvalidTypeException":
|
|
2050
|
-
case "com.amazonaws.opensearch#InvalidTypeException":
|
|
2051
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
2052
|
-
case "LimitExceededException":
|
|
2053
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
2054
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2055
|
-
case "ResourceAlreadyExistsException":
|
|
2056
|
-
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
2057
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "ValidationException":
|
|
2059
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2060
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2061
|
-
default:
|
|
2062
|
-
const parsedBody = parsedOutput.body;
|
|
2063
|
-
return throwDefaultError({
|
|
2064
|
-
output,
|
|
2065
|
-
parsedBody,
|
|
2066
|
-
errorCode
|
|
2067
|
-
});
|
|
2068
|
-
}
|
|
2069
|
-
}, "de_CreateDomainCommandError");
|
|
2070
1847
|
var de_CreateOutboundConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2071
1848
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2072
|
-
return
|
|
1849
|
+
return de_CommandError(output, context);
|
|
2073
1850
|
}
|
|
2074
1851
|
const contents = (0, import_smithy_client.map)({
|
|
2075
1852
|
$metadata: deserializeMetadata(output)
|
|
@@ -2087,37 +1864,9 @@ var de_CreateOutboundConnectionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2087
1864
|
Object.assign(contents, doc);
|
|
2088
1865
|
return contents;
|
|
2089
1866
|
}, "de_CreateOutboundConnectionCommand");
|
|
2090
|
-
var de_CreateOutboundConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2091
|
-
const parsedOutput = {
|
|
2092
|
-
...output,
|
|
2093
|
-
body: await parseErrorBody(output.body, context)
|
|
2094
|
-
};
|
|
2095
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2096
|
-
switch (errorCode) {
|
|
2097
|
-
case "DisabledOperationException":
|
|
2098
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2099
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2100
|
-
case "InternalException":
|
|
2101
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2102
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2103
|
-
case "LimitExceededException":
|
|
2104
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
2105
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2106
|
-
case "ResourceAlreadyExistsException":
|
|
2107
|
-
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
2108
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2109
|
-
default:
|
|
2110
|
-
const parsedBody = parsedOutput.body;
|
|
2111
|
-
return throwDefaultError({
|
|
2112
|
-
output,
|
|
2113
|
-
parsedBody,
|
|
2114
|
-
errorCode
|
|
2115
|
-
});
|
|
2116
|
-
}
|
|
2117
|
-
}, "de_CreateOutboundConnectionCommandError");
|
|
2118
1867
|
var de_CreatePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2119
1868
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2120
|
-
return
|
|
1869
|
+
return de_CommandError(output, context);
|
|
2121
1870
|
}
|
|
2122
1871
|
const contents = (0, import_smithy_client.map)({
|
|
2123
1872
|
$metadata: deserializeMetadata(output)
|
|
@@ -2129,46 +1878,9 @@ var de_CreatePackageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2129
1878
|
Object.assign(contents, doc);
|
|
2130
1879
|
return contents;
|
|
2131
1880
|
}, "de_CreatePackageCommand");
|
|
2132
|
-
var de_CreatePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2133
|
-
const parsedOutput = {
|
|
2134
|
-
...output,
|
|
2135
|
-
body: await parseErrorBody(output.body, context)
|
|
2136
|
-
};
|
|
2137
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2138
|
-
switch (errorCode) {
|
|
2139
|
-
case "AccessDeniedException":
|
|
2140
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
2141
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2142
|
-
case "BaseException":
|
|
2143
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2144
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2145
|
-
case "InternalException":
|
|
2146
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2147
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2148
|
-
case "InvalidTypeException":
|
|
2149
|
-
case "com.amazonaws.opensearch#InvalidTypeException":
|
|
2150
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
2151
|
-
case "LimitExceededException":
|
|
2152
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
2153
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2154
|
-
case "ResourceAlreadyExistsException":
|
|
2155
|
-
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
2156
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2157
|
-
case "ValidationException":
|
|
2158
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2159
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2160
|
-
default:
|
|
2161
|
-
const parsedBody = parsedOutput.body;
|
|
2162
|
-
return throwDefaultError({
|
|
2163
|
-
output,
|
|
2164
|
-
parsedBody,
|
|
2165
|
-
errorCode
|
|
2166
|
-
});
|
|
2167
|
-
}
|
|
2168
|
-
}, "de_CreatePackageCommandError");
|
|
2169
1881
|
var de_CreateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2170
1882
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2171
|
-
return
|
|
1883
|
+
return de_CommandError(output, context);
|
|
2172
1884
|
}
|
|
2173
1885
|
const contents = (0, import_smithy_client.map)({
|
|
2174
1886
|
$metadata: deserializeMetadata(output)
|
|
@@ -2180,43 +1892,9 @@ var de_CreateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2180
1892
|
Object.assign(contents, doc);
|
|
2181
1893
|
return contents;
|
|
2182
1894
|
}, "de_CreateVpcEndpointCommand");
|
|
2183
|
-
var de_CreateVpcEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2184
|
-
const parsedOutput = {
|
|
2185
|
-
...output,
|
|
2186
|
-
body: await parseErrorBody(output.body, context)
|
|
2187
|
-
};
|
|
2188
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2189
|
-
switch (errorCode) {
|
|
2190
|
-
case "BaseException":
|
|
2191
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2192
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2193
|
-
case "ConflictException":
|
|
2194
|
-
case "com.amazonaws.opensearch#ConflictException":
|
|
2195
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2196
|
-
case "DisabledOperationException":
|
|
2197
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2198
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2199
|
-
case "InternalException":
|
|
2200
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2201
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2202
|
-
case "LimitExceededException":
|
|
2203
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
2204
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2205
|
-
case "ValidationException":
|
|
2206
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2207
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2208
|
-
default:
|
|
2209
|
-
const parsedBody = parsedOutput.body;
|
|
2210
|
-
return throwDefaultError({
|
|
2211
|
-
output,
|
|
2212
|
-
parsedBody,
|
|
2213
|
-
errorCode
|
|
2214
|
-
});
|
|
2215
|
-
}
|
|
2216
|
-
}, "de_CreateVpcEndpointCommandError");
|
|
2217
1895
|
var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2218
1896
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2219
|
-
return
|
|
1897
|
+
return de_CommandError(output, context);
|
|
2220
1898
|
}
|
|
2221
1899
|
const contents = (0, import_smithy_client.map)({
|
|
2222
1900
|
$metadata: deserializeMetadata(output)
|
|
@@ -2228,43 +1906,9 @@ var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2228
1906
|
Object.assign(contents, doc);
|
|
2229
1907
|
return contents;
|
|
2230
1908
|
}, "de_DeleteDataSourceCommand");
|
|
2231
|
-
var de_DeleteDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2232
|
-
const parsedOutput = {
|
|
2233
|
-
...output,
|
|
2234
|
-
body: await parseErrorBody(output.body, context)
|
|
2235
|
-
};
|
|
2236
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2237
|
-
switch (errorCode) {
|
|
2238
|
-
case "BaseException":
|
|
2239
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2240
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "DependencyFailureException":
|
|
2242
|
-
case "com.amazonaws.opensearch#DependencyFailureException":
|
|
2243
|
-
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "DisabledOperationException":
|
|
2245
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2246
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "InternalException":
|
|
2248
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2249
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2250
|
-
case "ResourceNotFoundException":
|
|
2251
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2252
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2253
|
-
case "ValidationException":
|
|
2254
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2255
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2256
|
-
default:
|
|
2257
|
-
const parsedBody = parsedOutput.body;
|
|
2258
|
-
return throwDefaultError({
|
|
2259
|
-
output,
|
|
2260
|
-
parsedBody,
|
|
2261
|
-
errorCode
|
|
2262
|
-
});
|
|
2263
|
-
}
|
|
2264
|
-
}, "de_DeleteDataSourceCommandError");
|
|
2265
1909
|
var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2266
1910
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2267
|
-
return
|
|
1911
|
+
return de_CommandError(output, context);
|
|
2268
1912
|
}
|
|
2269
1913
|
const contents = (0, import_smithy_client.map)({
|
|
2270
1914
|
$metadata: deserializeMetadata(output)
|
|
@@ -2276,37 +1920,9 @@ var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2276
1920
|
Object.assign(contents, doc);
|
|
2277
1921
|
return contents;
|
|
2278
1922
|
}, "de_DeleteDomainCommand");
|
|
2279
|
-
var de_DeleteDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2280
|
-
const parsedOutput = {
|
|
2281
|
-
...output,
|
|
2282
|
-
body: await parseErrorBody(output.body, context)
|
|
2283
|
-
};
|
|
2284
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2285
|
-
switch (errorCode) {
|
|
2286
|
-
case "BaseException":
|
|
2287
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2288
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2289
|
-
case "InternalException":
|
|
2290
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2291
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2292
|
-
case "ResourceNotFoundException":
|
|
2293
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2294
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "ValidationException":
|
|
2296
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2297
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2298
|
-
default:
|
|
2299
|
-
const parsedBody = parsedOutput.body;
|
|
2300
|
-
return throwDefaultError({
|
|
2301
|
-
output,
|
|
2302
|
-
parsedBody,
|
|
2303
|
-
errorCode
|
|
2304
|
-
});
|
|
2305
|
-
}
|
|
2306
|
-
}, "de_DeleteDomainCommandError");
|
|
2307
1923
|
var de_DeleteInboundConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2308
1924
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2309
|
-
return
|
|
1925
|
+
return de_CommandError(output, context);
|
|
2310
1926
|
}
|
|
2311
1927
|
const contents = (0, import_smithy_client.map)({
|
|
2312
1928
|
$metadata: deserializeMetadata(output)
|
|
@@ -2318,31 +1934,9 @@ var de_DeleteInboundConnectionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2318
1934
|
Object.assign(contents, doc);
|
|
2319
1935
|
return contents;
|
|
2320
1936
|
}, "de_DeleteInboundConnectionCommand");
|
|
2321
|
-
var de_DeleteInboundConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2322
|
-
const parsedOutput = {
|
|
2323
|
-
...output,
|
|
2324
|
-
body: await parseErrorBody(output.body, context)
|
|
2325
|
-
};
|
|
2326
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2327
|
-
switch (errorCode) {
|
|
2328
|
-
case "DisabledOperationException":
|
|
2329
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2330
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2331
|
-
case "ResourceNotFoundException":
|
|
2332
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2333
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2334
|
-
default:
|
|
2335
|
-
const parsedBody = parsedOutput.body;
|
|
2336
|
-
return throwDefaultError({
|
|
2337
|
-
output,
|
|
2338
|
-
parsedBody,
|
|
2339
|
-
errorCode
|
|
2340
|
-
});
|
|
2341
|
-
}
|
|
2342
|
-
}, "de_DeleteInboundConnectionCommandError");
|
|
2343
1937
|
var de_DeleteOutboundConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2344
1938
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2345
|
-
return
|
|
1939
|
+
return de_CommandError(output, context);
|
|
2346
1940
|
}
|
|
2347
1941
|
const contents = (0, import_smithy_client.map)({
|
|
2348
1942
|
$metadata: deserializeMetadata(output)
|
|
@@ -2354,31 +1948,9 @@ var de_DeleteOutboundConnectionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2354
1948
|
Object.assign(contents, doc);
|
|
2355
1949
|
return contents;
|
|
2356
1950
|
}, "de_DeleteOutboundConnectionCommand");
|
|
2357
|
-
var de_DeleteOutboundConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2358
|
-
const parsedOutput = {
|
|
2359
|
-
...output,
|
|
2360
|
-
body: await parseErrorBody(output.body, context)
|
|
2361
|
-
};
|
|
2362
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2363
|
-
switch (errorCode) {
|
|
2364
|
-
case "DisabledOperationException":
|
|
2365
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2366
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2367
|
-
case "ResourceNotFoundException":
|
|
2368
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2369
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2370
|
-
default:
|
|
2371
|
-
const parsedBody = parsedOutput.body;
|
|
2372
|
-
return throwDefaultError({
|
|
2373
|
-
output,
|
|
2374
|
-
parsedBody,
|
|
2375
|
-
errorCode
|
|
2376
|
-
});
|
|
2377
|
-
}
|
|
2378
|
-
}, "de_DeleteOutboundConnectionCommandError");
|
|
2379
1951
|
var de_DeletePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2380
1952
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2381
|
-
return
|
|
1953
|
+
return de_CommandError(output, context);
|
|
2382
1954
|
}
|
|
2383
1955
|
const contents = (0, import_smithy_client.map)({
|
|
2384
1956
|
$metadata: deserializeMetadata(output)
|
|
@@ -2390,43 +1962,9 @@ var de_DeletePackageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2390
1962
|
Object.assign(contents, doc);
|
|
2391
1963
|
return contents;
|
|
2392
1964
|
}, "de_DeletePackageCommand");
|
|
2393
|
-
var de_DeletePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2394
|
-
const parsedOutput = {
|
|
2395
|
-
...output,
|
|
2396
|
-
body: await parseErrorBody(output.body, context)
|
|
2397
|
-
};
|
|
2398
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2399
|
-
switch (errorCode) {
|
|
2400
|
-
case "AccessDeniedException":
|
|
2401
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
2402
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2403
|
-
case "BaseException":
|
|
2404
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2405
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2406
|
-
case "ConflictException":
|
|
2407
|
-
case "com.amazonaws.opensearch#ConflictException":
|
|
2408
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2409
|
-
case "InternalException":
|
|
2410
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2411
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2412
|
-
case "ResourceNotFoundException":
|
|
2413
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2414
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "ValidationException":
|
|
2416
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2417
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2418
|
-
default:
|
|
2419
|
-
const parsedBody = parsedOutput.body;
|
|
2420
|
-
return throwDefaultError({
|
|
2421
|
-
output,
|
|
2422
|
-
parsedBody,
|
|
2423
|
-
errorCode
|
|
2424
|
-
});
|
|
2425
|
-
}
|
|
2426
|
-
}, "de_DeletePackageCommandError");
|
|
2427
1965
|
var de_DeleteVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2428
1966
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2429
|
-
return
|
|
1967
|
+
return de_CommandError(output, context);
|
|
2430
1968
|
}
|
|
2431
1969
|
const contents = (0, import_smithy_client.map)({
|
|
2432
1970
|
$metadata: deserializeMetadata(output)
|
|
@@ -2438,37 +1976,9 @@ var de_DeleteVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2438
1976
|
Object.assign(contents, doc);
|
|
2439
1977
|
return contents;
|
|
2440
1978
|
}, "de_DeleteVpcEndpointCommand");
|
|
2441
|
-
var de_DeleteVpcEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2442
|
-
const parsedOutput = {
|
|
2443
|
-
...output,
|
|
2444
|
-
body: await parseErrorBody(output.body, context)
|
|
2445
|
-
};
|
|
2446
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2447
|
-
switch (errorCode) {
|
|
2448
|
-
case "BaseException":
|
|
2449
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2450
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2451
|
-
case "DisabledOperationException":
|
|
2452
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2453
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2454
|
-
case "InternalException":
|
|
2455
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2456
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2457
|
-
case "ResourceNotFoundException":
|
|
2458
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2459
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2460
|
-
default:
|
|
2461
|
-
const parsedBody = parsedOutput.body;
|
|
2462
|
-
return throwDefaultError({
|
|
2463
|
-
output,
|
|
2464
|
-
parsedBody,
|
|
2465
|
-
errorCode
|
|
2466
|
-
});
|
|
2467
|
-
}
|
|
2468
|
-
}, "de_DeleteVpcEndpointCommandError");
|
|
2469
1979
|
var de_DescribeDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2470
1980
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2471
|
-
return
|
|
1981
|
+
return de_CommandError(output, context);
|
|
2472
1982
|
}
|
|
2473
1983
|
const contents = (0, import_smithy_client.map)({
|
|
2474
1984
|
$metadata: deserializeMetadata(output)
|
|
@@ -2480,37 +1990,9 @@ var de_DescribeDomainCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2480
1990
|
Object.assign(contents, doc);
|
|
2481
1991
|
return contents;
|
|
2482
1992
|
}, "de_DescribeDomainCommand");
|
|
2483
|
-
var de_DescribeDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2484
|
-
const parsedOutput = {
|
|
2485
|
-
...output,
|
|
2486
|
-
body: await parseErrorBody(output.body, context)
|
|
2487
|
-
};
|
|
2488
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2489
|
-
switch (errorCode) {
|
|
2490
|
-
case "BaseException":
|
|
2491
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2492
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2493
|
-
case "InternalException":
|
|
2494
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2495
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2496
|
-
case "ResourceNotFoundException":
|
|
2497
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2498
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2499
|
-
case "ValidationException":
|
|
2500
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2501
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2502
|
-
default:
|
|
2503
|
-
const parsedBody = parsedOutput.body;
|
|
2504
|
-
return throwDefaultError({
|
|
2505
|
-
output,
|
|
2506
|
-
parsedBody,
|
|
2507
|
-
errorCode
|
|
2508
|
-
});
|
|
2509
|
-
}
|
|
2510
|
-
}, "de_DescribeDomainCommandError");
|
|
2511
1993
|
var de_DescribeDomainAutoTunesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2512
1994
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2513
|
-
return
|
|
1995
|
+
return de_CommandError(output, context);
|
|
2514
1996
|
}
|
|
2515
1997
|
const contents = (0, import_smithy_client.map)({
|
|
2516
1998
|
$metadata: deserializeMetadata(output)
|
|
@@ -2523,37 +2005,9 @@ var de_DescribeDomainAutoTunesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2523
2005
|
Object.assign(contents, doc);
|
|
2524
2006
|
return contents;
|
|
2525
2007
|
}, "de_DescribeDomainAutoTunesCommand");
|
|
2526
|
-
var de_DescribeDomainAutoTunesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2527
|
-
const parsedOutput = {
|
|
2528
|
-
...output,
|
|
2529
|
-
body: await parseErrorBody(output.body, context)
|
|
2530
|
-
};
|
|
2531
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2532
|
-
switch (errorCode) {
|
|
2533
|
-
case "BaseException":
|
|
2534
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2535
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2536
|
-
case "InternalException":
|
|
2537
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2538
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2539
|
-
case "ResourceNotFoundException":
|
|
2540
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2541
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2542
|
-
case "ValidationException":
|
|
2543
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2544
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2545
|
-
default:
|
|
2546
|
-
const parsedBody = parsedOutput.body;
|
|
2547
|
-
return throwDefaultError({
|
|
2548
|
-
output,
|
|
2549
|
-
parsedBody,
|
|
2550
|
-
errorCode
|
|
2551
|
-
});
|
|
2552
|
-
}
|
|
2553
|
-
}, "de_DescribeDomainAutoTunesCommandError");
|
|
2554
2008
|
var de_DescribeDomainChangeProgressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2555
2009
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2556
|
-
return
|
|
2010
|
+
return de_CommandError(output, context);
|
|
2557
2011
|
}
|
|
2558
2012
|
const contents = (0, import_smithy_client.map)({
|
|
2559
2013
|
$metadata: deserializeMetadata(output)
|
|
@@ -2565,37 +2019,9 @@ var de_DescribeDomainChangeProgressCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2565
2019
|
Object.assign(contents, doc);
|
|
2566
2020
|
return contents;
|
|
2567
2021
|
}, "de_DescribeDomainChangeProgressCommand");
|
|
2568
|
-
var de_DescribeDomainChangeProgressCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2569
|
-
const parsedOutput = {
|
|
2570
|
-
...output,
|
|
2571
|
-
body: await parseErrorBody(output.body, context)
|
|
2572
|
-
};
|
|
2573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2574
|
-
switch (errorCode) {
|
|
2575
|
-
case "BaseException":
|
|
2576
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2577
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2578
|
-
case "InternalException":
|
|
2579
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2580
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2581
|
-
case "ResourceNotFoundException":
|
|
2582
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2583
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2584
|
-
case "ValidationException":
|
|
2585
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2586
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2587
|
-
default:
|
|
2588
|
-
const parsedBody = parsedOutput.body;
|
|
2589
|
-
return throwDefaultError({
|
|
2590
|
-
output,
|
|
2591
|
-
parsedBody,
|
|
2592
|
-
errorCode
|
|
2593
|
-
});
|
|
2594
|
-
}
|
|
2595
|
-
}, "de_DescribeDomainChangeProgressCommandError");
|
|
2596
2022
|
var de_DescribeDomainConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2597
2023
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2598
|
-
return
|
|
2024
|
+
return de_CommandError(output, context);
|
|
2599
2025
|
}
|
|
2600
2026
|
const contents = (0, import_smithy_client.map)({
|
|
2601
2027
|
$metadata: deserializeMetadata(output)
|
|
@@ -2607,37 +2033,9 @@ var de_DescribeDomainConfigCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2607
2033
|
Object.assign(contents, doc);
|
|
2608
2034
|
return contents;
|
|
2609
2035
|
}, "de_DescribeDomainConfigCommand");
|
|
2610
|
-
var de_DescribeDomainConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2611
|
-
const parsedOutput = {
|
|
2612
|
-
...output,
|
|
2613
|
-
body: await parseErrorBody(output.body, context)
|
|
2614
|
-
};
|
|
2615
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2616
|
-
switch (errorCode) {
|
|
2617
|
-
case "BaseException":
|
|
2618
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2619
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2620
|
-
case "InternalException":
|
|
2621
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2622
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2623
|
-
case "ResourceNotFoundException":
|
|
2624
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2625
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2626
|
-
case "ValidationException":
|
|
2627
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2628
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2629
|
-
default:
|
|
2630
|
-
const parsedBody = parsedOutput.body;
|
|
2631
|
-
return throwDefaultError({
|
|
2632
|
-
output,
|
|
2633
|
-
parsedBody,
|
|
2634
|
-
errorCode
|
|
2635
|
-
});
|
|
2636
|
-
}
|
|
2637
|
-
}, "de_DescribeDomainConfigCommandError");
|
|
2638
2036
|
var de_DescribeDomainHealthCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2639
2037
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2640
|
-
return
|
|
2038
|
+
return de_CommandError(output, context);
|
|
2641
2039
|
}
|
|
2642
2040
|
const contents = (0, import_smithy_client.map)({
|
|
2643
2041
|
$metadata: deserializeMetadata(output)
|
|
@@ -2661,40 +2059,9 @@ var de_DescribeDomainHealthCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2661
2059
|
Object.assign(contents, doc);
|
|
2662
2060
|
return contents;
|
|
2663
2061
|
}, "de_DescribeDomainHealthCommand");
|
|
2664
|
-
var de_DescribeDomainHealthCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2665
|
-
const parsedOutput = {
|
|
2666
|
-
...output,
|
|
2667
|
-
body: await parseErrorBody(output.body, context)
|
|
2668
|
-
};
|
|
2669
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2670
|
-
switch (errorCode) {
|
|
2671
|
-
case "BaseException":
|
|
2672
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2673
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2674
|
-
case "DisabledOperationException":
|
|
2675
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2676
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "InternalException":
|
|
2678
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2679
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2680
|
-
case "ResourceNotFoundException":
|
|
2681
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2682
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2683
|
-
case "ValidationException":
|
|
2684
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2685
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2686
|
-
default:
|
|
2687
|
-
const parsedBody = parsedOutput.body;
|
|
2688
|
-
return throwDefaultError({
|
|
2689
|
-
output,
|
|
2690
|
-
parsedBody,
|
|
2691
|
-
errorCode
|
|
2692
|
-
});
|
|
2693
|
-
}
|
|
2694
|
-
}, "de_DescribeDomainHealthCommandError");
|
|
2695
2062
|
var de_DescribeDomainNodesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2696
2063
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2697
|
-
return
|
|
2064
|
+
return de_CommandError(output, context);
|
|
2698
2065
|
}
|
|
2699
2066
|
const contents = (0, import_smithy_client.map)({
|
|
2700
2067
|
$metadata: deserializeMetadata(output)
|
|
@@ -2706,43 +2073,9 @@ var de_DescribeDomainNodesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2706
2073
|
Object.assign(contents, doc);
|
|
2707
2074
|
return contents;
|
|
2708
2075
|
}, "de_DescribeDomainNodesCommand");
|
|
2709
|
-
var de_DescribeDomainNodesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2710
|
-
const parsedOutput = {
|
|
2711
|
-
...output,
|
|
2712
|
-
body: await parseErrorBody(output.body, context)
|
|
2713
|
-
};
|
|
2714
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2715
|
-
switch (errorCode) {
|
|
2716
|
-
case "BaseException":
|
|
2717
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2718
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2719
|
-
case "DependencyFailureException":
|
|
2720
|
-
case "com.amazonaws.opensearch#DependencyFailureException":
|
|
2721
|
-
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
2722
|
-
case "DisabledOperationException":
|
|
2723
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2724
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2725
|
-
case "InternalException":
|
|
2726
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2727
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2728
|
-
case "ResourceNotFoundException":
|
|
2729
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2730
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2731
|
-
case "ValidationException":
|
|
2732
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2733
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2734
|
-
default:
|
|
2735
|
-
const parsedBody = parsedOutput.body;
|
|
2736
|
-
return throwDefaultError({
|
|
2737
|
-
output,
|
|
2738
|
-
parsedBody,
|
|
2739
|
-
errorCode
|
|
2740
|
-
});
|
|
2741
|
-
}
|
|
2742
|
-
}, "de_DescribeDomainNodesCommandError");
|
|
2743
2076
|
var de_DescribeDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2744
2077
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2745
|
-
return
|
|
2078
|
+
return de_CommandError(output, context);
|
|
2746
2079
|
}
|
|
2747
2080
|
const contents = (0, import_smithy_client.map)({
|
|
2748
2081
|
$metadata: deserializeMetadata(output)
|
|
@@ -2754,34 +2087,9 @@ var de_DescribeDomainsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2754
2087
|
Object.assign(contents, doc);
|
|
2755
2088
|
return contents;
|
|
2756
2089
|
}, "de_DescribeDomainsCommand");
|
|
2757
|
-
var de_DescribeDomainsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2758
|
-
const parsedOutput = {
|
|
2759
|
-
...output,
|
|
2760
|
-
body: await parseErrorBody(output.body, context)
|
|
2761
|
-
};
|
|
2762
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2763
|
-
switch (errorCode) {
|
|
2764
|
-
case "BaseException":
|
|
2765
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2766
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2767
|
-
case "InternalException":
|
|
2768
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2769
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2770
|
-
case "ValidationException":
|
|
2771
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2772
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2773
|
-
default:
|
|
2774
|
-
const parsedBody = parsedOutput.body;
|
|
2775
|
-
return throwDefaultError({
|
|
2776
|
-
output,
|
|
2777
|
-
parsedBody,
|
|
2778
|
-
errorCode
|
|
2779
|
-
});
|
|
2780
|
-
}
|
|
2781
|
-
}, "de_DescribeDomainsCommandError");
|
|
2782
2090
|
var de_DescribeDryRunProgressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2783
2091
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2784
|
-
return
|
|
2092
|
+
return de_CommandError(output, context);
|
|
2785
2093
|
}
|
|
2786
2094
|
const contents = (0, import_smithy_client.map)({
|
|
2787
2095
|
$metadata: deserializeMetadata(output)
|
|
@@ -2795,40 +2103,9 @@ var de_DescribeDryRunProgressCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2795
2103
|
Object.assign(contents, doc);
|
|
2796
2104
|
return contents;
|
|
2797
2105
|
}, "de_DescribeDryRunProgressCommand");
|
|
2798
|
-
var de_DescribeDryRunProgressCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2799
|
-
const parsedOutput = {
|
|
2800
|
-
...output,
|
|
2801
|
-
body: await parseErrorBody(output.body, context)
|
|
2802
|
-
};
|
|
2803
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2804
|
-
switch (errorCode) {
|
|
2805
|
-
case "BaseException":
|
|
2806
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2807
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2808
|
-
case "DisabledOperationException":
|
|
2809
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2810
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2811
|
-
case "InternalException":
|
|
2812
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2813
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2814
|
-
case "ResourceNotFoundException":
|
|
2815
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2816
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2817
|
-
case "ValidationException":
|
|
2818
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2819
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2820
|
-
default:
|
|
2821
|
-
const parsedBody = parsedOutput.body;
|
|
2822
|
-
return throwDefaultError({
|
|
2823
|
-
output,
|
|
2824
|
-
parsedBody,
|
|
2825
|
-
errorCode
|
|
2826
|
-
});
|
|
2827
|
-
}
|
|
2828
|
-
}, "de_DescribeDryRunProgressCommandError");
|
|
2829
2106
|
var de_DescribeInboundConnectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2830
2107
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2831
|
-
return
|
|
2108
|
+
return de_CommandError(output, context);
|
|
2832
2109
|
}
|
|
2833
2110
|
const contents = (0, import_smithy_client.map)({
|
|
2834
2111
|
$metadata: deserializeMetadata(output)
|
|
@@ -2841,31 +2118,9 @@ var de_DescribeInboundConnectionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2841
2118
|
Object.assign(contents, doc);
|
|
2842
2119
|
return contents;
|
|
2843
2120
|
}, "de_DescribeInboundConnectionsCommand");
|
|
2844
|
-
var de_DescribeInboundConnectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2845
|
-
const parsedOutput = {
|
|
2846
|
-
...output,
|
|
2847
|
-
body: await parseErrorBody(output.body, context)
|
|
2848
|
-
};
|
|
2849
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2850
|
-
switch (errorCode) {
|
|
2851
|
-
case "DisabledOperationException":
|
|
2852
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2853
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2854
|
-
case "InvalidPaginationTokenException":
|
|
2855
|
-
case "com.amazonaws.opensearch#InvalidPaginationTokenException":
|
|
2856
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
2857
|
-
default:
|
|
2858
|
-
const parsedBody = parsedOutput.body;
|
|
2859
|
-
return throwDefaultError({
|
|
2860
|
-
output,
|
|
2861
|
-
parsedBody,
|
|
2862
|
-
errorCode
|
|
2863
|
-
});
|
|
2864
|
-
}
|
|
2865
|
-
}, "de_DescribeInboundConnectionsCommandError");
|
|
2866
2121
|
var de_DescribeInstanceTypeLimitsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2867
2122
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2868
|
-
return
|
|
2123
|
+
return de_CommandError(output, context);
|
|
2869
2124
|
}
|
|
2870
2125
|
const contents = (0, import_smithy_client.map)({
|
|
2871
2126
|
$metadata: deserializeMetadata(output)
|
|
@@ -2877,43 +2132,9 @@ var de_DescribeInstanceTypeLimitsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2877
2132
|
Object.assign(contents, doc);
|
|
2878
2133
|
return contents;
|
|
2879
2134
|
}, "de_DescribeInstanceTypeLimitsCommand");
|
|
2880
|
-
var de_DescribeInstanceTypeLimitsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2881
|
-
const parsedOutput = {
|
|
2882
|
-
...output,
|
|
2883
|
-
body: await parseErrorBody(output.body, context)
|
|
2884
|
-
};
|
|
2885
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2886
|
-
switch (errorCode) {
|
|
2887
|
-
case "BaseException":
|
|
2888
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2889
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2890
|
-
case "InternalException":
|
|
2891
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2892
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2893
|
-
case "InvalidTypeException":
|
|
2894
|
-
case "com.amazonaws.opensearch#InvalidTypeException":
|
|
2895
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
2896
|
-
case "LimitExceededException":
|
|
2897
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
2898
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2899
|
-
case "ResourceNotFoundException":
|
|
2900
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2901
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2902
|
-
case "ValidationException":
|
|
2903
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2904
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2905
|
-
default:
|
|
2906
|
-
const parsedBody = parsedOutput.body;
|
|
2907
|
-
return throwDefaultError({
|
|
2908
|
-
output,
|
|
2909
|
-
parsedBody,
|
|
2910
|
-
errorCode
|
|
2911
|
-
});
|
|
2912
|
-
}
|
|
2913
|
-
}, "de_DescribeInstanceTypeLimitsCommandError");
|
|
2914
2135
|
var de_DescribeOutboundConnectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2915
2136
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2916
|
-
return
|
|
2137
|
+
return de_CommandError(output, context);
|
|
2917
2138
|
}
|
|
2918
2139
|
const contents = (0, import_smithy_client.map)({
|
|
2919
2140
|
$metadata: deserializeMetadata(output)
|
|
@@ -2926,31 +2147,9 @@ var de_DescribeOutboundConnectionsCommand = /* @__PURE__ */ __name(async (output
|
|
|
2926
2147
|
Object.assign(contents, doc);
|
|
2927
2148
|
return contents;
|
|
2928
2149
|
}, "de_DescribeOutboundConnectionsCommand");
|
|
2929
|
-
var de_DescribeOutboundConnectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2930
|
-
const parsedOutput = {
|
|
2931
|
-
...output,
|
|
2932
|
-
body: await parseErrorBody(output.body, context)
|
|
2933
|
-
};
|
|
2934
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2935
|
-
switch (errorCode) {
|
|
2936
|
-
case "DisabledOperationException":
|
|
2937
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2938
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2939
|
-
case "InvalidPaginationTokenException":
|
|
2940
|
-
case "com.amazonaws.opensearch#InvalidPaginationTokenException":
|
|
2941
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
2942
|
-
default:
|
|
2943
|
-
const parsedBody = parsedOutput.body;
|
|
2944
|
-
return throwDefaultError({
|
|
2945
|
-
output,
|
|
2946
|
-
parsedBody,
|
|
2947
|
-
errorCode
|
|
2948
|
-
});
|
|
2949
|
-
}
|
|
2950
|
-
}, "de_DescribeOutboundConnectionsCommandError");
|
|
2951
2150
|
var de_DescribePackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2952
2151
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2953
|
-
return
|
|
2152
|
+
return de_CommandError(output, context);
|
|
2954
2153
|
}
|
|
2955
2154
|
const contents = (0, import_smithy_client.map)({
|
|
2956
2155
|
$metadata: deserializeMetadata(output)
|
|
@@ -2963,40 +2162,9 @@ var de_DescribePackagesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2963
2162
|
Object.assign(contents, doc);
|
|
2964
2163
|
return contents;
|
|
2965
2164
|
}, "de_DescribePackagesCommand");
|
|
2966
|
-
var de_DescribePackagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2967
|
-
const parsedOutput = {
|
|
2968
|
-
...output,
|
|
2969
|
-
body: await parseErrorBody(output.body, context)
|
|
2970
|
-
};
|
|
2971
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2972
|
-
switch (errorCode) {
|
|
2973
|
-
case "AccessDeniedException":
|
|
2974
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
2975
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2976
|
-
case "BaseException":
|
|
2977
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2978
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2979
|
-
case "InternalException":
|
|
2980
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2981
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2982
|
-
case "ResourceNotFoundException":
|
|
2983
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2984
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2985
|
-
case "ValidationException":
|
|
2986
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2987
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2988
|
-
default:
|
|
2989
|
-
const parsedBody = parsedOutput.body;
|
|
2990
|
-
return throwDefaultError({
|
|
2991
|
-
output,
|
|
2992
|
-
parsedBody,
|
|
2993
|
-
errorCode
|
|
2994
|
-
});
|
|
2995
|
-
}
|
|
2996
|
-
}, "de_DescribePackagesCommandError");
|
|
2997
2165
|
var de_DescribeReservedInstanceOfferingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2998
2166
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2999
|
-
return
|
|
2167
|
+
return de_CommandError(output, context);
|
|
3000
2168
|
}
|
|
3001
2169
|
const contents = (0, import_smithy_client.map)({
|
|
3002
2170
|
$metadata: deserializeMetadata(output)
|
|
@@ -3009,37 +2177,9 @@ var de_DescribeReservedInstanceOfferingsCommand = /* @__PURE__ */ __name(async (
|
|
|
3009
2177
|
Object.assign(contents, doc);
|
|
3010
2178
|
return contents;
|
|
3011
2179
|
}, "de_DescribeReservedInstanceOfferingsCommand");
|
|
3012
|
-
var de_DescribeReservedInstanceOfferingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3013
|
-
const parsedOutput = {
|
|
3014
|
-
...output,
|
|
3015
|
-
body: await parseErrorBody(output.body, context)
|
|
3016
|
-
};
|
|
3017
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3018
|
-
switch (errorCode) {
|
|
3019
|
-
case "DisabledOperationException":
|
|
3020
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3021
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3022
|
-
case "InternalException":
|
|
3023
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3024
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3025
|
-
case "ResourceNotFoundException":
|
|
3026
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3027
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3028
|
-
case "ValidationException":
|
|
3029
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3030
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3031
|
-
default:
|
|
3032
|
-
const parsedBody = parsedOutput.body;
|
|
3033
|
-
return throwDefaultError({
|
|
3034
|
-
output,
|
|
3035
|
-
parsedBody,
|
|
3036
|
-
errorCode
|
|
3037
|
-
});
|
|
3038
|
-
}
|
|
3039
|
-
}, "de_DescribeReservedInstanceOfferingsCommandError");
|
|
3040
2180
|
var de_DescribeReservedInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3041
2181
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3042
|
-
return
|
|
2182
|
+
return de_CommandError(output, context);
|
|
3043
2183
|
}
|
|
3044
2184
|
const contents = (0, import_smithy_client.map)({
|
|
3045
2185
|
$metadata: deserializeMetadata(output)
|
|
@@ -3052,37 +2192,9 @@ var de_DescribeReservedInstancesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3052
2192
|
Object.assign(contents, doc);
|
|
3053
2193
|
return contents;
|
|
3054
2194
|
}, "de_DescribeReservedInstancesCommand");
|
|
3055
|
-
var de_DescribeReservedInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3056
|
-
const parsedOutput = {
|
|
3057
|
-
...output,
|
|
3058
|
-
body: await parseErrorBody(output.body, context)
|
|
3059
|
-
};
|
|
3060
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3061
|
-
switch (errorCode) {
|
|
3062
|
-
case "DisabledOperationException":
|
|
3063
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3064
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3065
|
-
case "InternalException":
|
|
3066
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3067
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3068
|
-
case "ResourceNotFoundException":
|
|
3069
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3070
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3071
|
-
case "ValidationException":
|
|
3072
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3073
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3074
|
-
default:
|
|
3075
|
-
const parsedBody = parsedOutput.body;
|
|
3076
|
-
return throwDefaultError({
|
|
3077
|
-
output,
|
|
3078
|
-
parsedBody,
|
|
3079
|
-
errorCode
|
|
3080
|
-
});
|
|
3081
|
-
}
|
|
3082
|
-
}, "de_DescribeReservedInstancesCommandError");
|
|
3083
2195
|
var de_DescribeVpcEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3084
2196
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3085
|
-
return
|
|
2197
|
+
return de_CommandError(output, context);
|
|
3086
2198
|
}
|
|
3087
2199
|
const contents = (0, import_smithy_client.map)({
|
|
3088
2200
|
$metadata: deserializeMetadata(output)
|
|
@@ -3095,37 +2207,9 @@ var de_DescribeVpcEndpointsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3095
2207
|
Object.assign(contents, doc);
|
|
3096
2208
|
return contents;
|
|
3097
2209
|
}, "de_DescribeVpcEndpointsCommand");
|
|
3098
|
-
var de_DescribeVpcEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3099
|
-
const parsedOutput = {
|
|
3100
|
-
...output,
|
|
3101
|
-
body: await parseErrorBody(output.body, context)
|
|
3102
|
-
};
|
|
3103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3104
|
-
switch (errorCode) {
|
|
3105
|
-
case "BaseException":
|
|
3106
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3107
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3108
|
-
case "DisabledOperationException":
|
|
3109
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3110
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3111
|
-
case "InternalException":
|
|
3112
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3113
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3114
|
-
case "ValidationException":
|
|
3115
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3116
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3117
|
-
default:
|
|
3118
|
-
const parsedBody = parsedOutput.body;
|
|
3119
|
-
return throwDefaultError({
|
|
3120
|
-
output,
|
|
3121
|
-
parsedBody,
|
|
3122
|
-
errorCode
|
|
3123
|
-
});
|
|
3124
|
-
}
|
|
3125
|
-
}, "de_DescribeVpcEndpointsCommandError");
|
|
3126
2210
|
var de_DissociatePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3127
2211
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3128
|
-
return
|
|
2212
|
+
return de_CommandError(output, context);
|
|
3129
2213
|
}
|
|
3130
2214
|
const contents = (0, import_smithy_client.map)({
|
|
3131
2215
|
$metadata: deserializeMetadata(output)
|
|
@@ -3137,43 +2221,9 @@ var de_DissociatePackageCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3137
2221
|
Object.assign(contents, doc);
|
|
3138
2222
|
return contents;
|
|
3139
2223
|
}, "de_DissociatePackageCommand");
|
|
3140
|
-
var de_DissociatePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3141
|
-
const parsedOutput = {
|
|
3142
|
-
...output,
|
|
3143
|
-
body: await parseErrorBody(output.body, context)
|
|
3144
|
-
};
|
|
3145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3146
|
-
switch (errorCode) {
|
|
3147
|
-
case "AccessDeniedException":
|
|
3148
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
3149
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3150
|
-
case "BaseException":
|
|
3151
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3152
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3153
|
-
case "ConflictException":
|
|
3154
|
-
case "com.amazonaws.opensearch#ConflictException":
|
|
3155
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3156
|
-
case "InternalException":
|
|
3157
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3158
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3159
|
-
case "ResourceNotFoundException":
|
|
3160
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3161
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3162
|
-
case "ValidationException":
|
|
3163
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3164
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3165
|
-
default:
|
|
3166
|
-
const parsedBody = parsedOutput.body;
|
|
3167
|
-
return throwDefaultError({
|
|
3168
|
-
output,
|
|
3169
|
-
parsedBody,
|
|
3170
|
-
errorCode
|
|
3171
|
-
});
|
|
3172
|
-
}
|
|
3173
|
-
}, "de_DissociatePackageCommandError");
|
|
3174
2224
|
var de_GetCompatibleVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3175
2225
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3176
|
-
return
|
|
2226
|
+
return de_CommandError(output, context);
|
|
3177
2227
|
}
|
|
3178
2228
|
const contents = (0, import_smithy_client.map)({
|
|
3179
2229
|
$metadata: deserializeMetadata(output)
|
|
@@ -3185,40 +2235,9 @@ var de_GetCompatibleVersionsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3185
2235
|
Object.assign(contents, doc);
|
|
3186
2236
|
return contents;
|
|
3187
2237
|
}, "de_GetCompatibleVersionsCommand");
|
|
3188
|
-
var de_GetCompatibleVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3189
|
-
const parsedOutput = {
|
|
3190
|
-
...output,
|
|
3191
|
-
body: await parseErrorBody(output.body, context)
|
|
3192
|
-
};
|
|
3193
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3194
|
-
switch (errorCode) {
|
|
3195
|
-
case "BaseException":
|
|
3196
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3197
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3198
|
-
case "DisabledOperationException":
|
|
3199
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3200
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3201
|
-
case "InternalException":
|
|
3202
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3203
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3204
|
-
case "ResourceNotFoundException":
|
|
3205
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3206
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3207
|
-
case "ValidationException":
|
|
3208
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3209
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3210
|
-
default:
|
|
3211
|
-
const parsedBody = parsedOutput.body;
|
|
3212
|
-
return throwDefaultError({
|
|
3213
|
-
output,
|
|
3214
|
-
parsedBody,
|
|
3215
|
-
errorCode
|
|
3216
|
-
});
|
|
3217
|
-
}
|
|
3218
|
-
}, "de_GetCompatibleVersionsCommandError");
|
|
3219
2238
|
var de_GetDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3220
2239
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3221
|
-
return
|
|
2240
|
+
return de_CommandError(output, context);
|
|
3222
2241
|
}
|
|
3223
2242
|
const contents = (0, import_smithy_client.map)({
|
|
3224
2243
|
$metadata: deserializeMetadata(output)
|
|
@@ -3232,43 +2251,9 @@ var de_GetDataSourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3232
2251
|
Object.assign(contents, doc);
|
|
3233
2252
|
return contents;
|
|
3234
2253
|
}, "de_GetDataSourceCommand");
|
|
3235
|
-
var de_GetDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3236
|
-
const parsedOutput = {
|
|
3237
|
-
...output,
|
|
3238
|
-
body: await parseErrorBody(output.body, context)
|
|
3239
|
-
};
|
|
3240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3241
|
-
switch (errorCode) {
|
|
3242
|
-
case "BaseException":
|
|
3243
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3244
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3245
|
-
case "DependencyFailureException":
|
|
3246
|
-
case "com.amazonaws.opensearch#DependencyFailureException":
|
|
3247
|
-
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
3248
|
-
case "DisabledOperationException":
|
|
3249
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3250
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3251
|
-
case "InternalException":
|
|
3252
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3253
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3254
|
-
case "ResourceNotFoundException":
|
|
3255
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3256
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3257
|
-
case "ValidationException":
|
|
3258
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3259
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3260
|
-
default:
|
|
3261
|
-
const parsedBody = parsedOutput.body;
|
|
3262
|
-
return throwDefaultError({
|
|
3263
|
-
output,
|
|
3264
|
-
parsedBody,
|
|
3265
|
-
errorCode
|
|
3266
|
-
});
|
|
3267
|
-
}
|
|
3268
|
-
}, "de_GetDataSourceCommandError");
|
|
3269
2254
|
var de_GetDomainMaintenanceStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3270
2255
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3271
|
-
return
|
|
2256
|
+
return de_CommandError(output, context);
|
|
3272
2257
|
}
|
|
3273
2258
|
const contents = (0, import_smithy_client.map)({
|
|
3274
2259
|
$metadata: deserializeMetadata(output)
|
|
@@ -3285,40 +2270,9 @@ var de_GetDomainMaintenanceStatusCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3285
2270
|
Object.assign(contents, doc);
|
|
3286
2271
|
return contents;
|
|
3287
2272
|
}, "de_GetDomainMaintenanceStatusCommand");
|
|
3288
|
-
var de_GetDomainMaintenanceStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3289
|
-
const parsedOutput = {
|
|
3290
|
-
...output,
|
|
3291
|
-
body: await parseErrorBody(output.body, context)
|
|
3292
|
-
};
|
|
3293
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3294
|
-
switch (errorCode) {
|
|
3295
|
-
case "BaseException":
|
|
3296
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3297
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3298
|
-
case "DisabledOperationException":
|
|
3299
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3300
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3301
|
-
case "InternalException":
|
|
3302
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3303
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3304
|
-
case "ResourceNotFoundException":
|
|
3305
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3306
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3307
|
-
case "ValidationException":
|
|
3308
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3309
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3310
|
-
default:
|
|
3311
|
-
const parsedBody = parsedOutput.body;
|
|
3312
|
-
return throwDefaultError({
|
|
3313
|
-
output,
|
|
3314
|
-
parsedBody,
|
|
3315
|
-
errorCode
|
|
3316
|
-
});
|
|
3317
|
-
}
|
|
3318
|
-
}, "de_GetDomainMaintenanceStatusCommandError");
|
|
3319
2273
|
var de_GetPackageVersionHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3320
2274
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3321
|
-
return
|
|
2275
|
+
return de_CommandError(output, context);
|
|
3322
2276
|
}
|
|
3323
2277
|
const contents = (0, import_smithy_client.map)({
|
|
3324
2278
|
$metadata: deserializeMetadata(output)
|
|
@@ -3332,40 +2286,9 @@ var de_GetPackageVersionHistoryCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3332
2286
|
Object.assign(contents, doc);
|
|
3333
2287
|
return contents;
|
|
3334
2288
|
}, "de_GetPackageVersionHistoryCommand");
|
|
3335
|
-
var de_GetPackageVersionHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3336
|
-
const parsedOutput = {
|
|
3337
|
-
...output,
|
|
3338
|
-
body: await parseErrorBody(output.body, context)
|
|
3339
|
-
};
|
|
3340
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3341
|
-
switch (errorCode) {
|
|
3342
|
-
case "AccessDeniedException":
|
|
3343
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
3344
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3345
|
-
case "BaseException":
|
|
3346
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3347
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3348
|
-
case "InternalException":
|
|
3349
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3350
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3351
|
-
case "ResourceNotFoundException":
|
|
3352
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3353
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3354
|
-
case "ValidationException":
|
|
3355
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3356
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3357
|
-
default:
|
|
3358
|
-
const parsedBody = parsedOutput.body;
|
|
3359
|
-
return throwDefaultError({
|
|
3360
|
-
output,
|
|
3361
|
-
parsedBody,
|
|
3362
|
-
errorCode
|
|
3363
|
-
});
|
|
3364
|
-
}
|
|
3365
|
-
}, "de_GetPackageVersionHistoryCommandError");
|
|
3366
2289
|
var de_GetUpgradeHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3367
2290
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3368
|
-
return
|
|
2291
|
+
return de_CommandError(output, context);
|
|
3369
2292
|
}
|
|
3370
2293
|
const contents = (0, import_smithy_client.map)({
|
|
3371
2294
|
$metadata: deserializeMetadata(output)
|
|
@@ -3378,40 +2301,9 @@ var de_GetUpgradeHistoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3378
2301
|
Object.assign(contents, doc);
|
|
3379
2302
|
return contents;
|
|
3380
2303
|
}, "de_GetUpgradeHistoryCommand");
|
|
3381
|
-
var de_GetUpgradeHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3382
|
-
const parsedOutput = {
|
|
3383
|
-
...output,
|
|
3384
|
-
body: await parseErrorBody(output.body, context)
|
|
3385
|
-
};
|
|
3386
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3387
|
-
switch (errorCode) {
|
|
3388
|
-
case "BaseException":
|
|
3389
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3390
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3391
|
-
case "DisabledOperationException":
|
|
3392
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3393
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3394
|
-
case "InternalException":
|
|
3395
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3396
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3397
|
-
case "ResourceNotFoundException":
|
|
3398
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3399
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3400
|
-
case "ValidationException":
|
|
3401
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3402
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3403
|
-
default:
|
|
3404
|
-
const parsedBody = parsedOutput.body;
|
|
3405
|
-
return throwDefaultError({
|
|
3406
|
-
output,
|
|
3407
|
-
parsedBody,
|
|
3408
|
-
errorCode
|
|
3409
|
-
});
|
|
3410
|
-
}
|
|
3411
|
-
}, "de_GetUpgradeHistoryCommandError");
|
|
3412
2304
|
var de_GetUpgradeStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3413
2305
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3414
|
-
return
|
|
2306
|
+
return de_CommandError(output, context);
|
|
3415
2307
|
}
|
|
3416
2308
|
const contents = (0, import_smithy_client.map)({
|
|
3417
2309
|
$metadata: deserializeMetadata(output)
|
|
@@ -3425,40 +2317,9 @@ var de_GetUpgradeStatusCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3425
2317
|
Object.assign(contents, doc);
|
|
3426
2318
|
return contents;
|
|
3427
2319
|
}, "de_GetUpgradeStatusCommand");
|
|
3428
|
-
var de_GetUpgradeStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3429
|
-
const parsedOutput = {
|
|
3430
|
-
...output,
|
|
3431
|
-
body: await parseErrorBody(output.body, context)
|
|
3432
|
-
};
|
|
3433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3434
|
-
switch (errorCode) {
|
|
3435
|
-
case "BaseException":
|
|
3436
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3437
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3438
|
-
case "DisabledOperationException":
|
|
3439
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3440
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3441
|
-
case "InternalException":
|
|
3442
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3443
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3444
|
-
case "ResourceNotFoundException":
|
|
3445
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3446
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3447
|
-
case "ValidationException":
|
|
3448
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3449
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3450
|
-
default:
|
|
3451
|
-
const parsedBody = parsedOutput.body;
|
|
3452
|
-
return throwDefaultError({
|
|
3453
|
-
output,
|
|
3454
|
-
parsedBody,
|
|
3455
|
-
errorCode
|
|
3456
|
-
});
|
|
3457
|
-
}
|
|
3458
|
-
}, "de_GetUpgradeStatusCommandError");
|
|
3459
2320
|
var de_ListDataSourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3460
2321
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3461
|
-
return
|
|
2322
|
+
return de_CommandError(output, context);
|
|
3462
2323
|
}
|
|
3463
2324
|
const contents = (0, import_smithy_client.map)({
|
|
3464
2325
|
$metadata: deserializeMetadata(output)
|
|
@@ -3470,43 +2331,9 @@ var de_ListDataSourcesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3470
2331
|
Object.assign(contents, doc);
|
|
3471
2332
|
return contents;
|
|
3472
2333
|
}, "de_ListDataSourcesCommand");
|
|
3473
|
-
var de_ListDataSourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3474
|
-
const parsedOutput = {
|
|
3475
|
-
...output,
|
|
3476
|
-
body: await parseErrorBody(output.body, context)
|
|
3477
|
-
};
|
|
3478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3479
|
-
switch (errorCode) {
|
|
3480
|
-
case "BaseException":
|
|
3481
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3482
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3483
|
-
case "DependencyFailureException":
|
|
3484
|
-
case "com.amazonaws.opensearch#DependencyFailureException":
|
|
3485
|
-
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
3486
|
-
case "DisabledOperationException":
|
|
3487
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3488
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3489
|
-
case "InternalException":
|
|
3490
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3491
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3492
|
-
case "ResourceNotFoundException":
|
|
3493
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3494
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3495
|
-
case "ValidationException":
|
|
3496
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3497
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3498
|
-
default:
|
|
3499
|
-
const parsedBody = parsedOutput.body;
|
|
3500
|
-
return throwDefaultError({
|
|
3501
|
-
output,
|
|
3502
|
-
parsedBody,
|
|
3503
|
-
errorCode
|
|
3504
|
-
});
|
|
3505
|
-
}
|
|
3506
|
-
}, "de_ListDataSourcesCommandError");
|
|
3507
2334
|
var de_ListDomainMaintenancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3508
2335
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3509
|
-
return
|
|
2336
|
+
return de_CommandError(output, context);
|
|
3510
2337
|
}
|
|
3511
2338
|
const contents = (0, import_smithy_client.map)({
|
|
3512
2339
|
$metadata: deserializeMetadata(output)
|
|
@@ -3519,40 +2346,9 @@ var de_ListDomainMaintenancesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3519
2346
|
Object.assign(contents, doc);
|
|
3520
2347
|
return contents;
|
|
3521
2348
|
}, "de_ListDomainMaintenancesCommand");
|
|
3522
|
-
var de_ListDomainMaintenancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3523
|
-
const parsedOutput = {
|
|
3524
|
-
...output,
|
|
3525
|
-
body: await parseErrorBody(output.body, context)
|
|
3526
|
-
};
|
|
3527
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3528
|
-
switch (errorCode) {
|
|
3529
|
-
case "BaseException":
|
|
3530
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3531
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3532
|
-
case "DisabledOperationException":
|
|
3533
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3534
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3535
|
-
case "InternalException":
|
|
3536
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3537
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3538
|
-
case "ResourceNotFoundException":
|
|
3539
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3540
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3541
|
-
case "ValidationException":
|
|
3542
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3543
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3544
|
-
default:
|
|
3545
|
-
const parsedBody = parsedOutput.body;
|
|
3546
|
-
return throwDefaultError({
|
|
3547
|
-
output,
|
|
3548
|
-
parsedBody,
|
|
3549
|
-
errorCode
|
|
3550
|
-
});
|
|
3551
|
-
}
|
|
3552
|
-
}, "de_ListDomainMaintenancesCommandError");
|
|
3553
2349
|
var de_ListDomainNamesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3554
2350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3555
|
-
return
|
|
2351
|
+
return de_CommandError(output, context);
|
|
3556
2352
|
}
|
|
3557
2353
|
const contents = (0, import_smithy_client.map)({
|
|
3558
2354
|
$metadata: deserializeMetadata(output)
|
|
@@ -3564,31 +2360,9 @@ var de_ListDomainNamesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3564
2360
|
Object.assign(contents, doc);
|
|
3565
2361
|
return contents;
|
|
3566
2362
|
}, "de_ListDomainNamesCommand");
|
|
3567
|
-
var de_ListDomainNamesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3568
|
-
const parsedOutput = {
|
|
3569
|
-
...output,
|
|
3570
|
-
body: await parseErrorBody(output.body, context)
|
|
3571
|
-
};
|
|
3572
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3573
|
-
switch (errorCode) {
|
|
3574
|
-
case "BaseException":
|
|
3575
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3576
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3577
|
-
case "ValidationException":
|
|
3578
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3579
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3580
|
-
default:
|
|
3581
|
-
const parsedBody = parsedOutput.body;
|
|
3582
|
-
return throwDefaultError({
|
|
3583
|
-
output,
|
|
3584
|
-
parsedBody,
|
|
3585
|
-
errorCode
|
|
3586
|
-
});
|
|
3587
|
-
}
|
|
3588
|
-
}, "de_ListDomainNamesCommandError");
|
|
3589
2363
|
var de_ListDomainsForPackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3590
2364
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3591
|
-
return
|
|
2365
|
+
return de_CommandError(output, context);
|
|
3592
2366
|
}
|
|
3593
2367
|
const contents = (0, import_smithy_client.map)({
|
|
3594
2368
|
$metadata: deserializeMetadata(output)
|
|
@@ -3601,40 +2375,9 @@ var de_ListDomainsForPackageCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3601
2375
|
Object.assign(contents, doc);
|
|
3602
2376
|
return contents;
|
|
3603
2377
|
}, "de_ListDomainsForPackageCommand");
|
|
3604
|
-
var de_ListDomainsForPackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3605
|
-
const parsedOutput = {
|
|
3606
|
-
...output,
|
|
3607
|
-
body: await parseErrorBody(output.body, context)
|
|
3608
|
-
};
|
|
3609
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3610
|
-
switch (errorCode) {
|
|
3611
|
-
case "AccessDeniedException":
|
|
3612
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
3613
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3614
|
-
case "BaseException":
|
|
3615
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3616
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3617
|
-
case "InternalException":
|
|
3618
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3619
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3620
|
-
case "ResourceNotFoundException":
|
|
3621
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3622
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3623
|
-
case "ValidationException":
|
|
3624
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3625
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3626
|
-
default:
|
|
3627
|
-
const parsedBody = parsedOutput.body;
|
|
3628
|
-
return throwDefaultError({
|
|
3629
|
-
output,
|
|
3630
|
-
parsedBody,
|
|
3631
|
-
errorCode
|
|
3632
|
-
});
|
|
3633
|
-
}
|
|
3634
|
-
}, "de_ListDomainsForPackageCommandError");
|
|
3635
2378
|
var de_ListInstanceTypeDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3636
2379
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3637
|
-
return
|
|
2380
|
+
return de_CommandError(output, context);
|
|
3638
2381
|
}
|
|
3639
2382
|
const contents = (0, import_smithy_client.map)({
|
|
3640
2383
|
$metadata: deserializeMetadata(output)
|
|
@@ -3647,37 +2390,9 @@ var de_ListInstanceTypeDetailsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3647
2390
|
Object.assign(contents, doc);
|
|
3648
2391
|
return contents;
|
|
3649
2392
|
}, "de_ListInstanceTypeDetailsCommand");
|
|
3650
|
-
var de_ListInstanceTypeDetailsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3651
|
-
const parsedOutput = {
|
|
3652
|
-
...output,
|
|
3653
|
-
body: await parseErrorBody(output.body, context)
|
|
3654
|
-
};
|
|
3655
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3656
|
-
switch (errorCode) {
|
|
3657
|
-
case "BaseException":
|
|
3658
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3659
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3660
|
-
case "InternalException":
|
|
3661
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3662
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3663
|
-
case "ResourceNotFoundException":
|
|
3664
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3665
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3666
|
-
case "ValidationException":
|
|
3667
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3668
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3669
|
-
default:
|
|
3670
|
-
const parsedBody = parsedOutput.body;
|
|
3671
|
-
return throwDefaultError({
|
|
3672
|
-
output,
|
|
3673
|
-
parsedBody,
|
|
3674
|
-
errorCode
|
|
3675
|
-
});
|
|
3676
|
-
}
|
|
3677
|
-
}, "de_ListInstanceTypeDetailsCommandError");
|
|
3678
2393
|
var de_ListPackagesForDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3679
2394
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3680
|
-
return
|
|
2395
|
+
return de_CommandError(output, context);
|
|
3681
2396
|
}
|
|
3682
2397
|
const contents = (0, import_smithy_client.map)({
|
|
3683
2398
|
$metadata: deserializeMetadata(output)
|
|
@@ -3690,40 +2405,9 @@ var de_ListPackagesForDomainCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3690
2405
|
Object.assign(contents, doc);
|
|
3691
2406
|
return contents;
|
|
3692
2407
|
}, "de_ListPackagesForDomainCommand");
|
|
3693
|
-
var de_ListPackagesForDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3694
|
-
const parsedOutput = {
|
|
3695
|
-
...output,
|
|
3696
|
-
body: await parseErrorBody(output.body, context)
|
|
3697
|
-
};
|
|
3698
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3699
|
-
switch (errorCode) {
|
|
3700
|
-
case "AccessDeniedException":
|
|
3701
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
3702
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3703
|
-
case "BaseException":
|
|
3704
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3705
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3706
|
-
case "InternalException":
|
|
3707
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3708
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3709
|
-
case "ResourceNotFoundException":
|
|
3710
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3711
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3712
|
-
case "ValidationException":
|
|
3713
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3714
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3715
|
-
default:
|
|
3716
|
-
const parsedBody = parsedOutput.body;
|
|
3717
|
-
return throwDefaultError({
|
|
3718
|
-
output,
|
|
3719
|
-
parsedBody,
|
|
3720
|
-
errorCode
|
|
3721
|
-
});
|
|
3722
|
-
}
|
|
3723
|
-
}, "de_ListPackagesForDomainCommandError");
|
|
3724
2408
|
var de_ListScheduledActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3725
2409
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3726
|
-
return
|
|
2410
|
+
return de_CommandError(output, context);
|
|
3727
2411
|
}
|
|
3728
2412
|
const contents = (0, import_smithy_client.map)({
|
|
3729
2413
|
$metadata: deserializeMetadata(output)
|
|
@@ -3736,40 +2420,9 @@ var de_ListScheduledActionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3736
2420
|
Object.assign(contents, doc);
|
|
3737
2421
|
return contents;
|
|
3738
2422
|
}, "de_ListScheduledActionsCommand");
|
|
3739
|
-
var de_ListScheduledActionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3740
|
-
const parsedOutput = {
|
|
3741
|
-
...output,
|
|
3742
|
-
body: await parseErrorBody(output.body, context)
|
|
3743
|
-
};
|
|
3744
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3745
|
-
switch (errorCode) {
|
|
3746
|
-
case "BaseException":
|
|
3747
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3748
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3749
|
-
case "InternalException":
|
|
3750
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3751
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3752
|
-
case "InvalidPaginationTokenException":
|
|
3753
|
-
case "com.amazonaws.opensearch#InvalidPaginationTokenException":
|
|
3754
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3755
|
-
case "ResourceNotFoundException":
|
|
3756
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3757
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3758
|
-
case "ValidationException":
|
|
3759
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3760
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3761
|
-
default:
|
|
3762
|
-
const parsedBody = parsedOutput.body;
|
|
3763
|
-
return throwDefaultError({
|
|
3764
|
-
output,
|
|
3765
|
-
parsedBody,
|
|
3766
|
-
errorCode
|
|
3767
|
-
});
|
|
3768
|
-
}
|
|
3769
|
-
}, "de_ListScheduledActionsCommandError");
|
|
3770
2423
|
var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3771
2424
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3772
|
-
return
|
|
2425
|
+
return de_CommandError(output, context);
|
|
3773
2426
|
}
|
|
3774
2427
|
const contents = (0, import_smithy_client.map)({
|
|
3775
2428
|
$metadata: deserializeMetadata(output)
|
|
@@ -3781,37 +2434,9 @@ var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3781
2434
|
Object.assign(contents, doc);
|
|
3782
2435
|
return contents;
|
|
3783
2436
|
}, "de_ListTagsCommand");
|
|
3784
|
-
var de_ListTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3785
|
-
const parsedOutput = {
|
|
3786
|
-
...output,
|
|
3787
|
-
body: await parseErrorBody(output.body, context)
|
|
3788
|
-
};
|
|
3789
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3790
|
-
switch (errorCode) {
|
|
3791
|
-
case "BaseException":
|
|
3792
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3793
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3794
|
-
case "InternalException":
|
|
3795
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3796
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3797
|
-
case "ResourceNotFoundException":
|
|
3798
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3799
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3800
|
-
case "ValidationException":
|
|
3801
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3802
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3803
|
-
default:
|
|
3804
|
-
const parsedBody = parsedOutput.body;
|
|
3805
|
-
return throwDefaultError({
|
|
3806
|
-
output,
|
|
3807
|
-
parsedBody,
|
|
3808
|
-
errorCode
|
|
3809
|
-
});
|
|
3810
|
-
}
|
|
3811
|
-
}, "de_ListTagsCommandError");
|
|
3812
2437
|
var de_ListVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3813
2438
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3814
|
-
return
|
|
2439
|
+
return de_CommandError(output, context);
|
|
3815
2440
|
}
|
|
3816
2441
|
const contents = (0, import_smithy_client.map)({
|
|
3817
2442
|
$metadata: deserializeMetadata(output)
|
|
@@ -3824,37 +2449,9 @@ var de_ListVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3824
2449
|
Object.assign(contents, doc);
|
|
3825
2450
|
return contents;
|
|
3826
2451
|
}, "de_ListVersionsCommand");
|
|
3827
|
-
var de_ListVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3828
|
-
const parsedOutput = {
|
|
3829
|
-
...output,
|
|
3830
|
-
body: await parseErrorBody(output.body, context)
|
|
3831
|
-
};
|
|
3832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3833
|
-
switch (errorCode) {
|
|
3834
|
-
case "BaseException":
|
|
3835
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3836
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3837
|
-
case "InternalException":
|
|
3838
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3839
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3840
|
-
case "ResourceNotFoundException":
|
|
3841
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3842
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3843
|
-
case "ValidationException":
|
|
3844
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3845
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3846
|
-
default:
|
|
3847
|
-
const parsedBody = parsedOutput.body;
|
|
3848
|
-
return throwDefaultError({
|
|
3849
|
-
output,
|
|
3850
|
-
parsedBody,
|
|
3851
|
-
errorCode
|
|
3852
|
-
});
|
|
3853
|
-
}
|
|
3854
|
-
}, "de_ListVersionsCommandError");
|
|
3855
2452
|
var de_ListVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3856
2453
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3857
|
-
return
|
|
2454
|
+
return de_CommandError(output, context);
|
|
3858
2455
|
}
|
|
3859
2456
|
const contents = (0, import_smithy_client.map)({
|
|
3860
2457
|
$metadata: deserializeMetadata(output)
|
|
@@ -3867,37 +2464,9 @@ var de_ListVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3867
2464
|
Object.assign(contents, doc);
|
|
3868
2465
|
return contents;
|
|
3869
2466
|
}, "de_ListVpcEndpointAccessCommand");
|
|
3870
|
-
var de_ListVpcEndpointAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3871
|
-
const parsedOutput = {
|
|
3872
|
-
...output,
|
|
3873
|
-
body: await parseErrorBody(output.body, context)
|
|
3874
|
-
};
|
|
3875
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3876
|
-
switch (errorCode) {
|
|
3877
|
-
case "BaseException":
|
|
3878
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3879
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3880
|
-
case "DisabledOperationException":
|
|
3881
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3882
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3883
|
-
case "InternalException":
|
|
3884
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3885
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3886
|
-
case "ResourceNotFoundException":
|
|
3887
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3888
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3889
|
-
default:
|
|
3890
|
-
const parsedBody = parsedOutput.body;
|
|
3891
|
-
return throwDefaultError({
|
|
3892
|
-
output,
|
|
3893
|
-
parsedBody,
|
|
3894
|
-
errorCode
|
|
3895
|
-
});
|
|
3896
|
-
}
|
|
3897
|
-
}, "de_ListVpcEndpointAccessCommandError");
|
|
3898
2467
|
var de_ListVpcEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3899
2468
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3900
|
-
return
|
|
2469
|
+
return de_CommandError(output, context);
|
|
3901
2470
|
}
|
|
3902
2471
|
const contents = (0, import_smithy_client.map)({
|
|
3903
2472
|
$metadata: deserializeMetadata(output)
|
|
@@ -3910,34 +2479,9 @@ var de_ListVpcEndpointsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3910
2479
|
Object.assign(contents, doc);
|
|
3911
2480
|
return contents;
|
|
3912
2481
|
}, "de_ListVpcEndpointsCommand");
|
|
3913
|
-
var de_ListVpcEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3914
|
-
const parsedOutput = {
|
|
3915
|
-
...output,
|
|
3916
|
-
body: await parseErrorBody(output.body, context)
|
|
3917
|
-
};
|
|
3918
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3919
|
-
switch (errorCode) {
|
|
3920
|
-
case "BaseException":
|
|
3921
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3922
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3923
|
-
case "DisabledOperationException":
|
|
3924
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3925
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3926
|
-
case "InternalException":
|
|
3927
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3928
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3929
|
-
default:
|
|
3930
|
-
const parsedBody = parsedOutput.body;
|
|
3931
|
-
return throwDefaultError({
|
|
3932
|
-
output,
|
|
3933
|
-
parsedBody,
|
|
3934
|
-
errorCode
|
|
3935
|
-
});
|
|
3936
|
-
}
|
|
3937
|
-
}, "de_ListVpcEndpointsCommandError");
|
|
3938
2482
|
var de_ListVpcEndpointsForDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3939
2483
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3940
|
-
return
|
|
2484
|
+
return de_CommandError(output, context);
|
|
3941
2485
|
}
|
|
3942
2486
|
const contents = (0, import_smithy_client.map)({
|
|
3943
2487
|
$metadata: deserializeMetadata(output)
|
|
@@ -3950,37 +2494,9 @@ var de_ListVpcEndpointsForDomainCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3950
2494
|
Object.assign(contents, doc);
|
|
3951
2495
|
return contents;
|
|
3952
2496
|
}, "de_ListVpcEndpointsForDomainCommand");
|
|
3953
|
-
var de_ListVpcEndpointsForDomainCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3954
|
-
const parsedOutput = {
|
|
3955
|
-
...output,
|
|
3956
|
-
body: await parseErrorBody(output.body, context)
|
|
3957
|
-
};
|
|
3958
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3959
|
-
switch (errorCode) {
|
|
3960
|
-
case "BaseException":
|
|
3961
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3962
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3963
|
-
case "DisabledOperationException":
|
|
3964
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3965
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3966
|
-
case "InternalException":
|
|
3967
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3968
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3969
|
-
case "ResourceNotFoundException":
|
|
3970
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3971
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3972
|
-
default:
|
|
3973
|
-
const parsedBody = parsedOutput.body;
|
|
3974
|
-
return throwDefaultError({
|
|
3975
|
-
output,
|
|
3976
|
-
parsedBody,
|
|
3977
|
-
errorCode
|
|
3978
|
-
});
|
|
3979
|
-
}
|
|
3980
|
-
}, "de_ListVpcEndpointsForDomainCommandError");
|
|
3981
2497
|
var de_PurchaseReservedInstanceOfferingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3982
2498
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3983
|
-
return
|
|
2499
|
+
return de_CommandError(output, context);
|
|
3984
2500
|
}
|
|
3985
2501
|
const contents = (0, import_smithy_client.map)({
|
|
3986
2502
|
$metadata: deserializeMetadata(output)
|
|
@@ -3993,43 +2509,9 @@ var de_PurchaseReservedInstanceOfferingCommand = /* @__PURE__ */ __name(async (o
|
|
|
3993
2509
|
Object.assign(contents, doc);
|
|
3994
2510
|
return contents;
|
|
3995
2511
|
}, "de_PurchaseReservedInstanceOfferingCommand");
|
|
3996
|
-
var de_PurchaseReservedInstanceOfferingCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3997
|
-
const parsedOutput = {
|
|
3998
|
-
...output,
|
|
3999
|
-
body: await parseErrorBody(output.body, context)
|
|
4000
|
-
};
|
|
4001
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4002
|
-
switch (errorCode) {
|
|
4003
|
-
case "DisabledOperationException":
|
|
4004
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
4005
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
4006
|
-
case "InternalException":
|
|
4007
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
4008
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4009
|
-
case "LimitExceededException":
|
|
4010
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
4011
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4012
|
-
case "ResourceAlreadyExistsException":
|
|
4013
|
-
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
4014
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
4015
|
-
case "ResourceNotFoundException":
|
|
4016
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
4017
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4018
|
-
case "ValidationException":
|
|
4019
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
4020
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4021
|
-
default:
|
|
4022
|
-
const parsedBody = parsedOutput.body;
|
|
4023
|
-
return throwDefaultError({
|
|
4024
|
-
output,
|
|
4025
|
-
parsedBody,
|
|
4026
|
-
errorCode
|
|
4027
|
-
});
|
|
4028
|
-
}
|
|
4029
|
-
}, "de_PurchaseReservedInstanceOfferingCommandError");
|
|
4030
2512
|
var de_RejectInboundConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4031
2513
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4032
|
-
return
|
|
2514
|
+
return de_CommandError(output, context);
|
|
4033
2515
|
}
|
|
4034
2516
|
const contents = (0, import_smithy_client.map)({
|
|
4035
2517
|
$metadata: deserializeMetadata(output)
|
|
@@ -4041,152 +2523,43 @@ var de_RejectInboundConnectionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
4041
2523
|
Object.assign(contents, doc);
|
|
4042
2524
|
return contents;
|
|
4043
2525
|
}, "de_RejectInboundConnectionCommand");
|
|
4044
|
-
var de_RejectInboundConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4045
|
-
const parsedOutput = {
|
|
4046
|
-
...output,
|
|
4047
|
-
body: await parseErrorBody(output.body, context)
|
|
4048
|
-
};
|
|
4049
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4050
|
-
switch (errorCode) {
|
|
4051
|
-
case "DisabledOperationException":
|
|
4052
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
4053
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
4054
|
-
case "ResourceNotFoundException":
|
|
4055
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
4056
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4057
|
-
default:
|
|
4058
|
-
const parsedBody = parsedOutput.body;
|
|
4059
|
-
return throwDefaultError({
|
|
4060
|
-
output,
|
|
4061
|
-
parsedBody,
|
|
4062
|
-
errorCode
|
|
4063
|
-
});
|
|
4064
|
-
}
|
|
4065
|
-
}, "de_RejectInboundConnectionCommandError");
|
|
4066
2526
|
var de_RemoveTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4067
2527
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4068
|
-
return
|
|
4069
|
-
}
|
|
4070
|
-
const contents = (0, import_smithy_client.map)({
|
|
4071
|
-
$metadata: deserializeMetadata(output)
|
|
4072
|
-
});
|
|
4073
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4074
|
-
return contents;
|
|
4075
|
-
}, "de_RemoveTagsCommand");
|
|
4076
|
-
var de_RemoveTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4077
|
-
const parsedOutput = {
|
|
4078
|
-
...output,
|
|
4079
|
-
body: await parseErrorBody(output.body, context)
|
|
4080
|
-
};
|
|
4081
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4082
|
-
switch (errorCode) {
|
|
4083
|
-
case "BaseException":
|
|
4084
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
4085
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
4086
|
-
case "InternalException":
|
|
4087
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
4088
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4089
|
-
case "ValidationException":
|
|
4090
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
4091
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4092
|
-
default:
|
|
4093
|
-
const parsedBody = parsedOutput.body;
|
|
4094
|
-
return throwDefaultError({
|
|
4095
|
-
output,
|
|
4096
|
-
parsedBody,
|
|
4097
|
-
errorCode
|
|
4098
|
-
});
|
|
4099
|
-
}
|
|
4100
|
-
}, "de_RemoveTagsCommandError");
|
|
4101
|
-
var de_RevokeVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4102
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4103
|
-
return de_RevokeVpcEndpointAccessCommandError(output, context);
|
|
4104
|
-
}
|
|
4105
|
-
const contents = (0, import_smithy_client.map)({
|
|
4106
|
-
$metadata: deserializeMetadata(output)
|
|
4107
|
-
});
|
|
4108
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4109
|
-
return contents;
|
|
4110
|
-
}, "de_RevokeVpcEndpointAccessCommand");
|
|
4111
|
-
var de_RevokeVpcEndpointAccessCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4112
|
-
const parsedOutput = {
|
|
4113
|
-
...output,
|
|
4114
|
-
body: await parseErrorBody(output.body, context)
|
|
4115
|
-
};
|
|
4116
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4117
|
-
switch (errorCode) {
|
|
4118
|
-
case "BaseException":
|
|
4119
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
4120
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
4121
|
-
case "DisabledOperationException":
|
|
4122
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
4123
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
4124
|
-
case "InternalException":
|
|
4125
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
4126
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4127
|
-
case "ResourceNotFoundException":
|
|
4128
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
4129
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4130
|
-
case "ValidationException":
|
|
4131
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
4132
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4133
|
-
default:
|
|
4134
|
-
const parsedBody = parsedOutput.body;
|
|
4135
|
-
return throwDefaultError({
|
|
4136
|
-
output,
|
|
4137
|
-
parsedBody,
|
|
4138
|
-
errorCode
|
|
4139
|
-
});
|
|
4140
|
-
}
|
|
4141
|
-
}, "de_RevokeVpcEndpointAccessCommandError");
|
|
4142
|
-
var de_StartDomainMaintenanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4143
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4144
|
-
return de_StartDomainMaintenanceCommandError(output, context);
|
|
4145
|
-
}
|
|
4146
|
-
const contents = (0, import_smithy_client.map)({
|
|
4147
|
-
$metadata: deserializeMetadata(output)
|
|
4148
|
-
});
|
|
4149
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
4150
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
4151
|
-
MaintenanceId: import_smithy_client.expectString
|
|
4152
|
-
});
|
|
4153
|
-
Object.assign(contents, doc);
|
|
4154
|
-
return contents;
|
|
4155
|
-
}, "de_StartDomainMaintenanceCommand");
|
|
4156
|
-
var de_StartDomainMaintenanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4157
|
-
const parsedOutput = {
|
|
4158
|
-
...output,
|
|
4159
|
-
body: await parseErrorBody(output.body, context)
|
|
4160
|
-
};
|
|
4161
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4162
|
-
switch (errorCode) {
|
|
4163
|
-
case "BaseException":
|
|
4164
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
4165
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
4166
|
-
case "DisabledOperationException":
|
|
4167
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
4168
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
4169
|
-
case "InternalException":
|
|
4170
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
4171
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4172
|
-
case "ResourceNotFoundException":
|
|
4173
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
4174
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4175
|
-
case "ValidationException":
|
|
4176
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
4177
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4178
|
-
default:
|
|
4179
|
-
const parsedBody = parsedOutput.body;
|
|
4180
|
-
return throwDefaultError({
|
|
4181
|
-
output,
|
|
4182
|
-
parsedBody,
|
|
4183
|
-
errorCode
|
|
4184
|
-
});
|
|
2528
|
+
return de_CommandError(output, context);
|
|
4185
2529
|
}
|
|
4186
|
-
|
|
2530
|
+
const contents = (0, import_smithy_client.map)({
|
|
2531
|
+
$metadata: deserializeMetadata(output)
|
|
2532
|
+
});
|
|
2533
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2534
|
+
return contents;
|
|
2535
|
+
}, "de_RemoveTagsCommand");
|
|
2536
|
+
var de_RevokeVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2537
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2538
|
+
return de_CommandError(output, context);
|
|
2539
|
+
}
|
|
2540
|
+
const contents = (0, import_smithy_client.map)({
|
|
2541
|
+
$metadata: deserializeMetadata(output)
|
|
2542
|
+
});
|
|
2543
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2544
|
+
return contents;
|
|
2545
|
+
}, "de_RevokeVpcEndpointAccessCommand");
|
|
2546
|
+
var de_StartDomainMaintenanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2547
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2548
|
+
return de_CommandError(output, context);
|
|
2549
|
+
}
|
|
2550
|
+
const contents = (0, import_smithy_client.map)({
|
|
2551
|
+
$metadata: deserializeMetadata(output)
|
|
2552
|
+
});
|
|
2553
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2554
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2555
|
+
MaintenanceId: import_smithy_client.expectString
|
|
2556
|
+
});
|
|
2557
|
+
Object.assign(contents, doc);
|
|
2558
|
+
return contents;
|
|
2559
|
+
}, "de_StartDomainMaintenanceCommand");
|
|
4187
2560
|
var de_StartServiceSoftwareUpdateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4188
2561
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4189
|
-
return
|
|
2562
|
+
return de_CommandError(output, context);
|
|
4190
2563
|
}
|
|
4191
2564
|
const contents = (0, import_smithy_client.map)({
|
|
4192
2565
|
$metadata: deserializeMetadata(output)
|
|
@@ -4198,37 +2571,9 @@ var de_StartServiceSoftwareUpdateCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4198
2571
|
Object.assign(contents, doc);
|
|
4199
2572
|
return contents;
|
|
4200
2573
|
}, "de_StartServiceSoftwareUpdateCommand");
|
|
4201
|
-
var de_StartServiceSoftwareUpdateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4202
|
-
const parsedOutput = {
|
|
4203
|
-
...output,
|
|
4204
|
-
body: await parseErrorBody(output.body, context)
|
|
4205
|
-
};
|
|
4206
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4207
|
-
switch (errorCode) {
|
|
4208
|
-
case "BaseException":
|
|
4209
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
4210
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
4211
|
-
case "InternalException":
|
|
4212
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
4213
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4214
|
-
case "ResourceNotFoundException":
|
|
4215
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
4216
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4217
|
-
case "ValidationException":
|
|
4218
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
4219
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4220
|
-
default:
|
|
4221
|
-
const parsedBody = parsedOutput.body;
|
|
4222
|
-
return throwDefaultError({
|
|
4223
|
-
output,
|
|
4224
|
-
parsedBody,
|
|
4225
|
-
errorCode
|
|
4226
|
-
});
|
|
4227
|
-
}
|
|
4228
|
-
}, "de_StartServiceSoftwareUpdateCommandError");
|
|
4229
2574
|
var de_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4230
2575
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4231
|
-
return
|
|
2576
|
+
return de_CommandError(output, context);
|
|
4232
2577
|
}
|
|
4233
2578
|
const contents = (0, import_smithy_client.map)({
|
|
4234
2579
|
$metadata: deserializeMetadata(output)
|
|
@@ -4240,43 +2585,9 @@ var de_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4240
2585
|
Object.assign(contents, doc);
|
|
4241
2586
|
return contents;
|
|
4242
2587
|
}, "de_UpdateDataSourceCommand");
|
|
4243
|
-
var de_UpdateDataSourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4244
|
-
const parsedOutput = {
|
|
4245
|
-
...output,
|
|
4246
|
-
body: await parseErrorBody(output.body, context)
|
|
4247
|
-
};
|
|
4248
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4249
|
-
switch (errorCode) {
|
|
4250
|
-
case "BaseException":
|
|
4251
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
4252
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
4253
|
-
case "DependencyFailureException":
|
|
4254
|
-
case "com.amazonaws.opensearch#DependencyFailureException":
|
|
4255
|
-
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
4256
|
-
case "DisabledOperationException":
|
|
4257
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
4258
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
4259
|
-
case "InternalException":
|
|
4260
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
4261
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4262
|
-
case "ResourceNotFoundException":
|
|
4263
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
4264
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4265
|
-
case "ValidationException":
|
|
4266
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
4267
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4268
|
-
default:
|
|
4269
|
-
const parsedBody = parsedOutput.body;
|
|
4270
|
-
return throwDefaultError({
|
|
4271
|
-
output,
|
|
4272
|
-
parsedBody,
|
|
4273
|
-
errorCode
|
|
4274
|
-
});
|
|
4275
|
-
}
|
|
4276
|
-
}, "de_UpdateDataSourceCommandError");
|
|
4277
2588
|
var de_UpdateDomainConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4278
2589
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4279
|
-
return
|
|
2590
|
+
return de_CommandError(output, context);
|
|
4280
2591
|
}
|
|
4281
2592
|
const contents = (0, import_smithy_client.map)({
|
|
4282
2593
|
$metadata: deserializeMetadata(output)
|
|
@@ -4290,43 +2601,9 @@ var de_UpdateDomainConfigCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
4290
2601
|
Object.assign(contents, doc);
|
|
4291
2602
|
return contents;
|
|
4292
2603
|
}, "de_UpdateDomainConfigCommand");
|
|
4293
|
-
var de_UpdateDomainConfigCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4294
|
-
const parsedOutput = {
|
|
4295
|
-
...output,
|
|
4296
|
-
body: await parseErrorBody(output.body, context)
|
|
4297
|
-
};
|
|
4298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4299
|
-
switch (errorCode) {
|
|
4300
|
-
case "BaseException":
|
|
4301
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
4302
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
4303
|
-
case "InternalException":
|
|
4304
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
4305
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4306
|
-
case "InvalidTypeException":
|
|
4307
|
-
case "com.amazonaws.opensearch#InvalidTypeException":
|
|
4308
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
4309
|
-
case "LimitExceededException":
|
|
4310
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
4311
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4312
|
-
case "ResourceNotFoundException":
|
|
4313
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
4314
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4315
|
-
case "ValidationException":
|
|
4316
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
4317
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4318
|
-
default:
|
|
4319
|
-
const parsedBody = parsedOutput.body;
|
|
4320
|
-
return throwDefaultError({
|
|
4321
|
-
output,
|
|
4322
|
-
parsedBody,
|
|
4323
|
-
errorCode
|
|
4324
|
-
});
|
|
4325
|
-
}
|
|
4326
|
-
}, "de_UpdateDomainConfigCommandError");
|
|
4327
2604
|
var de_UpdatePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4328
2605
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4329
|
-
return
|
|
2606
|
+
return de_CommandError(output, context);
|
|
4330
2607
|
}
|
|
4331
2608
|
const contents = (0, import_smithy_client.map)({
|
|
4332
2609
|
$metadata: deserializeMetadata(output)
|
|
@@ -4338,43 +2615,9 @@ var de_UpdatePackageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4338
2615
|
Object.assign(contents, doc);
|
|
4339
2616
|
return contents;
|
|
4340
2617
|
}, "de_UpdatePackageCommand");
|
|
4341
|
-
var de_UpdatePackageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4342
|
-
const parsedOutput = {
|
|
4343
|
-
...output,
|
|
4344
|
-
body: await parseErrorBody(output.body, context)
|
|
4345
|
-
};
|
|
4346
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4347
|
-
switch (errorCode) {
|
|
4348
|
-
case "AccessDeniedException":
|
|
4349
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
4350
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4351
|
-
case "BaseException":
|
|
4352
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
4353
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
4354
|
-
case "InternalException":
|
|
4355
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
4356
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4357
|
-
case "LimitExceededException":
|
|
4358
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
4359
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4360
|
-
case "ResourceNotFoundException":
|
|
4361
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
4362
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4363
|
-
case "ValidationException":
|
|
4364
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
4365
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4366
|
-
default:
|
|
4367
|
-
const parsedBody = parsedOutput.body;
|
|
4368
|
-
return throwDefaultError({
|
|
4369
|
-
output,
|
|
4370
|
-
parsedBody,
|
|
4371
|
-
errorCode
|
|
4372
|
-
});
|
|
4373
|
-
}
|
|
4374
|
-
}, "de_UpdatePackageCommandError");
|
|
4375
2618
|
var de_UpdateScheduledActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4376
2619
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4377
|
-
return
|
|
2620
|
+
return de_CommandError(output, context);
|
|
4378
2621
|
}
|
|
4379
2622
|
const contents = (0, import_smithy_client.map)({
|
|
4380
2623
|
$metadata: deserializeMetadata(output)
|
|
@@ -4386,46 +2629,9 @@ var de_UpdateScheduledActionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4386
2629
|
Object.assign(contents, doc);
|
|
4387
2630
|
return contents;
|
|
4388
2631
|
}, "de_UpdateScheduledActionCommand");
|
|
4389
|
-
var de_UpdateScheduledActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4390
|
-
const parsedOutput = {
|
|
4391
|
-
...output,
|
|
4392
|
-
body: await parseErrorBody(output.body, context)
|
|
4393
|
-
};
|
|
4394
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4395
|
-
switch (errorCode) {
|
|
4396
|
-
case "BaseException":
|
|
4397
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
4398
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
4399
|
-
case "ConflictException":
|
|
4400
|
-
case "com.amazonaws.opensearch#ConflictException":
|
|
4401
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4402
|
-
case "InternalException":
|
|
4403
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
4404
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4405
|
-
case "LimitExceededException":
|
|
4406
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
4407
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4408
|
-
case "ResourceNotFoundException":
|
|
4409
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
4410
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4411
|
-
case "SlotNotAvailableException":
|
|
4412
|
-
case "com.amazonaws.opensearch#SlotNotAvailableException":
|
|
4413
|
-
throw await de_SlotNotAvailableExceptionRes(parsedOutput, context);
|
|
4414
|
-
case "ValidationException":
|
|
4415
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
4416
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4417
|
-
default:
|
|
4418
|
-
const parsedBody = parsedOutput.body;
|
|
4419
|
-
return throwDefaultError({
|
|
4420
|
-
output,
|
|
4421
|
-
parsedBody,
|
|
4422
|
-
errorCode
|
|
4423
|
-
});
|
|
4424
|
-
}
|
|
4425
|
-
}, "de_UpdateScheduledActionCommandError");
|
|
4426
2632
|
var de_UpdateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4427
2633
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4428
|
-
return
|
|
2634
|
+
return de_CommandError(output, context);
|
|
4429
2635
|
}
|
|
4430
2636
|
const contents = (0, import_smithy_client.map)({
|
|
4431
2637
|
$metadata: deserializeMetadata(output)
|
|
@@ -4437,43 +2643,9 @@ var de_UpdateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4437
2643
|
Object.assign(contents, doc);
|
|
4438
2644
|
return contents;
|
|
4439
2645
|
}, "de_UpdateVpcEndpointCommand");
|
|
4440
|
-
var de_UpdateVpcEndpointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4441
|
-
const parsedOutput = {
|
|
4442
|
-
...output,
|
|
4443
|
-
body: await parseErrorBody(output.body, context)
|
|
4444
|
-
};
|
|
4445
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4446
|
-
switch (errorCode) {
|
|
4447
|
-
case "BaseException":
|
|
4448
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
4449
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
4450
|
-
case "ConflictException":
|
|
4451
|
-
case "com.amazonaws.opensearch#ConflictException":
|
|
4452
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4453
|
-
case "DisabledOperationException":
|
|
4454
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
4455
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
4456
|
-
case "InternalException":
|
|
4457
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
4458
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4459
|
-
case "ResourceNotFoundException":
|
|
4460
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
4461
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4462
|
-
case "ValidationException":
|
|
4463
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
4464
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4465
|
-
default:
|
|
4466
|
-
const parsedBody = parsedOutput.body;
|
|
4467
|
-
return throwDefaultError({
|
|
4468
|
-
output,
|
|
4469
|
-
parsedBody,
|
|
4470
|
-
errorCode
|
|
4471
|
-
});
|
|
4472
|
-
}
|
|
4473
|
-
}, "de_UpdateVpcEndpointCommandError");
|
|
4474
2646
|
var de_UpgradeDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4475
2647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4476
|
-
return
|
|
2648
|
+
return de_CommandError(output, context);
|
|
4477
2649
|
}
|
|
4478
2650
|
const contents = (0, import_smithy_client.map)({
|
|
4479
2651
|
$metadata: deserializeMetadata(output)
|
|
@@ -4490,31 +2662,52 @@ var de_UpgradeDomainCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4490
2662
|
Object.assign(contents, doc);
|
|
4491
2663
|
return contents;
|
|
4492
2664
|
}, "de_UpgradeDomainCommand");
|
|
4493
|
-
var
|
|
2665
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4494
2666
|
const parsedOutput = {
|
|
4495
2667
|
...output,
|
|
4496
2668
|
body: await parseErrorBody(output.body, context)
|
|
4497
2669
|
};
|
|
4498
2670
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4499
2671
|
switch (errorCode) {
|
|
4500
|
-
case "BaseException":
|
|
4501
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
4502
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
4503
2672
|
case "DisabledOperationException":
|
|
4504
2673
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
4505
2674
|
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
4506
|
-
case "
|
|
4507
|
-
case "com.amazonaws.opensearch#
|
|
4508
|
-
throw await
|
|
4509
|
-
case "ResourceAlreadyExistsException":
|
|
4510
|
-
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
4511
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2675
|
+
case "LimitExceededException":
|
|
2676
|
+
case "com.amazonaws.opensearch#LimitExceededException":
|
|
2677
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4512
2678
|
case "ResourceNotFoundException":
|
|
4513
2679
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
4514
2680
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2681
|
+
case "BaseException":
|
|
2682
|
+
case "com.amazonaws.opensearch#BaseException":
|
|
2683
|
+
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2684
|
+
case "DependencyFailureException":
|
|
2685
|
+
case "com.amazonaws.opensearch#DependencyFailureException":
|
|
2686
|
+
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
2687
|
+
case "InternalException":
|
|
2688
|
+
case "com.amazonaws.opensearch#InternalException":
|
|
2689
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4515
2690
|
case "ValidationException":
|
|
4516
2691
|
case "com.amazonaws.opensearch#ValidationException":
|
|
4517
2692
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2693
|
+
case "AccessDeniedException":
|
|
2694
|
+
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
2695
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2696
|
+
case "ConflictException":
|
|
2697
|
+
case "com.amazonaws.opensearch#ConflictException":
|
|
2698
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2699
|
+
case "InvalidTypeException":
|
|
2700
|
+
case "com.amazonaws.opensearch#InvalidTypeException":
|
|
2701
|
+
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
2702
|
+
case "ResourceAlreadyExistsException":
|
|
2703
|
+
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
2704
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2705
|
+
case "InvalidPaginationTokenException":
|
|
2706
|
+
case "com.amazonaws.opensearch#InvalidPaginationTokenException":
|
|
2707
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
2708
|
+
case "SlotNotAvailableException":
|
|
2709
|
+
case "com.amazonaws.opensearch#SlotNotAvailableException":
|
|
2710
|
+
throw await de_SlotNotAvailableExceptionRes(parsedOutput, context);
|
|
4518
2711
|
default:
|
|
4519
2712
|
const parsedBody = parsedOutput.body;
|
|
4520
2713
|
return throwDefaultError({
|
|
@@ -4523,7 +2716,7 @@ var de_UpgradeDomainCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
4523
2716
|
errorCode
|
|
4524
2717
|
});
|
|
4525
2718
|
}
|
|
4526
|
-
}, "
|
|
2719
|
+
}, "de_CommandError");
|
|
4527
2720
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(OpenSearchServiceException);
|
|
4528
2721
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4529
2722
|
const contents = (0, import_smithy_client.map)({});
|