@aws-sdk/client-opensearch 3.504.0 → 3.508.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/README.md +8 -0
- package/dist-cjs/commands/CancelDomainConfigChangeCommand.js +1 -0
- package/dist-cjs/index.js +212 -1916
- package/dist-es/OpenSearch.js +2 -0
- package/dist-es/commands/CancelDomainConfigChangeCommand.js +24 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +27 -0
- package/dist-es/protocols/Aws_restJson1.js +156 -1917
- package/dist-types/OpenSearch.d.ts +7 -0
- package/dist-types/OpenSearchClient.d.ts +3 -2
- package/dist-types/commands/CancelDomainConfigChangeCommand.d.ts +84 -0
- package/dist-types/commands/CreateDomainCommand.d.ts +13 -0
- package/dist-types/commands/DeleteDomainCommand.d.ts +13 -0
- package/dist-types/commands/DescribeDomainChangeProgressCommand.d.ts +3 -0
- package/dist-types/commands/DescribeDomainCommand.d.ts +13 -0
- package/dist-types/commands/DescribeDomainConfigCommand.d.ts +12 -0
- package/dist-types/commands/DescribeDomainsCommand.d.ts +13 -0
- package/dist-types/commands/DescribeDryRunProgressCommand.d.ts +13 -0
- package/dist-types/commands/UpdateDomainConfigCommand.d.ts +12 -0
- package/dist-types/commands/UpgradeDomainCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +205 -2
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/OpenSearch.d.ts +17 -0
- package/dist-types/ts3.4/OpenSearchClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/CancelDomainConfigChangeCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +64 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -35,7 +35,9 @@ __export(src_exports, {
|
|
|
35
35
|
AutoTuneState: () => AutoTuneState,
|
|
36
36
|
AutoTuneType: () => AutoTuneType,
|
|
37
37
|
BaseException: () => BaseException,
|
|
38
|
+
CancelDomainConfigChangeCommand: () => CancelDomainConfigChangeCommand,
|
|
38
39
|
CancelServiceSoftwareUpdateCommand: () => CancelServiceSoftwareUpdateCommand,
|
|
40
|
+
ConfigChangeStatus: () => ConfigChangeStatus,
|
|
39
41
|
ConflictException: () => ConflictException,
|
|
40
42
|
ConnectionMode: () => ConnectionMode,
|
|
41
43
|
CreateDomainCommand: () => CreateDomainCommand,
|
|
@@ -72,6 +74,7 @@ __export(src_exports, {
|
|
|
72
74
|
DissociatePackageCommand: () => DissociatePackageCommand,
|
|
73
75
|
DomainHealth: () => DomainHealth,
|
|
74
76
|
DomainPackageStatus: () => DomainPackageStatus,
|
|
77
|
+
DomainProcessingStatusType: () => DomainProcessingStatusType,
|
|
75
78
|
DomainState: () => DomainState,
|
|
76
79
|
DryRunMode: () => DryRunMode,
|
|
77
80
|
EngineType: () => EngineType,
|
|
@@ -83,6 +86,7 @@ __export(src_exports, {
|
|
|
83
86
|
GetUpgradeStatusCommand: () => GetUpgradeStatusCommand,
|
|
84
87
|
IPAddressType: () => IPAddressType,
|
|
85
88
|
InboundConnectionStatusCode: () => InboundConnectionStatusCode,
|
|
89
|
+
InitiatedBy: () => InitiatedBy,
|
|
86
90
|
InternalException: () => InternalException,
|
|
87
91
|
InvalidPaginationTokenException: () => InvalidPaginationTokenException,
|
|
88
92
|
InvalidTypeException: () => InvalidTypeException,
|
|
@@ -117,6 +121,7 @@ __export(src_exports, {
|
|
|
117
121
|
PackageStatus: () => PackageStatus,
|
|
118
122
|
PackageType: () => PackageType,
|
|
119
123
|
PrincipalType: () => PrincipalType,
|
|
124
|
+
PropertyValueType: () => PropertyValueType,
|
|
120
125
|
PurchaseReservedInstanceOfferingCommand: () => PurchaseReservedInstanceOfferingCommand,
|
|
121
126
|
RejectInboundConnectionCommand: () => RejectInboundConnectionCommand,
|
|
122
127
|
RemoveTagsCommand: () => RemoveTagsCommand,
|
|
@@ -646,6 +651,33 @@ var AutoTuneState = {
|
|
|
646
651
|
ENABLE_IN_PROGRESS: "ENABLE_IN_PROGRESS",
|
|
647
652
|
ERROR: "ERROR"
|
|
648
653
|
};
|
|
654
|
+
var ConfigChangeStatus = {
|
|
655
|
+
APPLYING_CHANGES: "ApplyingChanges",
|
|
656
|
+
CANCELLED: "Cancelled",
|
|
657
|
+
COMPLETED: "Completed",
|
|
658
|
+
INITIALIZING: "Initializing",
|
|
659
|
+
PENDING: "Pending",
|
|
660
|
+
PENDING_USER_INPUT: "PendingUserInput",
|
|
661
|
+
VALIDATING: "Validating",
|
|
662
|
+
VALIDATION_FAILED: "ValidationFailed"
|
|
663
|
+
};
|
|
664
|
+
var InitiatedBy = {
|
|
665
|
+
CUSTOMER: "CUSTOMER",
|
|
666
|
+
SERVICE: "SERVICE"
|
|
667
|
+
};
|
|
668
|
+
var DomainProcessingStatusType = {
|
|
669
|
+
ACTIVE: "Active",
|
|
670
|
+
CREATING: "Creating",
|
|
671
|
+
DELETING: "Deleting",
|
|
672
|
+
ISOLATED: "Isolated",
|
|
673
|
+
MODIFYING: "Modifying",
|
|
674
|
+
UPDATING: "UpdatingServiceSoftware",
|
|
675
|
+
UPGRADING: "UpgradingEngineVersion"
|
|
676
|
+
};
|
|
677
|
+
var PropertyValueType = {
|
|
678
|
+
PLAIN_TEXT: "PLAIN_TEXT",
|
|
679
|
+
STRINGIFIED_JSON: "STRINGIFIED_JSON"
|
|
680
|
+
};
|
|
649
681
|
var _InvalidTypeException = class _InvalidTypeException extends OpenSearchServiceException {
|
|
650
682
|
/**
|
|
651
683
|
* @internal
|
|
@@ -955,6 +987,22 @@ var se_AuthorizeVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (input,
|
|
|
955
987
|
b.m("POST").h(headers).b(body);
|
|
956
988
|
return b.build();
|
|
957
989
|
}, "se_AuthorizeVpcEndpointAccessCommand");
|
|
990
|
+
var se_CancelDomainConfigChangeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
991
|
+
const b = (0, import_core2.requestBuilder)(input, context);
|
|
992
|
+
const headers = {
|
|
993
|
+
"content-type": "application/json"
|
|
994
|
+
};
|
|
995
|
+
b.bp("/2021-01-01/opensearch/domain/{DomainName}/config/cancel");
|
|
996
|
+
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
997
|
+
let body;
|
|
998
|
+
body = JSON.stringify(
|
|
999
|
+
(0, import_smithy_client.take)(input, {
|
|
1000
|
+
DryRun: []
|
|
1001
|
+
})
|
|
1002
|
+
);
|
|
1003
|
+
b.m("POST").h(headers).b(body);
|
|
1004
|
+
return b.build();
|
|
1005
|
+
}, "se_CancelDomainConfigChangeCommand");
|
|
958
1006
|
var se_CancelServiceSoftwareUpdateCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
959
1007
|
const b = (0, import_core2.requestBuilder)(input, context);
|
|
960
1008
|
const headers = {
|
|
@@ -1752,7 +1800,7 @@ var se_UpgradeDomainCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1752
1800
|
}, "se_UpgradeDomainCommand");
|
|
1753
1801
|
var de_AcceptInboundConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1754
1802
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1755
|
-
return
|
|
1803
|
+
return de_CommandError(output, context);
|
|
1756
1804
|
}
|
|
1757
1805
|
const contents = (0, import_smithy_client.map)({
|
|
1758
1806
|
$metadata: deserializeMetadata(output)
|
|
@@ -1764,34 +1812,9 @@ var de_AcceptInboundConnectionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1764
1812
|
Object.assign(contents, doc);
|
|
1765
1813
|
return contents;
|
|
1766
1814
|
}, "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
1815
|
var de_AddDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1793
1816
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1794
|
-
return
|
|
1817
|
+
return de_CommandError(output, context);
|
|
1795
1818
|
}
|
|
1796
1819
|
const contents = (0, import_smithy_client.map)({
|
|
1797
1820
|
$metadata: deserializeMetadata(output)
|
|
@@ -1803,46 +1826,9 @@ var de_AddDataSourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1803
1826
|
Object.assign(contents, doc);
|
|
1804
1827
|
return contents;
|
|
1805
1828
|
}, "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
1829
|
var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1844
1830
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1845
|
-
return
|
|
1831
|
+
return de_CommandError(output, context);
|
|
1846
1832
|
}
|
|
1847
1833
|
const contents = (0, import_smithy_client.map)({
|
|
1848
1834
|
$metadata: deserializeMetadata(output)
|
|
@@ -1850,37 +1836,9 @@ var de_AddTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1850
1836
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1851
1837
|
return contents;
|
|
1852
1838
|
}, "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
1839
|
var de_AssociatePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1882
1840
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1883
|
-
return
|
|
1841
|
+
return de_CommandError(output, context);
|
|
1884
1842
|
}
|
|
1885
1843
|
const contents = (0, import_smithy_client.map)({
|
|
1886
1844
|
$metadata: deserializeMetadata(output)
|
|
@@ -1892,43 +1850,9 @@ var de_AssociatePackageCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1892
1850
|
Object.assign(contents, doc);
|
|
1893
1851
|
return contents;
|
|
1894
1852
|
}, "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
1853
|
var de_AuthorizeVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1930
1854
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1931
|
-
return
|
|
1855
|
+
return de_CommandError(output, context);
|
|
1932
1856
|
}
|
|
1933
1857
|
const contents = (0, import_smithy_client.map)({
|
|
1934
1858
|
$metadata: deserializeMetadata(output)
|
|
@@ -1940,43 +1864,25 @@ var de_AuthorizeVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1940
1864
|
Object.assign(contents, doc);
|
|
1941
1865
|
return contents;
|
|
1942
1866
|
}, "de_AuthorizeVpcEndpointAccessCommand");
|
|
1943
|
-
var
|
|
1944
|
-
|
|
1945
|
-
|
|
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
|
-
});
|
|
1867
|
+
var de_CancelDomainConfigChangeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1868
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1869
|
+
return de_CommandError(output, context);
|
|
1975
1870
|
}
|
|
1976
|
-
|
|
1871
|
+
const contents = (0, import_smithy_client.map)({
|
|
1872
|
+
$metadata: deserializeMetadata(output)
|
|
1873
|
+
});
|
|
1874
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
1875
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1876
|
+
CancelledChangeIds: import_smithy_client._json,
|
|
1877
|
+
CancelledChangeProperties: import_smithy_client._json,
|
|
1878
|
+
DryRun: import_smithy_client.expectBoolean
|
|
1879
|
+
});
|
|
1880
|
+
Object.assign(contents, doc);
|
|
1881
|
+
return contents;
|
|
1882
|
+
}, "de_CancelDomainConfigChangeCommand");
|
|
1977
1883
|
var de_CancelServiceSoftwareUpdateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1978
1884
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1979
|
-
return
|
|
1885
|
+
return de_CommandError(output, context);
|
|
1980
1886
|
}
|
|
1981
1887
|
const contents = (0, import_smithy_client.map)({
|
|
1982
1888
|
$metadata: deserializeMetadata(output)
|
|
@@ -1988,37 +1894,9 @@ var de_CancelServiceSoftwareUpdateCommand = /* @__PURE__ */ __name(async (output
|
|
|
1988
1894
|
Object.assign(contents, doc);
|
|
1989
1895
|
return contents;
|
|
1990
1896
|
}, "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
1897
|
var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2020
1898
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2021
|
-
return
|
|
1899
|
+
return de_CommandError(output, context);
|
|
2022
1900
|
}
|
|
2023
1901
|
const contents = (0, import_smithy_client.map)({
|
|
2024
1902
|
$metadata: deserializeMetadata(output)
|
|
@@ -2030,46 +1908,9 @@ var de_CreateDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2030
1908
|
Object.assign(contents, doc);
|
|
2031
1909
|
return contents;
|
|
2032
1910
|
}, "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
1911
|
var de_CreateOutboundConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2071
1912
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2072
|
-
return
|
|
1913
|
+
return de_CommandError(output, context);
|
|
2073
1914
|
}
|
|
2074
1915
|
const contents = (0, import_smithy_client.map)({
|
|
2075
1916
|
$metadata: deserializeMetadata(output)
|
|
@@ -2087,37 +1928,9 @@ var de_CreateOutboundConnectionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2087
1928
|
Object.assign(contents, doc);
|
|
2088
1929
|
return contents;
|
|
2089
1930
|
}, "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
1931
|
var de_CreatePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2119
1932
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2120
|
-
return
|
|
1933
|
+
return de_CommandError(output, context);
|
|
2121
1934
|
}
|
|
2122
1935
|
const contents = (0, import_smithy_client.map)({
|
|
2123
1936
|
$metadata: deserializeMetadata(output)
|
|
@@ -2129,46 +1942,9 @@ var de_CreatePackageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2129
1942
|
Object.assign(contents, doc);
|
|
2130
1943
|
return contents;
|
|
2131
1944
|
}, "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
1945
|
var de_CreateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2170
1946
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2171
|
-
return
|
|
1947
|
+
return de_CommandError(output, context);
|
|
2172
1948
|
}
|
|
2173
1949
|
const contents = (0, import_smithy_client.map)({
|
|
2174
1950
|
$metadata: deserializeMetadata(output)
|
|
@@ -2180,43 +1956,9 @@ var de_CreateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2180
1956
|
Object.assign(contents, doc);
|
|
2181
1957
|
return contents;
|
|
2182
1958
|
}, "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
1959
|
var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2218
1960
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2219
|
-
return
|
|
1961
|
+
return de_CommandError(output, context);
|
|
2220
1962
|
}
|
|
2221
1963
|
const contents = (0, import_smithy_client.map)({
|
|
2222
1964
|
$metadata: deserializeMetadata(output)
|
|
@@ -2228,43 +1970,9 @@ var de_DeleteDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2228
1970
|
Object.assign(contents, doc);
|
|
2229
1971
|
return contents;
|
|
2230
1972
|
}, "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
1973
|
var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2266
1974
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2267
|
-
return
|
|
1975
|
+
return de_CommandError(output, context);
|
|
2268
1976
|
}
|
|
2269
1977
|
const contents = (0, import_smithy_client.map)({
|
|
2270
1978
|
$metadata: deserializeMetadata(output)
|
|
@@ -2276,37 +1984,9 @@ var de_DeleteDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2276
1984
|
Object.assign(contents, doc);
|
|
2277
1985
|
return contents;
|
|
2278
1986
|
}, "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
1987
|
var de_DeleteInboundConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2308
1988
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2309
|
-
return
|
|
1989
|
+
return de_CommandError(output, context);
|
|
2310
1990
|
}
|
|
2311
1991
|
const contents = (0, import_smithy_client.map)({
|
|
2312
1992
|
$metadata: deserializeMetadata(output)
|
|
@@ -2318,31 +1998,9 @@ var de_DeleteInboundConnectionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2318
1998
|
Object.assign(contents, doc);
|
|
2319
1999
|
return contents;
|
|
2320
2000
|
}, "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
2001
|
var de_DeleteOutboundConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2344
2002
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2345
|
-
return
|
|
2003
|
+
return de_CommandError(output, context);
|
|
2346
2004
|
}
|
|
2347
2005
|
const contents = (0, import_smithy_client.map)({
|
|
2348
2006
|
$metadata: deserializeMetadata(output)
|
|
@@ -2354,31 +2012,9 @@ var de_DeleteOutboundConnectionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2354
2012
|
Object.assign(contents, doc);
|
|
2355
2013
|
return contents;
|
|
2356
2014
|
}, "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
2015
|
var de_DeletePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2380
2016
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2381
|
-
return
|
|
2017
|
+
return de_CommandError(output, context);
|
|
2382
2018
|
}
|
|
2383
2019
|
const contents = (0, import_smithy_client.map)({
|
|
2384
2020
|
$metadata: deserializeMetadata(output)
|
|
@@ -2390,43 +2026,9 @@ var de_DeletePackageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2390
2026
|
Object.assign(contents, doc);
|
|
2391
2027
|
return contents;
|
|
2392
2028
|
}, "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
2029
|
var de_DeleteVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2428
2030
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2429
|
-
return
|
|
2031
|
+
return de_CommandError(output, context);
|
|
2430
2032
|
}
|
|
2431
2033
|
const contents = (0, import_smithy_client.map)({
|
|
2432
2034
|
$metadata: deserializeMetadata(output)
|
|
@@ -2438,37 +2040,9 @@ var de_DeleteVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2438
2040
|
Object.assign(contents, doc);
|
|
2439
2041
|
return contents;
|
|
2440
2042
|
}, "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
2043
|
var de_DescribeDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2470
2044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2471
|
-
return
|
|
2045
|
+
return de_CommandError(output, context);
|
|
2472
2046
|
}
|
|
2473
2047
|
const contents = (0, import_smithy_client.map)({
|
|
2474
2048
|
$metadata: deserializeMetadata(output)
|
|
@@ -2480,37 +2054,9 @@ var de_DescribeDomainCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2480
2054
|
Object.assign(contents, doc);
|
|
2481
2055
|
return contents;
|
|
2482
2056
|
}, "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
2057
|
var de_DescribeDomainAutoTunesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2512
2058
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2513
|
-
return
|
|
2059
|
+
return de_CommandError(output, context);
|
|
2514
2060
|
}
|
|
2515
2061
|
const contents = (0, import_smithy_client.map)({
|
|
2516
2062
|
$metadata: deserializeMetadata(output)
|
|
@@ -2523,37 +2069,9 @@ var de_DescribeDomainAutoTunesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2523
2069
|
Object.assign(contents, doc);
|
|
2524
2070
|
return contents;
|
|
2525
2071
|
}, "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
2072
|
var de_DescribeDomainChangeProgressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2555
2073
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2556
|
-
return
|
|
2074
|
+
return de_CommandError(output, context);
|
|
2557
2075
|
}
|
|
2558
2076
|
const contents = (0, import_smithy_client.map)({
|
|
2559
2077
|
$metadata: deserializeMetadata(output)
|
|
@@ -2565,37 +2083,9 @@ var de_DescribeDomainChangeProgressCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2565
2083
|
Object.assign(contents, doc);
|
|
2566
2084
|
return contents;
|
|
2567
2085
|
}, "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
2086
|
var de_DescribeDomainConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2597
2087
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2598
|
-
return
|
|
2088
|
+
return de_CommandError(output, context);
|
|
2599
2089
|
}
|
|
2600
2090
|
const contents = (0, import_smithy_client.map)({
|
|
2601
2091
|
$metadata: deserializeMetadata(output)
|
|
@@ -2607,37 +2097,9 @@ var de_DescribeDomainConfigCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2607
2097
|
Object.assign(contents, doc);
|
|
2608
2098
|
return contents;
|
|
2609
2099
|
}, "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
2100
|
var de_DescribeDomainHealthCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2639
2101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2640
|
-
return
|
|
2102
|
+
return de_CommandError(output, context);
|
|
2641
2103
|
}
|
|
2642
2104
|
const contents = (0, import_smithy_client.map)({
|
|
2643
2105
|
$metadata: deserializeMetadata(output)
|
|
@@ -2661,40 +2123,9 @@ var de_DescribeDomainHealthCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2661
2123
|
Object.assign(contents, doc);
|
|
2662
2124
|
return contents;
|
|
2663
2125
|
}, "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
2126
|
var de_DescribeDomainNodesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2696
2127
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2697
|
-
return
|
|
2128
|
+
return de_CommandError(output, context);
|
|
2698
2129
|
}
|
|
2699
2130
|
const contents = (0, import_smithy_client.map)({
|
|
2700
2131
|
$metadata: deserializeMetadata(output)
|
|
@@ -2706,43 +2137,9 @@ var de_DescribeDomainNodesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2706
2137
|
Object.assign(contents, doc);
|
|
2707
2138
|
return contents;
|
|
2708
2139
|
}, "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
2140
|
var de_DescribeDomainsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2744
2141
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2745
|
-
return
|
|
2142
|
+
return de_CommandError(output, context);
|
|
2746
2143
|
}
|
|
2747
2144
|
const contents = (0, import_smithy_client.map)({
|
|
2748
2145
|
$metadata: deserializeMetadata(output)
|
|
@@ -2754,34 +2151,9 @@ var de_DescribeDomainsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2754
2151
|
Object.assign(contents, doc);
|
|
2755
2152
|
return contents;
|
|
2756
2153
|
}, "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
2154
|
var de_DescribeDryRunProgressCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2783
2155
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2784
|
-
return
|
|
2156
|
+
return de_CommandError(output, context);
|
|
2785
2157
|
}
|
|
2786
2158
|
const contents = (0, import_smithy_client.map)({
|
|
2787
2159
|
$metadata: deserializeMetadata(output)
|
|
@@ -2795,40 +2167,9 @@ var de_DescribeDryRunProgressCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2795
2167
|
Object.assign(contents, doc);
|
|
2796
2168
|
return contents;
|
|
2797
2169
|
}, "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
2170
|
var de_DescribeInboundConnectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2830
2171
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2831
|
-
return
|
|
2172
|
+
return de_CommandError(output, context);
|
|
2832
2173
|
}
|
|
2833
2174
|
const contents = (0, import_smithy_client.map)({
|
|
2834
2175
|
$metadata: deserializeMetadata(output)
|
|
@@ -2841,31 +2182,9 @@ var de_DescribeInboundConnectionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2841
2182
|
Object.assign(contents, doc);
|
|
2842
2183
|
return contents;
|
|
2843
2184
|
}, "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
2185
|
var de_DescribeInstanceTypeLimitsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2867
2186
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2868
|
-
return
|
|
2187
|
+
return de_CommandError(output, context);
|
|
2869
2188
|
}
|
|
2870
2189
|
const contents = (0, import_smithy_client.map)({
|
|
2871
2190
|
$metadata: deserializeMetadata(output)
|
|
@@ -2877,43 +2196,9 @@ var de_DescribeInstanceTypeLimitsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2877
2196
|
Object.assign(contents, doc);
|
|
2878
2197
|
return contents;
|
|
2879
2198
|
}, "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
2199
|
var de_DescribeOutboundConnectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2915
2200
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2916
|
-
return
|
|
2201
|
+
return de_CommandError(output, context);
|
|
2917
2202
|
}
|
|
2918
2203
|
const contents = (0, import_smithy_client.map)({
|
|
2919
2204
|
$metadata: deserializeMetadata(output)
|
|
@@ -2926,31 +2211,9 @@ var de_DescribeOutboundConnectionsCommand = /* @__PURE__ */ __name(async (output
|
|
|
2926
2211
|
Object.assign(contents, doc);
|
|
2927
2212
|
return contents;
|
|
2928
2213
|
}, "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
2214
|
var de_DescribePackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2952
2215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2953
|
-
return
|
|
2216
|
+
return de_CommandError(output, context);
|
|
2954
2217
|
}
|
|
2955
2218
|
const contents = (0, import_smithy_client.map)({
|
|
2956
2219
|
$metadata: deserializeMetadata(output)
|
|
@@ -2963,40 +2226,9 @@ var de_DescribePackagesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2963
2226
|
Object.assign(contents, doc);
|
|
2964
2227
|
return contents;
|
|
2965
2228
|
}, "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
2229
|
var de_DescribeReservedInstanceOfferingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2998
2230
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2999
|
-
return
|
|
2231
|
+
return de_CommandError(output, context);
|
|
3000
2232
|
}
|
|
3001
2233
|
const contents = (0, import_smithy_client.map)({
|
|
3002
2234
|
$metadata: deserializeMetadata(output)
|
|
@@ -3009,37 +2241,9 @@ var de_DescribeReservedInstanceOfferingsCommand = /* @__PURE__ */ __name(async (
|
|
|
3009
2241
|
Object.assign(contents, doc);
|
|
3010
2242
|
return contents;
|
|
3011
2243
|
}, "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
2244
|
var de_DescribeReservedInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3041
2245
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3042
|
-
return
|
|
2246
|
+
return de_CommandError(output, context);
|
|
3043
2247
|
}
|
|
3044
2248
|
const contents = (0, import_smithy_client.map)({
|
|
3045
2249
|
$metadata: deserializeMetadata(output)
|
|
@@ -3052,37 +2256,9 @@ var de_DescribeReservedInstancesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3052
2256
|
Object.assign(contents, doc);
|
|
3053
2257
|
return contents;
|
|
3054
2258
|
}, "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
2259
|
var de_DescribeVpcEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3084
2260
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3085
|
-
return
|
|
2261
|
+
return de_CommandError(output, context);
|
|
3086
2262
|
}
|
|
3087
2263
|
const contents = (0, import_smithy_client.map)({
|
|
3088
2264
|
$metadata: deserializeMetadata(output)
|
|
@@ -3095,37 +2271,9 @@ var de_DescribeVpcEndpointsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3095
2271
|
Object.assign(contents, doc);
|
|
3096
2272
|
return contents;
|
|
3097
2273
|
}, "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
2274
|
var de_DissociatePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3127
2275
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3128
|
-
return
|
|
2276
|
+
return de_CommandError(output, context);
|
|
3129
2277
|
}
|
|
3130
2278
|
const contents = (0, import_smithy_client.map)({
|
|
3131
2279
|
$metadata: deserializeMetadata(output)
|
|
@@ -3137,43 +2285,9 @@ var de_DissociatePackageCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3137
2285
|
Object.assign(contents, doc);
|
|
3138
2286
|
return contents;
|
|
3139
2287
|
}, "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
2288
|
var de_GetCompatibleVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3175
2289
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3176
|
-
return
|
|
2290
|
+
return de_CommandError(output, context);
|
|
3177
2291
|
}
|
|
3178
2292
|
const contents = (0, import_smithy_client.map)({
|
|
3179
2293
|
$metadata: deserializeMetadata(output)
|
|
@@ -3185,40 +2299,9 @@ var de_GetCompatibleVersionsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3185
2299
|
Object.assign(contents, doc);
|
|
3186
2300
|
return contents;
|
|
3187
2301
|
}, "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
2302
|
var de_GetDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3220
2303
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3221
|
-
return
|
|
2304
|
+
return de_CommandError(output, context);
|
|
3222
2305
|
}
|
|
3223
2306
|
const contents = (0, import_smithy_client.map)({
|
|
3224
2307
|
$metadata: deserializeMetadata(output)
|
|
@@ -3232,43 +2315,9 @@ var de_GetDataSourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3232
2315
|
Object.assign(contents, doc);
|
|
3233
2316
|
return contents;
|
|
3234
2317
|
}, "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
2318
|
var de_GetDomainMaintenanceStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3270
2319
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3271
|
-
return
|
|
2320
|
+
return de_CommandError(output, context);
|
|
3272
2321
|
}
|
|
3273
2322
|
const contents = (0, import_smithy_client.map)({
|
|
3274
2323
|
$metadata: deserializeMetadata(output)
|
|
@@ -3285,40 +2334,9 @@ var de_GetDomainMaintenanceStatusCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3285
2334
|
Object.assign(contents, doc);
|
|
3286
2335
|
return contents;
|
|
3287
2336
|
}, "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
2337
|
var de_GetPackageVersionHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3320
2338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3321
|
-
return
|
|
2339
|
+
return de_CommandError(output, context);
|
|
3322
2340
|
}
|
|
3323
2341
|
const contents = (0, import_smithy_client.map)({
|
|
3324
2342
|
$metadata: deserializeMetadata(output)
|
|
@@ -3332,40 +2350,9 @@ var de_GetPackageVersionHistoryCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3332
2350
|
Object.assign(contents, doc);
|
|
3333
2351
|
return contents;
|
|
3334
2352
|
}, "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
2353
|
var de_GetUpgradeHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3367
2354
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3368
|
-
return
|
|
2355
|
+
return de_CommandError(output, context);
|
|
3369
2356
|
}
|
|
3370
2357
|
const contents = (0, import_smithy_client.map)({
|
|
3371
2358
|
$metadata: deserializeMetadata(output)
|
|
@@ -3378,40 +2365,9 @@ var de_GetUpgradeHistoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3378
2365
|
Object.assign(contents, doc);
|
|
3379
2366
|
return contents;
|
|
3380
2367
|
}, "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
2368
|
var de_GetUpgradeStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3413
2369
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3414
|
-
return
|
|
2370
|
+
return de_CommandError(output, context);
|
|
3415
2371
|
}
|
|
3416
2372
|
const contents = (0, import_smithy_client.map)({
|
|
3417
2373
|
$metadata: deserializeMetadata(output)
|
|
@@ -3425,40 +2381,9 @@ var de_GetUpgradeStatusCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3425
2381
|
Object.assign(contents, doc);
|
|
3426
2382
|
return contents;
|
|
3427
2383
|
}, "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
2384
|
var de_ListDataSourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3460
2385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3461
|
-
return
|
|
2386
|
+
return de_CommandError(output, context);
|
|
3462
2387
|
}
|
|
3463
2388
|
const contents = (0, import_smithy_client.map)({
|
|
3464
2389
|
$metadata: deserializeMetadata(output)
|
|
@@ -3470,43 +2395,9 @@ var de_ListDataSourcesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3470
2395
|
Object.assign(contents, doc);
|
|
3471
2396
|
return contents;
|
|
3472
2397
|
}, "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
2398
|
var de_ListDomainMaintenancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3508
2399
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3509
|
-
return
|
|
2400
|
+
return de_CommandError(output, context);
|
|
3510
2401
|
}
|
|
3511
2402
|
const contents = (0, import_smithy_client.map)({
|
|
3512
2403
|
$metadata: deserializeMetadata(output)
|
|
@@ -3519,40 +2410,9 @@ var de_ListDomainMaintenancesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3519
2410
|
Object.assign(contents, doc);
|
|
3520
2411
|
return contents;
|
|
3521
2412
|
}, "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
2413
|
var de_ListDomainNamesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3554
2414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3555
|
-
return
|
|
2415
|
+
return de_CommandError(output, context);
|
|
3556
2416
|
}
|
|
3557
2417
|
const contents = (0, import_smithy_client.map)({
|
|
3558
2418
|
$metadata: deserializeMetadata(output)
|
|
@@ -3564,31 +2424,9 @@ var de_ListDomainNamesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3564
2424
|
Object.assign(contents, doc);
|
|
3565
2425
|
return contents;
|
|
3566
2426
|
}, "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
2427
|
var de_ListDomainsForPackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3590
2428
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3591
|
-
return
|
|
2429
|
+
return de_CommandError(output, context);
|
|
3592
2430
|
}
|
|
3593
2431
|
const contents = (0, import_smithy_client.map)({
|
|
3594
2432
|
$metadata: deserializeMetadata(output)
|
|
@@ -3601,40 +2439,9 @@ var de_ListDomainsForPackageCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3601
2439
|
Object.assign(contents, doc);
|
|
3602
2440
|
return contents;
|
|
3603
2441
|
}, "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
2442
|
var de_ListInstanceTypeDetailsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3636
2443
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3637
|
-
return
|
|
2444
|
+
return de_CommandError(output, context);
|
|
3638
2445
|
}
|
|
3639
2446
|
const contents = (0, import_smithy_client.map)({
|
|
3640
2447
|
$metadata: deserializeMetadata(output)
|
|
@@ -3647,37 +2454,9 @@ var de_ListInstanceTypeDetailsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3647
2454
|
Object.assign(contents, doc);
|
|
3648
2455
|
return contents;
|
|
3649
2456
|
}, "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
2457
|
var de_ListPackagesForDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3679
2458
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3680
|
-
return
|
|
2459
|
+
return de_CommandError(output, context);
|
|
3681
2460
|
}
|
|
3682
2461
|
const contents = (0, import_smithy_client.map)({
|
|
3683
2462
|
$metadata: deserializeMetadata(output)
|
|
@@ -3690,40 +2469,9 @@ var de_ListPackagesForDomainCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3690
2469
|
Object.assign(contents, doc);
|
|
3691
2470
|
return contents;
|
|
3692
2471
|
}, "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
2472
|
var de_ListScheduledActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3725
2473
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3726
|
-
return
|
|
2474
|
+
return de_CommandError(output, context);
|
|
3727
2475
|
}
|
|
3728
2476
|
const contents = (0, import_smithy_client.map)({
|
|
3729
2477
|
$metadata: deserializeMetadata(output)
|
|
@@ -3736,40 +2484,9 @@ var de_ListScheduledActionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3736
2484
|
Object.assign(contents, doc);
|
|
3737
2485
|
return contents;
|
|
3738
2486
|
}, "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
2487
|
var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3771
2488
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3772
|
-
return
|
|
2489
|
+
return de_CommandError(output, context);
|
|
3773
2490
|
}
|
|
3774
2491
|
const contents = (0, import_smithy_client.map)({
|
|
3775
2492
|
$metadata: deserializeMetadata(output)
|
|
@@ -3781,37 +2498,9 @@ var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3781
2498
|
Object.assign(contents, doc);
|
|
3782
2499
|
return contents;
|
|
3783
2500
|
}, "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
2501
|
var de_ListVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3813
2502
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3814
|
-
return
|
|
2503
|
+
return de_CommandError(output, context);
|
|
3815
2504
|
}
|
|
3816
2505
|
const contents = (0, import_smithy_client.map)({
|
|
3817
2506
|
$metadata: deserializeMetadata(output)
|
|
@@ -3824,37 +2513,9 @@ var de_ListVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3824
2513
|
Object.assign(contents, doc);
|
|
3825
2514
|
return contents;
|
|
3826
2515
|
}, "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
2516
|
var de_ListVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3856
2517
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3857
|
-
return
|
|
2518
|
+
return de_CommandError(output, context);
|
|
3858
2519
|
}
|
|
3859
2520
|
const contents = (0, import_smithy_client.map)({
|
|
3860
2521
|
$metadata: deserializeMetadata(output)
|
|
@@ -3867,37 +2528,9 @@ var de_ListVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3867
2528
|
Object.assign(contents, doc);
|
|
3868
2529
|
return contents;
|
|
3869
2530
|
}, "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
2531
|
var de_ListVpcEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3899
2532
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3900
|
-
return
|
|
2533
|
+
return de_CommandError(output, context);
|
|
3901
2534
|
}
|
|
3902
2535
|
const contents = (0, import_smithy_client.map)({
|
|
3903
2536
|
$metadata: deserializeMetadata(output)
|
|
@@ -3910,34 +2543,9 @@ var de_ListVpcEndpointsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3910
2543
|
Object.assign(contents, doc);
|
|
3911
2544
|
return contents;
|
|
3912
2545
|
}, "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
2546
|
var de_ListVpcEndpointsForDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3939
2547
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3940
|
-
return
|
|
2548
|
+
return de_CommandError(output, context);
|
|
3941
2549
|
}
|
|
3942
2550
|
const contents = (0, import_smithy_client.map)({
|
|
3943
2551
|
$metadata: deserializeMetadata(output)
|
|
@@ -3950,37 +2558,9 @@ var de_ListVpcEndpointsForDomainCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3950
2558
|
Object.assign(contents, doc);
|
|
3951
2559
|
return contents;
|
|
3952
2560
|
}, "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
2561
|
var de_PurchaseReservedInstanceOfferingCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3982
2562
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3983
|
-
return
|
|
2563
|
+
return de_CommandError(output, context);
|
|
3984
2564
|
}
|
|
3985
2565
|
const contents = (0, import_smithy_client.map)({
|
|
3986
2566
|
$metadata: deserializeMetadata(output)
|
|
@@ -3993,43 +2573,9 @@ var de_PurchaseReservedInstanceOfferingCommand = /* @__PURE__ */ __name(async (o
|
|
|
3993
2573
|
Object.assign(contents, doc);
|
|
3994
2574
|
return contents;
|
|
3995
2575
|
}, "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
2576
|
var de_RejectInboundConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4031
2577
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4032
|
-
return
|
|
2578
|
+
return de_CommandError(output, context);
|
|
4033
2579
|
}
|
|
4034
2580
|
const contents = (0, import_smithy_client.map)({
|
|
4035
2581
|
$metadata: deserializeMetadata(output)
|
|
@@ -4041,31 +2587,9 @@ var de_RejectInboundConnectionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
4041
2587
|
Object.assign(contents, doc);
|
|
4042
2588
|
return contents;
|
|
4043
2589
|
}, "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
2590
|
var de_RemoveTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4067
2591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4068
|
-
return
|
|
2592
|
+
return de_CommandError(output, context);
|
|
4069
2593
|
}
|
|
4070
2594
|
const contents = (0, import_smithy_client.map)({
|
|
4071
2595
|
$metadata: deserializeMetadata(output)
|
|
@@ -4073,120 +2597,33 @@ var de_RemoveTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4073
2597
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4074
2598
|
return contents;
|
|
4075
2599
|
}, "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
2600
|
var de_RevokeVpcEndpointAccessCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4102
2601
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4103
|
-
return
|
|
2602
|
+
return de_CommandError(output, context);
|
|
4104
2603
|
}
|
|
4105
2604
|
const contents = (0, import_smithy_client.map)({
|
|
4106
2605
|
$metadata: deserializeMetadata(output)
|
|
4107
2606
|
});
|
|
4108
2607
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
4109
2608
|
return contents;
|
|
4110
|
-
}, "de_RevokeVpcEndpointAccessCommand");
|
|
4111
|
-
var
|
|
4112
|
-
|
|
4113
|
-
|
|
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
|
-
});
|
|
2609
|
+
}, "de_RevokeVpcEndpointAccessCommand");
|
|
2610
|
+
var de_StartDomainMaintenanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2611
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2612
|
+
return de_CommandError(output, context);
|
|
4185
2613
|
}
|
|
4186
|
-
|
|
2614
|
+
const contents = (0, import_smithy_client.map)({
|
|
2615
|
+
$metadata: deserializeMetadata(output)
|
|
2616
|
+
});
|
|
2617
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2618
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2619
|
+
MaintenanceId: import_smithy_client.expectString
|
|
2620
|
+
});
|
|
2621
|
+
Object.assign(contents, doc);
|
|
2622
|
+
return contents;
|
|
2623
|
+
}, "de_StartDomainMaintenanceCommand");
|
|
4187
2624
|
var de_StartServiceSoftwareUpdateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4188
2625
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4189
|
-
return
|
|
2626
|
+
return de_CommandError(output, context);
|
|
4190
2627
|
}
|
|
4191
2628
|
const contents = (0, import_smithy_client.map)({
|
|
4192
2629
|
$metadata: deserializeMetadata(output)
|
|
@@ -4198,37 +2635,9 @@ var de_StartServiceSoftwareUpdateCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4198
2635
|
Object.assign(contents, doc);
|
|
4199
2636
|
return contents;
|
|
4200
2637
|
}, "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
2638
|
var de_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4230
2639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4231
|
-
return
|
|
2640
|
+
return de_CommandError(output, context);
|
|
4232
2641
|
}
|
|
4233
2642
|
const contents = (0, import_smithy_client.map)({
|
|
4234
2643
|
$metadata: deserializeMetadata(output)
|
|
@@ -4240,43 +2649,9 @@ var de_UpdateDataSourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4240
2649
|
Object.assign(contents, doc);
|
|
4241
2650
|
return contents;
|
|
4242
2651
|
}, "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
2652
|
var de_UpdateDomainConfigCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4278
2653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4279
|
-
return
|
|
2654
|
+
return de_CommandError(output, context);
|
|
4280
2655
|
}
|
|
4281
2656
|
const contents = (0, import_smithy_client.map)({
|
|
4282
2657
|
$metadata: deserializeMetadata(output)
|
|
@@ -4290,43 +2665,9 @@ var de_UpdateDomainConfigCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
4290
2665
|
Object.assign(contents, doc);
|
|
4291
2666
|
return contents;
|
|
4292
2667
|
}, "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
2668
|
var de_UpdatePackageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4328
2669
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4329
|
-
return
|
|
2670
|
+
return de_CommandError(output, context);
|
|
4330
2671
|
}
|
|
4331
2672
|
const contents = (0, import_smithy_client.map)({
|
|
4332
2673
|
$metadata: deserializeMetadata(output)
|
|
@@ -4338,43 +2679,9 @@ var de_UpdatePackageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4338
2679
|
Object.assign(contents, doc);
|
|
4339
2680
|
return contents;
|
|
4340
2681
|
}, "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
2682
|
var de_UpdateScheduledActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4376
2683
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4377
|
-
return
|
|
2684
|
+
return de_CommandError(output, context);
|
|
4378
2685
|
}
|
|
4379
2686
|
const contents = (0, import_smithy_client.map)({
|
|
4380
2687
|
$metadata: deserializeMetadata(output)
|
|
@@ -4386,46 +2693,9 @@ var de_UpdateScheduledActionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4386
2693
|
Object.assign(contents, doc);
|
|
4387
2694
|
return contents;
|
|
4388
2695
|
}, "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
2696
|
var de_UpdateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4427
2697
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4428
|
-
return
|
|
2698
|
+
return de_CommandError(output, context);
|
|
4429
2699
|
}
|
|
4430
2700
|
const contents = (0, import_smithy_client.map)({
|
|
4431
2701
|
$metadata: deserializeMetadata(output)
|
|
@@ -4437,43 +2707,9 @@ var de_UpdateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4437
2707
|
Object.assign(contents, doc);
|
|
4438
2708
|
return contents;
|
|
4439
2709
|
}, "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
2710
|
var de_UpgradeDomainCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4475
2711
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4476
|
-
return
|
|
2712
|
+
return de_CommandError(output, context);
|
|
4477
2713
|
}
|
|
4478
2714
|
const contents = (0, import_smithy_client.map)({
|
|
4479
2715
|
$metadata: deserializeMetadata(output)
|
|
@@ -4481,7 +2717,7 @@ var de_UpgradeDomainCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4481
2717
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
4482
2718
|
const doc = (0, import_smithy_client.take)(data, {
|
|
4483
2719
|
AdvancedOptions: import_smithy_client._json,
|
|
4484
|
-
ChangeProgressDetails:
|
|
2720
|
+
ChangeProgressDetails: (_) => de_ChangeProgressDetails(_, context),
|
|
4485
2721
|
DomainName: import_smithy_client.expectString,
|
|
4486
2722
|
PerformCheckOnly: import_smithy_client.expectBoolean,
|
|
4487
2723
|
TargetVersion: import_smithy_client.expectString,
|
|
@@ -4490,31 +2726,52 @@ var de_UpgradeDomainCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4490
2726
|
Object.assign(contents, doc);
|
|
4491
2727
|
return contents;
|
|
4492
2728
|
}, "de_UpgradeDomainCommand");
|
|
4493
|
-
var
|
|
2729
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4494
2730
|
const parsedOutput = {
|
|
4495
2731
|
...output,
|
|
4496
2732
|
body: await parseErrorBody(output.body, context)
|
|
4497
2733
|
};
|
|
4498
2734
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4499
2735
|
switch (errorCode) {
|
|
4500
|
-
case "BaseException":
|
|
4501
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
4502
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
4503
2736
|
case "DisabledOperationException":
|
|
4504
2737
|
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
4505
2738
|
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);
|
|
2739
|
+
case "LimitExceededException":
|
|
2740
|
+
case "com.amazonaws.opensearch#LimitExceededException":
|
|
2741
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
4512
2742
|
case "ResourceNotFoundException":
|
|
4513
2743
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
4514
2744
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2745
|
+
case "BaseException":
|
|
2746
|
+
case "com.amazonaws.opensearch#BaseException":
|
|
2747
|
+
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2748
|
+
case "DependencyFailureException":
|
|
2749
|
+
case "com.amazonaws.opensearch#DependencyFailureException":
|
|
2750
|
+
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
2751
|
+
case "InternalException":
|
|
2752
|
+
case "com.amazonaws.opensearch#InternalException":
|
|
2753
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
4515
2754
|
case "ValidationException":
|
|
4516
2755
|
case "com.amazonaws.opensearch#ValidationException":
|
|
4517
2756
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2757
|
+
case "AccessDeniedException":
|
|
2758
|
+
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
2759
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2760
|
+
case "ConflictException":
|
|
2761
|
+
case "com.amazonaws.opensearch#ConflictException":
|
|
2762
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2763
|
+
case "InvalidTypeException":
|
|
2764
|
+
case "com.amazonaws.opensearch#InvalidTypeException":
|
|
2765
|
+
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
2766
|
+
case "ResourceAlreadyExistsException":
|
|
2767
|
+
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
2768
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2769
|
+
case "InvalidPaginationTokenException":
|
|
2770
|
+
case "com.amazonaws.opensearch#InvalidPaginationTokenException":
|
|
2771
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
2772
|
+
case "SlotNotAvailableException":
|
|
2773
|
+
case "com.amazonaws.opensearch#SlotNotAvailableException":
|
|
2774
|
+
throw await de_SlotNotAvailableExceptionRes(parsedOutput, context);
|
|
4518
2775
|
default:
|
|
4519
2776
|
const parsedBody = parsedOutput.body;
|
|
4520
2777
|
return throwDefaultError({
|
|
@@ -4523,7 +2780,7 @@ var de_UpgradeDomainCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
4523
2780
|
errorCode
|
|
4524
2781
|
});
|
|
4525
2782
|
}
|
|
4526
|
-
}, "
|
|
2783
|
+
}, "de_CommandError");
|
|
4527
2784
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(OpenSearchServiceException);
|
|
4528
2785
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4529
2786
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -4803,6 +3060,16 @@ var de_AutoTuneStatus = /* @__PURE__ */ __name((output, context) => {
|
|
|
4803
3060
|
UpdateVersion: import_smithy_client.expectInt32
|
|
4804
3061
|
});
|
|
4805
3062
|
}, "de_AutoTuneStatus");
|
|
3063
|
+
var de_ChangeProgressDetails = /* @__PURE__ */ __name((output, context) => {
|
|
3064
|
+
return (0, import_smithy_client.take)(output, {
|
|
3065
|
+
ChangeId: import_smithy_client.expectString,
|
|
3066
|
+
ConfigChangeStatus: import_smithy_client.expectString,
|
|
3067
|
+
InitiatedBy: import_smithy_client.expectString,
|
|
3068
|
+
LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
3069
|
+
Message: import_smithy_client.expectString,
|
|
3070
|
+
StartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
3071
|
+
});
|
|
3072
|
+
}, "de_ChangeProgressDetails");
|
|
4806
3073
|
var de_ChangeProgressStage = /* @__PURE__ */ __name((output, context) => {
|
|
4807
3074
|
return (0, import_smithy_client.take)(output, {
|
|
4808
3075
|
Description: import_smithy_client.expectString,
|
|
@@ -4822,6 +3089,9 @@ var de_ChangeProgressStatusDetails = /* @__PURE__ */ __name((output, context) =>
|
|
|
4822
3089
|
ChangeId: import_smithy_client.expectString,
|
|
4823
3090
|
ChangeProgressStages: (_) => de_ChangeProgressStageList(_, context),
|
|
4824
3091
|
CompletedProperties: import_smithy_client._json,
|
|
3092
|
+
ConfigChangeStatus: import_smithy_client.expectString,
|
|
3093
|
+
InitiatedBy: import_smithy_client.expectString,
|
|
3094
|
+
LastUpdatedTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
4825
3095
|
PendingProperties: import_smithy_client._json,
|
|
4826
3096
|
StartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
4827
3097
|
Status: import_smithy_client.expectString,
|
|
@@ -4846,7 +3116,7 @@ var de_DomainConfig = /* @__PURE__ */ __name((output, context) => {
|
|
|
4846
3116
|
AdvancedOptions: (_) => de_AdvancedOptionsStatus(_, context),
|
|
4847
3117
|
AdvancedSecurityOptions: (_) => de_AdvancedSecurityOptionsStatus(_, context),
|
|
4848
3118
|
AutoTuneOptions: (_) => de_AutoTuneOptionsStatus(_, context),
|
|
4849
|
-
ChangeProgressDetails:
|
|
3119
|
+
ChangeProgressDetails: (_) => de_ChangeProgressDetails(_, context),
|
|
4850
3120
|
ClusterConfig: (_) => de_ClusterConfigStatus(_, context),
|
|
4851
3121
|
CognitoOptions: (_) => de_CognitoOptionsStatus(_, context),
|
|
4852
3122
|
DomainEndpointOptions: (_) => de_DomainEndpointOptionsStatus(_, context),
|
|
@@ -4855,6 +3125,7 @@ var de_DomainConfig = /* @__PURE__ */ __name((output, context) => {
|
|
|
4855
3125
|
EngineVersion: (_) => de_VersionStatus(_, context),
|
|
4856
3126
|
IPAddressType: (_) => de_IPAddressTypeStatus(_, context),
|
|
4857
3127
|
LogPublishingOptions: (_) => de_LogPublishingOptionsStatus(_, context),
|
|
3128
|
+
ModifyingProperties: import_smithy_client._json,
|
|
4858
3129
|
NodeToNodeEncryptionOptions: (_) => de_NodeToNodeEncryptionOptionsStatus(_, context),
|
|
4859
3130
|
OffPeakWindowOptions: (_) => de_OffPeakWindowOptionsStatus(_, context),
|
|
4860
3131
|
SnapshotOptions: (_) => de_SnapshotOptionsStatus(_, context),
|
|
@@ -4912,7 +3183,7 @@ var de_DomainStatus = /* @__PURE__ */ __name((output, context) => {
|
|
|
4912
3183
|
AdvancedOptions: import_smithy_client._json,
|
|
4913
3184
|
AdvancedSecurityOptions: (_) => de_AdvancedSecurityOptions(_, context),
|
|
4914
3185
|
AutoTuneOptions: import_smithy_client._json,
|
|
4915
|
-
ChangeProgressDetails:
|
|
3186
|
+
ChangeProgressDetails: (_) => de_ChangeProgressDetails(_, context),
|
|
4916
3187
|
ClusterConfig: import_smithy_client._json,
|
|
4917
3188
|
CognitoOptions: import_smithy_client._json,
|
|
4918
3189
|
Created: import_smithy_client.expectBoolean,
|
|
@@ -4920,6 +3191,7 @@ var de_DomainStatus = /* @__PURE__ */ __name((output, context) => {
|
|
|
4920
3191
|
DomainEndpointOptions: import_smithy_client._json,
|
|
4921
3192
|
DomainId: import_smithy_client.expectString,
|
|
4922
3193
|
DomainName: import_smithy_client.expectString,
|
|
3194
|
+
DomainProcessingStatus: import_smithy_client.expectString,
|
|
4923
3195
|
EBSOptions: import_smithy_client._json,
|
|
4924
3196
|
EncryptionAtRestOptions: import_smithy_client._json,
|
|
4925
3197
|
Endpoint: import_smithy_client.expectString,
|
|
@@ -4928,6 +3200,7 @@ var de_DomainStatus = /* @__PURE__ */ __name((output, context) => {
|
|
|
4928
3200
|
EngineVersion: import_smithy_client.expectString,
|
|
4929
3201
|
IPAddressType: import_smithy_client.expectString,
|
|
4930
3202
|
LogPublishingOptions: import_smithy_client._json,
|
|
3203
|
+
ModifyingProperties: import_smithy_client._json,
|
|
4931
3204
|
NodeToNodeEncryptionOptions: import_smithy_client._json,
|
|
4932
3205
|
OffPeakWindowOptions: import_smithy_client._json,
|
|
4933
3206
|
Processing: import_smithy_client.expectBoolean,
|
|
@@ -5309,6 +3582,23 @@ var _AuthorizeVpcEndpointAccessCommand = class _AuthorizeVpcEndpointAccessComman
|
|
|
5309
3582
|
__name(_AuthorizeVpcEndpointAccessCommand, "AuthorizeVpcEndpointAccessCommand");
|
|
5310
3583
|
var AuthorizeVpcEndpointAccessCommand = _AuthorizeVpcEndpointAccessCommand;
|
|
5311
3584
|
|
|
3585
|
+
// src/commands/CancelDomainConfigChangeCommand.ts
|
|
3586
|
+
|
|
3587
|
+
|
|
3588
|
+
|
|
3589
|
+
|
|
3590
|
+
var _CancelDomainConfigChangeCommand = class _CancelDomainConfigChangeCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3591
|
+
...commonParams
|
|
3592
|
+
}).m(function(Command, cs, config, o) {
|
|
3593
|
+
return [
|
|
3594
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3595
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3596
|
+
];
|
|
3597
|
+
}).s("AmazonOpenSearchService", "CancelDomainConfigChange", {}).n("OpenSearchClient", "CancelDomainConfigChangeCommand").f(void 0, void 0).ser(se_CancelDomainConfigChangeCommand).de(de_CancelDomainConfigChangeCommand).build() {
|
|
3598
|
+
};
|
|
3599
|
+
__name(_CancelDomainConfigChangeCommand, "CancelDomainConfigChangeCommand");
|
|
3600
|
+
var CancelDomainConfigChangeCommand = _CancelDomainConfigChangeCommand;
|
|
3601
|
+
|
|
5312
3602
|
// src/commands/CancelServiceSoftwareUpdateCommand.ts
|
|
5313
3603
|
|
|
5314
3604
|
|
|
@@ -6285,6 +4575,7 @@ var commands = {
|
|
|
6285
4575
|
AddTagsCommand,
|
|
6286
4576
|
AssociatePackageCommand,
|
|
6287
4577
|
AuthorizeVpcEndpointAccessCommand,
|
|
4578
|
+
CancelDomainConfigChangeCommand,
|
|
6288
4579
|
CancelServiceSoftwareUpdateCommand,
|
|
6289
4580
|
CreateDomainCommand,
|
|
6290
4581
|
CreateOutboundConnectionCommand,
|
|
@@ -6420,6 +4711,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
6420
4711
|
AddTagsCommand,
|
|
6421
4712
|
AssociatePackageCommand,
|
|
6422
4713
|
AuthorizeVpcEndpointAccessCommand,
|
|
4714
|
+
CancelDomainConfigChangeCommand,
|
|
6423
4715
|
CancelServiceSoftwareUpdateCommand,
|
|
6424
4716
|
CreateDomainCommand,
|
|
6425
4717
|
CreateOutboundConnectionCommand,
|
|
@@ -6520,6 +4812,10 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
6520
4812
|
IPAddressType,
|
|
6521
4813
|
LogType,
|
|
6522
4814
|
AutoTuneState,
|
|
4815
|
+
ConfigChangeStatus,
|
|
4816
|
+
InitiatedBy,
|
|
4817
|
+
DomainProcessingStatusType,
|
|
4818
|
+
PropertyValueType,
|
|
6523
4819
|
InvalidTypeException,
|
|
6524
4820
|
ResourceAlreadyExistsException,
|
|
6525
4821
|
SkipUnavailableStatus,
|