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_logging_configuration::CreateLoggingConfigurationError, R>>
121    for Error
122where
123    R: Send + Sync + std::fmt::Debug + 'static,
124{
125    fn from(
126        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_logging_configuration::CreateLoggingConfigurationError, R>,
127    ) -> Self {
128        match err {
129            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
130            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
131                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
132                source: err.into(),
133            }),
134        }
135    }
136}
137impl From<crate::operation::create_logging_configuration::CreateLoggingConfigurationError> for Error {
138    fn from(err: crate::operation::create_logging_configuration::CreateLoggingConfigurationError) -> Self {
139        match err {
140            crate::operation::create_logging_configuration::CreateLoggingConfigurationError::AccessDeniedException(inner) => {
141                Error::AccessDeniedException(inner)
142            }
143            crate::operation::create_logging_configuration::CreateLoggingConfigurationError::InternalServerException(inner) => {
144                Error::InternalServerException(inner)
145            }
146            crate::operation::create_logging_configuration::CreateLoggingConfigurationError::ResourceNotFoundException(inner) => {
147                Error::ResourceNotFoundException(inner)
148            }
149            crate::operation::create_logging_configuration::CreateLoggingConfigurationError::ValidationException(inner) => {
150                Error::ValidationException(inner)
151            }
152            crate::operation::create_logging_configuration::CreateLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
153        }
154    }
155}
156impl<R>
157    From<
158        ::aws_smithy_runtime_api::client::result::SdkError<
159            crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError,
160            R,
161        >,
162    > for Error
163where
164    R: Send + Sync + std::fmt::Debug + 'static,
165{
166    fn from(
167        err: ::aws_smithy_runtime_api::client::result::SdkError<
168            crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError,
169            R,
170        >,
171    ) -> Self {
172        match err {
173            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
174            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
175                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
176                source: err.into(),
177            }),
178        }
179    }
180}
181impl From<crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError> for Error {
182    fn from(err: crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError) -> Self {
183        match err {
184            crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError::AccessDeniedException(inner) => {
185                Error::AccessDeniedException(inner)
186            }
187            crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError::InternalServerException(inner) => {
188                Error::InternalServerException(inner)
189            }
190            crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError::ResourceNotFoundException(inner) => {
191                Error::ResourceNotFoundException(inner)
192            }
193            crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError::ValidationException(inner) => {
194                Error::ValidationException(inner)
195            }
196            crate::operation::create_query_logging_configuration::CreateQueryLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
197        }
198    }
199}
200impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError, R>>
201    for Error
202where
203    R: Send + Sync + std::fmt::Debug + 'static,
204{
205    fn from(
206        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError, R>,
207    ) -> Self {
208        match err {
209            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
210            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
211                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
212                source: err.into(),
213            }),
214        }
215    }
216}
217impl From<crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError> for Error {
218    fn from(err: crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError) -> Self {
219        match err {
220            crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::AccessDeniedException(inner) => {
221                Error::AccessDeniedException(inner)
222            }
223            crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::ConflictException(inner) => {
224                Error::ConflictException(inner)
225            }
226            crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::InternalServerException(inner) => {
227                Error::InternalServerException(inner)
228            }
229            crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::ResourceNotFoundException(inner) => {
230                Error::ResourceNotFoundException(inner)
231            }
232            crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::ServiceQuotaExceededException(inner) => {
233                Error::ServiceQuotaExceededException(inner)
234            }
235            crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::ThrottlingException(inner) => {
236                Error::ThrottlingException(inner)
237            }
238            crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::ValidationException(inner) => {
239                Error::ValidationException(inner)
240            }
241            crate::operation::create_rule_groups_namespace::CreateRuleGroupsNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
242        }
243    }
244}
245impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scraper::CreateScraperError, R>> for Error
246where
247    R: Send + Sync + std::fmt::Debug + 'static,
248{
249    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scraper::CreateScraperError, R>) -> Self {
250        match err {
251            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
252            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
253                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
254                source: err.into(),
255            }),
256        }
257    }
258}
259impl From<crate::operation::create_scraper::CreateScraperError> for Error {
260    fn from(err: crate::operation::create_scraper::CreateScraperError) -> Self {
261        match err {
262            crate::operation::create_scraper::CreateScraperError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
263            crate::operation::create_scraper::CreateScraperError::ConflictException(inner) => Error::ConflictException(inner),
264            crate::operation::create_scraper::CreateScraperError::InternalServerException(inner) => Error::InternalServerException(inner),
265            crate::operation::create_scraper::CreateScraperError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
266            crate::operation::create_scraper::CreateScraperError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
267            crate::operation::create_scraper::CreateScraperError::ThrottlingException(inner) => Error::ThrottlingException(inner),
268            crate::operation::create_scraper::CreateScraperError::ValidationException(inner) => Error::ValidationException(inner),
269            crate::operation::create_scraper::CreateScraperError::Unhandled(inner) => Error::Unhandled(inner),
270        }
271    }
272}
273impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workspace::CreateWorkspaceError, R>> for Error
274where
275    R: Send + Sync + std::fmt::Debug + 'static,
276{
277    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workspace::CreateWorkspaceError, R>) -> Self {
278        match err {
279            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
280            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
281                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
282                source: err.into(),
283            }),
284        }
285    }
286}
287impl From<crate::operation::create_workspace::CreateWorkspaceError> for Error {
288    fn from(err: crate::operation::create_workspace::CreateWorkspaceError) -> Self {
289        match err {
290            crate::operation::create_workspace::CreateWorkspaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
291            crate::operation::create_workspace::CreateWorkspaceError::ConflictException(inner) => Error::ConflictException(inner),
292            crate::operation::create_workspace::CreateWorkspaceError::InternalServerException(inner) => Error::InternalServerException(inner),
293            crate::operation::create_workspace::CreateWorkspaceError::ServiceQuotaExceededException(inner) => {
294                Error::ServiceQuotaExceededException(inner)
295            }
296            crate::operation::create_workspace::CreateWorkspaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
297            crate::operation::create_workspace::CreateWorkspaceError::ValidationException(inner) => Error::ValidationException(inner),
298            crate::operation::create_workspace::CreateWorkspaceError::Unhandled(inner) => Error::Unhandled(inner),
299        }
300    }
301}
302impl<R>
303    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError, R>>
304    for Error
305where
306    R: Send + Sync + std::fmt::Debug + 'static,
307{
308    fn from(
309        err: ::aws_smithy_runtime_api::client::result::SdkError<
310            crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError,
311            R,
312        >,
313    ) -> Self {
314        match err {
315            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
316            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
317                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
318                source: err.into(),
319            }),
320        }
321    }
322}
323impl From<crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError> for Error {
324    fn from(err: crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError) -> Self {
325        match err {
326            crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::AccessDeniedException(inner) => {
327                Error::AccessDeniedException(inner)
328            }
329            crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::ConflictException(inner) => {
330                Error::ConflictException(inner)
331            }
332            crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::InternalServerException(inner) => {
333                Error::InternalServerException(inner)
334            }
335            crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::ResourceNotFoundException(inner) => {
336                Error::ResourceNotFoundException(inner)
337            }
338            crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::ThrottlingException(inner) => {
339                Error::ThrottlingException(inner)
340            }
341            crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::ValidationException(inner) => {
342                Error::ValidationException(inner)
343            }
344            crate::operation::delete_alert_manager_definition::DeleteAlertManagerDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
345        }
346    }
347}
348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError, R>>
349    for Error
350where
351    R: Send + Sync + std::fmt::Debug + 'static,
352{
353    fn from(
354        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError, R>,
355    ) -> Self {
356        match err {
357            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
358            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
359                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
360                source: err.into(),
361            }),
362        }
363    }
364}
365impl From<crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError> for Error {
366    fn from(err: crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError) -> Self {
367        match err {
368            crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::AccessDeniedException(inner) => {
369                Error::AccessDeniedException(inner)
370            }
371            crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::ConflictException(inner) => {
372                Error::ConflictException(inner)
373            }
374            crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::InternalServerException(inner) => {
375                Error::InternalServerException(inner)
376            }
377            crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::ResourceNotFoundException(inner) => {
378                Error::ResourceNotFoundException(inner)
379            }
380            crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::ValidationException(inner) => {
381                Error::ValidationException(inner)
382            }
383            crate::operation::delete_logging_configuration::DeleteLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
384        }
385    }
386}
387impl<R>
388    From<
389        ::aws_smithy_runtime_api::client::result::SdkError<
390            crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError,
391            R,
392        >,
393    > for Error
394where
395    R: Send + Sync + std::fmt::Debug + 'static,
396{
397    fn from(
398        err: ::aws_smithy_runtime_api::client::result::SdkError<
399            crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError,
400            R,
401        >,
402    ) -> Self {
403        match err {
404            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
405            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
406                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
407                source: err.into(),
408            }),
409        }
410    }
411}
412impl From<crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError> for Error {
413    fn from(err: crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError) -> Self {
414        match err {
415            crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::AccessDeniedException(inner) => {
416                Error::AccessDeniedException(inner)
417            }
418            crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::ConflictException(inner) => {
419                Error::ConflictException(inner)
420            }
421            crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::InternalServerException(inner) => {
422                Error::InternalServerException(inner)
423            }
424            crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::ResourceNotFoundException(inner) => {
425                Error::ResourceNotFoundException(inner)
426            }
427            crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::ValidationException(inner) => {
428                Error::ValidationException(inner)
429            }
430            crate::operation::delete_query_logging_configuration::DeleteQueryLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
431        }
432    }
433}
434impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError, R>>
435    for Error
436where
437    R: Send + Sync + std::fmt::Debug + 'static,
438{
439    fn from(
440        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError, R>,
441    ) -> Self {
442        match err {
443            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
444            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
445                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
446                source: err.into(),
447            }),
448        }
449    }
450}
451impl From<crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError> for Error {
452    fn from(err: crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError) -> Self {
453        match err {
454            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::AccessDeniedException(inner) => {
455                Error::AccessDeniedException(inner)
456            }
457            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::ConflictException(inner) => {
458                Error::ConflictException(inner)
459            }
460            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::InternalServerException(inner) => {
461                Error::InternalServerException(inner)
462            }
463            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::ResourceNotFoundException(inner) => {
464                Error::ResourceNotFoundException(inner)
465            }
466            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::ThrottlingException(inner) => {
467                Error::ThrottlingException(inner)
468            }
469            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::ValidationException(inner) => {
470                Error::ValidationException(inner)
471            }
472            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
473        }
474    }
475}
476impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scraper::DeleteScraperError, R>> for Error
477where
478    R: Send + Sync + std::fmt::Debug + 'static,
479{
480    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scraper::DeleteScraperError, R>) -> Self {
481        match err {
482            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
483            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
484                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
485                source: err.into(),
486            }),
487        }
488    }
489}
490impl From<crate::operation::delete_scraper::DeleteScraperError> for Error {
491    fn from(err: crate::operation::delete_scraper::DeleteScraperError) -> Self {
492        match err {
493            crate::operation::delete_scraper::DeleteScraperError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
494            crate::operation::delete_scraper::DeleteScraperError::ConflictException(inner) => Error::ConflictException(inner),
495            crate::operation::delete_scraper::DeleteScraperError::InternalServerException(inner) => Error::InternalServerException(inner),
496            crate::operation::delete_scraper::DeleteScraperError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
497            crate::operation::delete_scraper::DeleteScraperError::ThrottlingException(inner) => Error::ThrottlingException(inner),
498            crate::operation::delete_scraper::DeleteScraperError::ValidationException(inner) => Error::ValidationException(inner),
499            crate::operation::delete_scraper::DeleteScraperError::Unhandled(inner) => Error::Unhandled(inner),
500        }
501    }
502}
503impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workspace::DeleteWorkspaceError, R>> for Error
504where
505    R: Send + Sync + std::fmt::Debug + 'static,
506{
507    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workspace::DeleteWorkspaceError, R>) -> Self {
508        match err {
509            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
510            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
511                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
512                source: err.into(),
513            }),
514        }
515    }
516}
517impl From<crate::operation::delete_workspace::DeleteWorkspaceError> for Error {
518    fn from(err: crate::operation::delete_workspace::DeleteWorkspaceError) -> Self {
519        match err {
520            crate::operation::delete_workspace::DeleteWorkspaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
521            crate::operation::delete_workspace::DeleteWorkspaceError::ConflictException(inner) => Error::ConflictException(inner),
522            crate::operation::delete_workspace::DeleteWorkspaceError::InternalServerException(inner) => Error::InternalServerException(inner),
523            crate::operation::delete_workspace::DeleteWorkspaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
524            crate::operation::delete_workspace::DeleteWorkspaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
525            crate::operation::delete_workspace::DeleteWorkspaceError::ValidationException(inner) => Error::ValidationException(inner),
526            crate::operation::delete_workspace::DeleteWorkspaceError::Unhandled(inner) => Error::Unhandled(inner),
527        }
528    }
529}
530impl<R>
531    From<
532        ::aws_smithy_runtime_api::client::result::SdkError<
533            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError,
534            R,
535        >,
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<
542            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError,
543            R,
544        >,
545    ) -> Self {
546        match err {
547            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
548            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
549                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
550                source: err.into(),
551            }),
552        }
553    }
554}
555impl From<crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError> for Error {
556    fn from(err: crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError) -> Self {
557        match err {
558            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::AccessDeniedException(inner) => {
559                Error::AccessDeniedException(inner)
560            }
561            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::InternalServerException(inner) => {
562                Error::InternalServerException(inner)
563            }
564            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::ResourceNotFoundException(inner) => {
565                Error::ResourceNotFoundException(inner)
566            }
567            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::ThrottlingException(inner) => {
568                Error::ThrottlingException(inner)
569            }
570            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::ValidationException(inner) => {
571                Error::ValidationException(inner)
572            }
573            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
574        }
575    }
576}
577impl<R>
578    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError, R>>
579    for Error
580where
581    R: Send + Sync + std::fmt::Debug + 'static,
582{
583    fn from(
584        err: ::aws_smithy_runtime_api::client::result::SdkError<
585            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError,
586            R,
587        >,
588    ) -> Self {
589        match err {
590            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
591            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
592                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
593                source: err.into(),
594            }),
595        }
596    }
597}
598impl From<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError> for Error {
599    fn from(err: crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError) -> Self {
600        match err {
601            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::AccessDeniedException(inner) => {
602                Error::AccessDeniedException(inner)
603            }
604            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::InternalServerException(inner) => {
605                Error::InternalServerException(inner)
606            }
607            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ResourceNotFoundException(inner) => {
608                Error::ResourceNotFoundException(inner)
609            }
610            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ValidationException(inner) => {
611                Error::ValidationException(inner)
612            }
613            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
614        }
615    }
616}
617impl<R>
618    From<
619        ::aws_smithy_runtime_api::client::result::SdkError<
620            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError,
621            R,
622        >,
623    > for Error
624where
625    R: Send + Sync + std::fmt::Debug + 'static,
626{
627    fn from(
628        err: ::aws_smithy_runtime_api::client::result::SdkError<
629            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError,
630            R,
631        >,
632    ) -> Self {
633        match err {
634            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
635            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
636                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
637                source: err.into(),
638            }),
639        }
640    }
641}
642impl From<crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError> for Error {
643    fn from(err: crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError) -> Self {
644        match err {
645            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::AccessDeniedException(inner) => {
646                Error::AccessDeniedException(inner)
647            }
648            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::InternalServerException(inner) => {
649                Error::InternalServerException(inner)
650            }
651            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::ResourceNotFoundException(inner) => {
652                Error::ResourceNotFoundException(inner)
653            }
654            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::ValidationException(inner) => {
655                Error::ValidationException(inner)
656            }
657            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::Unhandled(inner) => {
658                Error::Unhandled(inner)
659            }
660        }
661    }
662}
663impl<R>
664    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError, R>>
665    for Error
666where
667    R: Send + Sync + std::fmt::Debug + 'static,
668{
669    fn from(
670        err: ::aws_smithy_runtime_api::client::result::SdkError<
671            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError,
672            R,
673        >,
674    ) -> Self {
675        match err {
676            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
677            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
678                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
679                source: err.into(),
680            }),
681        }
682    }
683}
684impl From<crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError> for Error {
685    fn from(err: crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError) -> Self {
686        match err {
687            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::AccessDeniedException(inner) => {
688                Error::AccessDeniedException(inner)
689            }
690            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::InternalServerException(inner) => {
691                Error::InternalServerException(inner)
692            }
693            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::ResourceNotFoundException(inner) => {
694                Error::ResourceNotFoundException(inner)
695            }
696            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::ThrottlingException(inner) => {
697                Error::ThrottlingException(inner)
698            }
699            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::ValidationException(inner) => {
700                Error::ValidationException(inner)
701            }
702            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
703        }
704    }
705}
706impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scraper::DescribeScraperError, R>> for Error
707where
708    R: Send + Sync + std::fmt::Debug + 'static,
709{
710    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scraper::DescribeScraperError, R>) -> Self {
711        match err {
712            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
713            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
714                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
715                source: err.into(),
716            }),
717        }
718    }
719}
720impl From<crate::operation::describe_scraper::DescribeScraperError> for Error {
721    fn from(err: crate::operation::describe_scraper::DescribeScraperError) -> Self {
722        match err {
723            crate::operation::describe_scraper::DescribeScraperError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
724            crate::operation::describe_scraper::DescribeScraperError::InternalServerException(inner) => Error::InternalServerException(inner),
725            crate::operation::describe_scraper::DescribeScraperError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
726            crate::operation::describe_scraper::DescribeScraperError::ThrottlingException(inner) => Error::ThrottlingException(inner),
727            crate::operation::describe_scraper::DescribeScraperError::ValidationException(inner) => Error::ValidationException(inner),
728            crate::operation::describe_scraper::DescribeScraperError::Unhandled(inner) => Error::Unhandled(inner),
729        }
730    }
731}
732impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workspace::DescribeWorkspaceError, R>> for Error
733where
734    R: Send + Sync + std::fmt::Debug + 'static,
735{
736    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workspace::DescribeWorkspaceError, R>) -> Self {
737        match err {
738            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
739            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
740                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
741                source: err.into(),
742            }),
743        }
744    }
745}
746impl From<crate::operation::describe_workspace::DescribeWorkspaceError> for Error {
747    fn from(err: crate::operation::describe_workspace::DescribeWorkspaceError) -> Self {
748        match err {
749            crate::operation::describe_workspace::DescribeWorkspaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
750            crate::operation::describe_workspace::DescribeWorkspaceError::InternalServerException(inner) => Error::InternalServerException(inner),
751            crate::operation::describe_workspace::DescribeWorkspaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
752            crate::operation::describe_workspace::DescribeWorkspaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
753            crate::operation::describe_workspace::DescribeWorkspaceError::ValidationException(inner) => Error::ValidationException(inner),
754            crate::operation::describe_workspace::DescribeWorkspaceError::Unhandled(inner) => Error::Unhandled(inner),
755        }
756    }
757}
758impl<R>
759    From<
760        ::aws_smithy_runtime_api::client::result::SdkError<
761            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError,
762            R,
763        >,
764    > for Error
765where
766    R: Send + Sync + std::fmt::Debug + 'static,
767{
768    fn from(
769        err: ::aws_smithy_runtime_api::client::result::SdkError<
770            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError,
771            R,
772        >,
773    ) -> Self {
774        match err {
775            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
776            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
777                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
778                source: err.into(),
779            }),
780        }
781    }
782}
783impl From<crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError> for Error {
784    fn from(err: crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError) -> Self {
785        match err {
786            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::AccessDeniedException(inner) => {
787                Error::AccessDeniedException(inner)
788            }
789            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::InternalServerException(inner) => {
790                Error::InternalServerException(inner)
791            }
792            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::ResourceNotFoundException(inner) => {
793                Error::ResourceNotFoundException(inner)
794            }
795            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::ThrottlingException(inner) => {
796                Error::ThrottlingException(inner)
797            }
798            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::ValidationException(inner) => {
799                Error::ValidationException(inner)
800            }
801            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
802        }
803    }
804}
805impl<R>
806    From<
807        ::aws_smithy_runtime_api::client::result::SdkError<
808            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError,
809            R,
810        >,
811    > for Error
812where
813    R: Send + Sync + std::fmt::Debug + 'static,
814{
815    fn from(
816        err: ::aws_smithy_runtime_api::client::result::SdkError<
817            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError,
818            R,
819        >,
820    ) -> Self {
821        match err {
822            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
823            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
824                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
825                source: err.into(),
826            }),
827        }
828    }
829}
830impl From<crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError> for Error {
831    fn from(err: crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError) -> Self {
832        match err {
833            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError::AccessDeniedException(inner) => {
834                Error::AccessDeniedException(inner)
835            }
836            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError::InternalServerException(inner) => {
837                Error::InternalServerException(inner)
838            }
839            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError::ThrottlingException(inner) => {
840                Error::ThrottlingException(inner)
841            }
842            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
843        }
844    }
845}
846impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError, R>>
847    for Error
848where
849    R: Send + Sync + std::fmt::Debug + 'static,
850{
851    fn from(
852        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError, R>,
853    ) -> Self {
854        match err {
855            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
856            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
857                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
858                source: err.into(),
859            }),
860        }
861    }
862}
863impl From<crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError> for Error {
864    fn from(err: crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError) -> Self {
865        match err {
866            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::AccessDeniedException(inner) => {
867                Error::AccessDeniedException(inner)
868            }
869            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::InternalServerException(inner) => {
870                Error::InternalServerException(inner)
871            }
872            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::ResourceNotFoundException(inner) => {
873                Error::ResourceNotFoundException(inner)
874            }
875            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::ThrottlingException(inner) => {
876                Error::ThrottlingException(inner)
877            }
878            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::ValidationException(inner) => {
879                Error::ValidationException(inner)
880            }
881            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::Unhandled(inner) => Error::Unhandled(inner),
882        }
883    }
884}
885impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scrapers::ListScrapersError, R>> for Error
886where
887    R: Send + Sync + std::fmt::Debug + 'static,
888{
889    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scrapers::ListScrapersError, R>) -> Self {
890        match err {
891            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
892            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
893                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
894                source: err.into(),
895            }),
896        }
897    }
898}
899impl From<crate::operation::list_scrapers::ListScrapersError> for Error {
900    fn from(err: crate::operation::list_scrapers::ListScrapersError) -> Self {
901        match err {
902            crate::operation::list_scrapers::ListScrapersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
903            crate::operation::list_scrapers::ListScrapersError::InternalServerException(inner) => Error::InternalServerException(inner),
904            crate::operation::list_scrapers::ListScrapersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
905            crate::operation::list_scrapers::ListScrapersError::ValidationException(inner) => Error::ValidationException(inner),
906            crate::operation::list_scrapers::ListScrapersError::Unhandled(inner) => Error::Unhandled(inner),
907        }
908    }
909}
910impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
911where
912    R: Send + Sync + std::fmt::Debug + 'static,
913{
914    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
915        match err {
916            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
917            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
918                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
919                source: err.into(),
920            }),
921        }
922    }
923}
924impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
925    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
926        match err {
927            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
928            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
929                Error::InternalServerException(inner)
930            }
931            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
932                Error::ResourceNotFoundException(inner)
933            }
934            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
935            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
936            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
937        }
938    }
939}
940impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workspaces::ListWorkspacesError, R>> for Error
941where
942    R: Send + Sync + std::fmt::Debug + 'static,
943{
944    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workspaces::ListWorkspacesError, R>) -> Self {
945        match err {
946            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
947            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
948                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
949                source: err.into(),
950            }),
951        }
952    }
953}
954impl From<crate::operation::list_workspaces::ListWorkspacesError> for Error {
955    fn from(err: crate::operation::list_workspaces::ListWorkspacesError) -> Self {
956        match err {
957            crate::operation::list_workspaces::ListWorkspacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
958            crate::operation::list_workspaces::ListWorkspacesError::InternalServerException(inner) => Error::InternalServerException(inner),
959            crate::operation::list_workspaces::ListWorkspacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
960            crate::operation::list_workspaces::ListWorkspacesError::ValidationException(inner) => Error::ValidationException(inner),
961            crate::operation::list_workspaces::ListWorkspacesError::Unhandled(inner) => Error::Unhandled(inner),
962        }
963    }
964}
965impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError, R>>
966    for Error
967where
968    R: Send + Sync + std::fmt::Debug + 'static,
969{
970    fn from(
971        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError, R>,
972    ) -> Self {
973        match err {
974            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
975            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
976                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
977                source: err.into(),
978            }),
979        }
980    }
981}
982impl From<crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError> for Error {
983    fn from(err: crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError) -> Self {
984        match err {
985            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::AccessDeniedException(inner) => {
986                Error::AccessDeniedException(inner)
987            }
988            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ConflictException(inner) => {
989                Error::ConflictException(inner)
990            }
991            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::InternalServerException(inner) => {
992                Error::InternalServerException(inner)
993            }
994            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ResourceNotFoundException(inner) => {
995                Error::ResourceNotFoundException(inner)
996            }
997            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ServiceQuotaExceededException(inner) => {
998                Error::ServiceQuotaExceededException(inner)
999            }
1000            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ThrottlingException(inner) => {
1001                Error::ThrottlingException(inner)
1002            }
1003            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ValidationException(inner) => {
1004                Error::ValidationException(inner)
1005            }
1006            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1007        }
1008    }
1009}
1010impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError, R>>
1011    for Error
1012where
1013    R: Send + Sync + std::fmt::Debug + 'static,
1014{
1015    fn from(
1016        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError, R>,
1017    ) -> Self {
1018        match err {
1019            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1020            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1021                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1022                source: err.into(),
1023            }),
1024        }
1025    }
1026}
1027impl From<crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError> for Error {
1028    fn from(err: crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError) -> Self {
1029        match err {
1030            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::AccessDeniedException(inner) => {
1031                Error::AccessDeniedException(inner)
1032            }
1033            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ConflictException(inner) => Error::ConflictException(inner),
1034            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::InternalServerException(inner) => {
1035                Error::InternalServerException(inner)
1036            }
1037            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ResourceNotFoundException(inner) => {
1038                Error::ResourceNotFoundException(inner)
1039            }
1040            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ServiceQuotaExceededException(inner) => {
1041                Error::ServiceQuotaExceededException(inner)
1042            }
1043            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1044            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ValidationException(inner) => Error::ValidationException(inner),
1045            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
1046        }
1047    }
1048}
1049impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1050where
1051    R: Send + Sync + std::fmt::Debug + 'static,
1052{
1053    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1054        match err {
1055            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1056            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1057                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1058                source: err.into(),
1059            }),
1060        }
1061    }
1062}
1063impl From<crate::operation::tag_resource::TagResourceError> for Error {
1064    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1065        match err {
1066            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1067            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1068            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1069            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1070            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1071            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1072        }
1073    }
1074}
1075impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1076where
1077    R: Send + Sync + std::fmt::Debug + 'static,
1078{
1079    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1080        match err {
1081            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1082            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1083                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1084                source: err.into(),
1085            }),
1086        }
1087    }
1088}
1089impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1090    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1091        match err {
1092            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1093            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1094            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1095            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1096            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1097            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1098        }
1099    }
1100}
1101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>>
1102    for Error
1103where
1104    R: Send + Sync + std::fmt::Debug + 'static,
1105{
1106    fn from(
1107        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>,
1108    ) -> Self {
1109        match err {
1110            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1111            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1112                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1113                source: err.into(),
1114            }),
1115        }
1116    }
1117}
1118impl From<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError> for Error {
1119    fn from(err: crate::operation::update_logging_configuration::UpdateLoggingConfigurationError) -> Self {
1120        match err {
1121            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::AccessDeniedException(inner) => {
1122                Error::AccessDeniedException(inner)
1123            }
1124            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ConflictException(inner) => {
1125                Error::ConflictException(inner)
1126            }
1127            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InternalServerException(inner) => {
1128                Error::InternalServerException(inner)
1129            }
1130            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ResourceNotFoundException(inner) => {
1131                Error::ResourceNotFoundException(inner)
1132            }
1133            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ValidationException(inner) => {
1134                Error::ValidationException(inner)
1135            }
1136            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1137        }
1138    }
1139}
1140impl<R>
1141    From<
1142        ::aws_smithy_runtime_api::client::result::SdkError<
1143            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError,
1144            R,
1145        >,
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<
1152            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError,
1153            R,
1154        >,
1155    ) -> Self {
1156        match err {
1157            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1158            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1159                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1160                source: err.into(),
1161            }),
1162        }
1163    }
1164}
1165impl From<crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError> for Error {
1166    fn from(err: crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError) -> Self {
1167        match err {
1168            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::AccessDeniedException(inner) => {
1169                Error::AccessDeniedException(inner)
1170            }
1171            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::ConflictException(inner) => {
1172                Error::ConflictException(inner)
1173            }
1174            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::InternalServerException(inner) => {
1175                Error::InternalServerException(inner)
1176            }
1177            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::ResourceNotFoundException(inner) => {
1178                Error::ResourceNotFoundException(inner)
1179            }
1180            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::ValidationException(inner) => {
1181                Error::ValidationException(inner)
1182            }
1183            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1184        }
1185    }
1186}
1187impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scraper::UpdateScraperError, R>> for Error
1188where
1189    R: Send + Sync + std::fmt::Debug + 'static,
1190{
1191    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scraper::UpdateScraperError, R>) -> Self {
1192        match err {
1193            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1194            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1195                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1196                source: err.into(),
1197            }),
1198        }
1199    }
1200}
1201impl From<crate::operation::update_scraper::UpdateScraperError> for Error {
1202    fn from(err: crate::operation::update_scraper::UpdateScraperError) -> Self {
1203        match err {
1204            crate::operation::update_scraper::UpdateScraperError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1205            crate::operation::update_scraper::UpdateScraperError::ConflictException(inner) => Error::ConflictException(inner),
1206            crate::operation::update_scraper::UpdateScraperError::InternalServerException(inner) => Error::InternalServerException(inner),
1207            crate::operation::update_scraper::UpdateScraperError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1208            crate::operation::update_scraper::UpdateScraperError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1209            crate::operation::update_scraper::UpdateScraperError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1210            crate::operation::update_scraper::UpdateScraperError::ValidationException(inner) => Error::ValidationException(inner),
1211            crate::operation::update_scraper::UpdateScraperError::Unhandled(inner) => Error::Unhandled(inner),
1212        }
1213    }
1214}
1215impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workspace_alias::UpdateWorkspaceAliasError, R>> for Error
1216where
1217    R: Send + Sync + std::fmt::Debug + 'static,
1218{
1219    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workspace_alias::UpdateWorkspaceAliasError, R>) -> Self {
1220        match err {
1221            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1222            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1223                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1224                source: err.into(),
1225            }),
1226        }
1227    }
1228}
1229impl From<crate::operation::update_workspace_alias::UpdateWorkspaceAliasError> for Error {
1230    fn from(err: crate::operation::update_workspace_alias::UpdateWorkspaceAliasError) -> Self {
1231        match err {
1232            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1233            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ConflictException(inner) => Error::ConflictException(inner),
1234            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::InternalServerException(inner) => {
1235                Error::InternalServerException(inner)
1236            }
1237            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ResourceNotFoundException(inner) => {
1238                Error::ResourceNotFoundException(inner)
1239            }
1240            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ServiceQuotaExceededException(inner) => {
1241                Error::ServiceQuotaExceededException(inner)
1242            }
1243            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1244            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ValidationException(inner) => Error::ValidationException(inner),
1245            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::Unhandled(inner) => Error::Unhandled(inner),
1246        }
1247    }
1248}
1249impl<R>
1250    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError, R>>
1251    for Error
1252where
1253    R: Send + Sync + std::fmt::Debug + 'static,
1254{
1255    fn from(
1256        err: ::aws_smithy_runtime_api::client::result::SdkError<
1257            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError,
1258            R,
1259        >,
1260    ) -> Self {
1261        match err {
1262            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1263            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1264                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1265                source: err.into(),
1266            }),
1267        }
1268    }
1269}
1270impl From<crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError> for Error {
1271    fn from(err: crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError) -> Self {
1272        match err {
1273            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::AccessDeniedException(inner) => {
1274                Error::AccessDeniedException(inner)
1275            }
1276            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ConflictException(inner) => {
1277                Error::ConflictException(inner)
1278            }
1279            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::InternalServerException(inner) => {
1280                Error::InternalServerException(inner)
1281            }
1282            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ResourceNotFoundException(inner) => {
1283                Error::ResourceNotFoundException(inner)
1284            }
1285            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ServiceQuotaExceededException(inner) => {
1286                Error::ServiceQuotaExceededException(inner)
1287            }
1288            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ThrottlingException(inner) => {
1289                Error::ThrottlingException(inner)
1290            }
1291            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ValidationException(inner) => {
1292                Error::ValidationException(inner)
1293            }
1294            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1295        }
1296    }
1297}
1298impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
1299where
1300    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
1301    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
1302{
1303    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
1304        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1305            meta: ::std::default::Default::default(),
1306            source: err.into(),
1307        })
1308    }
1309}
1310impl ::std::error::Error for Error {
1311    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1312        match self {
1313            Error::AccessDeniedException(inner) => inner.source(),
1314            Error::ConflictException(inner) => inner.source(),
1315            Error::InternalServerException(inner) => inner.source(),
1316            Error::ResourceNotFoundException(inner) => inner.source(),
1317            Error::ServiceQuotaExceededException(inner) => inner.source(),
1318            Error::ThrottlingException(inner) => inner.source(),
1319            Error::ValidationException(inner) => inner.source(),
1320            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1321        }
1322    }
1323}
1324impl ::aws_types::request_id::RequestId for Error {
1325    fn request_id(&self) -> Option<&str> {
1326        match self {
1327            Self::AccessDeniedException(e) => e.request_id(),
1328            Self::ConflictException(e) => e.request_id(),
1329            Self::InternalServerException(e) => e.request_id(),
1330            Self::ResourceNotFoundException(e) => e.request_id(),
1331            Self::ServiceQuotaExceededException(e) => e.request_id(),
1332            Self::ThrottlingException(e) => e.request_id(),
1333            Self::ValidationException(e) => e.request_id(),
1334            Self::Unhandled(e) => e.meta.request_id(),
1335        }
1336    }
1337}