@aws-sdk/client-fsx 3.504.0 → 3.509.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 +195 -1484
- package/dist-es/protocols/Aws_json1_1.js +180 -1469
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1783,7 +1783,7 @@ var se_UpdateVolumeCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1783
1783
|
}, "se_UpdateVolumeCommand");
|
|
1784
1784
|
var de_AssociateFileSystemAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1785
1785
|
if (output.statusCode >= 300) {
|
|
1786
|
-
return
|
|
1786
|
+
return de_CommandError(output, context);
|
|
1787
1787
|
}
|
|
1788
1788
|
const data = await parseBody(output.body, context);
|
|
1789
1789
|
let contents = {};
|
|
@@ -1794,34 +1794,9 @@ var de_AssociateFileSystemAliasesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1794
1794
|
};
|
|
1795
1795
|
return response;
|
|
1796
1796
|
}, "de_AssociateFileSystemAliasesCommand");
|
|
1797
|
-
var de_AssociateFileSystemAliasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1798
|
-
const parsedOutput = {
|
|
1799
|
-
...output,
|
|
1800
|
-
body: await parseErrorBody(output.body, context)
|
|
1801
|
-
};
|
|
1802
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1803
|
-
switch (errorCode) {
|
|
1804
|
-
case "BadRequest":
|
|
1805
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1806
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1807
|
-
case "FileSystemNotFound":
|
|
1808
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
1809
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1810
|
-
case "InternalServerError":
|
|
1811
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1812
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1813
|
-
default:
|
|
1814
|
-
const parsedBody = parsedOutput.body;
|
|
1815
|
-
return throwDefaultError({
|
|
1816
|
-
output,
|
|
1817
|
-
parsedBody,
|
|
1818
|
-
errorCode
|
|
1819
|
-
});
|
|
1820
|
-
}
|
|
1821
|
-
}, "de_AssociateFileSystemAliasesCommandError");
|
|
1822
1797
|
var de_CancelDataRepositoryTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1823
1798
|
if (output.statusCode >= 300) {
|
|
1824
|
-
return
|
|
1799
|
+
return de_CommandError(output, context);
|
|
1825
1800
|
}
|
|
1826
1801
|
const data = await parseBody(output.body, context);
|
|
1827
1802
|
let contents = {};
|
|
@@ -1832,40 +1807,9 @@ var de_CancelDataRepositoryTaskCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1832
1807
|
};
|
|
1833
1808
|
return response;
|
|
1834
1809
|
}, "de_CancelDataRepositoryTaskCommand");
|
|
1835
|
-
var de_CancelDataRepositoryTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1836
|
-
const parsedOutput = {
|
|
1837
|
-
...output,
|
|
1838
|
-
body: await parseErrorBody(output.body, context)
|
|
1839
|
-
};
|
|
1840
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1841
|
-
switch (errorCode) {
|
|
1842
|
-
case "BadRequest":
|
|
1843
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1844
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1845
|
-
case "DataRepositoryTaskEnded":
|
|
1846
|
-
case "com.amazonaws.fsx#DataRepositoryTaskEnded":
|
|
1847
|
-
throw await de_DataRepositoryTaskEndedRes(parsedOutput, context);
|
|
1848
|
-
case "DataRepositoryTaskNotFound":
|
|
1849
|
-
case "com.amazonaws.fsx#DataRepositoryTaskNotFound":
|
|
1850
|
-
throw await de_DataRepositoryTaskNotFoundRes(parsedOutput, context);
|
|
1851
|
-
case "InternalServerError":
|
|
1852
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1853
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1854
|
-
case "UnsupportedOperation":
|
|
1855
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
1856
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1857
|
-
default:
|
|
1858
|
-
const parsedBody = parsedOutput.body;
|
|
1859
|
-
return throwDefaultError({
|
|
1860
|
-
output,
|
|
1861
|
-
parsedBody,
|
|
1862
|
-
errorCode
|
|
1863
|
-
});
|
|
1864
|
-
}
|
|
1865
|
-
}, "de_CancelDataRepositoryTaskCommandError");
|
|
1866
1810
|
var de_CopyBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1867
1811
|
if (output.statusCode >= 300) {
|
|
1868
|
-
return
|
|
1812
|
+
return de_CommandError(output, context);
|
|
1869
1813
|
}
|
|
1870
1814
|
const data = await parseBody(output.body, context);
|
|
1871
1815
|
let contents = {};
|
|
@@ -1876,58 +1820,9 @@ var de_CopyBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1876
1820
|
};
|
|
1877
1821
|
return response;
|
|
1878
1822
|
}, "de_CopyBackupCommand");
|
|
1879
|
-
var de_CopyBackupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1880
|
-
const parsedOutput = {
|
|
1881
|
-
...output,
|
|
1882
|
-
body: await parseErrorBody(output.body, context)
|
|
1883
|
-
};
|
|
1884
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1885
|
-
switch (errorCode) {
|
|
1886
|
-
case "BackupNotFound":
|
|
1887
|
-
case "com.amazonaws.fsx#BackupNotFound":
|
|
1888
|
-
throw await de_BackupNotFoundRes(parsedOutput, context);
|
|
1889
|
-
case "BadRequest":
|
|
1890
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1891
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1892
|
-
case "IncompatibleParameterError":
|
|
1893
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
1894
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
1895
|
-
case "IncompatibleRegionForMultiAZ":
|
|
1896
|
-
case "com.amazonaws.fsx#IncompatibleRegionForMultiAZ":
|
|
1897
|
-
throw await de_IncompatibleRegionForMultiAZRes(parsedOutput, context);
|
|
1898
|
-
case "InternalServerError":
|
|
1899
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1900
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1901
|
-
case "InvalidDestinationKmsKey":
|
|
1902
|
-
case "com.amazonaws.fsx#InvalidDestinationKmsKey":
|
|
1903
|
-
throw await de_InvalidDestinationKmsKeyRes(parsedOutput, context);
|
|
1904
|
-
case "InvalidRegion":
|
|
1905
|
-
case "com.amazonaws.fsx#InvalidRegion":
|
|
1906
|
-
throw await de_InvalidRegionRes(parsedOutput, context);
|
|
1907
|
-
case "InvalidSourceKmsKey":
|
|
1908
|
-
case "com.amazonaws.fsx#InvalidSourceKmsKey":
|
|
1909
|
-
throw await de_InvalidSourceKmsKeyRes(parsedOutput, context);
|
|
1910
|
-
case "ServiceLimitExceeded":
|
|
1911
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
1912
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
1913
|
-
case "SourceBackupUnavailable":
|
|
1914
|
-
case "com.amazonaws.fsx#SourceBackupUnavailable":
|
|
1915
|
-
throw await de_SourceBackupUnavailableRes(parsedOutput, context);
|
|
1916
|
-
case "UnsupportedOperation":
|
|
1917
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
1918
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
1919
|
-
default:
|
|
1920
|
-
const parsedBody = parsedOutput.body;
|
|
1921
|
-
return throwDefaultError({
|
|
1922
|
-
output,
|
|
1923
|
-
parsedBody,
|
|
1924
|
-
errorCode
|
|
1925
|
-
});
|
|
1926
|
-
}
|
|
1927
|
-
}, "de_CopyBackupCommandError");
|
|
1928
1823
|
var de_CopySnapshotAndUpdateVolumeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1929
1824
|
if (output.statusCode >= 300) {
|
|
1930
|
-
return
|
|
1825
|
+
return de_CommandError(output, context);
|
|
1931
1826
|
}
|
|
1932
1827
|
const data = await parseBody(output.body, context);
|
|
1933
1828
|
let contents = {};
|
|
@@ -1938,37 +1833,9 @@ var de_CopySnapshotAndUpdateVolumeCommand = /* @__PURE__ */ __name(async (output
|
|
|
1938
1833
|
};
|
|
1939
1834
|
return response;
|
|
1940
1835
|
}, "de_CopySnapshotAndUpdateVolumeCommand");
|
|
1941
|
-
var de_CopySnapshotAndUpdateVolumeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1942
|
-
const parsedOutput = {
|
|
1943
|
-
...output,
|
|
1944
|
-
body: await parseErrorBody(output.body, context)
|
|
1945
|
-
};
|
|
1946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1947
|
-
switch (errorCode) {
|
|
1948
|
-
case "BadRequest":
|
|
1949
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1950
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1951
|
-
case "IncompatibleParameterError":
|
|
1952
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
1953
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
1954
|
-
case "InternalServerError":
|
|
1955
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
1956
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1957
|
-
case "ServiceLimitExceeded":
|
|
1958
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
1959
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
1960
|
-
default:
|
|
1961
|
-
const parsedBody = parsedOutput.body;
|
|
1962
|
-
return throwDefaultError({
|
|
1963
|
-
output,
|
|
1964
|
-
parsedBody,
|
|
1965
|
-
errorCode
|
|
1966
|
-
});
|
|
1967
|
-
}
|
|
1968
|
-
}, "de_CopySnapshotAndUpdateVolumeCommandError");
|
|
1969
1836
|
var de_CreateBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1970
1837
|
if (output.statusCode >= 300) {
|
|
1971
|
-
return
|
|
1838
|
+
return de_CommandError(output, context);
|
|
1972
1839
|
}
|
|
1973
1840
|
const data = await parseBody(output.body, context);
|
|
1974
1841
|
let contents = {};
|
|
@@ -1979,49 +1846,9 @@ var de_CreateBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1979
1846
|
};
|
|
1980
1847
|
return response;
|
|
1981
1848
|
}, "de_CreateBackupCommand");
|
|
1982
|
-
var de_CreateBackupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1983
|
-
const parsedOutput = {
|
|
1984
|
-
...output,
|
|
1985
|
-
body: await parseErrorBody(output.body, context)
|
|
1986
|
-
};
|
|
1987
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
|
-
switch (errorCode) {
|
|
1989
|
-
case "BackupInProgress":
|
|
1990
|
-
case "com.amazonaws.fsx#BackupInProgress":
|
|
1991
|
-
throw await de_BackupInProgressRes(parsedOutput, context);
|
|
1992
|
-
case "BadRequest":
|
|
1993
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
1994
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
1995
|
-
case "FileSystemNotFound":
|
|
1996
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
1997
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
1998
|
-
case "IncompatibleParameterError":
|
|
1999
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2000
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2001
|
-
case "InternalServerError":
|
|
2002
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2003
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2004
|
-
case "ServiceLimitExceeded":
|
|
2005
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2006
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2007
|
-
case "UnsupportedOperation":
|
|
2008
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
2009
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
2010
|
-
case "VolumeNotFound":
|
|
2011
|
-
case "com.amazonaws.fsx#VolumeNotFound":
|
|
2012
|
-
throw await de_VolumeNotFoundRes(parsedOutput, context);
|
|
2013
|
-
default:
|
|
2014
|
-
const parsedBody = parsedOutput.body;
|
|
2015
|
-
return throwDefaultError({
|
|
2016
|
-
output,
|
|
2017
|
-
parsedBody,
|
|
2018
|
-
errorCode
|
|
2019
|
-
});
|
|
2020
|
-
}
|
|
2021
|
-
}, "de_CreateBackupCommandError");
|
|
2022
1849
|
var de_CreateDataRepositoryAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2023
1850
|
if (output.statusCode >= 300) {
|
|
2024
|
-
return
|
|
1851
|
+
return de_CommandError(output, context);
|
|
2025
1852
|
}
|
|
2026
1853
|
const data = await parseBody(output.body, context);
|
|
2027
1854
|
let contents = {};
|
|
@@ -2032,43 +1859,9 @@ var de_CreateDataRepositoryAssociationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2032
1859
|
};
|
|
2033
1860
|
return response;
|
|
2034
1861
|
}, "de_CreateDataRepositoryAssociationCommand");
|
|
2035
|
-
var de_CreateDataRepositoryAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2036
|
-
const parsedOutput = {
|
|
2037
|
-
...output,
|
|
2038
|
-
body: await parseErrorBody(output.body, context)
|
|
2039
|
-
};
|
|
2040
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2041
|
-
switch (errorCode) {
|
|
2042
|
-
case "BadRequest":
|
|
2043
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2044
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2045
|
-
case "FileSystemNotFound":
|
|
2046
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
2047
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2048
|
-
case "IncompatibleParameterError":
|
|
2049
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2050
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2051
|
-
case "InternalServerError":
|
|
2052
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2053
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2054
|
-
case "ServiceLimitExceeded":
|
|
2055
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2056
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2057
|
-
case "UnsupportedOperation":
|
|
2058
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
2059
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
2060
|
-
default:
|
|
2061
|
-
const parsedBody = parsedOutput.body;
|
|
2062
|
-
return throwDefaultError({
|
|
2063
|
-
output,
|
|
2064
|
-
parsedBody,
|
|
2065
|
-
errorCode
|
|
2066
|
-
});
|
|
2067
|
-
}
|
|
2068
|
-
}, "de_CreateDataRepositoryAssociationCommandError");
|
|
2069
1862
|
var de_CreateDataRepositoryTaskCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2070
1863
|
if (output.statusCode >= 300) {
|
|
2071
|
-
return
|
|
1864
|
+
return de_CommandError(output, context);
|
|
2072
1865
|
}
|
|
2073
1866
|
const data = await parseBody(output.body, context);
|
|
2074
1867
|
let contents = {};
|
|
@@ -2079,46 +1872,9 @@ var de_CreateDataRepositoryTaskCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2079
1872
|
};
|
|
2080
1873
|
return response;
|
|
2081
1874
|
}, "de_CreateDataRepositoryTaskCommand");
|
|
2082
|
-
var de_CreateDataRepositoryTaskCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2083
|
-
const parsedOutput = {
|
|
2084
|
-
...output,
|
|
2085
|
-
body: await parseErrorBody(output.body, context)
|
|
2086
|
-
};
|
|
2087
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2088
|
-
switch (errorCode) {
|
|
2089
|
-
case "BadRequest":
|
|
2090
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2091
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2092
|
-
case "DataRepositoryTaskExecuting":
|
|
2093
|
-
case "com.amazonaws.fsx#DataRepositoryTaskExecuting":
|
|
2094
|
-
throw await de_DataRepositoryTaskExecutingRes(parsedOutput, context);
|
|
2095
|
-
case "FileSystemNotFound":
|
|
2096
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
2097
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2098
|
-
case "IncompatibleParameterError":
|
|
2099
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2100
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2101
|
-
case "InternalServerError":
|
|
2102
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2103
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2104
|
-
case "ServiceLimitExceeded":
|
|
2105
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2106
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2107
|
-
case "UnsupportedOperation":
|
|
2108
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
2109
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
2110
|
-
default:
|
|
2111
|
-
const parsedBody = parsedOutput.body;
|
|
2112
|
-
return throwDefaultError({
|
|
2113
|
-
output,
|
|
2114
|
-
parsedBody,
|
|
2115
|
-
errorCode
|
|
2116
|
-
});
|
|
2117
|
-
}
|
|
2118
|
-
}, "de_CreateDataRepositoryTaskCommandError");
|
|
2119
1875
|
var de_CreateFileCacheCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2120
1876
|
if (output.statusCode >= 300) {
|
|
2121
|
-
return
|
|
1877
|
+
return de_CommandError(output, context);
|
|
2122
1878
|
}
|
|
2123
1879
|
const data = await parseBody(output.body, context);
|
|
2124
1880
|
let contents = {};
|
|
@@ -2129,105 +1885,22 @@ var de_CreateFileCacheCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2129
1885
|
};
|
|
2130
1886
|
return response;
|
|
2131
1887
|
}, "de_CreateFileCacheCommand");
|
|
2132
|
-
var
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
case "IncompatibleParameterError":
|
|
2143
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2144
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2145
|
-
case "InternalServerError":
|
|
2146
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2147
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2148
|
-
case "InvalidNetworkSettings":
|
|
2149
|
-
case "com.amazonaws.fsx#InvalidNetworkSettings":
|
|
2150
|
-
throw await de_InvalidNetworkSettingsRes(parsedOutput, context);
|
|
2151
|
-
case "InvalidPerUnitStorageThroughput":
|
|
2152
|
-
case "com.amazonaws.fsx#InvalidPerUnitStorageThroughput":
|
|
2153
|
-
throw await de_InvalidPerUnitStorageThroughputRes(parsedOutput, context);
|
|
2154
|
-
case "MissingFileCacheConfiguration":
|
|
2155
|
-
case "com.amazonaws.fsx#MissingFileCacheConfiguration":
|
|
2156
|
-
throw await de_MissingFileCacheConfigurationRes(parsedOutput, context);
|
|
2157
|
-
case "ServiceLimitExceeded":
|
|
2158
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2159
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2160
|
-
default:
|
|
2161
|
-
const parsedBody = parsedOutput.body;
|
|
2162
|
-
return throwDefaultError({
|
|
2163
|
-
output,
|
|
2164
|
-
parsedBody,
|
|
2165
|
-
errorCode
|
|
2166
|
-
});
|
|
2167
|
-
}
|
|
2168
|
-
}, "de_CreateFileCacheCommandError");
|
|
2169
|
-
var de_CreateFileSystemCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2170
|
-
if (output.statusCode >= 300) {
|
|
2171
|
-
return de_CreateFileSystemCommandError(output, context);
|
|
2172
|
-
}
|
|
2173
|
-
const data = await parseBody(output.body, context);
|
|
2174
|
-
let contents = {};
|
|
2175
|
-
contents = de_CreateFileSystemResponse(data, context);
|
|
2176
|
-
const response = {
|
|
2177
|
-
$metadata: deserializeMetadata(output),
|
|
2178
|
-
...contents
|
|
1888
|
+
var de_CreateFileSystemCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1889
|
+
if (output.statusCode >= 300) {
|
|
1890
|
+
return de_CommandError(output, context);
|
|
1891
|
+
}
|
|
1892
|
+
const data = await parseBody(output.body, context);
|
|
1893
|
+
let contents = {};
|
|
1894
|
+
contents = de_CreateFileSystemResponse(data, context);
|
|
1895
|
+
const response = {
|
|
1896
|
+
$metadata: deserializeMetadata(output),
|
|
1897
|
+
...contents
|
|
2179
1898
|
};
|
|
2180
1899
|
return response;
|
|
2181
1900
|
}, "de_CreateFileSystemCommand");
|
|
2182
|
-
var de_CreateFileSystemCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2183
|
-
const parsedOutput = {
|
|
2184
|
-
...output,
|
|
2185
|
-
body: await parseErrorBody(output.body, context)
|
|
2186
|
-
};
|
|
2187
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2188
|
-
switch (errorCode) {
|
|
2189
|
-
case "ActiveDirectoryError":
|
|
2190
|
-
case "com.amazonaws.fsx#ActiveDirectoryError":
|
|
2191
|
-
throw await de_ActiveDirectoryErrorRes(parsedOutput, context);
|
|
2192
|
-
case "BadRequest":
|
|
2193
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2194
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2195
|
-
case "IncompatibleParameterError":
|
|
2196
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2197
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2198
|
-
case "InternalServerError":
|
|
2199
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2200
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2201
|
-
case "InvalidExportPath":
|
|
2202
|
-
case "com.amazonaws.fsx#InvalidExportPath":
|
|
2203
|
-
throw await de_InvalidExportPathRes(parsedOutput, context);
|
|
2204
|
-
case "InvalidImportPath":
|
|
2205
|
-
case "com.amazonaws.fsx#InvalidImportPath":
|
|
2206
|
-
throw await de_InvalidImportPathRes(parsedOutput, context);
|
|
2207
|
-
case "InvalidNetworkSettings":
|
|
2208
|
-
case "com.amazonaws.fsx#InvalidNetworkSettings":
|
|
2209
|
-
throw await de_InvalidNetworkSettingsRes(parsedOutput, context);
|
|
2210
|
-
case "InvalidPerUnitStorageThroughput":
|
|
2211
|
-
case "com.amazonaws.fsx#InvalidPerUnitStorageThroughput":
|
|
2212
|
-
throw await de_InvalidPerUnitStorageThroughputRes(parsedOutput, context);
|
|
2213
|
-
case "MissingFileSystemConfiguration":
|
|
2214
|
-
case "com.amazonaws.fsx#MissingFileSystemConfiguration":
|
|
2215
|
-
throw await de_MissingFileSystemConfigurationRes(parsedOutput, context);
|
|
2216
|
-
case "ServiceLimitExceeded":
|
|
2217
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2218
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2219
|
-
default:
|
|
2220
|
-
const parsedBody = parsedOutput.body;
|
|
2221
|
-
return throwDefaultError({
|
|
2222
|
-
output,
|
|
2223
|
-
parsedBody,
|
|
2224
|
-
errorCode
|
|
2225
|
-
});
|
|
2226
|
-
}
|
|
2227
|
-
}, "de_CreateFileSystemCommandError");
|
|
2228
1901
|
var de_CreateFileSystemFromBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2229
1902
|
if (output.statusCode >= 300) {
|
|
2230
|
-
return
|
|
1903
|
+
return de_CommandError(output, context);
|
|
2231
1904
|
}
|
|
2232
1905
|
const data = await parseBody(output.body, context);
|
|
2233
1906
|
let contents = {};
|
|
@@ -2238,52 +1911,9 @@ var de_CreateFileSystemFromBackupCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2238
1911
|
};
|
|
2239
1912
|
return response;
|
|
2240
1913
|
}, "de_CreateFileSystemFromBackupCommand");
|
|
2241
|
-
var de_CreateFileSystemFromBackupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2242
|
-
const parsedOutput = {
|
|
2243
|
-
...output,
|
|
2244
|
-
body: await parseErrorBody(output.body, context)
|
|
2245
|
-
};
|
|
2246
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2247
|
-
switch (errorCode) {
|
|
2248
|
-
case "ActiveDirectoryError":
|
|
2249
|
-
case "com.amazonaws.fsx#ActiveDirectoryError":
|
|
2250
|
-
throw await de_ActiveDirectoryErrorRes(parsedOutput, context);
|
|
2251
|
-
case "BackupNotFound":
|
|
2252
|
-
case "com.amazonaws.fsx#BackupNotFound":
|
|
2253
|
-
throw await de_BackupNotFoundRes(parsedOutput, context);
|
|
2254
|
-
case "BadRequest":
|
|
2255
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2256
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2257
|
-
case "IncompatibleParameterError":
|
|
2258
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2259
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2260
|
-
case "InternalServerError":
|
|
2261
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2262
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2263
|
-
case "InvalidNetworkSettings":
|
|
2264
|
-
case "com.amazonaws.fsx#InvalidNetworkSettings":
|
|
2265
|
-
throw await de_InvalidNetworkSettingsRes(parsedOutput, context);
|
|
2266
|
-
case "InvalidPerUnitStorageThroughput":
|
|
2267
|
-
case "com.amazonaws.fsx#InvalidPerUnitStorageThroughput":
|
|
2268
|
-
throw await de_InvalidPerUnitStorageThroughputRes(parsedOutput, context);
|
|
2269
|
-
case "MissingFileSystemConfiguration":
|
|
2270
|
-
case "com.amazonaws.fsx#MissingFileSystemConfiguration":
|
|
2271
|
-
throw await de_MissingFileSystemConfigurationRes(parsedOutput, context);
|
|
2272
|
-
case "ServiceLimitExceeded":
|
|
2273
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2274
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2275
|
-
default:
|
|
2276
|
-
const parsedBody = parsedOutput.body;
|
|
2277
|
-
return throwDefaultError({
|
|
2278
|
-
output,
|
|
2279
|
-
parsedBody,
|
|
2280
|
-
errorCode
|
|
2281
|
-
});
|
|
2282
|
-
}
|
|
2283
|
-
}, "de_CreateFileSystemFromBackupCommandError");
|
|
2284
1914
|
var de_CreateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2285
1915
|
if (output.statusCode >= 300) {
|
|
2286
|
-
return
|
|
1916
|
+
return de_CommandError(output, context);
|
|
2287
1917
|
}
|
|
2288
1918
|
const data = await parseBody(output.body, context);
|
|
2289
1919
|
let contents = {};
|
|
@@ -2294,37 +1924,9 @@ var de_CreateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2294
1924
|
};
|
|
2295
1925
|
return response;
|
|
2296
1926
|
}, "de_CreateSnapshotCommand");
|
|
2297
|
-
var de_CreateSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2298
|
-
const parsedOutput = {
|
|
2299
|
-
...output,
|
|
2300
|
-
body: await parseErrorBody(output.body, context)
|
|
2301
|
-
};
|
|
2302
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2303
|
-
switch (errorCode) {
|
|
2304
|
-
case "BadRequest":
|
|
2305
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2306
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2307
|
-
case "InternalServerError":
|
|
2308
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2309
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2310
|
-
case "ServiceLimitExceeded":
|
|
2311
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2312
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2313
|
-
case "VolumeNotFound":
|
|
2314
|
-
case "com.amazonaws.fsx#VolumeNotFound":
|
|
2315
|
-
throw await de_VolumeNotFoundRes(parsedOutput, context);
|
|
2316
|
-
default:
|
|
2317
|
-
const parsedBody = parsedOutput.body;
|
|
2318
|
-
return throwDefaultError({
|
|
2319
|
-
output,
|
|
2320
|
-
parsedBody,
|
|
2321
|
-
errorCode
|
|
2322
|
-
});
|
|
2323
|
-
}
|
|
2324
|
-
}, "de_CreateSnapshotCommandError");
|
|
2325
1927
|
var de_CreateStorageVirtualMachineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2326
1928
|
if (output.statusCode >= 300) {
|
|
2327
|
-
return
|
|
1929
|
+
return de_CommandError(output, context);
|
|
2328
1930
|
}
|
|
2329
1931
|
const data = await parseBody(output.body, context);
|
|
2330
1932
|
let contents = {};
|
|
@@ -2335,46 +1937,9 @@ var de_CreateStorageVirtualMachineCommand = /* @__PURE__ */ __name(async (output
|
|
|
2335
1937
|
};
|
|
2336
1938
|
return response;
|
|
2337
1939
|
}, "de_CreateStorageVirtualMachineCommand");
|
|
2338
|
-
var de_CreateStorageVirtualMachineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2339
|
-
const parsedOutput = {
|
|
2340
|
-
...output,
|
|
2341
|
-
body: await parseErrorBody(output.body, context)
|
|
2342
|
-
};
|
|
2343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2344
|
-
switch (errorCode) {
|
|
2345
|
-
case "ActiveDirectoryError":
|
|
2346
|
-
case "com.amazonaws.fsx#ActiveDirectoryError":
|
|
2347
|
-
throw await de_ActiveDirectoryErrorRes(parsedOutput, context);
|
|
2348
|
-
case "BadRequest":
|
|
2349
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2350
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2351
|
-
case "FileSystemNotFound":
|
|
2352
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
2353
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2354
|
-
case "IncompatibleParameterError":
|
|
2355
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2356
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2357
|
-
case "InternalServerError":
|
|
2358
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2359
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2360
|
-
case "ServiceLimitExceeded":
|
|
2361
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2362
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2363
|
-
case "UnsupportedOperation":
|
|
2364
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
2365
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
2366
|
-
default:
|
|
2367
|
-
const parsedBody = parsedOutput.body;
|
|
2368
|
-
return throwDefaultError({
|
|
2369
|
-
output,
|
|
2370
|
-
parsedBody,
|
|
2371
|
-
errorCode
|
|
2372
|
-
});
|
|
2373
|
-
}
|
|
2374
|
-
}, "de_CreateStorageVirtualMachineCommandError");
|
|
2375
1940
|
var de_CreateVolumeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2376
1941
|
if (output.statusCode >= 300) {
|
|
2377
|
-
return
|
|
1942
|
+
return de_CommandError(output, context);
|
|
2378
1943
|
}
|
|
2379
1944
|
const data = await parseBody(output.body, context);
|
|
2380
1945
|
let contents = {};
|
|
@@ -2385,49 +1950,9 @@ var de_CreateVolumeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2385
1950
|
};
|
|
2386
1951
|
return response;
|
|
2387
1952
|
}, "de_CreateVolumeCommand");
|
|
2388
|
-
var de_CreateVolumeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2389
|
-
const parsedOutput = {
|
|
2390
|
-
...output,
|
|
2391
|
-
body: await parseErrorBody(output.body, context)
|
|
2392
|
-
};
|
|
2393
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2394
|
-
switch (errorCode) {
|
|
2395
|
-
case "BadRequest":
|
|
2396
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2397
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2398
|
-
case "FileSystemNotFound":
|
|
2399
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
2400
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2401
|
-
case "IncompatibleParameterError":
|
|
2402
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2403
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2404
|
-
case "InternalServerError":
|
|
2405
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2406
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2407
|
-
case "MissingVolumeConfiguration":
|
|
2408
|
-
case "com.amazonaws.fsx#MissingVolumeConfiguration":
|
|
2409
|
-
throw await de_MissingVolumeConfigurationRes(parsedOutput, context);
|
|
2410
|
-
case "ServiceLimitExceeded":
|
|
2411
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2412
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2413
|
-
case "StorageVirtualMachineNotFound":
|
|
2414
|
-
case "com.amazonaws.fsx#StorageVirtualMachineNotFound":
|
|
2415
|
-
throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
|
|
2416
|
-
case "UnsupportedOperation":
|
|
2417
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
2418
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
2419
|
-
default:
|
|
2420
|
-
const parsedBody = parsedOutput.body;
|
|
2421
|
-
return throwDefaultError({
|
|
2422
|
-
output,
|
|
2423
|
-
parsedBody,
|
|
2424
|
-
errorCode
|
|
2425
|
-
});
|
|
2426
|
-
}
|
|
2427
|
-
}, "de_CreateVolumeCommandError");
|
|
2428
1953
|
var de_CreateVolumeFromBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2429
1954
|
if (output.statusCode >= 300) {
|
|
2430
|
-
return
|
|
1955
|
+
return de_CommandError(output, context);
|
|
2431
1956
|
}
|
|
2432
1957
|
const data = await parseBody(output.body, context);
|
|
2433
1958
|
let contents = {};
|
|
@@ -2438,49 +1963,9 @@ var de_CreateVolumeFromBackupCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2438
1963
|
};
|
|
2439
1964
|
return response;
|
|
2440
1965
|
}, "de_CreateVolumeFromBackupCommand");
|
|
2441
|
-
var de_CreateVolumeFromBackupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2442
|
-
const parsedOutput = {
|
|
2443
|
-
...output,
|
|
2444
|
-
body: await parseErrorBody(output.body, context)
|
|
2445
|
-
};
|
|
2446
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2447
|
-
switch (errorCode) {
|
|
2448
|
-
case "BackupNotFound":
|
|
2449
|
-
case "com.amazonaws.fsx#BackupNotFound":
|
|
2450
|
-
throw await de_BackupNotFoundRes(parsedOutput, context);
|
|
2451
|
-
case "BadRequest":
|
|
2452
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2453
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2454
|
-
case "FileSystemNotFound":
|
|
2455
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
2456
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2457
|
-
case "IncompatibleParameterError":
|
|
2458
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2459
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2460
|
-
case "InternalServerError":
|
|
2461
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2462
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2463
|
-
case "MissingVolumeConfiguration":
|
|
2464
|
-
case "com.amazonaws.fsx#MissingVolumeConfiguration":
|
|
2465
|
-
throw await de_MissingVolumeConfigurationRes(parsedOutput, context);
|
|
2466
|
-
case "ServiceLimitExceeded":
|
|
2467
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2468
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2469
|
-
case "StorageVirtualMachineNotFound":
|
|
2470
|
-
case "com.amazonaws.fsx#StorageVirtualMachineNotFound":
|
|
2471
|
-
throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
|
|
2472
|
-
default:
|
|
2473
|
-
const parsedBody = parsedOutput.body;
|
|
2474
|
-
return throwDefaultError({
|
|
2475
|
-
output,
|
|
2476
|
-
parsedBody,
|
|
2477
|
-
errorCode
|
|
2478
|
-
});
|
|
2479
|
-
}
|
|
2480
|
-
}, "de_CreateVolumeFromBackupCommandError");
|
|
2481
1966
|
var de_DeleteBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2482
1967
|
if (output.statusCode >= 300) {
|
|
2483
|
-
return
|
|
1968
|
+
return de_CommandError(output, context);
|
|
2484
1969
|
}
|
|
2485
1970
|
const data = await parseBody(output.body, context);
|
|
2486
1971
|
let contents = {};
|
|
@@ -2491,46 +1976,9 @@ var de_DeleteBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2491
1976
|
};
|
|
2492
1977
|
return response;
|
|
2493
1978
|
}, "de_DeleteBackupCommand");
|
|
2494
|
-
var de_DeleteBackupCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2495
|
-
const parsedOutput = {
|
|
2496
|
-
...output,
|
|
2497
|
-
body: await parseErrorBody(output.body, context)
|
|
2498
|
-
};
|
|
2499
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2500
|
-
switch (errorCode) {
|
|
2501
|
-
case "BackupBeingCopied":
|
|
2502
|
-
case "com.amazonaws.fsx#BackupBeingCopied":
|
|
2503
|
-
throw await de_BackupBeingCopiedRes(parsedOutput, context);
|
|
2504
|
-
case "BackupInProgress":
|
|
2505
|
-
case "com.amazonaws.fsx#BackupInProgress":
|
|
2506
|
-
throw await de_BackupInProgressRes(parsedOutput, context);
|
|
2507
|
-
case "BackupNotFound":
|
|
2508
|
-
case "com.amazonaws.fsx#BackupNotFound":
|
|
2509
|
-
throw await de_BackupNotFoundRes(parsedOutput, context);
|
|
2510
|
-
case "BackupRestoring":
|
|
2511
|
-
case "com.amazonaws.fsx#BackupRestoring":
|
|
2512
|
-
throw await de_BackupRestoringRes(parsedOutput, context);
|
|
2513
|
-
case "BadRequest":
|
|
2514
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2515
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2516
|
-
case "IncompatibleParameterError":
|
|
2517
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2518
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2519
|
-
case "InternalServerError":
|
|
2520
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2521
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2522
|
-
default:
|
|
2523
|
-
const parsedBody = parsedOutput.body;
|
|
2524
|
-
return throwDefaultError({
|
|
2525
|
-
output,
|
|
2526
|
-
parsedBody,
|
|
2527
|
-
errorCode
|
|
2528
|
-
});
|
|
2529
|
-
}
|
|
2530
|
-
}, "de_DeleteBackupCommandError");
|
|
2531
1979
|
var de_DeleteDataRepositoryAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2532
1980
|
if (output.statusCode >= 300) {
|
|
2533
|
-
return
|
|
1981
|
+
return de_CommandError(output, context);
|
|
2534
1982
|
}
|
|
2535
1983
|
const data = await parseBody(output.body, context);
|
|
2536
1984
|
let contents = {};
|
|
@@ -2541,40 +1989,9 @@ var de_DeleteDataRepositoryAssociationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2541
1989
|
};
|
|
2542
1990
|
return response;
|
|
2543
1991
|
}, "de_DeleteDataRepositoryAssociationCommand");
|
|
2544
|
-
var de_DeleteDataRepositoryAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2545
|
-
const parsedOutput = {
|
|
2546
|
-
...output,
|
|
2547
|
-
body: await parseErrorBody(output.body, context)
|
|
2548
|
-
};
|
|
2549
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2550
|
-
switch (errorCode) {
|
|
2551
|
-
case "BadRequest":
|
|
2552
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2553
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2554
|
-
case "DataRepositoryAssociationNotFound":
|
|
2555
|
-
case "com.amazonaws.fsx#DataRepositoryAssociationNotFound":
|
|
2556
|
-
throw await de_DataRepositoryAssociationNotFoundRes(parsedOutput, context);
|
|
2557
|
-
case "IncompatibleParameterError":
|
|
2558
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2559
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2560
|
-
case "InternalServerError":
|
|
2561
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2562
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2563
|
-
case "ServiceLimitExceeded":
|
|
2564
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2565
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2566
|
-
default:
|
|
2567
|
-
const parsedBody = parsedOutput.body;
|
|
2568
|
-
return throwDefaultError({
|
|
2569
|
-
output,
|
|
2570
|
-
parsedBody,
|
|
2571
|
-
errorCode
|
|
2572
|
-
});
|
|
2573
|
-
}
|
|
2574
|
-
}, "de_DeleteDataRepositoryAssociationCommandError");
|
|
2575
1992
|
var de_DeleteFileCacheCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2576
1993
|
if (output.statusCode >= 300) {
|
|
2577
|
-
return
|
|
1994
|
+
return de_CommandError(output, context);
|
|
2578
1995
|
}
|
|
2579
1996
|
const data = await parseBody(output.body, context);
|
|
2580
1997
|
let contents = {};
|
|
@@ -2585,40 +2002,9 @@ var de_DeleteFileCacheCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2585
2002
|
};
|
|
2586
2003
|
return response;
|
|
2587
2004
|
}, "de_DeleteFileCacheCommand");
|
|
2588
|
-
var de_DeleteFileCacheCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2589
|
-
const parsedOutput = {
|
|
2590
|
-
...output,
|
|
2591
|
-
body: await parseErrorBody(output.body, context)
|
|
2592
|
-
};
|
|
2593
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2594
|
-
switch (errorCode) {
|
|
2595
|
-
case "BadRequest":
|
|
2596
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2597
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2598
|
-
case "FileCacheNotFound":
|
|
2599
|
-
case "com.amazonaws.fsx#FileCacheNotFound":
|
|
2600
|
-
throw await de_FileCacheNotFoundRes(parsedOutput, context);
|
|
2601
|
-
case "IncompatibleParameterError":
|
|
2602
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2603
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2604
|
-
case "InternalServerError":
|
|
2605
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2606
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2607
|
-
case "ServiceLimitExceeded":
|
|
2608
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2609
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2610
|
-
default:
|
|
2611
|
-
const parsedBody = parsedOutput.body;
|
|
2612
|
-
return throwDefaultError({
|
|
2613
|
-
output,
|
|
2614
|
-
parsedBody,
|
|
2615
|
-
errorCode
|
|
2616
|
-
});
|
|
2617
|
-
}
|
|
2618
|
-
}, "de_DeleteFileCacheCommandError");
|
|
2619
2005
|
var de_DeleteFileSystemCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2620
2006
|
if (output.statusCode >= 300) {
|
|
2621
|
-
return
|
|
2007
|
+
return de_CommandError(output, context);
|
|
2622
2008
|
}
|
|
2623
2009
|
const data = await parseBody(output.body, context);
|
|
2624
2010
|
let contents = {};
|
|
@@ -2629,119 +2015,9 @@ var de_DeleteFileSystemCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2629
2015
|
};
|
|
2630
2016
|
return response;
|
|
2631
2017
|
}, "de_DeleteFileSystemCommand");
|
|
2632
|
-
var de_DeleteFileSystemCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2633
|
-
const parsedOutput = {
|
|
2634
|
-
...output,
|
|
2635
|
-
body: await parseErrorBody(output.body, context)
|
|
2636
|
-
};
|
|
2637
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2638
|
-
switch (errorCode) {
|
|
2639
|
-
case "BadRequest":
|
|
2640
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2641
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2642
|
-
case "FileSystemNotFound":
|
|
2643
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
2644
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2645
|
-
case "IncompatibleParameterError":
|
|
2646
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2647
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2648
|
-
case "InternalServerError":
|
|
2649
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2650
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2651
|
-
case "ServiceLimitExceeded":
|
|
2652
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2653
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2654
|
-
default:
|
|
2655
|
-
const parsedBody = parsedOutput.body;
|
|
2656
|
-
return throwDefaultError({
|
|
2657
|
-
output,
|
|
2658
|
-
parsedBody,
|
|
2659
|
-
errorCode
|
|
2660
|
-
});
|
|
2661
|
-
}
|
|
2662
|
-
}, "de_DeleteFileSystemCommandError");
|
|
2663
2018
|
var de_DeleteSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2664
2019
|
if (output.statusCode >= 300) {
|
|
2665
|
-
return
|
|
2666
|
-
}
|
|
2667
|
-
const data = await parseBody(output.body, context);
|
|
2668
|
-
let contents = {};
|
|
2669
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2670
|
-
const response = {
|
|
2671
|
-
$metadata: deserializeMetadata(output),
|
|
2672
|
-
...contents
|
|
2673
|
-
};
|
|
2674
|
-
return response;
|
|
2675
|
-
}, "de_DeleteSnapshotCommand");
|
|
2676
|
-
var de_DeleteSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2677
|
-
const parsedOutput = {
|
|
2678
|
-
...output,
|
|
2679
|
-
body: await parseErrorBody(output.body, context)
|
|
2680
|
-
};
|
|
2681
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2682
|
-
switch (errorCode) {
|
|
2683
|
-
case "BadRequest":
|
|
2684
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2685
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2686
|
-
case "InternalServerError":
|
|
2687
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2688
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2689
|
-
case "SnapshotNotFound":
|
|
2690
|
-
case "com.amazonaws.fsx#SnapshotNotFound":
|
|
2691
|
-
throw await de_SnapshotNotFoundRes(parsedOutput, context);
|
|
2692
|
-
default:
|
|
2693
|
-
const parsedBody = parsedOutput.body;
|
|
2694
|
-
return throwDefaultError({
|
|
2695
|
-
output,
|
|
2696
|
-
parsedBody,
|
|
2697
|
-
errorCode
|
|
2698
|
-
});
|
|
2699
|
-
}
|
|
2700
|
-
}, "de_DeleteSnapshotCommandError");
|
|
2701
|
-
var de_DeleteStorageVirtualMachineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2702
|
-
if (output.statusCode >= 300) {
|
|
2703
|
-
return de_DeleteStorageVirtualMachineCommandError(output, context);
|
|
2704
|
-
}
|
|
2705
|
-
const data = await parseBody(output.body, context);
|
|
2706
|
-
let contents = {};
|
|
2707
|
-
contents = (0, import_smithy_client._json)(data);
|
|
2708
|
-
const response = {
|
|
2709
|
-
$metadata: deserializeMetadata(output),
|
|
2710
|
-
...contents
|
|
2711
|
-
};
|
|
2712
|
-
return response;
|
|
2713
|
-
}, "de_DeleteStorageVirtualMachineCommand");
|
|
2714
|
-
var de_DeleteStorageVirtualMachineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2715
|
-
const parsedOutput = {
|
|
2716
|
-
...output,
|
|
2717
|
-
body: await parseErrorBody(output.body, context)
|
|
2718
|
-
};
|
|
2719
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2720
|
-
switch (errorCode) {
|
|
2721
|
-
case "BadRequest":
|
|
2722
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2723
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2724
|
-
case "IncompatibleParameterError":
|
|
2725
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2726
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2727
|
-
case "InternalServerError":
|
|
2728
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2729
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2730
|
-
case "StorageVirtualMachineNotFound":
|
|
2731
|
-
case "com.amazonaws.fsx#StorageVirtualMachineNotFound":
|
|
2732
|
-
throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
|
|
2733
|
-
default:
|
|
2734
|
-
const parsedBody = parsedOutput.body;
|
|
2735
|
-
return throwDefaultError({
|
|
2736
|
-
output,
|
|
2737
|
-
parsedBody,
|
|
2738
|
-
errorCode
|
|
2739
|
-
});
|
|
2740
|
-
}
|
|
2741
|
-
}, "de_DeleteStorageVirtualMachineCommandError");
|
|
2742
|
-
var de_DeleteVolumeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2743
|
-
if (output.statusCode >= 300) {
|
|
2744
|
-
return de_DeleteVolumeCommandError(output, context);
|
|
2020
|
+
return de_CommandError(output, context);
|
|
2745
2021
|
}
|
|
2746
2022
|
const data = await parseBody(output.body, context);
|
|
2747
2023
|
let contents = {};
|
|
@@ -2751,41 +2027,36 @@ var de_DeleteVolumeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2751
2027
|
...contents
|
|
2752
2028
|
};
|
|
2753
2029
|
return response;
|
|
2754
|
-
}, "
|
|
2755
|
-
var
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
case "ServiceLimitExceeded":
|
|
2772
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2773
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2774
|
-
case "VolumeNotFound":
|
|
2775
|
-
case "com.amazonaws.fsx#VolumeNotFound":
|
|
2776
|
-
throw await de_VolumeNotFoundRes(parsedOutput, context);
|
|
2777
|
-
default:
|
|
2778
|
-
const parsedBody = parsedOutput.body;
|
|
2779
|
-
return throwDefaultError({
|
|
2780
|
-
output,
|
|
2781
|
-
parsedBody,
|
|
2782
|
-
errorCode
|
|
2783
|
-
});
|
|
2030
|
+
}, "de_DeleteSnapshotCommand");
|
|
2031
|
+
var de_DeleteStorageVirtualMachineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2032
|
+
if (output.statusCode >= 300) {
|
|
2033
|
+
return de_CommandError(output, context);
|
|
2034
|
+
}
|
|
2035
|
+
const data = await parseBody(output.body, context);
|
|
2036
|
+
let contents = {};
|
|
2037
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2038
|
+
const response = {
|
|
2039
|
+
$metadata: deserializeMetadata(output),
|
|
2040
|
+
...contents
|
|
2041
|
+
};
|
|
2042
|
+
return response;
|
|
2043
|
+
}, "de_DeleteStorageVirtualMachineCommand");
|
|
2044
|
+
var de_DeleteVolumeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2045
|
+
if (output.statusCode >= 300) {
|
|
2046
|
+
return de_CommandError(output, context);
|
|
2784
2047
|
}
|
|
2785
|
-
|
|
2048
|
+
const data = await parseBody(output.body, context);
|
|
2049
|
+
let contents = {};
|
|
2050
|
+
contents = (0, import_smithy_client._json)(data);
|
|
2051
|
+
const response = {
|
|
2052
|
+
$metadata: deserializeMetadata(output),
|
|
2053
|
+
...contents
|
|
2054
|
+
};
|
|
2055
|
+
return response;
|
|
2056
|
+
}, "de_DeleteVolumeCommand");
|
|
2786
2057
|
var de_DescribeBackupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2787
2058
|
if (output.statusCode >= 300) {
|
|
2788
|
-
return
|
|
2059
|
+
return de_CommandError(output, context);
|
|
2789
2060
|
}
|
|
2790
2061
|
const data = await parseBody(output.body, context);
|
|
2791
2062
|
let contents = {};
|
|
@@ -2796,40 +2067,9 @@ var de_DescribeBackupsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2796
2067
|
};
|
|
2797
2068
|
return response;
|
|
2798
2069
|
}, "de_DescribeBackupsCommand");
|
|
2799
|
-
var de_DescribeBackupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2800
|
-
const parsedOutput = {
|
|
2801
|
-
...output,
|
|
2802
|
-
body: await parseErrorBody(output.body, context)
|
|
2803
|
-
};
|
|
2804
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2805
|
-
switch (errorCode) {
|
|
2806
|
-
case "BackupNotFound":
|
|
2807
|
-
case "com.amazonaws.fsx#BackupNotFound":
|
|
2808
|
-
throw await de_BackupNotFoundRes(parsedOutput, context);
|
|
2809
|
-
case "BadRequest":
|
|
2810
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2811
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2812
|
-
case "FileSystemNotFound":
|
|
2813
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
2814
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2815
|
-
case "InternalServerError":
|
|
2816
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2817
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2818
|
-
case "VolumeNotFound":
|
|
2819
|
-
case "com.amazonaws.fsx#VolumeNotFound":
|
|
2820
|
-
throw await de_VolumeNotFoundRes(parsedOutput, context);
|
|
2821
|
-
default:
|
|
2822
|
-
const parsedBody = parsedOutput.body;
|
|
2823
|
-
return throwDefaultError({
|
|
2824
|
-
output,
|
|
2825
|
-
parsedBody,
|
|
2826
|
-
errorCode
|
|
2827
|
-
});
|
|
2828
|
-
}
|
|
2829
|
-
}, "de_DescribeBackupsCommandError");
|
|
2830
2070
|
var de_DescribeDataRepositoryAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2831
2071
|
if (output.statusCode >= 300) {
|
|
2832
|
-
return
|
|
2072
|
+
return de_CommandError(output, context);
|
|
2833
2073
|
}
|
|
2834
2074
|
const data = await parseBody(output.body, context);
|
|
2835
2075
|
let contents = {};
|
|
@@ -2840,40 +2080,9 @@ var de_DescribeDataRepositoryAssociationsCommand = /* @__PURE__ */ __name(async
|
|
|
2840
2080
|
};
|
|
2841
2081
|
return response;
|
|
2842
2082
|
}, "de_DescribeDataRepositoryAssociationsCommand");
|
|
2843
|
-
var de_DescribeDataRepositoryAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2844
|
-
const parsedOutput = {
|
|
2845
|
-
...output,
|
|
2846
|
-
body: await parseErrorBody(output.body, context)
|
|
2847
|
-
};
|
|
2848
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2849
|
-
switch (errorCode) {
|
|
2850
|
-
case "BadRequest":
|
|
2851
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2852
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2853
|
-
case "DataRepositoryAssociationNotFound":
|
|
2854
|
-
case "com.amazonaws.fsx#DataRepositoryAssociationNotFound":
|
|
2855
|
-
throw await de_DataRepositoryAssociationNotFoundRes(parsedOutput, context);
|
|
2856
|
-
case "FileSystemNotFound":
|
|
2857
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
2858
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2859
|
-
case "InternalServerError":
|
|
2860
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2861
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2862
|
-
case "InvalidDataRepositoryType":
|
|
2863
|
-
case "com.amazonaws.fsx#InvalidDataRepositoryType":
|
|
2864
|
-
throw await de_InvalidDataRepositoryTypeRes(parsedOutput, context);
|
|
2865
|
-
default:
|
|
2866
|
-
const parsedBody = parsedOutput.body;
|
|
2867
|
-
return throwDefaultError({
|
|
2868
|
-
output,
|
|
2869
|
-
parsedBody,
|
|
2870
|
-
errorCode
|
|
2871
|
-
});
|
|
2872
|
-
}
|
|
2873
|
-
}, "de_DescribeDataRepositoryAssociationsCommandError");
|
|
2874
2083
|
var de_DescribeDataRepositoryTasksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2875
2084
|
if (output.statusCode >= 300) {
|
|
2876
|
-
return
|
|
2085
|
+
return de_CommandError(output, context);
|
|
2877
2086
|
}
|
|
2878
2087
|
const data = await parseBody(output.body, context);
|
|
2879
2088
|
let contents = {};
|
|
@@ -2884,37 +2093,9 @@ var de_DescribeDataRepositoryTasksCommand = /* @__PURE__ */ __name(async (output
|
|
|
2884
2093
|
};
|
|
2885
2094
|
return response;
|
|
2886
2095
|
}, "de_DescribeDataRepositoryTasksCommand");
|
|
2887
|
-
var de_DescribeDataRepositoryTasksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2888
|
-
const parsedOutput = {
|
|
2889
|
-
...output,
|
|
2890
|
-
body: await parseErrorBody(output.body, context)
|
|
2891
|
-
};
|
|
2892
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2893
|
-
switch (errorCode) {
|
|
2894
|
-
case "BadRequest":
|
|
2895
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2896
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2897
|
-
case "DataRepositoryTaskNotFound":
|
|
2898
|
-
case "com.amazonaws.fsx#DataRepositoryTaskNotFound":
|
|
2899
|
-
throw await de_DataRepositoryTaskNotFoundRes(parsedOutput, context);
|
|
2900
|
-
case "FileSystemNotFound":
|
|
2901
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
2902
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2903
|
-
case "InternalServerError":
|
|
2904
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2905
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2906
|
-
default:
|
|
2907
|
-
const parsedBody = parsedOutput.body;
|
|
2908
|
-
return throwDefaultError({
|
|
2909
|
-
output,
|
|
2910
|
-
parsedBody,
|
|
2911
|
-
errorCode
|
|
2912
|
-
});
|
|
2913
|
-
}
|
|
2914
|
-
}, "de_DescribeDataRepositoryTasksCommandError");
|
|
2915
2096
|
var de_DescribeFileCachesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2916
2097
|
if (output.statusCode >= 300) {
|
|
2917
|
-
return
|
|
2098
|
+
return de_CommandError(output, context);
|
|
2918
2099
|
}
|
|
2919
2100
|
const data = await parseBody(output.body, context);
|
|
2920
2101
|
let contents = {};
|
|
@@ -2925,34 +2106,9 @@ var de_DescribeFileCachesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2925
2106
|
};
|
|
2926
2107
|
return response;
|
|
2927
2108
|
}, "de_DescribeFileCachesCommand");
|
|
2928
|
-
var de_DescribeFileCachesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2929
|
-
const parsedOutput = {
|
|
2930
|
-
...output,
|
|
2931
|
-
body: await parseErrorBody(output.body, context)
|
|
2932
|
-
};
|
|
2933
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2934
|
-
switch (errorCode) {
|
|
2935
|
-
case "BadRequest":
|
|
2936
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2937
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2938
|
-
case "FileCacheNotFound":
|
|
2939
|
-
case "com.amazonaws.fsx#FileCacheNotFound":
|
|
2940
|
-
throw await de_FileCacheNotFoundRes(parsedOutput, context);
|
|
2941
|
-
case "InternalServerError":
|
|
2942
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2943
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2944
|
-
default:
|
|
2945
|
-
const parsedBody = parsedOutput.body;
|
|
2946
|
-
return throwDefaultError({
|
|
2947
|
-
output,
|
|
2948
|
-
parsedBody,
|
|
2949
|
-
errorCode
|
|
2950
|
-
});
|
|
2951
|
-
}
|
|
2952
|
-
}, "de_DescribeFileCachesCommandError");
|
|
2953
2109
|
var de_DescribeFileSystemAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2954
2110
|
if (output.statusCode >= 300) {
|
|
2955
|
-
return
|
|
2111
|
+
return de_CommandError(output, context);
|
|
2956
2112
|
}
|
|
2957
2113
|
const data = await parseBody(output.body, context);
|
|
2958
2114
|
let contents = {};
|
|
@@ -2963,34 +2119,9 @@ var de_DescribeFileSystemAliasesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2963
2119
|
};
|
|
2964
2120
|
return response;
|
|
2965
2121
|
}, "de_DescribeFileSystemAliasesCommand");
|
|
2966
|
-
var de_DescribeFileSystemAliasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2967
|
-
const parsedOutput = {
|
|
2968
|
-
...output,
|
|
2969
|
-
body: await parseErrorBody(output.body, context)
|
|
2970
|
-
};
|
|
2971
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2972
|
-
switch (errorCode) {
|
|
2973
|
-
case "BadRequest":
|
|
2974
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
2975
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
2976
|
-
case "FileSystemNotFound":
|
|
2977
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
2978
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
2979
|
-
case "InternalServerError":
|
|
2980
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
2981
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2982
|
-
default:
|
|
2983
|
-
const parsedBody = parsedOutput.body;
|
|
2984
|
-
return throwDefaultError({
|
|
2985
|
-
output,
|
|
2986
|
-
parsedBody,
|
|
2987
|
-
errorCode
|
|
2988
|
-
});
|
|
2989
|
-
}
|
|
2990
|
-
}, "de_DescribeFileSystemAliasesCommandError");
|
|
2991
2122
|
var de_DescribeFileSystemsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2992
2123
|
if (output.statusCode >= 300) {
|
|
2993
|
-
return
|
|
2124
|
+
return de_CommandError(output, context);
|
|
2994
2125
|
}
|
|
2995
2126
|
const data = await parseBody(output.body, context);
|
|
2996
2127
|
let contents = {};
|
|
@@ -3001,34 +2132,9 @@ var de_DescribeFileSystemsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3001
2132
|
};
|
|
3002
2133
|
return response;
|
|
3003
2134
|
}, "de_DescribeFileSystemsCommand");
|
|
3004
|
-
var de_DescribeFileSystemsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3005
|
-
const parsedOutput = {
|
|
3006
|
-
...output,
|
|
3007
|
-
body: await parseErrorBody(output.body, context)
|
|
3008
|
-
};
|
|
3009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3010
|
-
switch (errorCode) {
|
|
3011
|
-
case "BadRequest":
|
|
3012
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3013
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3014
|
-
case "FileSystemNotFound":
|
|
3015
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
3016
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
3017
|
-
case "InternalServerError":
|
|
3018
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3019
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3020
|
-
default:
|
|
3021
|
-
const parsedBody = parsedOutput.body;
|
|
3022
|
-
return throwDefaultError({
|
|
3023
|
-
output,
|
|
3024
|
-
parsedBody,
|
|
3025
|
-
errorCode
|
|
3026
|
-
});
|
|
3027
|
-
}
|
|
3028
|
-
}, "de_DescribeFileSystemsCommandError");
|
|
3029
2135
|
var de_DescribeSharedVpcConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3030
2136
|
if (output.statusCode >= 300) {
|
|
3031
|
-
return
|
|
2137
|
+
return de_CommandError(output, context);
|
|
3032
2138
|
}
|
|
3033
2139
|
const data = await parseBody(output.body, context);
|
|
3034
2140
|
let contents = {};
|
|
@@ -3039,31 +2145,9 @@ var de_DescribeSharedVpcConfigurationCommand = /* @__PURE__ */ __name(async (out
|
|
|
3039
2145
|
};
|
|
3040
2146
|
return response;
|
|
3041
2147
|
}, "de_DescribeSharedVpcConfigurationCommand");
|
|
3042
|
-
var de_DescribeSharedVpcConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3043
|
-
const parsedOutput = {
|
|
3044
|
-
...output,
|
|
3045
|
-
body: await parseErrorBody(output.body, context)
|
|
3046
|
-
};
|
|
3047
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3048
|
-
switch (errorCode) {
|
|
3049
|
-
case "BadRequest":
|
|
3050
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3051
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3052
|
-
case "InternalServerError":
|
|
3053
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3054
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3055
|
-
default:
|
|
3056
|
-
const parsedBody = parsedOutput.body;
|
|
3057
|
-
return throwDefaultError({
|
|
3058
|
-
output,
|
|
3059
|
-
parsedBody,
|
|
3060
|
-
errorCode
|
|
3061
|
-
});
|
|
3062
|
-
}
|
|
3063
|
-
}, "de_DescribeSharedVpcConfigurationCommandError");
|
|
3064
2148
|
var de_DescribeSnapshotsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3065
2149
|
if (output.statusCode >= 300) {
|
|
3066
|
-
return
|
|
2150
|
+
return de_CommandError(output, context);
|
|
3067
2151
|
}
|
|
3068
2152
|
const data = await parseBody(output.body, context);
|
|
3069
2153
|
let contents = {};
|
|
@@ -3072,74 +2156,24 @@ var de_DescribeSnapshotsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3072
2156
|
$metadata: deserializeMetadata(output),
|
|
3073
2157
|
...contents
|
|
3074
2158
|
};
|
|
3075
|
-
return response;
|
|
3076
|
-
}, "de_DescribeSnapshotsCommand");
|
|
3077
|
-
var
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
body: await parseErrorBody(output.body, context)
|
|
3081
|
-
};
|
|
3082
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3083
|
-
switch (errorCode) {
|
|
3084
|
-
case "BadRequest":
|
|
3085
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3086
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3087
|
-
case "InternalServerError":
|
|
3088
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3089
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3090
|
-
case "SnapshotNotFound":
|
|
3091
|
-
case "com.amazonaws.fsx#SnapshotNotFound":
|
|
3092
|
-
throw await de_SnapshotNotFoundRes(parsedOutput, context);
|
|
3093
|
-
default:
|
|
3094
|
-
const parsedBody = parsedOutput.body;
|
|
3095
|
-
return throwDefaultError({
|
|
3096
|
-
output,
|
|
3097
|
-
parsedBody,
|
|
3098
|
-
errorCode
|
|
3099
|
-
});
|
|
3100
|
-
}
|
|
3101
|
-
}, "de_DescribeSnapshotsCommandError");
|
|
3102
|
-
var de_DescribeStorageVirtualMachinesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3103
|
-
if (output.statusCode >= 300) {
|
|
3104
|
-
return de_DescribeStorageVirtualMachinesCommandError(output, context);
|
|
3105
|
-
}
|
|
3106
|
-
const data = await parseBody(output.body, context);
|
|
3107
|
-
let contents = {};
|
|
3108
|
-
contents = de_DescribeStorageVirtualMachinesResponse(data, context);
|
|
3109
|
-
const response = {
|
|
3110
|
-
$metadata: deserializeMetadata(output),
|
|
3111
|
-
...contents
|
|
3112
|
-
};
|
|
3113
|
-
return response;
|
|
3114
|
-
}, "de_DescribeStorageVirtualMachinesCommand");
|
|
3115
|
-
var de_DescribeStorageVirtualMachinesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3116
|
-
const parsedOutput = {
|
|
3117
|
-
...output,
|
|
3118
|
-
body: await parseErrorBody(output.body, context)
|
|
3119
|
-
};
|
|
3120
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3121
|
-
switch (errorCode) {
|
|
3122
|
-
case "BadRequest":
|
|
3123
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3124
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3125
|
-
case "InternalServerError":
|
|
3126
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3127
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3128
|
-
case "StorageVirtualMachineNotFound":
|
|
3129
|
-
case "com.amazonaws.fsx#StorageVirtualMachineNotFound":
|
|
3130
|
-
throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
|
|
3131
|
-
default:
|
|
3132
|
-
const parsedBody = parsedOutput.body;
|
|
3133
|
-
return throwDefaultError({
|
|
3134
|
-
output,
|
|
3135
|
-
parsedBody,
|
|
3136
|
-
errorCode
|
|
3137
|
-
});
|
|
2159
|
+
return response;
|
|
2160
|
+
}, "de_DescribeSnapshotsCommand");
|
|
2161
|
+
var de_DescribeStorageVirtualMachinesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2162
|
+
if (output.statusCode >= 300) {
|
|
2163
|
+
return de_CommandError(output, context);
|
|
3138
2164
|
}
|
|
3139
|
-
|
|
2165
|
+
const data = await parseBody(output.body, context);
|
|
2166
|
+
let contents = {};
|
|
2167
|
+
contents = de_DescribeStorageVirtualMachinesResponse(data, context);
|
|
2168
|
+
const response = {
|
|
2169
|
+
$metadata: deserializeMetadata(output),
|
|
2170
|
+
...contents
|
|
2171
|
+
};
|
|
2172
|
+
return response;
|
|
2173
|
+
}, "de_DescribeStorageVirtualMachinesCommand");
|
|
3140
2174
|
var de_DescribeVolumesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3141
2175
|
if (output.statusCode >= 300) {
|
|
3142
|
-
return
|
|
2176
|
+
return de_CommandError(output, context);
|
|
3143
2177
|
}
|
|
3144
2178
|
const data = await parseBody(output.body, context);
|
|
3145
2179
|
let contents = {};
|
|
@@ -3150,34 +2184,9 @@ var de_DescribeVolumesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3150
2184
|
};
|
|
3151
2185
|
return response;
|
|
3152
2186
|
}, "de_DescribeVolumesCommand");
|
|
3153
|
-
var de_DescribeVolumesCommandError = /* @__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 "BadRequest":
|
|
3161
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3162
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3163
|
-
case "InternalServerError":
|
|
3164
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3165
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3166
|
-
case "VolumeNotFound":
|
|
3167
|
-
case "com.amazonaws.fsx#VolumeNotFound":
|
|
3168
|
-
throw await de_VolumeNotFoundRes(parsedOutput, context);
|
|
3169
|
-
default:
|
|
3170
|
-
const parsedBody = parsedOutput.body;
|
|
3171
|
-
return throwDefaultError({
|
|
3172
|
-
output,
|
|
3173
|
-
parsedBody,
|
|
3174
|
-
errorCode
|
|
3175
|
-
});
|
|
3176
|
-
}
|
|
3177
|
-
}, "de_DescribeVolumesCommandError");
|
|
3178
2187
|
var de_DisassociateFileSystemAliasesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3179
2188
|
if (output.statusCode >= 300) {
|
|
3180
|
-
return
|
|
2189
|
+
return de_CommandError(output, context);
|
|
3181
2190
|
}
|
|
3182
2191
|
const data = await parseBody(output.body, context);
|
|
3183
2192
|
let contents = {};
|
|
@@ -3188,34 +2197,9 @@ var de_DisassociateFileSystemAliasesCommand = /* @__PURE__ */ __name(async (outp
|
|
|
3188
2197
|
};
|
|
3189
2198
|
return response;
|
|
3190
2199
|
}, "de_DisassociateFileSystemAliasesCommand");
|
|
3191
|
-
var de_DisassociateFileSystemAliasesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3192
|
-
const parsedOutput = {
|
|
3193
|
-
...output,
|
|
3194
|
-
body: await parseErrorBody(output.body, context)
|
|
3195
|
-
};
|
|
3196
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3197
|
-
switch (errorCode) {
|
|
3198
|
-
case "BadRequest":
|
|
3199
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3200
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3201
|
-
case "FileSystemNotFound":
|
|
3202
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
3203
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
3204
|
-
case "InternalServerError":
|
|
3205
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3206
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3207
|
-
default:
|
|
3208
|
-
const parsedBody = parsedOutput.body;
|
|
3209
|
-
return throwDefaultError({
|
|
3210
|
-
output,
|
|
3211
|
-
parsedBody,
|
|
3212
|
-
errorCode
|
|
3213
|
-
});
|
|
3214
|
-
}
|
|
3215
|
-
}, "de_DisassociateFileSystemAliasesCommandError");
|
|
3216
2200
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3217
2201
|
if (output.statusCode >= 300) {
|
|
3218
|
-
return
|
|
2202
|
+
return de_CommandError(output, context);
|
|
3219
2203
|
}
|
|
3220
2204
|
const data = await parseBody(output.body, context);
|
|
3221
2205
|
let contents = {};
|
|
@@ -3226,40 +2210,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3226
2210
|
};
|
|
3227
2211
|
return response;
|
|
3228
2212
|
}, "de_ListTagsForResourceCommand");
|
|
3229
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3230
|
-
const parsedOutput = {
|
|
3231
|
-
...output,
|
|
3232
|
-
body: await parseErrorBody(output.body, context)
|
|
3233
|
-
};
|
|
3234
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3235
|
-
switch (errorCode) {
|
|
3236
|
-
case "BadRequest":
|
|
3237
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3238
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3239
|
-
case "InternalServerError":
|
|
3240
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3241
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3242
|
-
case "NotServiceResourceError":
|
|
3243
|
-
case "com.amazonaws.fsx#NotServiceResourceError":
|
|
3244
|
-
throw await de_NotServiceResourceErrorRes(parsedOutput, context);
|
|
3245
|
-
case "ResourceDoesNotSupportTagging":
|
|
3246
|
-
case "com.amazonaws.fsx#ResourceDoesNotSupportTagging":
|
|
3247
|
-
throw await de_ResourceDoesNotSupportTaggingRes(parsedOutput, context);
|
|
3248
|
-
case "ResourceNotFound":
|
|
3249
|
-
case "com.amazonaws.fsx#ResourceNotFound":
|
|
3250
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
3251
|
-
default:
|
|
3252
|
-
const parsedBody = parsedOutput.body;
|
|
3253
|
-
return throwDefaultError({
|
|
3254
|
-
output,
|
|
3255
|
-
parsedBody,
|
|
3256
|
-
errorCode
|
|
3257
|
-
});
|
|
3258
|
-
}
|
|
3259
|
-
}, "de_ListTagsForResourceCommandError");
|
|
3260
2213
|
var de_ReleaseFileSystemNfsV3LocksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3261
2214
|
if (output.statusCode >= 300) {
|
|
3262
|
-
return
|
|
2215
|
+
return de_CommandError(output, context);
|
|
3263
2216
|
}
|
|
3264
2217
|
const data = await parseBody(output.body, context);
|
|
3265
2218
|
let contents = {};
|
|
@@ -3270,40 +2223,9 @@ var de_ReleaseFileSystemNfsV3LocksCommand = /* @__PURE__ */ __name(async (output
|
|
|
3270
2223
|
};
|
|
3271
2224
|
return response;
|
|
3272
2225
|
}, "de_ReleaseFileSystemNfsV3LocksCommand");
|
|
3273
|
-
var de_ReleaseFileSystemNfsV3LocksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3274
|
-
const parsedOutput = {
|
|
3275
|
-
...output,
|
|
3276
|
-
body: await parseErrorBody(output.body, context)
|
|
3277
|
-
};
|
|
3278
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3279
|
-
switch (errorCode) {
|
|
3280
|
-
case "BadRequest":
|
|
3281
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3282
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3283
|
-
case "FileSystemNotFound":
|
|
3284
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
3285
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
3286
|
-
case "IncompatibleParameterError":
|
|
3287
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
3288
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
3289
|
-
case "InternalServerError":
|
|
3290
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3291
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3292
|
-
case "ServiceLimitExceeded":
|
|
3293
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
3294
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
3295
|
-
default:
|
|
3296
|
-
const parsedBody = parsedOutput.body;
|
|
3297
|
-
return throwDefaultError({
|
|
3298
|
-
output,
|
|
3299
|
-
parsedBody,
|
|
3300
|
-
errorCode
|
|
3301
|
-
});
|
|
3302
|
-
}
|
|
3303
|
-
}, "de_ReleaseFileSystemNfsV3LocksCommandError");
|
|
3304
2226
|
var de_RestoreVolumeFromSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3305
2227
|
if (output.statusCode >= 300) {
|
|
3306
|
-
return
|
|
2228
|
+
return de_CommandError(output, context);
|
|
3307
2229
|
}
|
|
3308
2230
|
const data = await parseBody(output.body, context);
|
|
3309
2231
|
let contents = {};
|
|
@@ -3314,34 +2236,9 @@ var de_RestoreVolumeFromSnapshotCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3314
2236
|
};
|
|
3315
2237
|
return response;
|
|
3316
2238
|
}, "de_RestoreVolumeFromSnapshotCommand");
|
|
3317
|
-
var de_RestoreVolumeFromSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3318
|
-
const parsedOutput = {
|
|
3319
|
-
...output,
|
|
3320
|
-
body: await parseErrorBody(output.body, context)
|
|
3321
|
-
};
|
|
3322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3323
|
-
switch (errorCode) {
|
|
3324
|
-
case "BadRequest":
|
|
3325
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3326
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3327
|
-
case "InternalServerError":
|
|
3328
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3329
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3330
|
-
case "VolumeNotFound":
|
|
3331
|
-
case "com.amazonaws.fsx#VolumeNotFound":
|
|
3332
|
-
throw await de_VolumeNotFoundRes(parsedOutput, context);
|
|
3333
|
-
default:
|
|
3334
|
-
const parsedBody = parsedOutput.body;
|
|
3335
|
-
return throwDefaultError({
|
|
3336
|
-
output,
|
|
3337
|
-
parsedBody,
|
|
3338
|
-
errorCode
|
|
3339
|
-
});
|
|
3340
|
-
}
|
|
3341
|
-
}, "de_RestoreVolumeFromSnapshotCommandError");
|
|
3342
2239
|
var de_StartMisconfiguredStateRecoveryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3343
2240
|
if (output.statusCode >= 300) {
|
|
3344
|
-
return
|
|
2241
|
+
return de_CommandError(output, context);
|
|
3345
2242
|
}
|
|
3346
2243
|
const data = await parseBody(output.body, context);
|
|
3347
2244
|
let contents = {};
|
|
@@ -3352,34 +2249,9 @@ var de_StartMisconfiguredStateRecoveryCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3352
2249
|
};
|
|
3353
2250
|
return response;
|
|
3354
2251
|
}, "de_StartMisconfiguredStateRecoveryCommand");
|
|
3355
|
-
var de_StartMisconfiguredStateRecoveryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3356
|
-
const parsedOutput = {
|
|
3357
|
-
...output,
|
|
3358
|
-
body: await parseErrorBody(output.body, context)
|
|
3359
|
-
};
|
|
3360
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3361
|
-
switch (errorCode) {
|
|
3362
|
-
case "BadRequest":
|
|
3363
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3364
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3365
|
-
case "FileSystemNotFound":
|
|
3366
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
3367
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
3368
|
-
case "InternalServerError":
|
|
3369
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3370
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3371
|
-
default:
|
|
3372
|
-
const parsedBody = parsedOutput.body;
|
|
3373
|
-
return throwDefaultError({
|
|
3374
|
-
output,
|
|
3375
|
-
parsedBody,
|
|
3376
|
-
errorCode
|
|
3377
|
-
});
|
|
3378
|
-
}
|
|
3379
|
-
}, "de_StartMisconfiguredStateRecoveryCommandError");
|
|
3380
2252
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3381
2253
|
if (output.statusCode >= 300) {
|
|
3382
|
-
return
|
|
2254
|
+
return de_CommandError(output, context);
|
|
3383
2255
|
}
|
|
3384
2256
|
const data = await parseBody(output.body, context);
|
|
3385
2257
|
let contents = {};
|
|
@@ -3390,40 +2262,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3390
2262
|
};
|
|
3391
2263
|
return response;
|
|
3392
2264
|
}, "de_TagResourceCommand");
|
|
3393
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3394
|
-
const parsedOutput = {
|
|
3395
|
-
...output,
|
|
3396
|
-
body: await parseErrorBody(output.body, context)
|
|
3397
|
-
};
|
|
3398
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3399
|
-
switch (errorCode) {
|
|
3400
|
-
case "BadRequest":
|
|
3401
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3402
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3403
|
-
case "InternalServerError":
|
|
3404
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3405
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3406
|
-
case "NotServiceResourceError":
|
|
3407
|
-
case "com.amazonaws.fsx#NotServiceResourceError":
|
|
3408
|
-
throw await de_NotServiceResourceErrorRes(parsedOutput, context);
|
|
3409
|
-
case "ResourceDoesNotSupportTagging":
|
|
3410
|
-
case "com.amazonaws.fsx#ResourceDoesNotSupportTagging":
|
|
3411
|
-
throw await de_ResourceDoesNotSupportTaggingRes(parsedOutput, context);
|
|
3412
|
-
case "ResourceNotFound":
|
|
3413
|
-
case "com.amazonaws.fsx#ResourceNotFound":
|
|
3414
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
3415
|
-
default:
|
|
3416
|
-
const parsedBody = parsedOutput.body;
|
|
3417
|
-
return throwDefaultError({
|
|
3418
|
-
output,
|
|
3419
|
-
parsedBody,
|
|
3420
|
-
errorCode
|
|
3421
|
-
});
|
|
3422
|
-
}
|
|
3423
|
-
}, "de_TagResourceCommandError");
|
|
3424
2265
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3425
2266
|
if (output.statusCode >= 300) {
|
|
3426
|
-
return
|
|
2267
|
+
return de_CommandError(output, context);
|
|
3427
2268
|
}
|
|
3428
2269
|
const data = await parseBody(output.body, context);
|
|
3429
2270
|
let contents = {};
|
|
@@ -3434,84 +2275,22 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3434
2275
|
};
|
|
3435
2276
|
return response;
|
|
3436
2277
|
}, "de_UntagResourceCommand");
|
|
3437
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3438
|
-
const parsedOutput = {
|
|
3439
|
-
...output,
|
|
3440
|
-
body: await parseErrorBody(output.body, context)
|
|
3441
|
-
};
|
|
3442
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3443
|
-
switch (errorCode) {
|
|
3444
|
-
case "BadRequest":
|
|
3445
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3446
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3447
|
-
case "InternalServerError":
|
|
3448
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3449
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3450
|
-
case "NotServiceResourceError":
|
|
3451
|
-
case "com.amazonaws.fsx#NotServiceResourceError":
|
|
3452
|
-
throw await de_NotServiceResourceErrorRes(parsedOutput, context);
|
|
3453
|
-
case "ResourceDoesNotSupportTagging":
|
|
3454
|
-
case "com.amazonaws.fsx#ResourceDoesNotSupportTagging":
|
|
3455
|
-
throw await de_ResourceDoesNotSupportTaggingRes(parsedOutput, context);
|
|
3456
|
-
case "ResourceNotFound":
|
|
3457
|
-
case "com.amazonaws.fsx#ResourceNotFound":
|
|
3458
|
-
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
3459
|
-
default:
|
|
3460
|
-
const parsedBody = parsedOutput.body;
|
|
3461
|
-
return throwDefaultError({
|
|
3462
|
-
output,
|
|
3463
|
-
parsedBody,
|
|
3464
|
-
errorCode
|
|
3465
|
-
});
|
|
3466
|
-
}
|
|
3467
|
-
}, "de_UntagResourceCommandError");
|
|
3468
2278
|
var de_UpdateDataRepositoryAssociationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3469
2279
|
if (output.statusCode >= 300) {
|
|
3470
|
-
return
|
|
2280
|
+
return de_CommandError(output, context);
|
|
3471
2281
|
}
|
|
3472
2282
|
const data = await parseBody(output.body, context);
|
|
3473
2283
|
let contents = {};
|
|
3474
2284
|
contents = de_UpdateDataRepositoryAssociationResponse(data, context);
|
|
3475
|
-
const response = {
|
|
3476
|
-
$metadata: deserializeMetadata(output),
|
|
3477
|
-
...contents
|
|
3478
|
-
};
|
|
3479
|
-
return response;
|
|
3480
|
-
}, "de_UpdateDataRepositoryAssociationCommand");
|
|
3481
|
-
var de_UpdateDataRepositoryAssociationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3482
|
-
const parsedOutput = {
|
|
3483
|
-
...output,
|
|
3484
|
-
body: await parseErrorBody(output.body, context)
|
|
3485
|
-
};
|
|
3486
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3487
|
-
switch (errorCode) {
|
|
3488
|
-
case "BadRequest":
|
|
3489
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3490
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3491
|
-
case "DataRepositoryAssociationNotFound":
|
|
3492
|
-
case "com.amazonaws.fsx#DataRepositoryAssociationNotFound":
|
|
3493
|
-
throw await de_DataRepositoryAssociationNotFoundRes(parsedOutput, context);
|
|
3494
|
-
case "IncompatibleParameterError":
|
|
3495
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
3496
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
3497
|
-
case "InternalServerError":
|
|
3498
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3499
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3500
|
-
case "ServiceLimitExceeded":
|
|
3501
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
3502
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
3503
|
-
default:
|
|
3504
|
-
const parsedBody = parsedOutput.body;
|
|
3505
|
-
return throwDefaultError({
|
|
3506
|
-
output,
|
|
3507
|
-
parsedBody,
|
|
3508
|
-
errorCode
|
|
3509
|
-
});
|
|
3510
|
-
}
|
|
3511
|
-
}, "de_UpdateDataRepositoryAssociationCommandError");
|
|
2285
|
+
const response = {
|
|
2286
|
+
$metadata: deserializeMetadata(output),
|
|
2287
|
+
...contents
|
|
2288
|
+
};
|
|
2289
|
+
return response;
|
|
2290
|
+
}, "de_UpdateDataRepositoryAssociationCommand");
|
|
3512
2291
|
var de_UpdateFileCacheCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3513
2292
|
if (output.statusCode >= 300) {
|
|
3514
|
-
return
|
|
2293
|
+
return de_CommandError(output, context);
|
|
3515
2294
|
}
|
|
3516
2295
|
const data = await parseBody(output.body, context);
|
|
3517
2296
|
let contents = {};
|
|
@@ -3522,46 +2301,9 @@ var de_UpdateFileCacheCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3522
2301
|
};
|
|
3523
2302
|
return response;
|
|
3524
2303
|
}, "de_UpdateFileCacheCommand");
|
|
3525
|
-
var de_UpdateFileCacheCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3526
|
-
const parsedOutput = {
|
|
3527
|
-
...output,
|
|
3528
|
-
body: await parseErrorBody(output.body, context)
|
|
3529
|
-
};
|
|
3530
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3531
|
-
switch (errorCode) {
|
|
3532
|
-
case "BadRequest":
|
|
3533
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3534
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3535
|
-
case "FileCacheNotFound":
|
|
3536
|
-
case "com.amazonaws.fsx#FileCacheNotFound":
|
|
3537
|
-
throw await de_FileCacheNotFoundRes(parsedOutput, context);
|
|
3538
|
-
case "IncompatibleParameterError":
|
|
3539
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
3540
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
3541
|
-
case "InternalServerError":
|
|
3542
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3543
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3544
|
-
case "MissingFileCacheConfiguration":
|
|
3545
|
-
case "com.amazonaws.fsx#MissingFileCacheConfiguration":
|
|
3546
|
-
throw await de_MissingFileCacheConfigurationRes(parsedOutput, context);
|
|
3547
|
-
case "ServiceLimitExceeded":
|
|
3548
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
3549
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
3550
|
-
case "UnsupportedOperation":
|
|
3551
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
3552
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
3553
|
-
default:
|
|
3554
|
-
const parsedBody = parsedOutput.body;
|
|
3555
|
-
return throwDefaultError({
|
|
3556
|
-
output,
|
|
3557
|
-
parsedBody,
|
|
3558
|
-
errorCode
|
|
3559
|
-
});
|
|
3560
|
-
}
|
|
3561
|
-
}, "de_UpdateFileCacheCommandError");
|
|
3562
2304
|
var de_UpdateFileSystemCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3563
2305
|
if (output.statusCode >= 300) {
|
|
3564
|
-
return
|
|
2306
|
+
return de_CommandError(output, context);
|
|
3565
2307
|
}
|
|
3566
2308
|
const data = await parseBody(output.body, context);
|
|
3567
2309
|
let contents = {};
|
|
@@ -3572,49 +2314,9 @@ var de_UpdateFileSystemCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3572
2314
|
};
|
|
3573
2315
|
return response;
|
|
3574
2316
|
}, "de_UpdateFileSystemCommand");
|
|
3575
|
-
var de_UpdateFileSystemCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3576
|
-
const parsedOutput = {
|
|
3577
|
-
...output,
|
|
3578
|
-
body: await parseErrorBody(output.body, context)
|
|
3579
|
-
};
|
|
3580
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3581
|
-
switch (errorCode) {
|
|
3582
|
-
case "BadRequest":
|
|
3583
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3584
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3585
|
-
case "FileSystemNotFound":
|
|
3586
|
-
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
3587
|
-
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
3588
|
-
case "IncompatibleParameterError":
|
|
3589
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
3590
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
3591
|
-
case "InternalServerError":
|
|
3592
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3593
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3594
|
-
case "InvalidNetworkSettings":
|
|
3595
|
-
case "com.amazonaws.fsx#InvalidNetworkSettings":
|
|
3596
|
-
throw await de_InvalidNetworkSettingsRes(parsedOutput, context);
|
|
3597
|
-
case "MissingFileSystemConfiguration":
|
|
3598
|
-
case "com.amazonaws.fsx#MissingFileSystemConfiguration":
|
|
3599
|
-
throw await de_MissingFileSystemConfigurationRes(parsedOutput, context);
|
|
3600
|
-
case "ServiceLimitExceeded":
|
|
3601
|
-
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
3602
|
-
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
3603
|
-
case "UnsupportedOperation":
|
|
3604
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
3605
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
3606
|
-
default:
|
|
3607
|
-
const parsedBody = parsedOutput.body;
|
|
3608
|
-
return throwDefaultError({
|
|
3609
|
-
output,
|
|
3610
|
-
parsedBody,
|
|
3611
|
-
errorCode
|
|
3612
|
-
});
|
|
3613
|
-
}
|
|
3614
|
-
}, "de_UpdateFileSystemCommandError");
|
|
3615
2317
|
var de_UpdateSharedVpcConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3616
2318
|
if (output.statusCode >= 300) {
|
|
3617
|
-
return
|
|
2319
|
+
return de_CommandError(output, context);
|
|
3618
2320
|
}
|
|
3619
2321
|
const data = await parseBody(output.body, context);
|
|
3620
2322
|
let contents = {};
|
|
@@ -3625,34 +2327,9 @@ var de_UpdateSharedVpcConfigurationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3625
2327
|
};
|
|
3626
2328
|
return response;
|
|
3627
2329
|
}, "de_UpdateSharedVpcConfigurationCommand");
|
|
3628
|
-
var de_UpdateSharedVpcConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3629
|
-
const parsedOutput = {
|
|
3630
|
-
...output,
|
|
3631
|
-
body: await parseErrorBody(output.body, context)
|
|
3632
|
-
};
|
|
3633
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3634
|
-
switch (errorCode) {
|
|
3635
|
-
case "BadRequest":
|
|
3636
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3637
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3638
|
-
case "IncompatibleParameterError":
|
|
3639
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
3640
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
3641
|
-
case "InternalServerError":
|
|
3642
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3643
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3644
|
-
default:
|
|
3645
|
-
const parsedBody = parsedOutput.body;
|
|
3646
|
-
return throwDefaultError({
|
|
3647
|
-
output,
|
|
3648
|
-
parsedBody,
|
|
3649
|
-
errorCode
|
|
3650
|
-
});
|
|
3651
|
-
}
|
|
3652
|
-
}, "de_UpdateSharedVpcConfigurationCommandError");
|
|
3653
2330
|
var de_UpdateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3654
2331
|
if (output.statusCode >= 300) {
|
|
3655
|
-
return
|
|
2332
|
+
return de_CommandError(output, context);
|
|
3656
2333
|
}
|
|
3657
2334
|
const data = await parseBody(output.body, context);
|
|
3658
2335
|
let contents = {};
|
|
@@ -3663,34 +2340,9 @@ var de_UpdateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3663
2340
|
};
|
|
3664
2341
|
return response;
|
|
3665
2342
|
}, "de_UpdateSnapshotCommand");
|
|
3666
|
-
var de_UpdateSnapshotCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3667
|
-
const parsedOutput = {
|
|
3668
|
-
...output,
|
|
3669
|
-
body: await parseErrorBody(output.body, context)
|
|
3670
|
-
};
|
|
3671
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3672
|
-
switch (errorCode) {
|
|
3673
|
-
case "BadRequest":
|
|
3674
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3675
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3676
|
-
case "InternalServerError":
|
|
3677
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3678
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3679
|
-
case "SnapshotNotFound":
|
|
3680
|
-
case "com.amazonaws.fsx#SnapshotNotFound":
|
|
3681
|
-
throw await de_SnapshotNotFoundRes(parsedOutput, context);
|
|
3682
|
-
default:
|
|
3683
|
-
const parsedBody = parsedOutput.body;
|
|
3684
|
-
return throwDefaultError({
|
|
3685
|
-
output,
|
|
3686
|
-
parsedBody,
|
|
3687
|
-
errorCode
|
|
3688
|
-
});
|
|
3689
|
-
}
|
|
3690
|
-
}, "de_UpdateSnapshotCommandError");
|
|
3691
2343
|
var de_UpdateStorageVirtualMachineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3692
2344
|
if (output.statusCode >= 300) {
|
|
3693
|
-
return
|
|
2345
|
+
return de_CommandError(output, context);
|
|
3694
2346
|
}
|
|
3695
2347
|
const data = await parseBody(output.body, context);
|
|
3696
2348
|
let contents = {};
|
|
@@ -3701,40 +2353,9 @@ var de_UpdateStorageVirtualMachineCommand = /* @__PURE__ */ __name(async (output
|
|
|
3701
2353
|
};
|
|
3702
2354
|
return response;
|
|
3703
2355
|
}, "de_UpdateStorageVirtualMachineCommand");
|
|
3704
|
-
var de_UpdateStorageVirtualMachineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3705
|
-
const parsedOutput = {
|
|
3706
|
-
...output,
|
|
3707
|
-
body: await parseErrorBody(output.body, context)
|
|
3708
|
-
};
|
|
3709
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3710
|
-
switch (errorCode) {
|
|
3711
|
-
case "BadRequest":
|
|
3712
|
-
case "com.amazonaws.fsx#BadRequest":
|
|
3713
|
-
throw await de_BadRequestRes(parsedOutput, context);
|
|
3714
|
-
case "IncompatibleParameterError":
|
|
3715
|
-
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
3716
|
-
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
3717
|
-
case "InternalServerError":
|
|
3718
|
-
case "com.amazonaws.fsx#InternalServerError":
|
|
3719
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3720
|
-
case "StorageVirtualMachineNotFound":
|
|
3721
|
-
case "com.amazonaws.fsx#StorageVirtualMachineNotFound":
|
|
3722
|
-
throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
|
|
3723
|
-
case "UnsupportedOperation":
|
|
3724
|
-
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
3725
|
-
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
3726
|
-
default:
|
|
3727
|
-
const parsedBody = parsedOutput.body;
|
|
3728
|
-
return throwDefaultError({
|
|
3729
|
-
output,
|
|
3730
|
-
parsedBody,
|
|
3731
|
-
errorCode
|
|
3732
|
-
});
|
|
3733
|
-
}
|
|
3734
|
-
}, "de_UpdateStorageVirtualMachineCommandError");
|
|
3735
2356
|
var de_UpdateVolumeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3736
2357
|
if (output.statusCode >= 300) {
|
|
3737
|
-
return
|
|
2358
|
+
return de_CommandError(output, context);
|
|
3738
2359
|
}
|
|
3739
2360
|
const data = await parseBody(output.body, context);
|
|
3740
2361
|
let contents = {};
|
|
@@ -3745,7 +2366,7 @@ var de_UpdateVolumeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3745
2366
|
};
|
|
3746
2367
|
return response;
|
|
3747
2368
|
}, "de_UpdateVolumeCommand");
|
|
3748
|
-
var
|
|
2369
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3749
2370
|
const parsedOutput = {
|
|
3750
2371
|
...output,
|
|
3751
2372
|
body: await parseErrorBody(output.body, context)
|
|
@@ -3755,18 +2376,108 @@ var de_UpdateVolumeCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
3755
2376
|
case "BadRequest":
|
|
3756
2377
|
case "com.amazonaws.fsx#BadRequest":
|
|
3757
2378
|
throw await de_BadRequestRes(parsedOutput, context);
|
|
3758
|
-
case "
|
|
3759
|
-
case "com.amazonaws.fsx#
|
|
3760
|
-
throw await
|
|
2379
|
+
case "FileSystemNotFound":
|
|
2380
|
+
case "com.amazonaws.fsx#FileSystemNotFound":
|
|
2381
|
+
throw await de_FileSystemNotFoundRes(parsedOutput, context);
|
|
3761
2382
|
case "InternalServerError":
|
|
3762
2383
|
case "com.amazonaws.fsx#InternalServerError":
|
|
3763
2384
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
3764
|
-
case "
|
|
3765
|
-
case "com.amazonaws.fsx#
|
|
3766
|
-
throw await
|
|
2385
|
+
case "DataRepositoryTaskEnded":
|
|
2386
|
+
case "com.amazonaws.fsx#DataRepositoryTaskEnded":
|
|
2387
|
+
throw await de_DataRepositoryTaskEndedRes(parsedOutput, context);
|
|
2388
|
+
case "DataRepositoryTaskNotFound":
|
|
2389
|
+
case "com.amazonaws.fsx#DataRepositoryTaskNotFound":
|
|
2390
|
+
throw await de_DataRepositoryTaskNotFoundRes(parsedOutput, context);
|
|
2391
|
+
case "UnsupportedOperation":
|
|
2392
|
+
case "com.amazonaws.fsx#UnsupportedOperation":
|
|
2393
|
+
throw await de_UnsupportedOperationRes(parsedOutput, context);
|
|
2394
|
+
case "BackupNotFound":
|
|
2395
|
+
case "com.amazonaws.fsx#BackupNotFound":
|
|
2396
|
+
throw await de_BackupNotFoundRes(parsedOutput, context);
|
|
2397
|
+
case "IncompatibleParameterError":
|
|
2398
|
+
case "com.amazonaws.fsx#IncompatibleParameterError":
|
|
2399
|
+
throw await de_IncompatibleParameterErrorRes(parsedOutput, context);
|
|
2400
|
+
case "IncompatibleRegionForMultiAZ":
|
|
2401
|
+
case "com.amazonaws.fsx#IncompatibleRegionForMultiAZ":
|
|
2402
|
+
throw await de_IncompatibleRegionForMultiAZRes(parsedOutput, context);
|
|
2403
|
+
case "InvalidDestinationKmsKey":
|
|
2404
|
+
case "com.amazonaws.fsx#InvalidDestinationKmsKey":
|
|
2405
|
+
throw await de_InvalidDestinationKmsKeyRes(parsedOutput, context);
|
|
2406
|
+
case "InvalidRegion":
|
|
2407
|
+
case "com.amazonaws.fsx#InvalidRegion":
|
|
2408
|
+
throw await de_InvalidRegionRes(parsedOutput, context);
|
|
2409
|
+
case "InvalidSourceKmsKey":
|
|
2410
|
+
case "com.amazonaws.fsx#InvalidSourceKmsKey":
|
|
2411
|
+
throw await de_InvalidSourceKmsKeyRes(parsedOutput, context);
|
|
2412
|
+
case "ServiceLimitExceeded":
|
|
2413
|
+
case "com.amazonaws.fsx#ServiceLimitExceeded":
|
|
2414
|
+
throw await de_ServiceLimitExceededRes(parsedOutput, context);
|
|
2415
|
+
case "SourceBackupUnavailable":
|
|
2416
|
+
case "com.amazonaws.fsx#SourceBackupUnavailable":
|
|
2417
|
+
throw await de_SourceBackupUnavailableRes(parsedOutput, context);
|
|
2418
|
+
case "BackupInProgress":
|
|
2419
|
+
case "com.amazonaws.fsx#BackupInProgress":
|
|
2420
|
+
throw await de_BackupInProgressRes(parsedOutput, context);
|
|
3767
2421
|
case "VolumeNotFound":
|
|
3768
2422
|
case "com.amazonaws.fsx#VolumeNotFound":
|
|
3769
2423
|
throw await de_VolumeNotFoundRes(parsedOutput, context);
|
|
2424
|
+
case "DataRepositoryTaskExecuting":
|
|
2425
|
+
case "com.amazonaws.fsx#DataRepositoryTaskExecuting":
|
|
2426
|
+
throw await de_DataRepositoryTaskExecutingRes(parsedOutput, context);
|
|
2427
|
+
case "InvalidNetworkSettings":
|
|
2428
|
+
case "com.amazonaws.fsx#InvalidNetworkSettings":
|
|
2429
|
+
throw await de_InvalidNetworkSettingsRes(parsedOutput, context);
|
|
2430
|
+
case "InvalidPerUnitStorageThroughput":
|
|
2431
|
+
case "com.amazonaws.fsx#InvalidPerUnitStorageThroughput":
|
|
2432
|
+
throw await de_InvalidPerUnitStorageThroughputRes(parsedOutput, context);
|
|
2433
|
+
case "MissingFileCacheConfiguration":
|
|
2434
|
+
case "com.amazonaws.fsx#MissingFileCacheConfiguration":
|
|
2435
|
+
throw await de_MissingFileCacheConfigurationRes(parsedOutput, context);
|
|
2436
|
+
case "ActiveDirectoryError":
|
|
2437
|
+
case "com.amazonaws.fsx#ActiveDirectoryError":
|
|
2438
|
+
throw await de_ActiveDirectoryErrorRes(parsedOutput, context);
|
|
2439
|
+
case "InvalidExportPath":
|
|
2440
|
+
case "com.amazonaws.fsx#InvalidExportPath":
|
|
2441
|
+
throw await de_InvalidExportPathRes(parsedOutput, context);
|
|
2442
|
+
case "InvalidImportPath":
|
|
2443
|
+
case "com.amazonaws.fsx#InvalidImportPath":
|
|
2444
|
+
throw await de_InvalidImportPathRes(parsedOutput, context);
|
|
2445
|
+
case "MissingFileSystemConfiguration":
|
|
2446
|
+
case "com.amazonaws.fsx#MissingFileSystemConfiguration":
|
|
2447
|
+
throw await de_MissingFileSystemConfigurationRes(parsedOutput, context);
|
|
2448
|
+
case "MissingVolumeConfiguration":
|
|
2449
|
+
case "com.amazonaws.fsx#MissingVolumeConfiguration":
|
|
2450
|
+
throw await de_MissingVolumeConfigurationRes(parsedOutput, context);
|
|
2451
|
+
case "StorageVirtualMachineNotFound":
|
|
2452
|
+
case "com.amazonaws.fsx#StorageVirtualMachineNotFound":
|
|
2453
|
+
throw await de_StorageVirtualMachineNotFoundRes(parsedOutput, context);
|
|
2454
|
+
case "BackupBeingCopied":
|
|
2455
|
+
case "com.amazonaws.fsx#BackupBeingCopied":
|
|
2456
|
+
throw await de_BackupBeingCopiedRes(parsedOutput, context);
|
|
2457
|
+
case "BackupRestoring":
|
|
2458
|
+
case "com.amazonaws.fsx#BackupRestoring":
|
|
2459
|
+
throw await de_BackupRestoringRes(parsedOutput, context);
|
|
2460
|
+
case "DataRepositoryAssociationNotFound":
|
|
2461
|
+
case "com.amazonaws.fsx#DataRepositoryAssociationNotFound":
|
|
2462
|
+
throw await de_DataRepositoryAssociationNotFoundRes(parsedOutput, context);
|
|
2463
|
+
case "FileCacheNotFound":
|
|
2464
|
+
case "com.amazonaws.fsx#FileCacheNotFound":
|
|
2465
|
+
throw await de_FileCacheNotFoundRes(parsedOutput, context);
|
|
2466
|
+
case "SnapshotNotFound":
|
|
2467
|
+
case "com.amazonaws.fsx#SnapshotNotFound":
|
|
2468
|
+
throw await de_SnapshotNotFoundRes(parsedOutput, context);
|
|
2469
|
+
case "InvalidDataRepositoryType":
|
|
2470
|
+
case "com.amazonaws.fsx#InvalidDataRepositoryType":
|
|
2471
|
+
throw await de_InvalidDataRepositoryTypeRes(parsedOutput, context);
|
|
2472
|
+
case "NotServiceResourceError":
|
|
2473
|
+
case "com.amazonaws.fsx#NotServiceResourceError":
|
|
2474
|
+
throw await de_NotServiceResourceErrorRes(parsedOutput, context);
|
|
2475
|
+
case "ResourceDoesNotSupportTagging":
|
|
2476
|
+
case "com.amazonaws.fsx#ResourceDoesNotSupportTagging":
|
|
2477
|
+
throw await de_ResourceDoesNotSupportTaggingRes(parsedOutput, context);
|
|
2478
|
+
case "ResourceNotFound":
|
|
2479
|
+
case "com.amazonaws.fsx#ResourceNotFound":
|
|
2480
|
+
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
3770
2481
|
default:
|
|
3771
2482
|
const parsedBody = parsedOutput.body;
|
|
3772
2483
|
return throwDefaultError({
|
|
@@ -3775,7 +2486,7 @@ var de_UpdateVolumeCommandError = /* @__PURE__ */ __name(async (output, context)
|
|
|
3775
2486
|
errorCode
|
|
3776
2487
|
});
|
|
3777
2488
|
}
|
|
3778
|
-
}, "
|
|
2489
|
+
}, "de_CommandError");
|
|
3779
2490
|
var de_ActiveDirectoryErrorRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
3780
2491
|
const body = parsedOutput.body;
|
|
3781
2492
|
const deserialized = (0, import_smithy_client._json)(body);
|