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_resource_policy::DeleteResourcePolicyError, R>> for Error
435where
436    R: Send + Sync + std::fmt::Debug + 'static,
437{
438    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
439        match err {
440            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
441            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
442                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
443                source: err.into(),
444            }),
445        }
446    }
447}
448impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
449    fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
450        match err {
451            crate::operation::delete_resource_policy::DeleteResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
452            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
453            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
454                Error::InternalServerException(inner)
455            }
456            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
457                Error::ResourceNotFoundException(inner)
458            }
459            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
460            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
461            crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
462        }
463    }
464}
465impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError, R>>
466    for Error
467where
468    R: Send + Sync + std::fmt::Debug + 'static,
469{
470    fn from(
471        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError, R>,
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_rule_groups_namespace::DeleteRuleGroupsNamespaceError> for Error {
483    fn from(err: crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError) -> Self {
484        match err {
485            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::AccessDeniedException(inner) => {
486                Error::AccessDeniedException(inner)
487            }
488            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::ConflictException(inner) => {
489                Error::ConflictException(inner)
490            }
491            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::InternalServerException(inner) => {
492                Error::InternalServerException(inner)
493            }
494            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::ResourceNotFoundException(inner) => {
495                Error::ResourceNotFoundException(inner)
496            }
497            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::ThrottlingException(inner) => {
498                Error::ThrottlingException(inner)
499            }
500            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::ValidationException(inner) => {
501                Error::ValidationException(inner)
502            }
503            crate::operation::delete_rule_groups_namespace::DeleteRuleGroupsNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
504        }
505    }
506}
507impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scraper::DeleteScraperError, R>> for Error
508where
509    R: Send + Sync + std::fmt::Debug + 'static,
510{
511    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scraper::DeleteScraperError, R>) -> Self {
512        match err {
513            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
514            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
515                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
516                source: err.into(),
517            }),
518        }
519    }
520}
521impl From<crate::operation::delete_scraper::DeleteScraperError> for Error {
522    fn from(err: crate::operation::delete_scraper::DeleteScraperError) -> Self {
523        match err {
524            crate::operation::delete_scraper::DeleteScraperError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
525            crate::operation::delete_scraper::DeleteScraperError::ConflictException(inner) => Error::ConflictException(inner),
526            crate::operation::delete_scraper::DeleteScraperError::InternalServerException(inner) => Error::InternalServerException(inner),
527            crate::operation::delete_scraper::DeleteScraperError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
528            crate::operation::delete_scraper::DeleteScraperError::ThrottlingException(inner) => Error::ThrottlingException(inner),
529            crate::operation::delete_scraper::DeleteScraperError::ValidationException(inner) => Error::ValidationException(inner),
530            crate::operation::delete_scraper::DeleteScraperError::Unhandled(inner) => Error::Unhandled(inner),
531        }
532    }
533}
534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workspace::DeleteWorkspaceError, R>> for Error
535where
536    R: Send + Sync + std::fmt::Debug + 'static,
537{
538    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workspace::DeleteWorkspaceError, R>) -> Self {
539        match err {
540            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
541            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
542                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
543                source: err.into(),
544            }),
545        }
546    }
547}
548impl From<crate::operation::delete_workspace::DeleteWorkspaceError> for Error {
549    fn from(err: crate::operation::delete_workspace::DeleteWorkspaceError) -> Self {
550        match err {
551            crate::operation::delete_workspace::DeleteWorkspaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
552            crate::operation::delete_workspace::DeleteWorkspaceError::ConflictException(inner) => Error::ConflictException(inner),
553            crate::operation::delete_workspace::DeleteWorkspaceError::InternalServerException(inner) => Error::InternalServerException(inner),
554            crate::operation::delete_workspace::DeleteWorkspaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
555            crate::operation::delete_workspace::DeleteWorkspaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
556            crate::operation::delete_workspace::DeleteWorkspaceError::ValidationException(inner) => Error::ValidationException(inner),
557            crate::operation::delete_workspace::DeleteWorkspaceError::Unhandled(inner) => Error::Unhandled(inner),
558        }
559    }
560}
561impl<R>
562    From<
563        ::aws_smithy_runtime_api::client::result::SdkError<
564            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError,
565            R,
566        >,
567    > for Error
568where
569    R: Send + Sync + std::fmt::Debug + 'static,
570{
571    fn from(
572        err: ::aws_smithy_runtime_api::client::result::SdkError<
573            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError,
574            R,
575        >,
576    ) -> Self {
577        match err {
578            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
579            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
580                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
581                source: err.into(),
582            }),
583        }
584    }
585}
586impl From<crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError> for Error {
587    fn from(err: crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError) -> Self {
588        match err {
589            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::AccessDeniedException(inner) => {
590                Error::AccessDeniedException(inner)
591            }
592            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::InternalServerException(inner) => {
593                Error::InternalServerException(inner)
594            }
595            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::ResourceNotFoundException(inner) => {
596                Error::ResourceNotFoundException(inner)
597            }
598            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::ThrottlingException(inner) => {
599                Error::ThrottlingException(inner)
600            }
601            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::ValidationException(inner) => {
602                Error::ValidationException(inner)
603            }
604            crate::operation::describe_alert_manager_definition::DescribeAlertManagerDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
605        }
606    }
607}
608impl<R>
609    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError, R>>
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::describe_logging_configuration::DescribeLoggingConfigurationError,
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::describe_logging_configuration::DescribeLoggingConfigurationError> for Error {
630    fn from(err: crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError) -> Self {
631        match err {
632            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::AccessDeniedException(inner) => {
633                Error::AccessDeniedException(inner)
634            }
635            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::InternalServerException(inner) => {
636                Error::InternalServerException(inner)
637            }
638            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ResourceNotFoundException(inner) => {
639                Error::ResourceNotFoundException(inner)
640            }
641            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::ValidationException(inner) => {
642                Error::ValidationException(inner)
643            }
644            crate::operation::describe_logging_configuration::DescribeLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
645        }
646    }
647}
648impl<R>
649    From<
650        ::aws_smithy_runtime_api::client::result::SdkError<
651            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError,
652            R,
653        >,
654    > for Error
655where
656    R: Send + Sync + std::fmt::Debug + 'static,
657{
658    fn from(
659        err: ::aws_smithy_runtime_api::client::result::SdkError<
660            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError,
661            R,
662        >,
663    ) -> Self {
664        match err {
665            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
666            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
667                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
668                source: err.into(),
669            }),
670        }
671    }
672}
673impl From<crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError> for Error {
674    fn from(err: crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError) -> Self {
675        match err {
676            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::AccessDeniedException(inner) => {
677                Error::AccessDeniedException(inner)
678            }
679            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::InternalServerException(inner) => {
680                Error::InternalServerException(inner)
681            }
682            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::ResourceNotFoundException(inner) => {
683                Error::ResourceNotFoundException(inner)
684            }
685            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::ValidationException(inner) => {
686                Error::ValidationException(inner)
687            }
688            crate::operation::describe_query_logging_configuration::DescribeQueryLoggingConfigurationError::Unhandled(inner) => {
689                Error::Unhandled(inner)
690            }
691        }
692    }
693}
694impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>> for Error
695where
696    R: Send + Sync + std::fmt::Debug + 'static,
697{
698    fn from(
699        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policy::DescribeResourcePolicyError, R>,
700    ) -> Self {
701        match err {
702            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
703            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
704                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
705                source: err.into(),
706            }),
707        }
708    }
709}
710impl From<crate::operation::describe_resource_policy::DescribeResourcePolicyError> for Error {
711    fn from(err: crate::operation::describe_resource_policy::DescribeResourcePolicyError) -> Self {
712        match err {
713            crate::operation::describe_resource_policy::DescribeResourcePolicyError::AccessDeniedException(inner) => {
714                Error::AccessDeniedException(inner)
715            }
716            crate::operation::describe_resource_policy::DescribeResourcePolicyError::InternalServerException(inner) => {
717                Error::InternalServerException(inner)
718            }
719            crate::operation::describe_resource_policy::DescribeResourcePolicyError::ResourceNotFoundException(inner) => {
720                Error::ResourceNotFoundException(inner)
721            }
722            crate::operation::describe_resource_policy::DescribeResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
723            crate::operation::describe_resource_policy::DescribeResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
724            crate::operation::describe_resource_policy::DescribeResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
725        }
726    }
727}
728impl<R>
729    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError, R>>
730    for Error
731where
732    R: Send + Sync + std::fmt::Debug + 'static,
733{
734    fn from(
735        err: ::aws_smithy_runtime_api::client::result::SdkError<
736            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError,
737            R,
738        >,
739    ) -> Self {
740        match err {
741            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
742            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
743                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
744                source: err.into(),
745            }),
746        }
747    }
748}
749impl From<crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError> for Error {
750    fn from(err: crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError) -> Self {
751        match err {
752            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::AccessDeniedException(inner) => {
753                Error::AccessDeniedException(inner)
754            }
755            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::InternalServerException(inner) => {
756                Error::InternalServerException(inner)
757            }
758            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::ResourceNotFoundException(inner) => {
759                Error::ResourceNotFoundException(inner)
760            }
761            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::ThrottlingException(inner) => {
762                Error::ThrottlingException(inner)
763            }
764            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::ValidationException(inner) => {
765                Error::ValidationException(inner)
766            }
767            crate::operation::describe_rule_groups_namespace::DescribeRuleGroupsNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
768        }
769    }
770}
771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scraper::DescribeScraperError, R>> for Error
772where
773    R: Send + Sync + std::fmt::Debug + 'static,
774{
775    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scraper::DescribeScraperError, R>) -> Self {
776        match err {
777            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
778            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
779                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
780                source: err.into(),
781            }),
782        }
783    }
784}
785impl From<crate::operation::describe_scraper::DescribeScraperError> for Error {
786    fn from(err: crate::operation::describe_scraper::DescribeScraperError) -> Self {
787        match err {
788            crate::operation::describe_scraper::DescribeScraperError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
789            crate::operation::describe_scraper::DescribeScraperError::InternalServerException(inner) => Error::InternalServerException(inner),
790            crate::operation::describe_scraper::DescribeScraperError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
791            crate::operation::describe_scraper::DescribeScraperError::ThrottlingException(inner) => Error::ThrottlingException(inner),
792            crate::operation::describe_scraper::DescribeScraperError::ValidationException(inner) => Error::ValidationException(inner),
793            crate::operation::describe_scraper::DescribeScraperError::Unhandled(inner) => Error::Unhandled(inner),
794        }
795    }
796}
797impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workspace::DescribeWorkspaceError, R>> for Error
798where
799    R: Send + Sync + std::fmt::Debug + 'static,
800{
801    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workspace::DescribeWorkspaceError, R>) -> Self {
802        match err {
803            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
804            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
805                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
806                source: err.into(),
807            }),
808        }
809    }
810}
811impl From<crate::operation::describe_workspace::DescribeWorkspaceError> for Error {
812    fn from(err: crate::operation::describe_workspace::DescribeWorkspaceError) -> Self {
813        match err {
814            crate::operation::describe_workspace::DescribeWorkspaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
815            crate::operation::describe_workspace::DescribeWorkspaceError::InternalServerException(inner) => Error::InternalServerException(inner),
816            crate::operation::describe_workspace::DescribeWorkspaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
817            crate::operation::describe_workspace::DescribeWorkspaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
818            crate::operation::describe_workspace::DescribeWorkspaceError::ValidationException(inner) => Error::ValidationException(inner),
819            crate::operation::describe_workspace::DescribeWorkspaceError::Unhandled(inner) => Error::Unhandled(inner),
820        }
821    }
822}
823impl<R>
824    From<
825        ::aws_smithy_runtime_api::client::result::SdkError<
826            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError,
827            R,
828        >,
829    > for Error
830where
831    R: Send + Sync + std::fmt::Debug + 'static,
832{
833    fn from(
834        err: ::aws_smithy_runtime_api::client::result::SdkError<
835            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError,
836            R,
837        >,
838    ) -> Self {
839        match err {
840            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
841            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
842                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
843                source: err.into(),
844            }),
845        }
846    }
847}
848impl From<crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError> for Error {
849    fn from(err: crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError) -> Self {
850        match err {
851            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::AccessDeniedException(inner) => {
852                Error::AccessDeniedException(inner)
853            }
854            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::InternalServerException(inner) => {
855                Error::InternalServerException(inner)
856            }
857            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::ResourceNotFoundException(inner) => {
858                Error::ResourceNotFoundException(inner)
859            }
860            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::ThrottlingException(inner) => {
861                Error::ThrottlingException(inner)
862            }
863            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::ValidationException(inner) => {
864                Error::ValidationException(inner)
865            }
866            crate::operation::describe_workspace_configuration::DescribeWorkspaceConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
867        }
868    }
869}
870impl<R>
871    From<
872        ::aws_smithy_runtime_api::client::result::SdkError<
873            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError,
874            R,
875        >,
876    > for Error
877where
878    R: Send + Sync + std::fmt::Debug + 'static,
879{
880    fn from(
881        err: ::aws_smithy_runtime_api::client::result::SdkError<
882            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError,
883            R,
884        >,
885    ) -> Self {
886        match err {
887            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
888            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
889                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
890                source: err.into(),
891            }),
892        }
893    }
894}
895impl From<crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError> for Error {
896    fn from(err: crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError) -> Self {
897        match err {
898            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError::AccessDeniedException(inner) => {
899                Error::AccessDeniedException(inner)
900            }
901            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError::InternalServerException(inner) => {
902                Error::InternalServerException(inner)
903            }
904            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError::ThrottlingException(inner) => {
905                Error::ThrottlingException(inner)
906            }
907            crate::operation::get_default_scraper_configuration::GetDefaultScraperConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
908        }
909    }
910}
911impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError, R>>
912    for Error
913where
914    R: Send + Sync + std::fmt::Debug + 'static,
915{
916    fn from(
917        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError, R>,
918    ) -> Self {
919        match err {
920            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
921            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
922                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
923                source: err.into(),
924            }),
925        }
926    }
927}
928impl From<crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError> for Error {
929    fn from(err: crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError) -> Self {
930        match err {
931            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::AccessDeniedException(inner) => {
932                Error::AccessDeniedException(inner)
933            }
934            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::InternalServerException(inner) => {
935                Error::InternalServerException(inner)
936            }
937            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::ResourceNotFoundException(inner) => {
938                Error::ResourceNotFoundException(inner)
939            }
940            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::ThrottlingException(inner) => {
941                Error::ThrottlingException(inner)
942            }
943            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::ValidationException(inner) => {
944                Error::ValidationException(inner)
945            }
946            crate::operation::list_rule_groups_namespaces::ListRuleGroupsNamespacesError::Unhandled(inner) => Error::Unhandled(inner),
947        }
948    }
949}
950impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scrapers::ListScrapersError, R>> for Error
951where
952    R: Send + Sync + std::fmt::Debug + 'static,
953{
954    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scrapers::ListScrapersError, R>) -> Self {
955        match err {
956            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
957            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
958                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
959                source: err.into(),
960            }),
961        }
962    }
963}
964impl From<crate::operation::list_scrapers::ListScrapersError> for Error {
965    fn from(err: crate::operation::list_scrapers::ListScrapersError) -> Self {
966        match err {
967            crate::operation::list_scrapers::ListScrapersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
968            crate::operation::list_scrapers::ListScrapersError::InternalServerException(inner) => Error::InternalServerException(inner),
969            crate::operation::list_scrapers::ListScrapersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
970            crate::operation::list_scrapers::ListScrapersError::ValidationException(inner) => Error::ValidationException(inner),
971            crate::operation::list_scrapers::ListScrapersError::Unhandled(inner) => Error::Unhandled(inner),
972        }
973    }
974}
975impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
976where
977    R: Send + Sync + std::fmt::Debug + 'static,
978{
979    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
980        match err {
981            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
982            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
983                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
984                source: err.into(),
985            }),
986        }
987    }
988}
989impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
990    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
991        match err {
992            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
993            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
994                Error::InternalServerException(inner)
995            }
996            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
997                Error::ResourceNotFoundException(inner)
998            }
999            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1000            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
1001            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1002        }
1003    }
1004}
1005impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workspaces::ListWorkspacesError, R>> for Error
1006where
1007    R: Send + Sync + std::fmt::Debug + 'static,
1008{
1009    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workspaces::ListWorkspacesError, R>) -> Self {
1010        match err {
1011            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1012            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1013                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1014                source: err.into(),
1015            }),
1016        }
1017    }
1018}
1019impl From<crate::operation::list_workspaces::ListWorkspacesError> for Error {
1020    fn from(err: crate::operation::list_workspaces::ListWorkspacesError) -> Self {
1021        match err {
1022            crate::operation::list_workspaces::ListWorkspacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1023            crate::operation::list_workspaces::ListWorkspacesError::InternalServerException(inner) => Error::InternalServerException(inner),
1024            crate::operation::list_workspaces::ListWorkspacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1025            crate::operation::list_workspaces::ListWorkspacesError::ValidationException(inner) => Error::ValidationException(inner),
1026            crate::operation::list_workspaces::ListWorkspacesError::Unhandled(inner) => Error::Unhandled(inner),
1027        }
1028    }
1029}
1030impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError, R>>
1031    for Error
1032where
1033    R: Send + Sync + std::fmt::Debug + 'static,
1034{
1035    fn from(
1036        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError, R>,
1037    ) -> Self {
1038        match err {
1039            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1040            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1041                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1042                source: err.into(),
1043            }),
1044        }
1045    }
1046}
1047impl From<crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError> for Error {
1048    fn from(err: crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError) -> Self {
1049        match err {
1050            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::AccessDeniedException(inner) => {
1051                Error::AccessDeniedException(inner)
1052            }
1053            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ConflictException(inner) => {
1054                Error::ConflictException(inner)
1055            }
1056            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::InternalServerException(inner) => {
1057                Error::InternalServerException(inner)
1058            }
1059            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ResourceNotFoundException(inner) => {
1060                Error::ResourceNotFoundException(inner)
1061            }
1062            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ServiceQuotaExceededException(inner) => {
1063                Error::ServiceQuotaExceededException(inner)
1064            }
1065            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ThrottlingException(inner) => {
1066                Error::ThrottlingException(inner)
1067            }
1068            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::ValidationException(inner) => {
1069                Error::ValidationException(inner)
1070            }
1071            crate::operation::put_alert_manager_definition::PutAlertManagerDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1072        }
1073    }
1074}
1075impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, 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::put_resource_policy::PutResourcePolicyError, 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::put_resource_policy::PutResourcePolicyError> for Error {
1090    fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
1091        match err {
1092            crate::operation::put_resource_policy::PutResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1093            crate::operation::put_resource_policy::PutResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
1094            crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
1095            crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
1096                Error::ResourceNotFoundException(inner)
1097            }
1098            crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1099            crate::operation::put_resource_policy::PutResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
1100            crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1101        }
1102    }
1103}
1104impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError, R>>
1105    for Error
1106where
1107    R: Send + Sync + std::fmt::Debug + 'static,
1108{
1109    fn from(
1110        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError, R>,
1111    ) -> Self {
1112        match err {
1113            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1114            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1115                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1116                source: err.into(),
1117            }),
1118        }
1119    }
1120}
1121impl From<crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError> for Error {
1122    fn from(err: crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError) -> Self {
1123        match err {
1124            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::AccessDeniedException(inner) => {
1125                Error::AccessDeniedException(inner)
1126            }
1127            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ConflictException(inner) => Error::ConflictException(inner),
1128            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::InternalServerException(inner) => {
1129                Error::InternalServerException(inner)
1130            }
1131            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ResourceNotFoundException(inner) => {
1132                Error::ResourceNotFoundException(inner)
1133            }
1134            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ServiceQuotaExceededException(inner) => {
1135                Error::ServiceQuotaExceededException(inner)
1136            }
1137            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1138            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::ValidationException(inner) => Error::ValidationException(inner),
1139            crate::operation::put_rule_groups_namespace::PutRuleGroupsNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
1140        }
1141    }
1142}
1143impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1144where
1145    R: Send + Sync + std::fmt::Debug + 'static,
1146{
1147    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1148        match err {
1149            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1150            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1151                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1152                source: err.into(),
1153            }),
1154        }
1155    }
1156}
1157impl From<crate::operation::tag_resource::TagResourceError> for Error {
1158    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1159        match err {
1160            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1161            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1162            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1163            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1164            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1165            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1166        }
1167    }
1168}
1169impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1170where
1171    R: Send + Sync + std::fmt::Debug + 'static,
1172{
1173    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1174        match err {
1175            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1176            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1177                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1178                source: err.into(),
1179            }),
1180        }
1181    }
1182}
1183impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1184    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1185        match err {
1186            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1187            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1188            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1189            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1190            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1191            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1192        }
1193    }
1194}
1195impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>>
1196    for Error
1197where
1198    R: Send + Sync + std::fmt::Debug + 'static,
1199{
1200    fn from(
1201        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError, R>,
1202    ) -> Self {
1203        match err {
1204            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1205            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1206                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1207                source: err.into(),
1208            }),
1209        }
1210    }
1211}
1212impl From<crate::operation::update_logging_configuration::UpdateLoggingConfigurationError> for Error {
1213    fn from(err: crate::operation::update_logging_configuration::UpdateLoggingConfigurationError) -> Self {
1214        match err {
1215            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::AccessDeniedException(inner) => {
1216                Error::AccessDeniedException(inner)
1217            }
1218            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ConflictException(inner) => {
1219                Error::ConflictException(inner)
1220            }
1221            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::InternalServerException(inner) => {
1222                Error::InternalServerException(inner)
1223            }
1224            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ResourceNotFoundException(inner) => {
1225                Error::ResourceNotFoundException(inner)
1226            }
1227            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::ValidationException(inner) => {
1228                Error::ValidationException(inner)
1229            }
1230            crate::operation::update_logging_configuration::UpdateLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1231        }
1232    }
1233}
1234impl<R>
1235    From<
1236        ::aws_smithy_runtime_api::client::result::SdkError<
1237            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError,
1238            R,
1239        >,
1240    > for Error
1241where
1242    R: Send + Sync + std::fmt::Debug + 'static,
1243{
1244    fn from(
1245        err: ::aws_smithy_runtime_api::client::result::SdkError<
1246            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError,
1247            R,
1248        >,
1249    ) -> Self {
1250        match err {
1251            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1252            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1253                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1254                source: err.into(),
1255            }),
1256        }
1257    }
1258}
1259impl From<crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError> for Error {
1260    fn from(err: crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError) -> Self {
1261        match err {
1262            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::AccessDeniedException(inner) => {
1263                Error::AccessDeniedException(inner)
1264            }
1265            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::ConflictException(inner) => {
1266                Error::ConflictException(inner)
1267            }
1268            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::InternalServerException(inner) => {
1269                Error::InternalServerException(inner)
1270            }
1271            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::ResourceNotFoundException(inner) => {
1272                Error::ResourceNotFoundException(inner)
1273            }
1274            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::ValidationException(inner) => {
1275                Error::ValidationException(inner)
1276            }
1277            crate::operation::update_query_logging_configuration::UpdateQueryLoggingConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1278        }
1279    }
1280}
1281impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scraper::UpdateScraperError, R>> for Error
1282where
1283    R: Send + Sync + std::fmt::Debug + 'static,
1284{
1285    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scraper::UpdateScraperError, R>) -> Self {
1286        match err {
1287            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1288            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1289                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1290                source: err.into(),
1291            }),
1292        }
1293    }
1294}
1295impl From<crate::operation::update_scraper::UpdateScraperError> for Error {
1296    fn from(err: crate::operation::update_scraper::UpdateScraperError) -> Self {
1297        match err {
1298            crate::operation::update_scraper::UpdateScraperError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1299            crate::operation::update_scraper::UpdateScraperError::ConflictException(inner) => Error::ConflictException(inner),
1300            crate::operation::update_scraper::UpdateScraperError::InternalServerException(inner) => Error::InternalServerException(inner),
1301            crate::operation::update_scraper::UpdateScraperError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1302            crate::operation::update_scraper::UpdateScraperError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1303            crate::operation::update_scraper::UpdateScraperError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1304            crate::operation::update_scraper::UpdateScraperError::ValidationException(inner) => Error::ValidationException(inner),
1305            crate::operation::update_scraper::UpdateScraperError::Unhandled(inner) => Error::Unhandled(inner),
1306        }
1307    }
1308}
1309impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workspace_alias::UpdateWorkspaceAliasError, 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::update_workspace_alias::UpdateWorkspaceAliasError, 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::update_workspace_alias::UpdateWorkspaceAliasError> for Error {
1324    fn from(err: crate::operation::update_workspace_alias::UpdateWorkspaceAliasError) -> Self {
1325        match err {
1326            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1327            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ConflictException(inner) => Error::ConflictException(inner),
1328            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::InternalServerException(inner) => {
1329                Error::InternalServerException(inner)
1330            }
1331            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ResourceNotFoundException(inner) => {
1332                Error::ResourceNotFoundException(inner)
1333            }
1334            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ServiceQuotaExceededException(inner) => {
1335                Error::ServiceQuotaExceededException(inner)
1336            }
1337            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1338            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::ValidationException(inner) => Error::ValidationException(inner),
1339            crate::operation::update_workspace_alias::UpdateWorkspaceAliasError::Unhandled(inner) => Error::Unhandled(inner),
1340        }
1341    }
1342}
1343impl<R>
1344    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError, R>>
1345    for Error
1346where
1347    R: Send + Sync + std::fmt::Debug + 'static,
1348{
1349    fn from(
1350        err: ::aws_smithy_runtime_api::client::result::SdkError<
1351            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError,
1352            R,
1353        >,
1354    ) -> Self {
1355        match err {
1356            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1357            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1358                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1359                source: err.into(),
1360            }),
1361        }
1362    }
1363}
1364impl From<crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError> for Error {
1365    fn from(err: crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError) -> Self {
1366        match err {
1367            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::AccessDeniedException(inner) => {
1368                Error::AccessDeniedException(inner)
1369            }
1370            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ConflictException(inner) => {
1371                Error::ConflictException(inner)
1372            }
1373            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::InternalServerException(inner) => {
1374                Error::InternalServerException(inner)
1375            }
1376            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ResourceNotFoundException(inner) => {
1377                Error::ResourceNotFoundException(inner)
1378            }
1379            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ServiceQuotaExceededException(inner) => {
1380                Error::ServiceQuotaExceededException(inner)
1381            }
1382            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ThrottlingException(inner) => {
1383                Error::ThrottlingException(inner)
1384            }
1385            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::ValidationException(inner) => {
1386                Error::ValidationException(inner)
1387            }
1388            crate::operation::update_workspace_configuration::UpdateWorkspaceConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1389        }
1390    }
1391}
1392impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
1393where
1394    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
1395    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
1396{
1397    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
1398        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1399            meta: ::std::default::Default::default(),
1400            source: err.into(),
1401        })
1402    }
1403}
1404impl ::std::error::Error for Error {
1405    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1406        match self {
1407            Error::AccessDeniedException(inner) => inner.source(),
1408            Error::ConflictException(inner) => inner.source(),
1409            Error::InternalServerException(inner) => inner.source(),
1410            Error::ResourceNotFoundException(inner) => inner.source(),
1411            Error::ServiceQuotaExceededException(inner) => inner.source(),
1412            Error::ThrottlingException(inner) => inner.source(),
1413            Error::ValidationException(inner) => inner.source(),
1414            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1415        }
1416    }
1417}
1418impl ::aws_types::request_id::RequestId for Error {
1419    fn request_id(&self) -> Option<&str> {
1420        match self {
1421            Self::AccessDeniedException(e) => e.request_id(),
1422            Self::ConflictException(e) => e.request_id(),
1423            Self::InternalServerException(e) => e.request_id(),
1424            Self::ResourceNotFoundException(e) => e.request_id(),
1425            Self::ServiceQuotaExceededException(e) => e.request_id(),
1426            Self::ThrottlingException(e) => e.request_id(),
1427            Self::ValidationException(e) => e.request_id(),
1428            Self::Unhandled(e) => e.meta.request_id(),
1429        }
1430    }
1431}