@aws-sdk/client-macie2 3.503.1 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1861,7 +1861,7 @@ var se_UpdateSensitivityInspectionTemplateCommand = /* @__PURE__ */ __name(async
1861
1861
  }, "se_UpdateSensitivityInspectionTemplateCommand");
1862
1862
  var de_AcceptInvitationCommand = /* @__PURE__ */ __name(async (output, context) => {
1863
1863
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1864
- return de_AcceptInvitationCommandError(output, context);
1864
+ return de_CommandError(output, context);
1865
1865
  }
1866
1866
  const contents = (0, import_smithy_client.map)({
1867
1867
  $metadata: deserializeMetadata(output)
@@ -1869,46 +1869,9 @@ var de_AcceptInvitationCommand = /* @__PURE__ */ __name(async (output, context)
1869
1869
  await (0, import_smithy_client.collectBody)(output.body, context);
1870
1870
  return contents;
1871
1871
  }, "de_AcceptInvitationCommand");
1872
- var de_AcceptInvitationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1873
- const parsedOutput = {
1874
- ...output,
1875
- body: await parseErrorBody(output.body, context)
1876
- };
1877
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1878
- switch (errorCode) {
1879
- case "AccessDeniedException":
1880
- case "com.amazonaws.macie2#AccessDeniedException":
1881
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1882
- case "ConflictException":
1883
- case "com.amazonaws.macie2#ConflictException":
1884
- throw await de_ConflictExceptionRes(parsedOutput, context);
1885
- case "InternalServerException":
1886
- case "com.amazonaws.macie2#InternalServerException":
1887
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1888
- case "ResourceNotFoundException":
1889
- case "com.amazonaws.macie2#ResourceNotFoundException":
1890
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1891
- case "ServiceQuotaExceededException":
1892
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
1893
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1894
- case "ThrottlingException":
1895
- case "com.amazonaws.macie2#ThrottlingException":
1896
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1897
- case "ValidationException":
1898
- case "com.amazonaws.macie2#ValidationException":
1899
- throw await de_ValidationExceptionRes(parsedOutput, context);
1900
- default:
1901
- const parsedBody = parsedOutput.body;
1902
- return throwDefaultError({
1903
- output,
1904
- parsedBody,
1905
- errorCode
1906
- });
1907
- }
1908
- }, "de_AcceptInvitationCommandError");
1909
1872
  var de_BatchGetCustomDataIdentifiersCommand = /* @__PURE__ */ __name(async (output, context) => {
1910
1873
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1911
- return de_BatchGetCustomDataIdentifiersCommandError(output, context);
1874
+ return de_CommandError(output, context);
1912
1875
  }
1913
1876
  const contents = (0, import_smithy_client.map)({
1914
1877
  $metadata: deserializeMetadata(output)
@@ -1925,46 +1888,9 @@ var de_BatchGetCustomDataIdentifiersCommand = /* @__PURE__ */ __name(async (outp
1925
1888
  Object.assign(contents, doc);
1926
1889
  return contents;
1927
1890
  }, "de_BatchGetCustomDataIdentifiersCommand");
1928
- var de_BatchGetCustomDataIdentifiersCommandError = /* @__PURE__ */ __name(async (output, context) => {
1929
- const parsedOutput = {
1930
- ...output,
1931
- body: await parseErrorBody(output.body, context)
1932
- };
1933
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1934
- switch (errorCode) {
1935
- case "AccessDeniedException":
1936
- case "com.amazonaws.macie2#AccessDeniedException":
1937
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1938
- case "ConflictException":
1939
- case "com.amazonaws.macie2#ConflictException":
1940
- throw await de_ConflictExceptionRes(parsedOutput, context);
1941
- case "InternalServerException":
1942
- case "com.amazonaws.macie2#InternalServerException":
1943
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1944
- case "ResourceNotFoundException":
1945
- case "com.amazonaws.macie2#ResourceNotFoundException":
1946
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1947
- case "ServiceQuotaExceededException":
1948
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
1949
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1950
- case "ThrottlingException":
1951
- case "com.amazonaws.macie2#ThrottlingException":
1952
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1953
- case "ValidationException":
1954
- case "com.amazonaws.macie2#ValidationException":
1955
- throw await de_ValidationExceptionRes(parsedOutput, context);
1956
- default:
1957
- const parsedBody = parsedOutput.body;
1958
- return throwDefaultError({
1959
- output,
1960
- parsedBody,
1961
- errorCode
1962
- });
1963
- }
1964
- }, "de_BatchGetCustomDataIdentifiersCommandError");
1965
1891
  var de_CreateAllowListCommand = /* @__PURE__ */ __name(async (output, context) => {
1966
1892
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1967
- return de_CreateAllowListCommandError(output, context);
1893
+ return de_CommandError(output, context);
1968
1894
  }
1969
1895
  const contents = (0, import_smithy_client.map)({
1970
1896
  $metadata: deserializeMetadata(output)
@@ -1977,46 +1903,9 @@ var de_CreateAllowListCommand = /* @__PURE__ */ __name(async (output, context) =
1977
1903
  Object.assign(contents, doc);
1978
1904
  return contents;
1979
1905
  }, "de_CreateAllowListCommand");
1980
- var de_CreateAllowListCommandError = /* @__PURE__ */ __name(async (output, context) => {
1981
- const parsedOutput = {
1982
- ...output,
1983
- body: await parseErrorBody(output.body, context)
1984
- };
1985
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1986
- switch (errorCode) {
1987
- case "AccessDeniedException":
1988
- case "com.amazonaws.macie2#AccessDeniedException":
1989
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1990
- case "ConflictException":
1991
- case "com.amazonaws.macie2#ConflictException":
1992
- throw await de_ConflictExceptionRes(parsedOutput, context);
1993
- case "InternalServerException":
1994
- case "com.amazonaws.macie2#InternalServerException":
1995
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1996
- case "ResourceNotFoundException":
1997
- case "com.amazonaws.macie2#ResourceNotFoundException":
1998
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1999
- case "ServiceQuotaExceededException":
2000
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2001
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2002
- case "ThrottlingException":
2003
- case "com.amazonaws.macie2#ThrottlingException":
2004
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2005
- case "ValidationException":
2006
- case "com.amazonaws.macie2#ValidationException":
2007
- throw await de_ValidationExceptionRes(parsedOutput, context);
2008
- default:
2009
- const parsedBody = parsedOutput.body;
2010
- return throwDefaultError({
2011
- output,
2012
- parsedBody,
2013
- errorCode
2014
- });
2015
- }
2016
- }, "de_CreateAllowListCommandError");
2017
1906
  var de_CreateClassificationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
2018
1907
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2019
- return de_CreateClassificationJobCommandError(output, context);
1908
+ return de_CommandError(output, context);
2020
1909
  }
2021
1910
  const contents = (0, import_smithy_client.map)({
2022
1911
  $metadata: deserializeMetadata(output)
@@ -2029,46 +1918,9 @@ var de_CreateClassificationJobCommand = /* @__PURE__ */ __name(async (output, co
2029
1918
  Object.assign(contents, doc);
2030
1919
  return contents;
2031
1920
  }, "de_CreateClassificationJobCommand");
2032
- var de_CreateClassificationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
2033
- const parsedOutput = {
2034
- ...output,
2035
- body: await parseErrorBody(output.body, context)
2036
- };
2037
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2038
- switch (errorCode) {
2039
- case "AccessDeniedException":
2040
- case "com.amazonaws.macie2#AccessDeniedException":
2041
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2042
- case "ConflictException":
2043
- case "com.amazonaws.macie2#ConflictException":
2044
- throw await de_ConflictExceptionRes(parsedOutput, context);
2045
- case "InternalServerException":
2046
- case "com.amazonaws.macie2#InternalServerException":
2047
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2048
- case "ResourceNotFoundException":
2049
- case "com.amazonaws.macie2#ResourceNotFoundException":
2050
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2051
- case "ServiceQuotaExceededException":
2052
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2053
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2054
- case "ThrottlingException":
2055
- case "com.amazonaws.macie2#ThrottlingException":
2056
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2057
- case "ValidationException":
2058
- case "com.amazonaws.macie2#ValidationException":
2059
- throw await de_ValidationExceptionRes(parsedOutput, context);
2060
- default:
2061
- const parsedBody = parsedOutput.body;
2062
- return throwDefaultError({
2063
- output,
2064
- parsedBody,
2065
- errorCode
2066
- });
2067
- }
2068
- }, "de_CreateClassificationJobCommandError");
2069
1921
  var de_CreateCustomDataIdentifierCommand = /* @__PURE__ */ __name(async (output, context) => {
2070
1922
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2071
- return de_CreateCustomDataIdentifierCommandError(output, context);
1923
+ return de_CommandError(output, context);
2072
1924
  }
2073
1925
  const contents = (0, import_smithy_client.map)({
2074
1926
  $metadata: deserializeMetadata(output)
@@ -2080,46 +1932,9 @@ var de_CreateCustomDataIdentifierCommand = /* @__PURE__ */ __name(async (output,
2080
1932
  Object.assign(contents, doc);
2081
1933
  return contents;
2082
1934
  }, "de_CreateCustomDataIdentifierCommand");
2083
- var de_CreateCustomDataIdentifierCommandError = /* @__PURE__ */ __name(async (output, context) => {
2084
- const parsedOutput = {
2085
- ...output,
2086
- body: await parseErrorBody(output.body, context)
2087
- };
2088
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2089
- switch (errorCode) {
2090
- case "AccessDeniedException":
2091
- case "com.amazonaws.macie2#AccessDeniedException":
2092
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2093
- case "ConflictException":
2094
- case "com.amazonaws.macie2#ConflictException":
2095
- throw await de_ConflictExceptionRes(parsedOutput, context);
2096
- case "InternalServerException":
2097
- case "com.amazonaws.macie2#InternalServerException":
2098
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2099
- case "ResourceNotFoundException":
2100
- case "com.amazonaws.macie2#ResourceNotFoundException":
2101
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2102
- case "ServiceQuotaExceededException":
2103
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2104
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2105
- case "ThrottlingException":
2106
- case "com.amazonaws.macie2#ThrottlingException":
2107
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2108
- case "ValidationException":
2109
- case "com.amazonaws.macie2#ValidationException":
2110
- throw await de_ValidationExceptionRes(parsedOutput, context);
2111
- default:
2112
- const parsedBody = parsedOutput.body;
2113
- return throwDefaultError({
2114
- output,
2115
- parsedBody,
2116
- errorCode
2117
- });
2118
- }
2119
- }, "de_CreateCustomDataIdentifierCommandError");
2120
1935
  var de_CreateFindingsFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
2121
1936
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2122
- return de_CreateFindingsFilterCommandError(output, context);
1937
+ return de_CommandError(output, context);
2123
1938
  }
2124
1939
  const contents = (0, import_smithy_client.map)({
2125
1940
  $metadata: deserializeMetadata(output)
@@ -2132,46 +1947,9 @@ var de_CreateFindingsFilterCommand = /* @__PURE__ */ __name(async (output, conte
2132
1947
  Object.assign(contents, doc);
2133
1948
  return contents;
2134
1949
  }, "de_CreateFindingsFilterCommand");
2135
- var de_CreateFindingsFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
2136
- const parsedOutput = {
2137
- ...output,
2138
- body: await parseErrorBody(output.body, context)
2139
- };
2140
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2141
- switch (errorCode) {
2142
- case "AccessDeniedException":
2143
- case "com.amazonaws.macie2#AccessDeniedException":
2144
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2145
- case "ConflictException":
2146
- case "com.amazonaws.macie2#ConflictException":
2147
- throw await de_ConflictExceptionRes(parsedOutput, context);
2148
- case "InternalServerException":
2149
- case "com.amazonaws.macie2#InternalServerException":
2150
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2151
- case "ResourceNotFoundException":
2152
- case "com.amazonaws.macie2#ResourceNotFoundException":
2153
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2154
- case "ServiceQuotaExceededException":
2155
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2156
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2157
- case "ThrottlingException":
2158
- case "com.amazonaws.macie2#ThrottlingException":
2159
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2160
- case "ValidationException":
2161
- case "com.amazonaws.macie2#ValidationException":
2162
- throw await de_ValidationExceptionRes(parsedOutput, context);
2163
- default:
2164
- const parsedBody = parsedOutput.body;
2165
- return throwDefaultError({
2166
- output,
2167
- parsedBody,
2168
- errorCode
2169
- });
2170
- }
2171
- }, "de_CreateFindingsFilterCommandError");
2172
1950
  var de_CreateInvitationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2173
1951
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2174
- return de_CreateInvitationsCommandError(output, context);
1952
+ return de_CommandError(output, context);
2175
1953
  }
2176
1954
  const contents = (0, import_smithy_client.map)({
2177
1955
  $metadata: deserializeMetadata(output)
@@ -2183,46 +1961,9 @@ var de_CreateInvitationsCommand = /* @__PURE__ */ __name(async (output, context)
2183
1961
  Object.assign(contents, doc);
2184
1962
  return contents;
2185
1963
  }, "de_CreateInvitationsCommand");
2186
- var de_CreateInvitationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2187
- const parsedOutput = {
2188
- ...output,
2189
- body: await parseErrorBody(output.body, context)
2190
- };
2191
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2192
- switch (errorCode) {
2193
- case "AccessDeniedException":
2194
- case "com.amazonaws.macie2#AccessDeniedException":
2195
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2196
- case "ConflictException":
2197
- case "com.amazonaws.macie2#ConflictException":
2198
- throw await de_ConflictExceptionRes(parsedOutput, context);
2199
- case "InternalServerException":
2200
- case "com.amazonaws.macie2#InternalServerException":
2201
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2202
- case "ResourceNotFoundException":
2203
- case "com.amazonaws.macie2#ResourceNotFoundException":
2204
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2205
- case "ServiceQuotaExceededException":
2206
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2207
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2208
- case "ThrottlingException":
2209
- case "com.amazonaws.macie2#ThrottlingException":
2210
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2211
- case "ValidationException":
2212
- case "com.amazonaws.macie2#ValidationException":
2213
- throw await de_ValidationExceptionRes(parsedOutput, context);
2214
- default:
2215
- const parsedBody = parsedOutput.body;
2216
- return throwDefaultError({
2217
- output,
2218
- parsedBody,
2219
- errorCode
2220
- });
2221
- }
2222
- }, "de_CreateInvitationsCommandError");
2223
1964
  var de_CreateMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
2224
1965
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2225
- return de_CreateMemberCommandError(output, context);
1966
+ return de_CommandError(output, context);
2226
1967
  }
2227
1968
  const contents = (0, import_smithy_client.map)({
2228
1969
  $metadata: deserializeMetadata(output)
@@ -2234,46 +1975,9 @@ var de_CreateMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
2234
1975
  Object.assign(contents, doc);
2235
1976
  return contents;
2236
1977
  }, "de_CreateMemberCommand");
2237
- var de_CreateMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
2238
- const parsedOutput = {
2239
- ...output,
2240
- body: await parseErrorBody(output.body, context)
2241
- };
2242
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2243
- switch (errorCode) {
2244
- case "AccessDeniedException":
2245
- case "com.amazonaws.macie2#AccessDeniedException":
2246
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2247
- case "ConflictException":
2248
- case "com.amazonaws.macie2#ConflictException":
2249
- throw await de_ConflictExceptionRes(parsedOutput, context);
2250
- case "InternalServerException":
2251
- case "com.amazonaws.macie2#InternalServerException":
2252
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2253
- case "ResourceNotFoundException":
2254
- case "com.amazonaws.macie2#ResourceNotFoundException":
2255
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2256
- case "ServiceQuotaExceededException":
2257
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2258
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2259
- case "ThrottlingException":
2260
- case "com.amazonaws.macie2#ThrottlingException":
2261
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2262
- case "ValidationException":
2263
- case "com.amazonaws.macie2#ValidationException":
2264
- throw await de_ValidationExceptionRes(parsedOutput, context);
2265
- default:
2266
- const parsedBody = parsedOutput.body;
2267
- return throwDefaultError({
2268
- output,
2269
- parsedBody,
2270
- errorCode
2271
- });
2272
- }
2273
- }, "de_CreateMemberCommandError");
2274
1978
  var de_CreateSampleFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2275
1979
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2276
- return de_CreateSampleFindingsCommandError(output, context);
1980
+ return de_CommandError(output, context);
2277
1981
  }
2278
1982
  const contents = (0, import_smithy_client.map)({
2279
1983
  $metadata: deserializeMetadata(output)
@@ -2281,46 +1985,9 @@ var de_CreateSampleFindingsCommand = /* @__PURE__ */ __name(async (output, conte
2281
1985
  await (0, import_smithy_client.collectBody)(output.body, context);
2282
1986
  return contents;
2283
1987
  }, "de_CreateSampleFindingsCommand");
2284
- var de_CreateSampleFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2285
- const parsedOutput = {
2286
- ...output,
2287
- body: await parseErrorBody(output.body, context)
2288
- };
2289
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2290
- switch (errorCode) {
2291
- case "AccessDeniedException":
2292
- case "com.amazonaws.macie2#AccessDeniedException":
2293
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2294
- case "ConflictException":
2295
- case "com.amazonaws.macie2#ConflictException":
2296
- throw await de_ConflictExceptionRes(parsedOutput, context);
2297
- case "InternalServerException":
2298
- case "com.amazonaws.macie2#InternalServerException":
2299
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2300
- case "ResourceNotFoundException":
2301
- case "com.amazonaws.macie2#ResourceNotFoundException":
2302
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2303
- case "ServiceQuotaExceededException":
2304
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2305
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2306
- case "ThrottlingException":
2307
- case "com.amazonaws.macie2#ThrottlingException":
2308
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2309
- case "ValidationException":
2310
- case "com.amazonaws.macie2#ValidationException":
2311
- throw await de_ValidationExceptionRes(parsedOutput, context);
2312
- default:
2313
- const parsedBody = parsedOutput.body;
2314
- return throwDefaultError({
2315
- output,
2316
- parsedBody,
2317
- errorCode
2318
- });
2319
- }
2320
- }, "de_CreateSampleFindingsCommandError");
2321
1988
  var de_DeclineInvitationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2322
1989
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2323
- return de_DeclineInvitationsCommandError(output, context);
1990
+ return de_CommandError(output, context);
2324
1991
  }
