aws_sdk_notifications/
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>User does not have sufficient access to perform this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>Updating or deleting a resource can cause an inconsistent state.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>Unexpected error during processing of request.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>Request references a resource which does not exist.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>Request would cause a service quota to be exceeded.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>Request was denied due to request throttling.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>This exception is thrown when the notification event fails validation.</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> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_channel::AssociateChannelError, R>> for Error
72where
73    R: Send + Sync + std::fmt::Debug + 'static,
74{
75    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_channel::AssociateChannelError, R>) -> Self {
76        match err {
77            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
78            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
79                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
80                source: err.into(),
81            }),
82        }
83    }
84}
85impl From<crate::operation::associate_channel::AssociateChannelError> for Error {
86    fn from(err: crate::operation::associate_channel::AssociateChannelError) -> Self {
87        match err {
88            crate::operation::associate_channel::AssociateChannelError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89            crate::operation::associate_channel::AssociateChannelError::ConflictException(inner) => Error::ConflictException(inner),
90            crate::operation::associate_channel::AssociateChannelError::InternalServerException(inner) => Error::InternalServerException(inner),
91            crate::operation::associate_channel::AssociateChannelError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
92            crate::operation::associate_channel::AssociateChannelError::ServiceQuotaExceededException(inner) => {
93                Error::ServiceQuotaExceededException(inner)
94            }
95            crate::operation::associate_channel::AssociateChannelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
96            crate::operation::associate_channel::AssociateChannelError::ValidationException(inner) => Error::ValidationException(inner),
97            crate::operation::associate_channel::AssociateChannelError::Unhandled(inner) => Error::Unhandled(inner),
98        }
99    }
100}
101impl<R>
102    From<
103        ::aws_smithy_runtime_api::client::result::SdkError<
104            crate::operation::associate_managed_notification_account_contact::AssociateManagedNotificationAccountContactError,
105            R,
106        >,
107    > for Error
108where
109    R: Send + Sync + std::fmt::Debug + 'static,
110{
111    fn from(
112        err: ::aws_smithy_runtime_api::client::result::SdkError<
113            crate::operation::associate_managed_notification_account_contact::AssociateManagedNotificationAccountContactError,
114            R,
115        >,
116    ) -> Self {
117        match err {
118            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
119            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
120                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
121                source: err.into(),
122            }),
123        }
124    }
125}
126impl From<crate::operation::associate_managed_notification_account_contact::AssociateManagedNotificationAccountContactError> for Error {
127    fn from(err: crate::operation::associate_managed_notification_account_contact::AssociateManagedNotificationAccountContactError) -> Self {
128        match err {
129            crate::operation::associate_managed_notification_account_contact::AssociateManagedNotificationAccountContactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
130            crate::operation::associate_managed_notification_account_contact::AssociateManagedNotificationAccountContactError::ConflictException(inner) => Error::ConflictException(inner),
131            crate::operation::associate_managed_notification_account_contact::AssociateManagedNotificationAccountContactError::InternalServerException(inner) => Error::InternalServerException(inner),
132            crate::operation::associate_managed_notification_account_contact::AssociateManagedNotificationAccountContactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
133            crate::operation::associate_managed_notification_account_contact::AssociateManagedNotificationAccountContactError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
134            crate::operation::associate_managed_notification_account_contact::AssociateManagedNotificationAccountContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
135            crate::operation::associate_managed_notification_account_contact::AssociateManagedNotificationAccountContactError::ValidationException(inner) => Error::ValidationException(inner),
136            crate::operation::associate_managed_notification_account_contact::AssociateManagedNotificationAccountContactError::Unhandled(inner) => Error::Unhandled(inner),
137        }
138    }
139}
140impl<R>
141    From<
142        ::aws_smithy_runtime_api::client::result::SdkError<
143            crate::operation::associate_managed_notification_additional_channel::AssociateManagedNotificationAdditionalChannelError,
144            R,
145        >,
146    > for Error
147where
148    R: Send + Sync + std::fmt::Debug + 'static,
149{
150    fn from(
151        err: ::aws_smithy_runtime_api::client::result::SdkError<
152            crate::operation::associate_managed_notification_additional_channel::AssociateManagedNotificationAdditionalChannelError,
153            R,
154        >,
155    ) -> Self {
156        match err {
157            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
158            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
159                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
160                source: err.into(),
161            }),
162        }
163    }
164}
165impl From<crate::operation::associate_managed_notification_additional_channel::AssociateManagedNotificationAdditionalChannelError> for Error {
166    fn from(err: crate::operation::associate_managed_notification_additional_channel::AssociateManagedNotificationAdditionalChannelError) -> Self {
167        match err {
168            crate::operation::associate_managed_notification_additional_channel::AssociateManagedNotificationAdditionalChannelError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
169            crate::operation::associate_managed_notification_additional_channel::AssociateManagedNotificationAdditionalChannelError::ConflictException(inner) => Error::ConflictException(inner),
170            crate::operation::associate_managed_notification_additional_channel::AssociateManagedNotificationAdditionalChannelError::InternalServerException(inner) => Error::InternalServerException(inner),
171            crate::operation::associate_managed_notification_additional_channel::AssociateManagedNotificationAdditionalChannelError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
172            crate::operation::associate_managed_notification_additional_channel::AssociateManagedNotificationAdditionalChannelError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
173            crate::operation::associate_managed_notification_additional_channel::AssociateManagedNotificationAdditionalChannelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
174            crate::operation::associate_managed_notification_additional_channel::AssociateManagedNotificationAdditionalChannelError::ValidationException(inner) => Error::ValidationException(inner),
175            crate::operation::associate_managed_notification_additional_channel::AssociateManagedNotificationAdditionalChannelError::Unhandled(inner) => Error::Unhandled(inner),
176        }
177    }
178}
179impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_rule::CreateEventRuleError, R>> for Error
180where
181    R: Send + Sync + std::fmt::Debug + 'static,
182{
183    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_rule::CreateEventRuleError, R>) -> Self {
184        match err {
185            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
186            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
187                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
188                source: err.into(),
189            }),
190        }
191    }
192}
193impl From<crate::operation::create_event_rule::CreateEventRuleError> for Error {
194    fn from(err: crate::operation::create_event_rule::CreateEventRuleError) -> Self {
195        match err {
196            crate::operation::create_event_rule::CreateEventRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
197            crate::operation::create_event_rule::CreateEventRuleError::ConflictException(inner) => Error::ConflictException(inner),
198            crate::operation::create_event_rule::CreateEventRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
199            crate::operation::create_event_rule::CreateEventRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
200            crate::operation::create_event_rule::CreateEventRuleError::ServiceQuotaExceededException(inner) => {
201                Error::ServiceQuotaExceededException(inner)
202            }
203            crate::operation::create_event_rule::CreateEventRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
204            crate::operation::create_event_rule::CreateEventRuleError::ValidationException(inner) => Error::ValidationException(inner),
205            crate::operation::create_event_rule::CreateEventRuleError::Unhandled(inner) => Error::Unhandled(inner),
206        }
207    }
208}
209impl<R>
210    From<
211        ::aws_smithy_runtime_api::client::result::SdkError<
212            crate::operation::create_notification_configuration::CreateNotificationConfigurationError,
213            R,
214        >,
215    > for Error
216where
217    R: Send + Sync + std::fmt::Debug + 'static,
218{
219    fn from(
220        err: ::aws_smithy_runtime_api::client::result::SdkError<
221            crate::operation::create_notification_configuration::CreateNotificationConfigurationError,
222            R,
223        >,
224    ) -> Self {
225        match err {
226            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
227            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
228                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
229                source: err.into(),
230            }),
231        }
232    }
233}
234impl From<crate::operation::create_notification_configuration::CreateNotificationConfigurationError> for Error {
235    fn from(err: crate::operation::create_notification_configuration::CreateNotificationConfigurationError) -> Self {
236        match err {
237            crate::operation::create_notification_configuration::CreateNotificationConfigurationError::AccessDeniedException(inner) => {
238                Error::AccessDeniedException(inner)
239            }
240            crate::operation::create_notification_configuration::CreateNotificationConfigurationError::ConflictException(inner) => {
241                Error::ConflictException(inner)
242            }
243            crate::operation::create_notification_configuration::CreateNotificationConfigurationError::InternalServerException(inner) => {
244                Error::InternalServerException(inner)
245            }
246            crate::operation::create_notification_configuration::CreateNotificationConfigurationError::ServiceQuotaExceededException(inner) => {
247                Error::ServiceQuotaExceededException(inner)
248            }
249            crate::operation::create_notification_configuration::CreateNotificationConfigurationError::ThrottlingException(inner) => {
250                Error::ThrottlingException(inner)
251            }
252            crate::operation::create_notification_configuration::CreateNotificationConfigurationError::ValidationException(inner) => {
253                Error::ValidationException(inner)
254            }
255            crate::operation::create_notification_configuration::CreateNotificationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
256        }
257    }
258}
259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_rule::DeleteEventRuleError, R>> for Error
260where
261    R: Send + Sync + std::fmt::Debug + 'static,
262{
263    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_rule::DeleteEventRuleError, R>) -> Self {
264        match err {
265            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
266            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
267                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
268                source: err.into(),
269            }),
270        }
271    }
272}
273impl From<crate::operation::delete_event_rule::DeleteEventRuleError> for Error {
274    fn from(err: crate::operation::delete_event_rule::DeleteEventRuleError) -> Self {
275        match err {
276            crate::operation::delete_event_rule::DeleteEventRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
277            crate::operation::delete_event_rule::DeleteEventRuleError::ConflictException(inner) => Error::ConflictException(inner),
278            crate::operation::delete_event_rule::DeleteEventRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
279            crate::operation::delete_event_rule::DeleteEventRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
280            crate::operation::delete_event_rule::DeleteEventRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
281            crate::operation::delete_event_rule::DeleteEventRuleError::ValidationException(inner) => Error::ValidationException(inner),
282            crate::operation::delete_event_rule::DeleteEventRuleError::Unhandled(inner) => Error::Unhandled(inner),
283        }
284    }
285}
286impl<R>
287    From<
288        ::aws_smithy_runtime_api::client::result::SdkError<
289            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError,
290            R,
291        >,
292    > for Error
293where
294    R: Send + Sync + std::fmt::Debug + 'static,
295{
296    fn from(
297        err: ::aws_smithy_runtime_api::client::result::SdkError<
298            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError,
299            R,
300        >,
301    ) -> Self {
302        match err {
303            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
304            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
305                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
306                source: err.into(),
307            }),
308        }
309    }
310}
311impl From<crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError> for Error {
312    fn from(err: crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError) -> Self {
313        match err {
314            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::AccessDeniedException(inner) => {
315                Error::AccessDeniedException(inner)
316            }
317            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::ConflictException(inner) => {
318                Error::ConflictException(inner)
319            }
320            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::InternalServerException(inner) => {
321                Error::InternalServerException(inner)
322            }
323            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::ResourceNotFoundException(inner) => {
324                Error::ResourceNotFoundException(inner)
325            }
326            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::ThrottlingException(inner) => {
327                Error::ThrottlingException(inner)
328            }
329            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::ValidationException(inner) => {
330                Error::ValidationException(inner)
331            }
332            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
333        }
334    }
335}
336impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_notification_hub::DeregisterNotificationHubError, R>>
337    for Error
338where
339    R: Send + Sync + std::fmt::Debug + 'static,
340{
341    fn from(
342        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_notification_hub::DeregisterNotificationHubError, R>,
343    ) -> Self {
344        match err {
345            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
346            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
347                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
348                source: err.into(),
349            }),
350        }
351    }
352}
353impl From<crate::operation::deregister_notification_hub::DeregisterNotificationHubError> for Error {
354    fn from(err: crate::operation::deregister_notification_hub::DeregisterNotificationHubError) -> Self {
355        match err {
356            crate::operation::deregister_notification_hub::DeregisterNotificationHubError::AccessDeniedException(inner) => {
357                Error::AccessDeniedException(inner)
358            }
359            crate::operation::deregister_notification_hub::DeregisterNotificationHubError::ConflictException(inner) => {
360                Error::ConflictException(inner)
361            }
362            crate::operation::deregister_notification_hub::DeregisterNotificationHubError::InternalServerException(inner) => {
363                Error::InternalServerException(inner)
364            }
365            crate::operation::deregister_notification_hub::DeregisterNotificationHubError::ResourceNotFoundException(inner) => {
366                Error::ResourceNotFoundException(inner)
367            }
368            crate::operation::deregister_notification_hub::DeregisterNotificationHubError::ThrottlingException(inner) => {
369                Error::ThrottlingException(inner)
370            }
371            crate::operation::deregister_notification_hub::DeregisterNotificationHubError::ValidationException(inner) => {
372                Error::ValidationException(inner)
373            }
374            crate::operation::deregister_notification_hub::DeregisterNotificationHubError::Unhandled(inner) => Error::Unhandled(inner),
375        }
376    }
377}
378impl<R>
379    From<
380        ::aws_smithy_runtime_api::client::result::SdkError<
381            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError,
382            R,
383        >,
384    > for Error
385where
386    R: Send + Sync + std::fmt::Debug + 'static,
387{
388    fn from(
389        err: ::aws_smithy_runtime_api::client::result::SdkError<
390            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError,
391            R,
392        >,
393    ) -> Self {
394        match err {
395            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
396            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
397                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
398                source: err.into(),
399            }),
400        }
401    }
402}
403impl From<crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError> for Error {
404    fn from(err: crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError) -> Self {
405        match err {
406            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
407            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError::ConflictException(inner) => Error::ConflictException(inner),
408            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError::InternalServerException(inner) => Error::InternalServerException(inner),
409            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
410            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
411            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
412            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError::ValidationException(inner) => Error::ValidationException(inner),
413            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError::Unhandled(inner) => Error::Unhandled(inner),
414        }
415    }
416}
417impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_channel::DisassociateChannelError, R>> for Error
418where
419    R: Send + Sync + std::fmt::Debug + 'static,
420{
421    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_channel::DisassociateChannelError, R>) -> Self {
422        match err {
423            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
424            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
425                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
426                source: err.into(),
427            }),
428        }
429    }
430}
431impl From<crate::operation::disassociate_channel::DisassociateChannelError> for Error {
432    fn from(err: crate::operation::disassociate_channel::DisassociateChannelError) -> Self {
433        match err {
434            crate::operation::disassociate_channel::DisassociateChannelError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
435            crate::operation::disassociate_channel::DisassociateChannelError::InternalServerException(inner) => Error::InternalServerException(inner),
436            crate::operation::disassociate_channel::DisassociateChannelError::ResourceNotFoundException(inner) => {
437                Error::ResourceNotFoundException(inner)
438            }
439            crate::operation::disassociate_channel::DisassociateChannelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
440            crate::operation::disassociate_channel::DisassociateChannelError::ValidationException(inner) => Error::ValidationException(inner),
441            crate::operation::disassociate_channel::DisassociateChannelError::Unhandled(inner) => Error::Unhandled(inner),
442        }
443    }
444}
445impl<R>
446    From<
447        ::aws_smithy_runtime_api::client::result::SdkError<
448            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError,
449            R,
450        >,
451    > for Error
452where
453    R: Send + Sync + std::fmt::Debug + 'static,
454{
455    fn from(
456        err: ::aws_smithy_runtime_api::client::result::SdkError<
457            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError,
458            R,
459        >,
460    ) -> Self {
461        match err {
462            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
463            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
464                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
465                source: err.into(),
466            }),
467        }
468    }
469}
470impl From<crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError> for Error {
471    fn from(err: crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError) -> Self {
472        match err {
473            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
474            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError::ConflictException(inner) => Error::ConflictException(inner),
475            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError::InternalServerException(inner) => Error::InternalServerException(inner),
476            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
477            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
478            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError::ValidationException(inner) => Error::ValidationException(inner),
479            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError::Unhandled(inner) => Error::Unhandled(inner),
480        }
481    }
482}
483impl<R>
484    From<
485        ::aws_smithy_runtime_api::client::result::SdkError<
486            crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError,
487            R,
488        >,
489    > for Error
490where
491    R: Send + Sync + std::fmt::Debug + 'static,
492{
493    fn from(
494        err: ::aws_smithy_runtime_api::client::result::SdkError<
495            crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError,
496            R,
497        >,
498    ) -> Self {
499        match err {
500            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
501            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
502                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
503                source: err.into(),
504            }),
505        }
506    }
507}
508impl From<crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError> for Error {
509    fn from(
510        err: crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError,
511    ) -> Self {
512        match err {
513            crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
514            crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError::InternalServerException(inner) => Error::InternalServerException(inner),
515            crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
516            crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
517            crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError::ValidationException(inner) => Error::ValidationException(inner),
518            crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError::Unhandled(inner) => Error::Unhandled(inner),
519        }
520    }
521}
522impl<R>
523    From<
524        ::aws_smithy_runtime_api::client::result::SdkError<
525            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError,
526            R,
527        >,
528    > for Error
529where
530    R: Send + Sync + std::fmt::Debug + 'static,
531{
532    fn from(
533        err: ::aws_smithy_runtime_api::client::result::SdkError<
534            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError,
535            R,
536        >,
537    ) -> Self {
538        match err {
539            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
540            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
541                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
542                source: err.into(),
543            }),
544        }
545    }
546}
547impl From<crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError> for Error {
548    fn from(err: crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError) -> Self {
549        match err {
550            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
551            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError::ConflictException(inner) => Error::ConflictException(inner),
552            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError::InternalServerException(inner) => Error::InternalServerException(inner),
553            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
554            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
555            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
556            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError::ValidationException(inner) => Error::ValidationException(inner),
557            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError::Unhandled(inner) => Error::Unhandled(inner),
558        }
559    }
560}
561impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_event_rule::GetEventRuleError, R>> for Error
562where
563    R: Send + Sync + std::fmt::Debug + 'static,
564{
565    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_event_rule::GetEventRuleError, R>) -> Self {
566        match err {
567            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
568            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
569                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
570                source: err.into(),
571            }),
572        }
573    }
574}
575impl From<crate::operation::get_event_rule::GetEventRuleError> for Error {
576    fn from(err: crate::operation::get_event_rule::GetEventRuleError) -> Self {
577        match err {
578            crate::operation::get_event_rule::GetEventRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
579            crate::operation::get_event_rule::GetEventRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
580            crate::operation::get_event_rule::GetEventRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
581            crate::operation::get_event_rule::GetEventRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
582            crate::operation::get_event_rule::GetEventRuleError::ValidationException(inner) => Error::ValidationException(inner),
583            crate::operation::get_event_rule::GetEventRuleError::Unhandled(inner) => Error::Unhandled(inner),
584        }
585    }
586}
587impl<R>
588    From<
589        ::aws_smithy_runtime_api::client::result::SdkError<
590            crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError,
591            R,
592        >,
593    > for Error
594where
595    R: Send + Sync + std::fmt::Debug + 'static,
596{
597    fn from(
598        err: ::aws_smithy_runtime_api::client::result::SdkError<
599            crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError,
600            R,
601        >,
602    ) -> Self {
603        match err {
604            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
605            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
606                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
607                source: err.into(),
608            }),
609        }
610    }
611}
612impl From<crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError> for Error {
613    fn from(err: crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError) -> Self {
614        match err {
615            crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError::AccessDeniedException(inner) => {
616                Error::AccessDeniedException(inner)
617            }
618            crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError::InternalServerException(inner) => {
619                Error::InternalServerException(inner)
620            }
621            crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError::ResourceNotFoundException(inner) => {
622                Error::ResourceNotFoundException(inner)
623            }
624            crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError::ThrottlingException(inner) => {
625                Error::ThrottlingException(inner)
626            }
627            crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError::ValidationException(inner) => {
628                Error::ValidationException(inner)
629            }
630            crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError::Unhandled(inner) => {
631                Error::Unhandled(inner)
632            }
633        }
634    }
635}
636impl<R>
637    From<
638        ::aws_smithy_runtime_api::client::result::SdkError<
639            crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError,
640            R,
641        >,
642    > for Error
643where
644    R: Send + Sync + std::fmt::Debug + 'static,
645{
646    fn from(
647        err: ::aws_smithy_runtime_api::client::result::SdkError<
648            crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError,
649            R,
650        >,
651    ) -> Self {
652        match err {
653            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
654            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
655                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
656                source: err.into(),
657            }),
658        }
659    }
660}
661impl From<crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError> for Error {
662    fn from(err: crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError) -> Self {
663        match err {
664            crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError::AccessDeniedException(inner) => {
665                Error::AccessDeniedException(inner)
666            }
667            crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError::InternalServerException(inner) => {
668                Error::InternalServerException(inner)
669            }
670            crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError::ResourceNotFoundException(inner) => {
671                Error::ResourceNotFoundException(inner)
672            }
673            crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError::ThrottlingException(inner) => {
674                Error::ThrottlingException(inner)
675            }
676            crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError::ValidationException(inner) => {
677                Error::ValidationException(inner)
678            }
679            crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError::Unhandled(inner) => {
680                Error::Unhandled(inner)
681            }
682        }
683    }
684}
685impl<R>
686    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_notification_event::GetManagedNotificationEventError, R>>
687    for Error
688where
689    R: Send + Sync + std::fmt::Debug + 'static,
690{
691    fn from(
692        err: ::aws_smithy_runtime_api::client::result::SdkError<
693            crate::operation::get_managed_notification_event::GetManagedNotificationEventError,
694            R,
695        >,
696    ) -> Self {
697        match err {
698            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
699            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
700                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
701                source: err.into(),
702            }),
703        }
704    }
705}
706impl From<crate::operation::get_managed_notification_event::GetManagedNotificationEventError> for Error {
707    fn from(err: crate::operation::get_managed_notification_event::GetManagedNotificationEventError) -> Self {
708        match err {
709            crate::operation::get_managed_notification_event::GetManagedNotificationEventError::AccessDeniedException(inner) => {
710                Error::AccessDeniedException(inner)
711            }
712            crate::operation::get_managed_notification_event::GetManagedNotificationEventError::InternalServerException(inner) => {
713                Error::InternalServerException(inner)
714            }
715            crate::operation::get_managed_notification_event::GetManagedNotificationEventError::ResourceNotFoundException(inner) => {
716                Error::ResourceNotFoundException(inner)
717            }
718            crate::operation::get_managed_notification_event::GetManagedNotificationEventError::ThrottlingException(inner) => {
719                Error::ThrottlingException(inner)
720            }
721            crate::operation::get_managed_notification_event::GetManagedNotificationEventError::ValidationException(inner) => {
722                Error::ValidationException(inner)
723            }
724            crate::operation::get_managed_notification_event::GetManagedNotificationEventError::Unhandled(inner) => Error::Unhandled(inner),
725        }
726    }
727}
728impl<R>
729    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_notification_configuration::GetNotificationConfigurationError, 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::get_notification_configuration::GetNotificationConfigurationError,
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::get_notification_configuration::GetNotificationConfigurationError> for Error {
750    fn from(err: crate::operation::get_notification_configuration::GetNotificationConfigurationError) -> Self {
751        match err {
752            crate::operation::get_notification_configuration::GetNotificationConfigurationError::AccessDeniedException(inner) => {
753                Error::AccessDeniedException(inner)
754            }
755            crate::operation::get_notification_configuration::GetNotificationConfigurationError::InternalServerException(inner) => {
756                Error::InternalServerException(inner)
757            }
758            crate::operation::get_notification_configuration::GetNotificationConfigurationError::ResourceNotFoundException(inner) => {
759                Error::ResourceNotFoundException(inner)
760            }
761            crate::operation::get_notification_configuration::GetNotificationConfigurationError::ThrottlingException(inner) => {
762                Error::ThrottlingException(inner)
763            }
764            crate::operation::get_notification_configuration::GetNotificationConfigurationError::ValidationException(inner) => {
765                Error::ValidationException(inner)
766            }
767            crate::operation::get_notification_configuration::GetNotificationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
768        }
769    }
770}
771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_notification_event::GetNotificationEventError, 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::get_notification_event::GetNotificationEventError, 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::get_notification_event::GetNotificationEventError> for Error {
786    fn from(err: crate::operation::get_notification_event::GetNotificationEventError) -> Self {
787        match err {
788            crate::operation::get_notification_event::GetNotificationEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
789            crate::operation::get_notification_event::GetNotificationEventError::InternalServerException(inner) => {
790                Error::InternalServerException(inner)
791            }
792            crate::operation::get_notification_event::GetNotificationEventError::ResourceNotFoundException(inner) => {
793                Error::ResourceNotFoundException(inner)
794            }
795            crate::operation::get_notification_event::GetNotificationEventError::ThrottlingException(inner) => Error::ThrottlingException(inner),
796            crate::operation::get_notification_event::GetNotificationEventError::ValidationException(inner) => Error::ValidationException(inner),
797            crate::operation::get_notification_event::GetNotificationEventError::Unhandled(inner) => Error::Unhandled(inner),
798        }
799    }
800}
801impl<R>
802    From<
803        ::aws_smithy_runtime_api::client::result::SdkError<
804            crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError,
805            R,
806        >,
807    > for Error
808where
809    R: Send + Sync + std::fmt::Debug + 'static,
810{
811    fn from(
812        err: ::aws_smithy_runtime_api::client::result::SdkError<
813            crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError,
814            R,
815        >,
816    ) -> Self {
817        match err {
818            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
819            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
820                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
821                source: err.into(),
822            }),
823        }
824    }
825}
826impl From<crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError> for Error {
827    fn from(err: crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError) -> Self {
828        match err {
829            crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError::AccessDeniedException(inner) => {
830                Error::AccessDeniedException(inner)
831            }
832            crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError::InternalServerException(
833                inner,
834            ) => Error::InternalServerException(inner),
835            crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError::ThrottlingException(inner) => {
836                Error::ThrottlingException(inner)
837            }
838            crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError::ValidationException(inner) => {
839                Error::ValidationException(inner)
840            }
841            crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError::Unhandled(inner) => {
842                Error::Unhandled(inner)
843            }
844        }
845    }
846}
847impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_channels::ListChannelsError, R>> for Error
848where
849    R: Send + Sync + std::fmt::Debug + 'static,
850{
851    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_channels::ListChannelsError, R>) -> Self {
852        match err {
853            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
854            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
855                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
856                source: err.into(),
857            }),
858        }
859    }
860}
861impl From<crate::operation::list_channels::ListChannelsError> for Error {
862    fn from(err: crate::operation::list_channels::ListChannelsError) -> Self {
863        match err {
864            crate::operation::list_channels::ListChannelsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
865            crate::operation::list_channels::ListChannelsError::InternalServerException(inner) => Error::InternalServerException(inner),
866            crate::operation::list_channels::ListChannelsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
867            crate::operation::list_channels::ListChannelsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
868            crate::operation::list_channels::ListChannelsError::ValidationException(inner) => Error::ValidationException(inner),
869            crate::operation::list_channels::ListChannelsError::Unhandled(inner) => Error::Unhandled(inner),
870        }
871    }
872}
873impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_event_rules::ListEventRulesError, R>> for Error
874where
875    R: Send + Sync + std::fmt::Debug + 'static,
876{
877    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_event_rules::ListEventRulesError, R>) -> Self {
878        match err {
879            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
880            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
881                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
882                source: err.into(),
883            }),
884        }
885    }
886}
887impl From<crate::operation::list_event_rules::ListEventRulesError> for Error {
888    fn from(err: crate::operation::list_event_rules::ListEventRulesError) -> Self {
889        match err {
890            crate::operation::list_event_rules::ListEventRulesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
891            crate::operation::list_event_rules::ListEventRulesError::InternalServerException(inner) => Error::InternalServerException(inner),
892            crate::operation::list_event_rules::ListEventRulesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
893            crate::operation::list_event_rules::ListEventRulesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
894            crate::operation::list_event_rules::ListEventRulesError::ValidationException(inner) => Error::ValidationException(inner),
895            crate::operation::list_event_rules::ListEventRulesError::Unhandled(inner) => Error::Unhandled(inner),
896        }
897    }
898}
899impl<R>
900    From<
901        ::aws_smithy_runtime_api::client::result::SdkError<
902            crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError,
903            R,
904        >,
905    > for Error
906where
907    R: Send + Sync + std::fmt::Debug + 'static,
908{
909    fn from(
910        err: ::aws_smithy_runtime_api::client::result::SdkError<
911            crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError,
912            R,
913        >,
914    ) -> 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_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError> for Error {
925    fn from(err: crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError) -> Self {
926        match err {
927            crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
928            crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError::InternalServerException(inner) => Error::InternalServerException(inner),
929            crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
930            crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
931            crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError::ValidationException(inner) => Error::ValidationException(inner),
932            crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
933        }
934    }
935}
936impl<R>
937    From<
938        ::aws_smithy_runtime_api::client::result::SdkError<
939            crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError,
940            R,
941        >,
942    > for Error
943where
944    R: Send + Sync + std::fmt::Debug + 'static,
945{
946    fn from(
947        err: ::aws_smithy_runtime_api::client::result::SdkError<
948            crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError,
949            R,
950        >,
951    ) -> Self {
952        match err {
953            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
954            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
955                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
956                source: err.into(),
957            }),
958        }
959    }
960}
961impl From<crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError> for Error {
962    fn from(err: crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError) -> Self {
963        match err {
964            crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError::AccessDeniedException(inner) => {
965                Error::AccessDeniedException(inner)
966            }
967            crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError::InternalServerException(inner) => {
968                Error::InternalServerException(inner)
969            }
970            crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError::ThrottlingException(inner) => {
971                Error::ThrottlingException(inner)
972            }
973            crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError::ValidationException(inner) => {
974                Error::ValidationException(inner)
975            }
976            crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError::Unhandled(inner) => {
977                Error::Unhandled(inner)
978            }
979        }
980    }
981}
982impl<R>
983    From<
984        ::aws_smithy_runtime_api::client::result::SdkError<
985            crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError,
986            R,
987        >,
988    > for Error
989where
990    R: Send + Sync + std::fmt::Debug + 'static,
991{
992    fn from(
993        err: ::aws_smithy_runtime_api::client::result::SdkError<
994            crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError,
995            R,
996        >,
997    ) -> Self {
998        match err {
999            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1000            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1001                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1002                source: err.into(),
1003            }),
1004        }
1005    }
1006}
1007impl From<crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError> for Error {
1008    fn from(err: crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError) -> Self {
1009        match err {
1010            crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError::AccessDeniedException(inner) => {
1011                Error::AccessDeniedException(inner)
1012            }
1013            crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError::InternalServerException(
1014                inner,
1015            ) => Error::InternalServerException(inner),
1016            crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError::ThrottlingException(inner) => {
1017                Error::ThrottlingException(inner)
1018            }
1019            crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError::ValidationException(inner) => {
1020                Error::ValidationException(inner)
1021            }
1022            crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError::Unhandled(inner) => {
1023                Error::Unhandled(inner)
1024            }
1025        }
1026    }
1027}
1028impl<R>
1029    From<
1030        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_notification_events::ListManagedNotificationEventsError, 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<
1037            crate::operation::list_managed_notification_events::ListManagedNotificationEventsError,
1038            R,
1039        >,
1040    ) -> Self {
1041        match err {
1042            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1043            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1044                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1045                source: err.into(),
1046            }),
1047        }
1048    }
1049}
1050impl From<crate::operation::list_managed_notification_events::ListManagedNotificationEventsError> for Error {
1051    fn from(err: crate::operation::list_managed_notification_events::ListManagedNotificationEventsError) -> Self {
1052        match err {
1053            crate::operation::list_managed_notification_events::ListManagedNotificationEventsError::AccessDeniedException(inner) => {
1054                Error::AccessDeniedException(inner)
1055            }
1056            crate::operation::list_managed_notification_events::ListManagedNotificationEventsError::InternalServerException(inner) => {
1057                Error::InternalServerException(inner)
1058            }
1059            crate::operation::list_managed_notification_events::ListManagedNotificationEventsError::ThrottlingException(inner) => {
1060                Error::ThrottlingException(inner)
1061            }
1062            crate::operation::list_managed_notification_events::ListManagedNotificationEventsError::ValidationException(inner) => {
1063                Error::ValidationException(inner)
1064            }
1065            crate::operation::list_managed_notification_events::ListManagedNotificationEventsError::Unhandled(inner) => Error::Unhandled(inner),
1066        }
1067    }
1068}
1069impl<R>
1070    From<
1071        ::aws_smithy_runtime_api::client::result::SdkError<
1072            crate::operation::list_notification_configurations::ListNotificationConfigurationsError,
1073            R,
1074        >,
1075    > for Error
1076where
1077    R: Send + Sync + std::fmt::Debug + 'static,
1078{
1079    fn from(
1080        err: ::aws_smithy_runtime_api::client::result::SdkError<
1081            crate::operation::list_notification_configurations::ListNotificationConfigurationsError,
1082            R,
1083        >,
1084    ) -> Self {
1085        match err {
1086            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1087            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1088                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1089                source: err.into(),
1090            }),
1091        }
1092    }
1093}
1094impl From<crate::operation::list_notification_configurations::ListNotificationConfigurationsError> for Error {
1095    fn from(err: crate::operation::list_notification_configurations::ListNotificationConfigurationsError) -> Self {
1096        match err {
1097            crate::operation::list_notification_configurations::ListNotificationConfigurationsError::AccessDeniedException(inner) => {
1098                Error::AccessDeniedException(inner)
1099            }
1100            crate::operation::list_notification_configurations::ListNotificationConfigurationsError::InternalServerException(inner) => {
1101                Error::InternalServerException(inner)
1102            }
1103            crate::operation::list_notification_configurations::ListNotificationConfigurationsError::ThrottlingException(inner) => {
1104                Error::ThrottlingException(inner)
1105            }
1106            crate::operation::list_notification_configurations::ListNotificationConfigurationsError::ValidationException(inner) => {
1107                Error::ValidationException(inner)
1108            }
1109            crate::operation::list_notification_configurations::ListNotificationConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1110        }
1111    }
1112}
1113impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notification_events::ListNotificationEventsError, R>> for Error
1114where
1115    R: Send + Sync + std::fmt::Debug + 'static,
1116{
1117    fn from(
1118        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notification_events::ListNotificationEventsError, R>,
1119    ) -> Self {
1120        match err {
1121            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1122            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1123                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1124                source: err.into(),
1125            }),
1126        }
1127    }
1128}
1129impl From<crate::operation::list_notification_events::ListNotificationEventsError> for Error {
1130    fn from(err: crate::operation::list_notification_events::ListNotificationEventsError) -> Self {
1131        match err {
1132            crate::operation::list_notification_events::ListNotificationEventsError::AccessDeniedException(inner) => {
1133                Error::AccessDeniedException(inner)
1134            }
1135            crate::operation::list_notification_events::ListNotificationEventsError::InternalServerException(inner) => {
1136                Error::InternalServerException(inner)
1137            }
1138            crate::operation::list_notification_events::ListNotificationEventsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1139            crate::operation::list_notification_events::ListNotificationEventsError::ValidationException(inner) => Error::ValidationException(inner),
1140            crate::operation::list_notification_events::ListNotificationEventsError::Unhandled(inner) => Error::Unhandled(inner),
1141        }
1142    }
1143}
1144impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notification_hubs::ListNotificationHubsError, R>> for Error
1145where
1146    R: Send + Sync + std::fmt::Debug + 'static,
1147{
1148    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notification_hubs::ListNotificationHubsError, R>) -> Self {
1149        match err {
1150            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1151            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1152                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1153                source: err.into(),
1154            }),
1155        }
1156    }
1157}
1158impl From<crate::operation::list_notification_hubs::ListNotificationHubsError> for Error {
1159    fn from(err: crate::operation::list_notification_hubs::ListNotificationHubsError) -> Self {
1160        match err {
1161            crate::operation::list_notification_hubs::ListNotificationHubsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1162            crate::operation::list_notification_hubs::ListNotificationHubsError::InternalServerException(inner) => {
1163                Error::InternalServerException(inner)
1164            }
1165            crate::operation::list_notification_hubs::ListNotificationHubsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1166            crate::operation::list_notification_hubs::ListNotificationHubsError::ValidationException(inner) => Error::ValidationException(inner),
1167            crate::operation::list_notification_hubs::ListNotificationHubsError::Unhandled(inner) => Error::Unhandled(inner),
1168        }
1169    }
1170}
1171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1172where
1173    R: Send + Sync + std::fmt::Debug + 'static,
1174{
1175    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1176        match err {
1177            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1178            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1179                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1180                source: err.into(),
1181            }),
1182        }
1183    }
1184}
1185impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1186    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1187        match err {
1188            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1189            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
1190                Error::InternalServerException(inner)
1191            }
1192            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1193                Error::ResourceNotFoundException(inner)
1194            }
1195            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1196            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
1197            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1198        }
1199    }
1200}
1201impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_notification_hub::RegisterNotificationHubError, R>>
1202    for Error
1203where
1204    R: Send + Sync + std::fmt::Debug + 'static,
1205{
1206    fn from(
1207        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_notification_hub::RegisterNotificationHubError, R>,
1208    ) -> Self {
1209        match err {
1210            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1211            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1212                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1213                source: err.into(),
1214            }),
1215        }
1216    }
1217}
1218impl From<crate::operation::register_notification_hub::RegisterNotificationHubError> for Error {
1219    fn from(err: crate::operation::register_notification_hub::RegisterNotificationHubError) -> Self {
1220        match err {
1221            crate::operation::register_notification_hub::RegisterNotificationHubError::AccessDeniedException(inner) => {
1222                Error::AccessDeniedException(inner)
1223            }
1224            crate::operation::register_notification_hub::RegisterNotificationHubError::ConflictException(inner) => Error::ConflictException(inner),
1225            crate::operation::register_notification_hub::RegisterNotificationHubError::InternalServerException(inner) => {
1226                Error::InternalServerException(inner)
1227            }
1228            crate::operation::register_notification_hub::RegisterNotificationHubError::ServiceQuotaExceededException(inner) => {
1229                Error::ServiceQuotaExceededException(inner)
1230            }
1231            crate::operation::register_notification_hub::RegisterNotificationHubError::ThrottlingException(inner) => {
1232                Error::ThrottlingException(inner)
1233            }
1234            crate::operation::register_notification_hub::RegisterNotificationHubError::ValidationException(inner) => {
1235                Error::ValidationException(inner)
1236            }
1237            crate::operation::register_notification_hub::RegisterNotificationHubError::Unhandled(inner) => Error::Unhandled(inner),
1238        }
1239    }
1240}
1241impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1242where
1243    R: Send + Sync + std::fmt::Debug + 'static,
1244{
1245    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1246        match err {
1247            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1248            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1249                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1250                source: err.into(),
1251            }),
1252        }
1253    }
1254}
1255impl From<crate::operation::tag_resource::TagResourceError> for Error {
1256    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1257        match err {
1258            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1259            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1260            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1261            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1262            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1263            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1264        }
1265    }
1266}
1267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1268where
1269    R: Send + Sync + std::fmt::Debug + 'static,
1270{
1271    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1272        match err {
1273            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1274            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1275                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1276                source: err.into(),
1277            }),
1278        }
1279    }
1280}
1281impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1282    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1283        match err {
1284            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1285            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1286            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1287            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1288            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1289            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1290        }
1291    }
1292}
1293impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_event_rule::UpdateEventRuleError, R>> for Error
1294where
1295    R: Send + Sync + std::fmt::Debug + 'static,
1296{
1297    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_event_rule::UpdateEventRuleError, R>) -> Self {
1298        match err {
1299            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1300            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1301                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1302                source: err.into(),
1303            }),
1304        }
1305    }
1306}
1307impl From<crate::operation::update_event_rule::UpdateEventRuleError> for Error {
1308    fn from(err: crate::operation::update_event_rule::UpdateEventRuleError) -> Self {
1309        match err {
1310            crate::operation::update_event_rule::UpdateEventRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1311            crate::operation::update_event_rule::UpdateEventRuleError::ConflictException(inner) => Error::ConflictException(inner),
1312            crate::operation::update_event_rule::UpdateEventRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
1313            crate::operation::update_event_rule::UpdateEventRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1314            crate::operation::update_event_rule::UpdateEventRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1315            crate::operation::update_event_rule::UpdateEventRuleError::ValidationException(inner) => Error::ValidationException(inner),
1316            crate::operation::update_event_rule::UpdateEventRuleError::Unhandled(inner) => Error::Unhandled(inner),
1317        }
1318    }
1319}
1320impl<R>
1321    From<
1322        ::aws_smithy_runtime_api::client::result::SdkError<
1323            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError,
1324            R,
1325        >,
1326    > for Error
1327where
1328    R: Send + Sync + std::fmt::Debug + 'static,
1329{
1330    fn from(
1331        err: ::aws_smithy_runtime_api::client::result::SdkError<
1332            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError,
1333            R,
1334        >,
1335    ) -> Self {
1336        match err {
1337            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1338            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1339                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1340                source: err.into(),
1341            }),
1342        }
1343    }
1344}
1345impl From<crate::operation::update_notification_configuration::UpdateNotificationConfigurationError> for Error {
1346    fn from(err: crate::operation::update_notification_configuration::UpdateNotificationConfigurationError) -> Self {
1347        match err {
1348            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::AccessDeniedException(inner) => {
1349                Error::AccessDeniedException(inner)
1350            }
1351            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::ConflictException(inner) => {
1352                Error::ConflictException(inner)
1353            }
1354            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::InternalServerException(inner) => {
1355                Error::InternalServerException(inner)
1356            }
1357            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::ResourceNotFoundException(inner) => {
1358                Error::ResourceNotFoundException(inner)
1359            }
1360            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::ThrottlingException(inner) => {
1361                Error::ThrottlingException(inner)
1362            }
1363            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::ValidationException(inner) => {
1364                Error::ValidationException(inner)
1365            }
1366            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1367        }
1368    }
1369}
1370impl ::std::error::Error for Error {
1371    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1372        match self {
1373            Error::AccessDeniedException(inner) => inner.source(),
1374            Error::ConflictException(inner) => inner.source(),
1375            Error::InternalServerException(inner) => inner.source(),
1376            Error::ResourceNotFoundException(inner) => inner.source(),
1377            Error::ServiceQuotaExceededException(inner) => inner.source(),
1378            Error::ThrottlingException(inner) => inner.source(),
1379            Error::ValidationException(inner) => inner.source(),
1380            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1381        }
1382    }
1383}
1384impl ::aws_types::request_id::RequestId for Error {
1385    fn request_id(&self) -> Option<&str> {
1386        match self {
1387            Self::AccessDeniedException(e) => e.request_id(),
1388            Self::ConflictException(e) => e.request_id(),
1389            Self::InternalServerException(e) => e.request_id(),
1390            Self::ResourceNotFoundException(e) => e.request_id(),
1391            Self::ServiceQuotaExceededException(e) => e.request_id(),
1392            Self::ThrottlingException(e) => e.request_id(),
1393            Self::ValidationException(e) => e.request_id(),
1394            Self::Unhandled(e) => e.meta.request_id(),
1395        }
1396    }
1397}