aws_sdk_forecast/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>We can't process the request because it includes an invalid value or a value that exceeds the valid range.</p>
7    InvalidInputException(crate::types::error::InvalidInputException),
8    /// <p>The token is not valid. Tokens expire after 24 hours.</p>
9    InvalidNextTokenException(crate::types::error::InvalidNextTokenException),
10    /// <p>The limit on the number of resources per account has been exceeded.</p>
11    LimitExceededException(crate::types::error::LimitExceededException),
12    /// <p>There is already a resource with this name. Try again with a different name.</p>
13    ResourceAlreadyExistsException(crate::types::error::ResourceAlreadyExistsException),
14    /// <p>The specified resource is in use.</p>
15    ResourceInUseException(crate::types::error::ResourceInUseException),
16    /// <p>We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.</p>
17    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
18    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
19    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
20    variable wildcard pattern and check `.code()`:
21     \
22    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
23     \
24    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
25    Unhandled(crate::error::sealed_unhandled::Unhandled),
26}
27impl ::std::fmt::Display for Error {
28    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
29        match self {
30            Error::InvalidInputException(inner) => inner.fmt(f),
31            Error::InvalidNextTokenException(inner) => inner.fmt(f),
32            Error::LimitExceededException(inner) => inner.fmt(f),
33            Error::ResourceAlreadyExistsException(inner) => inner.fmt(f),
34            Error::ResourceInUseException(inner) => inner.fmt(f),
35            Error::ResourceNotFoundException(inner) => inner.fmt(f),
36            Error::Unhandled(_) => {
37                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
38                    write!(f, "unhandled error ({code})")
39                } else {
40                    f.write_str("unhandled error")
41                }
42            }
43        }
44    }
45}
46impl From<::aws_smithy_types::error::operation::BuildError> for Error {
47    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
48        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
49            source: value.into(),
50            meta: ::std::default::Default::default(),
51        })
52    }
53}
54impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
55    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
56        match self {
57            Self::InvalidInputException(inner) => inner.meta(),
58            Self::InvalidNextTokenException(inner) => inner.meta(),
59            Self::LimitExceededException(inner) => inner.meta(),
60            Self::ResourceAlreadyExistsException(inner) => inner.meta(),
61            Self::ResourceInUseException(inner) => inner.meta(),
62            Self::ResourceNotFoundException(inner) => inner.meta(),
63            Self::Unhandled(inner) => &inner.meta,
64        }
65    }
66}
67impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_predictor::CreateAutoPredictorError, R>> for Error
68where
69    R: Send + Sync + std::fmt::Debug + 'static,
70{
71    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_predictor::CreateAutoPredictorError, R>) -> Self {
72        match err {
73            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
74            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
75                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
76                source: err.into(),
77            }),
78        }
79    }
80}
81impl From<crate::operation::create_auto_predictor::CreateAutoPredictorError> for Error {
82    fn from(err: crate::operation::create_auto_predictor::CreateAutoPredictorError) -> Self {
83        match err {
84            crate::operation::create_auto_predictor::CreateAutoPredictorError::InvalidInputException(inner) => Error::InvalidInputException(inner),
85            crate::operation::create_auto_predictor::CreateAutoPredictorError::LimitExceededException(inner) => Error::LimitExceededException(inner),
86            crate::operation::create_auto_predictor::CreateAutoPredictorError::ResourceAlreadyExistsException(inner) => {
87                Error::ResourceAlreadyExistsException(inner)
88            }
89            crate::operation::create_auto_predictor::CreateAutoPredictorError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
90            crate::operation::create_auto_predictor::CreateAutoPredictorError::ResourceNotFoundException(inner) => {
91                Error::ResourceNotFoundException(inner)
92            }
93            crate::operation::create_auto_predictor::CreateAutoPredictorError::Unhandled(inner) => Error::Unhandled(inner),
94        }
95    }
96}
97impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset::CreateDatasetError, R>> for Error
98where
99    R: Send + Sync + std::fmt::Debug + 'static,
100{
101    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset::CreateDatasetError, R>) -> Self {
102        match err {
103            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
104            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
105                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
106                source: err.into(),
107            }),
108        }
109    }
110}
111impl From<crate::operation::create_dataset::CreateDatasetError> for Error {
112    fn from(err: crate::operation::create_dataset::CreateDatasetError) -> Self {
113        match err {
114            crate::operation::create_dataset::CreateDatasetError::InvalidInputException(inner) => Error::InvalidInputException(inner),
115            crate::operation::create_dataset::CreateDatasetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
116            crate::operation::create_dataset::CreateDatasetError::ResourceAlreadyExistsException(inner) => {
117                Error::ResourceAlreadyExistsException(inner)
118            }
119            crate::operation::create_dataset::CreateDatasetError::Unhandled(inner) => Error::Unhandled(inner),
120        }
121    }
122}
123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset_group::CreateDatasetGroupError, R>> for Error
124where
125    R: Send + Sync + std::fmt::Debug + 'static,
126{
127    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset_group::CreateDatasetGroupError, R>) -> Self {
128        match err {
129            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
130            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
131                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
132                source: err.into(),
133            }),
134        }
135    }
136}
137impl From<crate::operation::create_dataset_group::CreateDatasetGroupError> for Error {
138    fn from(err: crate::operation::create_dataset_group::CreateDatasetGroupError) -> Self {
139        match err {
140            crate::operation::create_dataset_group::CreateDatasetGroupError::InvalidInputException(inner) => Error::InvalidInputException(inner),
141            crate::operation::create_dataset_group::CreateDatasetGroupError::LimitExceededException(inner) => Error::LimitExceededException(inner),
142            crate::operation::create_dataset_group::CreateDatasetGroupError::ResourceAlreadyExistsException(inner) => {
143                Error::ResourceAlreadyExistsException(inner)
144            }
145            crate::operation::create_dataset_group::CreateDatasetGroupError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
146            crate::operation::create_dataset_group::CreateDatasetGroupError::ResourceNotFoundException(inner) => {
147                Error::ResourceNotFoundException(inner)
148            }
149            crate::operation::create_dataset_group::CreateDatasetGroupError::Unhandled(inner) => Error::Unhandled(inner),
150        }
151    }
152}
153impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset_import_job::CreateDatasetImportJobError, R>>
154    for Error
155where
156    R: Send + Sync + std::fmt::Debug + 'static,
157{
158    fn from(
159        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset_import_job::CreateDatasetImportJobError, R>,
160    ) -> Self {
161        match err {
162            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
163            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
164                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
165                source: err.into(),
166            }),
167        }
168    }
169}
170impl From<crate::operation::create_dataset_import_job::CreateDatasetImportJobError> for Error {
171    fn from(err: crate::operation::create_dataset_import_job::CreateDatasetImportJobError) -> Self {
172        match err {
173            crate::operation::create_dataset_import_job::CreateDatasetImportJobError::InvalidInputException(inner) => {
174                Error::InvalidInputException(inner)
175            }
176            crate::operation::create_dataset_import_job::CreateDatasetImportJobError::LimitExceededException(inner) => {
177                Error::LimitExceededException(inner)
178            }
179            crate::operation::create_dataset_import_job::CreateDatasetImportJobError::ResourceAlreadyExistsException(inner) => {
180                Error::ResourceAlreadyExistsException(inner)
181            }
182            crate::operation::create_dataset_import_job::CreateDatasetImportJobError::ResourceInUseException(inner) => {
183                Error::ResourceInUseException(inner)
184            }
185            crate::operation::create_dataset_import_job::CreateDatasetImportJobError::ResourceNotFoundException(inner) => {
186                Error::ResourceNotFoundException(inner)
187            }
188            crate::operation::create_dataset_import_job::CreateDatasetImportJobError::Unhandled(inner) => Error::Unhandled(inner),
189        }
190    }
191}
192impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_explainability::CreateExplainabilityError, R>> for Error
193where
194    R: Send + Sync + std::fmt::Debug + 'static,
195{
196    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_explainability::CreateExplainabilityError, R>) -> Self {
197        match err {
198            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
199            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
200                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
201                source: err.into(),
202            }),
203        }
204    }
205}
206impl From<crate::operation::create_explainability::CreateExplainabilityError> for Error {
207    fn from(err: crate::operation::create_explainability::CreateExplainabilityError) -> Self {
208        match err {
209            crate::operation::create_explainability::CreateExplainabilityError::InvalidInputException(inner) => Error::InvalidInputException(inner),
210            crate::operation::create_explainability::CreateExplainabilityError::LimitExceededException(inner) => Error::LimitExceededException(inner),
211            crate::operation::create_explainability::CreateExplainabilityError::ResourceAlreadyExistsException(inner) => {
212                Error::ResourceAlreadyExistsException(inner)
213            }
214            crate::operation::create_explainability::CreateExplainabilityError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
215            crate::operation::create_explainability::CreateExplainabilityError::ResourceNotFoundException(inner) => {
216                Error::ResourceNotFoundException(inner)
217            }
218            crate::operation::create_explainability::CreateExplainabilityError::Unhandled(inner) => Error::Unhandled(inner),
219        }
220    }
221}
222impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_explainability_export::CreateExplainabilityExportError, R>>
223    for Error
224where
225    R: Send + Sync + std::fmt::Debug + 'static,
226{
227    fn from(
228        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_explainability_export::CreateExplainabilityExportError, R>,
229    ) -> Self {
230        match err {
231            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
232            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
233                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
234                source: err.into(),
235            }),
236        }
237    }
238}
239impl From<crate::operation::create_explainability_export::CreateExplainabilityExportError> for Error {
240    fn from(err: crate::operation::create_explainability_export::CreateExplainabilityExportError) -> Self {
241        match err {
242            crate::operation::create_explainability_export::CreateExplainabilityExportError::InvalidInputException(inner) => {
243                Error::InvalidInputException(inner)
244            }
245            crate::operation::create_explainability_export::CreateExplainabilityExportError::LimitExceededException(inner) => {
246                Error::LimitExceededException(inner)
247            }
248            crate::operation::create_explainability_export::CreateExplainabilityExportError::ResourceAlreadyExistsException(inner) => {
249                Error::ResourceAlreadyExistsException(inner)
250            }
251            crate::operation::create_explainability_export::CreateExplainabilityExportError::ResourceInUseException(inner) => {
252                Error::ResourceInUseException(inner)
253            }
254            crate::operation::create_explainability_export::CreateExplainabilityExportError::ResourceNotFoundException(inner) => {
255                Error::ResourceNotFoundException(inner)
256            }
257            crate::operation::create_explainability_export::CreateExplainabilityExportError::Unhandled(inner) => Error::Unhandled(inner),
258        }
259    }
260}
261impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_forecast::CreateForecastError, R>> for Error
262where
263    R: Send + Sync + std::fmt::Debug + 'static,
264{
265    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_forecast::CreateForecastError, R>) -> Self {
266        match err {
267            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
268            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
269                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
270                source: err.into(),
271            }),
272        }
273    }
274}
275impl From<crate::operation::create_forecast::CreateForecastError> for Error {
276    fn from(err: crate::operation::create_forecast::CreateForecastError) -> Self {
277        match err {
278            crate::operation::create_forecast::CreateForecastError::InvalidInputException(inner) => Error::InvalidInputException(inner),
279            crate::operation::create_forecast::CreateForecastError::LimitExceededException(inner) => Error::LimitExceededException(inner),
280            crate::operation::create_forecast::CreateForecastError::ResourceAlreadyExistsException(inner) => {
281                Error::ResourceAlreadyExistsException(inner)
282            }
283            crate::operation::create_forecast::CreateForecastError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
284            crate::operation::create_forecast::CreateForecastError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
285            crate::operation::create_forecast::CreateForecastError::Unhandled(inner) => Error::Unhandled(inner),
286        }
287    }
288}
289impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_forecast_export_job::CreateForecastExportJobError, R>>
290    for Error
291where
292    R: Send + Sync + std::fmt::Debug + 'static,
293{
294    fn from(
295        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_forecast_export_job::CreateForecastExportJobError, R>,
296    ) -> Self {
297        match err {
298            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
299            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
300                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
301                source: err.into(),
302            }),
303        }
304    }
305}
306impl From<crate::operation::create_forecast_export_job::CreateForecastExportJobError> for Error {
307    fn from(err: crate::operation::create_forecast_export_job::CreateForecastExportJobError) -> Self {
308        match err {
309            crate::operation::create_forecast_export_job::CreateForecastExportJobError::InvalidInputException(inner) => {
310                Error::InvalidInputException(inner)
311            }
312            crate::operation::create_forecast_export_job::CreateForecastExportJobError::LimitExceededException(inner) => {
313                Error::LimitExceededException(inner)
314            }
315            crate::operation::create_forecast_export_job::CreateForecastExportJobError::ResourceAlreadyExistsException(inner) => {
316                Error::ResourceAlreadyExistsException(inner)
317            }
318            crate::operation::create_forecast_export_job::CreateForecastExportJobError::ResourceInUseException(inner) => {
319                Error::ResourceInUseException(inner)
320            }
321            crate::operation::create_forecast_export_job::CreateForecastExportJobError::ResourceNotFoundException(inner) => {
322                Error::ResourceNotFoundException(inner)
323            }
324            crate::operation::create_forecast_export_job::CreateForecastExportJobError::Unhandled(inner) => Error::Unhandled(inner),
325        }
326    }
327}
328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitor::CreateMonitorError, R>> for Error
329where
330    R: Send + Sync + std::fmt::Debug + 'static,
331{
332    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitor::CreateMonitorError, R>) -> Self {
333        match err {
334            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
335            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
336                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
337                source: err.into(),
338            }),
339        }
340    }
341}
342impl From<crate::operation::create_monitor::CreateMonitorError> for Error {
343    fn from(err: crate::operation::create_monitor::CreateMonitorError) -> Self {
344        match err {
345            crate::operation::create_monitor::CreateMonitorError::InvalidInputException(inner) => Error::InvalidInputException(inner),
346            crate::operation::create_monitor::CreateMonitorError::LimitExceededException(inner) => Error::LimitExceededException(inner),
347            crate::operation::create_monitor::CreateMonitorError::ResourceAlreadyExistsException(inner) => {
348                Error::ResourceAlreadyExistsException(inner)
349            }
350            crate::operation::create_monitor::CreateMonitorError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
351            crate::operation::create_monitor::CreateMonitorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
352            crate::operation::create_monitor::CreateMonitorError::Unhandled(inner) => Error::Unhandled(inner),
353        }
354    }
355}
356impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_predictor::CreatePredictorError, R>> for Error
357where
358    R: Send + Sync + std::fmt::Debug + 'static,
359{
360    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_predictor::CreatePredictorError, R>) -> Self {
361        match err {
362            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
363            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
364                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
365                source: err.into(),
366            }),
367        }
368    }
369}
370impl From<crate::operation::create_predictor::CreatePredictorError> for Error {
371    fn from(err: crate::operation::create_predictor::CreatePredictorError) -> Self {
372        match err {
373            crate::operation::create_predictor::CreatePredictorError::InvalidInputException(inner) => Error::InvalidInputException(inner),
374            crate::operation::create_predictor::CreatePredictorError::LimitExceededException(inner) => Error::LimitExceededException(inner),
375            crate::operation::create_predictor::CreatePredictorError::ResourceAlreadyExistsException(inner) => {
376                Error::ResourceAlreadyExistsException(inner)
377            }
378            crate::operation::create_predictor::CreatePredictorError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
379            crate::operation::create_predictor::CreatePredictorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
380            crate::operation::create_predictor::CreatePredictorError::Unhandled(inner) => Error::Unhandled(inner),
381        }
382    }
383}
384impl<R>
385    From<
386        ::aws_smithy_runtime_api::client::result::SdkError<
387            crate::operation::create_predictor_backtest_export_job::CreatePredictorBacktestExportJobError,
388            R,
389        >,
390    > for Error
391where
392    R: Send + Sync + std::fmt::Debug + 'static,
393{
394    fn from(
395        err: ::aws_smithy_runtime_api::client::result::SdkError<
396            crate::operation::create_predictor_backtest_export_job::CreatePredictorBacktestExportJobError,
397            R,
398        >,
399    ) -> Self {
400        match err {
401            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
402            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
403                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
404                source: err.into(),
405            }),
406        }
407    }
408}
409impl From<crate::operation::create_predictor_backtest_export_job::CreatePredictorBacktestExportJobError> for Error {
410    fn from(err: crate::operation::create_predictor_backtest_export_job::CreatePredictorBacktestExportJobError) -> Self {
411        match err {
412            crate::operation::create_predictor_backtest_export_job::CreatePredictorBacktestExportJobError::InvalidInputException(inner) => {
413                Error::InvalidInputException(inner)
414            }
415            crate::operation::create_predictor_backtest_export_job::CreatePredictorBacktestExportJobError::LimitExceededException(inner) => {
416                Error::LimitExceededException(inner)
417            }
418            crate::operation::create_predictor_backtest_export_job::CreatePredictorBacktestExportJobError::ResourceAlreadyExistsException(inner) => {
419                Error::ResourceAlreadyExistsException(inner)
420            }
421            crate::operation::create_predictor_backtest_export_job::CreatePredictorBacktestExportJobError::ResourceInUseException(inner) => {
422                Error::ResourceInUseException(inner)
423            }
424            crate::operation::create_predictor_backtest_export_job::CreatePredictorBacktestExportJobError::ResourceNotFoundException(inner) => {
425                Error::ResourceNotFoundException(inner)
426            }
427            crate::operation::create_predictor_backtest_export_job::CreatePredictorBacktestExportJobError::Unhandled(inner) => {
428                Error::Unhandled(inner)
429            }
430        }
431    }
432}
433impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_what_if_analysis::CreateWhatIfAnalysisError, R>> for Error
434where
435    R: Send + Sync + std::fmt::Debug + 'static,
436{
437    fn from(
438        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_what_if_analysis::CreateWhatIfAnalysisError, R>,
439    ) -> Self {
440        match err {
441            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
442            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
443                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
444                source: err.into(),
445            }),
446        }
447    }
448}
449impl From<crate::operation::create_what_if_analysis::CreateWhatIfAnalysisError> for Error {
450    fn from(err: crate::operation::create_what_if_analysis::CreateWhatIfAnalysisError) -> Self {
451        match err {
452            crate::operation::create_what_if_analysis::CreateWhatIfAnalysisError::InvalidInputException(inner) => Error::InvalidInputException(inner),
453            crate::operation::create_what_if_analysis::CreateWhatIfAnalysisError::LimitExceededException(inner) => {
454                Error::LimitExceededException(inner)
455            }
456            crate::operation::create_what_if_analysis::CreateWhatIfAnalysisError::ResourceAlreadyExistsException(inner) => {
457                Error::ResourceAlreadyExistsException(inner)
458            }
459            crate::operation::create_what_if_analysis::CreateWhatIfAnalysisError::ResourceInUseException(inner) => {
460                Error::ResourceInUseException(inner)
461            }
462            crate::operation::create_what_if_analysis::CreateWhatIfAnalysisError::ResourceNotFoundException(inner) => {
463                Error::ResourceNotFoundException(inner)
464            }
465            crate::operation::create_what_if_analysis::CreateWhatIfAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
466        }
467    }
468}
469impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_what_if_forecast::CreateWhatIfForecastError, R>> for Error
470where
471    R: Send + Sync + std::fmt::Debug + 'static,
472{
473    fn from(
474        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_what_if_forecast::CreateWhatIfForecastError, R>,
475    ) -> Self {
476        match err {
477            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
478            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
479                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
480                source: err.into(),
481            }),
482        }
483    }
484}
485impl From<crate::operation::create_what_if_forecast::CreateWhatIfForecastError> for Error {
486    fn from(err: crate::operation::create_what_if_forecast::CreateWhatIfForecastError) -> Self {
487        match err {
488            crate::operation::create_what_if_forecast::CreateWhatIfForecastError::InvalidInputException(inner) => Error::InvalidInputException(inner),
489            crate::operation::create_what_if_forecast::CreateWhatIfForecastError::LimitExceededException(inner) => {
490                Error::LimitExceededException(inner)
491            }
492            crate::operation::create_what_if_forecast::CreateWhatIfForecastError::ResourceAlreadyExistsException(inner) => {
493                Error::ResourceAlreadyExistsException(inner)
494            }
495            crate::operation::create_what_if_forecast::CreateWhatIfForecastError::ResourceInUseException(inner) => {
496                Error::ResourceInUseException(inner)
497            }
498            crate::operation::create_what_if_forecast::CreateWhatIfForecastError::ResourceNotFoundException(inner) => {
499                Error::ResourceNotFoundException(inner)
500            }
501            crate::operation::create_what_if_forecast::CreateWhatIfForecastError::Unhandled(inner) => Error::Unhandled(inner),
502        }
503    }
504}
505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_what_if_forecast_export::CreateWhatIfForecastExportError, R>>
506    for Error
507where
508    R: Send + Sync + std::fmt::Debug + 'static,
509{
510    fn from(
511        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_what_if_forecast_export::CreateWhatIfForecastExportError, R>,
512    ) -> Self {
513        match err {
514            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
515            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
516                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
517                source: err.into(),
518            }),
519        }
520    }
521}
522impl From<crate::operation::create_what_if_forecast_export::CreateWhatIfForecastExportError> for Error {
523    fn from(err: crate::operation::create_what_if_forecast_export::CreateWhatIfForecastExportError) -> Self {
524        match err {
525            crate::operation::create_what_if_forecast_export::CreateWhatIfForecastExportError::InvalidInputException(inner) => {
526                Error::InvalidInputException(inner)
527            }
528            crate::operation::create_what_if_forecast_export::CreateWhatIfForecastExportError::LimitExceededException(inner) => {
529                Error::LimitExceededException(inner)
530            }
531            crate::operation::create_what_if_forecast_export::CreateWhatIfForecastExportError::ResourceAlreadyExistsException(inner) => {
532                Error::ResourceAlreadyExistsException(inner)
533            }
534            crate::operation::create_what_if_forecast_export::CreateWhatIfForecastExportError::ResourceInUseException(inner) => {
535                Error::ResourceInUseException(inner)
536            }
537            crate::operation::create_what_if_forecast_export::CreateWhatIfForecastExportError::ResourceNotFoundException(inner) => {
538                Error::ResourceNotFoundException(inner)
539            }
540            crate::operation::create_what_if_forecast_export::CreateWhatIfForecastExportError::Unhandled(inner) => Error::Unhandled(inner),
541        }
542    }
543}
544impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset::DeleteDatasetError, R>> for Error
545where
546    R: Send + Sync + std::fmt::Debug + 'static,
547{
548    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset::DeleteDatasetError, R>) -> Self {
549        match err {
550            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
551            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
552                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
553                source: err.into(),
554            }),
555        }
556    }
557}
558impl From<crate::operation::delete_dataset::DeleteDatasetError> for Error {
559    fn from(err: crate::operation::delete_dataset::DeleteDatasetError) -> Self {
560        match err {
561            crate::operation::delete_dataset::DeleteDatasetError::InvalidInputException(inner) => Error::InvalidInputException(inner),
562            crate::operation::delete_dataset::DeleteDatasetError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
563            crate::operation::delete_dataset::DeleteDatasetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
564            crate::operation::delete_dataset::DeleteDatasetError::Unhandled(inner) => Error::Unhandled(inner),
565        }
566    }
567}
568impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset_group::DeleteDatasetGroupError, R>> for Error
569where
570    R: Send + Sync + std::fmt::Debug + 'static,
571{
572    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset_group::DeleteDatasetGroupError, R>) -> Self {
573        match err {
574            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
575            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
576                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
577                source: err.into(),
578            }),
579        }
580    }
581}
582impl From<crate::operation::delete_dataset_group::DeleteDatasetGroupError> for Error {
583    fn from(err: crate::operation::delete_dataset_group::DeleteDatasetGroupError) -> Self {
584        match err {
585            crate::operation::delete_dataset_group::DeleteDatasetGroupError::InvalidInputException(inner) => Error::InvalidInputException(inner),
586            crate::operation::delete_dataset_group::DeleteDatasetGroupError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
587            crate::operation::delete_dataset_group::DeleteDatasetGroupError::ResourceNotFoundException(inner) => {
588                Error::ResourceNotFoundException(inner)
589            }
590            crate::operation::delete_dataset_group::DeleteDatasetGroupError::Unhandled(inner) => Error::Unhandled(inner),
591        }
592    }
593}
594impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset_import_job::DeleteDatasetImportJobError, R>>
595    for Error
596where
597    R: Send + Sync + std::fmt::Debug + 'static,
598{
599    fn from(
600        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset_import_job::DeleteDatasetImportJobError, R>,
601    ) -> Self {
602        match err {
603            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
604            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
605                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
606                source: err.into(),
607            }),
608        }
609    }
610}
611impl From<crate::operation::delete_dataset_import_job::DeleteDatasetImportJobError> for Error {
612    fn from(err: crate::operation::delete_dataset_import_job::DeleteDatasetImportJobError) -> Self {
613        match err {
614            crate::operation::delete_dataset_import_job::DeleteDatasetImportJobError::InvalidInputException(inner) => {
615                Error::InvalidInputException(inner)
616            }
617            crate::operation::delete_dataset_import_job::DeleteDatasetImportJobError::ResourceInUseException(inner) => {
618                Error::ResourceInUseException(inner)
619            }
620            crate::operation::delete_dataset_import_job::DeleteDatasetImportJobError::ResourceNotFoundException(inner) => {
621                Error::ResourceNotFoundException(inner)
622            }
623            crate::operation::delete_dataset_import_job::DeleteDatasetImportJobError::Unhandled(inner) => Error::Unhandled(inner),
624        }
625    }
626}
627impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_explainability::DeleteExplainabilityError, R>> for Error
628where
629    R: Send + Sync + std::fmt::Debug + 'static,
630{
631    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_explainability::DeleteExplainabilityError, R>) -> Self {
632        match err {
633            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
634            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
635                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
636                source: err.into(),
637            }),
638        }
639    }
640}
641impl From<crate::operation::delete_explainability::DeleteExplainabilityError> for Error {
642    fn from(err: crate::operation::delete_explainability::DeleteExplainabilityError) -> Self {
643        match err {
644            crate::operation::delete_explainability::DeleteExplainabilityError::InvalidInputException(inner) => Error::InvalidInputException(inner),
645            crate::operation::delete_explainability::DeleteExplainabilityError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
646            crate::operation::delete_explainability::DeleteExplainabilityError::ResourceNotFoundException(inner) => {
647                Error::ResourceNotFoundException(inner)
648            }
649            crate::operation::delete_explainability::DeleteExplainabilityError::Unhandled(inner) => Error::Unhandled(inner),
650        }
651    }
652}
653impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_explainability_export::DeleteExplainabilityExportError, R>>
654    for Error
655where
656    R: Send + Sync + std::fmt::Debug + 'static,
657{
658    fn from(
659        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_explainability_export::DeleteExplainabilityExportError, R>,
660    ) -> Self {
661        match err {
662            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
663            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
664                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
665                source: err.into(),
666            }),
667        }
668    }
669}
670impl From<crate::operation::delete_explainability_export::DeleteExplainabilityExportError> for Error {
671    fn from(err: crate::operation::delete_explainability_export::DeleteExplainabilityExportError) -> Self {
672        match err {
673            crate::operation::delete_explainability_export::DeleteExplainabilityExportError::InvalidInputException(inner) => {
674                Error::InvalidInputException(inner)
675            }
676            crate::operation::delete_explainability_export::DeleteExplainabilityExportError::ResourceInUseException(inner) => {
677                Error::ResourceInUseException(inner)
678            }
679            crate::operation::delete_explainability_export::DeleteExplainabilityExportError::ResourceNotFoundException(inner) => {
680                Error::ResourceNotFoundException(inner)
681            }
682            crate::operation::delete_explainability_export::DeleteExplainabilityExportError::Unhandled(inner) => Error::Unhandled(inner),
683        }
684    }
685}
686impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_forecast::DeleteForecastError, R>> for Error
687where
688    R: Send + Sync + std::fmt::Debug + 'static,
689{
690    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_forecast::DeleteForecastError, R>) -> Self {
691        match err {
692            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
693            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
694                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
695                source: err.into(),
696            }),
697        }
698    }
699}
700impl From<crate::operation::delete_forecast::DeleteForecastError> for Error {
701    fn from(err: crate::operation::delete_forecast::DeleteForecastError) -> Self {
702        match err {
703            crate::operation::delete_forecast::DeleteForecastError::InvalidInputException(inner) => Error::InvalidInputException(inner),
704            crate::operation::delete_forecast::DeleteForecastError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
705            crate::operation::delete_forecast::DeleteForecastError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
706            crate::operation::delete_forecast::DeleteForecastError::Unhandled(inner) => Error::Unhandled(inner),
707        }
708    }
709}
710impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_forecast_export_job::DeleteForecastExportJobError, R>>
711    for Error
712where
713    R: Send + Sync + std::fmt::Debug + 'static,
714{
715    fn from(
716        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_forecast_export_job::DeleteForecastExportJobError, R>,
717    ) -> Self {
718        match err {
719            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
720            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
721                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
722                source: err.into(),
723            }),
724        }
725    }
726}
727impl From<crate::operation::delete_forecast_export_job::DeleteForecastExportJobError> for Error {
728    fn from(err: crate::operation::delete_forecast_export_job::DeleteForecastExportJobError) -> Self {
729        match err {
730            crate::operation::delete_forecast_export_job::DeleteForecastExportJobError::InvalidInputException(inner) => {
731                Error::InvalidInputException(inner)
732            }
733            crate::operation::delete_forecast_export_job::DeleteForecastExportJobError::ResourceInUseException(inner) => {
734                Error::ResourceInUseException(inner)
735            }
736            crate::operation::delete_forecast_export_job::DeleteForecastExportJobError::ResourceNotFoundException(inner) => {
737                Error::ResourceNotFoundException(inner)
738            }
739            crate::operation::delete_forecast_export_job::DeleteForecastExportJobError::Unhandled(inner) => Error::Unhandled(inner),
740        }
741    }
742}
743impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitor::DeleteMonitorError, R>> for Error
744where
745    R: Send + Sync + std::fmt::Debug + 'static,
746{
747    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitor::DeleteMonitorError, R>) -> Self {
748        match err {
749            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
750            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
751                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
752                source: err.into(),
753            }),
754        }
755    }
756}
757impl From<crate::operation::delete_monitor::DeleteMonitorError> for Error {
758    fn from(err: crate::operation::delete_monitor::DeleteMonitorError) -> Self {
759        match err {
760            crate::operation::delete_monitor::DeleteMonitorError::InvalidInputException(inner) => Error::InvalidInputException(inner),
761            crate::operation::delete_monitor::DeleteMonitorError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
762            crate::operation::delete_monitor::DeleteMonitorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
763            crate::operation::delete_monitor::DeleteMonitorError::Unhandled(inner) => Error::Unhandled(inner),
764        }
765    }
766}
767impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_predictor::DeletePredictorError, R>> for Error
768where
769    R: Send + Sync + std::fmt::Debug + 'static,
770{
771    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_predictor::DeletePredictorError, R>) -> Self {
772        match err {
773            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
774            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
775                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
776                source: err.into(),
777            }),
778        }
779    }
780}
781impl From<crate::operation::delete_predictor::DeletePredictorError> for Error {
782    fn from(err: crate::operation::delete_predictor::DeletePredictorError) -> Self {
783        match err {
784            crate::operation::delete_predictor::DeletePredictorError::InvalidInputException(inner) => Error::InvalidInputException(inner),
785            crate::operation::delete_predictor::DeletePredictorError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
786            crate::operation::delete_predictor::DeletePredictorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
787            crate::operation::delete_predictor::DeletePredictorError::Unhandled(inner) => Error::Unhandled(inner),
788        }
789    }
790}
791impl<R>
792    From<
793        ::aws_smithy_runtime_api::client::result::SdkError<
794            crate::operation::delete_predictor_backtest_export_job::DeletePredictorBacktestExportJobError,
795            R,
796        >,
797    > for Error
798where
799    R: Send + Sync + std::fmt::Debug + 'static,
800{
801    fn from(
802        err: ::aws_smithy_runtime_api::client::result::SdkError<
803            crate::operation::delete_predictor_backtest_export_job::DeletePredictorBacktestExportJobError,
804            R,
805        >,
806    ) -> Self {
807        match err {
808            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
809            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
810                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
811                source: err.into(),
812            }),
813        }
814    }
815}
816impl From<crate::operation::delete_predictor_backtest_export_job::DeletePredictorBacktestExportJobError> for Error {
817    fn from(err: crate::operation::delete_predictor_backtest_export_job::DeletePredictorBacktestExportJobError) -> Self {
818        match err {
819            crate::operation::delete_predictor_backtest_export_job::DeletePredictorBacktestExportJobError::InvalidInputException(inner) => {
820                Error::InvalidInputException(inner)
821            }
822            crate::operation::delete_predictor_backtest_export_job::DeletePredictorBacktestExportJobError::ResourceInUseException(inner) => {
823                Error::ResourceInUseException(inner)
824            }
825            crate::operation::delete_predictor_backtest_export_job::DeletePredictorBacktestExportJobError::ResourceNotFoundException(inner) => {
826                Error::ResourceNotFoundException(inner)
827            }
828            crate::operation::delete_predictor_backtest_export_job::DeletePredictorBacktestExportJobError::Unhandled(inner) => {
829                Error::Unhandled(inner)
830            }
831        }
832    }
833}
834impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_tree::DeleteResourceTreeError, R>> for Error
835where
836    R: Send + Sync + std::fmt::Debug + 'static,
837{
838    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_tree::DeleteResourceTreeError, R>) -> Self {
839        match err {
840            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
841            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
842                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
843                source: err.into(),
844            }),
845        }
846    }
847}
848impl From<crate::operation::delete_resource_tree::DeleteResourceTreeError> for Error {
849    fn from(err: crate::operation::delete_resource_tree::DeleteResourceTreeError) -> Self {
850        match err {
851            crate::operation::delete_resource_tree::DeleteResourceTreeError::InvalidInputException(inner) => Error::InvalidInputException(inner),
852            crate::operation::delete_resource_tree::DeleteResourceTreeError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
853            crate::operation::delete_resource_tree::DeleteResourceTreeError::ResourceNotFoundException(inner) => {
854                Error::ResourceNotFoundException(inner)
855            }
856            crate::operation::delete_resource_tree::DeleteResourceTreeError::Unhandled(inner) => Error::Unhandled(inner),
857        }
858    }
859}
860impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_what_if_analysis::DeleteWhatIfAnalysisError, R>> for Error
861where
862    R: Send + Sync + std::fmt::Debug + 'static,
863{
864    fn from(
865        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_what_if_analysis::DeleteWhatIfAnalysisError, R>,
866    ) -> Self {
867        match err {
868            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
869            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
870                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
871                source: err.into(),
872            }),
873        }
874    }
875}
876impl From<crate::operation::delete_what_if_analysis::DeleteWhatIfAnalysisError> for Error {
877    fn from(err: crate::operation::delete_what_if_analysis::DeleteWhatIfAnalysisError) -> Self {
878        match err {
879            crate::operation::delete_what_if_analysis::DeleteWhatIfAnalysisError::InvalidInputException(inner) => Error::InvalidInputException(inner),
880            crate::operation::delete_what_if_analysis::DeleteWhatIfAnalysisError::ResourceInUseException(inner) => {
881                Error::ResourceInUseException(inner)
882            }
883            crate::operation::delete_what_if_analysis::DeleteWhatIfAnalysisError::ResourceNotFoundException(inner) => {
884                Error::ResourceNotFoundException(inner)
885            }
886            crate::operation::delete_what_if_analysis::DeleteWhatIfAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
887        }
888    }
889}
890impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_what_if_forecast::DeleteWhatIfForecastError, R>> for Error
891where
892    R: Send + Sync + std::fmt::Debug + 'static,
893{
894    fn from(
895        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_what_if_forecast::DeleteWhatIfForecastError, R>,
896    ) -> Self {
897        match err {
898            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
899            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
900                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
901                source: err.into(),
902            }),
903        }
904    }
905}
906impl From<crate::operation::delete_what_if_forecast::DeleteWhatIfForecastError> for Error {
907    fn from(err: crate::operation::delete_what_if_forecast::DeleteWhatIfForecastError) -> Self {
908        match err {
909            crate::operation::delete_what_if_forecast::DeleteWhatIfForecastError::InvalidInputException(inner) => Error::InvalidInputException(inner),
910            crate::operation::delete_what_if_forecast::DeleteWhatIfForecastError::ResourceInUseException(inner) => {
911                Error::ResourceInUseException(inner)
912            }
913            crate::operation::delete_what_if_forecast::DeleteWhatIfForecastError::ResourceNotFoundException(inner) => {
914                Error::ResourceNotFoundException(inner)
915            }
916            crate::operation::delete_what_if_forecast::DeleteWhatIfForecastError::Unhandled(inner) => Error::Unhandled(inner),
917        }
918    }
919}
920impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_what_if_forecast_export::DeleteWhatIfForecastExportError, R>>
921    for Error
922where
923    R: Send + Sync + std::fmt::Debug + 'static,
924{
925    fn from(
926        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_what_if_forecast_export::DeleteWhatIfForecastExportError, R>,
927    ) -> Self {
928        match err {
929            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
930            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
931                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
932                source: err.into(),
933            }),
934        }
935    }
936}
937impl From<crate::operation::delete_what_if_forecast_export::DeleteWhatIfForecastExportError> for Error {
938    fn from(err: crate::operation::delete_what_if_forecast_export::DeleteWhatIfForecastExportError) -> Self {
939        match err {
940            crate::operation::delete_what_if_forecast_export::DeleteWhatIfForecastExportError::InvalidInputException(inner) => {
941                Error::InvalidInputException(inner)
942            }
943            crate::operation::delete_what_if_forecast_export::DeleteWhatIfForecastExportError::ResourceInUseException(inner) => {
944                Error::ResourceInUseException(inner)
945            }
946            crate::operation::delete_what_if_forecast_export::DeleteWhatIfForecastExportError::ResourceNotFoundException(inner) => {
947                Error::ResourceNotFoundException(inner)
948            }
949            crate::operation::delete_what_if_forecast_export::DeleteWhatIfForecastExportError::Unhandled(inner) => Error::Unhandled(inner),
950        }
951    }
952}
953impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_predictor::DescribeAutoPredictorError, R>> for Error
954where
955    R: Send + Sync + std::fmt::Debug + 'static,
956{
957    fn from(
958        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_predictor::DescribeAutoPredictorError, R>,
959    ) -> Self {
960        match err {
961            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
962            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
963                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
964                source: err.into(),
965            }),
966        }
967    }
968}
969impl From<crate::operation::describe_auto_predictor::DescribeAutoPredictorError> for Error {
970    fn from(err: crate::operation::describe_auto_predictor::DescribeAutoPredictorError) -> Self {
971        match err {
972            crate::operation::describe_auto_predictor::DescribeAutoPredictorError::InvalidInputException(inner) => {
973                Error::InvalidInputException(inner)
974            }
975            crate::operation::describe_auto_predictor::DescribeAutoPredictorError::ResourceNotFoundException(inner) => {
976                Error::ResourceNotFoundException(inner)
977            }
978            crate::operation::describe_auto_predictor::DescribeAutoPredictorError::Unhandled(inner) => Error::Unhandled(inner),
979        }
980    }
981}
982impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dataset::DescribeDatasetError, R>> for Error
983where
984    R: Send + Sync + std::fmt::Debug + 'static,
985{
986    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dataset::DescribeDatasetError, R>) -> Self {
987        match err {
988            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
989            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
990                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
991                source: err.into(),
992            }),
993        }
994    }
995}
996impl From<crate::operation::describe_dataset::DescribeDatasetError> for Error {
997    fn from(err: crate::operation::describe_dataset::DescribeDatasetError) -> Self {
998        match err {
999            crate::operation::describe_dataset::DescribeDatasetError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1000            crate::operation::describe_dataset::DescribeDatasetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1001            crate::operation::describe_dataset::DescribeDatasetError::Unhandled(inner) => Error::Unhandled(inner),
1002        }
1003    }
1004}
1005impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dataset_group::DescribeDatasetGroupError, R>> for Error
1006where
1007    R: Send + Sync + std::fmt::Debug + 'static,
1008{
1009    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dataset_group::DescribeDatasetGroupError, R>) -> Self {
1010        match err {
1011            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1012            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1013                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1014                source: err.into(),
1015            }),
1016        }
1017    }
1018}
1019impl From<crate::operation::describe_dataset_group::DescribeDatasetGroupError> for Error {
1020    fn from(err: crate::operation::describe_dataset_group::DescribeDatasetGroupError) -> Self {
1021        match err {
1022            crate::operation::describe_dataset_group::DescribeDatasetGroupError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1023            crate::operation::describe_dataset_group::DescribeDatasetGroupError::ResourceNotFoundException(inner) => {
1024                Error::ResourceNotFoundException(inner)
1025            }
1026            crate::operation::describe_dataset_group::DescribeDatasetGroupError::Unhandled(inner) => Error::Unhandled(inner),
1027        }
1028    }
1029}
1030impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dataset_import_job::DescribeDatasetImportJobError, R>>
1031    for Error
1032where
1033    R: Send + Sync + std::fmt::Debug + 'static,
1034{
1035    fn from(
1036        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dataset_import_job::DescribeDatasetImportJobError, R>,
1037    ) -> Self {
1038        match err {
1039            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1040            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1041                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1042                source: err.into(),
1043            }),
1044        }
1045    }
1046}
1047impl From<crate::operation::describe_dataset_import_job::DescribeDatasetImportJobError> for Error {
1048    fn from(err: crate::operation::describe_dataset_import_job::DescribeDatasetImportJobError) -> Self {
1049        match err {
1050            crate::operation::describe_dataset_import_job::DescribeDatasetImportJobError::InvalidInputException(inner) => {
1051                Error::InvalidInputException(inner)
1052            }
1053            crate::operation::describe_dataset_import_job::DescribeDatasetImportJobError::ResourceNotFoundException(inner) => {
1054                Error::ResourceNotFoundException(inner)
1055            }
1056            crate::operation::describe_dataset_import_job::DescribeDatasetImportJobError::Unhandled(inner) => Error::Unhandled(inner),
1057        }
1058    }
1059}
1060impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_explainability::DescribeExplainabilityError, R>> for Error
1061where
1062    R: Send + Sync + std::fmt::Debug + 'static,
1063{
1064    fn from(
1065        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_explainability::DescribeExplainabilityError, R>,
1066    ) -> Self {
1067        match err {
1068            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1069            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1070                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1071                source: err.into(),
1072            }),
1073        }
1074    }
1075}
1076impl From<crate::operation::describe_explainability::DescribeExplainabilityError> for Error {
1077    fn from(err: crate::operation::describe_explainability::DescribeExplainabilityError) -> Self {
1078        match err {
1079            crate::operation::describe_explainability::DescribeExplainabilityError::InvalidInputException(inner) => {
1080                Error::InvalidInputException(inner)
1081            }
1082            crate::operation::describe_explainability::DescribeExplainabilityError::ResourceNotFoundException(inner) => {
1083                Error::ResourceNotFoundException(inner)
1084            }
1085            crate::operation::describe_explainability::DescribeExplainabilityError::Unhandled(inner) => Error::Unhandled(inner),
1086        }
1087    }
1088}
1089impl<R>
1090    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_explainability_export::DescribeExplainabilityExportError, R>>
1091    for Error
1092where
1093    R: Send + Sync + std::fmt::Debug + 'static,
1094{
1095    fn from(
1096        err: ::aws_smithy_runtime_api::client::result::SdkError<
1097            crate::operation::describe_explainability_export::DescribeExplainabilityExportError,
1098            R,
1099        >,
1100    ) -> Self {
1101        match err {
1102            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1103            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1104                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1105                source: err.into(),
1106            }),
1107        }
1108    }
1109}
1110impl From<crate::operation::describe_explainability_export::DescribeExplainabilityExportError> for Error {
1111    fn from(err: crate::operation::describe_explainability_export::DescribeExplainabilityExportError) -> Self {
1112        match err {
1113            crate::operation::describe_explainability_export::DescribeExplainabilityExportError::InvalidInputException(inner) => {
1114                Error::InvalidInputException(inner)
1115            }
1116            crate::operation::describe_explainability_export::DescribeExplainabilityExportError::ResourceNotFoundException(inner) => {
1117                Error::ResourceNotFoundException(inner)
1118            }
1119            crate::operation::describe_explainability_export::DescribeExplainabilityExportError::Unhandled(inner) => Error::Unhandled(inner),
1120        }
1121    }
1122}
1123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_forecast::DescribeForecastError, R>> for Error
1124where
1125    R: Send + Sync + std::fmt::Debug + 'static,
1126{
1127    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_forecast::DescribeForecastError, R>) -> Self {
1128        match err {
1129            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1130            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1131                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1132                source: err.into(),
1133            }),
1134        }
1135    }
1136}
1137impl From<crate::operation::describe_forecast::DescribeForecastError> for Error {
1138    fn from(err: crate::operation::describe_forecast::DescribeForecastError) -> Self {
1139        match err {
1140            crate::operation::describe_forecast::DescribeForecastError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1141            crate::operation::describe_forecast::DescribeForecastError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1142            crate::operation::describe_forecast::DescribeForecastError::Unhandled(inner) => Error::Unhandled(inner),
1143        }
1144    }
1145}
1146impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_forecast_export_job::DescribeForecastExportJobError, R>>
1147    for Error
1148where
1149    R: Send + Sync + std::fmt::Debug + 'static,
1150{
1151    fn from(
1152        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_forecast_export_job::DescribeForecastExportJobError, R>,
1153    ) -> Self {
1154        match err {
1155            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1156            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1157                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1158                source: err.into(),
1159            }),
1160        }
1161    }
1162}
1163impl From<crate::operation::describe_forecast_export_job::DescribeForecastExportJobError> for Error {
1164    fn from(err: crate::operation::describe_forecast_export_job::DescribeForecastExportJobError) -> Self {
1165        match err {
1166            crate::operation::describe_forecast_export_job::DescribeForecastExportJobError::InvalidInputException(inner) => {
1167                Error::InvalidInputException(inner)
1168            }
1169            crate::operation::describe_forecast_export_job::DescribeForecastExportJobError::ResourceNotFoundException(inner) => {
1170                Error::ResourceNotFoundException(inner)
1171            }
1172            crate::operation::describe_forecast_export_job::DescribeForecastExportJobError::Unhandled(inner) => Error::Unhandled(inner),
1173        }
1174    }
1175}
1176impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_monitor::DescribeMonitorError, R>> for Error
1177where
1178    R: Send + Sync + std::fmt::Debug + 'static,
1179{
1180    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_monitor::DescribeMonitorError, R>) -> Self {
1181        match err {
1182            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1183            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1184                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1185                source: err.into(),
1186            }),
1187        }
1188    }
1189}
1190impl From<crate::operation::describe_monitor::DescribeMonitorError> for Error {
1191    fn from(err: crate::operation::describe_monitor::DescribeMonitorError) -> Self {
1192        match err {
1193            crate::operation::describe_monitor::DescribeMonitorError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1194            crate::operation::describe_monitor::DescribeMonitorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1195            crate::operation::describe_monitor::DescribeMonitorError::Unhandled(inner) => Error::Unhandled(inner),
1196        }
1197    }
1198}
1199impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_predictor::DescribePredictorError, R>> for Error
1200where
1201    R: Send + Sync + std::fmt::Debug + 'static,
1202{
1203    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_predictor::DescribePredictorError, R>) -> Self {
1204        match err {
1205            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1206            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1207                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1208                source: err.into(),
1209            }),
1210        }
1211    }
1212}
1213impl From<crate::operation::describe_predictor::DescribePredictorError> for Error {
1214    fn from(err: crate::operation::describe_predictor::DescribePredictorError) -> Self {
1215        match err {
1216            crate::operation::describe_predictor::DescribePredictorError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1217            crate::operation::describe_predictor::DescribePredictorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1218            crate::operation::describe_predictor::DescribePredictorError::Unhandled(inner) => Error::Unhandled(inner),
1219        }
1220    }
1221}
1222impl<R>
1223    From<
1224        ::aws_smithy_runtime_api::client::result::SdkError<
1225            crate::operation::describe_predictor_backtest_export_job::DescribePredictorBacktestExportJobError,
1226            R,
1227        >,
1228    > for Error
1229where
1230    R: Send + Sync + std::fmt::Debug + 'static,
1231{
1232    fn from(
1233        err: ::aws_smithy_runtime_api::client::result::SdkError<
1234            crate::operation::describe_predictor_backtest_export_job::DescribePredictorBacktestExportJobError,
1235            R,
1236        >,
1237    ) -> Self {
1238        match err {
1239            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1240            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1241                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1242                source: err.into(),
1243            }),
1244        }
1245    }
1246}
1247impl From<crate::operation::describe_predictor_backtest_export_job::DescribePredictorBacktestExportJobError> for Error {
1248    fn from(err: crate::operation::describe_predictor_backtest_export_job::DescribePredictorBacktestExportJobError) -> Self {
1249        match err {
1250            crate::operation::describe_predictor_backtest_export_job::DescribePredictorBacktestExportJobError::InvalidInputException(inner) => {
1251                Error::InvalidInputException(inner)
1252            }
1253            crate::operation::describe_predictor_backtest_export_job::DescribePredictorBacktestExportJobError::ResourceNotFoundException(inner) => {
1254                Error::ResourceNotFoundException(inner)
1255            }
1256            crate::operation::describe_predictor_backtest_export_job::DescribePredictorBacktestExportJobError::Unhandled(inner) => {
1257                Error::Unhandled(inner)
1258            }
1259        }
1260    }
1261}
1262impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_what_if_analysis::DescribeWhatIfAnalysisError, R>>
1263    for Error
1264where
1265    R: Send + Sync + std::fmt::Debug + 'static,
1266{
1267    fn from(
1268        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_what_if_analysis::DescribeWhatIfAnalysisError, R>,
1269    ) -> Self {
1270        match err {
1271            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1272            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1273                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1274                source: err.into(),
1275            }),
1276        }
1277    }
1278}
1279impl From<crate::operation::describe_what_if_analysis::DescribeWhatIfAnalysisError> for Error {
1280    fn from(err: crate::operation::describe_what_if_analysis::DescribeWhatIfAnalysisError) -> Self {
1281        match err {
1282            crate::operation::describe_what_if_analysis::DescribeWhatIfAnalysisError::InvalidInputException(inner) => {
1283                Error::InvalidInputException(inner)
1284            }
1285            crate::operation::describe_what_if_analysis::DescribeWhatIfAnalysisError::ResourceNotFoundException(inner) => {
1286                Error::ResourceNotFoundException(inner)
1287            }
1288            crate::operation::describe_what_if_analysis::DescribeWhatIfAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
1289        }
1290    }
1291}
1292impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_what_if_forecast::DescribeWhatIfForecastError, R>>
1293    for Error
1294where
1295    R: Send + Sync + std::fmt::Debug + 'static,
1296{
1297    fn from(
1298        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_what_if_forecast::DescribeWhatIfForecastError, R>,
1299    ) -> Self {
1300        match err {
1301            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1302            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1303                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1304                source: err.into(),
1305            }),
1306        }
1307    }
1308}
1309impl From<crate::operation::describe_what_if_forecast::DescribeWhatIfForecastError> for Error {
1310    fn from(err: crate::operation::describe_what_if_forecast::DescribeWhatIfForecastError) -> Self {
1311        match err {
1312            crate::operation::describe_what_if_forecast::DescribeWhatIfForecastError::InvalidInputException(inner) => {
1313                Error::InvalidInputException(inner)
1314            }
1315            crate::operation::describe_what_if_forecast::DescribeWhatIfForecastError::ResourceNotFoundException(inner) => {
1316                Error::ResourceNotFoundException(inner)
1317            }
1318            crate::operation::describe_what_if_forecast::DescribeWhatIfForecastError::Unhandled(inner) => Error::Unhandled(inner),
1319        }
1320    }
1321}
1322impl<R>
1323    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_what_if_forecast_export::DescribeWhatIfForecastExportError, R>>
1324    for Error
1325where
1326    R: Send + Sync + std::fmt::Debug + 'static,
1327{
1328    fn from(
1329        err: ::aws_smithy_runtime_api::client::result::SdkError<
1330            crate::operation::describe_what_if_forecast_export::DescribeWhatIfForecastExportError,
1331            R,
1332        >,
1333    ) -> Self {
1334        match err {
1335            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1336            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1337                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1338                source: err.into(),
1339            }),
1340        }
1341    }
1342}
1343impl From<crate::operation::describe_what_if_forecast_export::DescribeWhatIfForecastExportError> for Error {
1344    fn from(err: crate::operation::describe_what_if_forecast_export::DescribeWhatIfForecastExportError) -> Self {
1345        match err {
1346            crate::operation::describe_what_if_forecast_export::DescribeWhatIfForecastExportError::InvalidInputException(inner) => {
1347                Error::InvalidInputException(inner)
1348            }
1349            crate::operation::describe_what_if_forecast_export::DescribeWhatIfForecastExportError::ResourceNotFoundException(inner) => {
1350                Error::ResourceNotFoundException(inner)
1351            }
1352            crate::operation::describe_what_if_forecast_export::DescribeWhatIfForecastExportError::Unhandled(inner) => Error::Unhandled(inner),
1353        }
1354    }
1355}
1356impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_accuracy_metrics::GetAccuracyMetricsError, R>> for Error
1357where
1358    R: Send + Sync + std::fmt::Debug + 'static,
1359{
1360    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_accuracy_metrics::GetAccuracyMetricsError, R>) -> Self {
1361        match err {
1362            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1363            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1364                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1365                source: err.into(),
1366            }),
1367        }
1368    }
1369}
1370impl From<crate::operation::get_accuracy_metrics::GetAccuracyMetricsError> for Error {
1371    fn from(err: crate::operation::get_accuracy_metrics::GetAccuracyMetricsError) -> Self {
1372        match err {
1373            crate::operation::get_accuracy_metrics::GetAccuracyMetricsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1374            crate::operation::get_accuracy_metrics::GetAccuracyMetricsError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1375            crate::operation::get_accuracy_metrics::GetAccuracyMetricsError::ResourceNotFoundException(inner) => {
1376                Error::ResourceNotFoundException(inner)
1377            }
1378            crate::operation::get_accuracy_metrics::GetAccuracyMetricsError::Unhandled(inner) => Error::Unhandled(inner),
1379        }
1380    }
1381}
1382impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dataset_groups::ListDatasetGroupsError, R>> for Error
1383where
1384    R: Send + Sync + std::fmt::Debug + 'static,
1385{
1386    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dataset_groups::ListDatasetGroupsError, R>) -> Self {
1387        match err {
1388            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1389            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1390                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1391                source: err.into(),
1392            }),
1393        }
1394    }
1395}
1396impl From<crate::operation::list_dataset_groups::ListDatasetGroupsError> for Error {
1397    fn from(err: crate::operation::list_dataset_groups::ListDatasetGroupsError) -> Self {
1398        match err {
1399            crate::operation::list_dataset_groups::ListDatasetGroupsError::InvalidNextTokenException(inner) => {
1400                Error::InvalidNextTokenException(inner)
1401            }
1402            crate::operation::list_dataset_groups::ListDatasetGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1403        }
1404    }
1405}
1406impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dataset_import_jobs::ListDatasetImportJobsError, R>> for Error
1407where
1408    R: Send + Sync + std::fmt::Debug + 'static,
1409{
1410    fn from(
1411        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dataset_import_jobs::ListDatasetImportJobsError, R>,
1412    ) -> Self {
1413        match err {
1414            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1415            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1416                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1417                source: err.into(),
1418            }),
1419        }
1420    }
1421}
1422impl From<crate::operation::list_dataset_import_jobs::ListDatasetImportJobsError> for Error {
1423    fn from(err: crate::operation::list_dataset_import_jobs::ListDatasetImportJobsError) -> Self {
1424        match err {
1425            crate::operation::list_dataset_import_jobs::ListDatasetImportJobsError::InvalidInputException(inner) => {
1426                Error::InvalidInputException(inner)
1427            }
1428            crate::operation::list_dataset_import_jobs::ListDatasetImportJobsError::InvalidNextTokenException(inner) => {
1429                Error::InvalidNextTokenException(inner)
1430            }
1431            crate::operation::list_dataset_import_jobs::ListDatasetImportJobsError::Unhandled(inner) => Error::Unhandled(inner),
1432        }
1433    }
1434}
1435impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_datasets::ListDatasetsError, R>> for Error
1436where
1437    R: Send + Sync + std::fmt::Debug + 'static,
1438{
1439    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_datasets::ListDatasetsError, R>) -> Self {
1440        match err {
1441            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1442            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1443                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1444                source: err.into(),
1445            }),
1446        }
1447    }
1448}
1449impl From<crate::operation::list_datasets::ListDatasetsError> for Error {
1450    fn from(err: crate::operation::list_datasets::ListDatasetsError) -> Self {
1451        match err {
1452            crate::operation::list_datasets::ListDatasetsError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
1453            crate::operation::list_datasets::ListDatasetsError::Unhandled(inner) => Error::Unhandled(inner),
1454        }
1455    }
1456}
1457impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_explainabilities::ListExplainabilitiesError, R>> for Error
1458where
1459    R: Send + Sync + std::fmt::Debug + 'static,
1460{
1461    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_explainabilities::ListExplainabilitiesError, R>) -> Self {
1462        match err {
1463            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1464            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1465                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1466                source: err.into(),
1467            }),
1468        }
1469    }
1470}
1471impl From<crate::operation::list_explainabilities::ListExplainabilitiesError> for Error {
1472    fn from(err: crate::operation::list_explainabilities::ListExplainabilitiesError) -> Self {
1473        match err {
1474            crate::operation::list_explainabilities::ListExplainabilitiesError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1475            crate::operation::list_explainabilities::ListExplainabilitiesError::InvalidNextTokenException(inner) => {
1476                Error::InvalidNextTokenException(inner)
1477            }
1478            crate::operation::list_explainabilities::ListExplainabilitiesError::Unhandled(inner) => Error::Unhandled(inner),
1479        }
1480    }
1481}
1482impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_explainability_exports::ListExplainabilityExportsError, R>>
1483    for Error
1484where
1485    R: Send + Sync + std::fmt::Debug + 'static,
1486{
1487    fn from(
1488        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_explainability_exports::ListExplainabilityExportsError, R>,
1489    ) -> Self {
1490        match err {
1491            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1492            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1493                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1494                source: err.into(),
1495            }),
1496        }
1497    }
1498}
1499impl From<crate::operation::list_explainability_exports::ListExplainabilityExportsError> for Error {
1500    fn from(err: crate::operation::list_explainability_exports::ListExplainabilityExportsError) -> Self {
1501        match err {
1502            crate::operation::list_explainability_exports::ListExplainabilityExportsError::InvalidInputException(inner) => {
1503                Error::InvalidInputException(inner)
1504            }
1505            crate::operation::list_explainability_exports::ListExplainabilityExportsError::InvalidNextTokenException(inner) => {
1506                Error::InvalidNextTokenException(inner)
1507            }
1508            crate::operation::list_explainability_exports::ListExplainabilityExportsError::Unhandled(inner) => Error::Unhandled(inner),
1509        }
1510    }
1511}
1512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_forecast_export_jobs::ListForecastExportJobsError, R>>
1513    for Error
1514where
1515    R: Send + Sync + std::fmt::Debug + 'static,
1516{
1517    fn from(
1518        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_forecast_export_jobs::ListForecastExportJobsError, R>,
1519    ) -> Self {
1520        match err {
1521            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1522            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1523                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1524                source: err.into(),
1525            }),
1526        }
1527    }
1528}
1529impl From<crate::operation::list_forecast_export_jobs::ListForecastExportJobsError> for Error {
1530    fn from(err: crate::operation::list_forecast_export_jobs::ListForecastExportJobsError) -> Self {
1531        match err {
1532            crate::operation::list_forecast_export_jobs::ListForecastExportJobsError::InvalidInputException(inner) => {
1533                Error::InvalidInputException(inner)
1534            }
1535            crate::operation::list_forecast_export_jobs::ListForecastExportJobsError::InvalidNextTokenException(inner) => {
1536                Error::InvalidNextTokenException(inner)
1537            }
1538            crate::operation::list_forecast_export_jobs::ListForecastExportJobsError::Unhandled(inner) => Error::Unhandled(inner),
1539        }
1540    }
1541}
1542impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_forecasts::ListForecastsError, R>> for Error
1543where
1544    R: Send + Sync + std::fmt::Debug + 'static,
1545{
1546    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_forecasts::ListForecastsError, R>) -> Self {
1547        match err {
1548            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1549            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1550                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1551                source: err.into(),
1552            }),
1553        }
1554    }
1555}
1556impl From<crate::operation::list_forecasts::ListForecastsError> for Error {
1557    fn from(err: crate::operation::list_forecasts::ListForecastsError) -> Self {
1558        match err {
1559            crate::operation::list_forecasts::ListForecastsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1560            crate::operation::list_forecasts::ListForecastsError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
1561            crate::operation::list_forecasts::ListForecastsError::Unhandled(inner) => Error::Unhandled(inner),
1562        }
1563    }
1564}
1565impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitor_evaluations::ListMonitorEvaluationsError, R>> for Error
1566where
1567    R: Send + Sync + std::fmt::Debug + 'static,
1568{
1569    fn from(
1570        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitor_evaluations::ListMonitorEvaluationsError, R>,
1571    ) -> Self {
1572        match err {
1573            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1574            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1575                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1576                source: err.into(),
1577            }),
1578        }
1579    }
1580}
1581impl From<crate::operation::list_monitor_evaluations::ListMonitorEvaluationsError> for Error {
1582    fn from(err: crate::operation::list_monitor_evaluations::ListMonitorEvaluationsError) -> Self {
1583        match err {
1584            crate::operation::list_monitor_evaluations::ListMonitorEvaluationsError::InvalidInputException(inner) => {
1585                Error::InvalidInputException(inner)
1586            }
1587            crate::operation::list_monitor_evaluations::ListMonitorEvaluationsError::InvalidNextTokenException(inner) => {
1588                Error::InvalidNextTokenException(inner)
1589            }
1590            crate::operation::list_monitor_evaluations::ListMonitorEvaluationsError::ResourceNotFoundException(inner) => {
1591                Error::ResourceNotFoundException(inner)
1592            }
1593            crate::operation::list_monitor_evaluations::ListMonitorEvaluationsError::Unhandled(inner) => Error::Unhandled(inner),
1594        }
1595    }
1596}
1597impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitors::ListMonitorsError, R>> for Error
1598where
1599    R: Send + Sync + std::fmt::Debug + 'static,
1600{
1601    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitors::ListMonitorsError, R>) -> Self {
1602        match err {
1603            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1604            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1605                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1606                source: err.into(),
1607            }),
1608        }
1609    }
1610}
1611impl From<crate::operation::list_monitors::ListMonitorsError> for Error {
1612    fn from(err: crate::operation::list_monitors::ListMonitorsError) -> Self {
1613        match err {
1614            crate::operation::list_monitors::ListMonitorsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1615            crate::operation::list_monitors::ListMonitorsError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
1616            crate::operation::list_monitors::ListMonitorsError::Unhandled(inner) => Error::Unhandled(inner),
1617        }
1618    }
1619}
1620impl<R>
1621    From<
1622        ::aws_smithy_runtime_api::client::result::SdkError<
1623            crate::operation::list_predictor_backtest_export_jobs::ListPredictorBacktestExportJobsError,
1624            R,
1625        >,
1626    > for Error
1627where
1628    R: Send + Sync + std::fmt::Debug + 'static,
1629{
1630    fn from(
1631        err: ::aws_smithy_runtime_api::client::result::SdkError<
1632            crate::operation::list_predictor_backtest_export_jobs::ListPredictorBacktestExportJobsError,
1633            R,
1634        >,
1635    ) -> Self {
1636        match err {
1637            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1638            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1639                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1640                source: err.into(),
1641            }),
1642        }
1643    }
1644}
1645impl From<crate::operation::list_predictor_backtest_export_jobs::ListPredictorBacktestExportJobsError> for Error {
1646    fn from(err: crate::operation::list_predictor_backtest_export_jobs::ListPredictorBacktestExportJobsError) -> Self {
1647        match err {
1648            crate::operation::list_predictor_backtest_export_jobs::ListPredictorBacktestExportJobsError::InvalidInputException(inner) => {
1649                Error::InvalidInputException(inner)
1650            }
1651            crate::operation::list_predictor_backtest_export_jobs::ListPredictorBacktestExportJobsError::InvalidNextTokenException(inner) => {
1652                Error::InvalidNextTokenException(inner)
1653            }
1654            crate::operation::list_predictor_backtest_export_jobs::ListPredictorBacktestExportJobsError::Unhandled(inner) => Error::Unhandled(inner),
1655        }
1656    }
1657}
1658impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_predictors::ListPredictorsError, R>> for Error
1659where
1660    R: Send + Sync + std::fmt::Debug + 'static,
1661{
1662    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_predictors::ListPredictorsError, R>) -> Self {
1663        match err {
1664            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1665            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1666                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1667                source: err.into(),
1668            }),
1669        }
1670    }
1671}
1672impl From<crate::operation::list_predictors::ListPredictorsError> for Error {
1673    fn from(err: crate::operation::list_predictors::ListPredictorsError) -> Self {
1674        match err {
1675            crate::operation::list_predictors::ListPredictorsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1676            crate::operation::list_predictors::ListPredictorsError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
1677            crate::operation::list_predictors::ListPredictorsError::Unhandled(inner) => Error::Unhandled(inner),
1678        }
1679    }
1680}
1681impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1682where
1683    R: Send + Sync + std::fmt::Debug + 'static,
1684{
1685    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1686        match err {
1687            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1688            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1689                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1690                source: err.into(),
1691            }),
1692        }
1693    }
1694}
1695impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1696    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1697        match err {
1698            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1699            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1700                Error::ResourceNotFoundException(inner)
1701            }
1702            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1703        }
1704    }
1705}
1706impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_what_if_analyses::ListWhatIfAnalysesError, R>> for Error
1707where
1708    R: Send + Sync + std::fmt::Debug + 'static,
1709{
1710    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_what_if_analyses::ListWhatIfAnalysesError, R>) -> Self {
1711        match err {
1712            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1713            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1714                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1715                source: err.into(),
1716            }),
1717        }
1718    }
1719}
1720impl From<crate::operation::list_what_if_analyses::ListWhatIfAnalysesError> for Error {
1721    fn from(err: crate::operation::list_what_if_analyses::ListWhatIfAnalysesError) -> Self {
1722        match err {
1723            crate::operation::list_what_if_analyses::ListWhatIfAnalysesError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1724            crate::operation::list_what_if_analyses::ListWhatIfAnalysesError::InvalidNextTokenException(inner) => {
1725                Error::InvalidNextTokenException(inner)
1726            }
1727            crate::operation::list_what_if_analyses::ListWhatIfAnalysesError::Unhandled(inner) => Error::Unhandled(inner),
1728        }
1729    }
1730}
1731impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_what_if_forecast_exports::ListWhatIfForecastExportsError, R>>
1732    for Error
1733where
1734    R: Send + Sync + std::fmt::Debug + 'static,
1735{
1736    fn from(
1737        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_what_if_forecast_exports::ListWhatIfForecastExportsError, R>,
1738    ) -> Self {
1739        match err {
1740            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1741            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1742                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1743                source: err.into(),
1744            }),
1745        }
1746    }
1747}
1748impl From<crate::operation::list_what_if_forecast_exports::ListWhatIfForecastExportsError> for Error {
1749    fn from(err: crate::operation::list_what_if_forecast_exports::ListWhatIfForecastExportsError) -> Self {
1750        match err {
1751            crate::operation::list_what_if_forecast_exports::ListWhatIfForecastExportsError::InvalidInputException(inner) => {
1752                Error::InvalidInputException(inner)
1753            }
1754            crate::operation::list_what_if_forecast_exports::ListWhatIfForecastExportsError::InvalidNextTokenException(inner) => {
1755                Error::InvalidNextTokenException(inner)
1756            }
1757            crate::operation::list_what_if_forecast_exports::ListWhatIfForecastExportsError::Unhandled(inner) => Error::Unhandled(inner),
1758        }
1759    }
1760}
1761impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_what_if_forecasts::ListWhatIfForecastsError, R>> for Error
1762where
1763    R: Send + Sync + std::fmt::Debug + 'static,
1764{
1765    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_what_if_forecasts::ListWhatIfForecastsError, R>) -> Self {
1766        match err {
1767            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1768            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1769                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1770                source: err.into(),
1771            }),
1772        }
1773    }
1774}
1775impl From<crate::operation::list_what_if_forecasts::ListWhatIfForecastsError> for Error {
1776    fn from(err: crate::operation::list_what_if_forecasts::ListWhatIfForecastsError) -> Self {
1777        match err {
1778            crate::operation::list_what_if_forecasts::ListWhatIfForecastsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1779            crate::operation::list_what_if_forecasts::ListWhatIfForecastsError::InvalidNextTokenException(inner) => {
1780                Error::InvalidNextTokenException(inner)
1781            }
1782            crate::operation::list_what_if_forecasts::ListWhatIfForecastsError::Unhandled(inner) => Error::Unhandled(inner),
1783        }
1784    }
1785}
1786impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resume_resource::ResumeResourceError, R>> for Error
1787where
1788    R: Send + Sync + std::fmt::Debug + 'static,
1789{
1790    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resume_resource::ResumeResourceError, R>) -> Self {
1791        match err {
1792            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1793            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1794                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1795                source: err.into(),
1796            }),
1797        }
1798    }
1799}
1800impl From<crate::operation::resume_resource::ResumeResourceError> for Error {
1801    fn from(err: crate::operation::resume_resource::ResumeResourceError) -> Self {
1802        match err {
1803            crate::operation::resume_resource::ResumeResourceError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1804            crate::operation::resume_resource::ResumeResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1805            crate::operation::resume_resource::ResumeResourceError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1806            crate::operation::resume_resource::ResumeResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1807            crate::operation::resume_resource::ResumeResourceError::Unhandled(inner) => Error::Unhandled(inner),
1808        }
1809    }
1810}
1811impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_resource::StopResourceError, R>> for Error
1812where
1813    R: Send + Sync + std::fmt::Debug + 'static,
1814{
1815    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_resource::StopResourceError, R>) -> Self {
1816        match err {
1817            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1818            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1819                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1820                source: err.into(),
1821            }),
1822        }
1823    }
1824}
1825impl From<crate::operation::stop_resource::StopResourceError> for Error {
1826    fn from(err: crate::operation::stop_resource::StopResourceError) -> Self {
1827        match err {
1828            crate::operation::stop_resource::StopResourceError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1829            crate::operation::stop_resource::StopResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1830            crate::operation::stop_resource::StopResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1831            crate::operation::stop_resource::StopResourceError::Unhandled(inner) => Error::Unhandled(inner),
1832        }
1833    }
1834}
1835impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1836where
1837    R: Send + Sync + std::fmt::Debug + 'static,
1838{
1839    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1840        match err {
1841            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1842            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1843                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1844                source: err.into(),
1845            }),
1846        }
1847    }
1848}
1849impl From<crate::operation::tag_resource::TagResourceError> for Error {
1850    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1851        match err {
1852            crate::operation::tag_resource::TagResourceError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1853            crate::operation::tag_resource::TagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1854            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1855            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1856        }
1857    }
1858}
1859impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1860where
1861    R: Send + Sync + std::fmt::Debug + 'static,
1862{
1863    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1864        match err {
1865            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1866            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1867                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1868                source: err.into(),
1869            }),
1870        }
1871    }
1872}
1873impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1874    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1875        match err {
1876            crate::operation::untag_resource::UntagResourceError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1877            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1878            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1879        }
1880    }
1881}
1882impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dataset_group::UpdateDatasetGroupError, R>> for Error
1883where
1884    R: Send + Sync + std::fmt::Debug + 'static,
1885{
1886    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dataset_group::UpdateDatasetGroupError, R>) -> Self {
1887        match err {
1888            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1889            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1890                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1891                source: err.into(),
1892            }),
1893        }
1894    }
1895}
1896impl From<crate::operation::update_dataset_group::UpdateDatasetGroupError> for Error {
1897    fn from(err: crate::operation::update_dataset_group::UpdateDatasetGroupError) -> Self {
1898        match err {
1899            crate::operation::update_dataset_group::UpdateDatasetGroupError::InvalidInputException(inner) => Error::InvalidInputException(inner),
1900            crate::operation::update_dataset_group::UpdateDatasetGroupError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1901            crate::operation::update_dataset_group::UpdateDatasetGroupError::ResourceNotFoundException(inner) => {
1902                Error::ResourceNotFoundException(inner)
1903            }
1904            crate::operation::update_dataset_group::UpdateDatasetGroupError::Unhandled(inner) => Error::Unhandled(inner),
1905        }
1906    }
1907}
1908impl ::std::error::Error for Error {
1909    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1910        match self {
1911            Error::InvalidInputException(inner) => inner.source(),
1912            Error::InvalidNextTokenException(inner) => inner.source(),
1913            Error::LimitExceededException(inner) => inner.source(),
1914            Error::ResourceAlreadyExistsException(inner) => inner.source(),
1915            Error::ResourceInUseException(inner) => inner.source(),
1916            Error::ResourceNotFoundException(inner) => inner.source(),
1917            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1918        }
1919    }
1920}
1921impl ::aws_types::request_id::RequestId for Error {
1922    fn request_id(&self) -> Option<&str> {
1923        match self {
1924            Self::InvalidInputException(e) => e.request_id(),
1925            Self::InvalidNextTokenException(e) => e.request_id(),
1926            Self::LimitExceededException(e) => e.request_id(),
1927            Self::ResourceAlreadyExistsException(e) => e.request_id(),
1928            Self::ResourceInUseException(e) => e.request_id(),
1929            Self::ResourceNotFoundException(e) => e.request_id(),
1930            Self::Unhandled(e) => e.meta.request_id(),
1931        }
1932    }
1933}