2325
1992
  const contents = (0, import_smithy_client.map)({
2326
1993
  $metadata: deserializeMetadata(output)
@@ -2332,46 +1999,9 @@ var de_DeclineInvitationsCommand = /* @__PURE__ */ __name(async (output, context
2332
1999
  Object.assign(contents, doc);
2333
2000
  return contents;
2334
2001
  }, "de_DeclineInvitationsCommand");
2335
- var de_DeclineInvitationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2336
- const parsedOutput = {
2337
- ...output,
2338
- body: await parseErrorBody(output.body, context)
2339
- };
2340
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2341
- switch (errorCode) {
2342
- case "AccessDeniedException":
2343
- case "com.amazonaws.macie2#AccessDeniedException":
2344
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2345
- case "ConflictException":
2346
- case "com.amazonaws.macie2#ConflictException":
2347
- throw await de_ConflictExceptionRes(parsedOutput, context);
2348
- case "InternalServerException":
2349
- case "com.amazonaws.macie2#InternalServerException":
2350
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2351
- case "ResourceNotFoundException":
2352
- case "com.amazonaws.macie2#ResourceNotFoundException":
2353
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2354
- case "ServiceQuotaExceededException":
2355
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2356
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2357
- case "ThrottlingException":
2358
- case "com.amazonaws.macie2#ThrottlingException":
2359
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2360
- case "ValidationException":
2361
- case "com.amazonaws.macie2#ValidationException":
2362
- throw await de_ValidationExceptionRes(parsedOutput, context);
2363
- default:
2364
- const parsedBody = parsedOutput.body;
2365
- return throwDefaultError({
2366
- output,
2367
- parsedBody,
2368
- errorCode
2369
- });
2370
- }
2371
- }, "de_DeclineInvitationsCommandError");
2372
2002
  var de_DeleteAllowListCommand = /* @__PURE__ */ __name(async (output, context) => {
2373
2003
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2374
- return de_DeleteAllowListCommandError(output, context);
2004
+ return de_CommandError(output, context);
2375
2005
  }
2376
2006
  const contents = (0, import_smithy_client.map)({
2377
2007
  $metadata: deserializeMetadata(output)
@@ -2379,40 +2009,9 @@ var de_DeleteAllowListCommand = /* @__PURE__ */ __name(async (output, context) =
2379
2009
  await (0, import_smithy_client.collectBody)(output.body, context);
2380
2010
  return contents;
2381
2011
  }, "de_DeleteAllowListCommand");
2382
- var de_DeleteAllowListCommandError = /* @__PURE__ */ __name(async (output, context) => {
2383
- const parsedOutput = {
2384
- ...output,
2385
- body: await parseErrorBody(output.body, context)
2386
- };
2387
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2388
- switch (errorCode) {
2389
- case "AccessDeniedException":
2390
- case "com.amazonaws.macie2#AccessDeniedException":
2391
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2392
- case "InternalServerException":
2393
- case "com.amazonaws.macie2#InternalServerException":
2394
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2395
- case "ResourceNotFoundException":
2396
- case "com.amazonaws.macie2#ResourceNotFoundException":
2397
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2398
- case "ThrottlingException":
2399
- case "com.amazonaws.macie2#ThrottlingException":
2400
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2401
- case "ValidationException":
2402
- case "com.amazonaws.macie2#ValidationException":
2403
- throw await de_ValidationExceptionRes(parsedOutput, context);
2404
- default:
2405
- const parsedBody = parsedOutput.body;
2406
- return throwDefaultError({
2407
- output,
2408
- parsedBody,
2409
- errorCode
2410
- });
2411
- }
2412
- }, "de_DeleteAllowListCommandError");
2413
2012
  var de_DeleteCustomDataIdentifierCommand = /* @__PURE__ */ __name(async (output, context) => {
2414
2013
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2415
- return de_DeleteCustomDataIdentifierCommandError(output, context);
2014
+ return de_CommandError(output, context);
2416
2015
  }
2417
2016
  const contents = (0, import_smithy_client.map)({
2418
2017
  $metadata: deserializeMetadata(output)
@@ -2420,46 +2019,9 @@ var de_DeleteCustomDataIdentifierCommand = /* @__PURE__ */ __name(async (output,
2420
2019
  await (0, import_smithy_client.collectBody)(output.body, context);
2421
2020
  return contents;
2422
2021
  }, "de_DeleteCustomDataIdentifierCommand");
2423
- var de_DeleteCustomDataIdentifierCommandError = /* @__PURE__ */ __name(async (output, context) => {
2424
- const parsedOutput = {
2425
- ...output,
2426
- body: await parseErrorBody(output.body, context)
2427
- };
2428
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2429
- switch (errorCode) {
2430
- case "AccessDeniedException":
2431
- case "com.amazonaws.macie2#AccessDeniedException":
2432
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2433
- case "ConflictException":
2434
- case "com.amazonaws.macie2#ConflictException":
2435
- throw await de_ConflictExceptionRes(parsedOutput, context);
2436
- case "InternalServerException":
2437
- case "com.amazonaws.macie2#InternalServerException":
2438
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2439
- case "ResourceNotFoundException":
2440
- case "com.amazonaws.macie2#ResourceNotFoundException":
2441
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2442
- case "ServiceQuotaExceededException":
2443
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2444
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2445
- case "ThrottlingException":
2446
- case "com.amazonaws.macie2#ThrottlingException":
2447
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2448
- case "ValidationException":
2449
- case "com.amazonaws.macie2#ValidationException":
2450
- throw await de_ValidationExceptionRes(parsedOutput, context);
2451
- default:
2452
- const parsedBody = parsedOutput.body;
2453
- return throwDefaultError({
2454
- output,
2455
- parsedBody,
2456
- errorCode
2457
- });
2458
- }
2459
- }, "de_DeleteCustomDataIdentifierCommandError");
2460
2022
  var de_DeleteFindingsFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
2461
2023
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2462
- return de_DeleteFindingsFilterCommandError(output, context);
2024
+ return de_CommandError(output, context);
2463
2025
  }
2464
2026
  const contents = (0, import_smithy_client.map)({
2465
2027
  $metadata: deserializeMetadata(output)
@@ -2467,46 +2029,9 @@ var de_DeleteFindingsFilterCommand = /* @__PURE__ */ __name(async (output, conte
2467
2029
  await (0, import_smithy_client.collectBody)(output.body, context);
2468
2030
  return contents;
2469
2031
  }, "de_DeleteFindingsFilterCommand");
2470
- var de_DeleteFindingsFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
2471
- const parsedOutput = {
2472
- ...output,
2473
- body: await parseErrorBody(output.body, context)
2474
- };
2475
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2476
- switch (errorCode) {
2477
- case "AccessDeniedException":
2478
- case "com.amazonaws.macie2#AccessDeniedException":
2479
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2480
- case "ConflictException":
2481
- case "com.amazonaws.macie2#ConflictException":
2482
- throw await de_ConflictExceptionRes(parsedOutput, context);
2483
- case "InternalServerException":
2484
- case "com.amazonaws.macie2#InternalServerException":
2485
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2486
- case "ResourceNotFoundException":
2487
- case "com.amazonaws.macie2#ResourceNotFoundException":
2488
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2489
- case "ServiceQuotaExceededException":
2490
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2491
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2492
- case "ThrottlingException":
2493
- case "com.amazonaws.macie2#ThrottlingException":
2494
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2495
- case "ValidationException":
2496
- case "com.amazonaws.macie2#ValidationException":
2497
- throw await de_ValidationExceptionRes(parsedOutput, context);
2498
- default:
2499
- const parsedBody = parsedOutput.body;
2500
- return throwDefaultError({
2501
- output,
2502
- parsedBody,
2503
- errorCode
2504
- });
2505
- }
2506
- }, "de_DeleteFindingsFilterCommandError");
2507
2032
  var de_DeleteInvitationsCommand = /* @__PURE__ */ __name(async (output, context) => {
2508
2033
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2509
- return de_DeleteInvitationsCommandError(output, context);
2034
+ return de_CommandError(output, context);
2510
2035
  }
2511
2036
  const contents = (0, import_smithy_client.map)({
2512
2037
  $metadata: deserializeMetadata(output)
@@ -2518,46 +2043,9 @@ var de_DeleteInvitationsCommand = /* @__PURE__ */ __name(async (output, context)
2518
2043
  Object.assign(contents, doc);
2519
2044
  return contents;
2520
2045
  }, "de_DeleteInvitationsCommand");
2521
- var de_DeleteInvitationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2522
- const parsedOutput = {
2523
- ...output,
2524
- body: await parseErrorBody(output.body, context)
2525
- };
2526
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2527
- switch (errorCode) {
2528
- case "AccessDeniedException":
2529
- case "com.amazonaws.macie2#AccessDeniedException":
2530
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2531
- case "ConflictException":
2532
- case "com.amazonaws.macie2#ConflictException":
2533
- throw await de_ConflictExceptionRes(parsedOutput, context);
2534
- case "InternalServerException":
2535
- case "com.amazonaws.macie2#InternalServerException":
2536
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2537
- case "ResourceNotFoundException":
2538
- case "com.amazonaws.macie2#ResourceNotFoundException":
2539
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2540
- case "ServiceQuotaExceededException":
2541
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2542
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2543
- case "ThrottlingException":
2544
- case "com.amazonaws.macie2#ThrottlingException":
2545
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2546
- case "ValidationException":
2547
- case "com.amazonaws.macie2#ValidationException":
2548
- throw await de_ValidationExceptionRes(parsedOutput, context);
2549
- default:
2550
- const parsedBody = parsedOutput.body;
2551
- return throwDefaultError({
2552
- output,
2553
- parsedBody,
2554
- errorCode
2555
- });
2556
- }
2557
- }, "de_DeleteInvitationsCommandError");
2558
2046
  var de_DeleteMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
2559
2047
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2560
- return de_DeleteMemberCommandError(output, context);
2048
+ return de_CommandError(output, context);
2561
2049
  }
2562
2050
  const contents = (0, import_smithy_client.map)({
2563
2051
  $metadata: deserializeMetadata(output)
@@ -2565,46 +2053,9 @@ var de_DeleteMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
2565
2053
  await (0, import_smithy_client.collectBody)(output.body, context);
2566
2054
  return contents;
2567
2055
  }, "de_DeleteMemberCommand");
2568
- var de_DeleteMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
2569
- const parsedOutput = {
2570
- ...output,
2571
- body: await parseErrorBody(output.body, context)
2572
- };
2573
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2574
- switch (errorCode) {
2575
- case "AccessDeniedException":
2576
- case "com.amazonaws.macie2#AccessDeniedException":
2577
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2578
- case "ConflictException":
2579
- case "com.amazonaws.macie2#ConflictException":
2580
- throw await de_ConflictExceptionRes(parsedOutput, context);
2581
- case "InternalServerException":
2582
- case "com.amazonaws.macie2#InternalServerException":
2583
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2584
- case "ResourceNotFoundException":
2585
- case "com.amazonaws.macie2#ResourceNotFoundException":
2586
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2587
- case "ServiceQuotaExceededException":
2588
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2589
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2590
- case "ThrottlingException":
2591
- case "com.amazonaws.macie2#ThrottlingException":
2592
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2593
- case "ValidationException":
2594
- case "com.amazonaws.macie2#ValidationException":
2595
- throw await de_ValidationExceptionRes(parsedOutput, context);
2596
- default:
2597
- const parsedBody = parsedOutput.body;
2598
- return throwDefaultError({
2599
- output,
2600
- parsedBody,
2601
- errorCode
2602
- });
2603
- }
2604
- }, "de_DeleteMemberCommandError");
2605
2056
  var de_DescribeBucketsCommand = /* @__PURE__ */ __name(async (output, context) => {
2606
2057
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2607
- return de_DescribeBucketsCommandError(output, context);
2058
+ return de_CommandError(output, context);
2608
2059
  }
2609
2060
  const contents = (0, import_smithy_client.map)({
2610
2061
  $metadata: deserializeMetadata(output)
@@ -2617,46 +2068,9 @@ var de_DescribeBucketsCommand = /* @__PURE__ */ __name(async (output, context) =
2617
2068
  Object.assign(contents, doc);
2618
2069
  return contents;
2619
2070
  }, "de_DescribeBucketsCommand");
2620
- var de_DescribeBucketsCommandError = /* @__PURE__ */ __name(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.macie2#AccessDeniedException":
2629
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2630
- case "ConflictException":
2631
- case "com.amazonaws.macie2#ConflictException":
2632
- throw await de_ConflictExceptionRes(parsedOutput, context);
2633
- case "InternalServerException":
2634
- case "com.amazonaws.macie2#InternalServerException":
2635
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2636
- case "ResourceNotFoundException":
2637
- case "com.amazonaws.macie2#ResourceNotFoundException":
2638
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2639
- case "ServiceQuotaExceededException":
2640
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2641
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2642
- case "ThrottlingException":
2643
- case "com.amazonaws.macie2#ThrottlingException":
2644
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2645
- case "ValidationException":
2646
- case "com.amazonaws.macie2#ValidationException":
2647
- throw await de_ValidationExceptionRes(parsedOutput, context);
2648
- default:
2649
- const parsedBody = parsedOutput.body;
2650
- return throwDefaultError({
2651
- output,
2652
- parsedBody,
2653
- errorCode
2654
- });
2655
- }
2656
- }, "de_DescribeBucketsCommandError");
2657
2071
  var de_DescribeClassificationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
2658
2072
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2659
- return de_DescribeClassificationJobCommandError(output, context);
2073
+ return de_CommandError(output, context);
2660
2074
  }
2661
2075
  const contents = (0, import_smithy_client.map)({
2662
2076
  $metadata: deserializeMetadata(output)
@@ -2688,46 +2102,9 @@ var de_DescribeClassificationJobCommand = /* @__PURE__ */ __name(async (output,
2688
2102
  Object.assign(contents, doc);
2689
2103
  return contents;
2690
2104
  }, "de_DescribeClassificationJobCommand");
2691
- var de_DescribeClassificationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
2692
- const parsedOutput = {
2693
- ...output,
2694
- body: await parseErrorBody(output.body, context)
2695
- };
2696
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2697
- switch (errorCode) {
2698
- case "AccessDeniedException":
2699
- case "com.amazonaws.macie2#AccessDeniedException":
2700
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2701
- case "ConflictException":
2702
- case "com.amazonaws.macie2#ConflictException":
2703
- throw await de_ConflictExceptionRes(parsedOutput, context);
2704
- case "InternalServerException":
2705
- case "com.amazonaws.macie2#InternalServerException":
2706
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2707
- case "ResourceNotFoundException":
2708
- case "com.amazonaws.macie2#ResourceNotFoundException":
2709
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2710
- case "ServiceQuotaExceededException":
2711
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2712
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2713
- case "ThrottlingException":
2714
- case "com.amazonaws.macie2#ThrottlingException":
2715
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2716
- case "ValidationException":
2717
- case "com.amazonaws.macie2#ValidationException":
2718
- throw await de_ValidationExceptionRes(parsedOutput, context);
2719
- default:
2720
- const parsedBody = parsedOutput.body;
2721
- return throwDefaultError({
2722
- output,
2723
- parsedBody,
2724
- errorCode
2725
- });
2726
- }
2727
- }, "de_DescribeClassificationJobCommandError");
2728
2105
  var de_DescribeOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2729
2106
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2730
- return de_DescribeOrganizationConfigurationCommandError(output, context);
2107
+ return de_CommandError(output, context);
2731
2108
  }
2732
2109
  const contents = (0, import_smithy_client.map)({
2733
2110
  $metadata: deserializeMetadata(output)
@@ -2740,46 +2117,9 @@ var de_DescribeOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (
2740
2117
  Object.assign(contents, doc);
2741
2118
  return contents;
2742
2119
  }, "de_DescribeOrganizationConfigurationCommand");
2743
- var de_DescribeOrganizationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2744
- const parsedOutput = {
2745
- ...output,
2746
- body: await parseErrorBody(output.body, context)
2747
- };
2748
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2749
- switch (errorCode) {
2750
- case "AccessDeniedException":
2751
- case "com.amazonaws.macie2#AccessDeniedException":
2752
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2753
- case "ConflictException":
2754
- case "com.amazonaws.macie2#ConflictException":
2755
- throw await de_ConflictExceptionRes(parsedOutput, context);
2756
- case "InternalServerException":
2757
- case "com.amazonaws.macie2#InternalServerException":
2758
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2759
- case "ResourceNotFoundException":
2760
- case "com.amazonaws.macie2#ResourceNotFoundException":
2761
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2762
- case "ServiceQuotaExceededException":
2763
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2764
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2765
- case "ThrottlingException":
2766
- case "com.amazonaws.macie2#ThrottlingException":
2767
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2768
- case "ValidationException":
2769
- case "com.amazonaws.macie2#ValidationException":
2770
- throw await de_ValidationExceptionRes(parsedOutput, context);
2771
- default:
2772
- const parsedBody = parsedOutput.body;
2773
- return throwDefaultError({
2774
- output,
2775
- parsedBody,
2776
- errorCode
2777
- });
2778
- }
2779
- }, "de_DescribeOrganizationConfigurationCommandError");
2780
2120
  var de_DisableMacieCommand = /* @__PURE__ */ __name(async (output, context) => {
2781
2121
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2782
- return de_DisableMacieCommandError(output, context);
2122
+ return de_CommandError(output, context);
2783
2123
  }
2784
2124
  const contents = (0, import_smithy_client.map)({
2785
2125
  $metadata: deserializeMetadata(output)
@@ -2787,46 +2127,9 @@ var de_DisableMacieCommand = /* @__PURE__ */ __name(async (output, context) => {
2787
2127
  await (0, import_smithy_client.collectBody)(output.body, context);
2788
2128
  return contents;
2789
2129
  }, "de_DisableMacieCommand");
2790
- var de_DisableMacieCommandError = /* @__PURE__ */ __name(async (output, context) => {
2791
- const parsedOutput = {
2792
- ...output,
2793
- body: await parseErrorBody(output.body, context)
2794
- };
2795
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2796
- switch (errorCode) {
2797
- case "AccessDeniedException":
2798
- case "com.amazonaws.macie2#AccessDeniedException":
2799
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2800
- case "ConflictException":
2801
- case "com.amazonaws.macie2#ConflictException":
2802
- throw await de_ConflictExceptionRes(parsedOutput, context);
2803
- case "InternalServerException":
2804
- case "com.amazonaws.macie2#InternalServerException":
2805
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2806
- case "ResourceNotFoundException":
2807
- case "com.amazonaws.macie2#ResourceNotFoundException":
2808
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2809
- case "ServiceQuotaExceededException":
2810
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2811
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2812
- case "ThrottlingException":
2813
- case "com.amazonaws.macie2#ThrottlingException":
2814
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2815
- case "ValidationException":
2816
- case "com.amazonaws.macie2#ValidationException":
2817
- throw await de_ValidationExceptionRes(parsedOutput, context);
2818
- default:
2819
- const parsedBody = parsedOutput.body;
2820
- return throwDefaultError({
2821
- output,
2822
- parsedBody,
2823
- errorCode
2824
- });
2825
- }
2826
- }, "de_DisableMacieCommandError");
2827
2130
  var de_DisableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
2828
2131
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2829
- return de_DisableOrganizationAdminAccountCommandError(output, context);
2132
+ return de_CommandError(output, context);
2830
2133
  }
2831
2134
  const contents = (0, import_smithy_client.map)({
2832
2135
  $metadata: deserializeMetadata(output)
@@ -2834,46 +2137,9 @@ var de_DisableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (ou
2834
2137
  await (0, import_smithy_client.collectBody)(output.body, context);
2835
2138
  return contents;
2836
2139
  }, "de_DisableOrganizationAdminAccountCommand");
2837
- var de_DisableOrganizationAdminAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
2838
- const parsedOutput = {
2839
- ...output,
2840
- body: await parseErrorBody(output.body, context)
2841
- };
2842
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2843
- switch (errorCode) {
2844
- case "AccessDeniedException":
2845
- case "com.amazonaws.macie2#AccessDeniedException":
2846
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2847
- case "ConflictException":
2848
- case "com.amazonaws.macie2#ConflictException":
2849
- throw await de_ConflictExceptionRes(parsedOutput, context);
2850
- case "InternalServerException":
2851
- case "com.amazonaws.macie2#InternalServerException":
2852
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2853
- case "ResourceNotFoundException":
2854
- case "com.amazonaws.macie2#ResourceNotFoundException":
2855
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2856
- case "ServiceQuotaExceededException":
2857
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2858
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2859
- case "ThrottlingException":
2860
- case "com.amazonaws.macie2#ThrottlingException":
2861
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2862
- case "ValidationException":
2863
- case "com.amazonaws.macie2#ValidationException":
2864
- throw await de_ValidationExceptionRes(parsedOutput, context);
2865
- default:
2866
- const parsedBody = parsedOutput.body;
2867
- return throwDefaultError({
2868
- output,
2869
- parsedBody,
2870
- errorCode
2871
- });
2872
- }
2873
- }, "de_DisableOrganizationAdminAccountCommandError");
2874
2140
  var de_DisassociateFromAdministratorAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
2875
2141
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2876
- return de_DisassociateFromAdministratorAccountCommandError(output, context);
2142
+ return de_CommandError(output, context);
2877
2143
  }
