aws_sdk_cloudwatchevents/
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>There is concurrent modification on a rule, target, archive, or replay.</p>
7    ConcurrentModificationException(crate::types::error::ConcurrentModificationException),
8    /// <p>An error occurred because a replay can be canceled only when the state is Running or Starting.</p>
9    IllegalStatusException(crate::types::error::IllegalStatusException),
10    /// <p>This exception occurs due to unexpected causes.</p>
11    InternalException(crate::types::error::InternalException),
12    /// <p>The event pattern is not valid.</p>
13    InvalidEventPatternException(crate::types::error::InvalidEventPatternException),
14    /// <p>The specified state is not a valid state for an event source.</p>
15    InvalidStateException(crate::types::error::InvalidStateException),
16    /// <p>The request failed because it attempted to create resource beyond the allowed service quota.</p>
17    LimitExceededException(crate::types::error::LimitExceededException),
18    /// <p>This rule was created by an Amazon Web Services service on behalf of your account. It is managed by that service. If you see this error in response to <code>DeleteRule</code> or <code>RemoveTargets</code>, you can use the <code>Force</code> parameter in those calls to delete the rule or remove targets from the rule. You cannot modify these managed rules by using <code>DisableRule</code>, <code>EnableRule</code>, <code>PutTargets</code>, <code>PutRule</code>, <code>TagResource</code>, or <code>UntagResource</code>.</p>
19    ManagedRuleException(crate::types::error::ManagedRuleException),
20    /// <p>The operation you are attempting is not available in this region.</p>
21    OperationDisabledException(crate::types::error::OperationDisabledException),
22    /// <p>The event bus policy is too long. For more information, see the limits.</p>
23    PolicyLengthExceededException(crate::types::error::PolicyLengthExceededException),
24    /// <p>The resource you are trying to create already exists.</p>
25    ResourceAlreadyExistsException(crate::types::error::ResourceAlreadyExistsException),
26    /// <p>An entity that you specified does not exist.</p>
27    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
28    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
29    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
30    variable wildcard pattern and check `.code()`:
31     \
32    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
33     \
34    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
35    Unhandled(crate::error::sealed_unhandled::Unhandled),
36}
37impl ::std::fmt::Display for Error {
38    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
39        match self {
40            Error::ConcurrentModificationException(inner) => inner.fmt(f),
41            Error::IllegalStatusException(inner) => inner.fmt(f),
42            Error::InternalException(inner) => inner.fmt(f),
43            Error::InvalidEventPatternException(inner) => inner.fmt(f),
44            Error::InvalidStateException(inner) => inner.fmt(f),
45            Error::LimitExceededException(inner) => inner.fmt(f),
46            Error::ManagedRuleException(inner) => inner.fmt(f),
47            Error::OperationDisabledException(inner) => inner.fmt(f),
48            Error::PolicyLengthExceededException(inner) => inner.fmt(f),
49            Error::ResourceAlreadyExistsException(inner) => inner.fmt(f),
50            Error::ResourceNotFoundException(inner) => inner.fmt(f),
51            Error::Unhandled(_) => {
52                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
53                    write!(f, "unhandled error ({code})")
54                } else {
55                    f.write_str("unhandled error")
56                }
57            }
58        }
59    }
60}
61impl From<::aws_smithy_types::error::operation::BuildError> for Error {
62    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
63        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
64            source: value.into(),
65            meta: ::std::default::Default::default(),
66        })
67    }
68}
69impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
70    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
71        match self {
72            Self::ConcurrentModificationException(inner) => inner.meta(),
73            Self::IllegalStatusException(inner) => inner.meta(),
74            Self::InternalException(inner) => inner.meta(),
75            Self::InvalidEventPatternException(inner) => inner.meta(),
76            Self::InvalidStateException(inner) => inner.meta(),
77            Self::LimitExceededException(inner) => inner.meta(),
78            Self::ManagedRuleException(inner) => inner.meta(),
79            Self::OperationDisabledException(inner) => inner.meta(),
80            Self::PolicyLengthExceededException(inner) => inner.meta(),
81            Self::ResourceAlreadyExistsException(inner) => inner.meta(),
82            Self::ResourceNotFoundException(inner) => inner.meta(),
83            Self::Unhandled(inner) => &inner.meta,
84        }
85    }
86}
87impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::activate_event_source::ActivateEventSourceError, R>> for Error
88where
89    R: Send + Sync + std::fmt::Debug + 'static,
90{
91    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::activate_event_source::ActivateEventSourceError, R>) -> Self {
92        match err {
93            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
94            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
95                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
96                source: err.into(),
97            }),
98        }
99    }
100}
101impl From<crate::operation::activate_event_source::ActivateEventSourceError> for Error {
102    fn from(err: crate::operation::activate_event_source::ActivateEventSourceError) -> Self {
103        match err {
104            crate::operation::activate_event_source::ActivateEventSourceError::ConcurrentModificationException(inner) => {
105                Error::ConcurrentModificationException(inner)
106            }
107            crate::operation::activate_event_source::ActivateEventSourceError::InternalException(inner) => Error::InternalException(inner),
108            crate::operation::activate_event_source::ActivateEventSourceError::InvalidStateException(inner) => Error::InvalidStateException(inner),
109            crate::operation::activate_event_source::ActivateEventSourceError::OperationDisabledException(inner) => {
110                Error::OperationDisabledException(inner)
111            }
112            crate::operation::activate_event_source::ActivateEventSourceError::ResourceNotFoundException(inner) => {
113                Error::ResourceNotFoundException(inner)
114            }
115            crate::operation::activate_event_source::ActivateEventSourceError::Unhandled(inner) => Error::Unhandled(inner),
116        }
117    }
118}
119impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_replay::CancelReplayError, R>> for Error
120where
121    R: Send + Sync + std::fmt::Debug + 'static,
122{
123    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_replay::CancelReplayError, R>) -> Self {
124        match err {
125            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
126            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
127                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
128                source: err.into(),
129            }),
130        }
131    }
132}
133impl From<crate::operation::cancel_replay::CancelReplayError> for Error {
134    fn from(err: crate::operation::cancel_replay::CancelReplayError) -> Self {
135        match err {
136            crate::operation::cancel_replay::CancelReplayError::ConcurrentModificationException(inner) => {
137                Error::ConcurrentModificationException(inner)
138            }
139            crate::operation::cancel_replay::CancelReplayError::IllegalStatusException(inner) => Error::IllegalStatusException(inner),
140            crate::operation::cancel_replay::CancelReplayError::InternalException(inner) => Error::InternalException(inner),
141            crate::operation::cancel_replay::CancelReplayError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
142            crate::operation::cancel_replay::CancelReplayError::Unhandled(inner) => Error::Unhandled(inner),
143        }
144    }
145}
146impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_api_destination::CreateApiDestinationError, R>> for Error
147where
148    R: Send + Sync + std::fmt::Debug + 'static,
149{
150    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_api_destination::CreateApiDestinationError, R>) -> Self {
151        match err {
152            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
153            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
154                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
155                source: err.into(),
156            }),
157        }
158    }
159}
160impl From<crate::operation::create_api_destination::CreateApiDestinationError> for Error {
161    fn from(err: crate::operation::create_api_destination::CreateApiDestinationError) -> Self {
162        match err {
163            crate::operation::create_api_destination::CreateApiDestinationError::InternalException(inner) => Error::InternalException(inner),
164            crate::operation::create_api_destination::CreateApiDestinationError::LimitExceededException(inner) => {
165                Error::LimitExceededException(inner)
166            }
167            crate::operation::create_api_destination::CreateApiDestinationError::ResourceAlreadyExistsException(inner) => {
168                Error::ResourceAlreadyExistsException(inner)
169            }
170            crate::operation::create_api_destination::CreateApiDestinationError::ResourceNotFoundException(inner) => {
171                Error::ResourceNotFoundException(inner)
172            }
173            crate::operation::create_api_destination::CreateApiDestinationError::Unhandled(inner) => Error::Unhandled(inner),
174        }
175    }
176}
177impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_archive::CreateArchiveError, R>> for Error
178where
179    R: Send + Sync + std::fmt::Debug + 'static,
180{
181    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_archive::CreateArchiveError, R>) -> Self {
182        match err {
183            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
184            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
185                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
186                source: err.into(),
187            }),
188        }
189    }
190}
191impl From<crate::operation::create_archive::CreateArchiveError> for Error {
192    fn from(err: crate::operation::create_archive::CreateArchiveError) -> Self {
193        match err {
194            crate::operation::create_archive::CreateArchiveError::ConcurrentModificationException(inner) => {
195                Error::ConcurrentModificationException(inner)
196            }
197            crate::operation::create_archive::CreateArchiveError::InternalException(inner) => Error::InternalException(inner),
198            crate::operation::create_archive::CreateArchiveError::InvalidEventPatternException(inner) => Error::InvalidEventPatternException(inner),
199            crate::operation::create_archive::CreateArchiveError::LimitExceededException(inner) => Error::LimitExceededException(inner),
200            crate::operation::create_archive::CreateArchiveError::ResourceAlreadyExistsException(inner) => {
201                Error::ResourceAlreadyExistsException(inner)
202            }
203            crate::operation::create_archive::CreateArchiveError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
204            crate::operation::create_archive::CreateArchiveError::Unhandled(inner) => Error::Unhandled(inner),
205        }
206    }
207}
208impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>> for Error
209where
210    R: Send + Sync + std::fmt::Debug + 'static,
211{
212    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>) -> Self {
213        match err {
214            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
215            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
216                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
217                source: err.into(),
218            }),
219        }
220    }
221}
222impl From<crate::operation::create_connection::CreateConnectionError> for Error {
223    fn from(err: crate::operation::create_connection::CreateConnectionError) -> Self {
224        match err {
225            crate::operation::create_connection::CreateConnectionError::InternalException(inner) => Error::InternalException(inner),
226            crate::operation::create_connection::CreateConnectionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
227            crate::operation::create_connection::CreateConnectionError::ResourceAlreadyExistsException(inner) => {
228                Error::ResourceAlreadyExistsException(inner)
229            }
230            crate::operation::create_connection::CreateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
231        }
232    }
233}
234impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_bus::CreateEventBusError, R>> for Error
235where
236    R: Send + Sync + std::fmt::Debug + 'static,
237{
238    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_bus::CreateEventBusError, R>) -> Self {
239        match err {
240            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
241            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
242                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
243                source: err.into(),
244            }),
245        }
246    }
247}
248impl From<crate::operation::create_event_bus::CreateEventBusError> for Error {
249    fn from(err: crate::operation::create_event_bus::CreateEventBusError) -> Self {
250        match err {
251            crate::operation::create_event_bus::CreateEventBusError::ConcurrentModificationException(inner) => {
252                Error::ConcurrentModificationException(inner)
253            }
254            crate::operation::create_event_bus::CreateEventBusError::InternalException(inner) => Error::InternalException(inner),
255            crate::operation::create_event_bus::CreateEventBusError::InvalidStateException(inner) => Error::InvalidStateException(inner),
256            crate::operation::create_event_bus::CreateEventBusError::LimitExceededException(inner) => Error::LimitExceededException(inner),
257            crate::operation::create_event_bus::CreateEventBusError::OperationDisabledException(inner) => Error::OperationDisabledException(inner),
258            crate::operation::create_event_bus::CreateEventBusError::ResourceAlreadyExistsException(inner) => {
259                Error::ResourceAlreadyExistsException(inner)
260            }
261            crate::operation::create_event_bus::CreateEventBusError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
262            crate::operation::create_event_bus::CreateEventBusError::Unhandled(inner) => Error::Unhandled(inner),
263        }
264    }
265}
266impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_event_source::CreatePartnerEventSourceError, R>>
267    for Error
268where
269    R: Send + Sync + std::fmt::Debug + 'static,
270{
271    fn from(
272        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_event_source::CreatePartnerEventSourceError, R>,
273    ) -> Self {
274        match err {
275            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
276            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
277                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
278                source: err.into(),
279            }),
280        }
281    }
282}
283impl From<crate::operation::create_partner_event_source::CreatePartnerEventSourceError> for Error {
284    fn from(err: crate::operation::create_partner_event_source::CreatePartnerEventSourceError) -> Self {
285        match err {
286            crate::operation::create_partner_event_source::CreatePartnerEventSourceError::ConcurrentModificationException(inner) => {
287                Error::ConcurrentModificationException(inner)
288            }
289            crate::operation::create_partner_event_source::CreatePartnerEventSourceError::InternalException(inner) => Error::InternalException(inner),
290            crate::operation::create_partner_event_source::CreatePartnerEventSourceError::LimitExceededException(inner) => {
291                Error::LimitExceededException(inner)
292            }
293            crate::operation::create_partner_event_source::CreatePartnerEventSourceError::OperationDisabledException(inner) => {
294                Error::OperationDisabledException(inner)
295            }
296            crate::operation::create_partner_event_source::CreatePartnerEventSourceError::ResourceAlreadyExistsException(inner) => {
297                Error::ResourceAlreadyExistsException(inner)
298            }
299            crate::operation::create_partner_event_source::CreatePartnerEventSourceError::Unhandled(inner) => Error::Unhandled(inner),
300        }
301    }
302}
303impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deactivate_event_source::DeactivateEventSourceError, R>> for Error
304where
305    R: Send + Sync + std::fmt::Debug + 'static,
306{
307    fn from(
308        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deactivate_event_source::DeactivateEventSourceError, R>,
309    ) -> Self {
310        match err {
311            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
312            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
313                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
314                source: err.into(),
315            }),
316        }
317    }
318}
319impl From<crate::operation::deactivate_event_source::DeactivateEventSourceError> for Error {
320    fn from(err: crate::operation::deactivate_event_source::DeactivateEventSourceError) -> Self {
321        match err {
322            crate::operation::deactivate_event_source::DeactivateEventSourceError::ConcurrentModificationException(inner) => {
323                Error::ConcurrentModificationException(inner)
324            }
325            crate::operation::deactivate_event_source::DeactivateEventSourceError::InternalException(inner) => Error::InternalException(inner),
326            crate::operation::deactivate_event_source::DeactivateEventSourceError::InvalidStateException(inner) => {
327                Error::InvalidStateException(inner)
328            }
329            crate::operation::deactivate_event_source::DeactivateEventSourceError::OperationDisabledException(inner) => {
330                Error::OperationDisabledException(inner)
331            }
332            crate::operation::deactivate_event_source::DeactivateEventSourceError::ResourceNotFoundException(inner) => {
333                Error::ResourceNotFoundException(inner)
334            }
335            crate::operation::deactivate_event_source::DeactivateEventSourceError::Unhandled(inner) => Error::Unhandled(inner),
336        }
337    }
338}
339impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deauthorize_connection::DeauthorizeConnectionError, R>> for Error
340where
341    R: Send + Sync + std::fmt::Debug + 'static,
342{
343    fn from(
344        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deauthorize_connection::DeauthorizeConnectionError, R>,
345    ) -> Self {
346        match err {
347            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
348            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
349                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
350                source: err.into(),
351            }),
352        }
353    }
354}
355impl From<crate::operation::deauthorize_connection::DeauthorizeConnectionError> for Error {
356    fn from(err: crate::operation::deauthorize_connection::DeauthorizeConnectionError) -> Self {
357        match err {
358            crate::operation::deauthorize_connection::DeauthorizeConnectionError::ConcurrentModificationException(inner) => {
359                Error::ConcurrentModificationException(inner)
360            }
361            crate::operation::deauthorize_connection::DeauthorizeConnectionError::InternalException(inner) => Error::InternalException(inner),
362            crate::operation::deauthorize_connection::DeauthorizeConnectionError::ResourceNotFoundException(inner) => {
363                Error::ResourceNotFoundException(inner)
364            }
365            crate::operation::deauthorize_connection::DeauthorizeConnectionError::Unhandled(inner) => Error::Unhandled(inner),
366        }
367    }
368}
369impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api_destination::DeleteApiDestinationError, R>> for Error
370where
371    R: Send + Sync + std::fmt::Debug + 'static,
372{
373    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api_destination::DeleteApiDestinationError, R>) -> Self {
374        match err {
375            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
376            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
377                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
378                source: err.into(),
379            }),
380        }
381    }
382}
383impl From<crate::operation::delete_api_destination::DeleteApiDestinationError> for Error {
384    fn from(err: crate::operation::delete_api_destination::DeleteApiDestinationError) -> Self {
385        match err {
386            crate::operation::delete_api_destination::DeleteApiDestinationError::ConcurrentModificationException(inner) => {
387                Error::ConcurrentModificationException(inner)
388            }
389            crate::operation::delete_api_destination::DeleteApiDestinationError::InternalException(inner) => Error::InternalException(inner),
390            crate::operation::delete_api_destination::DeleteApiDestinationError::ResourceNotFoundException(inner) => {
391                Error::ResourceNotFoundException(inner)
392            }
393            crate::operation::delete_api_destination::DeleteApiDestinationError::Unhandled(inner) => Error::Unhandled(inner),
394        }
395    }
396}
397impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_archive::DeleteArchiveError, R>> for Error
398where
399    R: Send + Sync + std::fmt::Debug + 'static,
400{
401    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_archive::DeleteArchiveError, R>) -> Self {
402        match err {
403            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
404            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
405                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
406                source: err.into(),
407            }),
408        }
409    }
410}
411impl From<crate::operation::delete_archive::DeleteArchiveError> for Error {
412    fn from(err: crate::operation::delete_archive::DeleteArchiveError) -> Self {
413        match err {
414            crate::operation::delete_archive::DeleteArchiveError::ConcurrentModificationException(inner) => {
415                Error::ConcurrentModificationException(inner)
416            }
417            crate::operation::delete_archive::DeleteArchiveError::InternalException(inner) => Error::InternalException(inner),
418            crate::operation::delete_archive::DeleteArchiveError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
419            crate::operation::delete_archive::DeleteArchiveError::Unhandled(inner) => Error::Unhandled(inner),
420        }
421    }
422}
423impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>> for Error
424where
425    R: Send + Sync + std::fmt::Debug + 'static,
426{
427    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>) -> Self {
428        match err {
429            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
430            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
431                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
432                source: err.into(),
433            }),
434        }
435    }
436}
437impl From<crate::operation::delete_connection::DeleteConnectionError> for Error {
438    fn from(err: crate::operation::delete_connection::DeleteConnectionError) -> Self {
439        match err {
440            crate::operation::delete_connection::DeleteConnectionError::ConcurrentModificationException(inner) => {
441                Error::ConcurrentModificationException(inner)
442            }
443            crate::operation::delete_connection::DeleteConnectionError::InternalException(inner) => Error::InternalException(inner),
444            crate::operation::delete_connection::DeleteConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
445            crate::operation::delete_connection::DeleteConnectionError::Unhandled(inner) => Error::Unhandled(inner),
446        }
447    }
448}
449impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_bus::DeleteEventBusError, R>> for Error
450where
451    R: Send + Sync + std::fmt::Debug + 'static,
452{
453    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_bus::DeleteEventBusError, R>) -> Self {
454        match err {
455            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
456            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
457                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
458                source: err.into(),
459            }),
460        }
461    }
462}
463impl From<crate::operation::delete_event_bus::DeleteEventBusError> for Error {
464    fn from(err: crate::operation::delete_event_bus::DeleteEventBusError) -> Self {
465        match err {
466            crate::operation::delete_event_bus::DeleteEventBusError::ConcurrentModificationException(inner) => {
467                Error::ConcurrentModificationException(inner)
468            }
469            crate::operation::delete_event_bus::DeleteEventBusError::InternalException(inner) => Error::InternalException(inner),
470            crate::operation::delete_event_bus::DeleteEventBusError::Unhandled(inner) => Error::Unhandled(inner),
471        }
472    }
473}
474impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_partner_event_source::DeletePartnerEventSourceError, R>>
475    for Error
476where
477    R: Send + Sync + std::fmt::Debug + 'static,
478{
479    fn from(
480        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_partner_event_source::DeletePartnerEventSourceError, R>,
481    ) -> Self {
482        match err {
483            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
484            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
485                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
486                source: err.into(),
487            }),
488        }
489    }
490}
491impl From<crate::operation::delete_partner_event_source::DeletePartnerEventSourceError> for Error {
492    fn from(err: crate::operation::delete_partner_event_source::DeletePartnerEventSourceError) -> Self {
493        match err {
494            crate::operation::delete_partner_event_source::DeletePartnerEventSourceError::ConcurrentModificationException(inner) => {
495                Error::ConcurrentModificationException(inner)
496            }
497            crate::operation::delete_partner_event_source::DeletePartnerEventSourceError::InternalException(inner) => Error::InternalException(inner),
498            crate::operation::delete_partner_event_source::DeletePartnerEventSourceError::OperationDisabledException(inner) => {
499                Error::OperationDisabledException(inner)
500            }
501            crate::operation::delete_partner_event_source::DeletePartnerEventSourceError::Unhandled(inner) => Error::Unhandled(inner),
502        }
503    }
504}
505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule::DeleteRuleError, R>> for Error
506where
507    R: Send + Sync + std::fmt::Debug + 'static,
508{
509    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule::DeleteRuleError, R>) -> Self {
510        match err {
511            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
512            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
513                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
514                source: err.into(),
515            }),
516        }
517    }
518}
519impl From<crate::operation::delete_rule::DeleteRuleError> for Error {
520    fn from(err: crate::operation::delete_rule::DeleteRuleError) -> Self {
521        match err {
522            crate::operation::delete_rule::DeleteRuleError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
523            crate::operation::delete_rule::DeleteRuleError::InternalException(inner) => Error::InternalException(inner),
524            crate::operation::delete_rule::DeleteRuleError::ManagedRuleException(inner) => Error::ManagedRuleException(inner),
525            crate::operation::delete_rule::DeleteRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
526            crate::operation::delete_rule::DeleteRuleError::Unhandled(inner) => Error::Unhandled(inner),
527        }
528    }
529}
530impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_api_destination::DescribeApiDestinationError, R>> for Error
531where
532    R: Send + Sync + std::fmt::Debug + 'static,
533{
534    fn from(
535        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_api_destination::DescribeApiDestinationError, R>,
536    ) -> Self {
537        match err {
538            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
539            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
540                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
541                source: err.into(),
542            }),
543        }
544    }
545}
546impl From<crate::operation::describe_api_destination::DescribeApiDestinationError> for Error {
547    fn from(err: crate::operation::describe_api_destination::DescribeApiDestinationError) -> Self {
548        match err {
549            crate::operation::describe_api_destination::DescribeApiDestinationError::InternalException(inner) => Error::InternalException(inner),
550            crate::operation::describe_api_destination::DescribeApiDestinationError::ResourceNotFoundException(inner) => {
551                Error::ResourceNotFoundException(inner)
552            }
553            crate::operation::describe_api_destination::DescribeApiDestinationError::Unhandled(inner) => Error::Unhandled(inner),
554        }
555    }
556}
557impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_archive::DescribeArchiveError, R>> for Error
558where
559    R: Send + Sync + std::fmt::Debug + 'static,
560{
561    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_archive::DescribeArchiveError, R>) -> Self {
562        match err {
563            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
564            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
565                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
566                source: err.into(),
567            }),
568        }
569    }
570}
571impl From<crate::operation::describe_archive::DescribeArchiveError> for Error {
572    fn from(err: crate::operation::describe_archive::DescribeArchiveError) -> Self {
573        match err {
574            crate::operation::describe_archive::DescribeArchiveError::InternalException(inner) => Error::InternalException(inner),
575            crate::operation::describe_archive::DescribeArchiveError::ResourceAlreadyExistsException(inner) => {
576                Error::ResourceAlreadyExistsException(inner)
577            }
578            crate::operation::describe_archive::DescribeArchiveError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
579            crate::operation::describe_archive::DescribeArchiveError::Unhandled(inner) => Error::Unhandled(inner),
580        }
581    }
582}
583impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_connection::DescribeConnectionError, R>> for Error
584where
585    R: Send + Sync + std::fmt::Debug + 'static,
586{
587    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_connection::DescribeConnectionError, R>) -> Self {
588        match err {
589            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
590            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
591                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
592                source: err.into(),
593            }),
594        }
595    }
596}
597impl From<crate::operation::describe_connection::DescribeConnectionError> for Error {
598    fn from(err: crate::operation::describe_connection::DescribeConnectionError) -> Self {
599        match err {
600            crate::operation::describe_connection::DescribeConnectionError::InternalException(inner) => Error::InternalException(inner),
601            crate::operation::describe_connection::DescribeConnectionError::ResourceNotFoundException(inner) => {
602                Error::ResourceNotFoundException(inner)
603            }
604            crate::operation::describe_connection::DescribeConnectionError::Unhandled(inner) => Error::Unhandled(inner),
605        }
606    }
607}
608impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_bus::DescribeEventBusError, R>> for Error
609where
610    R: Send + Sync + std::fmt::Debug + 'static,
611{
612    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_bus::DescribeEventBusError, R>) -> Self {
613        match err {
614            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
615            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
616                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
617                source: err.into(),
618            }),
619        }
620    }
621}
622impl From<crate::operation::describe_event_bus::DescribeEventBusError> for Error {
623    fn from(err: crate::operation::describe_event_bus::DescribeEventBusError) -> Self {
624        match err {
625            crate::operation::describe_event_bus::DescribeEventBusError::InternalException(inner) => Error::InternalException(inner),
626            crate::operation::describe_event_bus::DescribeEventBusError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
627            crate::operation::describe_event_bus::DescribeEventBusError::Unhandled(inner) => Error::Unhandled(inner),
628        }
629    }
630}
631impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_source::DescribeEventSourceError, R>> for Error
632where
633    R: Send + Sync + std::fmt::Debug + 'static,
634{
635    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_source::DescribeEventSourceError, R>) -> Self {
636        match err {
637            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
638            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
639                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
640                source: err.into(),
641            }),
642        }
643    }
644}
645impl From<crate::operation::describe_event_source::DescribeEventSourceError> for Error {
646    fn from(err: crate::operation::describe_event_source::DescribeEventSourceError) -> Self {
647        match err {
648            crate::operation::describe_event_source::DescribeEventSourceError::InternalException(inner) => Error::InternalException(inner),
649            crate::operation::describe_event_source::DescribeEventSourceError::OperationDisabledException(inner) => {
650                Error::OperationDisabledException(inner)
651            }
652            crate::operation::describe_event_source::DescribeEventSourceError::ResourceNotFoundException(inner) => {
653                Error::ResourceNotFoundException(inner)
654            }
655            crate::operation::describe_event_source::DescribeEventSourceError::Unhandled(inner) => Error::Unhandled(inner),
656        }
657    }
658}
659impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_partner_event_source::DescribePartnerEventSourceError, R>>
660    for Error
661where
662    R: Send + Sync + std::fmt::Debug + 'static,
663{
664    fn from(
665        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_partner_event_source::DescribePartnerEventSourceError, R>,
666    ) -> Self {
667        match err {
668            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
669            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
670                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
671                source: err.into(),
672            }),
673        }
674    }
675}
676impl From<crate::operation::describe_partner_event_source::DescribePartnerEventSourceError> for Error {
677    fn from(err: crate::operation::describe_partner_event_source::DescribePartnerEventSourceError) -> Self {
678        match err {
679            crate::operation::describe_partner_event_source::DescribePartnerEventSourceError::InternalException(inner) => {
680                Error::InternalException(inner)
681            }
682            crate::operation::describe_partner_event_source::DescribePartnerEventSourceError::OperationDisabledException(inner) => {
683                Error::OperationDisabledException(inner)
684            }
685            crate::operation::describe_partner_event_source::DescribePartnerEventSourceError::ResourceNotFoundException(inner) => {
686                Error::ResourceNotFoundException(inner)
687            }
688            crate::operation::describe_partner_event_source::DescribePartnerEventSourceError::Unhandled(inner) => Error::Unhandled(inner),
689        }
690    }
691}
692impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_replay::DescribeReplayError, R>> for Error
693where
694    R: Send + Sync + std::fmt::Debug + 'static,
695{
696    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_replay::DescribeReplayError, R>) -> Self {
697        match err {
698            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
699            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
700                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
701                source: err.into(),
702            }),
703        }
704    }
705}
706impl From<crate::operation::describe_replay::DescribeReplayError> for Error {
707    fn from(err: crate::operation::describe_replay::DescribeReplayError) -> Self {
708        match err {
709            crate::operation::describe_replay::DescribeReplayError::InternalException(inner) => Error::InternalException(inner),
710            crate::operation::describe_replay::DescribeReplayError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
711            crate::operation::describe_replay::DescribeReplayError::Unhandled(inner) => Error::Unhandled(inner),
712        }
713    }
714}
715impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule::DescribeRuleError, R>> for Error
716where
717    R: Send + Sync + std::fmt::Debug + 'static,
718{
719    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rule::DescribeRuleError, R>) -> Self {
720        match err {
721            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
722            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
723                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
724                source: err.into(),
725            }),
726        }
727    }
728}
729impl From<crate::operation::describe_rule::DescribeRuleError> for Error {
730    fn from(err: crate::operation::describe_rule::DescribeRuleError) -> Self {
731        match err {
732            crate::operation::describe_rule::DescribeRuleError::InternalException(inner) => Error::InternalException(inner),
733            crate::operation::describe_rule::DescribeRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
734            crate::operation::describe_rule::DescribeRuleError::Unhandled(inner) => Error::Unhandled(inner),
735        }
736    }
737}
738impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_rule::DisableRuleError, R>> for Error
739where
740    R: Send + Sync + std::fmt::Debug + 'static,
741{
742    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_rule::DisableRuleError, R>) -> Self {
743        match err {
744            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
745            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
746                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
747                source: err.into(),
748            }),
749        }
750    }
751}
752impl From<crate::operation::disable_rule::DisableRuleError> for Error {
753    fn from(err: crate::operation::disable_rule::DisableRuleError) -> Self {
754        match err {
755            crate::operation::disable_rule::DisableRuleError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
756            crate::operation::disable_rule::DisableRuleError::InternalException(inner) => Error::InternalException(inner),
757            crate::operation::disable_rule::DisableRuleError::ManagedRuleException(inner) => Error::ManagedRuleException(inner),
758            crate::operation::disable_rule::DisableRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
759            crate::operation::disable_rule::DisableRuleError::Unhandled(inner) => Error::Unhandled(inner),
760        }
761    }
762}
763impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_rule::EnableRuleError, R>> for Error
764where
765    R: Send + Sync + std::fmt::Debug + 'static,
766{
767    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_rule::EnableRuleError, R>) -> Self {
768        match err {
769            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
770            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
771                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
772                source: err.into(),
773            }),
774        }
775    }
776}
777impl From<crate::operation::enable_rule::EnableRuleError> for Error {
778    fn from(err: crate::operation::enable_rule::EnableRuleError) -> Self {
779        match err {
780            crate::operation::enable_rule::EnableRuleError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
781            crate::operation::enable_rule::EnableRuleError::InternalException(inner) => Error::InternalException(inner),
782            crate::operation::enable_rule::EnableRuleError::ManagedRuleException(inner) => Error::ManagedRuleException(inner),
783            crate::operation::enable_rule::EnableRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
784            crate::operation::enable_rule::EnableRuleError::Unhandled(inner) => Error::Unhandled(inner),
785        }
786    }
787}
788impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_api_destinations::ListApiDestinationsError, R>> for Error
789where
790    R: Send + Sync + std::fmt::Debug + 'static,
791{
792    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_api_destinations::ListApiDestinationsError, R>) -> Self {
793        match err {
794            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
795            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
796                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
797                source: err.into(),
798            }),
799        }
800    }
801}
802impl From<crate::operation::list_api_destinations::ListApiDestinationsError> for Error {
803    fn from(err: crate::operation::list_api_destinations::ListApiDestinationsError) -> Self {
804        match err {
805            crate::operation::list_api_destinations::ListApiDestinationsError::InternalException(inner) => Error::InternalException(inner),
806            crate::operation::list_api_destinations::ListApiDestinationsError::Unhandled(inner) => Error::Unhandled(inner),
807        }
808    }
809}
810impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_archives::ListArchivesError, R>> for Error
811where
812    R: Send + Sync + std::fmt::Debug + 'static,
813{
814    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_archives::ListArchivesError, R>) -> Self {
815        match err {
816            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
817            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
818                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
819                source: err.into(),
820            }),
821        }
822    }
823}
824impl From<crate::operation::list_archives::ListArchivesError> for Error {
825    fn from(err: crate::operation::list_archives::ListArchivesError) -> Self {
826        match err {
827            crate::operation::list_archives::ListArchivesError::InternalException(inner) => Error::InternalException(inner),
828            crate::operation::list_archives::ListArchivesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
829            crate::operation::list_archives::ListArchivesError::Unhandled(inner) => Error::Unhandled(inner),
830        }
831    }
832}
833impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connections::ListConnectionsError, R>> for Error
834where
835    R: Send + Sync + std::fmt::Debug + 'static,
836{
837    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connections::ListConnectionsError, R>) -> Self {
838        match err {
839            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
840            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
841                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
842                source: err.into(),
843            }),
844        }
845    }
846}
847impl From<crate::operation::list_connections::ListConnectionsError> for Error {
848    fn from(err: crate::operation::list_connections::ListConnectionsError) -> Self {
849        match err {
850            crate::operation::list_connections::ListConnectionsError::InternalException(inner) => Error::InternalException(inner),
851            crate::operation::list_connections::ListConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
852        }
853    }
854}
855impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_event_buses::ListEventBusesError, R>> for Error
856where
857    R: Send + Sync + std::fmt::Debug + 'static,
858{
859    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_event_buses::ListEventBusesError, R>) -> Self {
860        match err {
861            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
862            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
863                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
864                source: err.into(),
865            }),
866        }
867    }
868}
869impl From<crate::operation::list_event_buses::ListEventBusesError> for Error {
870    fn from(err: crate::operation::list_event_buses::ListEventBusesError) -> Self {
871        match err {
872            crate::operation::list_event_buses::ListEventBusesError::InternalException(inner) => Error::InternalException(inner),
873            crate::operation::list_event_buses::ListEventBusesError::Unhandled(inner) => Error::Unhandled(inner),
874        }
875    }
876}
877impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_event_sources::ListEventSourcesError, R>> for Error
878where
879    R: Send + Sync + std::fmt::Debug + 'static,
880{
881    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_event_sources::ListEventSourcesError, R>) -> Self {
882        match err {
883            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
884            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
885                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
886                source: err.into(),
887            }),
888        }
889    }
890}
891impl From<crate::operation::list_event_sources::ListEventSourcesError> for Error {
892    fn from(err: crate::operation::list_event_sources::ListEventSourcesError) -> Self {
893        match err {
894            crate::operation::list_event_sources::ListEventSourcesError::InternalException(inner) => Error::InternalException(inner),
895            crate::operation::list_event_sources::ListEventSourcesError::OperationDisabledException(inner) => {
896                Error::OperationDisabledException(inner)
897            }
898            crate::operation::list_event_sources::ListEventSourcesError::Unhandled(inner) => Error::Unhandled(inner),
899        }
900    }
901}
902impl<R>
903    From<
904        ::aws_smithy_runtime_api::client::result::SdkError<
905            crate::operation::list_partner_event_source_accounts::ListPartnerEventSourceAccountsError,
906            R,
907        >,
908    > for Error
909where
910    R: Send + Sync + std::fmt::Debug + 'static,
911{
912    fn from(
913        err: ::aws_smithy_runtime_api::client::result::SdkError<
914            crate::operation::list_partner_event_source_accounts::ListPartnerEventSourceAccountsError,
915            R,
916        >,
917    ) -> Self {
918        match err {
919            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
920            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
921                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
922                source: err.into(),
923            }),
924        }
925    }
926}
927impl From<crate::operation::list_partner_event_source_accounts::ListPartnerEventSourceAccountsError> for Error {
928    fn from(err: crate::operation::list_partner_event_source_accounts::ListPartnerEventSourceAccountsError) -> Self {
929        match err {
930            crate::operation::list_partner_event_source_accounts::ListPartnerEventSourceAccountsError::InternalException(inner) => {
931                Error::InternalException(inner)
932            }
933            crate::operation::list_partner_event_source_accounts::ListPartnerEventSourceAccountsError::OperationDisabledException(inner) => {
934                Error::OperationDisabledException(inner)
935            }
936            crate::operation::list_partner_event_source_accounts::ListPartnerEventSourceAccountsError::ResourceNotFoundException(inner) => {
937                Error::ResourceNotFoundException(inner)
938            }
939            crate::operation::list_partner_event_source_accounts::ListPartnerEventSourceAccountsError::Unhandled(inner) => Error::Unhandled(inner),
940        }
941    }
942}
943impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_partner_event_sources::ListPartnerEventSourcesError, R>>
944    for Error
945where
946    R: Send + Sync + std::fmt::Debug + 'static,
947{
948    fn from(
949        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_partner_event_sources::ListPartnerEventSourcesError, R>,
950    ) -> Self {
951        match err {
952            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
953            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
954                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
955                source: err.into(),
956            }),
957        }
958    }
959}
960impl From<crate::operation::list_partner_event_sources::ListPartnerEventSourcesError> for Error {
961    fn from(err: crate::operation::list_partner_event_sources::ListPartnerEventSourcesError) -> Self {
962        match err {
963            crate::operation::list_partner_event_sources::ListPartnerEventSourcesError::InternalException(inner) => Error::InternalException(inner),
964            crate::operation::list_partner_event_sources::ListPartnerEventSourcesError::OperationDisabledException(inner) => {
965                Error::OperationDisabledException(inner)
966            }
967            crate::operation::list_partner_event_sources::ListPartnerEventSourcesError::Unhandled(inner) => Error::Unhandled(inner),
968        }
969    }
970}
971impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_replays::ListReplaysError, R>> for Error
972where
973    R: Send + Sync + std::fmt::Debug + 'static,
974{
975    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_replays::ListReplaysError, R>) -> Self {
976        match err {
977            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
978            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
979                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
980                source: err.into(),
981            }),
982        }
983    }
984}
985impl From<crate::operation::list_replays::ListReplaysError> for Error {
986    fn from(err: crate::operation::list_replays::ListReplaysError) -> Self {
987        match err {
988            crate::operation::list_replays::ListReplaysError::InternalException(inner) => Error::InternalException(inner),
989            crate::operation::list_replays::ListReplaysError::Unhandled(inner) => Error::Unhandled(inner),
990        }
991    }
992}
993impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_names_by_target::ListRuleNamesByTargetError, R>> for Error
994where
995    R: Send + Sync + std::fmt::Debug + 'static,
996{
997    fn from(
998        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rule_names_by_target::ListRuleNamesByTargetError, R>,
999    ) -> Self {
1000        match err {
1001            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1002            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1003                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1004                source: err.into(),
1005            }),
1006        }
1007    }
1008}
1009impl From<crate::operation::list_rule_names_by_target::ListRuleNamesByTargetError> for Error {
1010    fn from(err: crate::operation::list_rule_names_by_target::ListRuleNamesByTargetError) -> Self {
1011        match err {
1012            crate::operation::list_rule_names_by_target::ListRuleNamesByTargetError::InternalException(inner) => Error::InternalException(inner),
1013            crate::operation::list_rule_names_by_target::ListRuleNamesByTargetError::ResourceNotFoundException(inner) => {
1014                Error::ResourceNotFoundException(inner)
1015            }
1016            crate::operation::list_rule_names_by_target::ListRuleNamesByTargetError::Unhandled(inner) => Error::Unhandled(inner),
1017        }
1018    }
1019}
1020impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rules::ListRulesError, R>> for Error
1021where
1022    R: Send + Sync + std::fmt::Debug + 'static,
1023{
1024    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rules::ListRulesError, R>) -> Self {
1025        match err {
1026            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1027            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1028                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1029                source: err.into(),
1030            }),
1031        }
1032    }
1033}
1034impl From<crate::operation::list_rules::ListRulesError> for Error {
1035    fn from(err: crate::operation::list_rules::ListRulesError) -> Self {
1036        match err {
1037            crate::operation::list_rules::ListRulesError::InternalException(inner) => Error::InternalException(inner),
1038            crate::operation::list_rules::ListRulesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1039            crate::operation::list_rules::ListRulesError::Unhandled(inner) => Error::Unhandled(inner),
1040        }
1041    }
1042}
1043impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1044where
1045    R: Send + Sync + std::fmt::Debug + 'static,
1046{
1047    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1048        match err {
1049            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1050            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1051                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1052                source: err.into(),
1053            }),
1054        }
1055    }
1056}
1057impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1058    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1059        match err {
1060            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalException(inner) => Error::InternalException(inner),
1061            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1062                Error::ResourceNotFoundException(inner)
1063            }
1064            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1065        }
1066    }
1067}
1068impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_targets_by_rule::ListTargetsByRuleError, R>> for Error
1069where
1070    R: Send + Sync + std::fmt::Debug + 'static,
1071{
1072    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_targets_by_rule::ListTargetsByRuleError, R>) -> Self {
1073        match err {
1074            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1075            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1076                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1077                source: err.into(),
1078            }),
1079        }
1080    }
1081}
1082impl From<crate::operation::list_targets_by_rule::ListTargetsByRuleError> for Error {
1083    fn from(err: crate::operation::list_targets_by_rule::ListTargetsByRuleError) -> Self {
1084        match err {
1085            crate::operation::list_targets_by_rule::ListTargetsByRuleError::InternalException(inner) => Error::InternalException(inner),
1086            crate::operation::list_targets_by_rule::ListTargetsByRuleError::ResourceNotFoundException(inner) => {
1087                Error::ResourceNotFoundException(inner)
1088            }
1089            crate::operation::list_targets_by_rule::ListTargetsByRuleError::Unhandled(inner) => Error::Unhandled(inner),
1090        }
1091    }
1092}
1093impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_events::PutEventsError, R>> for Error
1094where
1095    R: Send + Sync + std::fmt::Debug + 'static,
1096{
1097    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_events::PutEventsError, R>) -> Self {
1098        match err {
1099            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1100            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1101                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1102                source: err.into(),
1103            }),
1104        }
1105    }
1106}
1107impl From<crate::operation::put_events::PutEventsError> for Error {
1108    fn from(err: crate::operation::put_events::PutEventsError) -> Self {
1109        match err {
1110            crate::operation::put_events::PutEventsError::InternalException(inner) => Error::InternalException(inner),
1111            crate::operation::put_events::PutEventsError::Unhandled(inner) => Error::Unhandled(inner),
1112        }
1113    }
1114}
1115impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_partner_events::PutPartnerEventsError, R>> for Error
1116where
1117    R: Send + Sync + std::fmt::Debug + 'static,
1118{
1119    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_partner_events::PutPartnerEventsError, R>) -> Self {
1120        match err {
1121            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1122            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1123                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1124                source: err.into(),
1125            }),
1126        }
1127    }
1128}
1129impl From<crate::operation::put_partner_events::PutPartnerEventsError> for Error {
1130    fn from(err: crate::operation::put_partner_events::PutPartnerEventsError) -> Self {
1131        match err {
1132            crate::operation::put_partner_events::PutPartnerEventsError::InternalException(inner) => Error::InternalException(inner),
1133            crate::operation::put_partner_events::PutPartnerEventsError::OperationDisabledException(inner) => {
1134                Error::OperationDisabledException(inner)
1135            }
1136            crate::operation::put_partner_events::PutPartnerEventsError::Unhandled(inner) => Error::Unhandled(inner),
1137        }
1138    }
1139}
1140impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_permission::PutPermissionError, R>> for Error
1141where
1142    R: Send + Sync + std::fmt::Debug + 'static,
1143{
1144    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_permission::PutPermissionError, R>) -> Self {
1145        match err {
1146            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1147            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1148                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1149                source: err.into(),
1150            }),
1151        }
1152    }
1153}
1154impl From<crate::operation::put_permission::PutPermissionError> for Error {
1155    fn from(err: crate::operation::put_permission::PutPermissionError) -> Self {
1156        match err {
1157            crate::operation::put_permission::PutPermissionError::ConcurrentModificationException(inner) => {
1158                Error::ConcurrentModificationException(inner)
1159            }
1160            crate::operation::put_permission::PutPermissionError::InternalException(inner) => Error::InternalException(inner),
1161            crate::operation::put_permission::PutPermissionError::OperationDisabledException(inner) => Error::OperationDisabledException(inner),
1162            crate::operation::put_permission::PutPermissionError::PolicyLengthExceededException(inner) => Error::PolicyLengthExceededException(inner),
1163            crate::operation::put_permission::PutPermissionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1164            crate::operation::put_permission::PutPermissionError::Unhandled(inner) => Error::Unhandled(inner),
1165        }
1166    }
1167}
1168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_rule::PutRuleError, R>> for Error
1169where
1170    R: Send + Sync + std::fmt::Debug + 'static,
1171{
1172    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_rule::PutRuleError, R>) -> Self {
1173        match err {
1174            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1175            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1176                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1177                source: err.into(),
1178            }),
1179        }
1180    }
1181}
1182impl From<crate::operation::put_rule::PutRuleError> for Error {
1183    fn from(err: crate::operation::put_rule::PutRuleError) -> Self {
1184        match err {
1185            crate::operation::put_rule::PutRuleError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1186            crate::operation::put_rule::PutRuleError::InternalException(inner) => Error::InternalException(inner),
1187            crate::operation::put_rule::PutRuleError::InvalidEventPatternException(inner) => Error::InvalidEventPatternException(inner),
1188            crate::operation::put_rule::PutRuleError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1189            crate::operation::put_rule::PutRuleError::ManagedRuleException(inner) => Error::ManagedRuleException(inner),
1190            crate::operation::put_rule::PutRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1191            crate::operation::put_rule::PutRuleError::Unhandled(inner) => Error::Unhandled(inner),
1192        }
1193    }
1194}
1195impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_targets::PutTargetsError, R>> for Error
1196where
1197    R: Send + Sync + std::fmt::Debug + 'static,
1198{
1199    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_targets::PutTargetsError, R>) -> Self {
1200        match err {
1201            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1202            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1203                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1204                source: err.into(),
1205            }),
1206        }
1207    }
1208}
1209impl From<crate::operation::put_targets::PutTargetsError> for Error {
1210    fn from(err: crate::operation::put_targets::PutTargetsError) -> Self {
1211        match err {
1212            crate::operation::put_targets::PutTargetsError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1213            crate::operation::put_targets::PutTargetsError::InternalException(inner) => Error::InternalException(inner),
1214            crate::operation::put_targets::PutTargetsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1215            crate::operation::put_targets::PutTargetsError::ManagedRuleException(inner) => Error::ManagedRuleException(inner),
1216            crate::operation::put_targets::PutTargetsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1217            crate::operation::put_targets::PutTargetsError::Unhandled(inner) => Error::Unhandled(inner),
1218        }
1219    }
1220}
1221impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_permission::RemovePermissionError, R>> for Error
1222where
1223    R: Send + Sync + std::fmt::Debug + 'static,
1224{
1225    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_permission::RemovePermissionError, R>) -> Self {
1226        match err {
1227            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1228            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1229                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1230                source: err.into(),
1231            }),
1232        }
1233    }
1234}
1235impl From<crate::operation::remove_permission::RemovePermissionError> for Error {
1236    fn from(err: crate::operation::remove_permission::RemovePermissionError) -> Self {
1237        match err {
1238            crate::operation::remove_permission::RemovePermissionError::ConcurrentModificationException(inner) => {
1239                Error::ConcurrentModificationException(inner)
1240            }
1241            crate::operation::remove_permission::RemovePermissionError::InternalException(inner) => Error::InternalException(inner),
1242            crate::operation::remove_permission::RemovePermissionError::OperationDisabledException(inner) => Error::OperationDisabledException(inner),
1243            crate::operation::remove_permission::RemovePermissionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1244            crate::operation::remove_permission::RemovePermissionError::Unhandled(inner) => Error::Unhandled(inner),
1245        }
1246    }
1247}
1248impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_targets::RemoveTargetsError, R>> for Error
1249where
1250    R: Send + Sync + std::fmt::Debug + 'static,
1251{
1252    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_targets::RemoveTargetsError, R>) -> Self {
1253        match err {
1254            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1255            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1256                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1257                source: err.into(),
1258            }),
1259        }
1260    }
1261}
1262impl From<crate::operation::remove_targets::RemoveTargetsError> for Error {
1263    fn from(err: crate::operation::remove_targets::RemoveTargetsError) -> Self {
1264        match err {
1265            crate::operation::remove_targets::RemoveTargetsError::ConcurrentModificationException(inner) => {
1266                Error::ConcurrentModificationException(inner)
1267            }
1268            crate::operation::remove_targets::RemoveTargetsError::InternalException(inner) => Error::InternalException(inner),
1269            crate::operation::remove_targets::RemoveTargetsError::ManagedRuleException(inner) => Error::ManagedRuleException(inner),
1270            crate::operation::remove_targets::RemoveTargetsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1271            crate::operation::remove_targets::RemoveTargetsError::Unhandled(inner) => Error::Unhandled(inner),
1272        }
1273    }
1274}
1275impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_replay::StartReplayError, R>> for Error
1276where
1277    R: Send + Sync + std::fmt::Debug + 'static,
1278{
1279    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_replay::StartReplayError, R>) -> Self {
1280        match err {
1281            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1282            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1283                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1284                source: err.into(),
1285            }),
1286        }
1287    }
1288}
1289impl From<crate::operation::start_replay::StartReplayError> for Error {
1290    fn from(err: crate::operation::start_replay::StartReplayError) -> Self {
1291        match err {
1292            crate::operation::start_replay::StartReplayError::InternalException(inner) => Error::InternalException(inner),
1293            crate::operation::start_replay::StartReplayError::InvalidEventPatternException(inner) => Error::InvalidEventPatternException(inner),
1294            crate::operation::start_replay::StartReplayError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1295            crate::operation::start_replay::StartReplayError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
1296            crate::operation::start_replay::StartReplayError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1297            crate::operation::start_replay::StartReplayError::Unhandled(inner) => Error::Unhandled(inner),
1298        }
1299    }
1300}
1301impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1302where
1303    R: Send + Sync + std::fmt::Debug + 'static,
1304{
1305    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1306        match err {
1307            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1308            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1309                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1310                source: err.into(),
1311            }),
1312        }
1313    }
1314}
1315impl From<crate::operation::tag_resource::TagResourceError> for Error {
1316    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1317        match err {
1318            crate::operation::tag_resource::TagResourceError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1319            crate::operation::tag_resource::TagResourceError::InternalException(inner) => Error::InternalException(inner),
1320            crate::operation::tag_resource::TagResourceError::ManagedRuleException(inner) => Error::ManagedRuleException(inner),
1321            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1322            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1323        }
1324    }
1325}
1326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_event_pattern::TestEventPatternError, R>> for Error
1327where
1328    R: Send + Sync + std::fmt::Debug + 'static,
1329{
1330    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_event_pattern::TestEventPatternError, R>) -> Self {
1331        match err {
1332            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1333            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1334                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1335                source: err.into(),
1336            }),
1337        }
1338    }
1339}
1340impl From<crate::operation::test_event_pattern::TestEventPatternError> for Error {
1341    fn from(err: crate::operation::test_event_pattern::TestEventPatternError) -> Self {
1342        match err {
1343            crate::operation::test_event_pattern::TestEventPatternError::InternalException(inner) => Error::InternalException(inner),
1344            crate::operation::test_event_pattern::TestEventPatternError::InvalidEventPatternException(inner) => {
1345                Error::InvalidEventPatternException(inner)
1346            }
1347            crate::operation::test_event_pattern::TestEventPatternError::Unhandled(inner) => Error::Unhandled(inner),
1348        }
1349    }
1350}
1351impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1352where
1353    R: Send + Sync + std::fmt::Debug + 'static,
1354{
1355    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1356        match err {
1357            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1358            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1359                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1360                source: err.into(),
1361            }),
1362        }
1363    }
1364}
1365impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1366    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1367        match err {
1368            crate::operation::untag_resource::UntagResourceError::ConcurrentModificationException(inner) => {
1369                Error::ConcurrentModificationException(inner)
1370            }
1371            crate::operation::untag_resource::UntagResourceError::InternalException(inner) => Error::InternalException(inner),
1372            crate::operation::untag_resource::UntagResourceError::ManagedRuleException(inner) => Error::ManagedRuleException(inner),
1373            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1374            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1375        }
1376    }
1377}
1378impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_api_destination::UpdateApiDestinationError, R>> for Error
1379where
1380    R: Send + Sync + std::fmt::Debug + 'static,
1381{
1382    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_api_destination::UpdateApiDestinationError, R>) -> Self {
1383        match err {
1384            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1385            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1386                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1387                source: err.into(),
1388            }),
1389        }
1390    }
1391}
1392impl From<crate::operation::update_api_destination::UpdateApiDestinationError> for Error {
1393    fn from(err: crate::operation::update_api_destination::UpdateApiDestinationError) -> Self {
1394        match err {
1395            crate::operation::update_api_destination::UpdateApiDestinationError::ConcurrentModificationException(inner) => {
1396                Error::ConcurrentModificationException(inner)
1397            }
1398            crate::operation::update_api_destination::UpdateApiDestinationError::InternalException(inner) => Error::InternalException(inner),
1399            crate::operation::update_api_destination::UpdateApiDestinationError::LimitExceededException(inner) => {
1400                Error::LimitExceededException(inner)
1401            }
1402            crate::operation::update_api_destination::UpdateApiDestinationError::ResourceNotFoundException(inner) => {
1403                Error::ResourceNotFoundException(inner)
1404            }
1405            crate::operation::update_api_destination::UpdateApiDestinationError::Unhandled(inner) => Error::Unhandled(inner),
1406        }
1407    }
1408}
1409impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_archive::UpdateArchiveError, R>> for Error
1410where
1411    R: Send + Sync + std::fmt::Debug + 'static,
1412{
1413    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_archive::UpdateArchiveError, R>) -> Self {
1414        match err {
1415            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1416            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1417                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1418                source: err.into(),
1419            }),
1420        }
1421    }
1422}
1423impl From<crate::operation::update_archive::UpdateArchiveError> for Error {
1424    fn from(err: crate::operation::update_archive::UpdateArchiveError) -> Self {
1425        match err {
1426            crate::operation::update_archive::UpdateArchiveError::ConcurrentModificationException(inner) => {
1427                Error::ConcurrentModificationException(inner)
1428            }
1429            crate::operation::update_archive::UpdateArchiveError::InternalException(inner) => Error::InternalException(inner),
1430            crate::operation::update_archive::UpdateArchiveError::InvalidEventPatternException(inner) => Error::InvalidEventPatternException(inner),
1431            crate::operation::update_archive::UpdateArchiveError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1432            crate::operation::update_archive::UpdateArchiveError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1433            crate::operation::update_archive::UpdateArchiveError::Unhandled(inner) => Error::Unhandled(inner),
1434        }
1435    }
1436}
1437impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connection::UpdateConnectionError, R>> for Error
1438where
1439    R: Send + Sync + std::fmt::Debug + 'static,
1440{
1441    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connection::UpdateConnectionError, R>) -> Self {
1442        match err {
1443            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1444            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1445                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1446                source: err.into(),
1447            }),
1448        }
1449    }
1450}
1451impl From<crate::operation::update_connection::UpdateConnectionError> for Error {
1452    fn from(err: crate::operation::update_connection::UpdateConnectionError) -> Self {
1453        match err {
1454            crate::operation::update_connection::UpdateConnectionError::ConcurrentModificationException(inner) => {
1455                Error::ConcurrentModificationException(inner)
1456            }
1457            crate::operation::update_connection::UpdateConnectionError::InternalException(inner) => Error::InternalException(inner),
1458            crate::operation::update_connection::UpdateConnectionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1459            crate::operation::update_connection::UpdateConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1460            crate::operation::update_connection::UpdateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
1461        }
1462    }
1463}
1464impl ::std::error::Error for Error {
1465    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1466        match self {
1467            Error::ConcurrentModificationException(inner) => inner.source(),
1468            Error::IllegalStatusException(inner) => inner.source(),
1469            Error::InternalException(inner) => inner.source(),
1470            Error::InvalidEventPatternException(inner) => inner.source(),
1471            Error::InvalidStateException(inner) => inner.source(),
1472            Error::LimitExceededException(inner) => inner.source(),
1473            Error::ManagedRuleException(inner) => inner.source(),
1474            Error::OperationDisabledException(inner) => inner.source(),
1475            Error::PolicyLengthExceededException(inner) => inner.source(),
1476            Error::ResourceAlreadyExistsException(inner) => inner.source(),
1477            Error::ResourceNotFoundException(inner) => inner.source(),
1478            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1479        }
1480    }
1481}
1482impl ::aws_types::request_id::RequestId for Error {
1483    fn request_id(&self) -> Option<&str> {
1484        match self {
1485            Self::ConcurrentModificationException(e) => e.request_id(),
1486            Self::IllegalStatusException(e) => e.request_id(),
1487            Self::InternalException(e) => e.request_id(),
1488            Self::InvalidEventPatternException(e) => e.request_id(),
1489            Self::InvalidStateException(e) => e.request_id(),
1490            Self::LimitExceededException(e) => e.request_id(),
1491            Self::ManagedRuleException(e) => e.request_id(),
1492            Self::OperationDisabledException(e) => e.request_id(),
1493            Self::PolicyLengthExceededException(e) => e.request_id(),
1494            Self::ResourceAlreadyExistsException(e) => e.request_id(),
1495            Self::ResourceNotFoundException(e) => e.request_id(),
1496            Self::Unhandled(e) => e.meta.request_id(),
1497        }
1498    }
1499}