@aws-sdk/client-drs 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +90 -1636
- package/dist-es/protocols/Aws_restJson1.js +111 -1657
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1795,7 +1795,7 @@ var se_UpdateReplicationConfigurationTemplateCommand = /* @__PURE__ */ __name(as
|
|
|
1795
1795
|
}, "se_UpdateReplicationConfigurationTemplateCommand");
|
|
1796
1796
|
var de_AssociateSourceNetworkStackCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1797
1797
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1798
|
-
return
|
|
1798
|
+
return de_CommandError(output, context);
|
|
1799
1799
|
}
|
|
1800
1800
|
const contents = (0, import_smithy_client.map)({
|
|
1801
1801
|
$metadata: deserializeMetadata(output)
|
|
@@ -1807,46 +1807,9 @@ var de_AssociateSourceNetworkStackCommand = /* @__PURE__ */ __name(async (output
|
|
|
1807
1807
|
Object.assign(contents, doc);
|
|
1808
1808
|
return contents;
|
|
1809
1809
|
}, "de_AssociateSourceNetworkStackCommand");
|
|
1810
|
-
var de_AssociateSourceNetworkStackCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1811
|
-
const parsedOutput = {
|
|
1812
|
-
...output,
|
|
1813
|
-
body: await parseErrorBody(output.body, context)
|
|
1814
|
-
};
|
|
1815
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1816
|
-
switch (errorCode) {
|
|
1817
|
-
case "ConflictException":
|
|
1818
|
-
case "com.amazonaws.drs#ConflictException":
|
|
1819
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "InternalServerException":
|
|
1821
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1822
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1823
|
-
case "ResourceNotFoundException":
|
|
1824
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1825
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1826
|
-
case "ServiceQuotaExceededException":
|
|
1827
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
1828
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1829
|
-
case "ThrottlingException":
|
|
1830
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1831
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1832
|
-
case "UninitializedAccountException":
|
|
1833
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1834
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1835
|
-
case "ValidationException":
|
|
1836
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1837
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1838
|
-
default:
|
|
1839
|
-
const parsedBody = parsedOutput.body;
|
|
1840
|
-
return throwDefaultError({
|
|
1841
|
-
output,
|
|
1842
|
-
parsedBody,
|
|
1843
|
-
errorCode
|
|
1844
|
-
});
|
|
1845
|
-
}
|
|
1846
|
-
}, "de_AssociateSourceNetworkStackCommandError");
|
|
1847
1810
|
var de_CreateExtendedSourceServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1848
1811
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1849
|
-
return
|
|
1812
|
+
return de_CommandError(output, context);
|
|
1850
1813
|
}
|
|
1851
1814
|
const contents = (0, import_smithy_client.map)({
|
|
1852
1815
|
$metadata: deserializeMetadata(output)
|
|
@@ -1858,46 +1821,9 @@ var de_CreateExtendedSourceServerCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1858
1821
|
Object.assign(contents, doc);
|
|
1859
1822
|
return contents;
|
|
1860
1823
|
}, "de_CreateExtendedSourceServerCommand");
|
|
1861
|
-
var de_CreateExtendedSourceServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1862
|
-
const parsedOutput = {
|
|
1863
|
-
...output,
|
|
1864
|
-
body: await parseErrorBody(output.body, context)
|
|
1865
|
-
};
|
|
1866
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1867
|
-
switch (errorCode) {
|
|
1868
|
-
case "AccessDeniedException":
|
|
1869
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
1870
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1871
|
-
case "InternalServerException":
|
|
1872
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1873
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1874
|
-
case "ResourceNotFoundException":
|
|
1875
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
1876
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1877
|
-
case "ServiceQuotaExceededException":
|
|
1878
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
1879
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1880
|
-
case "ThrottlingException":
|
|
1881
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1882
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1883
|
-
case "UninitializedAccountException":
|
|
1884
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1885
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1886
|
-
case "ValidationException":
|
|
1887
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1888
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1889
|
-
default:
|
|
1890
|
-
const parsedBody = parsedOutput.body;
|
|
1891
|
-
return throwDefaultError({
|
|
1892
|
-
output,
|
|
1893
|
-
parsedBody,
|
|
1894
|
-
errorCode
|
|
1895
|
-
});
|
|
1896
|
-
}
|
|
1897
|
-
}, "de_CreateExtendedSourceServerCommandError");
|
|
1898
1824
|
var de_CreateLaunchConfigurationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1899
1825
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1900
|
-
return
|
|
1826
|
+
return de_CommandError(output, context);
|
|
1901
1827
|
}
|
|
1902
1828
|
const contents = (0, import_smithy_client.map)({
|
|
1903
1829
|
$metadata: deserializeMetadata(output)
|
|
@@ -1909,43 +1835,9 @@ var de_CreateLaunchConfigurationTemplateCommand = /* @__PURE__ */ __name(async (
|
|
|
1909
1835
|
Object.assign(contents, doc);
|
|
1910
1836
|
return contents;
|
|
1911
1837
|
}, "de_CreateLaunchConfigurationTemplateCommand");
|
|
1912
|
-
var de_CreateLaunchConfigurationTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1913
|
-
const parsedOutput = {
|
|
1914
|
-
...output,
|
|
1915
|
-
body: await parseErrorBody(output.body, context)
|
|
1916
|
-
};
|
|
1917
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1918
|
-
switch (errorCode) {
|
|
1919
|
-
case "AccessDeniedException":
|
|
1920
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
1921
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1922
|
-
case "InternalServerException":
|
|
1923
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1924
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1925
|
-
case "ServiceQuotaExceededException":
|
|
1926
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
1927
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1928
|
-
case "ThrottlingException":
|
|
1929
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1930
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1931
|
-
case "UninitializedAccountException":
|
|
1932
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1933
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1934
|
-
case "ValidationException":
|
|
1935
|
-
case "com.amazonaws.drs#ValidationException":
|
|
1936
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1937
|
-
default:
|
|
1938
|
-
const parsedBody = parsedOutput.body;
|
|
1939
|
-
return throwDefaultError({
|
|
1940
|
-
output,
|
|
1941
|
-
parsedBody,
|
|
1942
|
-
errorCode
|
|
1943
|
-
});
|
|
1944
|
-
}
|
|
1945
|
-
}, "de_CreateLaunchConfigurationTemplateCommandError");
|
|
1946
1838
|
var de_CreateReplicationConfigurationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1947
1839
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1948
|
-
return
|
|
1840
|
+
return de_CommandError(output, context);
|
|
1949
1841
|
}
|
|
1950
1842
|
const contents = (0, import_smithy_client.map)({
|
|
1951
1843
|
$metadata: deserializeMetadata(output)
|
|
@@ -1973,43 +1865,9 @@ var de_CreateReplicationConfigurationTemplateCommand = /* @__PURE__ */ __name(as
|
|
|
1973
1865
|
Object.assign(contents, doc);
|
|
1974
1866
|
return contents;
|
|
1975
1867
|
}, "de_CreateReplicationConfigurationTemplateCommand");
|
|
1976
|
-
var de_CreateReplicationConfigurationTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1977
|
-
const parsedOutput = {
|
|
1978
|
-
...output,
|
|
1979
|
-
body: await parseErrorBody(output.body, context)
|
|
1980
|
-
};
|
|
1981
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
|
-
switch (errorCode) {
|
|
1983
|
-
case "AccessDeniedException":
|
|
1984
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
1985
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1986
|
-
case "InternalServerException":
|
|
1987
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
1988
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1989
|
-
case "ServiceQuotaExceededException":
|
|
1990
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
1991
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "ThrottlingException":
|
|
1993
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
1994
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1995
|
-
case "UninitializedAccountException":
|
|
1996
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
1997
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1998
|
-
case "ValidationException":
|
|
1999
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2000
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2001
|
-
default:
|
|
2002
|
-
const parsedBody = parsedOutput.body;
|
|
2003
|
-
return throwDefaultError({
|
|
2004
|
-
output,
|
|
2005
|
-
parsedBody,
|
|
2006
|
-
errorCode
|
|
2007
|
-
});
|
|
2008
|
-
}
|
|
2009
|
-
}, "de_CreateReplicationConfigurationTemplateCommandError");
|
|
2010
1868
|
var de_CreateSourceNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2011
1869
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2012
|
-
return
|
|
1870
|
+
return de_CommandError(output, context);
|
|
2013
1871
|
}
|
|
2014
1872
|
const contents = (0, import_smithy_client.map)({
|
|
2015
1873
|
$metadata: deserializeMetadata(output)
|
|
@@ -2021,46 +1879,9 @@ var de_CreateSourceNetworkCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2021
1879
|
Object.assign(contents, doc);
|
|
2022
1880
|
return contents;
|
|
2023
1881
|
}, "de_CreateSourceNetworkCommand");
|
|
2024
|
-
var de_CreateSourceNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2025
|
-
const parsedOutput = {
|
|
2026
|
-
...output,
|
|
2027
|
-
body: await parseErrorBody(output.body, context)
|
|
2028
|
-
};
|
|
2029
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2030
|
-
switch (errorCode) {
|
|
2031
|
-
case "ConflictException":
|
|
2032
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2033
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2034
|
-
case "InternalServerException":
|
|
2035
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2036
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2037
|
-
case "ResourceNotFoundException":
|
|
2038
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2039
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2040
|
-
case "ServiceQuotaExceededException":
|
|
2041
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2042
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2043
|
-
case "ThrottlingException":
|
|
2044
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2045
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2046
|
-
case "UninitializedAccountException":
|
|
2047
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2048
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2049
|
-
case "ValidationException":
|
|
2050
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2051
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2052
|
-
default:
|
|
2053
|
-
const parsedBody = parsedOutput.body;
|
|
2054
|
-
return throwDefaultError({
|
|
2055
|
-
output,
|
|
2056
|
-
parsedBody,
|
|
2057
|
-
errorCode
|
|
2058
|
-
});
|
|
2059
|
-
}
|
|
2060
|
-
}, "de_CreateSourceNetworkCommandError");
|
|
2061
1882
|
var de_DeleteJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2062
1883
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2063
|
-
return
|
|
1884
|
+
return de_CommandError(output, context);
|
|
2064
1885
|
}
|
|
2065
1886
|
const contents = (0, import_smithy_client.map)({
|
|
2066
1887
|
$metadata: deserializeMetadata(output)
|
|
@@ -2068,40 +1889,9 @@ var de_DeleteJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2068
1889
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2069
1890
|
return contents;
|
|
2070
1891
|
}, "de_DeleteJobCommand");
|
|
2071
|
-
var de_DeleteJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2072
|
-
const parsedOutput = {
|
|
2073
|
-
...output,
|
|
2074
|
-
body: await parseErrorBody(output.body, context)
|
|
2075
|
-
};
|
|
2076
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2077
|
-
switch (errorCode) {
|
|
2078
|
-
case "ConflictException":
|
|
2079
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2080
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2081
|
-
case "InternalServerException":
|
|
2082
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2083
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2084
|
-
case "ResourceNotFoundException":
|
|
2085
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2086
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2087
|
-
case "ThrottlingException":
|
|
2088
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2089
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "UninitializedAccountException":
|
|
2091
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2092
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2093
|
-
default:
|
|
2094
|
-
const parsedBody = parsedOutput.body;
|
|
2095
|
-
return throwDefaultError({
|
|
2096
|
-
output,
|
|
2097
|
-
parsedBody,
|
|
2098
|
-
errorCode
|
|
2099
|
-
});
|
|
2100
|
-
}
|
|
2101
|
-
}, "de_DeleteJobCommandError");
|
|
2102
1892
|
var de_DeleteLaunchActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2103
1893
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2104
|
-
return
|
|
1894
|
+
return de_CommandError(output, context);
|
|
2105
1895
|
}
|
|
2106
1896
|
const contents = (0, import_smithy_client.map)({
|
|
2107
1897
|
$metadata: deserializeMetadata(output)
|
|
@@ -2109,40 +1899,9 @@ var de_DeleteLaunchActionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2109
1899
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2110
1900
|
return contents;
|
|
2111
1901
|
}, "de_DeleteLaunchActionCommand");
|
|
2112
|
-
var de_DeleteLaunchActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2113
|
-
const parsedOutput = {
|
|
2114
|
-
...output,
|
|
2115
|
-
body: await parseErrorBody(output.body, context)
|
|
2116
|
-
};
|
|
2117
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2118
|
-
switch (errorCode) {
|
|
2119
|
-
case "InternalServerException":
|
|
2120
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2121
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2122
|
-
case "ResourceNotFoundException":
|
|
2123
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2124
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2125
|
-
case "ThrottlingException":
|
|
2126
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2127
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2128
|
-
case "UninitializedAccountException":
|
|
2129
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2130
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2131
|
-
case "ValidationException":
|
|
2132
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2133
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2134
|
-
default:
|
|
2135
|
-
const parsedBody = parsedOutput.body;
|
|
2136
|
-
return throwDefaultError({
|
|
2137
|
-
output,
|
|
2138
|
-
parsedBody,
|
|
2139
|
-
errorCode
|
|
2140
|
-
});
|
|
2141
|
-
}
|
|
2142
|
-
}, "de_DeleteLaunchActionCommandError");
|
|
2143
1902
|
var de_DeleteLaunchConfigurationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2144
1903
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2145
|
-
return
|
|
1904
|
+
return de_CommandError(output, context);
|
|
2146
1905
|
}
|
|
2147
1906
|
const contents = (0, import_smithy_client.map)({
|
|
2148
1907
|
$metadata: deserializeMetadata(output)
|
|
@@ -2150,40 +1909,9 @@ var de_DeleteLaunchConfigurationTemplateCommand = /* @__PURE__ */ __name(async (
|
|
|
2150
1909
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2151
1910
|
return contents;
|
|
2152
1911
|
}, "de_DeleteLaunchConfigurationTemplateCommand");
|
|
2153
|
-
var de_DeleteLaunchConfigurationTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2154
|
-
const parsedOutput = {
|
|
2155
|
-
...output,
|
|
2156
|
-
body: await parseErrorBody(output.body, context)
|
|
2157
|
-
};
|
|
2158
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2159
|
-
switch (errorCode) {
|
|
2160
|
-
case "ConflictException":
|
|
2161
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2162
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2163
|
-
case "InternalServerException":
|
|
2164
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2165
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2166
|
-
case "ResourceNotFoundException":
|
|
2167
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2168
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2169
|
-
case "ThrottlingException":
|
|
2170
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2171
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2172
|
-
case "UninitializedAccountException":
|
|
2173
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2174
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2175
|
-
default:
|
|
2176
|
-
const parsedBody = parsedOutput.body;
|
|
2177
|
-
return throwDefaultError({
|
|
2178
|
-
output,
|
|
2179
|
-
parsedBody,
|
|
2180
|
-
errorCode
|
|
2181
|
-
});
|
|
2182
|
-
}
|
|
2183
|
-
}, "de_DeleteLaunchConfigurationTemplateCommandError");
|
|
2184
1912
|
var de_DeleteRecoveryInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2185
1913
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2186
|
-
return
|
|
1914
|
+
return de_CommandError(output, context);
|
|
2187
1915
|
}
|
|
2188
1916
|
const contents = (0, import_smithy_client.map)({
|
|
2189
1917
|
$metadata: deserializeMetadata(output)
|
|
@@ -2191,40 +1919,9 @@ var de_DeleteRecoveryInstanceCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2191
1919
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2192
1920
|
return contents;
|
|
2193
1921
|
}, "de_DeleteRecoveryInstanceCommand");
|
|
2194
|
-
var de_DeleteRecoveryInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2195
|
-
const parsedOutput = {
|
|
2196
|
-
...output,
|
|
2197
|
-
body: await parseErrorBody(output.body, context)
|
|
2198
|
-
};
|
|
2199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2200
|
-
switch (errorCode) {
|
|
2201
|
-
case "AccessDeniedException":
|
|
2202
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2203
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2204
|
-
case "ConflictException":
|
|
2205
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2206
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2207
|
-
case "InternalServerException":
|
|
2208
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2209
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2210
|
-
case "ThrottlingException":
|
|
2211
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2212
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2213
|
-
case "UninitializedAccountException":
|
|
2214
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2215
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2216
|
-
default:
|
|
2217
|
-
const parsedBody = parsedOutput.body;
|
|
2218
|
-
return throwDefaultError({
|
|
2219
|
-
output,
|
|
2220
|
-
parsedBody,
|
|
2221
|
-
errorCode
|
|
2222
|
-
});
|
|
2223
|
-
}
|
|
2224
|
-
}, "de_DeleteRecoveryInstanceCommandError");
|
|
2225
1922
|
var de_DeleteReplicationConfigurationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2226
1923
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2227
|
-
return
|
|
1924
|
+
return de_CommandError(output, context);
|
|
2228
1925
|
}
|
|
2229
1926
|
const contents = (0, import_smithy_client.map)({
|
|
2230
1927
|
$metadata: deserializeMetadata(output)
|
|
@@ -2232,40 +1929,9 @@ var de_DeleteReplicationConfigurationTemplateCommand = /* @__PURE__ */ __name(as
|
|
|
2232
1929
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2233
1930
|
return contents;
|
|
2234
1931
|
}, "de_DeleteReplicationConfigurationTemplateCommand");
|
|
2235
|
-
var de_DeleteReplicationConfigurationTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2236
|
-
const parsedOutput = {
|
|
2237
|
-
...output,
|
|
2238
|
-
body: await parseErrorBody(output.body, context)
|
|
2239
|
-
};
|
|
2240
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2241
|
-
switch (errorCode) {
|
|
2242
|
-
case "ConflictException":
|
|
2243
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2244
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2245
|
-
case "InternalServerException":
|
|
2246
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2247
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "ResourceNotFoundException":
|
|
2249
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2250
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2251
|
-
case "ThrottlingException":
|
|
2252
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2253
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2254
|
-
case "UninitializedAccountException":
|
|
2255
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2256
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2257
|
-
default:
|
|
2258
|
-
const parsedBody = parsedOutput.body;
|
|
2259
|
-
return throwDefaultError({
|
|
2260
|
-
output,
|
|
2261
|
-
parsedBody,
|
|
2262
|
-
errorCode
|
|
2263
|
-
});
|
|
2264
|
-
}
|
|
2265
|
-
}, "de_DeleteReplicationConfigurationTemplateCommandError");
|
|
2266
1932
|
var de_DeleteSourceNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2267
1933
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2268
|
-
return
|
|
1934
|
+
return de_CommandError(output, context);
|
|
2269
1935
|
}
|
|
2270
1936
|
const contents = (0, import_smithy_client.map)({
|
|
2271
1937
|
$metadata: deserializeMetadata(output)
|
|
@@ -2273,40 +1939,9 @@ var de_DeleteSourceNetworkCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2273
1939
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2274
1940
|
return contents;
|
|
2275
1941
|
}, "de_DeleteSourceNetworkCommand");
|
|
2276
|
-
var de_DeleteSourceNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2277
|
-
const parsedOutput = {
|
|
2278
|
-
...output,
|
|
2279
|
-
body: await parseErrorBody(output.body, context)
|
|
2280
|
-
};
|
|
2281
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2282
|
-
switch (errorCode) {
|
|
2283
|
-
case "ConflictException":
|
|
2284
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2285
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2286
|
-
case "InternalServerException":
|
|
2287
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2288
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2289
|
-
case "ResourceNotFoundException":
|
|
2290
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2291
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2292
|
-
case "ThrottlingException":
|
|
2293
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2294
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2295
|
-
case "UninitializedAccountException":
|
|
2296
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2297
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2298
|
-
default:
|
|
2299
|
-
const parsedBody = parsedOutput.body;
|
|
2300
|
-
return throwDefaultError({
|
|
2301
|
-
output,
|
|
2302
|
-
parsedBody,
|
|
2303
|
-
errorCode
|
|
2304
|
-
});
|
|
2305
|
-
}
|
|
2306
|
-
}, "de_DeleteSourceNetworkCommandError");
|
|
2307
1942
|
var de_DeleteSourceServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2308
1943
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2309
|
-
return
|
|
1944
|
+
return de_CommandError(output, context);
|
|
2310
1945
|
}
|
|
2311
1946
|
const contents = (0, import_smithy_client.map)({
|
|
2312
1947
|
$metadata: deserializeMetadata(output)
|
|
@@ -2314,40 +1949,9 @@ var de_DeleteSourceServerCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2314
1949
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2315
1950
|
return contents;
|
|
2316
1951
|
}, "de_DeleteSourceServerCommand");
|
|
2317
|
-
var de_DeleteSourceServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2318
|
-
const parsedOutput = {
|
|
2319
|
-
...output,
|
|
2320
|
-
body: await parseErrorBody(output.body, context)
|
|
2321
|
-
};
|
|
2322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2323
|
-
switch (errorCode) {
|
|
2324
|
-
case "ConflictException":
|
|
2325
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2326
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2327
|
-
case "InternalServerException":
|
|
2328
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2329
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2330
|
-
case "ResourceNotFoundException":
|
|
2331
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2332
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2333
|
-
case "ThrottlingException":
|
|
2334
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2335
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2336
|
-
case "UninitializedAccountException":
|
|
2337
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2338
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2339
|
-
default:
|
|
2340
|
-
const parsedBody = parsedOutput.body;
|
|
2341
|
-
return throwDefaultError({
|
|
2342
|
-
output,
|
|
2343
|
-
parsedBody,
|
|
2344
|
-
errorCode
|
|
2345
|
-
});
|
|
2346
|
-
}
|
|
2347
|
-
}, "de_DeleteSourceServerCommandError");
|
|
2348
1952
|
var de_DescribeJobLogItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2349
1953
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2350
|
-
return
|
|
1954
|
+
return de_CommandError(output, context);
|
|
2351
1955
|
}
|
|
2352
1956
|
const contents = (0, import_smithy_client.map)({
|
|
2353
1957
|
$metadata: deserializeMetadata(output)
|
|
@@ -2360,37 +1964,9 @@ var de_DescribeJobLogItemsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2360
1964
|
Object.assign(contents, doc);
|
|
2361
1965
|
return contents;
|
|
2362
1966
|
}, "de_DescribeJobLogItemsCommand");
|
|
2363
|
-
var de_DescribeJobLogItemsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2364
|
-
const parsedOutput = {
|
|
2365
|
-
...output,
|
|
2366
|
-
body: await parseErrorBody(output.body, context)
|
|
2367
|
-
};
|
|
2368
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2369
|
-
switch (errorCode) {
|
|
2370
|
-
case "InternalServerException":
|
|
2371
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2372
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2373
|
-
case "ThrottlingException":
|
|
2374
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2375
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2376
|
-
case "UninitializedAccountException":
|
|
2377
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2378
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "ValidationException":
|
|
2380
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2381
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2382
|
-
default:
|
|
2383
|
-
const parsedBody = parsedOutput.body;
|
|
2384
|
-
return throwDefaultError({
|
|
2385
|
-
output,
|
|
2386
|
-
parsedBody,
|
|
2387
|
-
errorCode
|
|
2388
|
-
});
|
|
2389
|
-
}
|
|
2390
|
-
}, "de_DescribeJobLogItemsCommandError");
|
|
2391
1967
|
var de_DescribeJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2392
1968
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2393
|
-
return
|
|
1969
|
+
return de_CommandError(output, context);
|
|
2394
1970
|
}
|
|
2395
1971
|
const contents = (0, import_smithy_client.map)({
|
|
2396
1972
|
$metadata: deserializeMetadata(output)
|
|
@@ -2403,37 +1979,9 @@ var de_DescribeJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2403
1979
|
Object.assign(contents, doc);
|
|
2404
1980
|
return contents;
|
|
2405
1981
|
}, "de_DescribeJobsCommand");
|
|
2406
|
-
var de_DescribeJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2407
|
-
const parsedOutput = {
|
|
2408
|
-
...output,
|
|
2409
|
-
body: await parseErrorBody(output.body, context)
|
|
2410
|
-
};
|
|
2411
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2412
|
-
switch (errorCode) {
|
|
2413
|
-
case "InternalServerException":
|
|
2414
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2415
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2416
|
-
case "ThrottlingException":
|
|
2417
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2418
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2419
|
-
case "UninitializedAccountException":
|
|
2420
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2421
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2422
|
-
case "ValidationException":
|
|
2423
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2424
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2425
|
-
default:
|
|
2426
|
-
const parsedBody = parsedOutput.body;
|
|
2427
|
-
return throwDefaultError({
|
|
2428
|
-
output,
|
|
2429
|
-
parsedBody,
|
|
2430
|
-
errorCode
|
|
2431
|
-
});
|
|
2432
|
-
}
|
|
2433
|
-
}, "de_DescribeJobsCommandError");
|
|
2434
1982
|
var de_DescribeLaunchConfigurationTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2435
1983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2436
|
-
return
|
|
1984
|
+
return de_CommandError(output, context);
|
|
2437
1985
|
}
|
|
2438
1986
|
const contents = (0, import_smithy_client.map)({
|
|
2439
1987
|
$metadata: deserializeMetadata(output)
|
|
@@ -2446,40 +1994,9 @@ var de_DescribeLaunchConfigurationTemplatesCommand = /* @__PURE__ */ __name(asyn
|
|
|
2446
1994
|
Object.assign(contents, doc);
|
|
2447
1995
|
return contents;
|
|
2448
1996
|
}, "de_DescribeLaunchConfigurationTemplatesCommand");
|
|
2449
|
-
var de_DescribeLaunchConfigurationTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2450
|
-
const parsedOutput = {
|
|
2451
|
-
...output,
|
|
2452
|
-
body: await parseErrorBody(output.body, context)
|
|
2453
|
-
};
|
|
2454
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2455
|
-
switch (errorCode) {
|
|
2456
|
-
case "InternalServerException":
|
|
2457
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2458
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2459
|
-
case "ResourceNotFoundException":
|
|
2460
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2461
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2462
|
-
case "ThrottlingException":
|
|
2463
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2464
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2465
|
-
case "UninitializedAccountException":
|
|
2466
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2467
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2468
|
-
case "ValidationException":
|
|
2469
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2470
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2471
|
-
default:
|
|
2472
|
-
const parsedBody = parsedOutput.body;
|
|
2473
|
-
return throwDefaultError({
|
|
2474
|
-
output,
|
|
2475
|
-
parsedBody,
|
|
2476
|
-
errorCode
|
|
2477
|
-
});
|
|
2478
|
-
}
|
|
2479
|
-
}, "de_DescribeLaunchConfigurationTemplatesCommandError");
|
|
2480
1997
|
var de_DescribeRecoveryInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2481
1998
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2482
|
-
return
|
|
1999
|
+
return de_CommandError(output, context);
|
|
2483
2000
|
}
|
|
2484
2001
|
const contents = (0, import_smithy_client.map)({
|
|
2485
2002
|
$metadata: deserializeMetadata(output)
|
|
@@ -2492,37 +2009,9 @@ var de_DescribeRecoveryInstancesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2492
2009
|
Object.assign(contents, doc);
|
|
2493
2010
|
return contents;
|
|
2494
2011
|
}, "de_DescribeRecoveryInstancesCommand");
|
|
2495
|
-
var de_DescribeRecoveryInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2496
|
-
const parsedOutput = {
|
|
2497
|
-
...output,
|
|
2498
|
-
body: await parseErrorBody(output.body, context)
|
|
2499
|
-
};
|
|
2500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2501
|
-
switch (errorCode) {
|
|
2502
|
-
case "AccessDeniedException":
|
|
2503
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2504
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2505
|
-
case "InternalServerException":
|
|
2506
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2507
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2508
|
-
case "ThrottlingException":
|
|
2509
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2510
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2511
|
-
case "UninitializedAccountException":
|
|
2512
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2513
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2514
|
-
default:
|
|
2515
|
-
const parsedBody = parsedOutput.body;
|
|
2516
|
-
return throwDefaultError({
|
|
2517
|
-
output,
|
|
2518
|
-
parsedBody,
|
|
2519
|
-
errorCode
|
|
2520
|
-
});
|
|
2521
|
-
}
|
|
2522
|
-
}, "de_DescribeRecoveryInstancesCommandError");
|
|
2523
2012
|
var de_DescribeRecoverySnapshotsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2524
2013
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2525
|
-
return
|
|
2014
|
+
return de_CommandError(output, context);
|
|
2526
2015
|
}
|
|
2527
2016
|
const contents = (0, import_smithy_client.map)({
|
|
2528
2017
|
$metadata: deserializeMetadata(output)
|
|
@@ -2535,40 +2024,9 @@ var de_DescribeRecoverySnapshotsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2535
2024
|
Object.assign(contents, doc);
|
|
2536
2025
|
return contents;
|
|
2537
2026
|
}, "de_DescribeRecoverySnapshotsCommand");
|
|
2538
|
-
var de_DescribeRecoverySnapshotsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2539
|
-
const parsedOutput = {
|
|
2540
|
-
...output,
|
|
2541
|
-
body: await parseErrorBody(output.body, context)
|
|
2542
|
-
};
|
|
2543
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2544
|
-
switch (errorCode) {
|
|
2545
|
-
case "AccessDeniedException":
|
|
2546
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2547
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2548
|
-
case "InternalServerException":
|
|
2549
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2550
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2551
|
-
case "ThrottlingException":
|
|
2552
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2553
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2554
|
-
case "UninitializedAccountException":
|
|
2555
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2556
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2557
|
-
case "ValidationException":
|
|
2558
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2559
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2560
|
-
default:
|
|
2561
|
-
const parsedBody = parsedOutput.body;
|
|
2562
|
-
return throwDefaultError({
|
|
2563
|
-
output,
|
|
2564
|
-
parsedBody,
|
|
2565
|
-
errorCode
|
|
2566
|
-
});
|
|
2567
|
-
}
|
|
2568
|
-
}, "de_DescribeRecoverySnapshotsCommandError");
|
|
2569
2027
|
var de_DescribeReplicationConfigurationTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2570
2028
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2571
|
-
return
|
|
2029
|
+
return de_CommandError(output, context);
|
|
2572
2030
|
}
|
|
2573
2031
|
const contents = (0, import_smithy_client.map)({
|
|
2574
2032
|
$metadata: deserializeMetadata(output)
|
|
@@ -2581,40 +2039,9 @@ var de_DescribeReplicationConfigurationTemplatesCommand = /* @__PURE__ */ __name
|
|
|
2581
2039
|
Object.assign(contents, doc);
|
|
2582
2040
|
return contents;
|
|
2583
2041
|
}, "de_DescribeReplicationConfigurationTemplatesCommand");
|
|
2584
|
-
var de_DescribeReplicationConfigurationTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2585
|
-
const parsedOutput = {
|
|
2586
|
-
...output,
|
|
2587
|
-
body: await parseErrorBody(output.body, context)
|
|
2588
|
-
};
|
|
2589
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2590
|
-
switch (errorCode) {
|
|
2591
|
-
case "InternalServerException":
|
|
2592
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2593
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2594
|
-
case "ResourceNotFoundException":
|
|
2595
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2596
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2597
|
-
case "ThrottlingException":
|
|
2598
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2599
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2600
|
-
case "UninitializedAccountException":
|
|
2601
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2602
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2603
|
-
case "ValidationException":
|
|
2604
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2605
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2606
|
-
default:
|
|
2607
|
-
const parsedBody = parsedOutput.body;
|
|
2608
|
-
return throwDefaultError({
|
|
2609
|
-
output,
|
|
2610
|
-
parsedBody,
|
|
2611
|
-
errorCode
|
|
2612
|
-
});
|
|
2613
|
-
}
|
|
2614
|
-
}, "de_DescribeReplicationConfigurationTemplatesCommandError");
|
|
2615
2042
|
var de_DescribeSourceNetworksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2616
2043
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2617
|
-
return
|
|
2044
|
+
return de_CommandError(output, context);
|
|
2618
2045
|
}
|
|
2619
2046
|
const contents = (0, import_smithy_client.map)({
|
|
2620
2047
|
$metadata: deserializeMetadata(output)
|
|
@@ -2627,37 +2054,9 @@ var de_DescribeSourceNetworksCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2627
2054
|
Object.assign(contents, doc);
|
|
2628
2055
|
return contents;
|
|
2629
2056
|
}, "de_DescribeSourceNetworksCommand");
|
|
2630
|
-
var de_DescribeSourceNetworksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2631
|
-
const parsedOutput = {
|
|
2632
|
-
...output,
|
|
2633
|
-
body: await parseErrorBody(output.body, context)
|
|
2634
|
-
};
|
|
2635
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2636
|
-
switch (errorCode) {
|
|
2637
|
-
case "InternalServerException":
|
|
2638
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2639
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2640
|
-
case "ThrottlingException":
|
|
2641
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2642
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2643
|
-
case "UninitializedAccountException":
|
|
2644
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2645
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2646
|
-
case "ValidationException":
|
|
2647
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2648
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2649
|
-
default:
|
|
2650
|
-
const parsedBody = parsedOutput.body;
|
|
2651
|
-
return throwDefaultError({
|
|
2652
|
-
output,
|
|
2653
|
-
parsedBody,
|
|
2654
|
-
errorCode
|
|
2655
|
-
});
|
|
2656
|
-
}
|
|
2657
|
-
}, "de_DescribeSourceNetworksCommandError");
|
|
2658
2057
|
var de_DescribeSourceServersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2659
2058
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2660
|
-
return
|
|
2059
|
+
return de_CommandError(output, context);
|
|
2661
2060
|
}
|
|
2662
2061
|
const contents = (0, import_smithy_client.map)({
|
|
2663
2062
|
$metadata: deserializeMetadata(output)
|
|
@@ -2670,37 +2069,9 @@ var de_DescribeSourceServersCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2670
2069
|
Object.assign(contents, doc);
|
|
2671
2070
|
return contents;
|
|
2672
2071
|
}, "de_DescribeSourceServersCommand");
|
|
2673
|
-
var de_DescribeSourceServersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2674
|
-
const parsedOutput = {
|
|
2675
|
-
...output,
|
|
2676
|
-
body: await parseErrorBody(output.body, context)
|
|
2677
|
-
};
|
|
2678
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2679
|
-
switch (errorCode) {
|
|
2680
|
-
case "InternalServerException":
|
|
2681
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2682
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2683
|
-
case "ThrottlingException":
|
|
2684
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2685
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2686
|
-
case "UninitializedAccountException":
|
|
2687
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2688
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2689
|
-
case "ValidationException":
|
|
2690
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2691
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2692
|
-
default:
|
|
2693
|
-
const parsedBody = parsedOutput.body;
|
|
2694
|
-
return throwDefaultError({
|
|
2695
|
-
output,
|
|
2696
|
-
parsedBody,
|
|
2697
|
-
errorCode
|
|
2698
|
-
});
|
|
2699
|
-
}
|
|
2700
|
-
}, "de_DescribeSourceServersCommandError");
|
|
2701
2072
|
var de_DisconnectRecoveryInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2702
2073
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2703
|
-
return
|
|
2074
|
+
return de_CommandError(output, context);
|
|
2704
2075
|
}
|
|
2705
2076
|
const contents = (0, import_smithy_client.map)({
|
|
2706
2077
|
$metadata: deserializeMetadata(output)
|
|
@@ -2708,43 +2079,9 @@ var de_DisconnectRecoveryInstanceCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2708
2079
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2709
2080
|
return contents;
|
|
2710
2081
|
}, "de_DisconnectRecoveryInstanceCommand");
|
|
2711
|
-
var de_DisconnectRecoveryInstanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2712
|
-
const parsedOutput = {
|
|
2713
|
-
...output,
|
|
2714
|
-
body: await parseErrorBody(output.body, context)
|
|
2715
|
-
};
|
|
2716
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2717
|
-
switch (errorCode) {
|
|
2718
|
-
case "AccessDeniedException":
|
|
2719
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2720
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2721
|
-
case "ConflictException":
|
|
2722
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2723
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2724
|
-
case "InternalServerException":
|
|
2725
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2726
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2727
|
-
case "ResourceNotFoundException":
|
|
2728
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2729
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2730
|
-
case "ThrottlingException":
|
|
2731
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2732
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2733
|
-
case "UninitializedAccountException":
|
|
2734
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2735
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2736
|
-
default:
|
|
2737
|
-
const parsedBody = parsedOutput.body;
|
|
2738
|
-
return throwDefaultError({
|
|
2739
|
-
output,
|
|
2740
|
-
parsedBody,
|
|
2741
|
-
errorCode
|
|
2742
|
-
});
|
|
2743
|
-
}
|
|
2744
|
-
}, "de_DisconnectRecoveryInstanceCommandError");
|
|
2745
2082
|
var de_DisconnectSourceServerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2746
2083
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2747
|
-
return
|
|
2084
|
+
return de_CommandError(output, context);
|
|
2748
2085
|
}
|
|
2749
2086
|
const contents = (0, import_smithy_client.map)({
|
|
2750
2087
|
$metadata: deserializeMetadata(output)
|
|
@@ -2769,40 +2106,9 @@ var de_DisconnectSourceServerCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2769
2106
|
Object.assign(contents, doc);
|
|
2770
2107
|
return contents;
|
|
2771
2108
|
}, "de_DisconnectSourceServerCommand");
|
|
2772
|
-
var de_DisconnectSourceServerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2773
|
-
const parsedOutput = {
|
|
2774
|
-
...output,
|
|
2775
|
-
body: await parseErrorBody(output.body, context)
|
|
2776
|
-
};
|
|
2777
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2778
|
-
switch (errorCode) {
|
|
2779
|
-
case "ConflictException":
|
|
2780
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2781
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2782
|
-
case "InternalServerException":
|
|
2783
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2784
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2785
|
-
case "ResourceNotFoundException":
|
|
2786
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2787
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2788
|
-
case "ThrottlingException":
|
|
2789
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2790
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2791
|
-
case "UninitializedAccountException":
|
|
2792
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2793
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2794
|
-
default:
|
|
2795
|
-
const parsedBody = parsedOutput.body;
|
|
2796
|
-
return throwDefaultError({
|
|
2797
|
-
output,
|
|
2798
|
-
parsedBody,
|
|
2799
|
-
errorCode
|
|
2800
|
-
});
|
|
2801
|
-
}
|
|
2802
|
-
}, "de_DisconnectSourceServerCommandError");
|
|
2803
2109
|
var de_ExportSourceNetworkCfnTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2804
2110
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2805
|
-
return
|
|
2111
|
+
return de_CommandError(output, context);
|
|
2806
2112
|
}
|
|
2807
2113
|
const contents = (0, import_smithy_client.map)({
|
|
2808
2114
|
$metadata: deserializeMetadata(output)
|
|
@@ -2814,43 +2120,9 @@ var de_ExportSourceNetworkCfnTemplateCommand = /* @__PURE__ */ __name(async (out
|
|
|
2814
2120
|
Object.assign(contents, doc);
|
|
2815
2121
|
return contents;
|
|
2816
2122
|
}, "de_ExportSourceNetworkCfnTemplateCommand");
|
|
2817
|
-
var de_ExportSourceNetworkCfnTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2818
|
-
const parsedOutput = {
|
|
2819
|
-
...output,
|
|
2820
|
-
body: await parseErrorBody(output.body, context)
|
|
2821
|
-
};
|
|
2822
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2823
|
-
switch (errorCode) {
|
|
2824
|
-
case "ConflictException":
|
|
2825
|
-
case "com.amazonaws.drs#ConflictException":
|
|
2826
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2827
|
-
case "InternalServerException":
|
|
2828
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2829
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2830
|
-
case "ResourceNotFoundException":
|
|
2831
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2832
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2833
|
-
case "ThrottlingException":
|
|
2834
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2835
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2836
|
-
case "UninitializedAccountException":
|
|
2837
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2838
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2839
|
-
case "ValidationException":
|
|
2840
|
-
case "com.amazonaws.drs#ValidationException":
|
|
2841
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2842
|
-
default:
|
|
2843
|
-
const parsedBody = parsedOutput.body;
|
|
2844
|
-
return throwDefaultError({
|
|
2845
|
-
output,
|
|
2846
|
-
parsedBody,
|
|
2847
|
-
errorCode
|
|
2848
|
-
});
|
|
2849
|
-
}
|
|
2850
|
-
}, "de_ExportSourceNetworkCfnTemplateCommandError");
|
|
2851
2123
|
var de_GetFailbackReplicationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2852
2124
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2853
|
-
return
|
|
2125
|
+
return de_CommandError(output, context);
|
|
2854
2126
|
}
|
|
2855
2127
|
const contents = (0, import_smithy_client.map)({
|
|
2856
2128
|
$metadata: deserializeMetadata(output)
|
|
@@ -2865,37 +2137,9 @@ var de_GetFailbackReplicationConfigurationCommand = /* @__PURE__ */ __name(async
|
|
|
2865
2137
|
Object.assign(contents, doc);
|
|
2866
2138
|
return contents;
|
|
2867
2139
|
}, "de_GetFailbackReplicationConfigurationCommand");
|
|
2868
|
-
var de_GetFailbackReplicationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2869
|
-
const parsedOutput = {
|
|
2870
|
-
...output,
|
|
2871
|
-
body: await parseErrorBody(output.body, context)
|
|
2872
|
-
};
|
|
2873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2874
|
-
switch (errorCode) {
|
|
2875
|
-
case "InternalServerException":
|
|
2876
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2877
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2878
|
-
case "ResourceNotFoundException":
|
|
2879
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2880
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2881
|
-
case "ThrottlingException":
|
|
2882
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2883
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2884
|
-
case "UninitializedAccountException":
|
|
2885
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2886
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2887
|
-
default:
|
|
2888
|
-
const parsedBody = parsedOutput.body;
|
|
2889
|
-
return throwDefaultError({
|
|
2890
|
-
output,
|
|
2891
|
-
parsedBody,
|
|
2892
|
-
errorCode
|
|
2893
|
-
});
|
|
2894
|
-
}
|
|
2895
|
-
}, "de_GetFailbackReplicationConfigurationCommandError");
|
|
2896
2140
|
var de_GetLaunchConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2897
2141
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2898
|
-
return
|
|
2142
|
+
return de_CommandError(output, context);
|
|
2899
2143
|
}
|
|
2900
2144
|
const contents = (0, import_smithy_client.map)({
|
|
2901
2145
|
$metadata: deserializeMetadata(output)
|
|
@@ -2916,37 +2160,9 @@ var de_GetLaunchConfigurationCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2916
2160
|
Object.assign(contents, doc);
|
|
2917
2161
|
return contents;
|
|
2918
2162
|
}, "de_GetLaunchConfigurationCommand");
|
|
2919
|
-
var de_GetLaunchConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2920
|
-
const parsedOutput = {
|
|
2921
|
-
...output,
|
|
2922
|
-
body: await parseErrorBody(output.body, context)
|
|
2923
|
-
};
|
|
2924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2925
|
-
switch (errorCode) {
|
|
2926
|
-
case "InternalServerException":
|
|
2927
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2928
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2929
|
-
case "ResourceNotFoundException":
|
|
2930
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2931
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2932
|
-
case "ThrottlingException":
|
|
2933
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2934
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2935
|
-
case "UninitializedAccountException":
|
|
2936
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2937
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2938
|
-
default:
|
|
2939
|
-
const parsedBody = parsedOutput.body;
|
|
2940
|
-
return throwDefaultError({
|
|
2941
|
-
output,
|
|
2942
|
-
parsedBody,
|
|
2943
|
-
errorCode
|
|
2944
|
-
});
|
|
2945
|
-
}
|
|
2946
|
-
}, "de_GetLaunchConfigurationCommandError");
|
|
2947
2163
|
var de_GetReplicationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2948
2164
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2949
|
-
return
|
|
2165
|
+
return de_CommandError(output, context);
|
|
2950
2166
|
}
|
|
2951
2167
|
const contents = (0, import_smithy_client.map)({
|
|
2952
2168
|
$metadata: deserializeMetadata(output)
|
|
@@ -2974,40 +2190,9 @@ var de_GetReplicationConfigurationCommand = /* @__PURE__ */ __name(async (output
|
|
|
2974
2190
|
Object.assign(contents, doc);
|
|
2975
2191
|
return contents;
|
|
2976
2192
|
}, "de_GetReplicationConfigurationCommand");
|
|
2977
|
-
var de_GetReplicationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2978
|
-
const parsedOutput = {
|
|
2979
|
-
...output,
|
|
2980
|
-
body: await parseErrorBody(output.body, context)
|
|
2981
|
-
};
|
|
2982
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2983
|
-
switch (errorCode) {
|
|
2984
|
-
case "AccessDeniedException":
|
|
2985
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
2986
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2987
|
-
case "InternalServerException":
|
|
2988
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
2989
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2990
|
-
case "ResourceNotFoundException":
|
|
2991
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
2992
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2993
|
-
case "ThrottlingException":
|
|
2994
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
2995
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2996
|
-
case "UninitializedAccountException":
|
|
2997
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
2998
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2999
|
-
default:
|
|
3000
|
-
const parsedBody = parsedOutput.body;
|
|
3001
|
-
return throwDefaultError({
|
|
3002
|
-
output,
|
|
3003
|
-
parsedBody,
|
|
3004
|
-
errorCode
|
|
3005
|
-
});
|
|
3006
|
-
}
|
|
3007
|
-
}, "de_GetReplicationConfigurationCommandError");
|
|
3008
2193
|
var de_InitializeServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3009
2194
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3010
|
-
return
|
|
2195
|
+
return de_CommandError(output, context);
|
|
3011
2196
|
}
|
|
3012
2197
|
const contents = (0, import_smithy_client.map)({
|
|
3013
2198
|
$metadata: deserializeMetadata(output)
|
|
@@ -3015,37 +2200,9 @@ var de_InitializeServiceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3015
2200
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3016
2201
|
return contents;
|
|
3017
2202
|
}, "de_InitializeServiceCommand");
|
|
3018
|
-
var de_InitializeServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3019
|
-
const parsedOutput = {
|
|
3020
|
-
...output,
|
|
3021
|
-
body: await parseErrorBody(output.body, context)
|
|
3022
|
-
};
|
|
3023
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3024
|
-
switch (errorCode) {
|
|
3025
|
-
case "AccessDeniedException":
|
|
3026
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
3027
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3028
|
-
case "InternalServerException":
|
|
3029
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3030
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3031
|
-
case "ThrottlingException":
|
|
3032
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3033
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3034
|
-
case "ValidationException":
|
|
3035
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3036
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3037
|
-
default:
|
|
3038
|
-
const parsedBody = parsedOutput.body;
|
|
3039
|
-
return throwDefaultError({
|
|
3040
|
-
output,
|
|
3041
|
-
parsedBody,
|
|
3042
|
-
errorCode
|
|
3043
|
-
});
|
|
3044
|
-
}
|
|
3045
|
-
}, "de_InitializeServiceCommandError");
|
|
3046
2203
|
var de_ListExtensibleSourceServersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3047
2204
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3048
|
-
return
|
|
2205
|
+
return de_CommandError(output, context);
|
|
3049
2206
|
}
|
|
3050
2207
|
const contents = (0, import_smithy_client.map)({
|
|
3051
2208
|
$metadata: deserializeMetadata(output)
|
|
@@ -3058,40 +2215,9 @@ var de_ListExtensibleSourceServersCommand = /* @__PURE__ */ __name(async (output
|
|
|
3058
2215
|
Object.assign(contents, doc);
|
|
3059
2216
|
return contents;
|
|
3060
2217
|
}, "de_ListExtensibleSourceServersCommand");
|
|
3061
|
-
var de_ListExtensibleSourceServersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3062
|
-
const parsedOutput = {
|
|
3063
|
-
...output,
|
|
3064
|
-
body: await parseErrorBody(output.body, context)
|
|
3065
|
-
};
|
|
3066
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3067
|
-
switch (errorCode) {
|
|
3068
|
-
case "AccessDeniedException":
|
|
3069
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
3070
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3071
|
-
case "InternalServerException":
|
|
3072
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3073
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3074
|
-
case "ThrottlingException":
|
|
3075
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3076
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3077
|
-
case "UninitializedAccountException":
|
|
3078
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3079
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3080
|
-
case "ValidationException":
|
|
3081
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3082
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3083
|
-
default:
|
|
3084
|
-
const parsedBody = parsedOutput.body;
|
|
3085
|
-
return throwDefaultError({
|
|
3086
|
-
output,
|
|
3087
|
-
parsedBody,
|
|
3088
|
-
errorCode
|
|
3089
|
-
});
|
|
3090
|
-
}
|
|
3091
|
-
}, "de_ListExtensibleSourceServersCommandError");
|
|
3092
2218
|
var de_ListLaunchActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3093
2219
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3094
|
-
return
|
|
2220
|
+
return de_CommandError(output, context);
|
|
3095
2221
|
}
|
|
3096
2222
|
const contents = (0, import_smithy_client.map)({
|
|
3097
2223
|
$metadata: deserializeMetadata(output)
|
|
@@ -3104,40 +2230,9 @@ var de_ListLaunchActionsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3104
2230
|
Object.assign(contents, doc);
|
|
3105
2231
|
return contents;
|
|
3106
2232
|
}, "de_ListLaunchActionsCommand");
|
|
3107
|
-
var de_ListLaunchActionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3108
|
-
const parsedOutput = {
|
|
3109
|
-
...output,
|
|
3110
|
-
body: await parseErrorBody(output.body, context)
|
|
3111
|
-
};
|
|
3112
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3113
|
-
switch (errorCode) {
|
|
3114
|
-
case "InternalServerException":
|
|
3115
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3116
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3117
|
-
case "ResourceNotFoundException":
|
|
3118
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3119
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3120
|
-
case "ServiceQuotaExceededException":
|
|
3121
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
3122
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3123
|
-
case "ThrottlingException":
|
|
3124
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3125
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3126
|
-
case "UninitializedAccountException":
|
|
3127
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3128
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3129
|
-
default:
|
|
3130
|
-
const parsedBody = parsedOutput.body;
|
|
3131
|
-
return throwDefaultError({
|
|
3132
|
-
output,
|
|
3133
|
-
parsedBody,
|
|
3134
|
-
errorCode
|
|
3135
|
-
});
|
|
3136
|
-
}
|
|
3137
|
-
}, "de_ListLaunchActionsCommandError");
|
|
3138
2233
|
var de_ListStagingAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3139
2234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3140
|
-
return
|
|
2235
|
+
return de_CommandError(output, context);
|
|
3141
2236
|
}
|
|
3142
2237
|
const contents = (0, import_smithy_client.map)({
|
|
3143
2238
|
$metadata: deserializeMetadata(output)
|
|
@@ -3150,40 +2245,9 @@ var de_ListStagingAccountsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3150
2245
|
Object.assign(contents, doc);
|
|
3151
2246
|
return contents;
|
|
3152
2247
|
}, "de_ListStagingAccountsCommand");
|
|
3153
|
-
var de_ListStagingAccountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3154
|
-
const parsedOutput = {
|
|
3155
|
-
...output,
|
|
3156
|
-
body: await parseErrorBody(output.body, context)
|
|
3157
|
-
};
|
|
3158
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3159
|
-
switch (errorCode) {
|
|
3160
|
-
case "AccessDeniedException":
|
|
3161
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
3162
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3163
|
-
case "InternalServerException":
|
|
3164
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3165
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3166
|
-
case "ThrottlingException":
|
|
3167
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3168
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3169
|
-
case "UninitializedAccountException":
|
|
3170
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3171
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3172
|
-
case "ValidationException":
|
|
3173
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3174
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3175
|
-
default:
|
|
3176
|
-
const parsedBody = parsedOutput.body;
|
|
3177
|
-
return throwDefaultError({
|
|
3178
|
-
output,
|
|
3179
|
-
parsedBody,
|
|
3180
|
-
errorCode
|
|
3181
|
-
});
|
|
3182
|
-
}
|
|
3183
|
-
}, "de_ListStagingAccountsCommandError");
|
|
3184
2248
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3185
2249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3186
|
-
return
|
|
2250
|
+
return de_CommandError(output, context);
|
|
3187
2251
|
}
|
|
3188
2252
|
const contents = (0, import_smithy_client.map)({
|
|
3189
2253
|
$metadata: deserializeMetadata(output)
|
|
@@ -3195,40 +2259,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3195
2259
|
Object.assign(contents, doc);
|
|
3196
2260
|
return contents;
|
|
3197
2261
|
}, "de_ListTagsForResourceCommand");
|
|
3198
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3199
|
-
const parsedOutput = {
|
|
3200
|
-
...output,
|
|
3201
|
-
body: await parseErrorBody(output.body, context)
|
|
3202
|
-
};
|
|
3203
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3204
|
-
switch (errorCode) {
|
|
3205
|
-
case "AccessDeniedException":
|
|
3206
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
3207
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3208
|
-
case "InternalServerException":
|
|
3209
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3210
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3211
|
-
case "ResourceNotFoundException":
|
|
3212
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3213
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3214
|
-
case "ThrottlingException":
|
|
3215
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3216
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3217
|
-
case "ValidationException":
|
|
3218
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3219
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3220
|
-
default:
|
|
3221
|
-
const parsedBody = parsedOutput.body;
|
|
3222
|
-
return throwDefaultError({
|
|
3223
|
-
output,
|
|
3224
|
-
parsedBody,
|
|
3225
|
-
errorCode
|
|
3226
|
-
});
|
|
3227
|
-
}
|
|
3228
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3229
2262
|
var de_PutLaunchActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3230
2263
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3231
|
-
return
|
|
2264
|
+
return de_CommandError(output, context);
|
|
3232
2265
|
}
|
|
3233
2266
|
const contents = (0, import_smithy_client.map)({
|
|
3234
2267
|
$metadata: deserializeMetadata(output)
|
|
@@ -3251,43 +2284,9 @@ var de_PutLaunchActionCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3251
2284
|
Object.assign(contents, doc);
|
|
3252
2285
|
return contents;
|
|
3253
2286
|
}, "de_PutLaunchActionCommand");
|
|
3254
|
-
var de_PutLaunchActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3255
|
-
const parsedOutput = {
|
|
3256
|
-
...output,
|
|
3257
|
-
body: await parseErrorBody(output.body, context)
|
|
3258
|
-
};
|
|
3259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3260
|
-
switch (errorCode) {
|
|
3261
|
-
case "ConflictException":
|
|
3262
|
-
case "com.amazonaws.drs#ConflictException":
|
|
3263
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3264
|
-
case "InternalServerException":
|
|
3265
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3266
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3267
|
-
case "ResourceNotFoundException":
|
|
3268
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3269
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3270
|
-
case "ThrottlingException":
|
|
3271
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3272
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3273
|
-
case "UninitializedAccountException":
|
|
3274
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3275
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3276
|
-
case "ValidationException":
|
|
3277
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3278
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3279
|
-
default:
|
|
3280
|
-
const parsedBody = parsedOutput.body;
|
|
3281
|
-
return throwDefaultError({
|
|
3282
|
-
output,
|
|
3283
|
-
parsedBody,
|
|
3284
|
-
errorCode
|
|
3285
|
-
});
|
|
3286
|
-
}
|
|
3287
|
-
}, "de_PutLaunchActionCommandError");
|
|
3288
2287
|
var de_RetryDataReplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3289
2288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3290
|
-
return
|
|
2289
|
+
return de_CommandError(output, context);
|
|
3291
2290
|
}
|
|
3292
2291
|
const contents = (0, import_smithy_client.map)({
|
|
3293
2292
|
$metadata: deserializeMetadata(output)
|
|
@@ -3312,40 +2311,9 @@ var de_RetryDataReplicationCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3312
2311
|
Object.assign(contents, doc);
|
|
3313
2312
|
return contents;
|
|
3314
2313
|
}, "de_RetryDataReplicationCommand");
|
|
3315
|
-
var de_RetryDataReplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3316
|
-
const parsedOutput = {
|
|
3317
|
-
...output,
|
|
3318
|
-
body: await parseErrorBody(output.body, context)
|
|
3319
|
-
};
|
|
3320
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3321
|
-
switch (errorCode) {
|
|
3322
|
-
case "InternalServerException":
|
|
3323
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3324
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3325
|
-
case "ResourceNotFoundException":
|
|
3326
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3327
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3328
|
-
case "ThrottlingException":
|
|
3329
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3330
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3331
|
-
case "UninitializedAccountException":
|
|
3332
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3333
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3334
|
-
case "ValidationException":
|
|
3335
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3336
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3337
|
-
default:
|
|
3338
|
-
const parsedBody = parsedOutput.body;
|
|
3339
|
-
return throwDefaultError({
|
|
3340
|
-
output,
|
|
3341
|
-
parsedBody,
|
|
3342
|
-
errorCode
|
|
3343
|
-
});
|
|
3344
|
-
}
|
|
3345
|
-
}, "de_RetryDataReplicationCommandError");
|
|
3346
2314
|
var de_ReverseReplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3347
2315
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3348
|
-
return
|
|
2316
|
+
return de_CommandError(output, context);
|
|
3349
2317
|
}
|
|
3350
2318
|
const contents = (0, import_smithy_client.map)({
|
|
3351
2319
|
$metadata: deserializeMetadata(output)
|
|
@@ -3357,46 +2325,9 @@ var de_ReverseReplicationCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3357
2325
|
Object.assign(contents, doc);
|
|
3358
2326
|
return contents;
|
|
3359
2327
|
}, "de_ReverseReplicationCommand");
|
|
3360
|
-
var de_ReverseReplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3361
|
-
const parsedOutput = {
|
|
3362
|
-
...output,
|
|
3363
|
-
body: await parseErrorBody(output.body, context)
|
|
3364
|
-
};
|
|
3365
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3366
|
-
switch (errorCode) {
|
|
3367
|
-
case "AccessDeniedException":
|
|
3368
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
3369
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3370
|
-
case "ConflictException":
|
|
3371
|
-
case "com.amazonaws.drs#ConflictException":
|
|
3372
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3373
|
-
case "InternalServerException":
|
|
3374
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3375
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3376
|
-
case "ResourceNotFoundException":
|
|
3377
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3378
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3379
|
-
case "ThrottlingException":
|
|
3380
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3381
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3382
|
-
case "UninitializedAccountException":
|
|
3383
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3384
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3385
|
-
case "ValidationException":
|
|
3386
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3387
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3388
|
-
default:
|
|
3389
|
-
const parsedBody = parsedOutput.body;
|
|
3390
|
-
return throwDefaultError({
|
|
3391
|
-
output,
|
|
3392
|
-
parsedBody,
|
|
3393
|
-
errorCode
|
|
3394
|
-
});
|
|
3395
|
-
}
|
|
3396
|
-
}, "de_ReverseReplicationCommandError");
|
|
3397
2328
|
var de_StartFailbackLaunchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3398
2329
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3399
|
-
return
|
|
2330
|
+
return de_CommandError(output, context);
|
|
3400
2331
|
}
|
|
3401
2332
|
const contents = (0, import_smithy_client.map)({
|
|
3402
2333
|
$metadata: deserializeMetadata(output)
|
|
@@ -3408,43 +2339,9 @@ var de_StartFailbackLaunchCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3408
2339
|
Object.assign(contents, doc);
|
|
3409
2340
|
return contents;
|
|
3410
2341
|
}, "de_StartFailbackLaunchCommand");
|
|
3411
|
-
var de_StartFailbackLaunchCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3412
|
-
const parsedOutput = {
|
|
3413
|
-
...output,
|
|
3414
|
-
body: await parseErrorBody(output.body, context)
|
|
3415
|
-
};
|
|
3416
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3417
|
-
switch (errorCode) {
|
|
3418
|
-
case "ConflictException":
|
|
3419
|
-
case "com.amazonaws.drs#ConflictException":
|
|
3420
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3421
|
-
case "InternalServerException":
|
|
3422
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3423
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3424
|
-
case "ServiceQuotaExceededException":
|
|
3425
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
3426
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3427
|
-
case "ThrottlingException":
|
|
3428
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3429
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3430
|
-
case "UninitializedAccountException":
|
|
3431
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3432
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3433
|
-
case "ValidationException":
|
|
3434
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3435
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3436
|
-
default:
|
|
3437
|
-
const parsedBody = parsedOutput.body;
|
|
3438
|
-
return throwDefaultError({
|
|
3439
|
-
output,
|
|
3440
|
-
parsedBody,
|
|
3441
|
-
errorCode
|
|
3442
|
-
});
|
|
3443
|
-
}
|
|
3444
|
-
}, "de_StartFailbackLaunchCommandError");
|
|
3445
2342
|
var de_StartRecoveryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3446
2343
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3447
|
-
return
|
|
2344
|
+
return de_CommandError(output, context);
|
|
3448
2345
|
}
|
|
3449
2346
|
const contents = (0, import_smithy_client.map)({
|
|
3450
2347
|
$metadata: deserializeMetadata(output)
|
|
@@ -3456,40 +2353,9 @@ var de_StartRecoveryCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3456
2353
|
Object.assign(contents, doc);
|
|
3457
2354
|
return contents;
|
|
3458
2355
|
}, "de_StartRecoveryCommand");
|
|
3459
|
-
var de_StartRecoveryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3460
|
-
const parsedOutput = {
|
|
3461
|
-
...output,
|
|
3462
|
-
body: await parseErrorBody(output.body, context)
|
|
3463
|
-
};
|
|
3464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3465
|
-
switch (errorCode) {
|
|
3466
|
-
case "ConflictException":
|
|
3467
|
-
case "com.amazonaws.drs#ConflictException":
|
|
3468
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3469
|
-
case "InternalServerException":
|
|
3470
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3471
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3472
|
-
case "ServiceQuotaExceededException":
|
|
3473
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
3474
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3475
|
-
case "ThrottlingException":
|
|
3476
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3477
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3478
|
-
case "UninitializedAccountException":
|
|
3479
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3480
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3481
|
-
default:
|
|
3482
|
-
const parsedBody = parsedOutput.body;
|
|
3483
|
-
return throwDefaultError({
|
|
3484
|
-
output,
|
|
3485
|
-
parsedBody,
|
|
3486
|
-
errorCode
|
|
3487
|
-
});
|
|
3488
|
-
}
|
|
3489
|
-
}, "de_StartRecoveryCommandError");
|
|
3490
2356
|
var de_StartReplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3491
2357
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3492
|
-
return
|
|
2358
|
+
return de_CommandError(output, context);
|
|
3493
2359
|
}
|
|
3494
2360
|
const contents = (0, import_smithy_client.map)({
|
|
3495
2361
|
$metadata: deserializeMetadata(output)
|
|
@@ -3501,40 +2367,9 @@ var de_StartReplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3501
2367
|
Object.assign(contents, doc);
|
|
3502
2368
|
return contents;
|
|
3503
2369
|
}, "de_StartReplicationCommand");
|
|
3504
|
-
var de_StartReplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3505
|
-
const parsedOutput = {
|
|
3506
|
-
...output,
|
|
3507
|
-
body: await parseErrorBody(output.body, context)
|
|
3508
|
-
};
|
|
3509
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3510
|
-
switch (errorCode) {
|
|
3511
|
-
case "ConflictException":
|
|
3512
|
-
case "com.amazonaws.drs#ConflictException":
|
|
3513
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3514
|
-
case "InternalServerException":
|
|
3515
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3516
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3517
|
-
case "ResourceNotFoundException":
|
|
3518
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3519
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3520
|
-
case "ThrottlingException":
|
|
3521
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3522
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3523
|
-
case "UninitializedAccountException":
|
|
3524
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3525
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3526
|
-
default:
|
|
3527
|
-
const parsedBody = parsedOutput.body;
|
|
3528
|
-
return throwDefaultError({
|
|
3529
|
-
output,
|
|
3530
|
-
parsedBody,
|
|
3531
|
-
errorCode
|
|
3532
|
-
});
|
|
3533
|
-
}
|
|
3534
|
-
}, "de_StartReplicationCommandError");
|
|
3535
2370
|
var de_StartSourceNetworkRecoveryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3536
2371
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3537
|
-
return
|
|
2372
|
+
return de_CommandError(output, context);
|
|
3538
2373
|
}
|
|
3539
2374
|
const contents = (0, import_smithy_client.map)({
|
|
3540
2375
|
$metadata: deserializeMetadata(output)
|
|
@@ -3546,43 +2381,9 @@ var de_StartSourceNetworkRecoveryCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3546
2381
|
Object.assign(contents, doc);
|
|
3547
2382
|
return contents;
|
|
3548
2383
|
}, "de_StartSourceNetworkRecoveryCommand");
|
|
3549
|
-
var de_StartSourceNetworkRecoveryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3550
|
-
const parsedOutput = {
|
|
3551
|
-
...output,
|
|
3552
|
-
body: await parseErrorBody(output.body, context)
|
|
3553
|
-
};
|
|
3554
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3555
|
-
switch (errorCode) {
|
|
3556
|
-
case "ConflictException":
|
|
3557
|
-
case "com.amazonaws.drs#ConflictException":
|
|
3558
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3559
|
-
case "InternalServerException":
|
|
3560
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3561
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3562
|
-
case "ServiceQuotaExceededException":
|
|
3563
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
3564
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3565
|
-
case "ThrottlingException":
|
|
3566
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3567
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3568
|
-
case "UninitializedAccountException":
|
|
3569
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3570
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3571
|
-
case "ValidationException":
|
|
3572
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3573
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3574
|
-
default:
|
|
3575
|
-
const parsedBody = parsedOutput.body;
|
|
3576
|
-
return throwDefaultError({
|
|
3577
|
-
output,
|
|
3578
|
-
parsedBody,
|
|
3579
|
-
errorCode
|
|
3580
|
-
});
|
|
3581
|
-
}
|
|
3582
|
-
}, "de_StartSourceNetworkRecoveryCommandError");
|
|
3583
2384
|
var de_StartSourceNetworkReplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3584
2385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3585
|
-
return
|
|
2386
|
+
return de_CommandError(output, context);
|
|
3586
2387
|
}
|
|
3587
2388
|
const contents = (0, import_smithy_client.map)({
|
|
3588
2389
|
$metadata: deserializeMetadata(output)
|
|
@@ -3594,171 +2395,47 @@ var de_StartSourceNetworkReplicationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
3594
2395
|
Object.assign(contents, doc);
|
|
3595
2396
|
return contents;
|
|
3596
2397
|
}, "de_StartSourceNetworkReplicationCommand");
|
|
3597
|
-
var de_StartSourceNetworkReplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3598
|
-
const parsedOutput = {
|
|
3599
|
-
...output,
|
|
3600
|
-
body: await parseErrorBody(output.body, context)
|
|
3601
|
-
};
|
|
3602
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3603
|
-
switch (errorCode) {
|
|
3604
|
-
case "ConflictException":
|
|
3605
|
-
case "com.amazonaws.drs#ConflictException":
|
|
3606
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3607
|
-
case "InternalServerException":
|
|
3608
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3609
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3610
|
-
case "ResourceNotFoundException":
|
|
3611
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3612
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3613
|
-
case "ThrottlingException":
|
|
3614
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3615
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3616
|
-
case "UninitializedAccountException":
|
|
3617
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3618
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3619
|
-
default:
|
|
3620
|
-
const parsedBody = parsedOutput.body;
|
|
3621
|
-
return throwDefaultError({
|
|
3622
|
-
output,
|
|
3623
|
-
parsedBody,
|
|
3624
|
-
errorCode
|
|
3625
|
-
});
|
|
3626
|
-
}
|
|
3627
|
-
}, "de_StartSourceNetworkReplicationCommandError");
|
|
3628
2398
|
var de_StopFailbackCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3629
2399
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3630
|
-
return
|
|
2400
|
+
return de_CommandError(output, context);
|
|
3631
2401
|
}
|
|
3632
2402
|
const contents = (0, import_smithy_client.map)({
|
|
3633
2403
|
$metadata: deserializeMetadata(output)
|
|
3634
|
-
});
|
|
3635
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3636
|
-
return contents;
|
|
3637
|
-
}, "de_StopFailbackCommand");
|
|
3638
|
-
var
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3656
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3657
|
-
default:
|
|
3658
|
-
const parsedBody = parsedOutput.body;
|
|
3659
|
-
return throwDefaultError({
|
|
3660
|
-
output,
|
|
3661
|
-
parsedBody,
|
|
3662
|
-
errorCode
|
|
3663
|
-
});
|
|
3664
|
-
}
|
|
3665
|
-
}, "de_StopFailbackCommandError");
|
|
3666
|
-
var de_StopReplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3667
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3668
|
-
return de_StopReplicationCommandError(output, context);
|
|
3669
|
-
}
|
|
3670
|
-
const contents = (0, import_smithy_client.map)({
|
|
3671
|
-
$metadata: deserializeMetadata(output)
|
|
3672
|
-
});
|
|
3673
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3674
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3675
|
-
sourceServer: import_smithy_client._json
|
|
3676
|
-
});
|
|
3677
|
-
Object.assign(contents, doc);
|
|
3678
|
-
return contents;
|
|
3679
|
-
}, "de_StopReplicationCommand");
|
|
3680
|
-
var de_StopReplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3681
|
-
const parsedOutput = {
|
|
3682
|
-
...output,
|
|
3683
|
-
body: await parseErrorBody(output.body, context)
|
|
3684
|
-
};
|
|
3685
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3686
|
-
switch (errorCode) {
|
|
3687
|
-
case "ConflictException":
|
|
3688
|
-
case "com.amazonaws.drs#ConflictException":
|
|
3689
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3690
|
-
case "InternalServerException":
|
|
3691
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3692
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3693
|
-
case "ResourceNotFoundException":
|
|
3694
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3695
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3696
|
-
case "ThrottlingException":
|
|
3697
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3698
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3699
|
-
case "UninitializedAccountException":
|
|
3700
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3701
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3702
|
-
default:
|
|
3703
|
-
const parsedBody = parsedOutput.body;
|
|
3704
|
-
return throwDefaultError({
|
|
3705
|
-
output,
|
|
3706
|
-
parsedBody,
|
|
3707
|
-
errorCode
|
|
3708
|
-
});
|
|
3709
|
-
}
|
|
3710
|
-
}, "de_StopReplicationCommandError");
|
|
3711
|
-
var de_StopSourceNetworkReplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3712
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3713
|
-
return de_StopSourceNetworkReplicationCommandError(output, context);
|
|
3714
|
-
}
|
|
3715
|
-
const contents = (0, import_smithy_client.map)({
|
|
3716
|
-
$metadata: deserializeMetadata(output)
|
|
3717
|
-
});
|
|
3718
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
3719
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
3720
|
-
sourceNetwork: (_) => de_SourceNetwork(_, context)
|
|
3721
|
-
});
|
|
3722
|
-
Object.assign(contents, doc);
|
|
3723
|
-
return contents;
|
|
3724
|
-
}, "de_StopSourceNetworkReplicationCommand");
|
|
3725
|
-
var de_StopSourceNetworkReplicationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3726
|
-
const parsedOutput = {
|
|
3727
|
-
...output,
|
|
3728
|
-
body: await parseErrorBody(output.body, context)
|
|
3729
|
-
};
|
|
3730
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3731
|
-
switch (errorCode) {
|
|
3732
|
-
case "ConflictException":
|
|
3733
|
-
case "com.amazonaws.drs#ConflictException":
|
|
3734
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3735
|
-
case "InternalServerException":
|
|
3736
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3737
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3738
|
-
case "ResourceNotFoundException":
|
|
3739
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3740
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3741
|
-
case "ThrottlingException":
|
|
3742
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3743
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3744
|
-
case "UninitializedAccountException":
|
|
3745
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3746
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3747
|
-
case "ValidationException":
|
|
3748
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3749
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3750
|
-
default:
|
|
3751
|
-
const parsedBody = parsedOutput.body;
|
|
3752
|
-
return throwDefaultError({
|
|
3753
|
-
output,
|
|
3754
|
-
parsedBody,
|
|
3755
|
-
errorCode
|
|
3756
|
-
});
|
|
2404
|
+
});
|
|
2405
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2406
|
+
return contents;
|
|
2407
|
+
}, "de_StopFailbackCommand");
|
|
2408
|
+
var de_StopReplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2409
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2410
|
+
return de_CommandError(output, context);
|
|
2411
|
+
}
|
|
2412
|
+
const contents = (0, import_smithy_client.map)({
|
|
2413
|
+
$metadata: deserializeMetadata(output)
|
|
2414
|
+
});
|
|
2415
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2416
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2417
|
+
sourceServer: import_smithy_client._json
|
|
2418
|
+
});
|
|
2419
|
+
Object.assign(contents, doc);
|
|
2420
|
+
return contents;
|
|
2421
|
+
}, "de_StopReplicationCommand");
|
|
2422
|
+
var de_StopSourceNetworkReplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2423
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2424
|
+
return de_CommandError(output, context);
|
|
3757
2425
|
}
|
|
3758
|
-
|
|
2426
|
+
const contents = (0, import_smithy_client.map)({
|
|
2427
|
+
$metadata: deserializeMetadata(output)
|
|
2428
|
+
});
|
|
2429
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2430
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2431
|
+
sourceNetwork: (_) => de_SourceNetwork(_, context)
|
|
2432
|
+
});
|
|
2433
|
+
Object.assign(contents, doc);
|
|
2434
|
+
return contents;
|
|
2435
|
+
}, "de_StopSourceNetworkReplicationCommand");
|
|
3759
2436
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3760
2437
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3761
|
-
return
|
|
2438
|
+
return de_CommandError(output, context);
|
|
3762
2439
|
}
|
|
3763
2440
|
const contents = (0, import_smithy_client.map)({
|
|
3764
2441
|
$metadata: deserializeMetadata(output)
|
|
@@ -3766,40 +2443,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3766
2443
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3767
2444
|
return contents;
|
|
3768
2445
|
}, "de_TagResourceCommand");
|
|
3769
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3770
|
-
const parsedOutput = {
|
|
3771
|
-
...output,
|
|
3772
|
-
body: await parseErrorBody(output.body, context)
|
|
3773
|
-
};
|
|
3774
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3775
|
-
switch (errorCode) {
|
|
3776
|
-
case "AccessDeniedException":
|
|
3777
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
3778
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3779
|
-
case "InternalServerException":
|
|
3780
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3781
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3782
|
-
case "ResourceNotFoundException":
|
|
3783
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3784
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3785
|
-
case "ThrottlingException":
|
|
3786
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3787
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3788
|
-
case "ValidationException":
|
|
3789
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3790
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3791
|
-
default:
|
|
3792
|
-
const parsedBody = parsedOutput.body;
|
|
3793
|
-
return throwDefaultError({
|
|
3794
|
-
output,
|
|
3795
|
-
parsedBody,
|
|
3796
|
-
errorCode
|
|
3797
|
-
});
|
|
3798
|
-
}
|
|
3799
|
-
}, "de_TagResourceCommandError");
|
|
3800
2446
|
var de_TerminateRecoveryInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3801
2447
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3802
|
-
return
|
|
2448
|
+
return de_CommandError(output, context);
|
|
3803
2449
|
}
|
|
3804
2450
|
const contents = (0, import_smithy_client.map)({
|
|
3805
2451
|
$metadata: deserializeMetadata(output)
|
|
@@ -3811,40 +2457,9 @@ var de_TerminateRecoveryInstancesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3811
2457
|
Object.assign(contents, doc);
|
|
3812
2458
|
return contents;
|
|
3813
2459
|
}, "de_TerminateRecoveryInstancesCommand");
|
|
3814
|
-
var de_TerminateRecoveryInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3815
|
-
const parsedOutput = {
|
|
3816
|
-
...output,
|
|
3817
|
-
body: await parseErrorBody(output.body, context)
|
|
3818
|
-
};
|
|
3819
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3820
|
-
switch (errorCode) {
|
|
3821
|
-
case "ConflictException":
|
|
3822
|
-
case "com.amazonaws.drs#ConflictException":
|
|
3823
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3824
|
-
case "InternalServerException":
|
|
3825
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3826
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3827
|
-
case "ServiceQuotaExceededException":
|
|
3828
|
-
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
3829
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3830
|
-
case "ThrottlingException":
|
|
3831
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3832
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3833
|
-
case "UninitializedAccountException":
|
|
3834
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3835
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3836
|
-
default:
|
|
3837
|
-
const parsedBody = parsedOutput.body;
|
|
3838
|
-
return throwDefaultError({
|
|
3839
|
-
output,
|
|
3840
|
-
parsedBody,
|
|
3841
|
-
errorCode
|
|
3842
|
-
});
|
|
3843
|
-
}
|
|
3844
|
-
}, "de_TerminateRecoveryInstancesCommandError");
|
|
3845
2460
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3846
2461
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3847
|
-
return
|
|
2462
|
+
return de_CommandError(output, context);
|
|
3848
2463
|
}
|
|
3849
2464
|
const contents = (0, import_smithy_client.map)({
|
|
3850
2465
|
$metadata: deserializeMetadata(output)
|
|
@@ -3852,40 +2467,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3852
2467
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3853
2468
|
return contents;
|
|
3854
2469
|
}, "de_UntagResourceCommand");
|
|
3855
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3856
|
-
const parsedOutput = {
|
|
3857
|
-
...output,
|
|
3858
|
-
body: await parseErrorBody(output.body, context)
|
|
3859
|
-
};
|
|
3860
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3861
|
-
switch (errorCode) {
|
|
3862
|
-
case "AccessDeniedException":
|
|
3863
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
3864
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3865
|
-
case "InternalServerException":
|
|
3866
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3867
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3868
|
-
case "ResourceNotFoundException":
|
|
3869
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3870
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3871
|
-
case "ThrottlingException":
|
|
3872
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3873
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3874
|
-
case "ValidationException":
|
|
3875
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3876
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3877
|
-
default:
|
|
3878
|
-
const parsedBody = parsedOutput.body;
|
|
3879
|
-
return throwDefaultError({
|
|
3880
|
-
output,
|
|
3881
|
-
parsedBody,
|
|
3882
|
-
errorCode
|
|
3883
|
-
});
|
|
3884
|
-
}
|
|
3885
|
-
}, "de_UntagResourceCommandError");
|
|
3886
2470
|
var de_UpdateFailbackReplicationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3887
2471
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3888
|
-
return
|
|
2472
|
+
return de_CommandError(output, context);
|
|
3889
2473
|
}
|
|
3890
2474
|
const contents = (0, import_smithy_client.map)({
|
|
3891
2475
|
$metadata: deserializeMetadata(output)
|
|
@@ -3893,40 +2477,9 @@ var de_UpdateFailbackReplicationConfigurationCommand = /* @__PURE__ */ __name(as
|
|
|
3893
2477
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3894
2478
|
return contents;
|
|
3895
2479
|
}, "de_UpdateFailbackReplicationConfigurationCommand");
|
|
3896
|
-
var de_UpdateFailbackReplicationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3897
|
-
const parsedOutput = {
|
|
3898
|
-
...output,
|
|
3899
|
-
body: await parseErrorBody(output.body, context)
|
|
3900
|
-
};
|
|
3901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3902
|
-
switch (errorCode) {
|
|
3903
|
-
case "AccessDeniedException":
|
|
3904
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
3905
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3906
|
-
case "InternalServerException":
|
|
3907
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3908
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3909
|
-
case "ResourceNotFoundException":
|
|
3910
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3911
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3912
|
-
case "ThrottlingException":
|
|
3913
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3914
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3915
|
-
case "UninitializedAccountException":
|
|
3916
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3917
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3918
|
-
default:
|
|
3919
|
-
const parsedBody = parsedOutput.body;
|
|
3920
|
-
return throwDefaultError({
|
|
3921
|
-
output,
|
|
3922
|
-
parsedBody,
|
|
3923
|
-
errorCode
|
|
3924
|
-
});
|
|
3925
|
-
}
|
|
3926
|
-
}, "de_UpdateFailbackReplicationConfigurationCommandError");
|
|
3927
2480
|
var de_UpdateLaunchConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3928
2481
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3929
|
-
return
|
|
2482
|
+
return de_CommandError(output, context);
|
|
3930
2483
|
}
|
|
3931
2484
|
const contents = (0, import_smithy_client.map)({
|
|
3932
2485
|
$metadata: deserializeMetadata(output)
|
|
@@ -3947,43 +2500,9 @@ var de_UpdateLaunchConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3947
2500
|
Object.assign(contents, doc);
|
|
3948
2501
|
return contents;
|
|
3949
2502
|
}, "de_UpdateLaunchConfigurationCommand");
|
|
3950
|
-
var de_UpdateLaunchConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3951
|
-
const parsedOutput = {
|
|
3952
|
-
...output,
|
|
3953
|
-
body: await parseErrorBody(output.body, context)
|
|
3954
|
-
};
|
|
3955
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3956
|
-
switch (errorCode) {
|
|
3957
|
-
case "ConflictException":
|
|
3958
|
-
case "com.amazonaws.drs#ConflictException":
|
|
3959
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3960
|
-
case "InternalServerException":
|
|
3961
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
3962
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3963
|
-
case "ResourceNotFoundException":
|
|
3964
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
3965
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3966
|
-
case "ThrottlingException":
|
|
3967
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
3968
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3969
|
-
case "UninitializedAccountException":
|
|
3970
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
3971
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3972
|
-
case "ValidationException":
|
|
3973
|
-
case "com.amazonaws.drs#ValidationException":
|
|
3974
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3975
|
-
default:
|
|
3976
|
-
const parsedBody = parsedOutput.body;
|
|
3977
|
-
return throwDefaultError({
|
|
3978
|
-
output,
|
|
3979
|
-
parsedBody,
|
|
3980
|
-
errorCode
|
|
3981
|
-
});
|
|
3982
|
-
}
|
|
3983
|
-
}, "de_UpdateLaunchConfigurationCommandError");
|
|
3984
2503
|
var de_UpdateLaunchConfigurationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3985
2504
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3986
|
-
return
|
|
2505
|
+
return de_CommandError(output, context);
|
|
3987
2506
|
}
|
|
3988
2507
|
const contents = (0, import_smithy_client.map)({
|
|
3989
2508
|
$metadata: deserializeMetadata(output)
|
|
@@ -3995,43 +2514,9 @@ var de_UpdateLaunchConfigurationTemplateCommand = /* @__PURE__ */ __name(async (
|
|
|
3995
2514
|
Object.assign(contents, doc);
|
|
3996
2515
|
return contents;
|
|
3997
2516
|
}, "de_UpdateLaunchConfigurationTemplateCommand");
|
|
3998
|
-
var de_UpdateLaunchConfigurationTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3999
|
-
const parsedOutput = {
|
|
4000
|
-
...output,
|
|
4001
|
-
body: await parseErrorBody(output.body, context)
|
|
4002
|
-
};
|
|
4003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4004
|
-
switch (errorCode) {
|
|
4005
|
-
case "AccessDeniedException":
|
|
4006
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
4007
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4008
|
-
case "InternalServerException":
|
|
4009
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
4010
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4011
|
-
case "ResourceNotFoundException":
|
|
4012
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
4013
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4014
|
-
case "ThrottlingException":
|
|
4015
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
4016
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4017
|
-
case "UninitializedAccountException":
|
|
4018
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
4019
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
4020
|
-
case "ValidationException":
|
|
4021
|
-
case "com.amazonaws.drs#ValidationException":
|
|
4022
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4023
|
-
default:
|
|
4024
|
-
const parsedBody = parsedOutput.body;
|
|
4025
|
-
return throwDefaultError({
|
|
4026
|
-
output,
|
|
4027
|
-
parsedBody,
|
|
4028
|
-
errorCode
|
|
4029
|
-
});
|
|
4030
|
-
}
|
|
4031
|
-
}, "de_UpdateLaunchConfigurationTemplateCommandError");
|
|
4032
2517
|
var de_UpdateReplicationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4033
2518
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4034
|
-
return
|
|
2519
|
+
return de_CommandError(output, context);
|
|
4035
2520
|
}
|
|
4036
2521
|
const contents = (0, import_smithy_client.map)({
|
|
4037
2522
|
$metadata: deserializeMetadata(output)
|
|
@@ -4059,46 +2544,9 @@ var de_UpdateReplicationConfigurationCommand = /* @__PURE__ */ __name(async (out
|
|
|
4059
2544
|
Object.assign(contents, doc);
|
|
4060
2545
|
return contents;
|
|
4061
2546
|
}, "de_UpdateReplicationConfigurationCommand");
|
|
4062
|
-
var de_UpdateReplicationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4063
|
-
const parsedOutput = {
|
|
4064
|
-
...output,
|
|
4065
|
-
body: await parseErrorBody(output.body, context)
|
|
4066
|
-
};
|
|
4067
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4068
|
-
switch (errorCode) {
|
|
4069
|
-
case "AccessDeniedException":
|
|
4070
|
-
case "com.amazonaws.drs#AccessDeniedException":
|
|
4071
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4072
|
-
case "ConflictException":
|
|
4073
|
-
case "com.amazonaws.drs#ConflictException":
|
|
4074
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4075
|
-
case "InternalServerException":
|
|
4076
|
-
case "com.amazonaws.drs#InternalServerException":
|
|
4077
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4078
|
-
case "ResourceNotFoundException":
|
|
4079
|
-
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
4080
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4081
|
-
case "ThrottlingException":
|
|
4082
|
-
case "com.amazonaws.drs#ThrottlingException":
|
|
4083
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4084
|
-
case "UninitializedAccountException":
|
|
4085
|
-
case "com.amazonaws.drs#UninitializedAccountException":
|
|
4086
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
4087
|
-
case "ValidationException":
|
|
4088
|
-
case "com.amazonaws.drs#ValidationException":
|
|
4089
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4090
|
-
default:
|
|
4091
|
-
const parsedBody = parsedOutput.body;
|
|
4092
|
-
return throwDefaultError({
|
|
4093
|
-
output,
|
|
4094
|
-
parsedBody,
|
|
4095
|
-
errorCode
|
|
4096
|
-
});
|
|
4097
|
-
}
|
|
4098
|
-
}, "de_UpdateReplicationConfigurationCommandError");
|
|
4099
2547
|
var de_UpdateReplicationConfigurationTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4100
2548
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4101
|
-
return
|
|
2549
|
+
return de_CommandError(output, context);
|
|
4102
2550
|
}
|
|
4103
2551
|
const contents = (0, import_smithy_client.map)({
|
|
4104
2552
|
$metadata: deserializeMetadata(output)
|
|
@@ -4126,22 +2574,25 @@ var de_UpdateReplicationConfigurationTemplateCommand = /* @__PURE__ */ __name(as
|
|
|
4126
2574
|
Object.assign(contents, doc);
|
|
4127
2575
|
return contents;
|
|
4128
2576
|
}, "de_UpdateReplicationConfigurationTemplateCommand");
|
|
4129
|
-
var
|
|
2577
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4130
2578
|
const parsedOutput = {
|
|
4131
2579
|
...output,
|
|
4132
2580
|
body: await parseErrorBody(output.body, context)
|
|
4133
2581
|
};
|
|
4134
2582
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4135
2583
|
switch (errorCode) {
|
|
4136
|
-
case "
|
|
4137
|
-
case "com.amazonaws.drs#
|
|
4138
|
-
throw await
|
|
2584
|
+
case "ConflictException":
|
|
2585
|
+
case "com.amazonaws.drs#ConflictException":
|
|
2586
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4139
2587
|
case "InternalServerException":
|
|
4140
2588
|
case "com.amazonaws.drs#InternalServerException":
|
|
4141
2589
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4142
2590
|
case "ResourceNotFoundException":
|
|
4143
2591
|
case "com.amazonaws.drs#ResourceNotFoundException":
|
|
4144
2592
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2593
|
+
case "ServiceQuotaExceededException":
|
|
2594
|
+
case "com.amazonaws.drs#ServiceQuotaExceededException":
|
|
2595
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
4145
2596
|
case "ThrottlingException":
|
|
4146
2597
|
case "com.amazonaws.drs#ThrottlingException":
|
|
4147
2598
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -4151,6 +2602,9 @@ var de_UpdateReplicationConfigurationTemplateCommandError = /* @__PURE__ */ __na
|
|
|
4151
2602
|
case "ValidationException":
|
|
4152
2603
|
case "com.amazonaws.drs#ValidationException":
|
|
4153
2604
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2605
|
+
case "AccessDeniedException":
|
|
2606
|
+
case "com.amazonaws.drs#AccessDeniedException":
|
|
2607
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4154
2608
|
default:
|
|
4155
2609
|
const parsedBody = parsedOutput.body;
|
|
4156
2610
|
return throwDefaultError({
|
|
@@ -4159,7 +2613,7 @@ var de_UpdateReplicationConfigurationTemplateCommandError = /* @__PURE__ */ __na
|
|
|
4159
2613
|
errorCode
|
|
4160
2614
|
});
|
|
4161
2615
|
}
|
|
4162
|
-
}, "
|
|
2616
|
+
}, "de_CommandError");
|
|
4163
2617
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(DrsServiceException);
|
|
4164
2618
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4165
2619
|
const contents = (0, import_smithy_client.map)({});
|