2878
2144
  const contents = (0, import_smithy_client.map)({
2879
2145
  $metadata: deserializeMetadata(output)
@@ -2881,46 +2147,9 @@ var de_DisassociateFromAdministratorAccountCommand = /* @__PURE__ */ __name(asyn
2881
2147
  await (0, import_smithy_client.collectBody)(output.body, context);
2882
2148
  return contents;
2883
2149
  }, "de_DisassociateFromAdministratorAccountCommand");
2884
- var de_DisassociateFromAdministratorAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
2885
- const parsedOutput = {
2886
- ...output,
2887
- body: await parseErrorBody(output.body, context)
2888
- };
2889
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2890
- switch (errorCode) {
2891
- case "AccessDeniedException":
2892
- case "com.amazonaws.macie2#AccessDeniedException":
2893
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2894
- case "ConflictException":
2895
- case "com.amazonaws.macie2#ConflictException":
2896
- throw await de_ConflictExceptionRes(parsedOutput, context);
2897
- case "InternalServerException":
2898
- case "com.amazonaws.macie2#InternalServerException":
2899
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2900
- case "ResourceNotFoundException":
2901
- case "com.amazonaws.macie2#ResourceNotFoundException":
2902
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2903
- case "ServiceQuotaExceededException":
2904
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2905
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2906
- case "ThrottlingException":
2907
- case "com.amazonaws.macie2#ThrottlingException":
2908
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2909
- case "ValidationException":
2910
- case "com.amazonaws.macie2#ValidationException":
2911
- throw await de_ValidationExceptionRes(parsedOutput, context);
2912
- default:
2913
- const parsedBody = parsedOutput.body;
2914
- return throwDefaultError({
2915
- output,
2916
- parsedBody,
2917
- errorCode
2918
- });
2919
- }
2920
- }, "de_DisassociateFromAdministratorAccountCommandError");
2921
2150
  var de_DisassociateFromMasterAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
2922
2151
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2923
- return de_DisassociateFromMasterAccountCommandError(output, context);
2152
+ return de_CommandError(output, context);
2924
2153
  }
2925
2154
  const contents = (0, import_smithy_client.map)({
2926
2155
  $metadata: deserializeMetadata(output)
@@ -2928,46 +2157,9 @@ var de_DisassociateFromMasterAccountCommand = /* @__PURE__ */ __name(async (outp
2928
2157
  await (0, import_smithy_client.collectBody)(output.body, context);
2929
2158
  return contents;
2930
2159
  }, "de_DisassociateFromMasterAccountCommand");
2931
- var de_DisassociateFromMasterAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
2932
- const parsedOutput = {
2933
- ...output,
2934
- body: await parseErrorBody(output.body, context)
2935
- };
2936
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2937
- switch (errorCode) {
2938
- case "AccessDeniedException":
2939
- case "com.amazonaws.macie2#AccessDeniedException":
2940
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2941
- case "ConflictException":
2942
- case "com.amazonaws.macie2#ConflictException":
2943
- throw await de_ConflictExceptionRes(parsedOutput, context);
2944
- case "InternalServerException":
2945
- case "com.amazonaws.macie2#InternalServerException":
2946
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2947
- case "ResourceNotFoundException":
2948
- case "com.amazonaws.macie2#ResourceNotFoundException":
2949
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2950
- case "ServiceQuotaExceededException":
2951
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2952
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2953
- case "ThrottlingException":
2954
- case "com.amazonaws.macie2#ThrottlingException":
2955
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2956
- case "ValidationException":
2957
- case "com.amazonaws.macie2#ValidationException":
2958
- throw await de_ValidationExceptionRes(parsedOutput, context);
2959
- default:
2960
- const parsedBody = parsedOutput.body;
2961
- return throwDefaultError({
2962
- output,
2963
- parsedBody,
2964
- errorCode
2965
- });
2966
- }
2967
- }, "de_DisassociateFromMasterAccountCommandError");
2968
2160
  var de_DisassociateMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
2969
2161
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2970
- return de_DisassociateMemberCommandError(output, context);
2162
+ return de_CommandError(output, context);
2971
2163
  }
