aws_sdk_amp/
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>You do not have sufficient access to perform this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The request would cause an inconsistent state.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>An unexpected error occurred during the processing of the request.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The request references a resources that doesn't exist.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>Completing the request would cause a service quota to be exceeded.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The request was denied due to request throttling.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
19    ValidationException(crate::types::error::ValidationException),
20    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
21    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22    variable wildcard pattern and check `.code()`:
23     \
24    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25     \
26    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27    Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31        match self {
32            Error::AccessDeniedException(inner) => inner.fmt(f),
33            Error::ConflictException(inner) => inner.fmt(f),
34            Error::InternalServerException(inner) => inner.fmt(f),
35            Error::ResourceNotFoundException(inner) => inner.fmt(f),
36            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37            Error::ThrottlingException(inner) => inner.fmt(f),
38            Error::ValidationException(inner) => inner.fmt(f),
39            Error::Unhandled(_) => {
40                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41                    write!(f, "unhandled error ({code})")
42                } else {
43                    f.write_str("unhandled error")
44                }
45            }
46        }
47    }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52            source: value.into(),
53            meta: ::std::default::Default::default(),
54        })
55    }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59        match self {
60            Self::AccessDeniedException(inner) => inner.meta(),
61            Self::ConflictException(inner) => inner.meta(),
62            Self::InternalServerException(inner) => inner.meta(),
63            Self::ResourceNotFoundException(inner) => inner.meta(),
64            Self::ServiceQuotaExceededException(inner) => inner.meta(),
65            Self::ThrottlingException(inner) => inner.meta(),
66            Self::ValidationException(inner) => inner.meta(),
67            Self::Unhandled(inner) => &inner.meta,
68        }
69    }
70}
71impl<R>
72    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError, R>>
73    for Error
74where
75    R: Send + Sync + std::fmt::Debug + 'static,
76{
77    fn from(
78        err: ::aws_smithy_runtime_api::client::result::SdkError<
79            crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError,
80            R,
81        >,
82    ) -> Self {
83        match err {
84            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
85            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
86                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
87                source: err.into(),
88            }),
89        }
90    }
91}
92impl From<crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError> for Error {
93    fn from(err: crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError) -> Self {
94        match err {
95            crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError::AccessDeniedException(inner) => {
96                Error::AccessDeniedException(inner)
97            }
98            crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError::ConflictException(inner) => {
99                Error::ConflictException(inner)
100            }
101            crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError::InternalServerException(inner) => {
102                Error::InternalServerException(inner)
103            }
104            crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError::ResourceNotFoundException(inner) => {
105                Error::ResourceNotFoundException(inner)
106            }
107            crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError::ServiceQuotaExceededException(inner) => {
108                Error::ServiceQuotaExceededException(inner)
109            }
110            crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError::ThrottlingException(inner) => {
111                Error::ThrottlingException(inner)
112            }
113            crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError::ValidationException(inner) => {
114                Error::ValidationException(inner)
115            }
116            crate::operation::create_alert_manager_definition::CreateAlertManagerDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
117        }
118    }
119}
120impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_anomaly_detector::CreateAnomalyDetectorError, R>> for Error
121where
122    R: Send + Sync + std::fmt::Debug + 'static,
123{
124    fn from(
125        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_anomaly_detector::CreateAnomalyDetectorError, R>,
126    ) -> Self {
127        match err {
128            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
129            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
130                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
131                source: err.into(),
132            }),
133        }
134    }
135}
136impl From<crate::operation::create_anomaly_detector::CreateAnomalyDetectorError> for Error {
137    fn from(err: crate::operation::create_anomaly_detector::CreateAnomalyDetectorError) -> Self {
138        match err {
139            crate::operation::create_anomaly_detector::CreateAnomalyDetectorError::AccessDeniedException(inner) => {
140                Error::AccessDeniedException(inner)
141            }
142            crate::operation::create_anomaly_detector::CreateAnomalyDetectorError::ConflictException(inner) => Error::ConflictException(inner),
143            crate::operation::create_anomaly_detector::CreateAnomalyDetectorError::InternalServerException(inner) => {
144                Error::InternalServerException(inner)
145            }
146            crate::operation::create_anomaly_detector::CreateAnomalyDetectorError::ServiceQuotaExceededException(inner) => {
147                Error::ServiceQuotaExceededException(inner)
148            }
149            crate::operation::create_anomaly_detector::CreateAnomalyDetectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
150            crate::operation::create_anomaly_detector::CreateAnomalyDetectorError::ValidationException(inner) => Error::ValidationException(inner),
151            crate::operation::create_anomaly_detector::CreateAnomalyDetectorError::Unhandled(inner) => Error::Unhandled(inner),
152        }
153    }
154}
155impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_logging_configuration::CreateLoggingConfigurationError, R>>
156    for Error
157where
158    R: Send + Sync + std::fmt::Debug + 'static,
159{
160    fn from(
161        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_logging_configuration::CreateLoggingConfigurationError, R>,
162    ) -> Self {
163        match err {
164            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
165            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
166                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
167                source: err.into(),
168            }),
169        }
170    }
171}
172impl From<crate::operation::create_logging_configuration::CreateLoggingConfigurationError> for Error {
173    fn from(err: crate::operation::create_logging_configuration::CreateLoggingConfigurationError) -> Self {
174        match err {
175            crate::operation::create_logging_configuration::CreateLoggingConfigurationError::AccessDeniedException(inner) => {
176                Error::AccessDeniedException(inner)
177            }
178            crate::operation::create_logging_configuration::CreateLoggingConfigurationError::InternalServerException(inner) => {
179                Error::InternalServerException(inner)
180            }
181            crate::operation::create_logging_configuration::CreateLoggingConfigurationError::ResourceNotFoundException(inner) => {
182                Error::ResourceNotFoundException(inner)
183            }
184            crate::operation::create_logging_configuration::CreateLoggingConfigurationError::ValidationException(inner) => {
185                Error::ValidationException(inner)
186            }
187            crate::operation::create_logging_configuration::CreateLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
188        }
189    }
190}
191impl<R>
192    From<
193        ::aws_smithy_runtime_api::client::result::SdkError<
194            crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError,
195            R,
196        >,
197    > for Error
198where
199    R: Send + Sync + std::fmt::Debug + 'static,
200{
201    fn from(
202        err: ::aws_smithy_runtime_api::client::result::SdkError<
203            crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError,
204            R,
205        >,
206    ) -> Self {
207        match err {
208            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
209            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
210                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
211                source: err.into(),
212            }),
213        }
214    }
215}
216impl From<crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError> for Error {
217    fn from(err: crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError) -> Self {
218        match err {
219            crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError::AccessDeniedException(inner) => {
220                Error::AccessDeniedException(inner)
221            }
222            crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError::InternalServerException(inner) => {
223                Error::InternalServerException(inner)
224            }
225            crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError::ResourceNotFoundException(inner) => {
226                Error::ResourceNotFoundException(inner)
227            }
228            crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError::ValidationException(inner) => {
229                Error::ValidationException(inner)
230            }
231            crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
232        }
233    }
234}
235impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError, R>>
236    for Error
237where
238    R: Send + Sync + std::fmt::Debug + 'static,
239{
240    fn from(
241        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError, R>,
242    ) -> Self {
243        match err {
244            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
245            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
246                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
247                source: err.into(),
248            }),
249        }
250    }
251}
252impl From<crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError> for Error {
253    fn from(err: crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError) -> Self {
254        match err {
255            crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::AccessDeniedException(inner) => {
256                Error::AccessDeniedException(inner)
257            }
258            crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::ConflictException(inner) => {
259                Error::ConflictException(inner)
260            }
261            crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::InternalServerException(inner) => {
262                Error::InternalServerException(inner)
263            }
264            crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::ResourceNotFoundException(inner) => {
265                Error::ResourceNotFoundException(inner)
266            }
267            crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::ServiceQuotaExceededException(inner) => {
268                Error::ServiceQuotaExceededException(inner)
269            }
270            crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::ThrottlingException(inner) => {
271                Error::ThrottlingException(inner)
272            }
273            crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::ValidationException(inner) => {
274                Error::ValidationException(inner)
275            }
276            crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
277        }
278    }
279}
280impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scraper::CreateScraperError, R>> for Error
281where
282    R: Send + Sync + std::fmt::Debug + 'static,
283{
284    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scraper::CreateScraperError, R>) -> Self {
285        match err {
286            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
287            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
288                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
289                source: err.into(),
290            }),
291        }
292    }
293}
294impl From<crate::operation::create_scraper::CreateScraperError> for Error {
295    fn from(err: crate::operation::create_scraper::CreateScraperError) -> Self {
296        match err {
297            crate::operation::create_scraper::CreateScraperError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
298            crate::operation::create_scraper::CreateScraperError::ConflictException(inner) => Error::ConflictException(inner),
299            crate::operation::create_scraper::CreateScraperError::InternalServerException(inner) => Error::InternalServerException(inner),
300            crate::operation::create_scraper::CreateScraperError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
301            crate::operation::create_scraper::CreateScraperError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
302            crate::operation::create_scraper::CreateScraperError::ThrottlingException(inner) => Error::ThrottlingException(inner),
303            crate::operation::create_scraper::CreateScraperError::ValidationException(inner) => Error::ValidationException(inner),
304            crate::operation::create_scraper::CreateScraperError::Unhandled(inner) => Error::Unhandled(inner),
305        }
306    }
307}
308impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workspace::CreateWorkspaceError, R>> for Error
309where
310    R: Send + Sync + std::fmt::Debug + 'static,
311{
312    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workspace::CreateWorkspaceError, R>) -> Self {
313        match err {
314            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
315            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
316                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
317                source: err.into(),
318            }),
319        }
320    }
321}
322impl From<crate::operation::create_workspace::CreateWorkspaceError> for Error {
323    fn from(err: crate::operation::create_workspace::CreateWorkspaceError) -> Self {
324        match err {
325            crate::operation::create_workspace::CreateWorkspaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
326            crate::operation::create_workspace::CreateWorkspaceError::ConflictException(inner) => Error::ConflictException(inner),
327            crate::operation::create_workspace::CreateWorkspaceError::InternalServerException(inner) => Error::InternalServerException(inner),
328            crate::operation::create_workspace::CreateWorkspaceError::ServiceQuotaExceededException(inner) => {
329                Error::ServiceQuotaExceededException(inner)
330            }
331            crate::operation::create_workspace::CreateWorkspaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
332            crate::operation::create_workspace::CreateWorkspaceError::ValidationException(inner) => Error::ValidationException(inner),
333            crate::operation::create_workspace::CreateWorkspaceError::Unhandled(inner) => Error::Unhandled(inner),
334        }
335    }
336}
337impl<R>
338    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError, R>>
339    for Error
340where
341    R: Send + Sync + std::fmt::Debug + 'static,
342{
343    fn from(
344        err: ::aws_smithy_runtime_api::client::result::SdkError<
345            crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError,
346            R,
347        >,
348    ) -> Self {
349        match err {
350            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
351            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
352                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
353                source: err.into(),
354            }),
355        }
356    }
357}
358impl From<crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError> for Error {
359    fn from(err: crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError) -> Self {
360        match err {
361            crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::AccessDeniedException(inner) => {
362                Error::AccessDeniedException(inner)
363            }
364            crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::ConflictException(inner) => {
365                Error::ConflictException(inner)
366            }
367            crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::InternalServerException(inner) => {
368                Error::InternalServerException(inner)
369            }
370            crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::ResourceNotFoundException(inner) => {
371                Error::ResourceNotFoundException(inner)
372            }
373            crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::ThrottlingException(inner) => {
374                Error::ThrottlingException(inner)
375            }
376            crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::ValidationException(inner) => {
377                Error::ValidationException(inner)
378            }
379            crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
380        }
381    }
382}
383impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError, R>> for Error
384where
385    R: Send + Sync + std::fmt::Debug + 'static,
386{
387    fn from(
388        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError, R>,
389    ) -> Self {
390        match err {
391            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
392            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
393                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
394                source: err.into(),
395            }),
396        }
397    }
398}
399impl From<crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError> for Error {
400    fn from(err: crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError) -> Self {
401        match err {
402            crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError::AccessDeniedException(inner) => {
403                Error::AccessDeniedException(inner)
404            }
405            crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError::ConflictException(inner) => Error::ConflictException(inner),
406            crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError::InternalServerException(inner) => {
407                Error::InternalServerException(inner)
408            }
409            crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError::ResourceNotFoundException(inner) => {
410                Error::ResourceNotFoundException(inner)
411            }
412            crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
413            crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError::ValidationException(inner) => Error::ValidationException(inner),
414            crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError::Unhandled(inner) => Error::Unhandled(inner),
415        }
416    }
417}
418impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError, R>>
419    for Error
420where
421    R: Send + Sync + std::fmt::Debug + 'static,
422{
423    fn from(
424        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError, R>,
425    ) -> Self {
426        match err {
427            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
428            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
429                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
430                source: err.into(),
431            }),
432        }
433    }
434}
435impl From<crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError> for Error {
436    fn from(err: crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError) -> Self {
437        match err {
438            crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::AccessDeniedException(inner) => {
439                Error::AccessDeniedException(inner)
440            }
441            crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::ConflictException(inner) => {
442                Error::ConflictException(inner)
443            }
444            crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::InternalServerException(inner) => {
445                Error::InternalServerException(inner)
446            }
447            crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::ResourceNotFoundException(inner) => {
448                Error::ResourceNotFoundException(inner)
449            }
450            crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::ValidationException(inner) => {
451                Error::ValidationException(inner)
452            }
453            crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
454        }
455    }
456}
457impl<R>
458    From<
459        ::aws_smithy_runtime_api::client::result::SdkError<
460            crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError,
461            R,
462        >,
463    > for Error
464where
465    R: Send + Sync + std::fmt::Debug + 'static,
466{
467    fn from(
468        err: ::aws_smithy_runtime_api::client::result::SdkError<
469            crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError,
470            R,
471        >,
472    ) -> Self {
473        match err {
474            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
475            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
476                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
477                source: err.into(),
478            }),
479        }
480    }
481}
482impl From<crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError> for Error {
483    fn from(err: crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError) -> Self {
484        match err {
485            crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::AccessDeniedException(inner) => {
486                Error::AccessDeniedException(inner)
487            }
488            crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::ConflictException(inner) => {
489                Error::ConflictException(inner)
490            }
491            crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::InternalServerException(inner) => {
492                Error::InternalServerException(inner)
493            }
494            crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::ResourceNotFoundException(inner) => {
495                Error::ResourceNotFoundException(inner)
496            }
497            crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::ValidationException(inner) => {
498                Error::ValidationException(inner)
499            }
500            crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
501        }
502    }
503}
504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
505where
506    R: Send + Sync + std::fmt::Debug + 'static,
507{
508    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
509        match err {
510            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
511            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
512                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
513                source: err.into(),
514            }),
515        }
516    }
517}
518impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
519    fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
520        match err {
521            crate::operation::delete_resource_policy::DeleteResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
522            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
523            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
524                Error::InternalServerException(inner)
525            }
526            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
527                Error::ResourceNotFoundException(inner)
528            }
529            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
530            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
531            crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
532        }
533    }
534}
535impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError, R>>
536    for Error
537where
538    R: Send + Sync + std::fmt::Debug + 'static,
539{
540    fn from(
541        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError, R>,
542    ) -> Self {
543        match err {
544            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
545            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
546                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
547                source: err.into(),
548            }),
549        }
550    }
551}
552impl From<crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError> for Error {
553    fn from(err: crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError) -> Self {
554        match err {
555            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::AccessDeniedException(inner) => {
556                Error::AccessDeniedException(inner)
557            }
558            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::ConflictException(inner) => {
559                Error::ConflictException(inner)
560            }
561            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::InternalServerException(inner) => {
562                Error::InternalServerException(inner)
563            }
564            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::ResourceNotFoundException(inner) => {
565                Error::ResourceNotFoundException(inner)
566            }
567            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::ThrottlingException(inner) => {
568                Error::ThrottlingException(inner)
569            }
570            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::ValidationException(inner) => {
571                Error::ValidationException(inner)
572            }
573            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
574        }
575    }
576}
577impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scraper::DeleteScraperError, R>> for Error
578where
579    R: Send + Sync + std::fmt::Debug + 'static,
580{
581    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scraper::DeleteScraperError, R>) -> Self {
582        match err {
583            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
584            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
585                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
586                source: err.into(),
587            }),
588        }
589    }
590}
591impl From<crate::operation::delete_scraper::DeleteScraperError> for Error {
592    fn from(err: crate::operation::delete_scraper::DeleteScraperError) -> Self {
593        match err {
594            crate::operation::delete_scraper::DeleteScraperError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
595            crate::operation::delete_scraper::DeleteScraperError::ConflictException(inner) => Error::ConflictException(inner),
596            crate::operation::delete_scraper::DeleteScraperError::InternalServerException(inner) => Error::InternalServerException(inner),
597            crate::operation::delete_scraper::DeleteScraperError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
598            crate::operation::delete_scraper::DeleteScraperError::ThrottlingException(inner) => Error::ThrottlingException(inner),
599            crate::operation::delete_scraper::DeleteScraperError::ValidationException(inner) => Error::ValidationException(inner),
600            crate::operation::delete_scraper::DeleteScraperError::Unhandled(inner) => Error::Unhandled(inner),
601        }
602    }
603}
604impl<R>
605    From<
606        ::aws_smithy_runtime_api::client::result::SdkError<
607            crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError,
608            R,
609        >,
610    > for Error
611where
612    R: Send + Sync + std::fmt::Debug + 'static,
613{
614    fn from(
615        err: ::aws_smithy_runtime_api::client::result::SdkError<
616            crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError,
617            R,
618        >,
619    ) -> Self {
620        match err {
621            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
622            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
623                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
624                source: err.into(),
625            }),
626        }
627    }
628}
629impl From<crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError> for Error {
630    fn from(err: crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError) -> Self {
631        match err {
632            crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError::AccessDeniedException(inner) => {
633                Error::AccessDeniedException(inner)
634            }
635            crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError::ConflictException(inner) => {
636                Error::ConflictException(inner)
637            }
638            crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError::InternalServerException(inner) => {
639                Error::InternalServerException(inner)
640            }
641            crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError::ResourceNotFoundException(inner) => {
642                Error::ResourceNotFoundException(inner)
643            }
644            crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError::ValidationException(inner) => {
645                Error::ValidationException(inner)
646            }
647            crate::operation::delete_scraper_logging_configuration::DeleteScraperLoggingConfigurationError::Unhandled(inner) => {
648                Error::Unhandled(inner)
649            }
650        }
651    }
652}
653impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workspace::DeleteWorkspaceError, R>> for Error
654where
655    R: Send + Sync + std::fmt::Debug + 'static,
656{
657    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workspace::DeleteWorkspaceError, R>) -> Self {
658        match err {
659            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
660            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
661                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
662                source: err.into(),
663            }),
664        }
665    }
666}
667impl From<crate::operation::delete_workspace::DeleteWorkspaceError> for Error {
668    fn from(err: crate::operation::delete_workspace::DeleteWorkspaceError) -> Self {
669        match err {
670            crate::operation::delete_workspace::DeleteWorkspaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
671            crate::operation::delete_workspace::DeleteWorkspaceError::ConflictException(inner) => Error::ConflictException(inner),
672            crate::operation::delete_workspace::DeleteWorkspaceError::InternalServerException(inner) => Error::InternalServerException(inner),
673            crate::operation::delete_workspace::DeleteWorkspaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
674            crate::operation::delete_workspace::DeleteWorkspaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
675            crate::operation::delete_workspace::DeleteWorkspaceError::ValidationException(inner) => Error::ValidationException(inner),
676            crate::operation::delete_workspace::DeleteWorkspaceError::Unhandled(inner) => Error::Unhandled(inner),
677        }
678    }
679}
680impl<R>
681    From<
682        ::aws_smithy_runtime_api::client::result::SdkError<
683            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError,
684            R,
685        >,
686    > for Error
687where
688    R: Send + Sync + std::fmt::Debug + 'static,
689{
690    fn from(
691        err: ::aws_smithy_runtime_api::client::result::SdkError<
692            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError,
693            R,
694        >,
695    ) -> Self {
696        match err {
697            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
698            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
699                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
700                source: err.into(),
701            }),
702        }
703    }
704}
705impl From<crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError> for Error {
706    fn from(err: crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError) -> Self {
707        match err {
708            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::AccessDeniedException(inner) => {
709                Error::AccessDeniedException(inner)
710            }
711            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::InternalServerException(inner) => {
712                Error::InternalServerException(inner)
713            }
714            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::ResourceNotFoundException(inner) => {
715                Error::ResourceNotFoundException(inner)
716            }
717            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::ThrottlingException(inner) => {
718                Error::ThrottlingException(inner)
719            }
720            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::ValidationException(inner) => {
721                Error::ValidationException(inner)
722            }
723            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
724        }
725    }
726}
727impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_anomaly_detector::DescribeAnomalyDetectorError, R>>
728    for Error
729where
730    R: Send + Sync + std::fmt::Debug + 'static,
731{
732    fn from(
733        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_anomaly_detector::DescribeAnomalyDetectorError, R>,
734    ) -> Self {
735        match err {
736            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
737            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
738                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
739                source: err.into(),
740            }),
741        }
742    }
743}
744impl From<crate::operation::describe_anomaly_detector::DescribeAnomalyDetectorError> for Error {
745    fn from(err: crate::operation::describe_anomaly_detector::DescribeAnomalyDetectorError) -> Self {
746        match err {
747            crate::operation::describe_anomaly_detector::DescribeAnomalyDetectorError::AccessDeniedException(inner) => {
748                Error::AccessDeniedException(inner)
749            }
750            crate::operation::describe_anomaly_detector::DescribeAnomalyDetectorError::InternalServerException(inner) => {
751                Error::InternalServerException(inner)
752            }
753            crate::operation::describe_anomaly_detector::DescribeAnomalyDetectorError::ResourceNotFoundException(inner) => {
754                Error::ResourceNotFoundException(inner)
755            }
756            crate::operation::describe_anomaly_detector::DescribeAnomalyDetectorError::ThrottlingException(inner) => {
757                Error::ThrottlingException(inner)
758            }
759            crate::operation::describe_anomaly_detector::DescribeAnomalyDetectorError::ValidationException(inner) => {
760                Error::ValidationException(inner)
761            }
762            crate::operation::describe_anomaly_detector::DescribeAnomalyDetectorError::Unhandled(inner) => Error::Unhandled(inner),
763        }
764    }
765}
766impl<R>
767    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError, R>>
768    for Error
769where
770    R: Send + Sync + std::fmt::Debug + 'static,
771{
772    fn from(
773        err: ::aws_smithy_runtime_api::client::result::SdkError<
774            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError,
775            R,
776        >,
777    ) -> Self {
778        match err {
779            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
780            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
781                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
782                source: err.into(),
783            }),
784        }
785    }
786}
787impl From<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError> for Error {
788    fn from(err: crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError) -> Self {
789        match err {
790            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::AccessDeniedException(inner) => {
791                Error::AccessDeniedException(inner)
792            }
793            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::InternalServerException(inner) => {
794                Error::InternalServerException(inner)
795            }
796            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ResourceNotFoundException(inner) => {
797                Error::ResourceNotFoundException(inner)
798            }
799            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ValidationException(inner) => {
800                Error::ValidationException(inner)
801            }
802            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
803        }
804    }
805}
806impl<R>
807    From<
808        ::aws_smithy_runtime_api::client::result::SdkError<
809            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError,
810            R,
811        >,
812    > for Error
813where
814    R: Send + Sync + std::fmt::Debug + 'static,
815{
816    fn from(
817        err: ::aws_smithy_runtime_api::client::result::SdkError<
818            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError,
819            R,
820        >,
821    ) -> Self {
822        match err {
823            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
824            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
825                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
826                source: err.into(),
827            }),
828        }
829    }
830}
831impl From<crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError> for Error {
832    fn from(err: crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError) -> Self {
833        match err {
834            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::AccessDeniedException(inner) => {
835                Error::AccessDeniedException(inner)
836            }
837            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::InternalServerException(inner) => {
838                Error::InternalServerException(inner)
839            }
840            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::ResourceNotFoundException(inner) => {
841                Error::ResourceNotFoundException(inner)
842            }
843            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::ValidationException(inner) => {
844                Error::ValidationException(inner)
845            }
846            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::Unhandled(inner) => {
847                Error::Unhandled(inner)
848            }
849        }
850    }
851}
852impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>> for Error
853where
854    R: Send + Sync + std::fmt::Debug + 'static,
855{
856    fn from(
857        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>,
858    ) -> Self {
859        match err {
860            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
861            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
862                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
863                source: err.into(),
864            }),
865        }
866    }
867}
868impl From<crate::operation::describe_resource_policy::DescribeResourcePolicyError> for Error {
869    fn from(err: crate::operation::describe_resource_policy::DescribeResourcePolicyError) -> Self {
870        match err {
871            crate::operation::describe_resource_policy::DescribeResourcePolicyError::AccessDeniedException(inner) => {
872                Error::AccessDeniedException(inner)
873            }
874            crate::operation::describe_resource_policy::DescribeResourcePolicyError::InternalServerException(inner) => {
875                Error::InternalServerException(inner)
876            }
877            crate::operation::describe_resource_policy::DescribeResourcePolicyError::ResourceNotFoundException(inner) => {
878                Error::ResourceNotFoundException(inner)
879            }
880            crate::operation::describe_resource_policy::DescribeResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
881            crate::operation::describe_resource_policy::DescribeResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
882            crate::operation::describe_resource_policy::DescribeResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
883        }
884    }
885}
886impl<R>
887    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError, R>>
888    for Error
889where
890    R: Send + Sync + std::fmt::Debug + 'static,
891{
892    fn from(
893        err: ::aws_smithy_runtime_api::client::result::SdkError<
894            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError,
895            R,
896        >,
897    ) -> Self {
898        match err {
899            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
900            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
901                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
902                source: err.into(),
903            }),
904        }
905    }
906}
907impl From<crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError> for Error {
908    fn from(err: crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError) -> Self {
909        match err {
910            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::AccessDeniedException(inner) => {
911                Error::AccessDeniedException(inner)
912            }
913            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::InternalServerException(inner) => {
914                Error::InternalServerException(inner)
915            }
916            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::ResourceNotFoundException(inner) => {
917                Error::ResourceNotFoundException(inner)
918            }
919            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::ThrottlingException(inner) => {
920                Error::ThrottlingException(inner)
921            }
922            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::ValidationException(inner) => {
923                Error::ValidationException(inner)
924            }
925            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
926        }
927    }
928}
929impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scraper::DescribeScraperError, R>> for Error
930where
931    R: Send + Sync + std::fmt::Debug + 'static,
932{
933    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scraper::DescribeScraperError, R>) -> Self {
934        match err {
935            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
936            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
937                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
938                source: err.into(),
939            }),
940        }
941    }
942}
943impl From<crate::operation::describe_scraper::DescribeScraperError> for Error {
944    fn from(err: crate::operation::describe_scraper::DescribeScraperError) -> Self {
945        match err {
946            crate::operation::describe_scraper::DescribeScraperError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
947            crate::operation::describe_scraper::DescribeScraperError::InternalServerException(inner) => Error::InternalServerException(inner),
948            crate::operation::describe_scraper::DescribeScraperError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
949            crate::operation::describe_scraper::DescribeScraperError::ThrottlingException(inner) => Error::ThrottlingException(inner),
950            crate::operation::describe_scraper::DescribeScraperError::ValidationException(inner) => Error::ValidationException(inner),
951            crate::operation::describe_scraper::DescribeScraperError::Unhandled(inner) => Error::Unhandled(inner),
952        }
953    }
954}
955impl<R>
956    From<
957        ::aws_smithy_runtime_api::client::result::SdkError<
958            crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError,
959            R,
960        >,
961    > for Error
962where
963    R: Send + Sync + std::fmt::Debug + 'static,
964{
965    fn from(
966        err: ::aws_smithy_runtime_api::client::result::SdkError<
967            crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError,
968            R,
969        >,
970    ) -> Self {
971        match err {
972            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
973            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
974                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
975                source: err.into(),
976            }),
977        }
978    }
979}
980impl From<crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError> for Error {
981    fn from(err: crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError) -> Self {
982        match err {
983            crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError::AccessDeniedException(inner) => {
984                Error::AccessDeniedException(inner)
985            }
986            crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError::InternalServerException(inner) => {
987                Error::InternalServerException(inner)
988            }
989            crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError::ResourceNotFoundException(inner) => {
990                Error::ResourceNotFoundException(inner)
991            }
992            crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError::ValidationException(inner) => {
993                Error::ValidationException(inner)
994            }
995            crate::operation::describe_scraper_logging_configuration::DescribeScraperLoggingConfigurationError::Unhandled(inner) => {
996                Error::Unhandled(inner)
997            }
998        }
999    }
1000}
1001impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workspace::DescribeWorkspaceError, R>> for Error
1002where
1003    R: Send + Sync + std::fmt::Debug + 'static,
1004{
1005    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workspace::DescribeWorkspaceError, R>) -> Self {
1006        match err {
1007            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1008            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1009                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1010                source: err.into(),
1011            }),
1012        }
1013    }
1014}
1015impl From<crate::operation::describe_workspace::DescribeWorkspaceError> for Error {
1016    fn from(err: crate::operation::describe_workspace::DescribeWorkspaceError) -> Self {
1017        match err {
1018            crate::operation::describe_workspace::DescribeWorkspaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1019            crate::operation::describe_workspace::DescribeWorkspaceError::InternalServerException(inner) => Error::InternalServerException(inner),
1020            crate::operation::describe_workspace::DescribeWorkspaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1021            crate::operation::describe_workspace::DescribeWorkspaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1022            crate::operation::describe_workspace::DescribeWorkspaceError::ValidationException(inner) => Error::ValidationException(inner),
1023            crate::operation::describe_workspace::DescribeWorkspaceError::Unhandled(inner) => Error::Unhandled(inner),
1024        }
1025    }
1026}
1027impl<R>
1028    From<
1029        ::aws_smithy_runtime_api::client::result::SdkError<
1030            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError,
1031            R,
1032        >,
1033    > for Error
1034where
1035    R: Send + Sync + std::fmt::Debug + 'static,
1036{
1037    fn from(
1038        err: ::aws_smithy_runtime_api::client::result::SdkError<
1039            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError,
1040            R,
1041        >,
1042    ) -> Self {
1043        match err {
1044            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1045            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1046                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1047                source: err.into(),
1048            }),
1049        }
1050    }
1051}
1052impl From<crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError> for Error {
1053    fn from(err: crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError) -> Self {
1054        match err {
1055            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::AccessDeniedException(inner) => {
1056                Error::AccessDeniedException(inner)
1057            }
1058            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::InternalServerException(inner) => {
1059                Error::InternalServerException(inner)
1060            }
1061            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::ResourceNotFoundException(inner) => {
1062                Error::ResourceNotFoundException(inner)
1063            }
1064            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::ThrottlingException(inner) => {
1065                Error::ThrottlingException(inner)
1066            }
1067            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::ValidationException(inner) => {
1068                Error::ValidationException(inner)
1069            }
1070            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1071        }
1072    }
1073}
1074impl<R>
1075    From<
1076        ::aws_smithy_runtime_api::client::result::SdkError<
1077            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError,
1078            R,
1079        >,
1080    > for Error
1081where
1082    R: Send + Sync + std::fmt::Debug + 'static,
1083{
1084    fn from(
1085        err: ::aws_smithy_runtime_api::client::result::SdkError<
1086            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError,
1087            R,
1088        >,
1089    ) -> Self {
1090        match err {
1091            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1092            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1093                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1094                source: err.into(),
1095            }),
1096        }
1097    }
1098}
1099impl From<crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError> for Error {
1100    fn from(err: crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError) -> Self {
1101        match err {
1102            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError::AccessDeniedException(inner) => {
1103                Error::AccessDeniedException(inner)
1104            }
1105            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError::InternalServerException(inner) => {
1106                Error::InternalServerException(inner)
1107            }
1108            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError::ThrottlingException(inner) => {
1109                Error::ThrottlingException(inner)
1110            }
1111            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1112        }
1113    }
1114}
1115impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_anomaly_detectors::ListAnomalyDetectorsError, R>> for Error
1116where
1117    R: Send + Sync + std::fmt::Debug + 'static,
1118{
1119    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_anomaly_detectors::ListAnomalyDetectorsError, R>) -> Self {
1120        match err {
1121            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1122            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1123                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1124                source: err.into(),
1125            }),
1126        }
1127    }
1128}
1129impl From<crate::operation::list_anomaly_detectors::ListAnomalyDetectorsError> for Error {
1130    fn from(err: crate::operation::list_anomaly_detectors::ListAnomalyDetectorsError) -> Self {
1131        match err {
1132            crate::operation::list_anomaly_detectors::ListAnomalyDetectorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1133            crate::operation::list_anomaly_detectors::ListAnomalyDetectorsError::InternalServerException(inner) => {
1134                Error::InternalServerException(inner)
1135            }
1136            crate::operation::list_anomaly_detectors::ListAnomalyDetectorsError::ResourceNotFoundException(inner) => {
1137                Error::ResourceNotFoundException(inner)
1138            }
1139            crate::operation::list_anomaly_detectors::ListAnomalyDetectorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1140            crate::operation::list_anomaly_detectors::ListAnomalyDetectorsError::ValidationException(inner) => Error::ValidationException(inner),
1141            crate::operation::list_anomaly_detectors::ListAnomalyDetectorsError::Unhandled(inner) => Error::Unhandled(inner),
1142        }
1143    }
1144}
1145impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError, R>>
1146    for Error
1147where
1148    R: Send + Sync + std::fmt::Debug + 'static,
1149{
1150    fn from(
1151        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError, R>,
1152    ) -> Self {
1153        match err {
1154            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1155            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1156                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1157                source: err.into(),
1158            }),
1159        }
1160    }
1161}
1162impl From<crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError> for Error {
1163    fn from(err: crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError) -> Self {
1164        match err {
1165            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::AccessDeniedException(inner) => {
1166                Error::AccessDeniedException(inner)
1167            }
1168            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::InternalServerException(inner) => {
1169                Error::InternalServerException(inner)
1170            }
1171            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::ResourceNotFoundException(inner) => {
1172                Error::ResourceNotFoundException(inner)
1173            }
1174            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::ThrottlingException(inner) => {
1175                Error::ThrottlingException(inner)
1176            }
1177            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::ValidationException(inner) => {
1178                Error::ValidationException(inner)
1179            }
1180            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::Unhandled(inner) => Error::Unhandled(inner),
1181        }
1182    }
1183}
1184impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scrapers::ListScrapersError, R>> for Error
1185where
1186    R: Send + Sync + std::fmt::Debug + 'static,
1187{
1188    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scrapers::ListScrapersError, R>) -> Self {
1189        match err {
1190            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1191            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1192                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1193                source: err.into(),
1194            }),
1195        }
1196    }
1197}
1198impl From<crate::operation::list_scrapers::ListScrapersError> for Error {
1199    fn from(err: crate::operation::list_scrapers::ListScrapersError) -> Self {
1200        match err {
1201            crate::operation::list_scrapers::ListScrapersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1202            crate::operation::list_scrapers::ListScrapersError::InternalServerException(inner) => Error::InternalServerException(inner),
1203            crate::operation::list_scrapers::ListScrapersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1204            crate::operation::list_scrapers::ListScrapersError::ValidationException(inner) => Error::ValidationException(inner),
1205            crate::operation::list_scrapers::ListScrapersError::Unhandled(inner) => Error::Unhandled(inner),
1206        }
1207    }
1208}
1209impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1210where
1211    R: Send + Sync + std::fmt::Debug + 'static,
1212{
1213    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1214        match err {
1215            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1216            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1217                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1218                source: err.into(),
1219            }),
1220        }
1221    }
1222}
1223impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1224    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1225        match err {
1226            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1227            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
1228                Error::InternalServerException(inner)
1229            }
1230            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1231                Error::ResourceNotFoundException(inner)
1232            }
1233            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1234            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
1235            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1236        }
1237    }
1238}
1239impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workspaces::ListWorkspacesError, R>> for Error
1240where
1241    R: Send + Sync + std::fmt::Debug + 'static,
1242{
1243    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workspaces::ListWorkspacesError, R>) -> Self {
1244        match err {
1245            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1246            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1247                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1248                source: err.into(),
1249            }),
1250        }
1251    }
1252}
1253impl From<crate::operation::list_workspaces::ListWorkspacesError> for Error {
1254    fn from(err: crate::operation::list_workspaces::ListWorkspacesError) -> Self {
1255        match err {
1256            crate::operation::list_workspaces::ListWorkspacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1257            crate::operation::list_workspaces::ListWorkspacesError::InternalServerException(inner) => Error::InternalServerException(inner),
1258            crate::operation::list_workspaces::ListWorkspacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1259            crate::operation::list_workspaces::ListWorkspacesError::ValidationException(inner) => Error::ValidationException(inner),
1260            crate::operation::list_workspaces::ListWorkspacesError::Unhandled(inner) => Error::Unhandled(inner),
1261        }
1262    }
1263}
1264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError, R>>
1265    for Error
1266where
1267    R: Send + Sync + std::fmt::Debug + 'static,
1268{
1269    fn from(
1270        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError, R>,
1271    ) -> Self {
1272        match err {
1273            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1274            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1275                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1276                source: err.into(),
1277            }),
1278        }
1279    }
1280}
1281impl From<crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError> for Error {
1282    fn from(err: crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError) -> Self {
1283        match err {
1284            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::AccessDeniedException(inner) => {
1285                Error::AccessDeniedException(inner)
1286            }
1287            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ConflictException(inner) => {
1288                Error::ConflictException(inner)
1289            }
1290            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::InternalServerException(inner) => {
1291                Error::InternalServerException(inner)
1292            }
1293            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ResourceNotFoundException(inner) => {
1294                Error::ResourceNotFoundException(inner)
1295            }
1296            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ServiceQuotaExceededException(inner) => {
1297                Error::ServiceQuotaExceededException(inner)
1298            }
1299            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ThrottlingException(inner) => {
1300                Error::ThrottlingException(inner)
1301            }
1302            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ValidationException(inner) => {
1303                Error::ValidationException(inner)
1304            }
1305            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1306        }
1307    }
1308}
1309impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_anomaly_detector::PutAnomalyDetectorError, R>> for Error
1310where
1311    R: Send + Sync + std::fmt::Debug + 'static,
1312{
1313    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_anomaly_detector::PutAnomalyDetectorError, R>) -> Self {
1314        match err {
1315            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1316            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1317                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1318                source: err.into(),
1319            }),
1320        }
1321    }
1322}
1323impl From<crate::operation::put_anomaly_detector::PutAnomalyDetectorError> for Error {
1324    fn from(err: crate::operation::put_anomaly_detector::PutAnomalyDetectorError) -> Self {
1325        match err {
1326            crate::operation::put_anomaly_detector::PutAnomalyDetectorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1327            crate::operation::put_anomaly_detector::PutAnomalyDetectorError::ConflictException(inner) => Error::ConflictException(inner),
1328            crate::operation::put_anomaly_detector::PutAnomalyDetectorError::InternalServerException(inner) => Error::InternalServerException(inner),
1329            crate::operation::put_anomaly_detector::PutAnomalyDetectorError::ServiceQuotaExceededException(inner) => {
1330                Error::ServiceQuotaExceededException(inner)
1331            }
1332            crate::operation::put_anomaly_detector::PutAnomalyDetectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1333            crate::operation::put_anomaly_detector::PutAnomalyDetectorError::ValidationException(inner) => Error::ValidationException(inner),
1334            crate::operation::put_anomaly_detector::PutAnomalyDetectorError::Unhandled(inner) => Error::Unhandled(inner),
1335        }
1336    }
1337}
1338impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
1339where
1340    R: Send + Sync + std::fmt::Debug + 'static,
1341{
1342    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
1343        match err {
1344            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1345            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1346                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1347                source: err.into(),
1348            }),
1349        }
1350    }
1351}
1352impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
1353    fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
1354        match err {
1355            crate::operation::put_resource_policy::PutResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1356            crate::operation::put_resource_policy::PutResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
1357            crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
1358            crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
1359                Error::ResourceNotFoundException(inner)
1360            }
1361            crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1362            crate::operation::put_resource_policy::PutResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
1363            crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1364        }
1365    }
1366}
1367impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError, R>>
1368    for Error
1369where
1370    R: Send + Sync + std::fmt::Debug + 'static,
1371{
1372    fn from(
1373        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError, R>,
1374    ) -> Self {
1375        match err {
1376            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1377            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1378                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1379                source: err.into(),
1380            }),
1381        }
1382    }
1383}
1384impl From<crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError> for Error {
1385    fn from(err: crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError) -> Self {
1386        match err {
1387            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::AccessDeniedException(inner) => {
1388                Error::AccessDeniedException(inner)
1389            }
1390            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ConflictException(inner) => Error::ConflictException(inner),
1391            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::InternalServerException(inner) => {
1392                Error::InternalServerException(inner)
1393            }
1394            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ResourceNotFoundException(inner) => {
1395                Error::ResourceNotFoundException(inner)
1396            }
1397            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ServiceQuotaExceededException(inner) => {
1398                Error::ServiceQuotaExceededException(inner)
1399            }
1400            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1401            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ValidationException(inner) => Error::ValidationException(inner),
1402            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
1403        }
1404    }
1405}
1406impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1407where
1408    R: Send + Sync + std::fmt::Debug + 'static,
1409{
1410    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1411        match err {
1412            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1413            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1414                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1415                source: err.into(),
1416            }),
1417        }
1418    }
1419}
1420impl From<crate::operation::tag_resource::TagResourceError> for Error {
1421    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1422        match err {
1423            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1424            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1425            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1426            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1427            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1428            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1429        }
1430    }
1431}
1432impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1433where
1434    R: Send + Sync + std::fmt::Debug + 'static,
1435{
1436    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1437        match err {
1438            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1439            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1440                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1441                source: err.into(),
1442            }),
1443        }
1444    }
1445}
1446impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1447    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1448        match err {
1449            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1450            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1451            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1452            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1453            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1454            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1455        }
1456    }
1457}
1458impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>>
1459    for Error
1460where
1461    R: Send + Sync + std::fmt::Debug + 'static,
1462{
1463    fn from(
1464        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>,
1465    ) -> Self {
1466        match err {
1467            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1468            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1469                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1470                source: err.into(),
1471            }),
1472        }
1473    }
1474}
1475impl From<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError> for Error {
1476    fn from(err: crate::operation::update_logging_configuration::UpdateLoggingConfigurationError) -> Self {
1477        match err {
1478            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::AccessDeniedException(inner) => {
1479                Error::AccessDeniedException(inner)
1480            }
1481            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ConflictException(inner) => {
1482                Error::ConflictException(inner)
1483            }
1484            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InternalServerException(inner) => {
1485                Error::InternalServerException(inner)
1486            }
1487            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ResourceNotFoundException(inner) => {
1488                Error::ResourceNotFoundException(inner)
1489            }
1490            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ValidationException(inner) => {
1491                Error::ValidationException(inner)
1492            }
1493            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1494        }
1495    }
1496}
1497impl<R>
1498    From<
1499        ::aws_smithy_runtime_api::client::result::SdkError<
1500            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError,
1501            R,
1502        >,
1503    > for Error
1504where
1505    R: Send + Sync + std::fmt::Debug + 'static,
1506{
1507    fn from(
1508        err: ::aws_smithy_runtime_api::client::result::SdkError<
1509            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError,
1510            R,
1511        >,
1512    ) -> Self {
1513        match err {
1514            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1515            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1516                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1517                source: err.into(),
1518            }),
1519        }
1520    }
1521}
1522impl From<crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError> for Error {
1523    fn from(err: crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError) -> Self {
1524        match err {
1525            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::AccessDeniedException(inner) => {
1526                Error::AccessDeniedException(inner)
1527            }
1528            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::ConflictException(inner) => {
1529                Error::ConflictException(inner)
1530            }
1531            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::InternalServerException(inner) => {
1532                Error::InternalServerException(inner)
1533            }
1534            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::ResourceNotFoundException(inner) => {
1535                Error::ResourceNotFoundException(inner)
1536            }
1537            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::ValidationException(inner) => {
1538                Error::ValidationException(inner)
1539            }
1540            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1541        }
1542    }
1543}
1544impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scraper::UpdateScraperError, R>> for Error
1545where
1546    R: Send + Sync + std::fmt::Debug + 'static,
1547{
1548    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scraper::UpdateScraperError, R>) -> Self {
1549        match err {
1550            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1551            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1552                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1553                source: err.into(),
1554            }),
1555        }
1556    }
1557}
1558impl From<crate::operation::update_scraper::UpdateScraperError> for Error {
1559    fn from(err: crate::operation::update_scraper::UpdateScraperError) -> Self {
1560        match err {
1561            crate::operation::update_scraper::UpdateScraperError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1562            crate::operation::update_scraper::UpdateScraperError::ConflictException(inner) => Error::ConflictException(inner),
1563            crate::operation::update_scraper::UpdateScraperError::InternalServerException(inner) => Error::InternalServerException(inner),
1564            crate::operation::update_scraper::UpdateScraperError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1565            crate::operation::update_scraper::UpdateScraperError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1566            crate::operation::update_scraper::UpdateScraperError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1567            crate::operation::update_scraper::UpdateScraperError::ValidationException(inner) => Error::ValidationException(inner),
1568            crate::operation::update_scraper::UpdateScraperError::Unhandled(inner) => Error::Unhandled(inner),
1569        }
1570    }
1571}
1572impl<R>
1573    From<
1574        ::aws_smithy_runtime_api::client::result::SdkError<
1575            crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError,
1576            R,
1577        >,
1578    > for Error
1579where
1580    R: Send + Sync + std::fmt::Debug + 'static,
1581{
1582    fn from(
1583        err: ::aws_smithy_runtime_api::client::result::SdkError<
1584            crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError,
1585            R,
1586        >,
1587    ) -> Self {
1588        match err {
1589            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1590            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1591                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1592                source: err.into(),
1593            }),
1594        }
1595    }
1596}
1597impl From<crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError> for Error {
1598    fn from(err: crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError) -> Self {
1599        match err {
1600            crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError::AccessDeniedException(inner) => {
1601                Error::AccessDeniedException(inner)
1602            }
1603            crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError::ConflictException(inner) => {
1604                Error::ConflictException(inner)
1605            }
1606            crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError::InternalServerException(inner) => {
1607                Error::InternalServerException(inner)
1608            }
1609            crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError::ResourceNotFoundException(inner) => {
1610                Error::ResourceNotFoundException(inner)
1611            }
1612            crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError::ValidationException(inner) => {
1613                Error::ValidationException(inner)
1614            }
1615            crate::operation::update_scraper_logging_configuration::UpdateScraperLoggingConfigurationError::Unhandled(inner) => {
1616                Error::Unhandled(inner)
1617            }
1618        }
1619    }
1620}
1621impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workspace_alias::UpdateWorkspaceAliasError, R>> for Error
1622where
1623    R: Send + Sync + std::fmt::Debug + 'static,
1624{
1625    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workspace_alias::UpdateWorkspaceAliasError, R>) -> Self {
1626        match err {
1627            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1628            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1629                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1630                source: err.into(),
1631            }),
1632        }
1633    }
1634}
1635impl From<crate::operation::update_workspace_alias::UpdateWorkspaceAliasError> for Error {
1636    fn from(err: crate::operation::update_workspace_alias::UpdateWorkspaceAliasError) -> Self {
1637        match err {
1638            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1639            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ConflictException(inner) => Error::ConflictException(inner),
1640            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::InternalServerException(inner) => {
1641                Error::InternalServerException(inner)
1642            }
1643            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ResourceNotFoundException(inner) => {
1644                Error::ResourceNotFoundException(inner)
1645            }
1646            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ServiceQuotaExceededException(inner) => {
1647                Error::ServiceQuotaExceededException(inner)
1648            }
1649            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1650            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ValidationException(inner) => Error::ValidationException(inner),
1651            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::Unhandled(inner) => Error::Unhandled(inner),
1652        }
1653    }
1654}
1655impl<R>
1656    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError, R>>
1657    for Error
1658where
1659    R: Send + Sync + std::fmt::Debug + 'static,
1660{
1661    fn from(
1662        err: ::aws_smithy_runtime_api::client::result::SdkError<
1663            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError,
1664            R,
1665        >,
1666    ) -> Self {
1667        match err {
1668            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1669            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1670                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1671                source: err.into(),
1672            }),
1673        }
1674    }
1675}
1676impl From<crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError> for Error {
1677    fn from(err: crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError) -> Self {
1678        match err {
1679            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::AccessDeniedException(inner) => {
1680                Error::AccessDeniedException(inner)
1681            }
1682            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ConflictException(inner) => {
1683                Error::ConflictException(inner)
1684            }
1685            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::InternalServerException(inner) => {
1686                Error::InternalServerException(inner)
1687            }
1688            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ResourceNotFoundException(inner) => {
1689                Error::ResourceNotFoundException(inner)
1690            }
1691            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ServiceQuotaExceededException(inner) => {
1692                Error::ServiceQuotaExceededException(inner)
1693            }
1694            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ThrottlingException(inner) => {
1695                Error::ThrottlingException(inner)
1696            }
1697            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ValidationException(inner) => {
1698                Error::ValidationException(inner)
1699            }
1700            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1701        }
1702    }
1703}
1704impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
1705where
1706    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
1707    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
1708{
1709    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
1710        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1711            meta: ::std::default::Default::default(),
1712            source: err.into(),
1713        })
1714    }
1715}
1716impl ::std::error::Error for Error {
1717    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1718        match self {
1719            Error::AccessDeniedException(inner) => inner.source(),
1720            Error::ConflictException(inner) => inner.source(),
1721            Error::InternalServerException(inner) => inner.source(),
1722            Error::ResourceNotFoundException(inner) => inner.source(),
1723            Error::ServiceQuotaExceededException(inner) => inner.source(),
1724            Error::ThrottlingException(inner) => inner.source(),
1725            Error::ValidationException(inner) => inner.source(),
1726            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1727        }
1728    }
1729}
1730impl ::aws_types::request_id::RequestId for Error {
1731    fn request_id(&self) -> Option<&str> {
1732        match self {
1733            Self::AccessDeniedException(e) => e.request_id(),
1734            Self::ConflictException(e) => e.request_id(),
1735            Self::InternalServerException(e) => e.request_id(),
1736            Self::ResourceNotFoundException(e) => e.request_id(),
1737            Self::ServiceQuotaExceededException(e) => e.request_id(),
1738            Self::ThrottlingException(e) => e.request_id(),
1739            Self::ValidationException(e) => e.request_id(),
1740            Self::Unhandled(e) => e.meta.request_id(),
1741        }
1742    }
1743}