@aws-sdk/client-omics 3.504.0 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1817,7 +1817,7 @@ export const se_UploadReadSetPartCommand = async (input, context) => {
1817
1817
  };
1818
1818
  export const de_AbortMultipartReadSetUploadCommand = async (output, context) => {
1819
1819
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1820
- return de_AbortMultipartReadSetUploadCommandError(output, context);
1820
+ return de_CommandError(output, context);
1821
1821
  }
1822
1822
  const contents = map({
1823
1823
  $metadata: deserializeMetadata(output),
@@ -1825,49 +1825,9 @@ export const de_AbortMultipartReadSetUploadCommand = async (output, context) =>
1825
1825
  await collectBody(output.body, context);
1826
1826
  return contents;
1827
1827
  };
1828
- const de_AbortMultipartReadSetUploadCommandError = async (output, context) => {
1829
- const parsedOutput = {
1830
- ...output,
1831
- body: await parseErrorBody(output.body, context),
1832
- };
1833
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1834
- switch (errorCode) {
1835
- case "AccessDeniedException":
1836
- case "com.amazonaws.omics#AccessDeniedException":
1837
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1838
- case "InternalServerException":
1839
- case "com.amazonaws.omics#InternalServerException":
1840
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1841
- case "NotSupportedOperationException":
1842
- case "com.amazonaws.omics#NotSupportedOperationException":
1843
- throw await de_NotSupportedOperationExceptionRes(parsedOutput, context);
1844
- case "RequestTimeoutException":
1845
- case "com.amazonaws.omics#RequestTimeoutException":
1846
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
1847
- case "ResourceNotFoundException":
1848
- case "com.amazonaws.omics#ResourceNotFoundException":
1849
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1850
- case "ServiceQuotaExceededException":
1851
- case "com.amazonaws.omics#ServiceQuotaExceededException":
1852
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1853
- case "ThrottlingException":
1854
- case "com.amazonaws.omics#ThrottlingException":
1855
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1856
- case "ValidationException":
1857
- case "com.amazonaws.omics#ValidationException":
1858
- throw await de_ValidationExceptionRes(parsedOutput, context);
1859
- default:
1860
- const parsedBody = parsedOutput.body;
1861
- return throwDefaultError({
1862
- output,
1863
- parsedBody,
1864
- errorCode,
1865
- });
1866
- }
1867
- };
1868
1828
  export const de_AcceptShareCommand = async (output, context) => {
1869
1829
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1870
- return de_AcceptShareCommandError(output, context);
1830
+ return de_CommandError(output, context);
1871
1831
  }
1872
1832
  const contents = map({
1873
1833
  $metadata: deserializeMetadata(output),
@@ -1879,46 +1839,9 @@ export const de_AcceptShareCommand = async (output, context) => {
1879
1839
  Object.assign(contents, doc);
1880
1840
  return contents;
1881
1841
  };
1882
- const de_AcceptShareCommandError = async (output, context) => {
1883
- const parsedOutput = {
1884
- ...output,
1885
- body: await parseErrorBody(output.body, context),
1886
- };
1887
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1888
- switch (errorCode) {
1889
- case "AccessDeniedException":
1890
- case "com.amazonaws.omics#AccessDeniedException":
1891
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1892
- case "ConflictException":
1893
- case "com.amazonaws.omics#ConflictException":
1894
- throw await de_ConflictExceptionRes(parsedOutput, context);
1895
- case "InternalServerException":
1896
- case "com.amazonaws.omics#InternalServerException":
1897
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1898
- case "ResourceNotFoundException":
1899
- case "com.amazonaws.omics#ResourceNotFoundException":
1900
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1901
- case "ServiceQuotaExceededException":
1902
- case "com.amazonaws.omics#ServiceQuotaExceededException":
1903
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1904
- case "ThrottlingException":
1905
- case "com.amazonaws.omics#ThrottlingException":
1906
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1907
- case "ValidationException":
1908
- case "com.amazonaws.omics#ValidationException":
1909
- throw await de_ValidationExceptionRes(parsedOutput, context);
1910
- default:
1911
- const parsedBody = parsedOutput.body;
1912
- return throwDefaultError({
1913
- output,
1914
- parsedBody,
1915
- errorCode,
1916
- });
1917
- }
1918
- };
1919
1842
  export const de_BatchDeleteReadSetCommand = async (output, context) => {
1920
1843
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1921
- return de_BatchDeleteReadSetCommandError(output, context);
1844
+ return de_CommandError(output, context);
1922
1845
  }
1923
1846
  const contents = map({
1924
1847
  $metadata: deserializeMetadata(output),
@@ -1930,43 +1853,9 @@ export const de_BatchDeleteReadSetCommand = async (output, context) => {
1930
1853
  Object.assign(contents, doc);
1931
1854
  return contents;
1932
1855
  };
1933
- const de_BatchDeleteReadSetCommandError = async (output, context) => {
1934
- const parsedOutput = {
1935
- ...output,
1936
- body: await parseErrorBody(output.body, context),
1937
- };
1938
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1939
- switch (errorCode) {
1940
- case "AccessDeniedException":
1941
- case "com.amazonaws.omics#AccessDeniedException":
1942
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1943
- case "InternalServerException":
1944
- case "com.amazonaws.omics#InternalServerException":
1945
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1946
- case "RequestTimeoutException":
1947
- case "com.amazonaws.omics#RequestTimeoutException":
1948
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
1949
- case "ResourceNotFoundException":
1950
- case "com.amazonaws.omics#ResourceNotFoundException":
1951
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1952
- case "ThrottlingException":
1953
- case "com.amazonaws.omics#ThrottlingException":
1954
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1955
- case "ValidationException":
1956
- case "com.amazonaws.omics#ValidationException":
1957
- throw await de_ValidationExceptionRes(parsedOutput, context);
1958
- default:
1959
- const parsedBody = parsedOutput.body;
1960
- return throwDefaultError({
1961
- output,
1962
- parsedBody,
1963
- errorCode,
1964
- });
1965
- }
1966
- };
1967
1856
  export const de_CancelAnnotationImportJobCommand = async (output, context) => {
1968
1857
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1969
- return de_CancelAnnotationImportJobCommandError(output, context);
1858
+ return de_CommandError(output, context);
1970
1859
  }
1971
1860
  const contents = map({
1972
1861
  $metadata: deserializeMetadata(output),
@@ -1974,40 +1863,9 @@ export const de_CancelAnnotationImportJobCommand = async (output, context) => {
1974
1863
  await collectBody(output.body, context);
1975
1864
  return contents;
1976
1865
  };
1977
- const de_CancelAnnotationImportJobCommandError = async (output, context) => {
1978
- const parsedOutput = {
1979
- ...output,
1980
- body: await parseErrorBody(output.body, context),
1981
- };
1982
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1983
- switch (errorCode) {
1984
- case "AccessDeniedException":
1985
- case "com.amazonaws.omics#AccessDeniedException":
1986
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1987
- case "InternalServerException":
1988
- case "com.amazonaws.omics#InternalServerException":
1989
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1990
- case "ResourceNotFoundException":
1991
- case "com.amazonaws.omics#ResourceNotFoundException":
1992
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1993
- case "ThrottlingException":
1994
- case "com.amazonaws.omics#ThrottlingException":
1995
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1996
- case "ValidationException":
1997
- case "com.amazonaws.omics#ValidationException":
1998
- throw await de_ValidationExceptionRes(parsedOutput, context);
1999
- default:
2000
- const parsedBody = parsedOutput.body;
2001
- return throwDefaultError({
2002
- output,
2003
- parsedBody,
2004
- errorCode,
2005
- });
2006
- }
2007
- };
2008
1866
  export const de_CancelRunCommand = async (output, context) => {
2009
1867
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2010
- return de_CancelRunCommandError(output, context);
1868
+ return de_CommandError(output, context);
2011
1869
  }
2012
1870
  const contents = map({
2013
1871
  $metadata: deserializeMetadata(output),
@@ -2015,49 +1873,9 @@ export const de_CancelRunCommand = async (output, context) => {
2015
1873
  await collectBody(output.body, context);
2016
1874
  return contents;
2017
1875
  };
2018
- const de_CancelRunCommandError = async (output, context) => {
2019
- const parsedOutput = {
2020
- ...output,
2021
- body: await parseErrorBody(output.body, context),
2022
- };
2023
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2024
- switch (errorCode) {
2025
- case "AccessDeniedException":
2026
- case "com.amazonaws.omics#AccessDeniedException":
2027
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2028
- case "ConflictException":
2029
- case "com.amazonaws.omics#ConflictException":
2030
- throw await de_ConflictExceptionRes(parsedOutput, context);
2031
- case "InternalServerException":
2032
- case "com.amazonaws.omics#InternalServerException":
2033
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2034
- case "RequestTimeoutException":
2035
- case "com.amazonaws.omics#RequestTimeoutException":
2036
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
2037
- case "ResourceNotFoundException":
2038
- case "com.amazonaws.omics#ResourceNotFoundException":
2039
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2040
- case "ServiceQuotaExceededException":
2041
- case "com.amazonaws.omics#ServiceQuotaExceededException":
2042
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2043
- case "ThrottlingException":
2044
- case "com.amazonaws.omics#ThrottlingException":
2045
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2046
- case "ValidationException":
2047
- case "com.amazonaws.omics#ValidationException":
2048
- throw await de_ValidationExceptionRes(parsedOutput, context);
2049
- default:
2050
- const parsedBody = parsedOutput.body;
2051
- return throwDefaultError({
2052
- output,
2053
- parsedBody,
2054
- errorCode,
2055
- });
2056
- }
2057
- };
2058
1876
  export const de_CancelVariantImportJobCommand = async (output, context) => {
2059
1877
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2060
- return de_CancelVariantImportJobCommandError(output, context);
1878
+ return de_CommandError(output, context);
2061
1879
  }
2062
1880
  const contents = map({
2063
1881
  $metadata: deserializeMetadata(output),
@@ -2065,40 +1883,9 @@ export const de_CancelVariantImportJobCommand = async (output, context) => {
2065
1883
  await collectBody(output.body, context);
2066
1884
  return contents;
2067
1885
  };
2068
- const de_CancelVariantImportJobCommandError = async (output, context) => {
2069
- const parsedOutput = {
2070
- ...output,
2071
- body: await parseErrorBody(output.body, context),
2072
- };
2073
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2074
- switch (errorCode) {
2075
- case "AccessDeniedException":
2076
- case "com.amazonaws.omics#AccessDeniedException":
2077
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2078
- case "InternalServerException":
2079
- case "com.amazonaws.omics#InternalServerException":
2080
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2081
- case "ResourceNotFoundException":
2082
- case "com.amazonaws.omics#ResourceNotFoundException":
2083
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2084
- case "ThrottlingException":
2085
- case "com.amazonaws.omics#ThrottlingException":
2086
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2087
- case "ValidationException":
2088
- case "com.amazonaws.omics#ValidationException":
2089
- throw await de_ValidationExceptionRes(parsedOutput, context);
2090
- default:
2091
- const parsedBody = parsedOutput.body;
2092
- return throwDefaultError({
2093
- output,
2094
- parsedBody,
2095
- errorCode,
2096
- });
2097
- }
2098
- };
2099
1886
  export const de_CompleteMultipartReadSetUploadCommand = async (output, context) => {
2100
1887
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2101
- return de_CompleteMultipartReadSetUploadCommandError(output, context);
1888
+ return de_CommandError(output, context);
2102
1889
  }
2103
1890
  const contents = map({
2104
1891
  $metadata: deserializeMetadata(output),
@@ -2110,49 +1897,9 @@ export const de_CompleteMultipartReadSetUploadCommand = async (output, context)
2110
1897
  Object.assign(contents, doc);
2111
1898
  return contents;
2112
1899
  };
2113
- const de_CompleteMultipartReadSetUploadCommandError = async (output, context) => {
2114
- const parsedOutput = {
2115
- ...output,
2116
- body: await parseErrorBody(output.body, context),
2117
- };
2118
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2119
- switch (errorCode) {
2120
- case "AccessDeniedException":
2121
- case "com.amazonaws.omics#AccessDeniedException":
2122
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2123
- case "InternalServerException":
2124
- case "com.amazonaws.omics#InternalServerException":
2125
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2126
- case "NotSupportedOperationException":
2127
- case "com.amazonaws.omics#NotSupportedOperationException":
2128
- throw await de_NotSupportedOperationExceptionRes(parsedOutput, context);
2129
- case "RequestTimeoutException":
2130
- case "com.amazonaws.omics#RequestTimeoutException":
2131
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
2132
- case "ResourceNotFoundException":
2133
- case "com.amazonaws.omics#ResourceNotFoundException":
2134
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2135
- case "ServiceQuotaExceededException":
2136
- case "com.amazonaws.omics#ServiceQuotaExceededException":
2137
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2138
- case "ThrottlingException":
2139
- case "com.amazonaws.omics#ThrottlingException":
2140
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2141
- case "ValidationException":
2142
- case "com.amazonaws.omics#ValidationException":
2143
- throw await de_ValidationExceptionRes(parsedOutput, context);
2144
- default:
2145
- const parsedBody = parsedOutput.body;
2146
- return throwDefaultError({
2147
- output,
2148
- parsedBody,
2149
- errorCode,
2150
- });
2151
- }
2152
- };
2153
1900
  export const de_CreateAnnotationStoreCommand = async (output, context) => {
2154
1901
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2155
- return de_CreateAnnotationStoreCommandError(output, context);
1902
+ return de_CommandError(output, context);
2156
1903
  }
2157
1904
  const contents = map({
2158
1905
  $metadata: deserializeMetadata(output),
@@ -2171,46 +1918,9 @@ export const de_CreateAnnotationStoreCommand = async (output, context) => {
2171
1918
  Object.assign(contents, doc);
2172
1919
  return contents;
2173
1920
  };
2174
- const de_CreateAnnotationStoreCommandError = async (output, context) => {
2175
- const parsedOutput = {
2176
- ...output,
2177
- body: await parseErrorBody(output.body, context),
2178
- };
2179
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2180
- switch (errorCode) {
2181
- case "AccessDeniedException":
2182
- case "com.amazonaws.omics#AccessDeniedException":
2183
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2184
- case "ConflictException":
2185
- case "com.amazonaws.omics#ConflictException":
2186
- throw await de_ConflictExceptionRes(parsedOutput, context);
2187
- case "InternalServerException":
2188
- case "com.amazonaws.omics#InternalServerException":
2189
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2190
- case "ResourceNotFoundException":
2191
- case "com.amazonaws.omics#ResourceNotFoundException":
2192
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2193
- case "ServiceQuotaExceededException":
2194
- case "com.amazonaws.omics#ServiceQuotaExceededException":
2195
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2196
- case "ThrottlingException":
2197
- case "com.amazonaws.omics#ThrottlingException":
2198
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2199
- case "ValidationException":
2200
- case "com.amazonaws.omics#ValidationException":
2201
- throw await de_ValidationExceptionRes(parsedOutput, context);
2202
- default:
2203
- const parsedBody = parsedOutput.body;
2204
- return throwDefaultError({
2205
- output,
2206
- parsedBody,
2207
- errorCode,
2208
- });
2209
- }
2210
- };
2211
1921
  export const de_CreateAnnotationStoreVersionCommand = async (output, context) => {
2212
1922
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2213
- return de_CreateAnnotationStoreVersionCommandError(output, context);
1923
+ return de_CommandError(output, context);
2214
1924
  }
2215
1925
  const contents = map({
2216
1926
  $metadata: deserializeMetadata(output),
@@ -2228,46 +1938,9 @@ export const de_CreateAnnotationStoreVersionCommand = async (output, context) =>
2228
1938
  Object.assign(contents, doc);
2229
1939
  return contents;
2230
1940
  };
2231
- const de_CreateAnnotationStoreVersionCommandError = async (output, context) => {
2232
- const parsedOutput = {
2233
- ...output,
2234
- body: await parseErrorBody(output.body, context),
2235
- };
2236
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2237
- switch (errorCode) {
2238
- case "AccessDeniedException":
2239
- case "com.amazonaws.omics#AccessDeniedException":
2240
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2241
- case "ConflictException":
2242
- case "com.amazonaws.omics#ConflictException":
2243
- throw await de_ConflictExceptionRes(parsedOutput, context);
2244
- case "InternalServerException":
2245
- case "com.amazonaws.omics#InternalServerException":
2246
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2247
- case "ResourceNotFoundException":
2248
- case "com.amazonaws.omics#ResourceNotFoundException":
2249
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2250
- case "ServiceQuotaExceededException":
2251
- case "com.amazonaws.omics#ServiceQuotaExceededException":
2252
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2253
- case "ThrottlingException":
2254
- case "com.amazonaws.omics#ThrottlingException":
2255
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2256
- case "ValidationException":
2257
- case "com.amazonaws.omics#ValidationException":
2258
- throw await de_ValidationExceptionRes(parsedOutput, context);
2259
- default:
2260
- const parsedBody = parsedOutput.body;
2261
- return throwDefaultError({
2262
- output,
2263
- parsedBody,
2264
- errorCode,
2265
- });
2266
- }
2267
- };
2268
1941
  export const de_CreateMultipartReadSetUploadCommand = async (output, context) => {
2269
1942
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2270
- return de_CreateMultipartReadSetUploadCommandError(output, context);
1943
+ return de_CommandError(output, context);
2271
1944
  }
2272
1945
  const contents = map({
2273
1946
  $metadata: deserializeMetadata(output),
@@ -2289,49 +1962,9 @@ export const de_CreateMultipartReadSetUploadCommand = async (output, context) =>
2289
1962
  Object.assign(contents, doc);
2290
1963
  return contents;
2291
1964
  };
2292
- const de_CreateMultipartReadSetUploadCommandError = async (output, context) => {
2293
- const parsedOutput = {
2294
- ...output,
2295
- body: await parseErrorBody(output.body, context),
2296
- };
2297
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2298
- switch (errorCode) {
2299
- case "AccessDeniedException":
2300
- case "com.amazonaws.omics#AccessDeniedException":
2301
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2302
- case "InternalServerException":
2303
- case "com.amazonaws.omics#InternalServerException":
2304
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2305
- case "NotSupportedOperationException":
2306
- case "com.amazonaws.omics#NotSupportedOperationException":
2307
- throw await de_NotSupportedOperationExceptionRes(parsedOutput, context);
2308
- case "RequestTimeoutException":
2309
- case "com.amazonaws.omics#RequestTimeoutException":
2310
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
2311
- case "ResourceNotFoundException":
2312
- case "com.amazonaws.omics#ResourceNotFoundException":
2313
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2314
- case "ServiceQuotaExceededException":
2315
- case "com.amazonaws.omics#ServiceQuotaExceededException":
2316
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2317
- case "ThrottlingException":
2318
- case "com.amazonaws.omics#ThrottlingException":
2319
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2320
- case "ValidationException":
2321
- case "com.amazonaws.omics#ValidationException":
2322
- throw await de_ValidationExceptionRes(parsedOutput, context);
2323
- default:
2324
- const parsedBody = parsedOutput.body;
2325
- return throwDefaultError({
2326
- output,
2327
- parsedBody,
2328
- errorCode,
2329
- });
2330
- }
2331
- };
2332
1965
  export const de_CreateReferenceStoreCommand = async (output, context) => {
2333
1966
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2334
- return de_CreateReferenceStoreCommandError(output, context);
1967
+ return de_CommandError(output, context);
2335
1968
  }
2336
1969
  const contents = map({
2337
1970
  $metadata: deserializeMetadata(output),
@@ -2348,43 +1981,9 @@ export const de_CreateReferenceStoreCommand = async (output, context) => {
2348
1981
  Object.assign(contents, doc);
2349
1982
  return contents;
2350
1983
  };
2351
- const de_CreateReferenceStoreCommandError = async (output, context) => {
2352
- const parsedOutput = {
2353
- ...output,
2354
- body: await parseErrorBody(output.body, context),
2355
- };
2356
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2357
- switch (errorCode) {
2358
- case "AccessDeniedException":
2359
- case "com.amazonaws.omics#AccessDeniedException":
2360
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2361
- case "InternalServerException":
2362
- case "com.amazonaws.omics#InternalServerException":
2363
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2364
- case "RequestTimeoutException":
2365
- case "com.amazonaws.omics#RequestTimeoutException":
2366
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
2367
- case "ServiceQuotaExceededException":
2368
- case "com.amazonaws.omics#ServiceQuotaExceededException":
2369
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2370
- case "ThrottlingException":
2371
- case "com.amazonaws.omics#ThrottlingException":
2372
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2373
- case "ValidationException":
2374
- case "com.amazonaws.omics#ValidationException":
2375
- throw await de_ValidationExceptionRes(parsedOutput, context);
2376
- default:
2377
- const parsedBody = parsedOutput.body;
2378
- return throwDefaultError({
2379
- output,
2380
- parsedBody,
2381
- errorCode,
2382
- });
2383
- }
2384
- };
2385
1984
  export const de_CreateRunGroupCommand = async (output, context) => {
2386
1985
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2387
- return de_CreateRunGroupCommandError(output, context);
1986
+ return de_CommandError(output, context);
2388
1987
  }
2389
1988
  const contents = map({
2390
1989
  $metadata: deserializeMetadata(output),
@@ -2398,49 +1997,9 @@ export const de_CreateRunGroupCommand = async (output, context) => {
2398
1997
  Object.assign(contents, doc);
2399
1998
  return contents;
2400
1999
  };
2401
- const de_CreateRunGroupCommandError = async (output, context) => {
2402
- const parsedOutput = {
2403
- ...output,
2404
- body: await parseErrorBody(output.body, context),
2405
- };
2406
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2407
- switch (errorCode) {
2408
- case "AccessDeniedException":
2409
- case "com.amazonaws.omics#AccessDeniedException":
2410
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2411
- case "ConflictException":
2412
- case "com.amazonaws.omics#ConflictException":
2413
- throw await de_ConflictExceptionRes(parsedOutput, context);
2414
- case "InternalServerException":
2415
- case "com.amazonaws.omics#InternalServerException":
2416
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2417
- case "RequestTimeoutException":
2418
- case "com.amazonaws.omics#RequestTimeoutException":
2419
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
2420
- case "ResourceNotFoundException":
2421
- case "com.amazonaws.omics#ResourceNotFoundException":
2422
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2423
- case "ServiceQuotaExceededException":
2424
- case "com.amazonaws.omics#ServiceQuotaExceededException":
2425
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2426
- case "ThrottlingException":
2427
- case "com.amazonaws.omics#ThrottlingException":
2428
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2429
- case "ValidationException":
2430
- case "com.amazonaws.omics#ValidationException":
2431
- throw await de_ValidationExceptionRes(parsedOutput, context);
2432
- default:
2433
- const parsedBody = parsedOutput.body;
2434
- return throwDefaultError({
2435
- output,
2436
- parsedBody,
2437
- errorCode,
2438
- });
2439
- }
2440
- };
2441
2000
  export const de_CreateSequenceStoreCommand = async (output, context) => {
2442
2001
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2443
- return de_CreateSequenceStoreCommandError(output, context);
2002
+ return de_CommandError(output, context);
2444
2003
  }
2445
2004
  const contents = map({
2446
2005
  $metadata: deserializeMetadata(output),
@@ -2458,43 +2017,9 @@ export const de_CreateSequenceStoreCommand = async (output, context) => {
2458
2017
  Object.assign(contents, doc);
2459
2018
  return contents;
2460
2019
  };
2461
- const de_CreateSequenceStoreCommandError = async (output, context) => {
2462
- const parsedOutput = {
2463
- ...output,
2464
- body: await parseErrorBody(output.body, context),
2465
- };
2466
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2467
- switch (errorCode) {
2468
- case "AccessDeniedException":
2469
- case "com.amazonaws.omics#AccessDeniedException":
2470
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2471
- case "InternalServerException":
2472
- case "com.amazonaws.omics#InternalServerException":
2473
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2474
- case "RequestTimeoutException":
2475
- case "com.amazonaws.omics#RequestTimeoutException":
2476
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
2477
- case "ServiceQuotaExceededException":
2478
- case "com.amazonaws.omics#ServiceQuotaExceededException":
2479
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2480
- case "ThrottlingException":
2481
- case "com.amazonaws.omics#ThrottlingException":
2482
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2483
- case "ValidationException":
2484
- case "com.amazonaws.omics#ValidationException":
2485
- throw await de_ValidationExceptionRes(parsedOutput, context);
2486
- default:
2487
- const parsedBody = parsedOutput.body;
2488
- return throwDefaultError({
2489
- output,
2490
- parsedBody,
2491
- errorCode,
2492
- });
2493
- }
2494
- };
2495
2020
  export const de_CreateShareCommand = async (output, context) => {
2496
2021
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2497
- return de_CreateShareCommandError(output, context);
2022
+ return de_CommandError(output, context);
2498
2023
  }
2499
2024
  const contents = map({
2500
2025
  $metadata: deserializeMetadata(output),
@@ -2508,46 +2033,9 @@ export const de_CreateShareCommand = async (output, context) => {
2508
2033
  Object.assign(contents, doc);
2509
2034
  return contents;
2510
2035
  };
2511
- const de_CreateShareCommandError = async (output, context) => {
2512
- const parsedOutput = {
2513
- ...output,
2514
- body: await parseErrorBody(output.body, context),
2515
- };
2516
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2517
- switch (errorCode) {
2518
- case "AccessDeniedException":
2519
- case "com.amazonaws.omics#AccessDeniedException":
2520
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2521
- case "ConflictException":
2522
- case "com.amazonaws.omics#ConflictException":
2523
- throw await de_ConflictExceptionRes(parsedOutput, context);
2524
- case "InternalServerException":
2525
- case "com.amazonaws.omics#InternalServerException":
2526
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2527
- case "ResourceNotFoundException":
2528
- case "com.amazonaws.omics#ResourceNotFoundException":
2529
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2530
- case "ServiceQuotaExceededException":
2531
- case "com.amazonaws.omics#ServiceQuotaExceededException":
2532
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2533
- case "ThrottlingException":
2534
- case "com.amazonaws.omics#ThrottlingException":
2535
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2536
- case "ValidationException":
2537
- case "com.amazonaws.omics#ValidationException":
2538
- throw await de_ValidationExceptionRes(parsedOutput, context);
2539
- default:
2540
- const parsedBody = parsedOutput.body;
2541
- return throwDefaultError({
2542
- output,
2543
- parsedBody,
2544
- errorCode,
2545
- });
2546
- }
2547
- };
2548
2036
  export const de_CreateVariantStoreCommand = async (output, context) => {
2549
2037
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2550
- return de_CreateVariantStoreCommandError(output, context);
2038
+ return de_CommandError(output, context);
2551
2039
  }
2552
2040
  const contents = map({
2553
2041
  $metadata: deserializeMetadata(output),
@@ -2563,46 +2051,9 @@ export const de_CreateVariantStoreCommand = async (output, context) => {
2563
2051
  Object.assign(contents, doc);
2564
2052
  return contents;
2565
2053
  };
2566
- const de_CreateVariantStoreCommandError = async (output, context) => {
2567
- const parsedOutput = {
2568
- ...output,
2569
- body: await parseErrorBody(output.body, context),
2570
- };
2571
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2572
- switch (errorCode) {
2573
- case "AccessDeniedException":
2574
- case "com.amazonaws.omics#AccessDeniedException":
2575
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2576
- case "ConflictException":
2577
- case "com.amazonaws.omics#ConflictException":
2578
- throw await de_ConflictExceptionRes(parsedOutput, context);
2579
- case "InternalServerException":
2580
- case "com.amazonaws.omics#InternalServerException":
2581
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2582
- case "ResourceNotFoundException":
2583
- case "com.amazonaws.omics#ResourceNotFoundException":
2584
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2585
- case "ServiceQuotaExceededException":
2586
- case "com.amazonaws.omics#ServiceQuotaExceededException":
2587
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2588
- case "ThrottlingException":
2589
- case "com.amazonaws.omics#ThrottlingException":
2590
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2591
- case "ValidationException":
2592
- case "com.amazonaws.omics#ValidationException":
2593
- throw await de_ValidationExceptionRes(parsedOutput, context);
2594
- default:
2595
- const parsedBody = parsedOutput.body;
2596
- return throwDefaultError({
2597
- output,
2598
- parsedBody,
2599
- errorCode,
2600
- });
2601
- }
2602
- };
2603
2054
  export const de_CreateWorkflowCommand = async (output, context) => {
2604
2055
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2605
- return de_CreateWorkflowCommandError(output, context);
2056
+ return de_CommandError(output, context);
2606
2057
  }
2607
2058
  const contents = map({
2608
2059
  $metadata: deserializeMetadata(output),
@@ -2617,49 +2068,9 @@ export const de_CreateWorkflowCommand = async (output, context) => {
2617
2068
  Object.assign(contents, doc);
2618
2069
  return contents;
2619
2070
  };
2620
- const de_CreateWorkflowCommandError = async (output, context) => {
2621
- const parsedOutput = {
2622
- ...output,
2623
- body: await parseErrorBody(output.body, context),
2624
- };
2625
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2626
- switch (errorCode) {
2627
- case "AccessDeniedException":
2628
- case "com.amazonaws.omics#AccessDeniedException":
2629
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2630
- case "ConflictException":
2631
- case "com.amazonaws.omics#ConflictException":
2632
- throw await de_ConflictExceptionRes(parsedOutput, context);
2633
- case "InternalServerException":
2634
- case "com.amazonaws.omics#InternalServerException":
2635
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2636
- case "RequestTimeoutException":
2637
- case "com.amazonaws.omics#RequestTimeoutException":
2638
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
2639
- case "ResourceNotFoundException":
2640
- case "com.amazonaws.omics#ResourceNotFoundException":
2641
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2642
- case "ServiceQuotaExceededException":
2643
- case "com.amazonaws.omics#ServiceQuotaExceededException":
2644
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2645
- case "ThrottlingException":
2646
- case "com.amazonaws.omics#ThrottlingException":
2647
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2648
- case "ValidationException":
2649
- case "com.amazonaws.omics#ValidationException":
2650
- throw await de_ValidationExceptionRes(parsedOutput, context);
2651
- default:
2652
- const parsedBody = parsedOutput.body;
2653
- return throwDefaultError({
2654
- output,
2655
- parsedBody,
2656
- errorCode,
2657
- });
2658
- }
2659
- };
2660
2071
  export const de_DeleteAnnotationStoreCommand = async (output, context) => {
2661
2072
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2662
- return de_DeleteAnnotationStoreCommandError(output, context);
2073
+ return de_CommandError(output, context);
2663
2074
  }
2664
2075
  const contents = map({
2665
2076
  $metadata: deserializeMetadata(output),
@@ -2671,43 +2082,9 @@ export const de_DeleteAnnotationStoreCommand = async (output, context) => {
2671
2082
  Object.assign(contents, doc);
2672
2083
  return contents;
2673
2084
  };
2674
- const de_DeleteAnnotationStoreCommandError = async (output, context) => {
2675
- const parsedOutput = {
2676
- ...output,
2677
- body: await parseErrorBody(output.body, context),
2678
- };
2679
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2680
- switch (errorCode) {
2681
- case "AccessDeniedException":
2682
- case "com.amazonaws.omics#AccessDeniedException":
2683
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2684
- case "ConflictException":
2685
- case "com.amazonaws.omics#ConflictException":
2686
- throw await de_ConflictExceptionRes(parsedOutput, context);
2687
- case "InternalServerException":
2688
- case "com.amazonaws.omics#InternalServerException":
2689
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2690
- case "ResourceNotFoundException":
2691
- case "com.amazonaws.omics#ResourceNotFoundException":
2692
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2693
- case "ThrottlingException":
2694
- case "com.amazonaws.omics#ThrottlingException":
2695
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2696
- case "ValidationException":
2697
- case "com.amazonaws.omics#ValidationException":
2698
- throw await de_ValidationExceptionRes(parsedOutput, context);
2699
- default:
2700
- const parsedBody = parsedOutput.body;
2701
- return throwDefaultError({
2702
- output,
2703
- parsedBody,
2704
- errorCode,
2705
- });
2706
- }
2707
- };
2708
2085
  export const de_DeleteAnnotationStoreVersionsCommand = async (output, context) => {
2709
2086
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2710
- return de_DeleteAnnotationStoreVersionsCommandError(output, context);
2087
+ return de_CommandError(output, context);
2711
2088
  }
2712
2089
  const contents = map({
2713
2090
  $metadata: deserializeMetadata(output),
@@ -2719,43 +2096,9 @@ export const de_DeleteAnnotationStoreVersionsCommand = async (output, context) =
2719
2096
  Object.assign(contents, doc);
2720
2097
  return contents;
2721
2098
  };
2722
- const de_DeleteAnnotationStoreVersionsCommandError = async (output, context) => {
2723
- const parsedOutput = {
2724
- ...output,
2725
- body: await parseErrorBody(output.body, context),
2726
- };
2727
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2728
- switch (errorCode) {
2729
- case "AccessDeniedException":
2730
- case "com.amazonaws.omics#AccessDeniedException":
2731
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2732
- case "ConflictException":
2733
- case "com.amazonaws.omics#ConflictException":
2734
- throw await de_ConflictExceptionRes(parsedOutput, context);
2735
- case "InternalServerException":
2736
- case "com.amazonaws.omics#InternalServerException":
2737
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2738
- case "ResourceNotFoundException":
2739
- case "com.amazonaws.omics#ResourceNotFoundException":
2740
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2741
- case "ThrottlingException":
2742
- case "com.amazonaws.omics#ThrottlingException":
2743
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2744
- case "ValidationException":
2745
- case "com.amazonaws.omics#ValidationException":
2746
- throw await de_ValidationExceptionRes(parsedOutput, context);
2747
- default:
2748
- const parsedBody = parsedOutput.body;
2749
- return throwDefaultError({
2750
- output,
2751
- parsedBody,
2752
- errorCode,
2753
- });
2754
- }
2755
- };
2756
2099
  export const de_DeleteReferenceCommand = async (output, context) => {
2757
2100
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2758
- return de_DeleteReferenceCommandError(output, context);
2101
+ return de_CommandError(output, context);
2759
2102
  }
2760
2103
  const contents = map({
2761
2104
  $metadata: deserializeMetadata(output),
@@ -2763,46 +2106,9 @@ export const de_DeleteReferenceCommand = async (output, context) => {
2763
2106
  await collectBody(output.body, context);
2764
2107
  return contents;
2765
2108
  };
2766
- const de_DeleteReferenceCommandError = async (output, context) => {
2767
- const parsedOutput = {
2768
- ...output,
2769
- body: await parseErrorBody(output.body, context),
2770
- };
2771
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2772
- switch (errorCode) {
2773
- case "AccessDeniedException":
2774
- case "com.amazonaws.omics#AccessDeniedException":
2775
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2776
- case "ConflictException":
2777
- case "com.amazonaws.omics#ConflictException":
2778
- throw await de_ConflictExceptionRes(parsedOutput, context);
2779
- case "InternalServerException":
2780
- case "com.amazonaws.omics#InternalServerException":
2781
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2782
- case "RequestTimeoutException":
2783
- case "com.amazonaws.omics#RequestTimeoutException":
2784
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
2785
- case "ResourceNotFoundException":
2786
- case "com.amazonaws.omics#ResourceNotFoundException":
2787
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2788
- case "ThrottlingException":
2789
- case "com.amazonaws.omics#ThrottlingException":
2790
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2791
- case "ValidationException":
2792
- case "com.amazonaws.omics#ValidationException":
2793
- throw await de_ValidationExceptionRes(parsedOutput, context);
2794
- default:
2795
- const parsedBody = parsedOutput.body;
2796
- return throwDefaultError({
2797
- output,
2798
- parsedBody,
2799
- errorCode,
2800
- });
2801
- }
2802
- };
2803
2109
  export const de_DeleteReferenceStoreCommand = async (output, context) => {
2804
2110
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2805
- return de_DeleteReferenceStoreCommandError(output, context);
2111
+ return de_CommandError(output, context);
2806
2112
  }
2807
2113
  const contents = map({
2808
2114
  $metadata: deserializeMetadata(output),
@@ -2810,46 +2116,9 @@ export const de_DeleteReferenceStoreCommand = async (output, context) => {
2810
2116
  await collectBody(output.body, context);
2811
2117
  return contents;
2812
2118
  };
2813
- const de_DeleteReferenceStoreCommandError = async (output, context) => {
2814
- const parsedOutput = {
2815
- ...output,
2816
- body: await parseErrorBody(output.body, context),
2817
- };
2818
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2819
- switch (errorCode) {
2820
- case "AccessDeniedException":
2821
- case "com.amazonaws.omics#AccessDeniedException":
2822
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2823
- case "ConflictException":
2824
- case "com.amazonaws.omics#ConflictException":
2825
- throw await de_ConflictExceptionRes(parsedOutput, context);
2826
- case "InternalServerException":
2827
- case "com.amazonaws.omics#InternalServerException":
2828
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2829
- case "RequestTimeoutException":
2830
- case "com.amazonaws.omics#RequestTimeoutException":
2831
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
2832
- case "ResourceNotFoundException":
2833
- case "com.amazonaws.omics#ResourceNotFoundException":
2834
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2835
- case "ThrottlingException":
2836
- case "com.amazonaws.omics#ThrottlingException":
2837
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2838
- case "ValidationException":
2839
- case "com.amazonaws.omics#ValidationException":
2840
- throw await de_ValidationExceptionRes(parsedOutput, context);
2841
- default:
2842
- const parsedBody = parsedOutput.body;
2843
- return throwDefaultError({
2844
- output,
2845
- parsedBody,
2846
- errorCode,
2847
- });
2848
- }
2849
- };
2850
2119
  export const de_DeleteRunCommand = async (output, context) => {
2851
2120
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2852
- return de_DeleteRunCommandError(output, context);
2121
+ return de_CommandError(output, context);
2853
2122
  }
2854
2123
  const contents = map({
2855
2124
  $metadata: deserializeMetadata(output),
@@ -2857,49 +2126,9 @@ export const de_DeleteRunCommand = async (output, context) => {
2857
2126
  await collectBody(output.body, context);
2858
2127
  return contents;
2859
2128
  };
2860
- const de_DeleteRunCommandError = async (output, context) => {
2861
- const parsedOutput = {
2862
- ...output,
2863
- body: await parseErrorBody(output.body, context),
2864
- };
2865
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2866
- switch (errorCode) {
2867
- case "AccessDeniedException":
2868
- case "com.amazonaws.omics#AccessDeniedException":
2869
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2870
- case "ConflictException":
2871
- case "com.amazonaws.omics#ConflictException":
2872
- throw await de_ConflictExceptionRes(parsedOutput, context);
2873
- case "InternalServerException":
2874
- case "com.amazonaws.omics#InternalServerException":
2875
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2876
- case "RequestTimeoutException":
2877
- case "com.amazonaws.omics#RequestTimeoutException":
2878
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
2879
- case "ResourceNotFoundException":
2880
- case "com.amazonaws.omics#ResourceNotFoundException":
2881
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2882
- case "ServiceQuotaExceededException":
2883
- case "com.amazonaws.omics#ServiceQuotaExceededException":
2884
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2885
- case "ThrottlingException":
2886
- case "com.amazonaws.omics#ThrottlingException":
2887
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2888
- case "ValidationException":
2889
- case "com.amazonaws.omics#ValidationException":
2890
- throw await de_ValidationExceptionRes(parsedOutput, context);
2891
- default:
2892
- const parsedBody = parsedOutput.body;
2893
- return throwDefaultError({
2894
- output,
2895
- parsedBody,
2896
- errorCode,
2897
- });
2898
- }
2899
- };
2900
2129
  export const de_DeleteRunGroupCommand = async (output, context) => {
2901
2130
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2902
- return de_DeleteRunGroupCommandError(output, context);
2131
+ return de_CommandError(output, context);
2903
2132
  }
2904
2133
  const contents = map({
2905
2134
  $metadata: deserializeMetadata(output),
@@ -2907,49 +2136,9 @@ export const de_DeleteRunGroupCommand = async (output, context) => {
2907
2136
  await collectBody(output.body, context);
2908
2137
  return contents;
2909
2138
  };
2910
- const de_DeleteRunGroupCommandError = async (output, context) => {
2911
- const parsedOutput = {
2912
- ...output,
2913
- body: await parseErrorBody(output.body, context),
2914
- };
2915
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2916
- switch (errorCode) {
2917
- case "AccessDeniedException":
2918
- case "com.amazonaws.omics#AccessDeniedException":
2919
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2920
- case "ConflictException":
2921
- case "com.amazonaws.omics#ConflictException":
2922
- throw await de_ConflictExceptionRes(parsedOutput, context);
2923
- case "InternalServerException":
2924
- case "com.amazonaws.omics#InternalServerException":
2925
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2926
- case "RequestTimeoutException":
2927
- case "com.amazonaws.omics#RequestTimeoutException":
2928
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
2929
- case "ResourceNotFoundException":
2930
- case "com.amazonaws.omics#ResourceNotFoundException":
2931
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2932
- case "ServiceQuotaExceededException":
2933
- case "com.amazonaws.omics#ServiceQuotaExceededException":
2934
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2935
- case "ThrottlingException":
2936
- case "com.amazonaws.omics#ThrottlingException":
2937
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2938
- case "ValidationException":
2939
- case "com.amazonaws.omics#ValidationException":
2940
- throw await de_ValidationExceptionRes(parsedOutput, context);
2941
- default:
2942
- const parsedBody = parsedOutput.body;
2943
- return throwDefaultError({
2944
- output,
2945
- parsedBody,
2946
- errorCode,
2947
- });
2948
- }
2949
- };
2950
2139
  export const de_DeleteSequenceStoreCommand = async (output, context) => {
2951
2140
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2952
- return de_DeleteSequenceStoreCommandError(output, context);
2141
+ return de_CommandError(output, context);
2953
2142
  }
2954
2143
  const contents = map({
2955
2144
  $metadata: deserializeMetadata(output),
@@ -2957,46 +2146,9 @@ export const de_DeleteSequenceStoreCommand = async (output, context) => {
2957
2146
  await collectBody(output.body, context);
2958
2147
  return contents;
2959
2148
  };
2960
- const de_DeleteSequenceStoreCommandError = async (output, context) => {
2961
- const parsedOutput = {
2962
- ...output,
2963
- body: await parseErrorBody(output.body, context),
2964
- };
2965
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2966
- switch (errorCode) {
2967
- case "AccessDeniedException":
2968
- case "com.amazonaws.omics#AccessDeniedException":
2969
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2970
- case "ConflictException":
2971
- case "com.amazonaws.omics#ConflictException":
2972
- throw await de_ConflictExceptionRes(parsedOutput, context);
2973
- case "InternalServerException":
2974
- case "com.amazonaws.omics#InternalServerException":
2975
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2976
- case "RequestTimeoutException":
2977
- case "com.amazonaws.omics#RequestTimeoutException":
2978
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
2979
- case "ResourceNotFoundException":
2980
- case "com.amazonaws.omics#ResourceNotFoundException":
2981
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2982
- case "ThrottlingException":
2983
- case "com.amazonaws.omics#ThrottlingException":
2984
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2985
- case "ValidationException":
2986
- case "com.amazonaws.omics#ValidationException":
2987
- throw await de_ValidationExceptionRes(parsedOutput, context);
2988
- default:
2989
- const parsedBody = parsedOutput.body;
2990
- return throwDefaultError({
2991
- output,
2992
- parsedBody,
2993
- errorCode,
2994
- });
2995
- }
2996
- };
2997
2149
  export const de_DeleteShareCommand = async (output, context) => {
2998
2150
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2999
- return de_DeleteShareCommandError(output, context);
2151
+ return de_CommandError(output, context);
3000
2152
  }
3001
2153
  const contents = map({
3002
2154
  $metadata: deserializeMetadata(output),
@@ -3008,46 +2160,9 @@ export const de_DeleteShareCommand = async (output, context) => {
3008
2160
  Object.assign(contents, doc);
3009
2161
  return contents;
3010
2162
  };
3011
- const de_DeleteShareCommandError = async (output, context) => {
3012
- const parsedOutput = {
3013
- ...output,
3014
- body: await parseErrorBody(output.body, context),
3015
- };
3016
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3017
- switch (errorCode) {
3018
- case "AccessDeniedException":
3019
- case "com.amazonaws.omics#AccessDeniedException":
3020
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3021
- case "ConflictException":
3022
- case "com.amazonaws.omics#ConflictException":
3023
- throw await de_ConflictExceptionRes(parsedOutput, context);
3024
- case "InternalServerException":
3025
- case "com.amazonaws.omics#InternalServerException":
3026
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3027
- case "ResourceNotFoundException":
3028
- case "com.amazonaws.omics#ResourceNotFoundException":
3029
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3030
- case "ServiceQuotaExceededException":
3031
- case "com.amazonaws.omics#ServiceQuotaExceededException":
3032
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3033
- case "ThrottlingException":
3034
- case "com.amazonaws.omics#ThrottlingException":
3035
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3036
- case "ValidationException":
3037
- case "com.amazonaws.omics#ValidationException":
3038
- throw await de_ValidationExceptionRes(parsedOutput, context);
3039
- default:
3040
- const parsedBody = parsedOutput.body;
3041
- return throwDefaultError({
3042
- output,
3043
- parsedBody,
3044
- errorCode,
3045
- });
3046
- }
3047
- };
3048
2163
  export const de_DeleteVariantStoreCommand = async (output, context) => {
3049
2164
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3050
- return de_DeleteVariantStoreCommandError(output, context);
2165
+ return de_CommandError(output, context);
3051
2166
  }
3052
2167
  const contents = map({
3053
2168
  $metadata: deserializeMetadata(output),
@@ -3059,43 +2174,9 @@ export const de_DeleteVariantStoreCommand = async (output, context) => {
3059
2174
  Object.assign(contents, doc);
3060
2175
  return contents;
3061
2176
  };
3062
- const de_DeleteVariantStoreCommandError = async (output, context) => {
3063
- const parsedOutput = {
3064
- ...output,
3065
- body: await parseErrorBody(output.body, context),
3066
- };
3067
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3068
- switch (errorCode) {
3069
- case "AccessDeniedException":
3070
- case "com.amazonaws.omics#AccessDeniedException":
3071
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3072
- case "ConflictException":
3073
- case "com.amazonaws.omics#ConflictException":
3074
- throw await de_ConflictExceptionRes(parsedOutput, context);
3075
- case "InternalServerException":
3076
- case "com.amazonaws.omics#InternalServerException":
3077
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3078
- case "ResourceNotFoundException":
3079
- case "com.amazonaws.omics#ResourceNotFoundException":
3080
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3081
- case "ThrottlingException":
3082
- case "com.amazonaws.omics#ThrottlingException":
3083
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3084
- case "ValidationException":
3085
- case "com.amazonaws.omics#ValidationException":
3086
- throw await de_ValidationExceptionRes(parsedOutput, context);
3087
- default:
3088
- const parsedBody = parsedOutput.body;
3089
- return throwDefaultError({
3090
- output,
3091
- parsedBody,
3092
- errorCode,
3093
- });
3094
- }
3095
- };
3096
2177
  export const de_DeleteWorkflowCommand = async (output, context) => {
3097
2178
  if (output.statusCode !== 202 && output.statusCode >= 300) {
3098
- return de_DeleteWorkflowCommandError(output, context);
2179
+ return de_CommandError(output, context);
3099
2180
  }
3100
2181
  const contents = map({
3101
2182
  $metadata: deserializeMetadata(output),
@@ -3103,49 +2184,9 @@ export const de_DeleteWorkflowCommand = async (output, context) => {
3103
2184
  await collectBody(output.body, context);
3104
2185
  return contents;
3105
2186
  };
3106
- const de_DeleteWorkflowCommandError = async (output, context) => {
3107
- const parsedOutput = {
3108
- ...output,
3109
- body: await parseErrorBody(output.body, context),
3110
- };
3111
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3112
- switch (errorCode) {
3113
- case "AccessDeniedException":
3114
- case "com.amazonaws.omics#AccessDeniedException":
3115
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3116
- case "ConflictException":
3117
- case "com.amazonaws.omics#ConflictException":
3118
- throw await de_ConflictExceptionRes(parsedOutput, context);
3119
- case "InternalServerException":
3120
- case "com.amazonaws.omics#InternalServerException":
3121
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3122
- case "RequestTimeoutException":
3123
- case "com.amazonaws.omics#RequestTimeoutException":
3124
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
3125
- case "ResourceNotFoundException":
3126
- case "com.amazonaws.omics#ResourceNotFoundException":
3127
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3128
- case "ServiceQuotaExceededException":
3129
- case "com.amazonaws.omics#ServiceQuotaExceededException":
3130
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3131
- case "ThrottlingException":
3132
- case "com.amazonaws.omics#ThrottlingException":
3133
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3134
- case "ValidationException":
3135
- case "com.amazonaws.omics#ValidationException":
3136
- throw await de_ValidationExceptionRes(parsedOutput, context);
3137
- default:
3138
- const parsedBody = parsedOutput.body;
3139
- return throwDefaultError({
3140
- output,
3141
- parsedBody,
3142
- errorCode,
3143
- });
3144
- }
3145
- };
3146
2187
  export const de_GetAnnotationImportJobCommand = async (output, context) => {
3147
2188
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3148
- return de_GetAnnotationImportJobCommandError(output, context);
2189
+ return de_CommandError(output, context);
3149
2190
  }
3150
2191
  const contents = map({
3151
2192
  $metadata: deserializeMetadata(output),
@@ -3165,44 +2206,13 @@ export const de_GetAnnotationImportJobCommand = async (output, context) => {
3165
2206
  statusMessage: __expectString,
3166
2207
  updateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3167
2208
  versionName: __expectString,
3168
- });
3169
- Object.assign(contents, doc);
3170
- return contents;
3171
- };
3172
- const de_GetAnnotationImportJobCommandError = async (output, context) => {
3173
- const parsedOutput = {
3174
- ...output,
3175
- body: await parseErrorBody(output.body, context),
3176
- };
3177
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3178
- switch (errorCode) {
3179
- case "AccessDeniedException":
3180
- case "com.amazonaws.omics#AccessDeniedException":
3181
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3182
- case "InternalServerException":
3183
- case "com.amazonaws.omics#InternalServerException":
3184
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3185
- case "ResourceNotFoundException":
3186
- case "com.amazonaws.omics#ResourceNotFoundException":
3187
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3188
- case "ThrottlingException":
3189
- case "com.amazonaws.omics#ThrottlingException":
3190
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3191
- case "ValidationException":
3192
- case "com.amazonaws.omics#ValidationException":
3193
- throw await de_ValidationExceptionRes(parsedOutput, context);
3194
- default:
3195
- const parsedBody = parsedOutput.body;
3196
- return throwDefaultError({
3197
- output,
3198
- parsedBody,
3199
- errorCode,
3200
- });
3201
- }
2209
+ });
2210
+ Object.assign(contents, doc);
2211
+ return contents;
3202
2212
  };
3203
2213
  export const de_GetAnnotationStoreCommand = async (output, context) => {
3204
2214
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3205
- return de_GetAnnotationStoreCommandError(output, context);
2215
+ return de_CommandError(output, context);
3206
2216
  }
3207
2217
  const contents = map({
3208
2218
  $metadata: deserializeMetadata(output),
@@ -3228,40 +2238,9 @@ export const de_GetAnnotationStoreCommand = async (output, context) => {
3228
2238
  Object.assign(contents, doc);
3229
2239
  return contents;
3230
2240
  };
3231
- const de_GetAnnotationStoreCommandError = async (output, context) => {
3232
- const parsedOutput = {
3233
- ...output,
3234
- body: await parseErrorBody(output.body, context),
3235
- };
3236
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3237
- switch (errorCode) {
3238
- case "AccessDeniedException":
3239
- case "com.amazonaws.omics#AccessDeniedException":
3240
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3241
- case "InternalServerException":
3242
- case "com.amazonaws.omics#InternalServerException":
3243
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3244
- case "ResourceNotFoundException":
3245
- case "com.amazonaws.omics#ResourceNotFoundException":
3246
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3247
- case "ThrottlingException":
3248
- case "com.amazonaws.omics#ThrottlingException":
3249
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3250
- case "ValidationException":
3251
- case "com.amazonaws.omics#ValidationException":
3252
- throw await de_ValidationExceptionRes(parsedOutput, context);
3253
- default:
3254
- const parsedBody = parsedOutput.body;
3255
- return throwDefaultError({
3256
- output,
3257
- parsedBody,
3258
- errorCode,
3259
- });
3260
- }
3261
- };
3262
2241
  export const de_GetAnnotationStoreVersionCommand = async (output, context) => {
3263
2242
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3264
- return de_GetAnnotationStoreVersionCommandError(output, context);
2243
+ return de_CommandError(output, context);
3265
2244
  }
3266
2245
  const contents = map({
3267
2246
  $metadata: deserializeMetadata(output),
@@ -3285,40 +2264,9 @@ export const de_GetAnnotationStoreVersionCommand = async (output, context) => {
3285
2264
  Object.assign(contents, doc);
3286
2265
  return contents;
3287
2266
  };
3288
- const de_GetAnnotationStoreVersionCommandError = async (output, context) => {
3289
- const parsedOutput = {
3290
- ...output,
3291
- body: await parseErrorBody(output.body, context),
3292
- };
3293
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3294
- switch (errorCode) {
3295
- case "AccessDeniedException":
3296
- case "com.amazonaws.omics#AccessDeniedException":
3297
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3298
- case "InternalServerException":
3299
- case "com.amazonaws.omics#InternalServerException":
3300
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3301
- case "ResourceNotFoundException":
3302
- case "com.amazonaws.omics#ResourceNotFoundException":
3303
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3304
- case "ThrottlingException":
3305
- case "com.amazonaws.omics#ThrottlingException":
3306
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3307
- case "ValidationException":
3308
- case "com.amazonaws.omics#ValidationException":
3309
- throw await de_ValidationExceptionRes(parsedOutput, context);
3310
- default:
3311
- const parsedBody = parsedOutput.body;
3312
- return throwDefaultError({
3313
- output,
3314
- parsedBody,
3315
- errorCode,
3316
- });
3317
- }
3318
- };
3319
2267
  export const de_GetReadSetCommand = async (output, context) => {
3320
2268
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3321
- return de_GetReadSetCommandError(output, context);
2269
+ return de_CommandError(output, context);
3322
2270
  }
3323
2271
  const contents = map({
3324
2272
  $metadata: deserializeMetadata(output),
@@ -3328,49 +2276,9 @@ export const de_GetReadSetCommand = async (output, context) => {
3328
2276
  contents.payload = data;
3329
2277
  return contents;
3330
2278
  };
3331
- const de_GetReadSetCommandError = async (output, context) => {
3332
- const parsedOutput = {
3333
- ...output,
3334
- body: await parseErrorBody(output.body, context),
3335
- };
3336
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3337
- switch (errorCode) {
3338
- case "AccessDeniedException":
3339
- case "com.amazonaws.omics#AccessDeniedException":
3340
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3341
- case "ConflictException":
3342
- case "com.amazonaws.omics#ConflictException":
3343
- throw await de_ConflictExceptionRes(parsedOutput, context);
3344
- case "InternalServerException":
3345
- case "com.amazonaws.omics#InternalServerException":
3346
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3347
- case "RangeNotSatisfiableException":
3348
- case "com.amazonaws.omics#RangeNotSatisfiableException":
3349
- throw await de_RangeNotSatisfiableExceptionRes(parsedOutput, context);
3350
- case "RequestTimeoutException":
3351
- case "com.amazonaws.omics#RequestTimeoutException":
3352
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
3353
- case "ResourceNotFoundException":
3354
- case "com.amazonaws.omics#ResourceNotFoundException":
3355
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3356
- case "ThrottlingException":
3357
- case "com.amazonaws.omics#ThrottlingException":
3358
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3359
- case "ValidationException":
3360
- case "com.amazonaws.omics#ValidationException":
3361
- throw await de_ValidationExceptionRes(parsedOutput, context);
3362
- default:
3363
- const parsedBody = parsedOutput.body;
3364
- return throwDefaultError({
3365
- output,
3366
- parsedBody,
3367
- errorCode,
3368
- });
3369
- }
3370
- };
3371
2279
  export const de_GetReadSetActivationJobCommand = async (output, context) => {
3372
2280
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3373
- return de_GetReadSetActivationJobCommandError(output, context);
2281
+ return de_CommandError(output, context);
3374
2282
  }
3375
2283
  const contents = map({
3376
2284
  $metadata: deserializeMetadata(output),
@@ -3388,43 +2296,9 @@ export const de_GetReadSetActivationJobCommand = async (output, context) => {
3388
2296
  Object.assign(contents, doc);
3389
2297
  return contents;
3390
2298
  };
3391
- const de_GetReadSetActivationJobCommandError = async (output, context) => {
3392
- const parsedOutput = {
3393
- ...output,
3394
- body: await parseErrorBody(output.body, context),
3395
- };
3396
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3397
- switch (errorCode) {
3398
- case "AccessDeniedException":
3399
- case "com.amazonaws.omics#AccessDeniedException":
3400
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3401
- case "InternalServerException":
3402
- case "com.amazonaws.omics#InternalServerException":
3403
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3404
- case "RequestTimeoutException":
3405
- case "com.amazonaws.omics#RequestTimeoutException":
3406
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
3407
- case "ResourceNotFoundException":
3408
- case "com.amazonaws.omics#ResourceNotFoundException":
3409
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3410
- case "ThrottlingException":
3411
- case "com.amazonaws.omics#ThrottlingException":
3412
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3413
- case "ValidationException":
3414
- case "com.amazonaws.omics#ValidationException":
3415
- throw await de_ValidationExceptionRes(parsedOutput, context);
3416
- default:
3417
- const parsedBody = parsedOutput.body;
3418
- return throwDefaultError({
3419
- output,
3420
- parsedBody,
3421
- errorCode,
3422
- });
3423
- }
3424
- };
3425
2299
  export const de_GetReadSetExportJobCommand = async (output, context) => {
3426
2300
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3427
- return de_GetReadSetExportJobCommandError(output, context);
2301
+ return de_CommandError(output, context);
3428
2302
  }
3429
2303
  const contents = map({
3430
2304
  $metadata: deserializeMetadata(output),
@@ -3443,43 +2317,9 @@ export const de_GetReadSetExportJobCommand = async (output, context) => {
3443
2317
  Object.assign(contents, doc);
3444
2318
  return contents;
3445
2319
  };
3446
- const de_GetReadSetExportJobCommandError = async (output, context) => {
3447
- const parsedOutput = {
3448
- ...output,
3449
- body: await parseErrorBody(output.body, context),
3450
- };
3451
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3452
- switch (errorCode) {
3453
- case "AccessDeniedException":
3454
- case "com.amazonaws.omics#AccessDeniedException":
3455
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3456
- case "InternalServerException":
3457
- case "com.amazonaws.omics#InternalServerException":
3458
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3459
- case "RequestTimeoutException":
3460
- case "com.amazonaws.omics#RequestTimeoutException":
3461
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
3462
- case "ResourceNotFoundException":
3463
- case "com.amazonaws.omics#ResourceNotFoundException":
3464
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3465
- case "ThrottlingException":
3466
- case "com.amazonaws.omics#ThrottlingException":
3467
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3468
- case "ValidationException":
3469
- case "com.amazonaws.omics#ValidationException":
3470
- throw await de_ValidationExceptionRes(parsedOutput, context);
3471
- default:
3472
- const parsedBody = parsedOutput.body;
3473
- return throwDefaultError({
3474
- output,
3475
- parsedBody,
3476
- errorCode,
3477
- });
3478
- }
3479
- };
3480
2320
  export const de_GetReadSetImportJobCommand = async (output, context) => {
3481
2321
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3482
- return de_GetReadSetImportJobCommandError(output, context);
2322
+ return de_CommandError(output, context);
3483
2323
  }
3484
2324
  const contents = map({
3485
2325
  $metadata: deserializeMetadata(output),
@@ -3498,106 +2338,38 @@ export const de_GetReadSetImportJobCommand = async (output, context) => {
3498
2338
  Object.assign(contents, doc);
3499
2339
  return contents;
3500
2340
  };
3501
- const de_GetReadSetImportJobCommandError = async (output, context) => {
3502
- const parsedOutput = {
3503
- ...output,
3504
- body: await parseErrorBody(output.body, context),
3505
- };
3506
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3507
- switch (errorCode) {
3508
- case "AccessDeniedException":
3509
- case "com.amazonaws.omics#AccessDeniedException":
3510
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3511
- case "InternalServerException":
3512
- case "com.amazonaws.omics#InternalServerException":
3513
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3514
- case "RequestTimeoutException":
3515
- case "com.amazonaws.omics#RequestTimeoutException":
3516
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
3517
- case "ResourceNotFoundException":
3518
- case "com.amazonaws.omics#ResourceNotFoundException":
3519
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3520
- case "ThrottlingException":
3521
- case "com.amazonaws.omics#ThrottlingException":
3522
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3523
- case "ValidationException":
3524
- case "com.amazonaws.omics#ValidationException":
3525
- throw await de_ValidationExceptionRes(parsedOutput, context);
3526
- default:
3527
- const parsedBody = parsedOutput.body;
3528
- return throwDefaultError({
3529
- output,
3530
- parsedBody,
3531
- errorCode,
3532
- });
3533
- }
3534
- };
3535
2341
  export const de_GetReadSetMetadataCommand = async (output, context) => {
3536
2342
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3537
- return de_GetReadSetMetadataCommandError(output, context);
2343
+ return de_CommandError(output, context);
3538
2344
  }
3539
2345
  const contents = map({
3540
2346
  $metadata: deserializeMetadata(output),
3541
- });
3542
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3543
- const doc = take(data, {
3544
- arn: __expectString,
3545
- creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3546
- creationType: __expectString,
3547
- description: __expectString,
3548
- etag: _json,
3549
- fileType: __expectString,
3550
- files: _json,
3551
- id: __expectString,
3552
- name: __expectString,
3553
- referenceArn: __expectString,
3554
- sampleId: __expectString,
3555
- sequenceInformation: _json,
3556
- sequenceStoreId: __expectString,
3557
- status: __expectString,
3558
- statusMessage: __expectString,
3559
- subjectId: __expectString,
3560
- });
3561
- Object.assign(contents, doc);
3562
- return contents;
3563
- };
3564
- const de_GetReadSetMetadataCommandError = async (output, context) => {
3565
- const parsedOutput = {
3566
- ...output,
3567
- body: await parseErrorBody(output.body, context),
3568
- };
3569
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3570
- switch (errorCode) {
3571
- case "AccessDeniedException":
3572
- case "com.amazonaws.omics#AccessDeniedException":
3573
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3574
- case "InternalServerException":
3575
- case "com.amazonaws.omics#InternalServerException":
3576
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3577
- case "RequestTimeoutException":
3578
- case "com.amazonaws.omics#RequestTimeoutException":
3579
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
3580
- case "ResourceNotFoundException":
3581
- case "com.amazonaws.omics#ResourceNotFoundException":
3582
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3583
- case "ThrottlingException":
3584
- case "com.amazonaws.omics#ThrottlingException":
3585
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3586
- case "ValidationException":
3587
- case "com.amazonaws.omics#ValidationException":
3588
- throw await de_ValidationExceptionRes(parsedOutput, context);
3589
- default:
3590
- const parsedBody = parsedOutput.body;
3591
- return throwDefaultError({
3592
- output,
3593
- parsedBody,
3594
- errorCode,
3595
- });
3596
- }
2347
+ });
2348
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2349
+ const doc = take(data, {
2350
+ arn: __expectString,
2351
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2352
+ creationType: __expectString,
2353
+ description: __expectString,
2354
+ etag: _json,
2355
+ fileType: __expectString,
2356
+ files: _json,
2357
+ id: __expectString,
2358
+ name: __expectString,
2359
+ referenceArn: __expectString,
2360
+ sampleId: __expectString,
2361
+ sequenceInformation: _json,
2362
+ sequenceStoreId: __expectString,
2363
+ status: __expectString,
2364
+ statusMessage: __expectString,
2365
+ subjectId: __expectString,
2366
+ });
2367
+ Object.assign(contents, doc);
2368
+ return contents;
3597
2369
  };
3598
2370
  export const de_GetReferenceCommand = async (output, context) => {
3599
2371
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3600
- return de_GetReferenceCommandError(output, context);
2372
+ return de_CommandError(output, context);
3601
2373
  }
3602
2374
  const contents = map({
3603
2375
  $metadata: deserializeMetadata(output),
@@ -3607,46 +2379,9 @@ export const de_GetReferenceCommand = async (output, context) => {
3607
2379
  contents.payload = data;
3608
2380
  return contents;
3609
2381
  };
3610
- const de_GetReferenceCommandError = async (output, context) => {
3611
- const parsedOutput = {
3612
- ...output,
3613
- body: await parseErrorBody(output.body, context),
3614
- };
3615
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3616
- switch (errorCode) {
3617
- case "AccessDeniedException":
3618
- case "com.amazonaws.omics#AccessDeniedException":
3619
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3620
- case "InternalServerException":
3621
- case "com.amazonaws.omics#InternalServerException":
3622
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3623
- case "RangeNotSatisfiableException":
3624
- case "com.amazonaws.omics#RangeNotSatisfiableException":
3625
- throw await de_RangeNotSatisfiableExceptionRes(parsedOutput, context);
3626
- case "RequestTimeoutException":
3627
- case "com.amazonaws.omics#RequestTimeoutException":
3628
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
3629
- case "ResourceNotFoundException":
3630
- case "com.amazonaws.omics#ResourceNotFoundException":
3631
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3632
- case "ThrottlingException":
3633
- case "com.amazonaws.omics#ThrottlingException":
3634
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3635
- case "ValidationException":
3636
- case "com.amazonaws.omics#ValidationException":
3637
- throw await de_ValidationExceptionRes(parsedOutput, context);
3638
- default:
3639
- const parsedBody = parsedOutput.body;
3640
- return throwDefaultError({
3641
- output,
3642
- parsedBody,
3643
- errorCode,
3644
- });
3645
- }
3646
- };
3647
2382
  export const de_GetReferenceImportJobCommand = async (output, context) => {
3648
2383
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3649
- return de_GetReferenceImportJobCommandError(output, context);
2384
+ return de_CommandError(output, context);
3650
2385
  }
3651
2386
  const contents = map({
3652
2387
  $metadata: deserializeMetadata(output),
@@ -3665,43 +2400,9 @@ export const de_GetReferenceImportJobCommand = async (output, context) => {
3665
2400
  Object.assign(contents, doc);
3666
2401
  return contents;
3667
2402
  };
3668
- const de_GetReferenceImportJobCommandError = async (output, context) => {
3669
- const parsedOutput = {
3670
- ...output,
3671
- body: await parseErrorBody(output.body, context),
3672
- };
3673
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3674
- switch (errorCode) {
3675
- case "AccessDeniedException":
3676
- case "com.amazonaws.omics#AccessDeniedException":
3677
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3678
- case "InternalServerException":
3679
- case "com.amazonaws.omics#InternalServerException":
3680
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3681
- case "RequestTimeoutException":
3682
- case "com.amazonaws.omics#RequestTimeoutException":
3683
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
3684
- case "ResourceNotFoundException":
3685
- case "com.amazonaws.omics#ResourceNotFoundException":
3686
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3687
- case "ThrottlingException":
3688
- case "com.amazonaws.omics#ThrottlingException":
3689
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3690
- case "ValidationException":
3691
- case "com.amazonaws.omics#ValidationException":
3692
- throw await de_ValidationExceptionRes(parsedOutput, context);
3693
- default:
3694
- const parsedBody = parsedOutput.body;
3695
- return throwDefaultError({
3696
- output,
3697
- parsedBody,
3698
- errorCode,
3699
- });
3700
- }
3701
- };
3702
2403
  export const de_GetReferenceMetadataCommand = async (output, context) => {
3703
2404
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3704
- return de_GetReferenceMetadataCommandError(output, context);
2405
+ return de_CommandError(output, context);
3705
2406
  }
3706
2407
  const contents = map({
3707
2408
  $metadata: deserializeMetadata(output),
@@ -3722,43 +2423,9 @@ export const de_GetReferenceMetadataCommand = async (output, context) => {
3722
2423
  Object.assign(contents, doc);
3723
2424
  return contents;
3724
2425
  };
3725
- const de_GetReferenceMetadataCommandError = async (output, context) => {
3726
- const parsedOutput = {
3727
- ...output,
3728
- body: await parseErrorBody(output.body, context),
3729
- };
3730
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3731
- switch (errorCode) {
3732
- case "AccessDeniedException":
3733
- case "com.amazonaws.omics#AccessDeniedException":
3734
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3735
- case "InternalServerException":
3736
- case "com.amazonaws.omics#InternalServerException":
3737
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3738
- case "RequestTimeoutException":
3739
- case "com.amazonaws.omics#RequestTimeoutException":
3740
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
3741
- case "ResourceNotFoundException":
3742
- case "com.amazonaws.omics#ResourceNotFoundException":
3743
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3744
- case "ThrottlingException":
3745
- case "com.amazonaws.omics#ThrottlingException":
3746
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3747
- case "ValidationException":
3748
- case "com.amazonaws.omics#ValidationException":
3749
- throw await de_ValidationExceptionRes(parsedOutput, context);
3750
- default:
3751
- const parsedBody = parsedOutput.body;
3752
- return throwDefaultError({
3753
- output,
3754
- parsedBody,
3755
- errorCode,
3756
- });
3757
- }
3758
- };
3759
2426
  export const de_GetReferenceStoreCommand = async (output, context) => {
3760
2427
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3761
- return de_GetReferenceStoreCommandError(output, context);
2428
+ return de_CommandError(output, context);
3762
2429
  }
3763
2430
  const contents = map({
3764
2431
  $metadata: deserializeMetadata(output),
@@ -3775,43 +2442,9 @@ export const de_GetReferenceStoreCommand = async (output, context) => {
3775
2442
  Object.assign(contents, doc);
3776
2443
  return contents;
3777
2444
  };
3778
- const de_GetReferenceStoreCommandError = async (output, context) => {
3779
- const parsedOutput = {
3780
- ...output,
3781
- body: await parseErrorBody(output.body, context),
3782
- };
3783
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3784
- switch (errorCode) {
3785
- case "AccessDeniedException":
3786
- case "com.amazonaws.omics#AccessDeniedException":
3787
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3788
- case "InternalServerException":
3789
- case "com.amazonaws.omics#InternalServerException":
3790
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3791
- case "RequestTimeoutException":
3792
- case "com.amazonaws.omics#RequestTimeoutException":
3793
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
3794
- case "ResourceNotFoundException":
3795
- case "com.amazonaws.omics#ResourceNotFoundException":
3796
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3797
- case "ThrottlingException":
3798
- case "com.amazonaws.omics#ThrottlingException":
3799
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3800
- case "ValidationException":
3801
- case "com.amazonaws.omics#ValidationException":
3802
- throw await de_ValidationExceptionRes(parsedOutput, context);
3803
- default:
3804
- const parsedBody = parsedOutput.body;
3805
- return throwDefaultError({
3806
- output,
3807
- parsedBody,
3808
- errorCode,
3809
- });
3810
- }
3811
- };
3812
2445
  export const de_GetRunCommand = async (output, context) => {
3813
2446
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3814
- return de_GetRunCommandError(output, context);
2447
+ return de_CommandError(output, context);
3815
2448
  }
3816
2449
  const contents = map({
3817
2450
  $metadata: deserializeMetadata(output),
@@ -3849,113 +2482,33 @@ export const de_GetRunCommand = async (output, context) => {
3849
2482
  workflowType: __expectString,
3850
2483
  });
3851
2484
  Object.assign(contents, doc);
3852
- return contents;
3853
- };
3854
- const de_GetRunCommandError = async (output, context) => {
3855
- const parsedOutput = {
3856
- ...output,
3857
- body: await parseErrorBody(output.body, context),
3858
- };
3859
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3860
- switch (errorCode) {
3861
- case "AccessDeniedException":
3862
- case "com.amazonaws.omics#AccessDeniedException":
3863
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3864
- case "ConflictException":
3865
- case "com.amazonaws.omics#ConflictException":
3866
- throw await de_ConflictExceptionRes(parsedOutput, context);
3867
- case "InternalServerException":
3868
- case "com.amazonaws.omics#InternalServerException":
3869
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3870
- case "RequestTimeoutException":
3871
- case "com.amazonaws.omics#RequestTimeoutException":
3872
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
3873
- case "ResourceNotFoundException":
3874
- case "com.amazonaws.omics#ResourceNotFoundException":
3875
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3876
- case "ServiceQuotaExceededException":
3877
- case "com.amazonaws.omics#ServiceQuotaExceededException":
3878
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3879
- case "ThrottlingException":
3880
- case "com.amazonaws.omics#ThrottlingException":
3881
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3882
- case "ValidationException":
3883
- case "com.amazonaws.omics#ValidationException":
3884
- throw await de_ValidationExceptionRes(parsedOutput, context);
3885
- default:
3886
- const parsedBody = parsedOutput.body;
3887
- return throwDefaultError({
3888
- output,
3889
- parsedBody,
3890
- errorCode,
3891
- });
3892
- }
3893
- };
3894
- export const de_GetRunGroupCommand = async (output, context) => {
3895
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3896
- return de_GetRunGroupCommandError(output, context);
3897
- }
3898
- const contents = map({
3899
- $metadata: deserializeMetadata(output),
3900
- });
3901
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3902
- const doc = take(data, {
3903
- arn: __expectString,
3904
- creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
3905
- id: __expectString,
3906
- maxCpus: __expectInt32,
3907
- maxDuration: __expectInt32,
3908
- maxGpus: __expectInt32,
3909
- maxRuns: __expectInt32,
3910
- name: __expectString,
3911
- tags: _json,
3912
- });
3913
- Object.assign(contents, doc);
3914
- return contents;
3915
- };
3916
- const de_GetRunGroupCommandError = async (output, context) => {
3917
- const parsedOutput = {
3918
- ...output,
3919
- body: await parseErrorBody(output.body, context),
3920
- };
3921
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3922
- switch (errorCode) {
3923
- case "AccessDeniedException":
3924
- case "com.amazonaws.omics#AccessDeniedException":
3925
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3926
- case "ConflictException":
3927
- case "com.amazonaws.omics#ConflictException":
3928
- throw await de_ConflictExceptionRes(parsedOutput, context);
3929
- case "InternalServerException":
3930
- case "com.amazonaws.omics#InternalServerException":
3931
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3932
- case "RequestTimeoutException":
3933
- case "com.amazonaws.omics#RequestTimeoutException":
3934
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
3935
- case "ResourceNotFoundException":
3936
- case "com.amazonaws.omics#ResourceNotFoundException":
3937
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3938
- case "ServiceQuotaExceededException":
3939
- case "com.amazonaws.omics#ServiceQuotaExceededException":
3940
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3941
- case "ThrottlingException":
3942
- case "com.amazonaws.omics#ThrottlingException":
3943
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3944
- case "ValidationException":
3945
- case "com.amazonaws.omics#ValidationException":
3946
- throw await de_ValidationExceptionRes(parsedOutput, context);
3947
- default:
3948
- const parsedBody = parsedOutput.body;
3949
- return throwDefaultError({
3950
- output,
3951
- parsedBody,
3952
- errorCode,
3953
- });
2485
+ return contents;
2486
+ };
2487
+ export const de_GetRunGroupCommand = async (output, context) => {
2488
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2489
+ return de_CommandError(output, context);
3954
2490
  }
2491
+ const contents = map({
2492
+ $metadata: deserializeMetadata(output),
2493
+ });
2494
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2495
+ const doc = take(data, {
2496
+ arn: __expectString,
2497
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2498
+ id: __expectString,
2499
+ maxCpus: __expectInt32,
2500
+ maxDuration: __expectInt32,
2501
+ maxGpus: __expectInt32,
2502
+ maxRuns: __expectInt32,
2503
+ name: __expectString,
2504
+ tags: _json,
2505
+ });
2506
+ Object.assign(contents, doc);
2507
+ return contents;
3955
2508
  };
3956
2509
  export const de_GetRunTaskCommand = async (output, context) => {
3957
2510
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3958
- return de_GetRunTaskCommandError(output, context);
2511
+ return de_CommandError(output, context);
3959
2512
  }
3960
2513
  const contents = map({
3961
2514
  $metadata: deserializeMetadata(output),
@@ -3979,49 +2532,9 @@ export const de_GetRunTaskCommand = async (output, context) => {
3979
2532
  Object.assign(contents, doc);
3980
2533
  return contents;
3981
2534
  };
3982
- const de_GetRunTaskCommandError = async (output, context) => {
3983
- const parsedOutput = {
3984
- ...output,
3985
- body: await parseErrorBody(output.body, context),
3986
- };
3987
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3988
- switch (errorCode) {
3989
- case "AccessDeniedException":
3990
- case "com.amazonaws.omics#AccessDeniedException":
3991
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3992
- case "ConflictException":
3993
- case "com.amazonaws.omics#ConflictException":
3994
- throw await de_ConflictExceptionRes(parsedOutput, context);
3995
- case "InternalServerException":
3996
- case "com.amazonaws.omics#InternalServerException":
3997
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3998
- case "RequestTimeoutException":
3999
- case "com.amazonaws.omics#RequestTimeoutException":
4000
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
4001
- case "ResourceNotFoundException":
4002
- case "com.amazonaws.omics#ResourceNotFoundException":
4003
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4004
- case "ServiceQuotaExceededException":
4005
- case "com.amazonaws.omics#ServiceQuotaExceededException":
4006
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4007
- case "ThrottlingException":
4008
- case "com.amazonaws.omics#ThrottlingException":
4009
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4010
- case "ValidationException":
4011
- case "com.amazonaws.omics#ValidationException":
4012
- throw await de_ValidationExceptionRes(parsedOutput, context);
4013
- default:
4014
- const parsedBody = parsedOutput.body;
4015
- return throwDefaultError({
4016
- output,
4017
- parsedBody,
4018
- errorCode,
4019
- });
4020
- }
4021
- };
4022
2535
  export const de_GetSequenceStoreCommand = async (output, context) => {
4023
2536
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4024
- return de_GetSequenceStoreCommandError(output, context);
2537
+ return de_CommandError(output, context);
4025
2538
  }
4026
2539
  const contents = map({
4027
2540
  $metadata: deserializeMetadata(output),
@@ -4039,43 +2552,9 @@ export const de_GetSequenceStoreCommand = async (output, context) => {
4039
2552
  Object.assign(contents, doc);
4040
2553
  return contents;
4041
2554
  };
4042
- const de_GetSequenceStoreCommandError = async (output, context) => {
4043
- const parsedOutput = {
4044
- ...output,
4045
- body: await parseErrorBody(output.body, context),
4046
- };
4047
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4048
- switch (errorCode) {
4049
- case "AccessDeniedException":
4050
- case "com.amazonaws.omics#AccessDeniedException":
4051
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4052
- case "InternalServerException":
4053
- case "com.amazonaws.omics#InternalServerException":
4054
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4055
- case "RequestTimeoutException":
4056
- case "com.amazonaws.omics#RequestTimeoutException":
4057
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
4058
- case "ResourceNotFoundException":
4059
- case "com.amazonaws.omics#ResourceNotFoundException":
4060
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4061
- case "ThrottlingException":
4062
- case "com.amazonaws.omics#ThrottlingException":
4063
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4064
- case "ValidationException":
4065
- case "com.amazonaws.omics#ValidationException":
4066
- throw await de_ValidationExceptionRes(parsedOutput, context);
4067
- default:
4068
- const parsedBody = parsedOutput.body;
4069
- return throwDefaultError({
4070
- output,
4071
- parsedBody,
4072
- errorCode,
4073
- });
4074
- }
4075
- };
4076
2555
  export const de_GetShareCommand = async (output, context) => {
4077
2556
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4078
- return de_GetShareCommandError(output, context);
2557
+ return de_CommandError(output, context);
4079
2558
  }
4080
2559
  const contents = map({
4081
2560
  $metadata: deserializeMetadata(output),
@@ -4087,46 +2566,9 @@ export const de_GetShareCommand = async (output, context) => {
4087
2566
  Object.assign(contents, doc);
4088
2567
  return contents;
4089
2568
  };
4090
- const de_GetShareCommandError = async (output, context) => {
4091
- const parsedOutput = {
4092
- ...output,
4093
- body: await parseErrorBody(output.body, context),
4094
- };
4095
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4096
- switch (errorCode) {
4097
- case "AccessDeniedException":
4098
- case "com.amazonaws.omics#AccessDeniedException":
4099
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4100
- case "ConflictException":
4101
- case "com.amazonaws.omics#ConflictException":
4102
- throw await de_ConflictExceptionRes(parsedOutput, context);
4103
- case "InternalServerException":
4104
- case "com.amazonaws.omics#InternalServerException":
4105
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4106
- case "ResourceNotFoundException":
4107
- case "com.amazonaws.omics#ResourceNotFoundException":
4108
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4109
- case "ServiceQuotaExceededException":
4110
- case "com.amazonaws.omics#ServiceQuotaExceededException":
4111
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4112
- case "ThrottlingException":
4113
- case "com.amazonaws.omics#ThrottlingException":
4114
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4115
- case "ValidationException":
4116
- case "com.amazonaws.omics#ValidationException":
4117
- throw await de_ValidationExceptionRes(parsedOutput, context);
4118
- default:
4119
- const parsedBody = parsedOutput.body;
4120
- return throwDefaultError({
4121
- output,
4122
- parsedBody,
4123
- errorCode,
4124
- });
4125
- }
4126
- };
4127
2569
  export const de_GetVariantImportJobCommand = async (output, context) => {
4128
2570
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4129
- return de_GetVariantImportJobCommandError(output, context);
2571
+ return de_CommandError(output, context);
4130
2572
  }
4131
2573
  const contents = map({
4132
2574
  $metadata: deserializeMetadata(output),
@@ -4148,40 +2590,9 @@ export const de_GetVariantImportJobCommand = async (output, context) => {
4148
2590
  Object.assign(contents, doc);
4149
2591
  return contents;
4150
2592
  };
4151
- const de_GetVariantImportJobCommandError = async (output, context) => {
4152
- const parsedOutput = {
4153
- ...output,
4154
- body: await parseErrorBody(output.body, context),
4155
- };
4156
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4157
- switch (errorCode) {
4158
- case "AccessDeniedException":
4159
- case "com.amazonaws.omics#AccessDeniedException":
4160
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4161
- case "InternalServerException":
4162
- case "com.amazonaws.omics#InternalServerException":
4163
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4164
- case "ResourceNotFoundException":
4165
- case "com.amazonaws.omics#ResourceNotFoundException":
4166
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4167
- case "ThrottlingException":
4168
- case "com.amazonaws.omics#ThrottlingException":
4169
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4170
- case "ValidationException":
4171
- case "com.amazonaws.omics#ValidationException":
4172
- throw await de_ValidationExceptionRes(parsedOutput, context);
4173
- default:
4174
- const parsedBody = parsedOutput.body;
4175
- return throwDefaultError({
4176
- output,
4177
- parsedBody,
4178
- errorCode,
4179
- });
4180
- }
4181
- };
4182
2593
  export const de_GetVariantStoreCommand = async (output, context) => {
4183
2594
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4184
- return de_GetVariantStoreCommandError(output, context);
2595
+ return de_CommandError(output, context);
4185
2596
  }
4186
2597
  const contents = map({
4187
2598
  $metadata: deserializeMetadata(output),
@@ -4203,111 +2614,40 @@ export const de_GetVariantStoreCommand = async (output, context) => {
4203
2614
  });
4204
2615
  Object.assign(contents, doc);
4205
2616
  return contents;
4206
- };
4207
- const de_GetVariantStoreCommandError = async (output, context) => {
4208
- const parsedOutput = {
4209
- ...output,
4210
- body: await parseErrorBody(output.body, context),
4211
- };
4212
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4213
- switch (errorCode) {
4214
- case "AccessDeniedException":
4215
- case "com.amazonaws.omics#AccessDeniedException":
4216
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4217
- case "InternalServerException":
4218
- case "com.amazonaws.omics#InternalServerException":
4219
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4220
- case "ResourceNotFoundException":
4221
- case "com.amazonaws.omics#ResourceNotFoundException":
4222
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4223
- case "ThrottlingException":
4224
- case "com.amazonaws.omics#ThrottlingException":
4225
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4226
- case "ValidationException":
4227
- case "com.amazonaws.omics#ValidationException":
4228
- throw await de_ValidationExceptionRes(parsedOutput, context);
4229
- default:
4230
- const parsedBody = parsedOutput.body;
4231
- return throwDefaultError({
4232
- output,
4233
- parsedBody,
4234
- errorCode,
4235
- });
4236
- }
4237
- };
4238
- export const de_GetWorkflowCommand = async (output, context) => {
4239
- if (output.statusCode !== 200 && output.statusCode >= 300) {
4240
- return de_GetWorkflowCommandError(output, context);
4241
- }
4242
- const contents = map({
4243
- $metadata: deserializeMetadata(output),
4244
- });
4245
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4246
- const doc = take(data, {
4247
- accelerators: __expectString,
4248
- arn: __expectString,
4249
- creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
4250
- definition: __expectString,
4251
- description: __expectString,
4252
- digest: __expectString,
4253
- engine: __expectString,
4254
- id: __expectString,
4255
- main: __expectString,
4256
- metadata: _json,
4257
- name: __expectString,
4258
- parameterTemplate: _json,
4259
- status: __expectString,
4260
- statusMessage: __expectString,
4261
- storageCapacity: __expectInt32,
4262
- tags: _json,
4263
- type: __expectString,
4264
- });
4265
- Object.assign(contents, doc);
4266
- return contents;
4267
- };
4268
- const de_GetWorkflowCommandError = async (output, context) => {
4269
- const parsedOutput = {
4270
- ...output,
4271
- body: await parseErrorBody(output.body, context),
4272
- };
4273
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4274
- switch (errorCode) {
4275
- case "AccessDeniedException":
4276
- case "com.amazonaws.omics#AccessDeniedException":
4277
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4278
- case "ConflictException":
4279
- case "com.amazonaws.omics#ConflictException":
4280
- throw await de_ConflictExceptionRes(parsedOutput, context);
4281
- case "InternalServerException":
4282
- case "com.amazonaws.omics#InternalServerException":
4283
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4284
- case "RequestTimeoutException":
4285
- case "com.amazonaws.omics#RequestTimeoutException":
4286
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
4287
- case "ResourceNotFoundException":
4288
- case "com.amazonaws.omics#ResourceNotFoundException":
4289
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4290
- case "ServiceQuotaExceededException":
4291
- case "com.amazonaws.omics#ServiceQuotaExceededException":
4292
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4293
- case "ThrottlingException":
4294
- case "com.amazonaws.omics#ThrottlingException":
4295
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4296
- case "ValidationException":
4297
- case "com.amazonaws.omics#ValidationException":
4298
- throw await de_ValidationExceptionRes(parsedOutput, context);
4299
- default:
4300
- const parsedBody = parsedOutput.body;
4301
- return throwDefaultError({
4302
- output,
4303
- parsedBody,
4304
- errorCode,
4305
- });
2617
+ };
2618
+ export const de_GetWorkflowCommand = async (output, context) => {
2619
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2620
+ return de_CommandError(output, context);
4306
2621
  }
2622
+ const contents = map({
2623
+ $metadata: deserializeMetadata(output),
2624
+ });
2625
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2626
+ const doc = take(data, {
2627
+ accelerators: __expectString,
2628
+ arn: __expectString,
2629
+ creationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2630
+ definition: __expectString,
2631
+ description: __expectString,
2632
+ digest: __expectString,
2633
+ engine: __expectString,
2634
+ id: __expectString,
2635
+ main: __expectString,
2636
+ metadata: _json,
2637
+ name: __expectString,
2638
+ parameterTemplate: _json,
2639
+ status: __expectString,
2640
+ statusMessage: __expectString,
2641
+ storageCapacity: __expectInt32,
2642
+ tags: _json,
2643
+ type: __expectString,
2644
+ });
2645
+ Object.assign(contents, doc);
2646
+ return contents;
4307
2647
  };
4308
2648
  export const de_ListAnnotationImportJobsCommand = async (output, context) => {
4309
2649
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4310
- return de_ListAnnotationImportJobsCommandError(output, context);
2650
+ return de_CommandError(output, context);
4311
2651
  }
4312
2652
  const contents = map({
4313
2653
  $metadata: deserializeMetadata(output),
@@ -4320,40 +2660,9 @@ export const de_ListAnnotationImportJobsCommand = async (output, context) => {
4320
2660
  Object.assign(contents, doc);
4321
2661
  return contents;
4322
2662
  };
4323
- const de_ListAnnotationImportJobsCommandError = async (output, context) => {
4324
- const parsedOutput = {
4325
- ...output,
4326
- body: await parseErrorBody(output.body, context),
4327
- };
4328
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4329
- switch (errorCode) {
4330
- case "AccessDeniedException":
4331
- case "com.amazonaws.omics#AccessDeniedException":
4332
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4333
- case "InternalServerException":
4334
- case "com.amazonaws.omics#InternalServerException":
4335
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4336
- case "ResourceNotFoundException":
4337
- case "com.amazonaws.omics#ResourceNotFoundException":
4338
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4339
- case "ThrottlingException":
4340
- case "com.amazonaws.omics#ThrottlingException":
4341
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4342
- case "ValidationException":
4343
- case "com.amazonaws.omics#ValidationException":
4344
- throw await de_ValidationExceptionRes(parsedOutput, context);
4345
- default:
4346
- const parsedBody = parsedOutput.body;
4347
- return throwDefaultError({
4348
- output,
4349
- parsedBody,
4350
- errorCode,
4351
- });
4352
- }
4353
- };
4354
2663
  export const de_ListAnnotationStoresCommand = async (output, context) => {
4355
2664
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4356
- return de_ListAnnotationStoresCommandError(output, context);
2665
+ return de_CommandError(output, context);
4357
2666
  }
4358
2667
  const contents = map({
4359
2668
  $metadata: deserializeMetadata(output),
@@ -4366,40 +2675,9 @@ export const de_ListAnnotationStoresCommand = async (output, context) => {
4366
2675
  Object.assign(contents, doc);
4367
2676
  return contents;
4368
2677
  };
4369
- const de_ListAnnotationStoresCommandError = async (output, context) => {
4370
- const parsedOutput = {
4371
- ...output,
4372
- body: await parseErrorBody(output.body, context),
4373
- };
4374
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4375
- switch (errorCode) {
4376
- case "AccessDeniedException":
4377
- case "com.amazonaws.omics#AccessDeniedException":
4378
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4379
- case "InternalServerException":
4380
- case "com.amazonaws.omics#InternalServerException":
4381
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4382
- case "ResourceNotFoundException":
4383
- case "com.amazonaws.omics#ResourceNotFoundException":
4384
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4385
- case "ThrottlingException":
4386
- case "com.amazonaws.omics#ThrottlingException":
4387
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4388
- case "ValidationException":
4389
- case "com.amazonaws.omics#ValidationException":
4390
- throw await de_ValidationExceptionRes(parsedOutput, context);
4391
- default:
4392
- const parsedBody = parsedOutput.body;
4393
- return throwDefaultError({
4394
- output,
4395
- parsedBody,
4396
- errorCode,
4397
- });
4398
- }
4399
- };
4400
2678
  export const de_ListAnnotationStoreVersionsCommand = async (output, context) => {
4401
2679
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4402
- return de_ListAnnotationStoreVersionsCommandError(output, context);
2680
+ return de_CommandError(output, context);
4403
2681
  }
4404
2682
  const contents = map({
4405
2683
  $metadata: deserializeMetadata(output),
@@ -4412,40 +2690,9 @@ export const de_ListAnnotationStoreVersionsCommand = async (output, context) =>
4412
2690
  Object.assign(contents, doc);
4413
2691
  return contents;
4414
2692
  };
4415
- const de_ListAnnotationStoreVersionsCommandError = async (output, context) => {
4416
- const parsedOutput = {
4417
- ...output,
4418
- body: await parseErrorBody(output.body, context),
4419
- };
4420
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4421
- switch (errorCode) {
4422
- case "AccessDeniedException":
4423
- case "com.amazonaws.omics#AccessDeniedException":
4424
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4425
- case "InternalServerException":
4426
- case "com.amazonaws.omics#InternalServerException":
4427
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4428
- case "ResourceNotFoundException":
4429
- case "com.amazonaws.omics#ResourceNotFoundException":
4430
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4431
- case "ThrottlingException":
4432
- case "com.amazonaws.omics#ThrottlingException":
4433
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4434
- case "ValidationException":
4435
- case "com.amazonaws.omics#ValidationException":
4436
- throw await de_ValidationExceptionRes(parsedOutput, context);
4437
- default:
4438
- const parsedBody = parsedOutput.body;
4439
- return throwDefaultError({
4440
- output,
4441
- parsedBody,
4442
- errorCode,
4443
- });
4444
- }
4445
- };
4446
2693
  export const de_ListMultipartReadSetUploadsCommand = async (output, context) => {
4447
2694
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4448
- return de_ListMultipartReadSetUploadsCommandError(output, context);
2695
+ return de_CommandError(output, context);
4449
2696
  }
4450
2697
  const contents = map({
4451
2698
  $metadata: deserializeMetadata(output),
@@ -4458,49 +2705,9 @@ export const de_ListMultipartReadSetUploadsCommand = async (output, context) =>
4458
2705
  Object.assign(contents, doc);
4459
2706
  return contents;
4460
2707
  };
4461
- const de_ListMultipartReadSetUploadsCommandError = async (output, context) => {
4462
- const parsedOutput = {
4463
- ...output,
4464
- body: await parseErrorBody(output.body, context),
4465
- };
4466
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4467
- switch (errorCode) {
4468
- case "AccessDeniedException":
4469
- case "com.amazonaws.omics#AccessDeniedException":
4470
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4471
- case "InternalServerException":
4472
- case "com.amazonaws.omics#InternalServerException":
4473
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4474
- case "NotSupportedOperationException":
4475
- case "com.amazonaws.omics#NotSupportedOperationException":
4476
- throw await de_NotSupportedOperationExceptionRes(parsedOutput, context);
4477
- case "RequestTimeoutException":
4478
- case "com.amazonaws.omics#RequestTimeoutException":
4479
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
4480
- case "ResourceNotFoundException":
4481
- case "com.amazonaws.omics#ResourceNotFoundException":
4482
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4483
- case "ServiceQuotaExceededException":
4484
- case "com.amazonaws.omics#ServiceQuotaExceededException":
4485
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4486
- case "ThrottlingException":
4487
- case "com.amazonaws.omics#ThrottlingException":
4488
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4489
- case "ValidationException":
4490
- case "com.amazonaws.omics#ValidationException":
4491
- throw await de_ValidationExceptionRes(parsedOutput, context);
4492
- default:
4493
- const parsedBody = parsedOutput.body;
4494
- return throwDefaultError({
4495
- output,
4496
- parsedBody,
4497
- errorCode,
4498
- });
4499
- }
4500
- };
4501
2708
  export const de_ListReadSetActivationJobsCommand = async (output, context) => {
4502
2709
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4503
- return de_ListReadSetActivationJobsCommandError(output, context);
2710
+ return de_CommandError(output, context);
4504
2711
  }
4505
2712
  const contents = map({
4506
2713
  $metadata: deserializeMetadata(output),
@@ -4513,43 +2720,9 @@ export const de_ListReadSetActivationJobsCommand = async (output, context) => {
4513
2720
  Object.assign(contents, doc);
4514
2721
  return contents;
4515
2722
  };
4516
- const de_ListReadSetActivationJobsCommandError = async (output, context) => {
4517
- const parsedOutput = {
4518
- ...output,
4519
- body: await parseErrorBody(output.body, context),
4520
- };
4521
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4522
- switch (errorCode) {
4523
- case "AccessDeniedException":
4524
- case "com.amazonaws.omics#AccessDeniedException":
4525
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4526
- case "InternalServerException":
4527
- case "com.amazonaws.omics#InternalServerException":
4528
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4529
- case "RequestTimeoutException":
4530
- case "com.amazonaws.omics#RequestTimeoutException":
4531
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
4532
- case "ResourceNotFoundException":
4533
- case "com.amazonaws.omics#ResourceNotFoundException":
4534
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4535
- case "ThrottlingException":
4536
- case "com.amazonaws.omics#ThrottlingException":
4537
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4538
- case "ValidationException":
4539
- case "com.amazonaws.omics#ValidationException":
4540
- throw await de_ValidationExceptionRes(parsedOutput, context);
4541
- default:
4542
- const parsedBody = parsedOutput.body;
4543
- return throwDefaultError({
4544
- output,
4545
- parsedBody,
4546
- errorCode,
4547
- });
4548
- }
4549
- };
4550
2723
  export const de_ListReadSetExportJobsCommand = async (output, context) => {
4551
2724
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4552
- return de_ListReadSetExportJobsCommandError(output, context);
2725
+ return de_CommandError(output, context);
4553
2726
  }
4554
2727
  const contents = map({
4555
2728
  $metadata: deserializeMetadata(output),
@@ -4562,43 +2735,9 @@ export const de_ListReadSetExportJobsCommand = async (output, context) => {
4562
2735
  Object.assign(contents, doc);
4563
2736
  return contents;
4564
2737
  };
4565
- const de_ListReadSetExportJobsCommandError = async (output, context) => {
4566
- const parsedOutput = {
4567
- ...output,
4568
- body: await parseErrorBody(output.body, context),
4569
- };
4570
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4571
- switch (errorCode) {
4572
- case "AccessDeniedException":
4573
- case "com.amazonaws.omics#AccessDeniedException":
4574
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4575
- case "InternalServerException":
4576
- case "com.amazonaws.omics#InternalServerException":
4577
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4578
- case "RequestTimeoutException":
4579
- case "com.amazonaws.omics#RequestTimeoutException":
4580
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
4581
- case "ResourceNotFoundException":
4582
- case "com.amazonaws.omics#ResourceNotFoundException":
4583
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4584
- case "ThrottlingException":
4585
- case "com.amazonaws.omics#ThrottlingException":
4586
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4587
- case "ValidationException":
4588
- case "com.amazonaws.omics#ValidationException":
4589
- throw await de_ValidationExceptionRes(parsedOutput, context);
4590
- default:
4591
- const parsedBody = parsedOutput.body;
4592
- return throwDefaultError({
4593
- output,
4594
- parsedBody,
4595
- errorCode,
4596
- });
4597
- }
4598
- };
4599
2738
  export const de_ListReadSetImportJobsCommand = async (output, context) => {
4600
2739
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4601
- return de_ListReadSetImportJobsCommandError(output, context);
2740
+ return de_CommandError(output, context);
4602
2741
  }
4603
2742
  const contents = map({
4604
2743
  $metadata: deserializeMetadata(output),
@@ -4611,43 +2750,9 @@ export const de_ListReadSetImportJobsCommand = async (output, context) => {
4611
2750
  Object.assign(contents, doc);
4612
2751
  return contents;
4613
2752
  };
4614
- const de_ListReadSetImportJobsCommandError = async (output, context) => {
4615
- const parsedOutput = {
4616
- ...output,
4617
- body: await parseErrorBody(output.body, context),
4618
- };
4619
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4620
- switch (errorCode) {
4621
- case "AccessDeniedException":
4622
- case "com.amazonaws.omics#AccessDeniedException":
4623
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4624
- case "InternalServerException":
4625
- case "com.amazonaws.omics#InternalServerException":
4626
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4627
- case "RequestTimeoutException":
4628
- case "com.amazonaws.omics#RequestTimeoutException":
4629
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
4630
- case "ResourceNotFoundException":
4631
- case "com.amazonaws.omics#ResourceNotFoundException":
4632
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4633
- case "ThrottlingException":
4634
- case "com.amazonaws.omics#ThrottlingException":
4635
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4636
- case "ValidationException":
4637
- case "com.amazonaws.omics#ValidationException":
4638
- throw await de_ValidationExceptionRes(parsedOutput, context);
4639
- default:
4640
- const parsedBody = parsedOutput.body;
4641
- return throwDefaultError({
4642
- output,
4643
- parsedBody,
4644
- errorCode,
4645
- });
4646
- }
4647
- };
4648
2753
  export const de_ListReadSetsCommand = async (output, context) => {
4649
2754
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4650
- return de_ListReadSetsCommandError(output, context);
2755
+ return de_CommandError(output, context);
4651
2756
  }
4652
2757
  const contents = map({
4653
2758
  $metadata: deserializeMetadata(output),
@@ -4660,43 +2765,9 @@ export const de_ListReadSetsCommand = async (output, context) => {
4660
2765
  Object.assign(contents, doc);
4661
2766
  return contents;
4662
2767
  };
4663
- const de_ListReadSetsCommandError = async (output, context) => {
4664
- const parsedOutput = {
4665
- ...output,
4666
- body: await parseErrorBody(output.body, context),
4667
- };
4668
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4669
- switch (errorCode) {
4670
- case "AccessDeniedException":
4671
- case "com.amazonaws.omics#AccessDeniedException":
4672
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4673
- case "InternalServerException":
4674
- case "com.amazonaws.omics#InternalServerException":
4675
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4676
- case "RequestTimeoutException":
4677
- case "com.amazonaws.omics#RequestTimeoutException":
4678
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
4679
- case "ResourceNotFoundException":
4680
- case "com.amazonaws.omics#ResourceNotFoundException":
4681
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4682
- case "ThrottlingException":
4683
- case "com.amazonaws.omics#ThrottlingException":
4684
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4685
- case "ValidationException":
4686
- case "com.amazonaws.omics#ValidationException":
4687
- throw await de_ValidationExceptionRes(parsedOutput, context);
4688
- default:
4689
- const parsedBody = parsedOutput.body;
4690
- return throwDefaultError({
4691
- output,
4692
- parsedBody,
4693
- errorCode,
4694
- });
4695
- }
4696
- };
4697
2768
  export const de_ListReadSetUploadPartsCommand = async (output, context) => {
4698
2769
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4699
- return de_ListReadSetUploadPartsCommandError(output, context);
2770
+ return de_CommandError(output, context);
4700
2771
  }
4701
2772
  const contents = map({
4702
2773
  $metadata: deserializeMetadata(output),
@@ -4709,49 +2780,9 @@ export const de_ListReadSetUploadPartsCommand = async (output, context) => {
4709
2780
  Object.assign(contents, doc);
4710
2781
  return contents;
4711
2782
  };
4712
- const de_ListReadSetUploadPartsCommandError = async (output, context) => {
4713
- const parsedOutput = {
4714
- ...output,
4715
- body: await parseErrorBody(output.body, context),
4716
- };
4717
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4718
- switch (errorCode) {
4719
- case "AccessDeniedException":
4720
- case "com.amazonaws.omics#AccessDeniedException":
4721
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4722
- case "InternalServerException":
4723
- case "com.amazonaws.omics#InternalServerException":
4724
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4725
- case "NotSupportedOperationException":
4726
- case "com.amazonaws.omics#NotSupportedOperationException":
4727
- throw await de_NotSupportedOperationExceptionRes(parsedOutput, context);
4728
- case "RequestTimeoutException":
4729
- case "com.amazonaws.omics#RequestTimeoutException":
4730
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
4731
- case "ResourceNotFoundException":
4732
- case "com.amazonaws.omics#ResourceNotFoundException":
4733
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4734
- case "ServiceQuotaExceededException":
4735
- case "com.amazonaws.omics#ServiceQuotaExceededException":
4736
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4737
- case "ThrottlingException":
4738
- case "com.amazonaws.omics#ThrottlingException":
4739
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4740
- case "ValidationException":
4741
- case "com.amazonaws.omics#ValidationException":
4742
- throw await de_ValidationExceptionRes(parsedOutput, context);
4743
- default:
4744
- const parsedBody = parsedOutput.body;
4745
- return throwDefaultError({
4746
- output,
4747
- parsedBody,
4748
- errorCode,
4749
- });
4750
- }
4751
- };
4752
2783
  export const de_ListReferenceImportJobsCommand = async (output, context) => {
4753
2784
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4754
- return de_ListReferenceImportJobsCommandError(output, context);
2785
+ return de_CommandError(output, context);
4755
2786
  }
4756
2787
  const contents = map({
4757
2788
  $metadata: deserializeMetadata(output),
@@ -4764,43 +2795,9 @@ export const de_ListReferenceImportJobsCommand = async (output, context) => {
4764
2795
  Object.assign(contents, doc);
4765
2796
  return contents;
4766
2797
  };
4767
- const de_ListReferenceImportJobsCommandError = async (output, context) => {
4768
- const parsedOutput = {
4769
- ...output,
4770
- body: await parseErrorBody(output.body, context),
4771
- };
4772
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4773
- switch (errorCode) {
4774
- case "AccessDeniedException":
4775
- case "com.amazonaws.omics#AccessDeniedException":
4776
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4777
- case "InternalServerException":
4778
- case "com.amazonaws.omics#InternalServerException":
4779
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4780
- case "RequestTimeoutException":
4781
- case "com.amazonaws.omics#RequestTimeoutException":
4782
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
4783
- case "ResourceNotFoundException":
4784
- case "com.amazonaws.omics#ResourceNotFoundException":
4785
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4786
- case "ThrottlingException":
4787
- case "com.amazonaws.omics#ThrottlingException":
4788
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4789
- case "ValidationException":
4790
- case "com.amazonaws.omics#ValidationException":
4791
- throw await de_ValidationExceptionRes(parsedOutput, context);
4792
- default:
4793
- const parsedBody = parsedOutput.body;
4794
- return throwDefaultError({
4795
- output,
4796
- parsedBody,
4797
- errorCode,
4798
- });
4799
- }
4800
- };
4801
2798
  export const de_ListReferencesCommand = async (output, context) => {
4802
2799
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4803
- return de_ListReferencesCommandError(output, context);
2800
+ return de_CommandError(output, context);
4804
2801
  }
4805
2802
  const contents = map({
4806
2803
  $metadata: deserializeMetadata(output),
@@ -4813,43 +2810,9 @@ export const de_ListReferencesCommand = async (output, context) => {
4813
2810
  Object.assign(contents, doc);
4814
2811
  return contents;
4815
2812
  };
4816
- const de_ListReferencesCommandError = async (output, context) => {
4817
- const parsedOutput = {
4818
- ...output,
4819
- body: await parseErrorBody(output.body, context),
4820
- };
4821
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4822
- switch (errorCode) {
4823
- case "AccessDeniedException":
4824
- case "com.amazonaws.omics#AccessDeniedException":
4825
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4826
- case "InternalServerException":
4827
- case "com.amazonaws.omics#InternalServerException":
4828
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4829
- case "RequestTimeoutException":
4830
- case "com.amazonaws.omics#RequestTimeoutException":
4831
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
4832
- case "ResourceNotFoundException":
4833
- case "com.amazonaws.omics#ResourceNotFoundException":
4834
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4835
- case "ThrottlingException":
4836
- case "com.amazonaws.omics#ThrottlingException":
4837
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4838
- case "ValidationException":
4839
- case "com.amazonaws.omics#ValidationException":
4840
- throw await de_ValidationExceptionRes(parsedOutput, context);
4841
- default:
4842
- const parsedBody = parsedOutput.body;
4843
- return throwDefaultError({
4844
- output,
4845
- parsedBody,
4846
- errorCode,
4847
- });
4848
- }
4849
- };
4850
2813
  export const de_ListReferenceStoresCommand = async (output, context) => {
4851
2814
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4852
- return de_ListReferenceStoresCommandError(output, context);
2815
+ return de_CommandError(output, context);
4853
2816
  }
4854
2817
  const contents = map({
4855
2818
  $metadata: deserializeMetadata(output),
@@ -4862,40 +2825,9 @@ export const de_ListReferenceStoresCommand = async (output, context) => {
4862
2825
  Object.assign(contents, doc);
4863
2826
  return contents;
4864
2827
  };
4865
- const de_ListReferenceStoresCommandError = async (output, context) => {
4866
- const parsedOutput = {
4867
- ...output,
4868
- body: await parseErrorBody(output.body, context),
4869
- };
4870
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4871
- switch (errorCode) {
4872
- case "AccessDeniedException":
4873
- case "com.amazonaws.omics#AccessDeniedException":
4874
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4875
- case "InternalServerException":
4876
- case "com.amazonaws.omics#InternalServerException":
4877
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4878
- case "RequestTimeoutException":
4879
- case "com.amazonaws.omics#RequestTimeoutException":
4880
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
4881
- case "ThrottlingException":
4882
- case "com.amazonaws.omics#ThrottlingException":
4883
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4884
- case "ValidationException":
4885
- case "com.amazonaws.omics#ValidationException":
4886
- throw await de_ValidationExceptionRes(parsedOutput, context);
4887
- default:
4888
- const parsedBody = parsedOutput.body;
4889
- return throwDefaultError({
4890
- output,
4891
- parsedBody,
4892
- errorCode,
4893
- });
4894
- }
4895
- };
4896
2828
  export const de_ListRunGroupsCommand = async (output, context) => {
4897
2829
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4898
- return de_ListRunGroupsCommandError(output, context);
2830
+ return de_CommandError(output, context);
4899
2831
  }
4900
2832
  const contents = map({
4901
2833
  $metadata: deserializeMetadata(output),
@@ -4908,104 +2840,24 @@ export const de_ListRunGroupsCommand = async (output, context) => {
4908
2840
  Object.assign(contents, doc);
4909
2841
  return contents;
4910
2842
  };
4911
- const de_ListRunGroupsCommandError = async (output, context) => {
4912
- const parsedOutput = {
4913
- ...output,
4914
- body: await parseErrorBody(output.body, context),
4915
- };
4916
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4917
- switch (errorCode) {
4918
- case "AccessDeniedException":
4919
- case "com.amazonaws.omics#AccessDeniedException":
4920
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4921
- case "ConflictException":
4922
- case "com.amazonaws.omics#ConflictException":
4923
- throw await de_ConflictExceptionRes(parsedOutput, context);
4924
- case "InternalServerException":
4925
- case "com.amazonaws.omics#InternalServerException":
4926
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4927
- case "RequestTimeoutException":
4928
- case "com.amazonaws.omics#RequestTimeoutException":
4929
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
4930
- case "ResourceNotFoundException":
4931
- case "com.amazonaws.omics#ResourceNotFoundException":
4932
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4933
- case "ServiceQuotaExceededException":
4934
- case "com.amazonaws.omics#ServiceQuotaExceededException":
4935
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4936
- case "ThrottlingException":
4937
- case "com.amazonaws.omics#ThrottlingException":
4938
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4939
- case "ValidationException":
4940
- case "com.amazonaws.omics#ValidationException":
4941
- throw await de_ValidationExceptionRes(parsedOutput, context);
4942
- default:
4943
- const parsedBody = parsedOutput.body;
4944
- return throwDefaultError({
4945
- output,
4946
- parsedBody,
4947
- errorCode,
4948
- });
4949
- }
4950
- };
4951
2843
  export const de_ListRunsCommand = async (output, context) => {
4952
2844
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4953
- return de_ListRunsCommandError(output, context);
4954
- }
4955
- const contents = map({
4956
- $metadata: deserializeMetadata(output),
4957
- });
4958
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4959
- const doc = take(data, {
4960
- items: (_) => de_RunList(_, context),
4961
- nextToken: __expectString,
4962
- });
4963
- Object.assign(contents, doc);
4964
- return contents;
4965
- };
4966
- const de_ListRunsCommandError = async (output, context) => {
4967
- const parsedOutput = {
4968
- ...output,
4969
- body: await parseErrorBody(output.body, context),
4970
- };
4971
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4972
- switch (errorCode) {
4973
- case "AccessDeniedException":
4974
- case "com.amazonaws.omics#AccessDeniedException":
4975
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4976
- case "ConflictException":
4977
- case "com.amazonaws.omics#ConflictException":
4978
- throw await de_ConflictExceptionRes(parsedOutput, context);
4979
- case "InternalServerException":
4980
- case "com.amazonaws.omics#InternalServerException":
4981
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4982
- case "RequestTimeoutException":
4983
- case "com.amazonaws.omics#RequestTimeoutException":
4984
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
4985
- case "ResourceNotFoundException":
4986
- case "com.amazonaws.omics#ResourceNotFoundException":
4987
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4988
- case "ServiceQuotaExceededException":
4989
- case "com.amazonaws.omics#ServiceQuotaExceededException":
4990
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4991
- case "ThrottlingException":
4992
- case "com.amazonaws.omics#ThrottlingException":
4993
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4994
- case "ValidationException":
4995
- case "com.amazonaws.omics#ValidationException":
4996
- throw await de_ValidationExceptionRes(parsedOutput, context);
4997
- default:
4998
- const parsedBody = parsedOutput.body;
4999
- return throwDefaultError({
5000
- output,
5001
- parsedBody,
5002
- errorCode,
5003
- });
2845
+ return de_CommandError(output, context);
5004
2846
  }
2847
+ const contents = map({
2848
+ $metadata: deserializeMetadata(output),
2849
+ });
2850
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2851
+ const doc = take(data, {
2852
+ items: (_) => de_RunList(_, context),
2853
+ nextToken: __expectString,
2854
+ });
2855
+ Object.assign(contents, doc);
2856
+ return contents;
5005
2857
  };
5006
2858
  export const de_ListRunTasksCommand = async (output, context) => {
5007
2859
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5008
- return de_ListRunTasksCommandError(output, context);
2860
+ return de_CommandError(output, context);
5009
2861
  }
5010
2862
  const contents = map({
5011
2863
  $metadata: deserializeMetadata(output),
@@ -5018,49 +2870,9 @@ export const de_ListRunTasksCommand = async (output, context) => {
5018
2870
  Object.assign(contents, doc);
5019
2871
  return contents;
5020
2872
  };
5021
- const de_ListRunTasksCommandError = async (output, context) => {
5022
- const parsedOutput = {
5023
- ...output,
5024
- body: await parseErrorBody(output.body, context),
5025
- };
5026
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5027
- switch (errorCode) {
5028
- case "AccessDeniedException":
5029
- case "com.amazonaws.omics#AccessDeniedException":
5030
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5031
- case "ConflictException":
5032
- case "com.amazonaws.omics#ConflictException":
5033
- throw await de_ConflictExceptionRes(parsedOutput, context);
5034
- case "InternalServerException":
5035
- case "com.amazonaws.omics#InternalServerException":
5036
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5037
- case "RequestTimeoutException":
5038
- case "com.amazonaws.omics#RequestTimeoutException":
5039
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
5040
- case "ResourceNotFoundException":
5041
- case "com.amazonaws.omics#ResourceNotFoundException":
5042
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5043
- case "ServiceQuotaExceededException":
5044
- case "com.amazonaws.omics#ServiceQuotaExceededException":
5045
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5046
- case "ThrottlingException":
5047
- case "com.amazonaws.omics#ThrottlingException":
5048
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5049
- case "ValidationException":
5050
- case "com.amazonaws.omics#ValidationException":
5051
- throw await de_ValidationExceptionRes(parsedOutput, context);
5052
- default:
5053
- const parsedBody = parsedOutput.body;
5054
- return throwDefaultError({
5055
- output,
5056
- parsedBody,
5057
- errorCode,
5058
- });
5059
- }
5060
- };
5061
2873
  export const de_ListSequenceStoresCommand = async (output, context) => {
5062
2874
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5063
- return de_ListSequenceStoresCommandError(output, context);
2875
+ return de_CommandError(output, context);
5064
2876
  }
5065
2877
  const contents = map({
5066
2878
  $metadata: deserializeMetadata(output),
@@ -5073,40 +2885,9 @@ export const de_ListSequenceStoresCommand = async (output, context) => {
5073
2885
  Object.assign(contents, doc);
5074
2886
  return contents;
5075
2887
  };
5076
- const de_ListSequenceStoresCommandError = async (output, context) => {
5077
- const parsedOutput = {
5078
- ...output,
5079
- body: await parseErrorBody(output.body, context),
5080
- };
5081
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5082
- switch (errorCode) {
5083
- case "AccessDeniedException":
5084
- case "com.amazonaws.omics#AccessDeniedException":
5085
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5086
- case "InternalServerException":
5087
- case "com.amazonaws.omics#InternalServerException":
5088
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5089
- case "RequestTimeoutException":
5090
- case "com.amazonaws.omics#RequestTimeoutException":
5091
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
5092
- case "ThrottlingException":
5093
- case "com.amazonaws.omics#ThrottlingException":
5094
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5095
- case "ValidationException":
5096
- case "com.amazonaws.omics#ValidationException":
5097
- throw await de_ValidationExceptionRes(parsedOutput, context);
5098
- default:
5099
- const parsedBody = parsedOutput.body;
5100
- return throwDefaultError({
5101
- output,
5102
- parsedBody,
5103
- errorCode,
5104
- });
5105
- }
5106
- };
5107
2888
  export const de_ListSharesCommand = async (output, context) => {
5108
2889
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5109
- return de_ListSharesCommandError(output, context);
2890
+ return de_CommandError(output, context);
5110
2891
  }
5111
2892
  const contents = map({
5112
2893
  $metadata: deserializeMetadata(output),
@@ -5119,46 +2900,9 @@ export const de_ListSharesCommand = async (output, context) => {
5119
2900
  Object.assign(contents, doc);
5120
2901
  return contents;
5121
2902
  };
5122
- const de_ListSharesCommandError = async (output, context) => {
5123
- const parsedOutput = {
5124
- ...output,
5125
- body: await parseErrorBody(output.body, context),
5126
- };
5127
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5128
- switch (errorCode) {
5129
- case "AccessDeniedException":
5130
- case "com.amazonaws.omics#AccessDeniedException":
5131
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5132
- case "ConflictException":
5133
- case "com.amazonaws.omics#ConflictException":
5134
- throw await de_ConflictExceptionRes(parsedOutput, context);
5135
- case "InternalServerException":
5136
- case "com.amazonaws.omics#InternalServerException":
5137
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5138
- case "ResourceNotFoundException":
5139
- case "com.amazonaws.omics#ResourceNotFoundException":
5140
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5141
- case "ServiceQuotaExceededException":
5142
- case "com.amazonaws.omics#ServiceQuotaExceededException":
5143
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5144
- case "ThrottlingException":
5145
- case "com.amazonaws.omics#ThrottlingException":
5146
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5147
- case "ValidationException":
5148
- case "com.amazonaws.omics#ValidationException":
5149
- throw await de_ValidationExceptionRes(parsedOutput, context);
5150
- default:
5151
- const parsedBody = parsedOutput.body;
5152
- return throwDefaultError({
5153
- output,
5154
- parsedBody,
5155
- errorCode,
5156
- });
5157
- }
5158
- };
5159
2903
  export const de_ListTagsForResourceCommand = async (output, context) => {
5160
2904
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5161
- return de_ListTagsForResourceCommandError(output, context);
2905
+ return de_CommandError(output, context);
5162
2906
  }
5163
2907
  const contents = map({
5164
2908
  $metadata: deserializeMetadata(output),
@@ -5170,49 +2914,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
5170
2914
  Object.assign(contents, doc);
5171
2915
  return contents;
5172
2916
  };
5173
- const de_ListTagsForResourceCommandError = async (output, context) => {
5174
- const parsedOutput = {
5175
- ...output,
5176
- body: await parseErrorBody(output.body, context),
5177
- };
5178
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5179
- switch (errorCode) {
5180
- case "AccessDeniedException":
5181
- case "com.amazonaws.omics#AccessDeniedException":
5182
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5183
- case "ConflictException":
5184
- case "com.amazonaws.omics#ConflictException":
5185
- throw await de_ConflictExceptionRes(parsedOutput, context);
5186
- case "InternalServerException":
5187
- case "com.amazonaws.omics#InternalServerException":
5188
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5189
- case "RequestTimeoutException":
5190
- case "com.amazonaws.omics#RequestTimeoutException":
5191
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
5192
- case "ResourceNotFoundException":
5193
- case "com.amazonaws.omics#ResourceNotFoundException":
5194
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5195
- case "ServiceQuotaExceededException":
5196
- case "com.amazonaws.omics#ServiceQuotaExceededException":
5197
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5198
- case "ThrottlingException":
5199
- case "com.amazonaws.omics#ThrottlingException":
5200
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5201
- case "ValidationException":
5202
- case "com.amazonaws.omics#ValidationException":
5203
- throw await de_ValidationExceptionRes(parsedOutput, context);
5204
- default:
5205
- const parsedBody = parsedOutput.body;
5206
- return throwDefaultError({
5207
- output,
5208
- parsedBody,
5209
- errorCode,
5210
- });
5211
- }
5212
- };
5213
2917
  export const de_ListVariantImportJobsCommand = async (output, context) => {
5214
2918
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5215
- return de_ListVariantImportJobsCommandError(output, context);
2919
+ return de_CommandError(output, context);
5216
2920
  }
5217
2921
  const contents = map({
5218
2922
  $metadata: deserializeMetadata(output),
@@ -5225,40 +2929,9 @@ export const de_ListVariantImportJobsCommand = async (output, context) => {
5225
2929
  Object.assign(contents, doc);
5226
2930
  return contents;
5227
2931
  };
5228
- const de_ListVariantImportJobsCommandError = async (output, context) => {
5229
- const parsedOutput = {
5230
- ...output,
5231
- body: await parseErrorBody(output.body, context),
5232
- };
5233
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5234
- switch (errorCode) {
5235
- case "AccessDeniedException":
5236
- case "com.amazonaws.omics#AccessDeniedException":
5237
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5238
- case "InternalServerException":
5239
- case "com.amazonaws.omics#InternalServerException":
5240
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5241
- case "ResourceNotFoundException":
5242
- case "com.amazonaws.omics#ResourceNotFoundException":
5243
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5244
- case "ThrottlingException":
5245
- case "com.amazonaws.omics#ThrottlingException":
5246
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5247
- case "ValidationException":
5248
- case "com.amazonaws.omics#ValidationException":
5249
- throw await de_ValidationExceptionRes(parsedOutput, context);
5250
- default:
5251
- const parsedBody = parsedOutput.body;
5252
- return throwDefaultError({
5253
- output,
5254
- parsedBody,
5255
- errorCode,
5256
- });
5257
- }
5258
- };
5259
2932
  export const de_ListVariantStoresCommand = async (output, context) => {
5260
2933
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5261
- return de_ListVariantStoresCommandError(output, context);
2934
+ return de_CommandError(output, context);
5262
2935
  }
5263
2936
  const contents = map({
5264
2937
  $metadata: deserializeMetadata(output),
@@ -5271,40 +2944,9 @@ export const de_ListVariantStoresCommand = async (output, context) => {
5271
2944
  Object.assign(contents, doc);
5272
2945
  return contents;
5273
2946
  };
5274
- const de_ListVariantStoresCommandError = async (output, context) => {
5275
- const parsedOutput = {
5276
- ...output,
5277
- body: await parseErrorBody(output.body, context),
5278
- };
5279
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5280
- switch (errorCode) {
5281
- case "AccessDeniedException":
5282
- case "com.amazonaws.omics#AccessDeniedException":
5283
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5284
- case "InternalServerException":
5285
- case "com.amazonaws.omics#InternalServerException":
5286
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5287
- case "ResourceNotFoundException":
5288
- case "com.amazonaws.omics#ResourceNotFoundException":
5289
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5290
- case "ThrottlingException":
5291
- case "com.amazonaws.omics#ThrottlingException":
5292
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5293
- case "ValidationException":
5294
- case "com.amazonaws.omics#ValidationException":
5295
- throw await de_ValidationExceptionRes(parsedOutput, context);
5296
- default:
5297
- const parsedBody = parsedOutput.body;
5298
- return throwDefaultError({
5299
- output,
5300
- parsedBody,
5301
- errorCode,
5302
- });
5303
- }
5304
- };
5305
2947
  export const de_ListWorkflowsCommand = async (output, context) => {
5306
2948
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5307
- return de_ListWorkflowsCommandError(output, context);
2949
+ return de_CommandError(output, context);
5308
2950
  }
5309
2951
  const contents = map({
5310
2952
  $metadata: deserializeMetadata(output),
@@ -5313,53 +2955,13 @@ export const de_ListWorkflowsCommand = async (output, context) => {
5313
2955
  const doc = take(data, {
5314
2956
  items: (_) => de_WorkflowList(_, context),
5315
2957
  nextToken: __expectString,
5316
- });
5317
- Object.assign(contents, doc);
5318
- return contents;
5319
- };
5320
- const de_ListWorkflowsCommandError = async (output, context) => {
5321
- const parsedOutput = {
5322
- ...output,
5323
- body: await parseErrorBody(output.body, context),
5324
- };
5325
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5326
- switch (errorCode) {
5327
- case "AccessDeniedException":
5328
- case "com.amazonaws.omics#AccessDeniedException":
5329
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5330
- case "ConflictException":
5331
- case "com.amazonaws.omics#ConflictException":
5332
- throw await de_ConflictExceptionRes(parsedOutput, context);
5333
- case "InternalServerException":
5334
- case "com.amazonaws.omics#InternalServerException":
5335
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5336
- case "RequestTimeoutException":
5337
- case "com.amazonaws.omics#RequestTimeoutException":
5338
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
5339
- case "ResourceNotFoundException":
5340
- case "com.amazonaws.omics#ResourceNotFoundException":
5341
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5342
- case "ServiceQuotaExceededException":
5343
- case "com.amazonaws.omics#ServiceQuotaExceededException":
5344
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5345
- case "ThrottlingException":
5346
- case "com.amazonaws.omics#ThrottlingException":
5347
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5348
- case "ValidationException":
5349
- case "com.amazonaws.omics#ValidationException":
5350
- throw await de_ValidationExceptionRes(parsedOutput, context);
5351
- default:
5352
- const parsedBody = parsedOutput.body;
5353
- return throwDefaultError({
5354
- output,
5355
- parsedBody,
5356
- errorCode,
5357
- });
5358
- }
2958
+ });
2959
+ Object.assign(contents, doc);
2960
+ return contents;
5359
2961
  };
5360
2962
  export const de_StartAnnotationImportJobCommand = async (output, context) => {
5361
2963
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5362
- return de_StartAnnotationImportJobCommandError(output, context);
2964
+ return de_CommandError(output, context);
5363
2965
  }
5364
2966
  const contents = map({
5365
2967
  $metadata: deserializeMetadata(output),
@@ -5371,43 +2973,9 @@ export const de_StartAnnotationImportJobCommand = async (output, context) => {
5371
2973
  Object.assign(contents, doc);
5372
2974
  return contents;
5373
2975
  };
5374
- const de_StartAnnotationImportJobCommandError = async (output, context) => {
5375
- const parsedOutput = {
5376
- ...output,
5377
- body: await parseErrorBody(output.body, context),
5378
- };
5379
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5380
- switch (errorCode) {
5381
- case "AccessDeniedException":
5382
- case "com.amazonaws.omics#AccessDeniedException":
5383
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5384
- case "InternalServerException":
5385
- case "com.amazonaws.omics#InternalServerException":
5386
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5387
- case "ResourceNotFoundException":
5388
- case "com.amazonaws.omics#ResourceNotFoundException":
5389
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5390
- case "ServiceQuotaExceededException":
5391
- case "com.amazonaws.omics#ServiceQuotaExceededException":
5392
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5393
- case "ThrottlingException":
5394
- case "com.amazonaws.omics#ThrottlingException":
5395
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5396
- case "ValidationException":
5397
- case "com.amazonaws.omics#ValidationException":
5398
- throw await de_ValidationExceptionRes(parsedOutput, context);
5399
- default:
5400
- const parsedBody = parsedOutput.body;
5401
- return throwDefaultError({
5402
- output,
5403
- parsedBody,
5404
- errorCode,
5405
- });
5406
- }
5407
- };
5408
2976
  export const de_StartReadSetActivationJobCommand = async (output, context) => {
5409
2977
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5410
- return de_StartReadSetActivationJobCommandError(output, context);
2978
+ return de_CommandError(output, context);
5411
2979
  }
5412
2980
  const contents = map({
5413
2981
  $metadata: deserializeMetadata(output),
@@ -5422,46 +2990,9 @@ export const de_StartReadSetActivationJobCommand = async (output, context) => {
5422
2990
  Object.assign(contents, doc);
5423
2991
  return contents;
5424
2992
  };
5425
- const de_StartReadSetActivationJobCommandError = async (output, context) => {
5426
- const parsedOutput = {
5427
- ...output,
5428
- body: await parseErrorBody(output.body, context),
5429
- };
5430
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5431
- switch (errorCode) {
5432
- case "AccessDeniedException":
5433
- case "com.amazonaws.omics#AccessDeniedException":
5434
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5435
- case "InternalServerException":
5436
- case "com.amazonaws.omics#InternalServerException":
5437
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5438
- case "RequestTimeoutException":
5439
- case "com.amazonaws.omics#RequestTimeoutException":
5440
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
5441
- case "ResourceNotFoundException":
5442
- case "com.amazonaws.omics#ResourceNotFoundException":
5443
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5444
- case "ServiceQuotaExceededException":
5445
- case "com.amazonaws.omics#ServiceQuotaExceededException":
5446
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5447
- case "ThrottlingException":
5448
- case "com.amazonaws.omics#ThrottlingException":
5449
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5450
- case "ValidationException":
5451
- case "com.amazonaws.omics#ValidationException":
5452
- throw await de_ValidationExceptionRes(parsedOutput, context);
5453
- default:
5454
- const parsedBody = parsedOutput.body;
5455
- return throwDefaultError({
5456
- output,
5457
- parsedBody,
5458
- errorCode,
5459
- });
5460
- }
5461
- };
5462
2993
  export const de_StartReadSetExportJobCommand = async (output, context) => {
5463
2994
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5464
- return de_StartReadSetExportJobCommandError(output, context);
2995
+ return de_CommandError(output, context);
5465
2996
  }
5466
2997
  const contents = map({
5467
2998
  $metadata: deserializeMetadata(output),
@@ -5477,46 +3008,9 @@ export const de_StartReadSetExportJobCommand = async (output, context) => {
5477
3008
  Object.assign(contents, doc);
5478
3009
  return contents;
5479
3010
  };
5480
- const de_StartReadSetExportJobCommandError = async (output, context) => {
5481
- const parsedOutput = {
5482
- ...output,
5483
- body: await parseErrorBody(output.body, context),
5484
- };
5485
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5486
- switch (errorCode) {
5487
- case "AccessDeniedException":
5488
- case "com.amazonaws.omics#AccessDeniedException":
5489
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5490
- case "InternalServerException":
5491
- case "com.amazonaws.omics#InternalServerException":
5492
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5493
- case "RequestTimeoutException":
5494
- case "com.amazonaws.omics#RequestTimeoutException":
5495
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
5496
- case "ResourceNotFoundException":
5497
- case "com.amazonaws.omics#ResourceNotFoundException":
5498
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5499
- case "ServiceQuotaExceededException":
5500
- case "com.amazonaws.omics#ServiceQuotaExceededException":
5501
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5502
- case "ThrottlingException":
5503
- case "com.amazonaws.omics#ThrottlingException":
5504
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5505
- case "ValidationException":
5506
- case "com.amazonaws.omics#ValidationException":
5507
- throw await de_ValidationExceptionRes(parsedOutput, context);
5508
- default:
5509
- const parsedBody = parsedOutput.body;
5510
- return throwDefaultError({
5511
- output,
5512
- parsedBody,
5513
- errorCode,
5514
- });
5515
- }
5516
- };
5517
3011
  export const de_StartReadSetImportJobCommand = async (output, context) => {
5518
3012
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5519
- return de_StartReadSetImportJobCommandError(output, context);
3013
+ return de_CommandError(output, context);
5520
3014
  }
5521
3015
  const contents = map({
5522
3016
  $metadata: deserializeMetadata(output),
@@ -5532,46 +3026,9 @@ export const de_StartReadSetImportJobCommand = async (output, context) => {
5532
3026
  Object.assign(contents, doc);
5533
3027
  return contents;
5534
3028
  };
5535
- const de_StartReadSetImportJobCommandError = async (output, context) => {
5536
- const parsedOutput = {
5537
- ...output,
5538
- body: await parseErrorBody(output.body, context),
5539
- };
5540
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5541
- switch (errorCode) {
5542
- case "AccessDeniedException":
5543
- case "com.amazonaws.omics#AccessDeniedException":
5544
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5545
- case "InternalServerException":
5546
- case "com.amazonaws.omics#InternalServerException":
5547
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5548
- case "RequestTimeoutException":
5549
- case "com.amazonaws.omics#RequestTimeoutException":
5550
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
5551
- case "ResourceNotFoundException":
5552
- case "com.amazonaws.omics#ResourceNotFoundException":
5553
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5554
- case "ServiceQuotaExceededException":
5555
- case "com.amazonaws.omics#ServiceQuotaExceededException":
5556
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5557
- case "ThrottlingException":
5558
- case "com.amazonaws.omics#ThrottlingException":
5559
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5560
- case "ValidationException":
5561
- case "com.amazonaws.omics#ValidationException":
5562
- throw await de_ValidationExceptionRes(parsedOutput, context);
5563
- default:
5564
- const parsedBody = parsedOutput.body;
5565
- return throwDefaultError({
5566
- output,
5567
- parsedBody,
5568
- errorCode,
5569
- });
5570
- }
5571
- };
5572
3029
  export const de_StartReferenceImportJobCommand = async (output, context) => {
5573
3030
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5574
- return de_StartReferenceImportJobCommandError(output, context);
3031
+ return de_CommandError(output, context);
5575
3032
  }
5576
3033
  const contents = map({
5577
3034
  $metadata: deserializeMetadata(output),
@@ -5587,46 +3044,9 @@ export const de_StartReferenceImportJobCommand = async (output, context) => {
5587
3044
  Object.assign(contents, doc);
5588
3045
  return contents;
5589
3046
  };
5590
- const de_StartReferenceImportJobCommandError = async (output, context) => {
5591
- const parsedOutput = {
5592
- ...output,
5593
- body: await parseErrorBody(output.body, context),
5594
- };
5595
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5596
- switch (errorCode) {
5597
- case "AccessDeniedException":
5598
- case "com.amazonaws.omics#AccessDeniedException":
5599
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5600
- case "InternalServerException":
5601
- case "com.amazonaws.omics#InternalServerException":
5602
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5603
- case "RequestTimeoutException":
5604
- case "com.amazonaws.omics#RequestTimeoutException":
5605
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
5606
- case "ResourceNotFoundException":
5607
- case "com.amazonaws.omics#ResourceNotFoundException":
5608
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5609
- case "ServiceQuotaExceededException":
5610
- case "com.amazonaws.omics#ServiceQuotaExceededException":
5611
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5612
- case "ThrottlingException":
5613
- case "com.amazonaws.omics#ThrottlingException":
5614
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5615
- case "ValidationException":
5616
- case "com.amazonaws.omics#ValidationException":
5617
- throw await de_ValidationExceptionRes(parsedOutput, context);
5618
- default:
5619
- const parsedBody = parsedOutput.body;
5620
- return throwDefaultError({
5621
- output,
5622
- parsedBody,
5623
- errorCode,
5624
- });
5625
- }
5626
- };
5627
3047
  export const de_StartRunCommand = async (output, context) => {
5628
3048
  if (output.statusCode !== 201 && output.statusCode >= 300) {
5629
- return de_StartRunCommandError(output, context);
3049
+ return de_CommandError(output, context);
5630
3050
  }
5631
3051
  const contents = map({
5632
3052
  $metadata: deserializeMetadata(output),
@@ -5643,97 +3063,23 @@ export const de_StartRunCommand = async (output, context) => {
5643
3063
  Object.assign(contents, doc);
5644
3064
  return contents;
5645
3065
  };
5646
- const de_StartRunCommandError = async (output, context) => {
5647
- const parsedOutput = {
5648
- ...output,
5649
- body: await parseErrorBody(output.body, context),
5650
- };
5651
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5652
- switch (errorCode) {
5653
- case "AccessDeniedException":
5654
- case "com.amazonaws.omics#AccessDeniedException":
5655
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5656
- case "ConflictException":
5657
- case "com.amazonaws.omics#ConflictException":
5658
- throw await de_ConflictExceptionRes(parsedOutput, context);
5659
- case "InternalServerException":
5660
- case "com.amazonaws.omics#InternalServerException":
5661
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5662
- case "RequestTimeoutException":
5663
- case "com.amazonaws.omics#RequestTimeoutException":
5664
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
5665
- case "ResourceNotFoundException":
5666
- case "com.amazonaws.omics#ResourceNotFoundException":
5667
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5668
- case "ServiceQuotaExceededException":
5669
- case "com.amazonaws.omics#ServiceQuotaExceededException":
5670
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5671
- case "ThrottlingException":
5672
- case "com.amazonaws.omics#ThrottlingException":
5673
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5674
- case "ValidationException":
5675
- case "com.amazonaws.omics#ValidationException":
5676
- throw await de_ValidationExceptionRes(parsedOutput, context);
5677
- default:
5678
- const parsedBody = parsedOutput.body;
5679
- return throwDefaultError({
5680
- output,
5681
- parsedBody,
5682
- errorCode,
5683
- });
5684
- }
5685
- };
5686
3066
  export const de_StartVariantImportJobCommand = async (output, context) => {
5687
3067
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5688
- return de_StartVariantImportJobCommandError(output, context);
3068
+ return de_CommandError(output, context);
5689
3069
  }
5690
3070
  const contents = map({
5691
3071
  $metadata: deserializeMetadata(output),
5692
3072
  });
5693
3073
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5694
3074
  const doc = take(data, {
5695
- jobId: __expectString,
5696
- });
5697
- Object.assign(contents, doc);
5698
- return contents;
5699
- };
5700
- const de_StartVariantImportJobCommandError = async (output, context) => {
5701
- const parsedOutput = {
5702
- ...output,
5703
- body: await parseErrorBody(output.body, context),
5704
- };
5705
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5706
- switch (errorCode) {
5707
- case "AccessDeniedException":
5708
- case "com.amazonaws.omics#AccessDeniedException":
5709
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5710
- case "InternalServerException":
5711
- case "com.amazonaws.omics#InternalServerException":
5712
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5713
- case "ResourceNotFoundException":
5714
- case "com.amazonaws.omics#ResourceNotFoundException":
5715
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5716
- case "ServiceQuotaExceededException":
5717
- case "com.amazonaws.omics#ServiceQuotaExceededException":
5718
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5719
- case "ThrottlingException":
5720
- case "com.amazonaws.omics#ThrottlingException":
5721
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5722
- case "ValidationException":
5723
- case "com.amazonaws.omics#ValidationException":
5724
- throw await de_ValidationExceptionRes(parsedOutput, context);
5725
- default:
5726
- const parsedBody = parsedOutput.body;
5727
- return throwDefaultError({
5728
- output,
5729
- parsedBody,
5730
- errorCode,
5731
- });
5732
- }
3075
+ jobId: __expectString,
3076
+ });
3077
+ Object.assign(contents, doc);
3078
+ return contents;
5733
3079
  };
5734
3080
  export const de_TagResourceCommand = async (output, context) => {
5735
3081
  if (output.statusCode !== 204 && output.statusCode >= 300) {
5736
- return de_TagResourceCommandError(output, context);
3082
+ return de_CommandError(output, context);
5737
3083
  }
5738
3084
  const contents = map({
5739
3085
  $metadata: deserializeMetadata(output),
@@ -5741,49 +3087,9 @@ export const de_TagResourceCommand = async (output, context) => {
5741
3087
  await collectBody(output.body, context);
5742
3088
  return contents;
5743
3089
  };
5744
- const de_TagResourceCommandError = async (output, context) => {
5745
- const parsedOutput = {
5746
- ...output,
5747
- body: await parseErrorBody(output.body, context),
5748
- };
5749
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5750
- switch (errorCode) {
5751
- case "AccessDeniedException":
5752
- case "com.amazonaws.omics#AccessDeniedException":
5753
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5754
- case "ConflictException":
5755
- case "com.amazonaws.omics#ConflictException":
5756
- throw await de_ConflictExceptionRes(parsedOutput, context);
5757
- case "InternalServerException":
5758
- case "com.amazonaws.omics#InternalServerException":
5759
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5760
- case "RequestTimeoutException":
5761
- case "com.amazonaws.omics#RequestTimeoutException":
5762
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
5763
- case "ResourceNotFoundException":
5764
- case "com.amazonaws.omics#ResourceNotFoundException":
5765
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5766
- case "ServiceQuotaExceededException":
5767
- case "com.amazonaws.omics#ServiceQuotaExceededException":
5768
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5769
- case "ThrottlingException":
5770
- case "com.amazonaws.omics#ThrottlingException":
5771
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5772
- case "ValidationException":
5773
- case "com.amazonaws.omics#ValidationException":
5774
- throw await de_ValidationExceptionRes(parsedOutput, context);
5775
- default:
5776
- const parsedBody = parsedOutput.body;
5777
- return throwDefaultError({
5778
- output,
5779
- parsedBody,
5780
- errorCode,
5781
- });
5782
- }
5783
- };
5784
3090
  export const de_UntagResourceCommand = async (output, context) => {
5785
3091
  if (output.statusCode !== 204 && output.statusCode >= 300) {
5786
- return de_UntagResourceCommandError(output, context);
3092
+ return de_CommandError(output, context);
5787
3093
  }
5788
3094
  const contents = map({
5789
3095
  $metadata: deserializeMetadata(output),
@@ -5791,49 +3097,9 @@ export const de_UntagResourceCommand = async (output, context) => {
5791
3097
  await collectBody(output.body, context);
5792
3098
  return contents;
5793
3099
  };
5794
- const de_UntagResourceCommandError = async (output, context) => {
5795
- const parsedOutput = {
5796
- ...output,
5797
- body: await parseErrorBody(output.body, context),
5798
- };
5799
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5800
- switch (errorCode) {
5801
- case "AccessDeniedException":
5802
- case "com.amazonaws.omics#AccessDeniedException":
5803
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5804
- case "ConflictException":
5805
- case "com.amazonaws.omics#ConflictException":
5806
- throw await de_ConflictExceptionRes(parsedOutput, context);
5807
- case "InternalServerException":
5808
- case "com.amazonaws.omics#InternalServerException":
5809
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5810
- case "RequestTimeoutException":
5811
- case "com.amazonaws.omics#RequestTimeoutException":
5812
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
5813
- case "ResourceNotFoundException":
5814
- case "com.amazonaws.omics#ResourceNotFoundException":
5815
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5816
- case "ServiceQuotaExceededException":
5817
- case "com.amazonaws.omics#ServiceQuotaExceededException":
5818
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5819
- case "ThrottlingException":
5820
- case "com.amazonaws.omics#ThrottlingException":
5821
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5822
- case "ValidationException":
5823
- case "com.amazonaws.omics#ValidationException":
5824
- throw await de_ValidationExceptionRes(parsedOutput, context);
5825
- default:
5826
- const parsedBody = parsedOutput.body;
5827
- return throwDefaultError({
5828
- output,
5829
- parsedBody,
5830
- errorCode,
5831
- });
5832
- }
5833
- };
5834
3100
  export const de_UpdateAnnotationStoreCommand = async (output, context) => {
5835
3101
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5836
- return de_UpdateAnnotationStoreCommandError(output, context);
3102
+ return de_CommandError(output, context);
5837
3103
  }
5838
3104
  const contents = map({
5839
3105
  $metadata: deserializeMetadata(output),
@@ -5853,40 +3119,9 @@ export const de_UpdateAnnotationStoreCommand = async (output, context) => {
5853
3119
  Object.assign(contents, doc);
5854
3120
  return contents;
5855
3121
  };
5856
- const de_UpdateAnnotationStoreCommandError = async (output, context) => {
5857
- const parsedOutput = {
5858
- ...output,
5859
- body: await parseErrorBody(output.body, context),
5860
- };
5861
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5862
- switch (errorCode) {
5863
- case "AccessDeniedException":
5864
- case "com.amazonaws.omics#AccessDeniedException":
5865
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5866
- case "InternalServerException":
5867
- case "com.amazonaws.omics#InternalServerException":
5868
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5869
- case "ResourceNotFoundException":
5870
- case "com.amazonaws.omics#ResourceNotFoundException":
5871
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5872
- case "ThrottlingException":
5873
- case "com.amazonaws.omics#ThrottlingException":
5874
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5875
- case "ValidationException":
5876
- case "com.amazonaws.omics#ValidationException":
5877
- throw await de_ValidationExceptionRes(parsedOutput, context);
5878
- default:
5879
- const parsedBody = parsedOutput.body;
5880
- return throwDefaultError({
5881
- output,
5882
- parsedBody,
5883
- errorCode,
5884
- });
5885
- }
5886
- };
5887
3122
  export const de_UpdateAnnotationStoreVersionCommand = async (output, context) => {
5888
3123
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5889
- return de_UpdateAnnotationStoreVersionCommandError(output, context);
3124
+ return de_CommandError(output, context);
5890
3125
  }
5891
3126
  const contents = map({
5892
3127
  $metadata: deserializeMetadata(output),
@@ -5905,40 +3140,9 @@ export const de_UpdateAnnotationStoreVersionCommand = async (output, context) =>
5905
3140
  Object.assign(contents, doc);
5906
3141
  return contents;
5907
3142
  };
5908
- const de_UpdateAnnotationStoreVersionCommandError = async (output, context) => {
5909
- const parsedOutput = {
5910
- ...output,
5911
- body: await parseErrorBody(output.body, context),
5912
- };
5913
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5914
- switch (errorCode) {
5915
- case "AccessDeniedException":
5916
- case "com.amazonaws.omics#AccessDeniedException":
5917
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5918
- case "InternalServerException":
5919
- case "com.amazonaws.omics#InternalServerException":
5920
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5921
- case "ResourceNotFoundException":
5922
- case "com.amazonaws.omics#ResourceNotFoundException":
5923
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5924
- case "ThrottlingException":
5925
- case "com.amazonaws.omics#ThrottlingException":
5926
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5927
- case "ValidationException":
5928
- case "com.amazonaws.omics#ValidationException":
5929
- throw await de_ValidationExceptionRes(parsedOutput, context);
5930
- default:
5931
- const parsedBody = parsedOutput.body;
5932
- return throwDefaultError({
5933
- output,
5934
- parsedBody,
5935
- errorCode,
5936
- });
5937
- }
5938
- };
5939
3143
  export const de_UpdateRunGroupCommand = async (output, context) => {
5940
3144
  if (output.statusCode !== 202 && output.statusCode >= 300) {
5941
- return de_UpdateRunGroupCommandError(output, context);
3145
+ return de_CommandError(output, context);
5942
3146
  }
5943
3147
  const contents = map({
5944
3148
  $metadata: deserializeMetadata(output),
@@ -5946,49 +3150,9 @@ export const de_UpdateRunGroupCommand = async (output, context) => {
5946
3150
  await collectBody(output.body, context);
5947
3151
  return contents;
5948
3152
  };
5949
- const de_UpdateRunGroupCommandError = async (output, context) => {
5950
- const parsedOutput = {
5951
- ...output,
5952
- body: await parseErrorBody(output.body, context),
5953
- };
5954
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5955
- switch (errorCode) {
5956
- case "AccessDeniedException":
5957
- case "com.amazonaws.omics#AccessDeniedException":
5958
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5959
- case "ConflictException":
5960
- case "com.amazonaws.omics#ConflictException":
5961
- throw await de_ConflictExceptionRes(parsedOutput, context);
5962
- case "InternalServerException":
5963
- case "com.amazonaws.omics#InternalServerException":
5964
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5965
- case "RequestTimeoutException":
5966
- case "com.amazonaws.omics#RequestTimeoutException":
5967
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
5968
- case "ResourceNotFoundException":
5969
- case "com.amazonaws.omics#ResourceNotFoundException":
5970
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5971
- case "ServiceQuotaExceededException":
5972
- case "com.amazonaws.omics#ServiceQuotaExceededException":
5973
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5974
- case "ThrottlingException":
5975
- case "com.amazonaws.omics#ThrottlingException":
5976
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5977
- case "ValidationException":
5978
- case "com.amazonaws.omics#ValidationException":
5979
- throw await de_ValidationExceptionRes(parsedOutput, context);
5980
- default:
5981
- const parsedBody = parsedOutput.body;
5982
- return throwDefaultError({
5983
- output,
5984
- parsedBody,
5985
- errorCode,
5986
- });
5987
- }
5988
- };
5989
3153
  export const de_UpdateVariantStoreCommand = async (output, context) => {
5990
3154
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5991
- return de_UpdateVariantStoreCommandError(output, context);
3155
+ return de_CommandError(output, context);
5992
3156
  }
5993
3157
  const contents = map({
5994
3158
  $metadata: deserializeMetadata(output),
@@ -6006,40 +3170,9 @@ export const de_UpdateVariantStoreCommand = async (output, context) => {
6006
3170
  Object.assign(contents, doc);
6007
3171
  return contents;
6008
3172
  };
6009
- const de_UpdateVariantStoreCommandError = async (output, context) => {
6010
- const parsedOutput = {
6011
- ...output,
6012
- body: await parseErrorBody(output.body, context),
6013
- };
6014
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6015
- switch (errorCode) {
6016
- case "AccessDeniedException":
6017
- case "com.amazonaws.omics#AccessDeniedException":
6018
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
6019
- case "InternalServerException":
6020
- case "com.amazonaws.omics#InternalServerException":
6021
- throw await de_InternalServerExceptionRes(parsedOutput, context);
6022
- case "ResourceNotFoundException":
6023
- case "com.amazonaws.omics#ResourceNotFoundException":
6024
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6025
- case "ThrottlingException":
6026
- case "com.amazonaws.omics#ThrottlingException":
6027
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
6028
- case "ValidationException":
6029
- case "com.amazonaws.omics#ValidationException":
6030
- throw await de_ValidationExceptionRes(parsedOutput, context);
6031
- default:
6032
- const parsedBody = parsedOutput.body;
6033
- return throwDefaultError({
6034
- output,
6035
- parsedBody,
6036
- errorCode,
6037
- });
6038
- }
6039
- };
6040
3173
  export const de_UpdateWorkflowCommand = async (output, context) => {
6041
3174
  if (output.statusCode !== 202 && output.statusCode >= 300) {
6042
- return de_UpdateWorkflowCommandError(output, context);
3175
+ return de_CommandError(output, context);
6043
3176
  }
6044
3177
  const contents = map({
6045
3178
  $metadata: deserializeMetadata(output),
@@ -6047,49 +3180,9 @@ export const de_UpdateWorkflowCommand = async (output, context) => {
6047
3180
  await collectBody(output.body, context);
6048
3181
  return contents;
6049
3182
  };
6050
- const de_UpdateWorkflowCommandError = async (output, context) => {
6051
- const parsedOutput = {
6052
- ...output,
6053
- body: await parseErrorBody(output.body, context),
6054
- };
6055
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
6056
- switch (errorCode) {
6057
- case "AccessDeniedException":
6058
- case "com.amazonaws.omics#AccessDeniedException":
6059
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
6060
- case "ConflictException":
6061
- case "com.amazonaws.omics#ConflictException":
6062
- throw await de_ConflictExceptionRes(parsedOutput, context);
6063
- case "InternalServerException":
6064
- case "com.amazonaws.omics#InternalServerException":
6065
- throw await de_InternalServerExceptionRes(parsedOutput, context);
6066
- case "RequestTimeoutException":
6067
- case "com.amazonaws.omics#RequestTimeoutException":
6068
- throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
6069
- case "ResourceNotFoundException":
6070
- case "com.amazonaws.omics#ResourceNotFoundException":
6071
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
6072
- case "ServiceQuotaExceededException":
6073
- case "com.amazonaws.omics#ServiceQuotaExceededException":
6074
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
6075
- case "ThrottlingException":
6076
- case "com.amazonaws.omics#ThrottlingException":
6077
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
6078
- case "ValidationException":
6079
- case "com.amazonaws.omics#ValidationException":
6080
- throw await de_ValidationExceptionRes(parsedOutput, context);
6081
- default:
6082
- const parsedBody = parsedOutput.body;
6083
- return throwDefaultError({
6084
- output,
6085
- parsedBody,
6086
- errorCode,
6087
- });
6088
- }
6089
- };
6090
3183
  export const de_UploadReadSetPartCommand = async (output, context) => {
6091
3184
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6092
- return de_UploadReadSetPartCommandError(output, context);
3185
+ return de_CommandError(output, context);
6093
3186
  }
6094
3187
  const contents = map({
6095
3188
  $metadata: deserializeMetadata(output),
@@ -6101,7 +3194,7 @@ export const de_UploadReadSetPartCommand = async (output, context) => {
6101
3194
  Object.assign(contents, doc);
6102
3195
  return contents;
6103
3196
  };
6104
- const de_UploadReadSetPartCommandError = async (output, context) => {
3197
+ const de_CommandError = async (output, context) => {
6105
3198
  const parsedOutput = {
6106
3199
  ...output,
6107
3200
  body: await parseErrorBody(output.body, context),
@@ -6132,6 +3225,12 @@ const de_UploadReadSetPartCommandError = async (output, context) => {
6132
3225
  case "ValidationException":
6133
3226
  case "com.amazonaws.omics#ValidationException":
6134
3227
  throw await de_ValidationExceptionRes(parsedOutput, context);
3228
+ case "ConflictException":
3229
+ case "com.amazonaws.omics#ConflictException":
3230
+ throw await de_ConflictExceptionRes(parsedOutput, context);
3231
+ case "RangeNotSatisfiableException":
3232
+ case "com.amazonaws.omics#RangeNotSatisfiableException":
3233
+ throw await de_RangeNotSatisfiableExceptionRes(parsedOutput, context);
6135
3234
  default:
6136
3235
  const parsedBody = parsedOutput.body;
6137
3236
  return throwDefaultError({