2972
2164
  const contents = (0, import_smithy_client.map)({
2973
2165
  $metadata: deserializeMetadata(output)
@@ -2975,46 +2167,9 @@ var de_DisassociateMemberCommand = /* @__PURE__ */ __name(async (output, context
2975
2167
  await (0, import_smithy_client.collectBody)(output.body, context);
2976
2168
  return contents;
2977
2169
  }, "de_DisassociateMemberCommand");
2978
- var de_DisassociateMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
2979
- const parsedOutput = {
2980
- ...output,
2981
- body: await parseErrorBody(output.body, context)
2982
- };
2983
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2984
- switch (errorCode) {
2985
- case "AccessDeniedException":
2986
- case "com.amazonaws.macie2#AccessDeniedException":
2987
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2988
- case "ConflictException":
2989
- case "com.amazonaws.macie2#ConflictException":
2990
- throw await de_ConflictExceptionRes(parsedOutput, context);
2991
- case "InternalServerException":
2992
- case "com.amazonaws.macie2#InternalServerException":
2993
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2994
- case "ResourceNotFoundException":
2995
- case "com.amazonaws.macie2#ResourceNotFoundException":
2996
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2997
- case "ServiceQuotaExceededException":
2998
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
2999
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3000
- case "ThrottlingException":
3001
- case "com.amazonaws.macie2#ThrottlingException":
3002
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3003
- case "ValidationException":
3004
- case "com.amazonaws.macie2#ValidationException":
3005
- throw await de_ValidationExceptionRes(parsedOutput, context);
3006
- default:
3007
- const parsedBody = parsedOutput.body;
3008
- return throwDefaultError({
3009
- output,
3010
- parsedBody,
3011
- errorCode
3012
- });
3013
- }
3014
- }, "de_DisassociateMemberCommandError");
3015
2170
  var de_EnableMacieCommand = /* @__PURE__ */ __name(async (output, context) => {
3016
2171
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3017
- return de_EnableMacieCommandError(output, context);
2172
+ return de_CommandError(output, context);
3018
2173
  }
3019
2174
  const contents = (0, import_smithy_client.map)({
3020
2175
  $metadata: deserializeMetadata(output)
@@ -3022,46 +2177,9 @@ var de_EnableMacieCommand = /* @__PURE__ */ __name(async (output, context) => {
3022
2177
  await (0, import_smithy_client.collectBody)(output.body, context);
3023
2178
  return contents;
3024
2179
  }, "de_EnableMacieCommand");
3025
- var de_EnableMacieCommandError = /* @__PURE__ */ __name(async (output, context) => {
3026
- const parsedOutput = {
3027
- ...output,
3028
- body: await parseErrorBody(output.body, context)
3029
- };
3030
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3031
- switch (errorCode) {
3032
- case "AccessDeniedException":
3033
- case "com.amazonaws.macie2#AccessDeniedException":
3034
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3035
- case "ConflictException":
3036
- case "com.amazonaws.macie2#ConflictException":
3037
- throw await de_ConflictExceptionRes(parsedOutput, context);
3038
- case "InternalServerException":
3039
- case "com.amazonaws.macie2#InternalServerException":
3040
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3041
- case "ResourceNotFoundException":
3042
- case "com.amazonaws.macie2#ResourceNotFoundException":
3043
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3044
- case "ServiceQuotaExceededException":
3045
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
3046
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3047
- case "ThrottlingException":
3048
- case "com.amazonaws.macie2#ThrottlingException":
3049
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3050
- case "ValidationException":
3051
- case "com.amazonaws.macie2#ValidationException":
3052
- throw await de_ValidationExceptionRes(parsedOutput, context);
3053
- default:
3054
- const parsedBody = parsedOutput.body;
3055
- return throwDefaultError({
3056
- output,
3057
- parsedBody,
3058
- errorCode
3059
- });
3060
- }
3061
- }, "de_EnableMacieCommandError");
3062
2180
  var de_EnableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
3063
2181
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3064
- return de_EnableOrganizationAdminAccountCommandError(output, context);
2182
+ return de_CommandError(output, context);
3065
2183
  }
3066
2184
  const contents = (0, import_smithy_client.map)({
3067
2185
  $metadata: deserializeMetadata(output)
@@ -3069,46 +2187,9 @@ var de_EnableOrganizationAdminAccountCommand = /* @__PURE__ */ __name(async (out
3069
2187
  await (0, import_smithy_client.collectBody)(output.body, context);
3070
2188
  return contents;
3071
2189
  }, "de_EnableOrganizationAdminAccountCommand");
3072
- var de_EnableOrganizationAdminAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
3073
- const parsedOutput = {
3074
- ...output,
3075
- body: await parseErrorBody(output.body, context)
3076
- };
3077
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3078
- switch (errorCode) {
3079
- case "AccessDeniedException":
3080
- case "com.amazonaws.macie2#AccessDeniedException":
3081
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3082
- case "ConflictException":
3083
- case "com.amazonaws.macie2#ConflictException":
3084
- throw await de_ConflictExceptionRes(parsedOutput, context);
3085
- case "InternalServerException":
3086
- case "com.amazonaws.macie2#InternalServerException":
3087
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3088
- case "ResourceNotFoundException":
3089
- case "com.amazonaws.macie2#ResourceNotFoundException":
3090
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3091
- case "ServiceQuotaExceededException":
3092
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
3093
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3094
- case "ThrottlingException":
3095
- case "com.amazonaws.macie2#ThrottlingException":
3096
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3097
- case "ValidationException":
3098
- case "com.amazonaws.macie2#ValidationException":
3099
- throw await de_ValidationExceptionRes(parsedOutput, context);
3100
- default:
3101
- const parsedBody = parsedOutput.body;
3102
- return throwDefaultError({
3103
- output,
3104
- parsedBody,
3105
- errorCode
3106
- });
3107
- }
3108
- }, "de_EnableOrganizationAdminAccountCommandError");
3109
2190
  var de_GetAdministratorAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
3110
2191
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3111
- return de_GetAdministratorAccountCommandError(output, context);
2192
+ return de_CommandError(output, context);
3112
2193
  }
3113
2194
  const contents = (0, import_smithy_client.map)({
3114
2195
  $metadata: deserializeMetadata(output)
@@ -3120,46 +2201,9 @@ var de_GetAdministratorAccountCommand = /* @__PURE__ */ __name(async (output, co
3120
2201
  Object.assign(contents, doc);
3121
2202
  return contents;
3122
2203
  }, "de_GetAdministratorAccountCommand");
3123
- var de_GetAdministratorAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
3124
- const parsedOutput = {
3125
- ...output,
3126
- body: await parseErrorBody(output.body, context)
3127
- };
3128
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3129
- switch (errorCode) {
3130
- case "AccessDeniedException":
3131
- case "com.amazonaws.macie2#AccessDeniedException":
3132
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3133
- case "ConflictException":
3134
- case "com.amazonaws.macie2#ConflictException":
3135
- throw await de_ConflictExceptionRes(parsedOutput, context);
3136
- case "InternalServerException":
3137
- case "com.amazonaws.macie2#InternalServerException":
3138
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3139
- case "ResourceNotFoundException":
3140
- case "com.amazonaws.macie2#ResourceNotFoundException":
3141
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3142
- case "ServiceQuotaExceededException":
3143
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
3144
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3145
- case "ThrottlingException":
3146
- case "com.amazonaws.macie2#ThrottlingException":
3147
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3148
- case "ValidationException":
3149
- case "com.amazonaws.macie2#ValidationException":
3150
- throw await de_ValidationExceptionRes(parsedOutput, context);
3151
- default:
3152
- const parsedBody = parsedOutput.body;
3153
- return throwDefaultError({
3154
- output,
3155
- parsedBody,
3156
- errorCode
3157
- });
3158
- }
3159
- }, "de_GetAdministratorAccountCommandError");
3160
2204
  var de_GetAllowListCommand = /* @__PURE__ */ __name(async (output, context) => {
3161
2205
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3162
- return de_GetAllowListCommandError(output, context);
2206
+ return de_CommandError(output, context);
3163
2207
  }
3164
2208
  const contents = (0, import_smithy_client.map)({
3165
2209
  $metadata: deserializeMetadata(output)
@@ -3179,40 +2223,9 @@ var de_GetAllowListCommand = /* @__PURE__ */ __name(async (output, context) => {
3179
2223
  Object.assign(contents, doc);
3180
2224
  return contents;
3181
2225
  }, "de_GetAllowListCommand");
3182
- var de_GetAllowListCommandError = /* @__PURE__ */ __name(async (output, context) => {
3183
- const parsedOutput = {
3184
- ...output,
3185
- body: await parseErrorBody(output.body, context)
3186
- };
3187
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3188
- switch (errorCode) {
3189
- case "AccessDeniedException":
3190
- case "com.amazonaws.macie2#AccessDeniedException":
3191
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3192
- case "InternalServerException":
3193
- case "com.amazonaws.macie2#InternalServerException":
3194
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3195
- case "ResourceNotFoundException":
3196
- case "com.amazonaws.macie2#ResourceNotFoundException":
3197
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3198
- case "ThrottlingException":
3199
- case "com.amazonaws.macie2#ThrottlingException":
3200
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3201
- case "ValidationException":
3202
- case "com.amazonaws.macie2#ValidationException":
3203
- throw await de_ValidationExceptionRes(parsedOutput, context);
3204
- default:
3205
- const parsedBody = parsedOutput.body;
3206
- return throwDefaultError({
3207
- output,
3208
- parsedBody,
3209
- errorCode
3210
- });
3211
- }
3212
- }, "de_GetAllowListCommandError");
3213
2226
  var de_GetAutomatedDiscoveryConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
3214
2227
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3215
- return de_GetAutomatedDiscoveryConfigurationCommandError(output, context);
2228
+ return de_CommandError(output, context);
3216
2229
  }
3217
2230
  const contents = (0, import_smithy_client.map)({
3218
2231
  $metadata: deserializeMetadata(output)
@@ -3229,37 +2242,9 @@ var de_GetAutomatedDiscoveryConfigurationCommand = /* @__PURE__ */ __name(async
3229
2242
  Object.assign(contents, doc);
3230
2243
  return contents;
3231
2244
  }, "de_GetAutomatedDiscoveryConfigurationCommand");
3232
- var de_GetAutomatedDiscoveryConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3233
- const parsedOutput = {
3234
- ...output,
3235
- body: await parseErrorBody(output.body, context)
3236
- };
3237
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3238
- switch (errorCode) {
3239
- case "AccessDeniedException":
3240
- case "com.amazonaws.macie2#AccessDeniedException":
3241
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3242
- case "InternalServerException":
3243
- case "com.amazonaws.macie2#InternalServerException":
3244
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3245
- case "ThrottlingException":
3246
- case "com.amazonaws.macie2#ThrottlingException":
3247
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3248
- case "ValidationException":
3249
- case "com.amazonaws.macie2#ValidationException":
3250
- throw await de_ValidationExceptionRes(parsedOutput, context);
3251
- default:
3252
- const parsedBody = parsedOutput.body;
3253
- return throwDefaultError({
3254
- output,
3255
- parsedBody,
3256
- errorCode
3257
- });
3258
- }
3259
- }, "de_GetAutomatedDiscoveryConfigurationCommandError");
3260
2245
  var de_GetBucketStatisticsCommand = /* @__PURE__ */ __name(async (output, context) => {
3261
2246
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3262
- return de_GetBucketStatisticsCommandError(output, context);
2247
+ return de_CommandError(output, context);
3263
2248
  }
3264
2249
  const contents = (0, import_smithy_client.map)({
3265
2250
  $metadata: deserializeMetadata(output)
@@ -3300,46 +2285,9 @@ var de_GetBucketStatisticsCommand = /* @__PURE__ */ __name(async (output, contex
3300
2285
  Object.assign(contents, doc);
3301
2286
  return contents;
3302
2287
  }, "de_GetBucketStatisticsCommand");
3303
- var de_GetBucketStatisticsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3304
- const parsedOutput = {
3305
- ...output,
3306
- body: await parseErrorBody(output.body, context)
3307
- };
3308
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3309
- switch (errorCode) {
3310
- case "AccessDeniedException":
3311
- case "com.amazonaws.macie2#AccessDeniedException":
3312
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3313
- case "ConflictException":
3314
- case "com.amazonaws.macie2#ConflictException":
3315
- throw await de_ConflictExceptionRes(parsedOutput, context);
3316
- case "InternalServerException":
3317
- case "com.amazonaws.macie2#InternalServerException":
3318
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3319
- case "ResourceNotFoundException":
3320
- case "com.amazonaws.macie2#ResourceNotFoundException":
3321
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3322
- case "ServiceQuotaExceededException":
3323
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
3324
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3325
- case "ThrottlingException":
3326
- case "com.amazonaws.macie2#ThrottlingException":
3327
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3328
- case "ValidationException":
3329
- case "com.amazonaws.macie2#ValidationException":
3330
- throw await de_ValidationExceptionRes(parsedOutput, context);
3331
- default:
3332
- const parsedBody = parsedOutput.body;
3333
- return throwDefaultError({
3334
- output,
3335
- parsedBody,
3336
- errorCode
3337
- });
3338
- }
3339
- }, "de_GetBucketStatisticsCommandError");
3340
2288
  var de_GetClassificationExportConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
3341
2289
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3342
- return de_GetClassificationExportConfigurationCommandError(output, context);
2290
+ return de_CommandError(output, context);
3343
2291
  }
3344
2292
  const contents = (0, import_smithy_client.map)({
3345
2293
  $metadata: deserializeMetadata(output)
@@ -3351,46 +2299,9 @@ var de_GetClassificationExportConfigurationCommand = /* @__PURE__ */ __name(asyn
3351
2299
  Object.assign(contents, doc);
3352
2300
  return contents;
3353
2301
  }, "de_GetClassificationExportConfigurationCommand");
3354
- var de_GetClassificationExportConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3355
- const parsedOutput = {
3356
- ...output,
3357
- body: await parseErrorBody(output.body, context)
3358
- };
3359
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3360
- switch (errorCode) {
3361
- case "AccessDeniedException":
3362
- case "com.amazonaws.macie2#AccessDeniedException":
3363
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3364
- case "ConflictException":
3365
- case "com.amazonaws.macie2#ConflictException":
3366
- throw await de_ConflictExceptionRes(parsedOutput, context);
3367
- case "InternalServerException":
3368
- case "com.amazonaws.macie2#InternalServerException":
3369
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3370
- case "ResourceNotFoundException":
3371
- case "com.amazonaws.macie2#ResourceNotFoundException":
3372
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3373
- case "ServiceQuotaExceededException":
3374
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
3375
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3376
- case "ThrottlingException":
3377
- case "com.amazonaws.macie2#ThrottlingException":
3378
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3379
- case "ValidationException":
3380
- case "com.amazonaws.macie2#ValidationException":
3381
- throw await de_ValidationExceptionRes(parsedOutput, context);
3382
- default:
3383
- const parsedBody = parsedOutput.body;
3384
- return throwDefaultError({
3385
- output,
3386
- parsedBody,
3387
- errorCode
3388
- });
3389
- }
3390
- }, "de_GetClassificationExportConfigurationCommandError");
3391
2302
  var de_GetClassificationScopeCommand = /* @__PURE__ */ __name(async (output, context) => {
3392
2303
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3393
- return de_GetClassificationScopeCommandError(output, context);
2304
+ return de_CommandError(output, context);
3394
2305
  }
3395
2306
  const contents = (0, import_smithy_client.map)({
3396
2307
  $metadata: deserializeMetadata(output)
@@ -3404,40 +2315,9 @@ var de_GetClassificationScopeCommand = /* @__PURE__ */ __name(async (output, con
3404
2315
  Object.assign(contents, doc);
3405
2316
  return contents;
3406
2317
  }, "de_GetClassificationScopeCommand");
3407
- var de_GetClassificationScopeCommandError = /* @__PURE__ */ __name(async (output, context) => {
3408
- const parsedOutput = {
3409
- ...output,
3410
- body: await parseErrorBody(output.body, context)
3411
- };
3412
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3413
- switch (errorCode) {
3414
- case "AccessDeniedException":
3415
- case "com.amazonaws.macie2#AccessDeniedException":
3416
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3417
- case "InternalServerException":
3418
- case "com.amazonaws.macie2#InternalServerException":
3419
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3420
- case "ResourceNotFoundException":
3421
- case "com.amazonaws.macie2#ResourceNotFoundException":
3422
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3423
- case "ThrottlingException":
3424
- case "com.amazonaws.macie2#ThrottlingException":
3425
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3426
- case "ValidationException":
3427
- case "com.amazonaws.macie2#ValidationException":
3428
- throw await de_ValidationExceptionRes(parsedOutput, context);
3429
- default:
3430
- const parsedBody = parsedOutput.body;
3431
- return throwDefaultError({
3432
- output,
3433
- parsedBody,
3434
- errorCode
3435
- });
3436
- }
3437
- }, "de_GetClassificationScopeCommandError");
3438
2318
  var de_GetCustomDataIdentifierCommand = /* @__PURE__ */ __name(async (output, context) => {
3439
2319
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3440
- return de_GetCustomDataIdentifierCommandError(output, context);
2320
+ return de_CommandError(output, context);
3441
2321
  }
3442
2322
  const contents = (0, import_smithy_client.map)({
3443
2323
  $metadata: deserializeMetadata(output)
@@ -3460,46 +2340,9 @@ var de_GetCustomDataIdentifierCommand = /* @__PURE__ */ __name(async (output, co
3460
2340
  Object.assign(contents, doc);
3461
2341
  return contents;
3462
2342
  }, "de_GetCustomDataIdentifierCommand");
3463
- var de_GetCustomDataIdentifierCommandError = /* @__PURE__ */ __name(async (output, context) => {
3464
- const parsedOutput = {
3465
- ...output,
3466
- body: await parseErrorBody(output.body, context)
3467
- };
3468
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3469
- switch (errorCode) {
3470
- case "AccessDeniedException":
3471
- case "com.amazonaws.macie2#AccessDeniedException":
3472
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3473
- case "ConflictException":
3474
- case "com.amazonaws.macie2#ConflictException":
3475
- throw await de_ConflictExceptionRes(parsedOutput, context);
3476
- case "InternalServerException":
3477
- case "com.amazonaws.macie2#InternalServerException":
3478
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3479
- case "ResourceNotFoundException":
3480
- case "com.amazonaws.macie2#ResourceNotFoundException":
3481
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3482
- case "ServiceQuotaExceededException":
3483
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
3484
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3485
- case "ThrottlingException":
3486
- case "com.amazonaws.macie2#ThrottlingException":
3487
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3488
- case "ValidationException":
3489
- case "com.amazonaws.macie2#ValidationException":
3490
- throw await de_ValidationExceptionRes(parsedOutput, context);
3491
- default:
3492
- const parsedBody = parsedOutput.body;
3493
- return throwDefaultError({
3494
- output,
3495
- parsedBody,
3496
- errorCode
3497
- });
3498
- }
3499
- }, "de_GetCustomDataIdentifierCommandError");
3500
2343
  var de_GetFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3501
2344
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3502
- return de_GetFindingsCommandError(output, context);
2345
+ return de_CommandError(output, context);
3503
2346
  }
3504
2347
  const contents = (0, import_smithy_client.map)({
3505
2348
  $metadata: deserializeMetadata(output)
@@ -3511,46 +2354,9 @@ var de_GetFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
3511
2354
  Object.assign(contents, doc);
3512
2355
  return contents;
3513
2356
  }, "de_GetFindingsCommand");
3514
- var de_GetFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3515
- const parsedOutput = {
3516
- ...output,
3517
- body: await parseErrorBody(output.body, context)
3518
- };
3519
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3520
- switch (errorCode) {
3521
- case "AccessDeniedException":
3522
- case "com.amazonaws.macie2#AccessDeniedException":
3523
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3524
- case "ConflictException":
3525
- case "com.amazonaws.macie2#ConflictException":
3526
- throw await de_ConflictExceptionRes(parsedOutput, context);
3527
- case "InternalServerException":
3528
- case "com.amazonaws.macie2#InternalServerException":
3529
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3530
- case "ResourceNotFoundException":
3531
- case "com.amazonaws.macie2#ResourceNotFoundException":
3532
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3533
- case "ServiceQuotaExceededException":
3534
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
3535
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3536
- case "ThrottlingException":
3537
- case "com.amazonaws.macie2#ThrottlingException":
3538
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3539
- case "ValidationException":
3540
- case "com.amazonaws.macie2#ValidationException":
3541
- throw await de_ValidationExceptionRes(parsedOutput, context);
3542
- default:
3543
- const parsedBody = parsedOutput.body;
3544
- return throwDefaultError({
3545
- output,
3546
- parsedBody,
3547
- errorCode
3548
- });
3549
- }
3550
- }, "de_GetFindingsCommandError");
3551
2357
  var de_GetFindingsFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
3552
2358
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3553
- return de_GetFindingsFilterCommandError(output, context);
2359
+ return de_CommandError(output, context);
3554
2360
  }
3555
2361
  const contents = (0, import_smithy_client.map)({
3556
2362
  $metadata: deserializeMetadata(output)
@@ -3569,46 +2375,9 @@ var de_GetFindingsFilterCommand = /* @__PURE__ */ __name(async (output, context)
3569
2375
  Object.assign(contents, doc);
3570
2376
  return contents;
3571
2377
  }, "de_GetFindingsFilterCommand");
3572
- var de_GetFindingsFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
3573
- const parsedOutput = {
3574
- ...output,
3575
- body: await parseErrorBody(output.body, context)
3576
- };
3577
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3578
- switch (errorCode) {
3579
- case "AccessDeniedException":
3580
- case "com.amazonaws.macie2#AccessDeniedException":
3581
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3582
- case "ConflictException":
3583
- case "com.amazonaws.macie2#ConflictException":
3584
- throw await de_ConflictExceptionRes(parsedOutput, context);
3585
- case "InternalServerException":
3586
- case "com.amazonaws.macie2#InternalServerException":
3587
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3588
- case "ResourceNotFoundException":
3589
- case "com.amazonaws.macie2#ResourceNotFoundException":
3590
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3591
- case "ServiceQuotaExceededException":
3592
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
3593
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3594
- case "ThrottlingException":
3595
- case "com.amazonaws.macie2#ThrottlingException":
3596
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3597
- case "ValidationException":
3598
- case "com.amazonaws.macie2#ValidationException":
3599
- throw await de_ValidationExceptionRes(parsedOutput, context);
3600
- default:
3601
- const parsedBody = parsedOutput.body;
3602
- return throwDefaultError({
3603
- output,
3604
- parsedBody,
3605
- errorCode
3606
- });
3607
- }
3608
- }, "de_GetFindingsFilterCommandError");
3609
2378
  var de_GetFindingsPublicationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
3610
2379
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3611
- return de_GetFindingsPublicationConfigurationCommandError(output, context);
2380
+ return de_CommandError(output, context);
3612
2381
  }
3613
2382
  const contents = (0, import_smithy_client.map)({
3614
2383
  $metadata: deserializeMetadata(output)
@@ -3620,46 +2389,9 @@ var de_GetFindingsPublicationConfigurationCommand = /* @__PURE__ */ __name(async
3620
2389
  Object.assign(contents, doc);
3621
2390
  return contents;
3622
2391
  }, "de_GetFindingsPublicationConfigurationCommand");
3623
- var de_GetFindingsPublicationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3624
- const parsedOutput = {
3625
- ...output,
3626
- body: await parseErrorBody(output.body, context)
3627
- };
3628
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3629
- switch (errorCode) {
3630
- case "AccessDeniedException":
3631
- case "com.amazonaws.macie2#AccessDeniedException":
3632
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3633
- case "ConflictException":
3634
- case "com.amazonaws.macie2#ConflictException":
3635
- throw await de_ConflictExceptionRes(parsedOutput, context);
3636
- case "InternalServerException":
3637
- case "com.amazonaws.macie2#InternalServerException":
3638
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3639
- case "ResourceNotFoundException":
3640
- case "com.amazonaws.macie2#ResourceNotFoundException":
3641
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3642
- case "ServiceQuotaExceededException":
3643
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
3644
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3645
- case "ThrottlingException":
3646
- case "com.amazonaws.macie2#ThrottlingException":
3647
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3648
- case "ValidationException":
3649
- case "com.amazonaws.macie2#ValidationException":
3650
- throw await de_ValidationExceptionRes(parsedOutput, context);
3651
- default:
3652
- const parsedBody = parsedOutput.body;
3653
- return throwDefaultError({
3654
- output,
3655
- parsedBody,
3656
- errorCode
3657
- });
3658
- }
3659
- }, "de_GetFindingsPublicationConfigurationCommandError");
3660
2392
  var de_GetFindingStatisticsCommand = /* @__PURE__ */ __name(async (output, context) => {
3661
2393
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3662
- return de_GetFindingStatisticsCommandError(output, context);
2394
+ return de_CommandError(output, context);
3663
2395
  }
3664
2396
  const contents = (0, import_smithy_client.map)({
3665
2397
  $metadata: deserializeMetadata(output)
@@ -3671,46 +2403,9 @@ var de_GetFindingStatisticsCommand = /* @__PURE__ */ __name(async (output, conte
3671
2403
  Object.assign(contents, doc);
3672
2404
  return contents;
3673
2405
  }, "de_GetFindingStatisticsCommand");
3674
- var de_GetFindingStatisticsCommandError = /* @__PURE__ */ __name(async (output, context) => {
3675
- const parsedOutput = {
3676
- ...output,
3677
- body: await parseErrorBody(output.body, context)
3678
- };
3679
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3680
- switch (errorCode) {
3681
- case "AccessDeniedException":
3682
- case "com.amazonaws.macie2#AccessDeniedException":
3683
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3684
- case "ConflictException":
3685
- case "com.amazonaws.macie2#ConflictException":
3686
- throw await de_ConflictExceptionRes(parsedOutput, context);
3687
- case "InternalServerException":
3688
- case "com.amazonaws.macie2#InternalServerException":
3689
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3690
- case "ResourceNotFoundException":
3691
- case "com.amazonaws.macie2#ResourceNotFoundException":
3692
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3693
- case "ServiceQuotaExceededException":
3694
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
3695
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3696
- case "ThrottlingException":
3697
- case "com.amazonaws.macie2#ThrottlingException":
3698
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3699
- case "ValidationException":
3700
- case "com.amazonaws.macie2#ValidationException":
3701
- throw await de_ValidationExceptionRes(parsedOutput, context);
3702
- default:
3703
- const parsedBody = parsedOutput.body;
3704
- return throwDefaultError({
3705
- output,
3706
- parsedBody,
3707
- errorCode
3708
- });
3709
- }
3710
- }, "de_GetFindingStatisticsCommandError");
3711
2406
  var de_GetInvitationsCountCommand = /* @__PURE__ */ __name(async (output, context) => {
3712
2407
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3713
- return de_GetInvitationsCountCommandError(output, context);
2408
+ return de_CommandError(output, context);
3714
2409
  }
3715
2410
  const contents = (0, import_smithy_client.map)({
3716
2411
  $metadata: deserializeMetadata(output)
@@ -3722,152 +2417,41 @@ var de_GetInvitationsCountCommand = /* @__PURE__ */ __name(async (output, contex
3722
2417
  Object.assign(contents, doc);
3723
2418
  return contents;
3724
2419
  }, "de_GetInvitationsCountCommand");
3725
- var de_GetInvitationsCountCommandError = /* @__PURE__ */ __name(async (output, context) => {
3726
- const parsedOutput = {
3727
- ...output,
3728
- body: await parseErrorBody(output.body, context)
3729
- };
3730
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3731
- switch (errorCode) {
3732
- case "AccessDeniedException":
3733
- case "com.amazonaws.macie2#AccessDeniedException":
3734
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3735
- case "ConflictException":
3736
- case "com.amazonaws.macie2#ConflictException":
3737
- throw await de_ConflictExceptionRes(parsedOutput, context);
3738
- case "InternalServerException":
3739
- case "com.amazonaws.macie2#InternalServerException":
3740
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3741
- case "ResourceNotFoundException":
3742
- case "com.amazonaws.macie2#ResourceNotFoundException":
3743
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3744
- case "ServiceQuotaExceededException":
3745
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
3746
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3747
- case "ThrottlingException":
3748
- case "com.amazonaws.macie2#ThrottlingException":
3749
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3750
- case "ValidationException":
3751
- case "com.amazonaws.macie2#ValidationException":
3752
- throw await de_ValidationExceptionRes(parsedOutput, context);
3753
- default:
3754
- const parsedBody = parsedOutput.body;
3755
- return throwDefaultError({
3756
- output,
3757
- parsedBody,
3758
- errorCode
3759
- });
3760
- }
3761
- }, "de_GetInvitationsCountCommandError");
3762
2420
  var de_GetMacieSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
3763
2421
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3764
- return de_GetMacieSessionCommandError(output, context);
3765
- }
3766
- const contents = (0, import_smithy_client.map)({
3767
- $metadata: deserializeMetadata(output)
3768
- });
3769
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3770
- const doc = (0, import_smithy_client.take)(data, {
3771
- createdAt: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `createdAt`],
3772
- findingPublishingFrequency: [, import_smithy_client.expectString, `findingPublishingFrequency`],
3773
- serviceRole: [, import_smithy_client.expectString, `serviceRole`],
3774
- status: [, import_smithy_client.expectString, `status`],
3775
- updatedAt: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `updatedAt`]
3776
- });
3777
- Object.assign(contents, doc);
3778
- return contents;
3779
- }, "de_GetMacieSessionCommand");
3780
- var de_GetMacieSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
3781
- const parsedOutput = {
3782
- ...output,
3783
- body: await parseErrorBody(output.body, context)
3784
- };
3785
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3786
- switch (errorCode) {
3787
- case "AccessDeniedException":
3788
- case "com.amazonaws.macie2#AccessDeniedException":
3789
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3790
- case "ConflictException":
3791
- case "com.amazonaws.macie2#ConflictException":
3792
- throw await de_ConflictExceptionRes(parsedOutput, context);
3793
- case "InternalServerException":
3794
- case "com.amazonaws.macie2#InternalServerException":
3795
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3796
- case "ResourceNotFoundException":
3797
- case "com.amazonaws.macie2#ResourceNotFoundException":
3798
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3799
- case "ServiceQuotaExceededException":
3800
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
3801
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3802
- case "ThrottlingException":
3803
- case "com.amazonaws.macie2#ThrottlingException":
3804
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3805
- case "ValidationException":
3806
- case "com.amazonaws.macie2#ValidationException":
3807
- throw await de_ValidationExceptionRes(parsedOutput, context);
3808
- default:
3809
- const parsedBody = parsedOutput.body;
3810
- return throwDefaultError({
3811
- output,
3812
- parsedBody,
3813
- errorCode
3814
- });
3815
- }
3816
- }, "de_GetMacieSessionCommandError");
3817
- var de_GetMasterAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
3818
- if (output.statusCode !== 200 && output.statusCode >= 300) {
3819
- return de_GetMasterAccountCommandError(output, context);
2422
+ return de_CommandError(output, context);
3820
2423
  }
3821
2424
  const contents = (0, import_smithy_client.map)({
3822
2425
  $metadata: deserializeMetadata(output)
3823
2426
  });
3824
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
3825
- const doc = (0, import_smithy_client.take)(data, {
3826
- master: [, (_) => de_Invitation(_, context), `master`]
3827
- });
3828
- Object.assign(contents, doc);
3829
- return contents;
3830
- }, "de_GetMasterAccountCommand");
3831
- var de_GetMasterAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
3832
- const parsedOutput = {
3833
- ...output,
3834
- body: await parseErrorBody(output.body, context)
3835
- };
3836
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3837
- switch (errorCode) {
3838
- case "AccessDeniedException":
3839
- case "com.amazonaws.macie2#AccessDeniedException":
3840
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3841
- case "ConflictException":
3842
- case "com.amazonaws.macie2#ConflictException":
3843
- throw await de_ConflictExceptionRes(parsedOutput, context);
3844
- case "InternalServerException":
3845
- case "com.amazonaws.macie2#InternalServerException":
3846
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3847
- case "ResourceNotFoundException":
3848
- case "com.amazonaws.macie2#ResourceNotFoundException":
3849
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3850
- case "ServiceQuotaExceededException":
3851
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
3852
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3853
- case "ThrottlingException":
3854
- case "com.amazonaws.macie2#ThrottlingException":
3855
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3856
- case "ValidationException":
3857
- case "com.amazonaws.macie2#ValidationException":
3858
- throw await de_ValidationExceptionRes(parsedOutput, context);
3859
- default:
3860
- const parsedBody = parsedOutput.body;
3861
- return throwDefaultError({
3862
- output,
3863
- parsedBody,
3864
- errorCode
3865
- });
2427
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2428
+ const doc = (0, import_smithy_client.take)(data, {
2429
+ createdAt: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `createdAt`],
2430
+ findingPublishingFrequency: [, import_smithy_client.expectString, `findingPublishingFrequency`],
2431
+ serviceRole: [, import_smithy_client.expectString, `serviceRole`],
2432
+ status: [, import_smithy_client.expectString, `status`],
2433
+ updatedAt: [, (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), `updatedAt`]
2434
+ });
2435
+ Object.assign(contents, doc);
2436
+ return contents;
2437
+ }, "de_GetMacieSessionCommand");
2438
+ var de_GetMasterAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
2439
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2440
+ return de_CommandError(output, context);
3866
2441
  }
