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::associate_organizational_unit::AssociateOrganizationalUnitError, R>>
180    for Error
181where
182    R: Send + Sync + std::fmt::Debug + 'static,
183{
184    fn from(
185        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_organizational_unit::AssociateOrganizationalUnitError, R>,
186    ) -> Self {
187        match err {
188            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
189            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
190                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
191                source: err.into(),
192            }),
193        }
194    }
195}
196impl From<crate::operation::associate_organizational_unit::AssociateOrganizationalUnitError> for Error {
197    fn from(err: crate::operation::associate_organizational_unit::AssociateOrganizationalUnitError) -> Self {
198        match err {
199            crate::operation::associate_organizational_unit::AssociateOrganizationalUnitError::AccessDeniedException(inner) => {
200                Error::AccessDeniedException(inner)
201            }
202            crate::operation::associate_organizational_unit::AssociateOrganizationalUnitError::ConflictException(inner) => {
203                Error::ConflictException(inner)
204            }
205            crate::operation::associate_organizational_unit::AssociateOrganizationalUnitError::InternalServerException(inner) => {
206                Error::InternalServerException(inner)
207            }
208            crate::operation::associate_organizational_unit::AssociateOrganizationalUnitError::ResourceNotFoundException(inner) => {
209                Error::ResourceNotFoundException(inner)
210            }
211            crate::operation::associate_organizational_unit::AssociateOrganizationalUnitError::ServiceQuotaExceededException(inner) => {
212                Error::ServiceQuotaExceededException(inner)
213            }
214            crate::operation::associate_organizational_unit::AssociateOrganizationalUnitError::ThrottlingException(inner) => {
215                Error::ThrottlingException(inner)
216            }
217            crate::operation::associate_organizational_unit::AssociateOrganizationalUnitError::ValidationException(inner) => {
218                Error::ValidationException(inner)
219            }
220            crate::operation::associate_organizational_unit::AssociateOrganizationalUnitError::Unhandled(inner) => Error::Unhandled(inner),
221        }
222    }
223}
224impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_rule::CreateEventRuleError, R>> for Error
225where
226    R: Send + Sync + std::fmt::Debug + 'static,
227{
228    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_rule::CreateEventRuleError, R>) -> Self {
229        match err {
230            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
231            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
232                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
233                source: err.into(),
234            }),
235        }
236    }
237}
238impl From<crate::operation::create_event_rule::CreateEventRuleError> for Error {
239    fn from(err: crate::operation::create_event_rule::CreateEventRuleError) -> Self {
240        match err {
241            crate::operation::create_event_rule::CreateEventRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
242            crate::operation::create_event_rule::CreateEventRuleError::ConflictException(inner) => Error::ConflictException(inner),
243            crate::operation::create_event_rule::CreateEventRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
244            crate::operation::create_event_rule::CreateEventRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
245            crate::operation::create_event_rule::CreateEventRuleError::ServiceQuotaExceededException(inner) => {
246                Error::ServiceQuotaExceededException(inner)
247            }
248            crate::operation::create_event_rule::CreateEventRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
249            crate::operation::create_event_rule::CreateEventRuleError::ValidationException(inner) => Error::ValidationException(inner),
250            crate::operation::create_event_rule::CreateEventRuleError::Unhandled(inner) => Error::Unhandled(inner),
251        }
252    }
253}
254impl<R>
255    From<
256        ::aws_smithy_runtime_api::client::result::SdkError<
257            crate::operation::create_notification_configuration::CreateNotificationConfigurationError,
258            R,
259        >,
260    > for Error
261where
262    R: Send + Sync + std::fmt::Debug + 'static,
263{
264    fn from(
265        err: ::aws_smithy_runtime_api::client::result::SdkError<
266            crate::operation::create_notification_configuration::CreateNotificationConfigurationError,
267            R,
268        >,
269    ) -> Self {
270        match err {
271            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
272            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
273                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
274                source: err.into(),
275            }),
276        }
277    }
278}
279impl From<crate::operation::create_notification_configuration::CreateNotificationConfigurationError> for Error {
280    fn from(err: crate::operation::create_notification_configuration::CreateNotificationConfigurationError) -> Self {
281        match err {
282            crate::operation::create_notification_configuration::CreateNotificationConfigurationError::AccessDeniedException(inner) => {
283                Error::AccessDeniedException(inner)
284            }
285            crate::operation::create_notification_configuration::CreateNotificationConfigurationError::ConflictException(inner) => {
286                Error::ConflictException(inner)
287            }
288            crate::operation::create_notification_configuration::CreateNotificationConfigurationError::InternalServerException(inner) => {
289                Error::InternalServerException(inner)
290            }
291            crate::operation::create_notification_configuration::CreateNotificationConfigurationError::ServiceQuotaExceededException(inner) => {
292                Error::ServiceQuotaExceededException(inner)
293            }
294            crate::operation::create_notification_configuration::CreateNotificationConfigurationError::ThrottlingException(inner) => {
295                Error::ThrottlingException(inner)
296            }
297            crate::operation::create_notification_configuration::CreateNotificationConfigurationError::ValidationException(inner) => {
298                Error::ValidationException(inner)
299            }
300            crate::operation::create_notification_configuration::CreateNotificationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
301        }
302    }
303}
304impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_rule::DeleteEventRuleError, R>> for Error
305where
306    R: Send + Sync + std::fmt::Debug + 'static,
307{
308    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_rule::DeleteEventRuleError, R>) -> Self {
309        match err {
310            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
311            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
312                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
313                source: err.into(),
314            }),
315        }
316    }
317}
318impl From<crate::operation::delete_event_rule::DeleteEventRuleError> for Error {
319    fn from(err: crate::operation::delete_event_rule::DeleteEventRuleError) -> Self {
320        match err {
321            crate::operation::delete_event_rule::DeleteEventRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
322            crate::operation::delete_event_rule::DeleteEventRuleError::ConflictException(inner) => Error::ConflictException(inner),
323            crate::operation::delete_event_rule::DeleteEventRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
324            crate::operation::delete_event_rule::DeleteEventRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
325            crate::operation::delete_event_rule::DeleteEventRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
326            crate::operation::delete_event_rule::DeleteEventRuleError::ValidationException(inner) => Error::ValidationException(inner),
327            crate::operation::delete_event_rule::DeleteEventRuleError::Unhandled(inner) => Error::Unhandled(inner),
328        }
329    }
330}
331impl<R>
332    From<
333        ::aws_smithy_runtime_api::client::result::SdkError<
334            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError,
335            R,
336        >,
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<
343            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError,
344            R,
345        >,
346    ) -> Self {
347        match err {
348            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
349            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
350                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
351                source: err.into(),
352            }),
353        }
354    }
355}
356impl From<crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError> for Error {
357    fn from(err: crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError) -> Self {
358        match err {
359            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::AccessDeniedException(inner) => {
360                Error::AccessDeniedException(inner)
361            }
362            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::ConflictException(inner) => {
363                Error::ConflictException(inner)
364            }
365            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::InternalServerException(inner) => {
366                Error::InternalServerException(inner)
367            }
368            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::ResourceNotFoundException(inner) => {
369                Error::ResourceNotFoundException(inner)
370            }
371            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::ThrottlingException(inner) => {
372                Error::ThrottlingException(inner)
373            }
374            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::ValidationException(inner) => {
375                Error::ValidationException(inner)
376            }
377            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
378        }
379    }
380}
381impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_notification_hub::DeregisterNotificationHubError, R>>
382    for Error
383where
384    R: Send + Sync + std::fmt::Debug + 'static,
385{
386    fn from(
387        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_notification_hub::DeregisterNotificationHubError, R>,
388    ) -> Self {
389        match err {
390            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
391            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
392                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
393                source: err.into(),
394            }),
395        }
396    }
397}
398impl From<crate::operation::deregister_notification_hub::DeregisterNotificationHubError> for Error {
399    fn from(err: crate::operation::deregister_notification_hub::DeregisterNotificationHubError) -> Self {
400        match err {
401            crate::operation::deregister_notification_hub::DeregisterNotificationHubError::AccessDeniedException(inner) => {
402                Error::AccessDeniedException(inner)
403            }
404            crate::operation::deregister_notification_hub::DeregisterNotificationHubError::ConflictException(inner) => {
405                Error::ConflictException(inner)
406            }
407            crate::operation::deregister_notification_hub::DeregisterNotificationHubError::InternalServerException(inner) => {
408                Error::InternalServerException(inner)
409            }
410            crate::operation::deregister_notification_hub::DeregisterNotificationHubError::ResourceNotFoundException(inner) => {
411                Error::ResourceNotFoundException(inner)
412            }
413            crate::operation::deregister_notification_hub::DeregisterNotificationHubError::ThrottlingException(inner) => {
414                Error::ThrottlingException(inner)
415            }
416            crate::operation::deregister_notification_hub::DeregisterNotificationHubError::ValidationException(inner) => {
417                Error::ValidationException(inner)
418            }
419            crate::operation::deregister_notification_hub::DeregisterNotificationHubError::Unhandled(inner) => Error::Unhandled(inner),
420        }
421    }
422}
423impl<R>
424    From<
425        ::aws_smithy_runtime_api::client::result::SdkError<
426            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError,
427            R,
428        >,
429    > for Error
430where
431    R: Send + Sync + std::fmt::Debug + 'static,
432{
433    fn from(
434        err: ::aws_smithy_runtime_api::client::result::SdkError<
435            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError,
436            R,
437        >,
438    ) -> 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::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError> for Error {
449    fn from(err: crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError) -> Self {
450        match err {
451            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
452            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError::ConflictException(inner) => Error::ConflictException(inner),
453            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError::InternalServerException(inner) => Error::InternalServerException(inner),
454            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
455            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
456            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
457            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError::ValidationException(inner) => Error::ValidationException(inner),
458            crate::operation::disable_notifications_access_for_organization::DisableNotificationsAccessForOrganizationError::Unhandled(inner) => Error::Unhandled(inner),
459        }
460    }
461}
462impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_channel::DisassociateChannelError, R>> for Error
463where
464    R: Send + Sync + std::fmt::Debug + 'static,
465{
466    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_channel::DisassociateChannelError, R>) -> Self {
467        match err {
468            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
469            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
470                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
471                source: err.into(),
472            }),
473        }
474    }
475}
476impl From<crate::operation::disassociate_channel::DisassociateChannelError> for Error {
477    fn from(err: crate::operation::disassociate_channel::DisassociateChannelError) -> Self {
478        match err {
479            crate::operation::disassociate_channel::DisassociateChannelError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
480            crate::operation::disassociate_channel::DisassociateChannelError::InternalServerException(inner) => Error::InternalServerException(inner),
481            crate::operation::disassociate_channel::DisassociateChannelError::ResourceNotFoundException(inner) => {
482                Error::ResourceNotFoundException(inner)
483            }
484            crate::operation::disassociate_channel::DisassociateChannelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
485            crate::operation::disassociate_channel::DisassociateChannelError::ValidationException(inner) => Error::ValidationException(inner),
486            crate::operation::disassociate_channel::DisassociateChannelError::Unhandled(inner) => Error::Unhandled(inner),
487        }
488    }
489}
490impl<R>
491    From<
492        ::aws_smithy_runtime_api::client::result::SdkError<
493            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError,
494            R,
495        >,
496    > for Error
497where
498    R: Send + Sync + std::fmt::Debug + 'static,
499{
500    fn from(
501        err: ::aws_smithy_runtime_api::client::result::SdkError<
502            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError,
503            R,
504        >,
505    ) -> Self {
506        match err {
507            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
508            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
509                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
510                source: err.into(),
511            }),
512        }
513    }
514}
515impl From<crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError> for Error {
516    fn from(err: crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError) -> Self {
517        match err {
518            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
519            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError::ConflictException(inner) => Error::ConflictException(inner),
520            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError::InternalServerException(inner) => Error::InternalServerException(inner),
521            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
522            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
523            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError::ValidationException(inner) => Error::ValidationException(inner),
524            crate::operation::disassociate_managed_notification_account_contact::DisassociateManagedNotificationAccountContactError::Unhandled(inner) => Error::Unhandled(inner),
525        }
526    }
527}
528impl<R>
529    From<
530        ::aws_smithy_runtime_api::client::result::SdkError<
531            crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError,
532            R,
533        >,
534    > for Error
535where
536    R: Send + Sync + std::fmt::Debug + 'static,
537{
538    fn from(
539        err: ::aws_smithy_runtime_api::client::result::SdkError<
540            crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError,
541            R,
542        >,
543    ) -> Self {
544        match err {
545            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
546            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
547                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
548                source: err.into(),
549            }),
550        }
551    }
552}
553impl From<crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError> for Error {
554    fn from(
555        err: crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError,
556    ) -> Self {
557        match err {
558            crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
559            crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError::InternalServerException(inner) => Error::InternalServerException(inner),
560            crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
561            crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
562            crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError::ValidationException(inner) => Error::ValidationException(inner),
563            crate::operation::disassociate_managed_notification_additional_channel::DisassociateManagedNotificationAdditionalChannelError::Unhandled(inner) => Error::Unhandled(inner),
564        }
565    }
566}
567impl<R>
568    From<
569        ::aws_smithy_runtime_api::client::result::SdkError<
570            crate::operation::disassociate_organizational_unit::DisassociateOrganizationalUnitError,
571            R,
572        >,
573    > for Error
574where
575    R: Send + Sync + std::fmt::Debug + 'static,
576{
577    fn from(
578        err: ::aws_smithy_runtime_api::client::result::SdkError<
579            crate::operation::disassociate_organizational_unit::DisassociateOrganizationalUnitError,
580            R,
581        >,
582    ) -> Self {
583        match err {
584            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
585            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
586                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
587                source: err.into(),
588            }),
589        }
590    }
591}
592impl From<crate::operation::disassociate_organizational_unit::DisassociateOrganizationalUnitError> for Error {
593    fn from(err: crate::operation::disassociate_organizational_unit::DisassociateOrganizationalUnitError) -> Self {
594        match err {
595            crate::operation::disassociate_organizational_unit::DisassociateOrganizationalUnitError::AccessDeniedException(inner) => {
596                Error::AccessDeniedException(inner)
597            }
598            crate::operation::disassociate_organizational_unit::DisassociateOrganizationalUnitError::InternalServerException(inner) => {
599                Error::InternalServerException(inner)
600            }
601            crate::operation::disassociate_organizational_unit::DisassociateOrganizationalUnitError::ResourceNotFoundException(inner) => {
602                Error::ResourceNotFoundException(inner)
603            }
604            crate::operation::disassociate_organizational_unit::DisassociateOrganizationalUnitError::ThrottlingException(inner) => {
605                Error::ThrottlingException(inner)
606            }
607            crate::operation::disassociate_organizational_unit::DisassociateOrganizationalUnitError::ValidationException(inner) => {
608                Error::ValidationException(inner)
609            }
610            crate::operation::disassociate_organizational_unit::DisassociateOrganizationalUnitError::Unhandled(inner) => Error::Unhandled(inner),
611        }
612    }
613}
614impl<R>
615    From<
616        ::aws_smithy_runtime_api::client::result::SdkError<
617            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError,
618            R,
619        >,
620    > for Error
621where
622    R: Send + Sync + std::fmt::Debug + 'static,
623{
624    fn from(
625        err: ::aws_smithy_runtime_api::client::result::SdkError<
626            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError,
627            R,
628        >,
629    ) -> Self {
630        match err {
631            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
632            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
633                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
634                source: err.into(),
635            }),
636        }
637    }
638}
639impl From<crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError> for Error {
640    fn from(err: crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError) -> Self {
641        match err {
642            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
643            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError::ConflictException(inner) => Error::ConflictException(inner),
644            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError::InternalServerException(inner) => Error::InternalServerException(inner),
645            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
646            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
647            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
648            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError::ValidationException(inner) => Error::ValidationException(inner),
649            crate::operation::enable_notifications_access_for_organization::EnableNotificationsAccessForOrganizationError::Unhandled(inner) => Error::Unhandled(inner),
650        }
651    }
652}
653impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_event_rule::GetEventRuleError, R>> for Error
654where
655    R: Send + Sync + std::fmt::Debug + 'static,
656{
657    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_event_rule::GetEventRuleError, R>) -> Self {
658        match err {
659            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
660            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
661                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
662                source: err.into(),
663            }),
664        }
665    }
666}
667impl From<crate::operation::get_event_rule::GetEventRuleError> for Error {
668    fn from(err: crate::operation::get_event_rule::GetEventRuleError) -> Self {
669        match err {
670            crate::operation::get_event_rule::GetEventRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
671            crate::operation::get_event_rule::GetEventRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
672            crate::operation::get_event_rule::GetEventRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
673            crate::operation::get_event_rule::GetEventRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
674            crate::operation::get_event_rule::GetEventRuleError::ValidationException(inner) => Error::ValidationException(inner),
675            crate::operation::get_event_rule::GetEventRuleError::Unhandled(inner) => Error::Unhandled(inner),
676        }
677    }
678}
679impl<R>
680    From<
681        ::aws_smithy_runtime_api::client::result::SdkError<
682            crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError,
683            R,
684        >,
685    > for Error
686where
687    R: Send + Sync + std::fmt::Debug + 'static,
688{
689    fn from(
690        err: ::aws_smithy_runtime_api::client::result::SdkError<
691            crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError,
692            R,
693        >,
694    ) -> Self {
695        match err {
696            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
697            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
698                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
699                source: err.into(),
700            }),
701        }
702    }
703}
704impl From<crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError> for Error {
705    fn from(err: crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError) -> Self {
706        match err {
707            crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError::AccessDeniedException(inner) => {
708                Error::AccessDeniedException(inner)
709            }
710            crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError::InternalServerException(inner) => {
711                Error::InternalServerException(inner)
712            }
713            crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError::ResourceNotFoundException(inner) => {
714                Error::ResourceNotFoundException(inner)
715            }
716            crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError::ThrottlingException(inner) => {
717                Error::ThrottlingException(inner)
718            }
719            crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError::ValidationException(inner) => {
720                Error::ValidationException(inner)
721            }
722            crate::operation::get_managed_notification_child_event::GetManagedNotificationChildEventError::Unhandled(inner) => {
723                Error::Unhandled(inner)
724            }
725        }
726    }
727}
728impl<R>
729    From<
730        ::aws_smithy_runtime_api::client::result::SdkError<
731            crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError,
732            R,
733        >,
734    > for Error
735where
736    R: Send + Sync + std::fmt::Debug + 'static,
737{
738    fn from(
739        err: ::aws_smithy_runtime_api::client::result::SdkError<
740            crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError,
741            R,
742        >,
743    ) -> Self {
744        match err {
745            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
746            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
747                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
748                source: err.into(),
749            }),
750        }
751    }
752}
753impl From<crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError> for Error {
754    fn from(err: crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError) -> Self {
755        match err {
756            crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError::AccessDeniedException(inner) => {
757                Error::AccessDeniedException(inner)
758            }
759            crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError::InternalServerException(inner) => {
760                Error::InternalServerException(inner)
761            }
762            crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError::ResourceNotFoundException(inner) => {
763                Error::ResourceNotFoundException(inner)
764            }
765            crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError::ThrottlingException(inner) => {
766                Error::ThrottlingException(inner)
767            }
768            crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError::ValidationException(inner) => {
769                Error::ValidationException(inner)
770            }
771            crate::operation::get_managed_notification_configuration::GetManagedNotificationConfigurationError::Unhandled(inner) => {
772                Error::Unhandled(inner)
773            }
774        }
775    }
776}
777impl<R>
778    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_notification_event::GetManagedNotificationEventError, R>>
779    for Error
780where
781    R: Send + Sync + std::fmt::Debug + 'static,
782{
783    fn from(
784        err: ::aws_smithy_runtime_api::client::result::SdkError<
785            crate::operation::get_managed_notification_event::GetManagedNotificationEventError,
786            R,
787        >,
788    ) -> Self {
789        match err {
790            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
791            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
792                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
793                source: err.into(),
794            }),
795        }
796    }
797}
798impl From<crate::operation::get_managed_notification_event::GetManagedNotificationEventError> for Error {
799    fn from(err: crate::operation::get_managed_notification_event::GetManagedNotificationEventError) -> Self {
800        match err {
801            crate::operation::get_managed_notification_event::GetManagedNotificationEventError::AccessDeniedException(inner) => {
802                Error::AccessDeniedException(inner)
803            }
804            crate::operation::get_managed_notification_event::GetManagedNotificationEventError::InternalServerException(inner) => {
805                Error::InternalServerException(inner)
806            }
807            crate::operation::get_managed_notification_event::GetManagedNotificationEventError::ResourceNotFoundException(inner) => {
808                Error::ResourceNotFoundException(inner)
809            }
810            crate::operation::get_managed_notification_event::GetManagedNotificationEventError::ThrottlingException(inner) => {
811                Error::ThrottlingException(inner)
812            }
813            crate::operation::get_managed_notification_event::GetManagedNotificationEventError::ValidationException(inner) => {
814                Error::ValidationException(inner)
815            }
816            crate::operation::get_managed_notification_event::GetManagedNotificationEventError::Unhandled(inner) => Error::Unhandled(inner),
817        }
818    }
819}
820impl<R>
821    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_notification_configuration::GetNotificationConfigurationError, R>>
822    for Error
823where
824    R: Send + Sync + std::fmt::Debug + 'static,
825{
826    fn from(
827        err: ::aws_smithy_runtime_api::client::result::SdkError<
828            crate::operation::get_notification_configuration::GetNotificationConfigurationError,
829            R,
830        >,
831    ) -> Self {
832        match err {
833            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
834            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
835                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
836                source: err.into(),
837            }),
838        }
839    }
840}
841impl From<crate::operation::get_notification_configuration::GetNotificationConfigurationError> for Error {
842    fn from(err: crate::operation::get_notification_configuration::GetNotificationConfigurationError) -> Self {
843        match err {
844            crate::operation::get_notification_configuration::GetNotificationConfigurationError::AccessDeniedException(inner) => {
845                Error::AccessDeniedException(inner)
846            }
847            crate::operation::get_notification_configuration::GetNotificationConfigurationError::InternalServerException(inner) => {
848                Error::InternalServerException(inner)
849            }
850            crate::operation::get_notification_configuration::GetNotificationConfigurationError::ResourceNotFoundException(inner) => {
851                Error::ResourceNotFoundException(inner)
852            }
853            crate::operation::get_notification_configuration::GetNotificationConfigurationError::ThrottlingException(inner) => {
854                Error::ThrottlingException(inner)
855            }
856            crate::operation::get_notification_configuration::GetNotificationConfigurationError::ValidationException(inner) => {
857                Error::ValidationException(inner)
858            }
859            crate::operation::get_notification_configuration::GetNotificationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
860        }
861    }
862}
863impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_notification_event::GetNotificationEventError, R>> for Error
864where
865    R: Send + Sync + std::fmt::Debug + 'static,
866{
867    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_notification_event::GetNotificationEventError, R>) -> Self {
868        match err {
869            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
870            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
871                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
872                source: err.into(),
873            }),
874        }
875    }
876}
877impl From<crate::operation::get_notification_event::GetNotificationEventError> for Error {
878    fn from(err: crate::operation::get_notification_event::GetNotificationEventError) -> Self {
879        match err {
880            crate::operation::get_notification_event::GetNotificationEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
881            crate::operation::get_notification_event::GetNotificationEventError::InternalServerException(inner) => {
882                Error::InternalServerException(inner)
883            }
884            crate::operation::get_notification_event::GetNotificationEventError::ResourceNotFoundException(inner) => {
885                Error::ResourceNotFoundException(inner)
886            }
887            crate::operation::get_notification_event::GetNotificationEventError::ThrottlingException(inner) => Error::ThrottlingException(inner),
888            crate::operation::get_notification_event::GetNotificationEventError::ValidationException(inner) => Error::ValidationException(inner),
889            crate::operation::get_notification_event::GetNotificationEventError::Unhandled(inner) => Error::Unhandled(inner),
890        }
891    }
892}
893impl<R>
894    From<
895        ::aws_smithy_runtime_api::client::result::SdkError<
896            crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError,
897            R,
898        >,
899    > for Error
900where
901    R: Send + Sync + std::fmt::Debug + 'static,
902{
903    fn from(
904        err: ::aws_smithy_runtime_api::client::result::SdkError<
905            crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError,
906            R,
907        >,
908    ) -> Self {
909        match err {
910            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
911            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
912                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
913                source: err.into(),
914            }),
915        }
916    }
917}
918impl From<crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError> for Error {
919    fn from(err: crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError) -> Self {
920        match err {
921            crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError::AccessDeniedException(inner) => {
922                Error::AccessDeniedException(inner)
923            }
924            crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError::InternalServerException(
925                inner,
926            ) => Error::InternalServerException(inner),
927            crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError::ThrottlingException(inner) => {
928                Error::ThrottlingException(inner)
929            }
930            crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError::ValidationException(inner) => {
931                Error::ValidationException(inner)
932            }
933            crate::operation::get_notifications_access_for_organization::GetNotificationsAccessForOrganizationError::Unhandled(inner) => {
934                Error::Unhandled(inner)
935            }
936        }
937    }
938}
939impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_channels::ListChannelsError, R>> for Error
940where
941    R: Send + Sync + std::fmt::Debug + 'static,
942{
943    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_channels::ListChannelsError, R>) -> Self {
944        match err {
945            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
946            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
947                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
948                source: err.into(),
949            }),
950        }
951    }
952}
953impl From<crate::operation::list_channels::ListChannelsError> for Error {
954    fn from(err: crate::operation::list_channels::ListChannelsError) -> Self {
955        match err {
956            crate::operation::list_channels::ListChannelsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
957            crate::operation::list_channels::ListChannelsError::InternalServerException(inner) => Error::InternalServerException(inner),
958            crate::operation::list_channels::ListChannelsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
959            crate::operation::list_channels::ListChannelsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
960            crate::operation::list_channels::ListChannelsError::ValidationException(inner) => Error::ValidationException(inner),
961            crate::operation::list_channels::ListChannelsError::Unhandled(inner) => Error::Unhandled(inner),
962        }
963    }
964}
965impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_event_rules::ListEventRulesError, R>> for Error
966where
967    R: Send + Sync + std::fmt::Debug + 'static,
968{
969    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_event_rules::ListEventRulesError, R>) -> Self {
970        match err {
971            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
972            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
973                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
974                source: err.into(),
975            }),
976        }
977    }
978}
979impl From<crate::operation::list_event_rules::ListEventRulesError> for Error {
980    fn from(err: crate::operation::list_event_rules::ListEventRulesError) -> Self {
981        match err {
982            crate::operation::list_event_rules::ListEventRulesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
983            crate::operation::list_event_rules::ListEventRulesError::InternalServerException(inner) => Error::InternalServerException(inner),
984            crate::operation::list_event_rules::ListEventRulesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
985            crate::operation::list_event_rules::ListEventRulesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
986            crate::operation::list_event_rules::ListEventRulesError::ValidationException(inner) => Error::ValidationException(inner),
987            crate::operation::list_event_rules::ListEventRulesError::Unhandled(inner) => Error::Unhandled(inner),
988        }
989    }
990}
991impl<R>
992    From<
993        ::aws_smithy_runtime_api::client::result::SdkError<
994            crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError,
995            R,
996        >,
997    > for Error
998where
999    R: Send + Sync + std::fmt::Debug + 'static,
1000{
1001    fn from(
1002        err: ::aws_smithy_runtime_api::client::result::SdkError<
1003            crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError,
1004            R,
1005        >,
1006    ) -> Self {
1007        match err {
1008            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1009            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1010                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1011                source: err.into(),
1012            }),
1013        }
1014    }
1015}
1016impl From<crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError> for Error {
1017    fn from(err: crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError) -> Self {
1018        match err {
1019            crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1020            crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError::InternalServerException(inner) => Error::InternalServerException(inner),
1021            crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1022            crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1023            crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError::ValidationException(inner) => Error::ValidationException(inner),
1024            crate::operation::list_managed_notification_channel_associations::ListManagedNotificationChannelAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1025        }
1026    }
1027}
1028impl<R>
1029    From<
1030        ::aws_smithy_runtime_api::client::result::SdkError<
1031            crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError,
1032            R,
1033        >,
1034    > for Error
1035where
1036    R: Send + Sync + std::fmt::Debug + 'static,
1037{
1038    fn from(
1039        err: ::aws_smithy_runtime_api::client::result::SdkError<
1040            crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError,
1041            R,
1042        >,
1043    ) -> Self {
1044        match err {
1045            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1046            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1047                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1048                source: err.into(),
1049            }),
1050        }
1051    }
1052}
1053impl From<crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError> for Error {
1054    fn from(err: crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError) -> Self {
1055        match err {
1056            crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError::AccessDeniedException(inner) => {
1057                Error::AccessDeniedException(inner)
1058            }
1059            crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError::InternalServerException(inner) => {
1060                Error::InternalServerException(inner)
1061            }
1062            crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError::ThrottlingException(inner) => {
1063                Error::ThrottlingException(inner)
1064            }
1065            crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError::ValidationException(inner) => {
1066                Error::ValidationException(inner)
1067            }
1068            crate::operation::list_managed_notification_child_events::ListManagedNotificationChildEventsError::Unhandled(inner) => {
1069                Error::Unhandled(inner)
1070            }
1071        }
1072    }
1073}
1074impl<R>
1075    From<
1076        ::aws_smithy_runtime_api::client::result::SdkError<
1077            crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError,
1078            R,
1079        >,
1080    > for Error
1081where
1082    R: Send + Sync + std::fmt::Debug + 'static,
1083{
1084    fn from(
1085        err: ::aws_smithy_runtime_api::client::result::SdkError<
1086            crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError,
1087            R,
1088        >,
1089    ) -> Self {
1090        match err {
1091            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1092            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1093                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1094                source: err.into(),
1095            }),
1096        }
1097    }
1098}
1099impl From<crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError> for Error {
1100    fn from(err: crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError) -> Self {
1101        match err {
1102            crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError::AccessDeniedException(inner) => {
1103                Error::AccessDeniedException(inner)
1104            }
1105            crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError::InternalServerException(
1106                inner,
1107            ) => Error::InternalServerException(inner),
1108            crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError::ThrottlingException(inner) => {
1109                Error::ThrottlingException(inner)
1110            }
1111            crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError::ValidationException(inner) => {
1112                Error::ValidationException(inner)
1113            }
1114            crate::operation::list_managed_notification_configurations::ListManagedNotificationConfigurationsError::Unhandled(inner) => {
1115                Error::Unhandled(inner)
1116            }
1117        }
1118    }
1119}
1120impl<R>
1121    From<
1122        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_notification_events::ListManagedNotificationEventsError, R>,
1123    > for Error
1124where
1125    R: Send + Sync + std::fmt::Debug + 'static,
1126{
1127    fn from(
1128        err: ::aws_smithy_runtime_api::client::result::SdkError<
1129            crate::operation::list_managed_notification_events::ListManagedNotificationEventsError,
1130            R,
1131        >,
1132    ) -> Self {
1133        match err {
1134            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1135            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1136                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1137                source: err.into(),
1138            }),
1139        }
1140    }
1141}
1142impl From<crate::operation::list_managed_notification_events::ListManagedNotificationEventsError> for Error {
1143    fn from(err: crate::operation::list_managed_notification_events::ListManagedNotificationEventsError) -> Self {
1144        match err {
1145            crate::operation::list_managed_notification_events::ListManagedNotificationEventsError::AccessDeniedException(inner) => {
1146                Error::AccessDeniedException(inner)
1147            }
1148            crate::operation::list_managed_notification_events::ListManagedNotificationEventsError::InternalServerException(inner) => {
1149                Error::InternalServerException(inner)
1150            }
1151            crate::operation::list_managed_notification_events::ListManagedNotificationEventsError::ThrottlingException(inner) => {
1152                Error::ThrottlingException(inner)
1153            }
1154            crate::operation::list_managed_notification_events::ListManagedNotificationEventsError::ValidationException(inner) => {
1155                Error::ValidationException(inner)
1156            }
1157            crate::operation::list_managed_notification_events::ListManagedNotificationEventsError::Unhandled(inner) => Error::Unhandled(inner),
1158        }
1159    }
1160}
1161impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_member_accounts::ListMemberAccountsError, R>> for Error
1162where
1163    R: Send + Sync + std::fmt::Debug + 'static,
1164{
1165    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_member_accounts::ListMemberAccountsError, R>) -> Self {
1166        match err {
1167            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1168            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1169                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1170                source: err.into(),
1171            }),
1172        }
1173    }
1174}
1175impl From<crate::operation::list_member_accounts::ListMemberAccountsError> for Error {
1176    fn from(err: crate::operation::list_member_accounts::ListMemberAccountsError) -> Self {
1177        match err {
1178            crate::operation::list_member_accounts::ListMemberAccountsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1179            crate::operation::list_member_accounts::ListMemberAccountsError::InternalServerException(inner) => Error::InternalServerException(inner),
1180            crate::operation::list_member_accounts::ListMemberAccountsError::ResourceNotFoundException(inner) => {
1181                Error::ResourceNotFoundException(inner)
1182            }
1183            crate::operation::list_member_accounts::ListMemberAccountsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1184            crate::operation::list_member_accounts::ListMemberAccountsError::ValidationException(inner) => Error::ValidationException(inner),
1185            crate::operation::list_member_accounts::ListMemberAccountsError::Unhandled(inner) => Error::Unhandled(inner),
1186        }
1187    }
1188}
1189impl<R>
1190    From<
1191        ::aws_smithy_runtime_api::client::result::SdkError<
1192            crate::operation::list_notification_configurations::ListNotificationConfigurationsError,
1193            R,
1194        >,
1195    > for Error
1196where
1197    R: Send + Sync + std::fmt::Debug + 'static,
1198{
1199    fn from(
1200        err: ::aws_smithy_runtime_api::client::result::SdkError<
1201            crate::operation::list_notification_configurations::ListNotificationConfigurationsError,
1202            R,
1203        >,
1204    ) -> Self {
1205        match err {
1206            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1207            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1208                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1209                source: err.into(),
1210            }),
1211        }
1212    }
1213}
1214impl From<crate::operation::list_notification_configurations::ListNotificationConfigurationsError> for Error {
1215    fn from(err: crate::operation::list_notification_configurations::ListNotificationConfigurationsError) -> Self {
1216        match err {
1217            crate::operation::list_notification_configurations::ListNotificationConfigurationsError::AccessDeniedException(inner) => {
1218                Error::AccessDeniedException(inner)
1219            }
1220            crate::operation::list_notification_configurations::ListNotificationConfigurationsError::InternalServerException(inner) => {
1221                Error::InternalServerException(inner)
1222            }
1223            crate::operation::list_notification_configurations::ListNotificationConfigurationsError::ThrottlingException(inner) => {
1224                Error::ThrottlingException(inner)
1225            }
1226            crate::operation::list_notification_configurations::ListNotificationConfigurationsError::ValidationException(inner) => {
1227                Error::ValidationException(inner)
1228            }
1229            crate::operation::list_notification_configurations::ListNotificationConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1230        }
1231    }
1232}
1233impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notification_events::ListNotificationEventsError, R>> for Error
1234where
1235    R: Send + Sync + std::fmt::Debug + 'static,
1236{
1237    fn from(
1238        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notification_events::ListNotificationEventsError, R>,
1239    ) -> Self {
1240        match err {
1241            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1242            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1243                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1244                source: err.into(),
1245            }),
1246        }
1247    }
1248}
1249impl From<crate::operation::list_notification_events::ListNotificationEventsError> for Error {
1250    fn from(err: crate::operation::list_notification_events::ListNotificationEventsError) -> Self {
1251        match err {
1252            crate::operation::list_notification_events::ListNotificationEventsError::AccessDeniedException(inner) => {
1253                Error::AccessDeniedException(inner)
1254            }
1255            crate::operation::list_notification_events::ListNotificationEventsError::InternalServerException(inner) => {
1256                Error::InternalServerException(inner)
1257            }
1258            crate::operation::list_notification_events::ListNotificationEventsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1259            crate::operation::list_notification_events::ListNotificationEventsError::ValidationException(inner) => Error::ValidationException(inner),
1260            crate::operation::list_notification_events::ListNotificationEventsError::Unhandled(inner) => Error::Unhandled(inner),
1261        }
1262    }
1263}
1264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notification_hubs::ListNotificationHubsError, R>> for Error
1265where
1266    R: Send + Sync + std::fmt::Debug + 'static,
1267{
1268    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notification_hubs::ListNotificationHubsError, R>) -> Self {
1269        match err {
1270            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1271            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1272                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1273                source: err.into(),
1274            }),
1275        }
1276    }
1277}
1278impl From<crate::operation::list_notification_hubs::ListNotificationHubsError> for Error {
1279    fn from(err: crate::operation::list_notification_hubs::ListNotificationHubsError) -> Self {
1280        match err {
1281            crate::operation::list_notification_hubs::ListNotificationHubsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1282            crate::operation::list_notification_hubs::ListNotificationHubsError::InternalServerException(inner) => {
1283                Error::InternalServerException(inner)
1284            }
1285            crate::operation::list_notification_hubs::ListNotificationHubsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1286            crate::operation::list_notification_hubs::ListNotificationHubsError::ValidationException(inner) => Error::ValidationException(inner),
1287            crate::operation::list_notification_hubs::ListNotificationHubsError::Unhandled(inner) => Error::Unhandled(inner),
1288        }
1289    }
1290}
1291impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_organizational_units::ListOrganizationalUnitsError, R>>
1292    for Error
1293where
1294    R: Send + Sync + std::fmt::Debug + 'static,
1295{
1296    fn from(
1297        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_organizational_units::ListOrganizationalUnitsError, R>,
1298    ) -> Self {
1299        match err {
1300            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1301            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1302                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1303                source: err.into(),
1304            }),
1305        }
1306    }
1307}
1308impl From<crate::operation::list_organizational_units::ListOrganizationalUnitsError> for Error {
1309    fn from(err: crate::operation::list_organizational_units::ListOrganizationalUnitsError) -> Self {
1310        match err {
1311            crate::operation::list_organizational_units::ListOrganizationalUnitsError::AccessDeniedException(inner) => {
1312                Error::AccessDeniedException(inner)
1313            }
1314            crate::operation::list_organizational_units::ListOrganizationalUnitsError::InternalServerException(inner) => {
1315                Error::InternalServerException(inner)
1316            }
1317            crate::operation::list_organizational_units::ListOrganizationalUnitsError::ResourceNotFoundException(inner) => {
1318                Error::ResourceNotFoundException(inner)
1319            }
1320            crate::operation::list_organizational_units::ListOrganizationalUnitsError::ThrottlingException(inner) => {
1321                Error::ThrottlingException(inner)
1322            }
1323            crate::operation::list_organizational_units::ListOrganizationalUnitsError::ValidationException(inner) => {
1324                Error::ValidationException(inner)
1325            }
1326            crate::operation::list_organizational_units::ListOrganizationalUnitsError::Unhandled(inner) => Error::Unhandled(inner),
1327        }
1328    }
1329}
1330impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1331where
1332    R: Send + Sync + std::fmt::Debug + 'static,
1333{
1334    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1335        match err {
1336            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1337            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1338                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1339                source: err.into(),
1340            }),
1341        }
1342    }
1343}
1344impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1345    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1346        match err {
1347            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1348            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
1349                Error::InternalServerException(inner)
1350            }
1351            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1352                Error::ResourceNotFoundException(inner)
1353            }
1354            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1355            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
1356            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1357        }
1358    }
1359}
1360impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_notification_hub::RegisterNotificationHubError, R>>
1361    for Error
1362where
1363    R: Send + Sync + std::fmt::Debug + 'static,
1364{
1365    fn from(
1366        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_notification_hub::RegisterNotificationHubError, R>,
1367    ) -> Self {
1368        match err {
1369            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1370            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1371                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1372                source: err.into(),
1373            }),
1374        }
1375    }
1376}
1377impl From<crate::operation::register_notification_hub::RegisterNotificationHubError> for Error {
1378    fn from(err: crate::operation::register_notification_hub::RegisterNotificationHubError) -> Self {
1379        match err {
1380            crate::operation::register_notification_hub::RegisterNotificationHubError::AccessDeniedException(inner) => {
1381                Error::AccessDeniedException(inner)
1382            }
1383            crate::operation::register_notification_hub::RegisterNotificationHubError::ConflictException(inner) => Error::ConflictException(inner),
1384            crate::operation::register_notification_hub::RegisterNotificationHubError::InternalServerException(inner) => {
1385                Error::InternalServerException(inner)
1386            }
1387            crate::operation::register_notification_hub::RegisterNotificationHubError::ServiceQuotaExceededException(inner) => {
1388                Error::ServiceQuotaExceededException(inner)
1389            }
1390            crate::operation::register_notification_hub::RegisterNotificationHubError::ThrottlingException(inner) => {
1391                Error::ThrottlingException(inner)
1392            }
1393            crate::operation::register_notification_hub::RegisterNotificationHubError::ValidationException(inner) => {
1394                Error::ValidationException(inner)
1395            }
1396            crate::operation::register_notification_hub::RegisterNotificationHubError::Unhandled(inner) => Error::Unhandled(inner),
1397        }
1398    }
1399}
1400impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1401where
1402    R: Send + Sync + std::fmt::Debug + 'static,
1403{
1404    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1405        match err {
1406            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1407            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1408                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1409                source: err.into(),
1410            }),
1411        }
1412    }
1413}
1414impl From<crate::operation::tag_resource::TagResourceError> for Error {
1415    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1416        match err {
1417            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1418            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1419            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1420            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1421            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1422            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1423        }
1424    }
1425}
1426impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1427where
1428    R: Send + Sync + std::fmt::Debug + 'static,
1429{
1430    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1431        match err {
1432            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1433            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1434                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1435                source: err.into(),
1436            }),
1437        }
1438    }
1439}
1440impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1441    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1442        match err {
1443            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1444            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1445            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1446            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1447            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1448            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1449        }
1450    }
1451}
1452impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_event_rule::UpdateEventRuleError, R>> for Error
1453where
1454    R: Send + Sync + std::fmt::Debug + 'static,
1455{
1456    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_event_rule::UpdateEventRuleError, R>) -> Self {
1457        match err {
1458            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1459            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1460                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1461                source: err.into(),
1462            }),
1463        }
1464    }
1465}
1466impl From<crate::operation::update_event_rule::UpdateEventRuleError> for Error {
1467    fn from(err: crate::operation::update_event_rule::UpdateEventRuleError) -> Self {
1468        match err {
1469            crate::operation::update_event_rule::UpdateEventRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1470            crate::operation::update_event_rule::UpdateEventRuleError::ConflictException(inner) => Error::ConflictException(inner),
1471            crate::operation::update_event_rule::UpdateEventRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
1472            crate::operation::update_event_rule::UpdateEventRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1473            crate::operation::update_event_rule::UpdateEventRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1474            crate::operation::update_event_rule::UpdateEventRuleError::ValidationException(inner) => Error::ValidationException(inner),
1475            crate::operation::update_event_rule::UpdateEventRuleError::Unhandled(inner) => Error::Unhandled(inner),
1476        }
1477    }
1478}
1479impl<R>
1480    From<
1481        ::aws_smithy_runtime_api::client::result::SdkError<
1482            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError,
1483            R,
1484        >,
1485    > for Error
1486where
1487    R: Send + Sync + std::fmt::Debug + 'static,
1488{
1489    fn from(
1490        err: ::aws_smithy_runtime_api::client::result::SdkError<
1491            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError,
1492            R,
1493        >,
1494    ) -> Self {
1495        match err {
1496            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1497            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1498                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1499                source: err.into(),
1500            }),
1501        }
1502    }
1503}
1504impl From<crate::operation::update_notification_configuration::UpdateNotificationConfigurationError> for Error {
1505    fn from(err: crate::operation::update_notification_configuration::UpdateNotificationConfigurationError) -> Self {
1506        match err {
1507            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::AccessDeniedException(inner) => {
1508                Error::AccessDeniedException(inner)
1509            }
1510            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::ConflictException(inner) => {
1511                Error::ConflictException(inner)
1512            }
1513            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::InternalServerException(inner) => {
1514                Error::InternalServerException(inner)
1515            }
1516            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::ResourceNotFoundException(inner) => {
1517                Error::ResourceNotFoundException(inner)
1518            }
1519            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::ThrottlingException(inner) => {
1520                Error::ThrottlingException(inner)
1521            }
1522            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::ValidationException(inner) => {
1523                Error::ValidationException(inner)
1524            }
1525            crate::operation::update_notification_configuration::UpdateNotificationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1526        }
1527    }
1528}
1529impl ::std::error::Error for Error {
1530    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1531        match self {
1532            Error::AccessDeniedException(inner) => inner.source(),
1533            Error::ConflictException(inner) => inner.source(),
1534            Error::InternalServerException(inner) => inner.source(),
1535            Error::ResourceNotFoundException(inner) => inner.source(),
1536            Error::ServiceQuotaExceededException(inner) => inner.source(),
1537            Error::ThrottlingException(inner) => inner.source(),
1538            Error::ValidationException(inner) => inner.source(),
1539            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1540        }
1541    }
1542}
1543impl ::aws_types::request_id::RequestId for Error {
1544    fn request_id(&self) -> Option<&str> {
1545        match self {
1546            Self::AccessDeniedException(e) => e.request_id(),
1547            Self::ConflictException(e) => e.request_id(),
1548            Self::InternalServerException(e) => e.request_id(),
1549            Self::ResourceNotFoundException(e) => e.request_id(),
1550            Self::ServiceQuotaExceededException(e) => e.request_id(),
1551            Self::ThrottlingException(e) => e.request_id(),
1552            Self::ValidationException(e) => e.request_id(),
1553            Self::Unhandled(e) => e.meta.request_id(),
1554        }
1555    }
1556}