3867
- }, "de_GetMasterAccountCommandError");
2442
+ const contents = (0, import_smithy_client.map)({
2443
+ $metadata: deserializeMetadata(output)
2444
+ });
2445
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2446
+ const doc = (0, import_smithy_client.take)(data, {
2447
+ master: [, (_) => de_Invitation(_, context), `master`]
2448
+ });
2449
+ Object.assign(contents, doc);
2450
+ return contents;
2451
+ }, "de_GetMasterAccountCommand");
3868
2452
  var de_GetMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
3869
2453
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3870
- return de_GetMemberCommandError(output, context);
2454
+ return de_CommandError(output, context);
3871
2455
  }
3872
2456
  const contents = (0, import_smithy_client.map)({
3873
2457
  $metadata: deserializeMetadata(output)
@@ -3887,46 +2471,9 @@ var de_GetMemberCommand = /* @__PURE__ */ __name(async (output, context) => {
3887
2471
  Object.assign(contents, doc);
3888
2472
  return contents;
3889
2473
  }, "de_GetMemberCommand");
3890
- var de_GetMemberCommandError = /* @__PURE__ */ __name(async (output, context) => {
3891
- const parsedOutput = {
3892
- ...output,
3893
- body: await parseErrorBody(output.body, context)
3894
- };
3895
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3896
- switch (errorCode) {
3897
- case "AccessDeniedException":
3898
- case "com.amazonaws.macie2#AccessDeniedException":
3899
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3900
- case "ConflictException":
3901
- case "com.amazonaws.macie2#ConflictException":
3902
- throw await de_ConflictExceptionRes(parsedOutput, context);
3903
- case "InternalServerException":
3904
- case "com.amazonaws.macie2#InternalServerException":
3905
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3906
- case "ResourceNotFoundException":
3907
- case "com.amazonaws.macie2#ResourceNotFoundException":
3908
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3909
- case "ServiceQuotaExceededException":
3910
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
3911
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3912
- case "ThrottlingException":
3913
- case "com.amazonaws.macie2#ThrottlingException":
3914
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3915
- case "ValidationException":
3916
- case "com.amazonaws.macie2#ValidationException":
3917
- throw await de_ValidationExceptionRes(parsedOutput, context);
3918
- default:
3919
- const parsedBody = parsedOutput.body;
3920
- return throwDefaultError({
3921
- output,
3922
- parsedBody,
3923
- errorCode
3924
- });
3925
- }
3926
- }, "de_GetMemberCommandError");
3927
2474
  var de_GetResourceProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
3928
2475
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3929
- return de_GetResourceProfileCommandError(output, context);
2476
+ return de_CommandError(output, context);
3930
2477
  }
3931
2478
  const contents = (0, import_smithy_client.map)({
3932
2479
  $metadata: deserializeMetadata(output)
@@ -3941,43 +2488,9 @@ var de_GetResourceProfileCommand = /* @__PURE__ */ __name(async (output, context
3941
2488
  Object.assign(contents, doc);
3942
2489
  return contents;
3943
2490
  }, "de_GetResourceProfileCommand");
3944
- var de_GetResourceProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
3945
- const parsedOutput = {
3946
- ...output,
3947
- body: await parseErrorBody(output.body, context)
3948
- };
3949
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3950
- switch (errorCode) {
3951
- case "AccessDeniedException":
3952
- case "com.amazonaws.macie2#AccessDeniedException":
3953
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3954
- case "InternalServerException":
3955
- case "com.amazonaws.macie2#InternalServerException":
3956
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3957
- case "ResourceNotFoundException":
3958
- case "com.amazonaws.macie2#ResourceNotFoundException":
3959
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3960
- case "ServiceQuotaExceededException":
3961
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
3962
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
3963
- case "ThrottlingException":
3964
- case "com.amazonaws.macie2#ThrottlingException":
3965
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3966
- case "ValidationException":
3967
- case "com.amazonaws.macie2#ValidationException":
3968
- throw await de_ValidationExceptionRes(parsedOutput, context);
3969
- default:
3970
- const parsedBody = parsedOutput.body;
3971
- return throwDefaultError({
3972
- output,
3973
- parsedBody,
3974
- errorCode
3975
- });
3976
- }
3977
- }, "de_GetResourceProfileCommandError");
3978
2491
  var de_GetRevealConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
3979
2492
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3980
- return de_GetRevealConfigurationCommandError(output, context);
2493
+ return de_CommandError(output, context);
3981
2494
  }
3982
2495
  const contents = (0, import_smithy_client.map)({
3983
2496
  $metadata: deserializeMetadata(output)
@@ -3990,37 +2503,9 @@ var de_GetRevealConfigurationCommand = /* @__PURE__ */ __name(async (output, con
3990
2503
  Object.assign(contents, doc);
3991
2504
  return contents;
3992
2505
  }, "de_GetRevealConfigurationCommand");
3993
- var de_GetRevealConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
3994
- const parsedOutput = {
3995
- ...output,
3996
- body: await parseErrorBody(output.body, context)
3997
- };
3998
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3999
- switch (errorCode) {
4000
- case "AccessDeniedException":
4001
- case "com.amazonaws.macie2#AccessDeniedException":
4002
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4003
- case "InternalServerException":
4004
- case "com.amazonaws.macie2#InternalServerException":
4005
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4006
- case "ThrottlingException":
4007
- case "com.amazonaws.macie2#ThrottlingException":
4008
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4009
- case "ValidationException":
4010
- case "com.amazonaws.macie2#ValidationException":
4011
- throw await de_ValidationExceptionRes(parsedOutput, context);
4012
- default:
4013
- const parsedBody = parsedOutput.body;
4014
- return throwDefaultError({
4015
- output,
4016
- parsedBody,
4017
- errorCode
4018
- });
4019
- }
4020
- }, "de_GetRevealConfigurationCommandError");
4021
2506
  var de_GetSensitiveDataOccurrencesCommand = /* @__PURE__ */ __name(async (output, context) => {
4022
2507
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4023
- return de_GetSensitiveDataOccurrencesCommandError(output, context);
2508
+ return de_CommandError(output, context);
4024
2509
  }
4025
2510
  const contents = (0, import_smithy_client.map)({
4026
2511
  $metadata: deserializeMetadata(output)
@@ -4034,43 +2519,9 @@ var de_GetSensitiveDataOccurrencesCommand = /* @__PURE__ */ __name(async (output
4034
2519
  Object.assign(contents, doc);
4035
2520
  return contents;
4036
2521
  }, "de_GetSensitiveDataOccurrencesCommand");
4037
- var de_GetSensitiveDataOccurrencesCommandError = /* @__PURE__ */ __name(async (output, context) => {
4038
- const parsedOutput = {
4039
- ...output,
4040
- body: await parseErrorBody(output.body, context)
4041
- };
4042
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4043
- switch (errorCode) {
4044
- case "AccessDeniedException":
4045
- case "com.amazonaws.macie2#AccessDeniedException":
4046
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4047
- case "InternalServerException":
4048
- case "com.amazonaws.macie2#InternalServerException":
4049
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4050
- case "ResourceNotFoundException":
4051
- case "com.amazonaws.macie2#ResourceNotFoundException":
4052
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4053
- case "ServiceQuotaExceededException":
4054
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
4055
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4056
- case "ThrottlingException":
4057
- case "com.amazonaws.macie2#ThrottlingException":
4058
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4059
- case "UnprocessableEntityException":
4060
- case "com.amazonaws.macie2#UnprocessableEntityException":
4061
- throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
4062
- default:
4063
- const parsedBody = parsedOutput.body;
4064
- return throwDefaultError({
4065
- output,
4066
- parsedBody,
4067
- errorCode
4068
- });
4069
- }
4070
- }, "de_GetSensitiveDataOccurrencesCommandError");
4071
2522
  var de_GetSensitiveDataOccurrencesAvailabilityCommand = /* @__PURE__ */ __name(async (output, context) => {
4072
2523
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4073
- return de_GetSensitiveDataOccurrencesAvailabilityCommandError(output, context);
2524
+ return de_CommandError(output, context);
4074
2525
  }
4075
2526
  const contents = (0, import_smithy_client.map)({
4076
2527
  $metadata: deserializeMetadata(output)
@@ -4083,37 +2534,9 @@ var de_GetSensitiveDataOccurrencesAvailabilityCommand = /* @__PURE__ */ __name(a
4083
2534
  Object.assign(contents, doc);
4084
2535
  return contents;
4085
2536
  }, "de_GetSensitiveDataOccurrencesAvailabilityCommand");
4086
- var de_GetSensitiveDataOccurrencesAvailabilityCommandError = /* @__PURE__ */ __name(async (output, context) => {
4087
- const parsedOutput = {
4088
- ...output,
4089
- body: await parseErrorBody(output.body, context)
4090
- };
4091
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4092
- switch (errorCode) {
4093
- case "AccessDeniedException":
4094
- case "com.amazonaws.macie2#AccessDeniedException":
4095
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4096
- case "InternalServerException":
4097
- case "com.amazonaws.macie2#InternalServerException":
4098
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4099
- case "ResourceNotFoundException":
4100
- case "com.amazonaws.macie2#ResourceNotFoundException":
4101
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4102
- case "ThrottlingException":
4103
- case "com.amazonaws.macie2#ThrottlingException":
4104
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4105
- default:
4106
- const parsedBody = parsedOutput.body;
4107
- return throwDefaultError({
4108
- output,
4109
- parsedBody,
4110
- errorCode
4111
- });
4112
- }
4113
- }, "de_GetSensitiveDataOccurrencesAvailabilityCommandError");
4114
2537
  var de_GetSensitivityInspectionTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
4115
2538
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4116
- return de_GetSensitivityInspectionTemplateCommandError(output, context);
2539
+ return de_CommandError(output, context);
4117
2540
  }
4118
2541
  const contents = (0, import_smithy_client.map)({
4119
2542
  $metadata: deserializeMetadata(output)
@@ -4125,97 +2548,29 @@ var de_GetSensitivityInspectionTemplateCommand = /* @__PURE__ */ __name(async (o
4125
2548
  includes: [, (_) => de_SensitivityInspectionTemplateIncludes(_, context), `includes`],
4126
2549
  name: [, import_smithy_client.expectString, `name`],
4127
2550
  sensitivityInspectionTemplateId: [, import_smithy_client.expectString, `sensitivityInspectionTemplateId`]
4128
- });
4129
- Object.assign(contents, doc);
4130
- return contents;
4131
- }, "de_GetSensitivityInspectionTemplateCommand");
4132
- var de_GetSensitivityInspectionTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
4133
- const parsedOutput = {
4134
- ...output,
4135
- body: await parseErrorBody(output.body, context)
4136
- };
4137
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4138
- switch (errorCode) {
4139
- case "AccessDeniedException":
4140
- case "com.amazonaws.macie2#AccessDeniedException":
4141
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4142
- case "InternalServerException":
4143
- case "com.amazonaws.macie2#InternalServerException":
4144
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4145
- case "ResourceNotFoundException":
4146
- case "com.amazonaws.macie2#ResourceNotFoundException":
4147
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4148
- case "ThrottlingException":
4149
- case "com.amazonaws.macie2#ThrottlingException":
4150
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4151
- case "ValidationException":
4152
- case "com.amazonaws.macie2#ValidationException":
4153
- throw await de_ValidationExceptionRes(parsedOutput, context);
4154
- default:
4155
- const parsedBody = parsedOutput.body;
4156
- return throwDefaultError({
4157
- output,
4158
- parsedBody,
4159
- errorCode
4160
- });
4161
- }
4162
- }, "de_GetSensitivityInspectionTemplateCommandError");
4163
- var de_GetUsageStatisticsCommand = /* @__PURE__ */ __name(async (output, context) => {
4164
- if (output.statusCode !== 200 && output.statusCode >= 300) {
4165
- return de_GetUsageStatisticsCommandError(output, context);
4166
- }
4167
- const contents = (0, import_smithy_client.map)({
4168
- $metadata: deserializeMetadata(output)
4169
- });
4170
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
4171
- const doc = (0, import_smithy_client.take)(data, {
4172
- nextToken: [, import_smithy_client.expectString, `nextToken`],
4173
- records: [, (_) => de___listOfUsageRecord(_, context), `records`],
4174
- timeRange: [, import_smithy_client.expectString, `timeRange`]
4175
- });
4176
- Object.assign(contents, doc);
4177
- return contents;
4178
- }, "de_GetUsageStatisticsCommand");
4179
- var de_GetUsageStatisticsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4180
- const parsedOutput = {
4181
- ...output,
4182
- body: await parseErrorBody(output.body, context)
4183
- };
4184
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4185
- switch (errorCode) {
4186
- case "AccessDeniedException":
4187
- case "com.amazonaws.macie2#AccessDeniedException":
4188
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4189
- case "ConflictException":
4190
- case "com.amazonaws.macie2#ConflictException":
4191
- throw await de_ConflictExceptionRes(parsedOutput, context);
4192
- case "InternalServerException":
4193
- case "com.amazonaws.macie2#InternalServerException":
4194
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4195
- case "ResourceNotFoundException":
4196
- case "com.amazonaws.macie2#ResourceNotFoundException":
4197
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4198
- case "ServiceQuotaExceededException":
4199
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
4200
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4201
- case "ThrottlingException":
4202
- case "com.amazonaws.macie2#ThrottlingException":
4203
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4204
- case "ValidationException":
4205
- case "com.amazonaws.macie2#ValidationException":
4206
- throw await de_ValidationExceptionRes(parsedOutput, context);
4207
- default:
4208
- const parsedBody = parsedOutput.body;
4209
- return throwDefaultError({
4210
- output,
4211
- parsedBody,
4212
- errorCode
4213
- });
2551
+ });
2552
+ Object.assign(contents, doc);
2553
+ return contents;
2554
+ }, "de_GetSensitivityInspectionTemplateCommand");
2555
+ var de_GetUsageStatisticsCommand = /* @__PURE__ */ __name(async (output, context) => {
2556
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2557
+ return de_CommandError(output, context);
4214
2558
  }
4215
- }, "de_GetUsageStatisticsCommandError");
2559
+ const contents = (0, import_smithy_client.map)({
2560
+ $metadata: deserializeMetadata(output)
2561
+ });
2562
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2563
+ const doc = (0, import_smithy_client.take)(data, {
2564
+ nextToken: [, import_smithy_client.expectString, `nextToken`],
2565
+ records: [, (_) => de___listOfUsageRecord(_, context), `records`],
2566
+ timeRange: [, import_smithy_client.expectString, `timeRange`]
2567
+ });
2568
+ Object.assign(contents, doc);
2569
+ return contents;
2570
+ }, "de_GetUsageStatisticsCommand");
4216
2571
  var de_GetUsageTotalsCommand = /* @__PURE__ */ __name(async (output, context) => {
4217
2572
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4218
- return de_GetUsageTotalsCommandError(output, context);
2573
+ return de_CommandError(output, context);
4219
2574
  }
4220
2575
  const contents = (0, import_smithy_client.map)({
4221
2576
  $metadata: deserializeMetadata(output)
@@ -4228,46 +2583,9 @@ var de_GetUsageTotalsCommand = /* @__PURE__ */ __name(async (output, context) =>
4228
2583
  Object.assign(contents, doc);
4229
2584
  return contents;
4230
2585
  }, "de_GetUsageTotalsCommand");
4231
- var de_GetUsageTotalsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4232
- const parsedOutput = {
4233
- ...output,
4234
- body: await parseErrorBody(output.body, context)
4235
- };
4236
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4237
- switch (errorCode) {
4238
- case "AccessDeniedException":
4239
- case "com.amazonaws.macie2#AccessDeniedException":
4240
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4241
- case "ConflictException":
4242
- case "com.amazonaws.macie2#ConflictException":
4243
- throw await de_ConflictExceptionRes(parsedOutput, context);
4244
- case "InternalServerException":
4245
- case "com.amazonaws.macie2#InternalServerException":
4246
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4247
- case "ResourceNotFoundException":
4248
- case "com.amazonaws.macie2#ResourceNotFoundException":
4249
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4250
- case "ServiceQuotaExceededException":
4251
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
4252
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4253
- case "ThrottlingException":
4254
- case "com.amazonaws.macie2#ThrottlingException":
4255
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4256
- case "ValidationException":
4257
- case "com.amazonaws.macie2#ValidationException":
4258
- throw await de_ValidationExceptionRes(parsedOutput, context);
4259
- default:
4260
- const parsedBody = parsedOutput.body;
4261
- return throwDefaultError({
4262
- output,
4263
- parsedBody,
4264
- errorCode
4265
- });
4266
- }
4267
- }, "de_GetUsageTotalsCommandError");
4268
2586
  var de_ListAllowListsCommand = /* @__PURE__ */ __name(async (output, context) => {
4269
2587
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4270
- return de_ListAllowListsCommandError(output, context);
2588
+ return de_CommandError(output, context);
4271
2589
  }
4272
2590
  const contents = (0, import_smithy_client.map)({
4273
2591
  $metadata: deserializeMetadata(output)
@@ -4280,37 +2598,9 @@ var de_ListAllowListsCommand = /* @__PURE__ */ __name(async (output, context) =>
4280
2598
  Object.assign(contents, doc);
4281
2599
  return contents;
4282
2600
  }, "de_ListAllowListsCommand");
4283
- var de_ListAllowListsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4284
- const parsedOutput = {
4285
- ...output,
4286
- body: await parseErrorBody(output.body, context)
4287
- };
4288
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4289
- switch (errorCode) {
4290
- case "AccessDeniedException":
4291
- case "com.amazonaws.macie2#AccessDeniedException":
4292
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4293
- case "InternalServerException":
4294
- case "com.amazonaws.macie2#InternalServerException":
4295
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4296
- case "ThrottlingException":
4297
- case "com.amazonaws.macie2#ThrottlingException":
4298
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4299
- case "ValidationException":
4300
- case "com.amazonaws.macie2#ValidationException":
4301
- throw await de_ValidationExceptionRes(parsedOutput, context);
4302
- default:
4303
- const parsedBody = parsedOutput.body;
4304
- return throwDefaultError({
4305
- output,
4306
- parsedBody,
4307
- errorCode
4308
- });
4309
- }
4310
- }, "de_ListAllowListsCommandError");
4311
2601
  var de_ListClassificationJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
4312
2602
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4313
- return de_ListClassificationJobsCommandError(output, context);
2603
+ return de_CommandError(output, context);
4314
2604
  }
4315
2605
  const contents = (0, import_smithy_client.map)({
4316
2606
  $metadata: deserializeMetadata(output)
@@ -4323,46 +2613,9 @@ var de_ListClassificationJobsCommand = /* @__PURE__ */ __name(async (output, con
4323
2613
  Object.assign(contents, doc);
4324
2614
  return contents;
4325
2615
  }, "de_ListClassificationJobsCommand");
4326
- var de_ListClassificationJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4327
- const parsedOutput = {
4328
- ...output,
4329
- body: await parseErrorBody(output.body, context)
4330
- };
4331
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4332
- switch (errorCode) {
4333
- case "AccessDeniedException":
4334
- case "com.amazonaws.macie2#AccessDeniedException":
4335
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4336
- case "ConflictException":
4337
- case "com.amazonaws.macie2#ConflictException":
4338
- throw await de_ConflictExceptionRes(parsedOutput, context);
4339
- case "InternalServerException":
4340
- case "com.amazonaws.macie2#InternalServerException":
4341
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4342
- case "ResourceNotFoundException":
4343
- case "com.amazonaws.macie2#ResourceNotFoundException":
4344
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4345
- case "ServiceQuotaExceededException":
4346
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
4347
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4348
- case "ThrottlingException":
4349
- case "com.amazonaws.macie2#ThrottlingException":
4350
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4351
- case "ValidationException":
4352
- case "com.amazonaws.macie2#ValidationException":
4353
- throw await de_ValidationExceptionRes(parsedOutput, context);
4354
- default:
4355
- const parsedBody = parsedOutput.body;
4356
- return throwDefaultError({
4357
- output,
4358
- parsedBody,
4359
- errorCode
4360
- });
4361
- }
4362
- }, "de_ListClassificationJobsCommandError");
4363
2616
  var de_ListClassificationScopesCommand = /* @__PURE__ */ __name(async (output, context) => {
4364
2617
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4365
- return de_ListClassificationScopesCommandError(output, context);
2618
+ return de_CommandError(output, context);
4366
2619
  }
4367
2620
  const contents = (0, import_smithy_client.map)({
4368
2621
  $metadata: deserializeMetadata(output)
@@ -4375,37 +2628,9 @@ var de_ListClassificationScopesCommand = /* @__PURE__ */ __name(async (output, c
4375
2628
  Object.assign(contents, doc);
4376
2629
  return contents;
4377
2630
  }, "de_ListClassificationScopesCommand");
4378
- var de_ListClassificationScopesCommandError = /* @__PURE__ */ __name(async (output, context) => {
4379
- const parsedOutput = {
4380
- ...output,
4381
- body: await parseErrorBody(output.body, context)
4382
- };
4383
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4384
- switch (errorCode) {
4385
- case "AccessDeniedException":
4386
- case "com.amazonaws.macie2#AccessDeniedException":
4387
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4388
- case "InternalServerException":
4389
- case "com.amazonaws.macie2#InternalServerException":
4390
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4391
- case "ThrottlingException":
4392
- case "com.amazonaws.macie2#ThrottlingException":
4393
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4394
- case "ValidationException":
4395
- case "com.amazonaws.macie2#ValidationException":
4396
- throw await de_ValidationExceptionRes(parsedOutput, context);
4397
- default:
4398
- const parsedBody = parsedOutput.body;
4399
- return throwDefaultError({
4400
- output,
4401
- parsedBody,
4402
- errorCode
4403
- });
4404
- }
4405
- }, "de_ListClassificationScopesCommandError");
4406
2631
  var de_ListCustomDataIdentifiersCommand = /* @__PURE__ */ __name(async (output, context) => {
4407
2632
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4408
- return de_ListCustomDataIdentifiersCommandError(output, context);
2633
+ return de_CommandError(output, context);
4409
2634
  }
4410
2635
  const contents = (0, import_smithy_client.map)({
4411
2636
  $metadata: deserializeMetadata(output)
@@ -4418,46 +2643,9 @@ var de_ListCustomDataIdentifiersCommand = /* @__PURE__ */ __name(async (output,
4418
2643
  Object.assign(contents, doc);
4419
2644
  return contents;
4420
2645
  }, "de_ListCustomDataIdentifiersCommand");
4421
- var de_ListCustomDataIdentifiersCommandError = /* @__PURE__ */ __name(async (output, context) => {
4422
- const parsedOutput = {
4423
- ...output,
4424
- body: await parseErrorBody(output.body, context)
4425
- };
4426
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4427
- switch (errorCode) {
4428
- case "AccessDeniedException":
4429
- case "com.amazonaws.macie2#AccessDeniedException":
4430
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4431
- case "ConflictException":
4432
- case "com.amazonaws.macie2#ConflictException":
4433
- throw await de_ConflictExceptionRes(parsedOutput, context);
4434
- case "InternalServerException":
4435
- case "com.amazonaws.macie2#InternalServerException":
4436
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4437
- case "ResourceNotFoundException":
4438
- case "com.amazonaws.macie2#ResourceNotFoundException":
4439
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4440
- case "ServiceQuotaExceededException":
4441
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
4442
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4443
- case "ThrottlingException":
4444
- case "com.amazonaws.macie2#ThrottlingException":
4445
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4446
- case "ValidationException":
4447
- case "com.amazonaws.macie2#ValidationException":
4448
- throw await de_ValidationExceptionRes(parsedOutput, context);
4449
- default:
4450
- const parsedBody = parsedOutput.body;
4451
- return throwDefaultError({
4452
- output,
4453
- parsedBody,
4454
- errorCode
4455
- });
4456
- }
4457
- }, "de_ListCustomDataIdentifiersCommandError");
4458
2646
  var de_ListFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
4459
2647
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4460
- return de_ListFindingsCommandError(output, context);
2648
+ return de_CommandError(output, context);
4461
2649
  }
4462
2650
  const contents = (0, import_smithy_client.map)({
4463
2651
  $metadata: deserializeMetadata(output)
@@ -4470,98 +2658,24 @@ var de_ListFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
4470
2658
  Object.assign(contents, doc);
4471
2659
  return contents;
4472
2660
  }, "de_ListFindingsCommand");
4473
- var de_ListFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4474
- const parsedOutput = {
4475
- ...output,
4476
- body: await parseErrorBody(output.body, context)
4477
- };
4478
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4479
- switch (errorCode) {
4480
- case "AccessDeniedException":
4481
- case "com.amazonaws.macie2#AccessDeniedException":
4482
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4483
- case "ConflictException":
4484
- case "com.amazonaws.macie2#ConflictException":
4485
- throw await de_ConflictExceptionRes(parsedOutput, context);
4486
- case "InternalServerException":
4487
- case "com.amazonaws.macie2#InternalServerException":
4488
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4489
- case "ResourceNotFoundException":
4490
- case "com.amazonaws.macie2#ResourceNotFoundException":
4491
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4492
- case "ServiceQuotaExceededException":
4493
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
4494
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4495
- case "ThrottlingException":
4496
- case "com.amazonaws.macie2#ThrottlingException":
4497
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4498
- case "ValidationException":
4499
- case "com.amazonaws.macie2#ValidationException":
4500
- throw await de_ValidationExceptionRes(parsedOutput, context);
4501
- default:
4502
- const parsedBody = parsedOutput.body;
4503
- return throwDefaultError({
4504
- output,
4505
- parsedBody,
4506
- errorCode
4507
- });
4508
- }
4509
- }, "de_ListFindingsCommandError");
4510
2661
  var de_ListFindingsFiltersCommand = /* @__PURE__ */ __name(async (output, context) => {
4511
2662
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4512
- return de_ListFindingsFiltersCommandError(output, context);
4513
- }
4514
- const contents = (0, import_smithy_client.map)({
4515
- $metadata: deserializeMetadata(output)
4516
- });
4517
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
4518
- const doc = (0, import_smithy_client.take)(data, {
4519
- findingsFilterListItems: [, (_) => de___listOfFindingsFilterListItem(_, context), `findingsFilterListItems`],
4520
- nextToken: [, import_smithy_client.expectString, `nextToken`]
4521
- });
4522
- Object.assign(contents, doc);
4523
- return contents;
4524
- }, "de_ListFindingsFiltersCommand");
4525
- var de_ListFindingsFiltersCommandError = /* @__PURE__ */ __name(async (output, context) => {
4526
- const parsedOutput = {
4527
- ...output,
4528
- body: await parseErrorBody(output.body, context)
4529
- };
4530
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4531
- switch (errorCode) {
4532
- case "AccessDeniedException":
4533
- case "com.amazonaws.macie2#AccessDeniedException":
4534
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4535
- case "ConflictException":
4536
- case "com.amazonaws.macie2#ConflictException":
4537
- throw await de_ConflictExceptionRes(parsedOutput, context);
4538
- case "InternalServerException":
4539
- case "com.amazonaws.macie2#InternalServerException":
4540
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4541
- case "ResourceNotFoundException":
4542
- case "com.amazonaws.macie2#ResourceNotFoundException":
4543
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4544
- case "ServiceQuotaExceededException":
4545
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
4546
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4547
- case "ThrottlingException":
4548
- case "com.amazonaws.macie2#ThrottlingException":
4549
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4550
- case "ValidationException":
4551
- case "com.amazonaws.macie2#ValidationException":
4552
- throw await de_ValidationExceptionRes(parsedOutput, context);
4553
- default:
4554
- const parsedBody = parsedOutput.body;
4555
- return throwDefaultError({
4556
- output,
4557
- parsedBody,
4558
- errorCode
4559
- });
2663
+ return de_CommandError(output, context);
4560
2664
  }
4561
- }, "de_ListFindingsFiltersCommandError");
2665
+ const contents = (0, import_smithy_client.map)({
2666
+ $metadata: deserializeMetadata(output)
2667
+ });
2668
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2669
+ const doc = (0, import_smithy_client.take)(data, {
2670
+ findingsFilterListItems: [, (_) => de___listOfFindingsFilterListItem(_, context), `findingsFilterListItems`],
2671
+ nextToken: [, import_smithy_client.expectString, `nextToken`]
2672
+ });
2673
+ Object.assign(contents, doc);
2674
+ return contents;
2675
+ }, "de_ListFindingsFiltersCommand");
4562
2676
  var de_ListInvitationsCommand = /* @__PURE__ */ __name(async (output, context) => {
4563
2677
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4564
- return de_ListInvitationsCommandError(output, context);
2678
+ return de_CommandError(output, context);
4565
2679
  }
4566
2680
  const contents = (0, import_smithy_client.map)({
4567
2681
  $metadata: deserializeMetadata(output)
@@ -4574,46 +2688,9 @@ var de_ListInvitationsCommand = /* @__PURE__ */ __name(async (output, context) =
4574
2688
  Object.assign(contents, doc);
4575
2689
  return contents;
4576
2690
  }, "de_ListInvitationsCommand");
4577
- var de_ListInvitationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4578
- const parsedOutput = {
4579
- ...output,
4580
- body: await parseErrorBody(output.body, context)
4581
- };
4582
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4583
- switch (errorCode) {
4584
- case "AccessDeniedException":
4585
- case "com.amazonaws.macie2#AccessDeniedException":
4586
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4587
- case "ConflictException":
4588
- case "com.amazonaws.macie2#ConflictException":
4589
- throw await de_ConflictExceptionRes(parsedOutput, context);
4590
- case "InternalServerException":
4591
- case "com.amazonaws.macie2#InternalServerException":
4592
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4593
- case "ResourceNotFoundException":
4594
- case "com.amazonaws.macie2#ResourceNotFoundException":
4595
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4596
- case "ServiceQuotaExceededException":
4597
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
4598
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4599
- case "ThrottlingException":
4600
- case "com.amazonaws.macie2#ThrottlingException":
4601
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4602
- case "ValidationException":
4603
- case "com.amazonaws.macie2#ValidationException":
4604
- throw await de_ValidationExceptionRes(parsedOutput, context);
4605
- default:
4606
- const parsedBody = parsedOutput.body;
4607
- return throwDefaultError({
4608
- output,
4609
- parsedBody,
4610
- errorCode
4611
- });
4612
- }
4613
- }, "de_ListInvitationsCommandError");
4614
2691
  var de_ListManagedDataIdentifiersCommand = /* @__PURE__ */ __name(async (output, context) => {
4615
2692
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4616
- return de_ListManagedDataIdentifiersCommandError(output, context);
2693
+ return de_CommandError(output, context);
4617
2694
  }
4618
2695
  const contents = (0, import_smithy_client.map)({
4619
2696
  $metadata: deserializeMetadata(output)
@@ -4626,22 +2703,9 @@ var de_ListManagedDataIdentifiersCommand = /* @__PURE__ */ __name(async (output,
4626
2703
  Object.assign(contents, doc);
4627
2704
  return contents;
4628
2705
  }, "de_ListManagedDataIdentifiersCommand");
4629
- var de_ListManagedDataIdentifiersCommandError = /* @__PURE__ */ __name(async (output, context) => {
4630
- const parsedOutput = {
4631
- ...output,
4632
- body: await parseErrorBody(output.body, context)
4633
- };
4634
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4635
- const parsedBody = parsedOutput.body;
4636
- return throwDefaultError({
4637
- output,
4638
- parsedBody,
4639
- errorCode
4640
- });
4641
- }, "de_ListManagedDataIdentifiersCommandError");
4642
2706
  var de_ListMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
4643
2707
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4644
- return de_ListMembersCommandError(output, context);
2708
+ return de_CommandError(output, context);
4645
2709
  }
4646
2710
  const contents = (0, import_smithy_client.map)({
4647
2711
  $metadata: deserializeMetadata(output)
@@ -4654,46 +2718,9 @@ var de_ListMembersCommand = /* @__PURE__ */ __name(async (output, context) => {
4654
2718
  Object.assign(contents, doc);
4655
2719
  return contents;
4656
2720
  }, "de_ListMembersCommand");
4657
- var de_ListMembersCommandError = /* @__PURE__ */ __name(async (output, context) => {
4658
- const parsedOutput = {
4659
- ...output,
4660
- body: await parseErrorBody(output.body, context)
4661
- };
4662
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4663
- switch (errorCode) {
4664
- case "AccessDeniedException":
4665
- case "com.amazonaws.macie2#AccessDeniedException":
4666
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4667
- case "ConflictException":
4668
- case "com.amazonaws.macie2#ConflictException":
4669
- throw await de_ConflictExceptionRes(parsedOutput, context);
4670
- case "InternalServerException":
4671
- case "com.amazonaws.macie2#InternalServerException":
4672
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4673
- case "ResourceNotFoundException":
4674
- case "com.amazonaws.macie2#ResourceNotFoundException":
4675
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4676
- case "ServiceQuotaExceededException":
4677
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
4678
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4679
- case "ThrottlingException":
4680
- case "com.amazonaws.macie2#ThrottlingException":
4681
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4682
- case "ValidationException":
4683
- case "com.amazonaws.macie2#ValidationException":
4684
- throw await de_ValidationExceptionRes(parsedOutput, context);
4685
- default:
4686
- const parsedBody = parsedOutput.body;
4687
- return throwDefaultError({
4688
- output,
4689
- parsedBody,
4690
- errorCode
4691
- });
4692
- }
4693
- }, "de_ListMembersCommandError");
4694
2721
  var de_ListOrganizationAdminAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
4695
2722
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4696
- return de_ListOrganizationAdminAccountsCommandError(output, context);
2723
+ return de_CommandError(output, context);
4697
2724
  }
4698
2725
  const contents = (0, import_smithy_client.map)({
4699
2726
  $metadata: deserializeMetadata(output)
@@ -4706,46 +2733,9 @@ var de_ListOrganizationAdminAccountsCommand = /* @__PURE__ */ __name(async (outp
4706
2733
  Object.assign(contents, doc);
4707
2734
  return contents;
4708
2735
  }, "de_ListOrganizationAdminAccountsCommand");
4709
- var de_ListOrganizationAdminAccountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4710
- const parsedOutput = {
4711
- ...output,
4712
- body: await parseErrorBody(output.body, context)
4713
- };
4714
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4715
- switch (errorCode) {
4716
- case "AccessDeniedException":
4717
- case "com.amazonaws.macie2#AccessDeniedException":
4718
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4719
- case "ConflictException":
4720
- case "com.amazonaws.macie2#ConflictException":
4721
- throw await de_ConflictExceptionRes(parsedOutput, context);
4722
- case "InternalServerException":
4723
- case "com.amazonaws.macie2#InternalServerException":
4724
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4725
- case "ResourceNotFoundException":
4726
- case "com.amazonaws.macie2#ResourceNotFoundException":
4727
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4728
- case "ServiceQuotaExceededException":
4729
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
4730
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4731
- case "ThrottlingException":
4732
- case "com.amazonaws.macie2#ThrottlingException":
4733
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4734
- case "ValidationException":
4735
- case "com.amazonaws.macie2#ValidationException":
4736
- throw await de_ValidationExceptionRes(parsedOutput, context);
4737
- default:
4738
- const parsedBody = parsedOutput.body;
4739
- return throwDefaultError({
4740
- output,
4741
- parsedBody,
4742
- errorCode
4743
- });
4744
- }
4745
- }, "de_ListOrganizationAdminAccountsCommandError");
4746
2736
  var de_ListResourceProfileArtifactsCommand = /* @__PURE__ */ __name(async (output, context) => {
4747
2737
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4748
- return de_ListResourceProfileArtifactsCommandError(output, context);
2738
+ return de_CommandError(output, context);
4749
2739
  }
4750
2740
  const contents = (0, import_smithy_client.map)({
4751
2741
  $metadata: deserializeMetadata(output)
@@ -4758,40 +2748,9 @@ var de_ListResourceProfileArtifactsCommand = /* @__PURE__ */ __name(async (outpu
4758
2748
  Object.assign(contents, doc);
4759
2749
  return contents;
4760
2750
  }, "de_ListResourceProfileArtifactsCommand");
4761
- var de_ListResourceProfileArtifactsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4762
- const parsedOutput = {
4763
- ...output,
4764
- body: await parseErrorBody(output.body, context)
4765
- };
4766
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4767
- switch (errorCode) {
4768
- case "AccessDeniedException":
4769
- case "com.amazonaws.macie2#AccessDeniedException":
4770
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4771
- case "InternalServerException":
4772
- case "com.amazonaws.macie2#InternalServerException":
4773
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4774
- case "ResourceNotFoundException":
4775
- case "com.amazonaws.macie2#ResourceNotFoundException":
4776
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4777
- case "ThrottlingException":
4778
- case "com.amazonaws.macie2#ThrottlingException":
4779
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4780
- case "ValidationException":
4781
- case "com.amazonaws.macie2#ValidationException":
4782
- throw await de_ValidationExceptionRes(parsedOutput, context);
4783
- default:
4784
- const parsedBody = parsedOutput.body;
4785
- return throwDefaultError({
4786
- output,
4787
- parsedBody,
4788
- errorCode
4789
- });
4790
- }
4791
- }, "de_ListResourceProfileArtifactsCommandError");
4792
2751
  var de_ListResourceProfileDetectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
4793
2752
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4794
- return de_ListResourceProfileDetectionsCommandError(output, context);
2753
+ return de_CommandError(output, context);
4795
2754
  }
4796
2755
  const contents = (0, import_smithy_client.map)({
4797
2756
  $metadata: deserializeMetadata(output)
@@ -4804,43 +2763,9 @@ var de_ListResourceProfileDetectionsCommand = /* @__PURE__ */ __name(async (outp
4804
2763
  Object.assign(contents, doc);
4805
2764
  return contents;
4806
2765
  }, "de_ListResourceProfileDetectionsCommand");
4807
- var de_ListResourceProfileDetectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
4808
- const parsedOutput = {
4809
- ...output,
4810
- body: await parseErrorBody(output.body, context)
4811
- };
4812
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4813
- switch (errorCode) {
4814
- case "AccessDeniedException":
4815
- case "com.amazonaws.macie2#AccessDeniedException":
4816
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4817
- case "InternalServerException":
4818
- case "com.amazonaws.macie2#InternalServerException":
4819
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4820
- case "ResourceNotFoundException":
4821
- case "com.amazonaws.macie2#ResourceNotFoundException":
4822
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4823
- case "ServiceQuotaExceededException":
4824
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
4825
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4826
- case "ThrottlingException":
4827
- case "com.amazonaws.macie2#ThrottlingException":
4828
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4829
- case "ValidationException":
4830
- case "com.amazonaws.macie2#ValidationException":
4831
- throw await de_ValidationExceptionRes(parsedOutput, context);
4832
- default:
4833
- const parsedBody = parsedOutput.body;
4834
- return throwDefaultError({
4835
- output,
4836
- parsedBody,
4837
- errorCode
4838
- });
4839
- }
4840
- }, "de_ListResourceProfileDetectionsCommandError");
4841
2766
  var de_ListSensitivityInspectionTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
4842
2767
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4843
- return de_ListSensitivityInspectionTemplatesCommandError(output, context);
2768
+ return de_CommandError(output, context);
4844
2769
  }
4845
2770
  const contents = (0, import_smithy_client.map)({
4846
2771
  $metadata: deserializeMetadata(output)
@@ -4857,40 +2782,9 @@ var de_ListSensitivityInspectionTemplatesCommand = /* @__PURE__ */ __name(async
4857
2782
  Object.assign(contents, doc);
4858
2783
  return contents;
4859
2784
  }, "de_ListSensitivityInspectionTemplatesCommand");
4860
- var de_ListSensitivityInspectionTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
4861
- const parsedOutput = {
4862
- ...output,
4863
- body: await parseErrorBody(output.body, context)
4864
- };
4865
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4866
- switch (errorCode) {
4867
- case "AccessDeniedException":
4868
- case "com.amazonaws.macie2#AccessDeniedException":
4869
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4870
- case "InternalServerException":
4871
- case "com.amazonaws.macie2#InternalServerException":
4872
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4873
- case "ServiceQuotaExceededException":
4874
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
4875
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4876
- case "ThrottlingException":
4877
- case "com.amazonaws.macie2#ThrottlingException":
4878
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4879
- case "ValidationException":
4880
- case "com.amazonaws.macie2#ValidationException":
4881
- throw await de_ValidationExceptionRes(parsedOutput, context);
4882
- default:
4883
- const parsedBody = parsedOutput.body;
4884
- return throwDefaultError({
4885
- output,
4886
- parsedBody,
4887
- errorCode
4888
- });
4889
- }
4890
- }, "de_ListSensitivityInspectionTemplatesCommandError");
4891
2785
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
4892
2786
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4893
- return de_ListTagsForResourceCommandError(output, context);
2787
+ return de_CommandError(output, context);
4894
2788
  }
4895
2789
  const contents = (0, import_smithy_client.map)({
4896
2790
  $metadata: deserializeMetadata(output)
@@ -4902,22 +2796,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
4902
2796
  Object.assign(contents, doc);
4903
2797
  return contents;
4904
2798
  }, "de_ListTagsForResourceCommand");
4905
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
4906
- const parsedOutput = {
4907
- ...output,
4908
- body: await parseErrorBody(output.body, context)
4909
- };
4910
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4911
- const parsedBody = parsedOutput.body;
4912
- return throwDefaultError({
4913
- output,
4914
- parsedBody,
4915
- errorCode
4916
- });
4917
- }, "de_ListTagsForResourceCommandError");
4918
2799
  var de_PutClassificationExportConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
4919
2800
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4920
- return de_PutClassificationExportConfigurationCommandError(output, context);
2801
+ return de_CommandError(output, context);
4921
2802
  }
4922
2803
  const contents = (0, import_smithy_client.map)({
4923
2804
  $metadata: deserializeMetadata(output)
@@ -4926,49 +2807,12 @@ var de_PutClassificationExportConfigurationCommand = /* @__PURE__ */ __name(asyn
4926
2807
  const doc = (0, import_smithy_client.take)(data, {
4927
2808
  configuration: [, (_) => de_ClassificationExportConfiguration(_, context), `configuration`]
4928
2809
  });
4929
- Object.assign(contents, doc);
4930
- return contents;
4931
- }, "de_PutClassificationExportConfigurationCommand");
4932
- var de_PutClassificationExportConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
4933
- const parsedOutput = {
4934
- ...output,
4935
- body: await parseErrorBody(output.body, context)
4936
- };
4937
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4938
- switch (errorCode) {
4939
- case "AccessDeniedException":
4940
- case "com.amazonaws.macie2#AccessDeniedException":
4941
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4942
- case "ConflictException":
4943
- case "com.amazonaws.macie2#ConflictException":
4944
- throw await de_ConflictExceptionRes(parsedOutput, context);
4945
- case "InternalServerException":
4946
- case "com.amazonaws.macie2#InternalServerException":
4947
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4948
- case "ResourceNotFoundException":
4949
- case "com.amazonaws.macie2#ResourceNotFoundException":
4950
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4951
- case "ServiceQuotaExceededException":
4952
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
4953
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
4954
- case "ThrottlingException":
4955
- case "com.amazonaws.macie2#ThrottlingException":
4956
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
4957
- case "ValidationException":
4958
- case "com.amazonaws.macie2#ValidationException":
4959
- throw await de_ValidationExceptionRes(parsedOutput, context);
4960
- default:
4961
- const parsedBody = parsedOutput.body;
4962
- return throwDefaultError({
4963
- output,
4964
- parsedBody,
4965
- errorCode
4966
- });
4967
- }
4968
- }, "de_PutClassificationExportConfigurationCommandError");
2810
+ Object.assign(contents, doc);
2811
+ return contents;
2812
+ }, "de_PutClassificationExportConfigurationCommand");
4969
2813
  var de_PutFindingsPublicationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
4970
2814
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4971
- return de_PutFindingsPublicationConfigurationCommandError(output, context);
2815
+ return de_CommandError(output, context);
4972
2816
  }
4973
2817
  const contents = (0, import_smithy_client.map)({
4974
2818
  $metadata: deserializeMetadata(output)
@@ -4976,46 +2820,9 @@ var de_PutFindingsPublicationConfigurationCommand = /* @__PURE__ */ __name(async
4976
2820
  await (0, import_smithy_client.collectBody)(output.body, context);
4977
2821
  return contents;
4978
2822
  }, "de_PutFindingsPublicationConfigurationCommand");
4979
- var de_PutFindingsPublicationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
4980
- const parsedOutput = {
4981
- ...output,
4982
- body: await parseErrorBody(output.body, context)
4983
- };
4984
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4985
- switch (errorCode) {
4986
- case "AccessDeniedException":
4987
- case "com.amazonaws.macie2#AccessDeniedException":
4988
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4989
- case "ConflictException":
4990
- case "com.amazonaws.macie2#ConflictException":
4991
- throw await de_ConflictExceptionRes(parsedOutput, context);
4992
- case "InternalServerException":
4993
- case "com.amazonaws.macie2#InternalServerException":
4994
- throw await de_InternalServerExceptionRes(parsedOutput, context);
4995
- case "ResourceNotFoundException":
4996
- case "com.amazonaws.macie2#ResourceNotFoundException":
4997
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4998
- case "ServiceQuotaExceededException":
4999
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
5000
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5001
- case "ThrottlingException":
5002
- case "com.amazonaws.macie2#ThrottlingException":
5003
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5004
- case "ValidationException":
5005
- case "com.amazonaws.macie2#ValidationException":
5006
- throw await de_ValidationExceptionRes(parsedOutput, context);
5007
- default:
5008
- const parsedBody = parsedOutput.body;
5009
- return throwDefaultError({
5010
- output,
5011
- parsedBody,
5012
- errorCode
5013
- });
5014
- }
5015
- }, "de_PutFindingsPublicationConfigurationCommandError");
5016
2823
  var de_SearchResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
5017
2824
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5018
- return de_SearchResourcesCommandError(output, context);
2825
+ return de_CommandError(output, context);
5019
2826
  }
5020
2827
  const contents = (0, import_smithy_client.map)({
5021
2828
  $metadata: deserializeMetadata(output)
@@ -5028,46 +2835,9 @@ var de_SearchResourcesCommand = /* @__PURE__ */ __name(async (output, context) =
5028
2835
  Object.assign(contents, doc);
5029
2836
  return contents;
5030
2837
  }, "de_SearchResourcesCommand");
5031
- var de_SearchResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
5032
- const parsedOutput = {
5033
- ...output,
5034
- body: await parseErrorBody(output.body, context)
5035
- };
5036
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5037
- switch (errorCode) {
5038
- case "AccessDeniedException":
5039
- case "com.amazonaws.macie2#AccessDeniedException":
5040
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5041
- case "ConflictException":
5042
- case "com.amazonaws.macie2#ConflictException":
5043
- throw await de_ConflictExceptionRes(parsedOutput, context);
5044
- case "InternalServerException":
5045
- case "com.amazonaws.macie2#InternalServerException":
5046
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5047
- case "ResourceNotFoundException":
5048
- case "com.amazonaws.macie2#ResourceNotFoundException":
5049
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5050
- case "ServiceQuotaExceededException":
5051
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
5052
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5053
- case "ThrottlingException":
5054
- case "com.amazonaws.macie2#ThrottlingException":
5055
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5056
- case "ValidationException":
5057
- case "com.amazonaws.macie2#ValidationException":
5058
- throw await de_ValidationExceptionRes(parsedOutput, context);
5059
- default:
5060
- const parsedBody = parsedOutput.body;
5061
- return throwDefaultError({
5062
- output,
5063
- parsedBody,
5064
- errorCode
5065
- });
5066
- }
5067
- }, "de_SearchResourcesCommandError");
5068
2838
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
5069
2839
  if (output.statusCode !== 204 && output.statusCode >= 300) {
5070
- return de_TagResourceCommandError(output, context);
2840
+ return de_CommandError(output, context);
5071
2841
  }
5072
2842
  const contents = (0, import_smithy_client.map)({
5073
2843
  $metadata: deserializeMetadata(output)
@@ -5075,22 +2845,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
5075
2845
  await (0, import_smithy_client.collectBody)(output.body, context);
5076
2846
  return contents;
5077
2847
  }, "de_TagResourceCommand");
5078
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
5079
- const parsedOutput = {
5080
- ...output,
5081
- body: await parseErrorBody(output.body, context)
5082
- };
5083
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5084
- const parsedBody = parsedOutput.body;
5085
- return throwDefaultError({
5086
- output,
5087
- parsedBody,
5088
- errorCode
5089
- });
5090
- }, "de_TagResourceCommandError");
5091
2848
  var de_TestCustomDataIdentifierCommand = /* @__PURE__ */ __name(async (output, context) => {
5092
2849
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5093
- return de_TestCustomDataIdentifierCommandError(output, context);
2850
+ return de_CommandError(output, context);
5094
2851
  }
5095
2852
  const contents = (0, import_smithy_client.map)({
5096
2853
  $metadata: deserializeMetadata(output)
@@ -5102,46 +2859,9 @@ var de_TestCustomDataIdentifierCommand = /* @__PURE__ */ __name(async (output, c
5102
2859
  Object.assign(contents, doc);
5103
2860
  return contents;
5104
2861
  }, "de_TestCustomDataIdentifierCommand");
5105
- var de_TestCustomDataIdentifierCommandError = /* @__PURE__ */ __name(async (output, context) => {
5106
- const parsedOutput = {
5107
- ...output,
5108
- body: await parseErrorBody(output.body, context)
5109
- };
5110
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5111
- switch (errorCode) {
5112
- case "AccessDeniedException":
5113
- case "com.amazonaws.macie2#AccessDeniedException":
5114
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5115
- case "ConflictException":
5116
- case "com.amazonaws.macie2#ConflictException":
5117
- throw await de_ConflictExceptionRes(parsedOutput, context);
5118
- case "InternalServerException":
5119
- case "com.amazonaws.macie2#InternalServerException":
5120
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5121
- case "ResourceNotFoundException":
5122
- case "com.amazonaws.macie2#ResourceNotFoundException":
5123
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5124
- case "ServiceQuotaExceededException":
5125
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
5126
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5127
- case "ThrottlingException":
5128
- case "com.amazonaws.macie2#ThrottlingException":
5129
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5130
- case "ValidationException":
5131
- case "com.amazonaws.macie2#ValidationException":
5132
- throw await de_ValidationExceptionRes(parsedOutput, context);
5133
- default:
5134
- const parsedBody = parsedOutput.body;
5135
- return throwDefaultError({
5136
- output,
5137
- parsedBody,
5138
- errorCode
5139
- });
5140
- }
5141
- }, "de_TestCustomDataIdentifierCommandError");
5142
2862
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
5143
2863
  if (output.statusCode !== 204 && output.statusCode >= 300) {
5144
- return de_UntagResourceCommandError(output, context);
2864
+ return de_CommandError(output, context);
5145
2865
  }
5146
2866
  const contents = (0, import_smithy_client.map)({
5147
2867
  $metadata: deserializeMetadata(output)
@@ -5149,22 +2869,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
5149
2869
  await (0, import_smithy_client.collectBody)(output.body, context);
5150
2870
  return contents;
5151
2871
  }, "de_UntagResourceCommand");
5152
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
5153
- const parsedOutput = {
5154
- ...output,
5155
- body: await parseErrorBody(output.body, context)
5156
- };
5157
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5158
- const parsedBody = parsedOutput.body;
5159
- return throwDefaultError({
5160
- output,
5161
- parsedBody,
5162
- errorCode
5163
- });
5164
- }, "de_UntagResourceCommandError");
5165
2872
  var de_UpdateAllowListCommand = /* @__PURE__ */ __name(async (output, context) => {
5166
2873
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5167
- return de_UpdateAllowListCommandError(output, context);
2874
+ return de_CommandError(output, context);
5168
2875
  }
5169
2876
  const contents = (0, import_smithy_client.map)({
5170
2877
  $metadata: deserializeMetadata(output)
@@ -5177,40 +2884,9 @@ var de_UpdateAllowListCommand = /* @__PURE__ */ __name(async (output, context) =
5177
2884
  Object.assign(contents, doc);
5178
2885
  return contents;
5179
2886
  }, "de_UpdateAllowListCommand");
5180
- var de_UpdateAllowListCommandError = /* @__PURE__ */ __name(async (output, context) => {
5181
- const parsedOutput = {
5182
- ...output,
5183
- body: await parseErrorBody(output.body, context)
5184
- };
5185
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5186
- switch (errorCode) {
5187
- case "AccessDeniedException":
5188
- case "com.amazonaws.macie2#AccessDeniedException":
5189
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5190
- case "InternalServerException":
5191
- case "com.amazonaws.macie2#InternalServerException":
5192
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5193
- case "ResourceNotFoundException":
5194
- case "com.amazonaws.macie2#ResourceNotFoundException":
5195
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5196
- case "ThrottlingException":
5197
- case "com.amazonaws.macie2#ThrottlingException":
5198
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5199
- case "ValidationException":
5200
- case "com.amazonaws.macie2#ValidationException":
5201
- throw await de_ValidationExceptionRes(parsedOutput, context);
5202
- default:
5203
- const parsedBody = parsedOutput.body;
5204
- return throwDefaultError({
5205
- output,
5206
- parsedBody,
5207
- errorCode
5208
- });
5209
- }
5210
- }, "de_UpdateAllowListCommandError");
5211
2887
  var de_UpdateAutomatedDiscoveryConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
5212
2888
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5213
- return de_UpdateAutomatedDiscoveryConfigurationCommandError(output, context);
2889
+ return de_CommandError(output, context);
5214
2890
  }
5215
2891
  const contents = (0, import_smithy_client.map)({
5216
2892
  $metadata: deserializeMetadata(output)
@@ -5218,125 +2894,29 @@ var de_UpdateAutomatedDiscoveryConfigurationCommand = /* @__PURE__ */ __name(asy
5218
2894
  await (0, import_smithy_client.collectBody)(output.body, context);
5219
2895
  return contents;
5220
2896
  }, "de_UpdateAutomatedDiscoveryConfigurationCommand");
5221
- var de_UpdateAutomatedDiscoveryConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
5222
- const parsedOutput = {
5223
- ...output,
5224
- body: await parseErrorBody(output.body, context)
5225
- };
5226
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5227
- switch (errorCode) {
5228
- case "AccessDeniedException":
5229
- case "com.amazonaws.macie2#AccessDeniedException":
5230
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5231
- case "InternalServerException":
5232
- case "com.amazonaws.macie2#InternalServerException":
5233
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5234
- case "ThrottlingException":
5235
- case "com.amazonaws.macie2#ThrottlingException":
5236
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5237
- case "ValidationException":
5238
- case "com.amazonaws.macie2#ValidationException":
5239
- throw await de_ValidationExceptionRes(parsedOutput, context);
5240
- default:
5241
- const parsedBody = parsedOutput.body;
5242
- return throwDefaultError({
5243
- output,
5244
- parsedBody,
5245
- errorCode
5246
- });
5247
- }
5248
- }, "de_UpdateAutomatedDiscoveryConfigurationCommandError");
5249
- var de_UpdateClassificationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
5250
- if (output.statusCode !== 200 && output.statusCode >= 300) {
5251
- return de_UpdateClassificationJobCommandError(output, context);
5252
- }
5253
- const contents = (0, import_smithy_client.map)({
5254
- $metadata: deserializeMetadata(output)
5255
- });
5256
- await (0, import_smithy_client.collectBody)(output.body, context);
5257
- return contents;
5258
- }, "de_UpdateClassificationJobCommand");
5259
- var de_UpdateClassificationJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
5260
- const parsedOutput = {
5261
- ...output,
5262
- body: await parseErrorBody(output.body, context)
5263
- };
5264
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5265
- switch (errorCode) {
5266
- case "AccessDeniedException":
5267
- case "com.amazonaws.macie2#AccessDeniedException":
5268
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5269
- case "ConflictException":
5270
- case "com.amazonaws.macie2#ConflictException":
5271
- throw await de_ConflictExceptionRes(parsedOutput, context);
5272
- case "InternalServerException":
5273
- case "com.amazonaws.macie2#InternalServerException":
5274
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5275
- case "ResourceNotFoundException":
5276
- case "com.amazonaws.macie2#ResourceNotFoundException":
5277
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5278
- case "ServiceQuotaExceededException":
5279
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
5280
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5281
- case "ThrottlingException":
5282
- case "com.amazonaws.macie2#ThrottlingException":
5283
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5284
- case "ValidationException":
5285
- case "com.amazonaws.macie2#ValidationException":
5286
- throw await de_ValidationExceptionRes(parsedOutput, context);
5287
- default:
5288
- const parsedBody = parsedOutput.body;
5289
- return throwDefaultError({
5290
- output,
5291
- parsedBody,
5292
- errorCode
5293
- });
5294
- }
5295
- }, "de_UpdateClassificationJobCommandError");
5296
- var de_UpdateClassificationScopeCommand = /* @__PURE__ */ __name(async (output, context) => {
5297
- if (output.statusCode !== 200 && output.statusCode >= 300) {
5298
- return de_UpdateClassificationScopeCommandError(output, context);
5299
- }
5300
- const contents = (0, import_smithy_client.map)({
5301
- $metadata: deserializeMetadata(output)
5302
- });
5303
- await (0, import_smithy_client.collectBody)(output.body, context);
5304
- return contents;
5305
- }, "de_UpdateClassificationScopeCommand");
5306
- var de_UpdateClassificationScopeCommandError = /* @__PURE__ */ __name(async (output, context) => {
5307
- const parsedOutput = {
5308
- ...output,
5309
- body: await parseErrorBody(output.body, context)
5310
- };
5311
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5312
- switch (errorCode) {
5313
- case "AccessDeniedException":
5314
- case "com.amazonaws.macie2#AccessDeniedException":
5315
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5316
- case "InternalServerException":
5317
- case "com.amazonaws.macie2#InternalServerException":
5318
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5319
- case "ResourceNotFoundException":
5320
- case "com.amazonaws.macie2#ResourceNotFoundException":
5321
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5322
- case "ThrottlingException":
5323
- case "com.amazonaws.macie2#ThrottlingException":
5324
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5325
- case "ValidationException":
5326
- case "com.amazonaws.macie2#ValidationException":
5327
- throw await de_ValidationExceptionRes(parsedOutput, context);
5328
- default:
5329
- const parsedBody = parsedOutput.body;
5330
- return throwDefaultError({
5331
- output,
5332
- parsedBody,
5333
- errorCode
5334
- });
2897
+ var de_UpdateClassificationJobCommand = /* @__PURE__ */ __name(async (output, context) => {
2898
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2899
+ return de_CommandError(output, context);
2900
+ }
2901
+ const contents = (0, import_smithy_client.map)({
2902
+ $metadata: deserializeMetadata(output)
2903
+ });
2904
+ await (0, import_smithy_client.collectBody)(output.body, context);
2905
+ return contents;
2906
+ }, "de_UpdateClassificationJobCommand");
2907
+ var de_UpdateClassificationScopeCommand = /* @__PURE__ */ __name(async (output, context) => {
2908
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2909
+ return de_CommandError(output, context);
5335
2910
  }
5336
- }, "de_UpdateClassificationScopeCommandError");
2911
+ const contents = (0, import_smithy_client.map)({
2912
+ $metadata: deserializeMetadata(output)
2913
+ });
2914
+ await (0, import_smithy_client.collectBody)(output.body, context);
2915
+ return contents;
2916
+ }, "de_UpdateClassificationScopeCommand");
5337
2917
  var de_UpdateFindingsFilterCommand = /* @__PURE__ */ __name(async (output, context) => {
5338
2918
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5339
- return de_UpdateFindingsFilterCommandError(output, context);
2919
+ return de_CommandError(output, context);
5340
2920
  }
5341
2921
  const contents = (0, import_smithy_client.map)({
5342
2922
  $metadata: deserializeMetadata(output)
@@ -5349,46 +2929,9 @@ var de_UpdateFindingsFilterCommand = /* @__PURE__ */ __name(async (output, conte
5349
2929
  Object.assign(contents, doc);
5350
2930
  return contents;
5351
2931
  }, "de_UpdateFindingsFilterCommand");
5352
- var de_UpdateFindingsFilterCommandError = /* @__PURE__ */ __name(async (output, context) => {
5353
- const parsedOutput = {
5354
- ...output,
5355
- body: await parseErrorBody(output.body, context)
5356
- };
5357
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5358
- switch (errorCode) {
5359
- case "AccessDeniedException":
5360
- case "com.amazonaws.macie2#AccessDeniedException":
5361
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5362
- case "ConflictException":
5363
- case "com.amazonaws.macie2#ConflictException":
5364
- throw await de_ConflictExceptionRes(parsedOutput, context);
5365
- case "InternalServerException":
5366
- case "com.amazonaws.macie2#InternalServerException":
5367
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5368
- case "ResourceNotFoundException":
5369
- case "com.amazonaws.macie2#ResourceNotFoundException":
5370
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5371
- case "ServiceQuotaExceededException":
5372
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
5373
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5374
- case "ThrottlingException":
5375
- case "com.amazonaws.macie2#ThrottlingException":
5376
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5377
- case "ValidationException":
5378
- case "com.amazonaws.macie2#ValidationException":
5379
- throw await de_ValidationExceptionRes(parsedOutput, context);
5380
- default:
5381
- const parsedBody = parsedOutput.body;
5382
- return throwDefaultError({
5383
- output,
5384
- parsedBody,
5385
- errorCode
5386
- });
5387
- }
5388
- }, "de_UpdateFindingsFilterCommandError");
5389
2932
  var de_UpdateMacieSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
5390
2933
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5391
- return de_UpdateMacieSessionCommandError(output, context);
2934
+ return de_CommandError(output, context);
5392
2935
  }
5393
2936
  const contents = (0, import_smithy_client.map)({
5394
2937
  $metadata: deserializeMetadata(output)
@@ -5396,46 +2939,9 @@ var de_UpdateMacieSessionCommand = /* @__PURE__ */ __name(async (output, context
5396
2939
  await (0, import_smithy_client.collectBody)(output.body, context);
5397
2940
  return contents;
5398
2941
  }, "de_UpdateMacieSessionCommand");
5399
- var de_UpdateMacieSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
5400
- const parsedOutput = {
5401
- ...output,
5402
- body: await parseErrorBody(output.body, context)
5403
- };
5404
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5405
- switch (errorCode) {
5406
- case "AccessDeniedException":
5407
- case "com.amazonaws.macie2#AccessDeniedException":
5408
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5409
- case "ConflictException":
5410
- case "com.amazonaws.macie2#ConflictException":
5411
- throw await de_ConflictExceptionRes(parsedOutput, context);
5412
- case "InternalServerException":
5413
- case "com.amazonaws.macie2#InternalServerException":
5414
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5415
- case "ResourceNotFoundException":
5416
- case "com.amazonaws.macie2#ResourceNotFoundException":
5417
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5418
- case "ServiceQuotaExceededException":
5419
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
5420
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5421
- case "ThrottlingException":
5422
- case "com.amazonaws.macie2#ThrottlingException":
5423
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5424
- case "ValidationException":
5425
- case "com.amazonaws.macie2#ValidationException":
5426
- throw await de_ValidationExceptionRes(parsedOutput, context);
5427
- default:
5428
- const parsedBody = parsedOutput.body;
5429
- return throwDefaultError({
5430
- output,
5431
- parsedBody,
5432
- errorCode
5433
- });
5434
- }
5435
- }, "de_UpdateMacieSessionCommandError");
5436
2942
  var de_UpdateMemberSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
5437
2943
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5438
- return de_UpdateMemberSessionCommandError(output, context);
2944
+ return de_CommandError(output, context);
5439
2945
  }
5440
2946
  const contents = (0, import_smithy_client.map)({
5441
2947
  $metadata: deserializeMetadata(output)
@@ -5443,46 +2949,9 @@ var de_UpdateMemberSessionCommand = /* @__PURE__ */ __name(async (output, contex
5443
2949
  await (0, import_smithy_client.collectBody)(output.body, context);
5444
2950
  return contents;
5445
2951
  }, "de_UpdateMemberSessionCommand");
5446
- var de_UpdateMemberSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
5447
- const parsedOutput = {
5448
- ...output,
5449
- body: await parseErrorBody(output.body, context)
5450
- };
5451
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5452
- switch (errorCode) {
5453
- case "AccessDeniedException":
5454
- case "com.amazonaws.macie2#AccessDeniedException":
5455
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5456
- case "ConflictException":
5457
- case "com.amazonaws.macie2#ConflictException":
5458
- throw await de_ConflictExceptionRes(parsedOutput, context);
5459
- case "InternalServerException":
5460
- case "com.amazonaws.macie2#InternalServerException":
5461
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5462
- case "ResourceNotFoundException":
5463
- case "com.amazonaws.macie2#ResourceNotFoundException":
5464
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5465
- case "ServiceQuotaExceededException":
5466
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
5467
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5468
- case "ThrottlingException":
5469
- case "com.amazonaws.macie2#ThrottlingException":
5470
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5471
- case "ValidationException":
5472
- case "com.amazonaws.macie2#ValidationException":
5473
- throw await de_ValidationExceptionRes(parsedOutput, context);
5474
- default:
5475
- const parsedBody = parsedOutput.body;
5476
- return throwDefaultError({
5477
- output,
5478
- parsedBody,
5479
- errorCode
5480
- });
5481
- }
5482
- }, "de_UpdateMemberSessionCommandError");
5483
2952
  var de_UpdateOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
5484
2953
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5485
- return de_UpdateOrganizationConfigurationCommandError(output, context);
2954
+ return de_CommandError(output, context);
5486
2955
  }
5487
2956
  const contents = (0, import_smithy_client.map)({
5488
2957
  $metadata: deserializeMetadata(output)
@@ -5490,46 +2959,9 @@ var de_UpdateOrganizationConfigurationCommand = /* @__PURE__ */ __name(async (ou
5490
2959
  await (0, import_smithy_client.collectBody)(output.body, context);
5491
2960
  return contents;
5492
2961
  }, "de_UpdateOrganizationConfigurationCommand");
5493
- var de_UpdateOrganizationConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
5494
- const parsedOutput = {
5495
- ...output,
5496
- body: await parseErrorBody(output.body, context)
5497
- };
5498
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5499
- switch (errorCode) {
5500
- case "AccessDeniedException":
5501
- case "com.amazonaws.macie2#AccessDeniedException":
5502
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5503
- case "ConflictException":
5504
- case "com.amazonaws.macie2#ConflictException":
5505
- throw await de_ConflictExceptionRes(parsedOutput, context);
5506
- case "InternalServerException":
5507
- case "com.amazonaws.macie2#InternalServerException":
5508
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5509
- case "ResourceNotFoundException":
5510
- case "com.amazonaws.macie2#ResourceNotFoundException":
5511
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5512
- case "ServiceQuotaExceededException":
5513
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
5514
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5515
- case "ThrottlingException":
5516
- case "com.amazonaws.macie2#ThrottlingException":
5517
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5518
- case "ValidationException":
5519
- case "com.amazonaws.macie2#ValidationException":
5520
- throw await de_ValidationExceptionRes(parsedOutput, context);
5521
- default:
5522
- const parsedBody = parsedOutput.body;
5523
- return throwDefaultError({
5524
- output,
5525
- parsedBody,
5526
- errorCode
5527
- });
5528
- }
5529
- }, "de_UpdateOrganizationConfigurationCommandError");
5530
2962
  var de_UpdateResourceProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
5531
2963
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5532
- return de_UpdateResourceProfileCommandError(output, context);
2964
+ return de_CommandError(output, context);
5533
2965
  }
5534
2966
  const contents = (0, import_smithy_client.map)({
5535
2967
  $metadata: deserializeMetadata(output)
@@ -5537,43 +2969,9 @@ var de_UpdateResourceProfileCommand = /* @__PURE__ */ __name(async (output, cont
5537
2969
  await (0, import_smithy_client.collectBody)(output.body, context);
5538
2970
  return contents;
5539
2971
  }, "de_UpdateResourceProfileCommand");
5540
- var de_UpdateResourceProfileCommandError = /* @__PURE__ */ __name(async (output, context) => {
5541
- const parsedOutput = {
5542
- ...output,
5543
- body: await parseErrorBody(output.body, context)
5544
- };
5545
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5546
- switch (errorCode) {
5547
- case "AccessDeniedException":
5548
- case "com.amazonaws.macie2#AccessDeniedException":
5549
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5550
- case "InternalServerException":
5551
- case "com.amazonaws.macie2#InternalServerException":
5552
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5553
- case "ResourceNotFoundException":
5554
- case "com.amazonaws.macie2#ResourceNotFoundException":
5555
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5556
- case "ServiceQuotaExceededException":
5557
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
5558
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5559
- case "ThrottlingException":
5560
- case "com.amazonaws.macie2#ThrottlingException":
5561
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5562
- case "ValidationException":
5563
- case "com.amazonaws.macie2#ValidationException":
5564
- throw await de_ValidationExceptionRes(parsedOutput, context);
5565
- default:
5566
- const parsedBody = parsedOutput.body;
5567
- return throwDefaultError({
5568
- output,
5569
- parsedBody,
5570
- errorCode
5571
- });
5572
- }
5573
- }, "de_UpdateResourceProfileCommandError");
5574
2972
  var de_UpdateResourceProfileDetectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
5575
2973
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5576
- return de_UpdateResourceProfileDetectionsCommandError(output, context);
2974
+ return de_CommandError(output, context);
5577
2975
  }
5578
2976
  const contents = (0, import_smithy_client.map)({
5579
2977
  $metadata: deserializeMetadata(output)
@@ -5581,43 +2979,9 @@ var de_UpdateResourceProfileDetectionsCommand = /* @__PURE__ */ __name(async (ou
5581
2979
  await (0, import_smithy_client.collectBody)(output.body, context);
5582
2980
  return contents;
5583
2981
  }, "de_UpdateResourceProfileDetectionsCommand");
5584
- var de_UpdateResourceProfileDetectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
5585
- const parsedOutput = {
5586
- ...output,
5587
- body: await parseErrorBody(output.body, context)
5588
- };
5589
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5590
- switch (errorCode) {
5591
- case "AccessDeniedException":
5592
- case "com.amazonaws.macie2#AccessDeniedException":
5593
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5594
- case "InternalServerException":
5595
- case "com.amazonaws.macie2#InternalServerException":
5596
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5597
- case "ResourceNotFoundException":
5598
- case "com.amazonaws.macie2#ResourceNotFoundException":
5599
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5600
- case "ServiceQuotaExceededException":
5601
- case "com.amazonaws.macie2#ServiceQuotaExceededException":
5602
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5603
- case "ThrottlingException":
5604
- case "com.amazonaws.macie2#ThrottlingException":
5605
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5606
- case "ValidationException":
5607
- case "com.amazonaws.macie2#ValidationException":
5608
- throw await de_ValidationExceptionRes(parsedOutput, context);
5609
- default:
5610
- const parsedBody = parsedOutput.body;
5611
- return throwDefaultError({
5612
- output,
5613
- parsedBody,
5614
- errorCode
5615
- });
5616
- }
5617
- }, "de_UpdateResourceProfileDetectionsCommandError");
5618
2982
  var de_UpdateRevealConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
5619
2983
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5620
- return de_UpdateRevealConfigurationCommandError(output, context);
2984
+ return de_CommandError(output, context);
5621
2985
  }
5622
2986
  const contents = (0, import_smithy_client.map)({
5623
2987
  $metadata: deserializeMetadata(output)
@@ -5630,37 +2994,9 @@ var de_UpdateRevealConfigurationCommand = /* @__PURE__ */ __name(async (output,
5630
2994
  Object.assign(contents, doc);
5631
2995
  return contents;
5632
2996
  }, "de_UpdateRevealConfigurationCommand");
5633
- var de_UpdateRevealConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
5634
- const parsedOutput = {
5635
- ...output,
5636
- body: await parseErrorBody(output.body, context)
5637
- };
5638
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5639
- switch (errorCode) {
5640
- case "AccessDeniedException":
5641
- case "com.amazonaws.macie2#AccessDeniedException":
5642
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5643
- case "InternalServerException":
5644
- case "com.amazonaws.macie2#InternalServerException":
5645
- throw await de_InternalServerExceptionRes(parsedOutput, context);
5646
- case "ThrottlingException":
5647
- case "com.amazonaws.macie2#ThrottlingException":
5648
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
5649
- case "ValidationException":
5650
- case "com.amazonaws.macie2#ValidationException":
5651
- throw await de_ValidationExceptionRes(parsedOutput, context);
5652
- default:
5653
- const parsedBody = parsedOutput.body;
5654
- return throwDefaultError({
5655
- output,
5656
- parsedBody,
5657
- errorCode
5658
- });
5659
- }
5660
- }, "de_UpdateRevealConfigurationCommandError");
5661
2997
  var de_UpdateSensitivityInspectionTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
5662
2998
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5663
- return de_UpdateSensitivityInspectionTemplateCommandError(output, context);
2999
+ return de_CommandError(output, context);
5664
3000
  }
5665
3001
  const contents = (0, import_smithy_client.map)({
5666
3002
  $metadata: deserializeMetadata(output)
@@ -5668,7 +3004,7 @@ var de_UpdateSensitivityInspectionTemplateCommand = /* @__PURE__ */ __name(async
5668
3004
  await (0, import_smithy_client.collectBody)(output.body, context);
5669
3005
  return contents;
5670
3006
  }, "de_UpdateSensitivityInspectionTemplateCommand");
5671
- var de_UpdateSensitivityInspectionTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
3007
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
5672
3008
  const parsedOutput = {
5673
3009
  ...output,
5674
3010
  body: await parseErrorBody(output.body, context)
@@ -5678,18 +3014,27 @@ var de_UpdateSensitivityInspectionTemplateCommandError = /* @__PURE__ */ __name(
5678
3014
  case "AccessDeniedException":
5679
3015
  case "com.amazonaws.macie2#AccessDeniedException":
5680
3016
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3017
+ case "ConflictException":
3018
+ case "com.amazonaws.macie2#ConflictException":
3019
+ throw await de_ConflictExceptionRes(parsedOutput, context);
5681
3020
  case "InternalServerException":
5682
3021
  case "com.amazonaws.macie2#InternalServerException":
5683
3022
  throw await de_InternalServerExceptionRes(parsedOutput, context);
5684
3023
  case "ResourceNotFoundException":
5685
3024
  case "com.amazonaws.macie2#ResourceNotFoundException":
5686
3025
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3026
+ case "ServiceQuotaExceededException":
3027
+ case "com.amazonaws.macie2#ServiceQuotaExceededException":
3028
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
5687
3029
  case "ThrottlingException":
5688
3030
  case "com.amazonaws.macie2#ThrottlingException":
5689
3031
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
5690
3032
  case "ValidationException":
5691
3033
  case "com.amazonaws.macie2#ValidationException":
5692
3034
  throw await de_ValidationExceptionRes(parsedOutput, context);
3035
+ case "UnprocessableEntityException":
3036
+ case "com.amazonaws.macie2#UnprocessableEntityException":
3037
+ throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);
5693
3038
  default:
5694
3039
  const parsedBody = parsedOutput.body;
5695
3040
  return throwDefaultError({
@@ -5698,7 +3043,7 @@ var de_UpdateSensitivityInspectionTemplateCommandError = /* @__PURE__ */ __name(
5698
3043
  errorCode
5699
3044
  });
5700
3045
  }
5701
- }, "de_UpdateSensitivityInspectionTemplateCommandError");
3046
+ }, "de_CommandError");
5702
3047
  var throwDefaultError = (0, import_smithy_client.withBaseException)(Macie2ServiceException);
5703
3048
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
5704
3049
  const contents = (0, import_smithy_client.map)({});