Skip to main content

aws_sdk_pinpointsmsvoicev2/
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>The request was denied because you don't have sufficient permissions to access the resource.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time or it could be that the requested action isn't valid for the current state or configuration of the resource.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>A requested resource couldn't be found.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The request would cause a service quota to be exceeded.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>An error that occurred because too many requests were sent during a certain amount of time.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>A validation exception for a field.</p>
19    ValidationException(crate::types::error::ValidationException),
20    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
21    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22    variable wildcard pattern and check `.code()`:
23     \
24    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25     \
26    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27    Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31        match self {
32            Error::AccessDeniedException(inner) => inner.fmt(f),
33            Error::ConflictException(inner) => inner.fmt(f),
34            Error::InternalServerException(inner) => inner.fmt(f),
35            Error::ResourceNotFoundException(inner) => inner.fmt(f),
36            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37            Error::ThrottlingException(inner) => inner.fmt(f),
38            Error::ValidationException(inner) => inner.fmt(f),
39            Error::Unhandled(_) => {
40                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41                    write!(f, "unhandled error ({code})")
42                } else {
43                    f.write_str("unhandled error")
44                }
45            }
46        }
47    }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52            source: value.into(),
53            meta: ::std::default::Default::default(),
54        })
55    }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59        match self {
60            Self::AccessDeniedException(inner) => inner.meta(),
61            Self::ConflictException(inner) => inner.meta(),
62            Self::InternalServerException(inner) => inner.meta(),
63            Self::ResourceNotFoundException(inner) => inner.meta(),
64            Self::ServiceQuotaExceededException(inner) => inner.meta(),
65            Self::ThrottlingException(inner) => inner.meta(),
66            Self::ValidationException(inner) => inner.meta(),
67            Self::Unhandled(inner) => &inner.meta,
68        }
69    }
70}
71impl<R>
72    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_origination_identity::AssociateOriginationIdentityError, R>>
73    for Error
74where
75    R: Send + Sync + std::fmt::Debug + 'static,
76{
77    fn from(
78        err: ::aws_smithy_runtime_api::client::result::SdkError<
79            crate::operation::associate_origination_identity::AssociateOriginationIdentityError,
80            R,
81        >,
82    ) -> Self {
83        match err {
84            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
85            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
86                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
87                source: err.into(),
88            }),
89        }
90    }
91}
92impl From<crate::operation::associate_origination_identity::AssociateOriginationIdentityError> for Error {
93    fn from(err: crate::operation::associate_origination_identity::AssociateOriginationIdentityError) -> Self {
94        match err {
95            crate::operation::associate_origination_identity::AssociateOriginationIdentityError::AccessDeniedException(inner) => {
96                Error::AccessDeniedException(inner)
97            }
98            crate::operation::associate_origination_identity::AssociateOriginationIdentityError::ConflictException(inner) => {
99                Error::ConflictException(inner)
100            }
101            crate::operation::associate_origination_identity::AssociateOriginationIdentityError::InternalServerException(inner) => {
102                Error::InternalServerException(inner)
103            }
104            crate::operation::associate_origination_identity::AssociateOriginationIdentityError::ResourceNotFoundException(inner) => {
105                Error::ResourceNotFoundException(inner)
106            }
107            crate::operation::associate_origination_identity::AssociateOriginationIdentityError::ServiceQuotaExceededException(inner) => {
108                Error::ServiceQuotaExceededException(inner)
109            }
110            crate::operation::associate_origination_identity::AssociateOriginationIdentityError::ThrottlingException(inner) => {
111                Error::ThrottlingException(inner)
112            }
113            crate::operation::associate_origination_identity::AssociateOriginationIdentityError::ValidationException(inner) => {
114                Error::ValidationException(inner)
115            }
116            crate::operation::associate_origination_identity::AssociateOriginationIdentityError::Unhandled(inner) => Error::Unhandled(inner),
117        }
118    }
119}
120impl<R>
121    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_protect_configuration::AssociateProtectConfigurationError, R>>
122    for Error
123where
124    R: Send + Sync + std::fmt::Debug + 'static,
125{
126    fn from(
127        err: ::aws_smithy_runtime_api::client::result::SdkError<
128            crate::operation::associate_protect_configuration::AssociateProtectConfigurationError,
129            R,
130        >,
131    ) -> Self {
132        match err {
133            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
134            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
135                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
136                source: err.into(),
137            }),
138        }
139    }
140}
141impl From<crate::operation::associate_protect_configuration::AssociateProtectConfigurationError> for Error {
142    fn from(err: crate::operation::associate_protect_configuration::AssociateProtectConfigurationError) -> Self {
143        match err {
144            crate::operation::associate_protect_configuration::AssociateProtectConfigurationError::AccessDeniedException(inner) => {
145                Error::AccessDeniedException(inner)
146            }
147            crate::operation::associate_protect_configuration::AssociateProtectConfigurationError::ConflictException(inner) => {
148                Error::ConflictException(inner)
149            }
150            crate::operation::associate_protect_configuration::AssociateProtectConfigurationError::InternalServerException(inner) => {
151                Error::InternalServerException(inner)
152            }
153            crate::operation::associate_protect_configuration::AssociateProtectConfigurationError::ResourceNotFoundException(inner) => {
154                Error::ResourceNotFoundException(inner)
155            }
156            crate::operation::associate_protect_configuration::AssociateProtectConfigurationError::ThrottlingException(inner) => {
157                Error::ThrottlingException(inner)
158            }
159            crate::operation::associate_protect_configuration::AssociateProtectConfigurationError::ValidationException(inner) => {
160                Error::ValidationException(inner)
161            }
162            crate::operation::associate_protect_configuration::AssociateProtectConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
163        }
164    }
165}
166impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::carrier_lookup::CarrierLookupError, R>> for Error
167where
168    R: Send + Sync + std::fmt::Debug + 'static,
169{
170    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::carrier_lookup::CarrierLookupError, R>) -> Self {
171        match err {
172            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
173            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
174                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
175                source: err.into(),
176            }),
177        }
178    }
179}
180impl From<crate::operation::carrier_lookup::CarrierLookupError> for Error {
181    fn from(err: crate::operation::carrier_lookup::CarrierLookupError) -> Self {
182        match err {
183            crate::operation::carrier_lookup::CarrierLookupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
184            crate::operation::carrier_lookup::CarrierLookupError::InternalServerException(inner) => Error::InternalServerException(inner),
185            crate::operation::carrier_lookup::CarrierLookupError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
186            crate::operation::carrier_lookup::CarrierLookupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
187            crate::operation::carrier_lookup::CarrierLookupError::ValidationException(inner) => Error::ValidationException(inner),
188            crate::operation::carrier_lookup::CarrierLookupError::Unhandled(inner) => Error::Unhandled(inner),
189        }
190    }
191}
192impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_configuration_set::CreateConfigurationSetError, R>> for Error
193where
194    R: Send + Sync + std::fmt::Debug + 'static,
195{
196    fn from(
197        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_configuration_set::CreateConfigurationSetError, R>,
198    ) -> Self {
199        match err {
200            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
201            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
202                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
203                source: err.into(),
204            }),
205        }
206    }
207}
208impl From<crate::operation::create_configuration_set::CreateConfigurationSetError> for Error {
209    fn from(err: crate::operation::create_configuration_set::CreateConfigurationSetError) -> Self {
210        match err {
211            crate::operation::create_configuration_set::CreateConfigurationSetError::AccessDeniedException(inner) => {
212                Error::AccessDeniedException(inner)
213            }
214            crate::operation::create_configuration_set::CreateConfigurationSetError::ConflictException(inner) => Error::ConflictException(inner),
215            crate::operation::create_configuration_set::CreateConfigurationSetError::InternalServerException(inner) => {
216                Error::InternalServerException(inner)
217            }
218            crate::operation::create_configuration_set::CreateConfigurationSetError::ServiceQuotaExceededException(inner) => {
219                Error::ServiceQuotaExceededException(inner)
220            }
221            crate::operation::create_configuration_set::CreateConfigurationSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
222            crate::operation::create_configuration_set::CreateConfigurationSetError::ValidationException(inner) => Error::ValidationException(inner),
223            crate::operation::create_configuration_set::CreateConfigurationSetError::Unhandled(inner) => Error::Unhandled(inner),
224        }
225    }
226}
227impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_destination::CreateEventDestinationError, R>> for Error
228where
229    R: Send + Sync + std::fmt::Debug + 'static,
230{
231    fn from(
232        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_destination::CreateEventDestinationError, R>,
233    ) -> Self {
234        match err {
235            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
236            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
237                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
238                source: err.into(),
239            }),
240        }
241    }
242}
243impl From<crate::operation::create_event_destination::CreateEventDestinationError> for Error {
244    fn from(err: crate::operation::create_event_destination::CreateEventDestinationError) -> Self {
245        match err {
246            crate::operation::create_event_destination::CreateEventDestinationError::AccessDeniedException(inner) => {
247                Error::AccessDeniedException(inner)
248            }
249            crate::operation::create_event_destination::CreateEventDestinationError::ConflictException(inner) => Error::ConflictException(inner),
250            crate::operation::create_event_destination::CreateEventDestinationError::InternalServerException(inner) => {
251                Error::InternalServerException(inner)
252            }
253            crate::operation::create_event_destination::CreateEventDestinationError::ResourceNotFoundException(inner) => {
254                Error::ResourceNotFoundException(inner)
255            }
256            crate::operation::create_event_destination::CreateEventDestinationError::ServiceQuotaExceededException(inner) => {
257                Error::ServiceQuotaExceededException(inner)
258            }
259            crate::operation::create_event_destination::CreateEventDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
260            crate::operation::create_event_destination::CreateEventDestinationError::ValidationException(inner) => Error::ValidationException(inner),
261            crate::operation::create_event_destination::CreateEventDestinationError::Unhandled(inner) => Error::Unhandled(inner),
262        }
263    }
264}
265impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notify_configuration::CreateNotifyConfigurationError, R>>
266    for Error
267where
268    R: Send + Sync + std::fmt::Debug + 'static,
269{
270    fn from(
271        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notify_configuration::CreateNotifyConfigurationError, R>,
272    ) -> Self {
273        match err {
274            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
275            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
276                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
277                source: err.into(),
278            }),
279        }
280    }
281}
282impl From<crate::operation::create_notify_configuration::CreateNotifyConfigurationError> for Error {
283    fn from(err: crate::operation::create_notify_configuration::CreateNotifyConfigurationError) -> Self {
284        match err {
285            crate::operation::create_notify_configuration::CreateNotifyConfigurationError::AccessDeniedException(inner) => {
286                Error::AccessDeniedException(inner)
287            }
288            crate::operation::create_notify_configuration::CreateNotifyConfigurationError::ConflictException(inner) => {
289                Error::ConflictException(inner)
290            }
291            crate::operation::create_notify_configuration::CreateNotifyConfigurationError::InternalServerException(inner) => {
292                Error::InternalServerException(inner)
293            }
294            crate::operation::create_notify_configuration::CreateNotifyConfigurationError::ResourceNotFoundException(inner) => {
295                Error::ResourceNotFoundException(inner)
296            }
297            crate::operation::create_notify_configuration::CreateNotifyConfigurationError::ServiceQuotaExceededException(inner) => {
298                Error::ServiceQuotaExceededException(inner)
299            }
300            crate::operation::create_notify_configuration::CreateNotifyConfigurationError::ThrottlingException(inner) => {
301                Error::ThrottlingException(inner)
302            }
303            crate::operation::create_notify_configuration::CreateNotifyConfigurationError::ValidationException(inner) => {
304                Error::ValidationException(inner)
305            }
306            crate::operation::create_notify_configuration::CreateNotifyConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
307        }
308    }
309}
310impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_opt_out_list::CreateOptOutListError, R>> for Error
311where
312    R: Send + Sync + std::fmt::Debug + 'static,
313{
314    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_opt_out_list::CreateOptOutListError, R>) -> Self {
315        match err {
316            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
317            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
318                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
319                source: err.into(),
320            }),
321        }
322    }
323}
324impl From<crate::operation::create_opt_out_list::CreateOptOutListError> for Error {
325    fn from(err: crate::operation::create_opt_out_list::CreateOptOutListError) -> Self {
326        match err {
327            crate::operation::create_opt_out_list::CreateOptOutListError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
328            crate::operation::create_opt_out_list::CreateOptOutListError::ConflictException(inner) => Error::ConflictException(inner),
329            crate::operation::create_opt_out_list::CreateOptOutListError::InternalServerException(inner) => Error::InternalServerException(inner),
330            crate::operation::create_opt_out_list::CreateOptOutListError::ServiceQuotaExceededException(inner) => {
331                Error::ServiceQuotaExceededException(inner)
332            }
333            crate::operation::create_opt_out_list::CreateOptOutListError::ThrottlingException(inner) => Error::ThrottlingException(inner),
334            crate::operation::create_opt_out_list::CreateOptOutListError::ValidationException(inner) => Error::ValidationException(inner),
335            crate::operation::create_opt_out_list::CreateOptOutListError::Unhandled(inner) => Error::Unhandled(inner),
336        }
337    }
338}
339impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pool::CreatePoolError, R>> for Error
340where
341    R: Send + Sync + std::fmt::Debug + 'static,
342{
343    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pool::CreatePoolError, R>) -> Self {
344        match err {
345            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
346            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
347                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
348                source: err.into(),
349            }),
350        }
351    }
352}
353impl From<crate::operation::create_pool::CreatePoolError> for Error {
354    fn from(err: crate::operation::create_pool::CreatePoolError) -> Self {
355        match err {
356            crate::operation::create_pool::CreatePoolError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
357            crate::operation::create_pool::CreatePoolError::ConflictException(inner) => Error::ConflictException(inner),
358            crate::operation::create_pool::CreatePoolError::InternalServerException(inner) => Error::InternalServerException(inner),
359            crate::operation::create_pool::CreatePoolError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
360            crate::operation::create_pool::CreatePoolError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
361            crate::operation::create_pool::CreatePoolError::ThrottlingException(inner) => Error::ThrottlingException(inner),
362            crate::operation::create_pool::CreatePoolError::ValidationException(inner) => Error::ValidationException(inner),
363            crate::operation::create_pool::CreatePoolError::Unhandled(inner) => Error::Unhandled(inner),
364        }
365    }
366}
367impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_protect_configuration::CreateProtectConfigurationError, R>>
368    for Error
369where
370    R: Send + Sync + std::fmt::Debug + 'static,
371{
372    fn from(
373        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_protect_configuration::CreateProtectConfigurationError, R>,
374    ) -> Self {
375        match err {
376            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
377            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
378                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
379                source: err.into(),
380            }),
381        }
382    }
383}
384impl From<crate::operation::create_protect_configuration::CreateProtectConfigurationError> for Error {
385    fn from(err: crate::operation::create_protect_configuration::CreateProtectConfigurationError) -> Self {
386        match err {
387            crate::operation::create_protect_configuration::CreateProtectConfigurationError::AccessDeniedException(inner) => {
388                Error::AccessDeniedException(inner)
389            }
390            crate::operation::create_protect_configuration::CreateProtectConfigurationError::ConflictException(inner) => {
391                Error::ConflictException(inner)
392            }
393            crate::operation::create_protect_configuration::CreateProtectConfigurationError::InternalServerException(inner) => {
394                Error::InternalServerException(inner)
395            }
396            crate::operation::create_protect_configuration::CreateProtectConfigurationError::ServiceQuotaExceededException(inner) => {
397                Error::ServiceQuotaExceededException(inner)
398            }
399            crate::operation::create_protect_configuration::CreateProtectConfigurationError::ThrottlingException(inner) => {
400                Error::ThrottlingException(inner)
401            }
402            crate::operation::create_protect_configuration::CreateProtectConfigurationError::ValidationException(inner) => {
403                Error::ValidationException(inner)
404            }
405            crate::operation::create_protect_configuration::CreateProtectConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
406        }
407    }
408}
409impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rcs_agent::CreateRcsAgentError, R>> for Error
410where
411    R: Send + Sync + std::fmt::Debug + 'static,
412{
413    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rcs_agent::CreateRcsAgentError, R>) -> Self {
414        match err {
415            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
416            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
417                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
418                source: err.into(),
419            }),
420        }
421    }
422}
423impl From<crate::operation::create_rcs_agent::CreateRcsAgentError> for Error {
424    fn from(err: crate::operation::create_rcs_agent::CreateRcsAgentError) -> Self {
425        match err {
426            crate::operation::create_rcs_agent::CreateRcsAgentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
427            crate::operation::create_rcs_agent::CreateRcsAgentError::ConflictException(inner) => Error::ConflictException(inner),
428            crate::operation::create_rcs_agent::CreateRcsAgentError::InternalServerException(inner) => Error::InternalServerException(inner),
429            crate::operation::create_rcs_agent::CreateRcsAgentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
430            crate::operation::create_rcs_agent::CreateRcsAgentError::ServiceQuotaExceededException(inner) => {
431                Error::ServiceQuotaExceededException(inner)
432            }
433            crate::operation::create_rcs_agent::CreateRcsAgentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
434            crate::operation::create_rcs_agent::CreateRcsAgentError::ValidationException(inner) => Error::ValidationException(inner),
435            crate::operation::create_rcs_agent::CreateRcsAgentError::Unhandled(inner) => Error::Unhandled(inner),
436        }
437    }
438}
439impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration::CreateRegistrationError, R>> for Error
440where
441    R: Send + Sync + std::fmt::Debug + 'static,
442{
443    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration::CreateRegistrationError, R>) -> Self {
444        match err {
445            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
446            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
447                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
448                source: err.into(),
449            }),
450        }
451    }
452}
453impl From<crate::operation::create_registration::CreateRegistrationError> for Error {
454    fn from(err: crate::operation::create_registration::CreateRegistrationError) -> Self {
455        match err {
456            crate::operation::create_registration::CreateRegistrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
457            crate::operation::create_registration::CreateRegistrationError::ConflictException(inner) => Error::ConflictException(inner),
458            crate::operation::create_registration::CreateRegistrationError::InternalServerException(inner) => Error::InternalServerException(inner),
459            crate::operation::create_registration::CreateRegistrationError::ServiceQuotaExceededException(inner) => {
460                Error::ServiceQuotaExceededException(inner)
461            }
462            crate::operation::create_registration::CreateRegistrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
463            crate::operation::create_registration::CreateRegistrationError::ValidationException(inner) => Error::ValidationException(inner),
464            crate::operation::create_registration::CreateRegistrationError::Unhandled(inner) => Error::Unhandled(inner),
465        }
466    }
467}
468impl<R>
469    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration_association::CreateRegistrationAssociationError, R>>
470    for Error
471where
472    R: Send + Sync + std::fmt::Debug + 'static,
473{
474    fn from(
475        err: ::aws_smithy_runtime_api::client::result::SdkError<
476            crate::operation::create_registration_association::CreateRegistrationAssociationError,
477            R,
478        >,
479    ) -> Self {
480        match err {
481            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
482            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
483                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
484                source: err.into(),
485            }),
486        }
487    }
488}
489impl From<crate::operation::create_registration_association::CreateRegistrationAssociationError> for Error {
490    fn from(err: crate::operation::create_registration_association::CreateRegistrationAssociationError) -> Self {
491        match err {
492            crate::operation::create_registration_association::CreateRegistrationAssociationError::AccessDeniedException(inner) => {
493                Error::AccessDeniedException(inner)
494            }
495            crate::operation::create_registration_association::CreateRegistrationAssociationError::ConflictException(inner) => {
496                Error::ConflictException(inner)
497            }
498            crate::operation::create_registration_association::CreateRegistrationAssociationError::InternalServerException(inner) => {
499                Error::InternalServerException(inner)
500            }
501            crate::operation::create_registration_association::CreateRegistrationAssociationError::ResourceNotFoundException(inner) => {
502                Error::ResourceNotFoundException(inner)
503            }
504            crate::operation::create_registration_association::CreateRegistrationAssociationError::ServiceQuotaExceededException(inner) => {
505                Error::ServiceQuotaExceededException(inner)
506            }
507            crate::operation::create_registration_association::CreateRegistrationAssociationError::ThrottlingException(inner) => {
508                Error::ThrottlingException(inner)
509            }
510            crate::operation::create_registration_association::CreateRegistrationAssociationError::ValidationException(inner) => {
511                Error::ValidationException(inner)
512            }
513            crate::operation::create_registration_association::CreateRegistrationAssociationError::Unhandled(inner) => Error::Unhandled(inner),
514        }
515    }
516}
517impl<R>
518    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration_attachment::CreateRegistrationAttachmentError, R>>
519    for Error
520where
521    R: Send + Sync + std::fmt::Debug + 'static,
522{
523    fn from(
524        err: ::aws_smithy_runtime_api::client::result::SdkError<
525            crate::operation::create_registration_attachment::CreateRegistrationAttachmentError,
526            R,
527        >,
528    ) -> Self {
529        match err {
530            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
531            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
532                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
533                source: err.into(),
534            }),
535        }
536    }
537}
538impl From<crate::operation::create_registration_attachment::CreateRegistrationAttachmentError> for Error {
539    fn from(err: crate::operation::create_registration_attachment::CreateRegistrationAttachmentError) -> Self {
540        match err {
541            crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::AccessDeniedException(inner) => {
542                Error::AccessDeniedException(inner)
543            }
544            crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::ConflictException(inner) => {
545                Error::ConflictException(inner)
546            }
547            crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::InternalServerException(inner) => {
548                Error::InternalServerException(inner)
549            }
550            crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::ServiceQuotaExceededException(inner) => {
551                Error::ServiceQuotaExceededException(inner)
552            }
553            crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::ThrottlingException(inner) => {
554                Error::ThrottlingException(inner)
555            }
556            crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::ValidationException(inner) => {
557                Error::ValidationException(inner)
558            }
559            crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
560        }
561    }
562}
563impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration_version::CreateRegistrationVersionError, R>>
564    for Error
565where
566    R: Send + Sync + std::fmt::Debug + 'static,
567{
568    fn from(
569        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration_version::CreateRegistrationVersionError, R>,
570    ) -> Self {
571        match err {
572            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
573            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
574                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
575                source: err.into(),
576            }),
577        }
578    }
579}
580impl From<crate::operation::create_registration_version::CreateRegistrationVersionError> for Error {
581    fn from(err: crate::operation::create_registration_version::CreateRegistrationVersionError) -> Self {
582        match err {
583            crate::operation::create_registration_version::CreateRegistrationVersionError::AccessDeniedException(inner) => {
584                Error::AccessDeniedException(inner)
585            }
586            crate::operation::create_registration_version::CreateRegistrationVersionError::ConflictException(inner) => {
587                Error::ConflictException(inner)
588            }
589            crate::operation::create_registration_version::CreateRegistrationVersionError::InternalServerException(inner) => {
590                Error::InternalServerException(inner)
591            }
592            crate::operation::create_registration_version::CreateRegistrationVersionError::ResourceNotFoundException(inner) => {
593                Error::ResourceNotFoundException(inner)
594            }
595            crate::operation::create_registration_version::CreateRegistrationVersionError::ServiceQuotaExceededException(inner) => {
596                Error::ServiceQuotaExceededException(inner)
597            }
598            crate::operation::create_registration_version::CreateRegistrationVersionError::ThrottlingException(inner) => {
599                Error::ThrottlingException(inner)
600            }
601            crate::operation::create_registration_version::CreateRegistrationVersionError::ValidationException(inner) => {
602                Error::ValidationException(inner)
603            }
604            crate::operation::create_registration_version::CreateRegistrationVersionError::Unhandled(inner) => Error::Unhandled(inner),
605        }
606    }
607}
608impl<R>
609    From<
610        ::aws_smithy_runtime_api::client::result::SdkError<
611            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError,
612            R,
613        >,
614    > for Error
615where
616    R: Send + Sync + std::fmt::Debug + 'static,
617{
618    fn from(
619        err: ::aws_smithy_runtime_api::client::result::SdkError<
620            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError,
621            R,
622        >,
623    ) -> Self {
624        match err {
625            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
626            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
627                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
628                source: err.into(),
629            }),
630        }
631    }
632}
633impl From<crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError> for Error {
634    fn from(err: crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError) -> Self {
635        match err {
636            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::AccessDeniedException(inner) => {
637                Error::AccessDeniedException(inner)
638            }
639            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::ConflictException(inner) => {
640                Error::ConflictException(inner)
641            }
642            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::InternalServerException(inner) => {
643                Error::InternalServerException(inner)
644            }
645            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::ResourceNotFoundException(inner) => {
646                Error::ResourceNotFoundException(inner)
647            }
648            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::ServiceQuotaExceededException(inner) => {
649                Error::ServiceQuotaExceededException(inner)
650            }
651            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::ThrottlingException(inner) => {
652                Error::ThrottlingException(inner)
653            }
654            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::ValidationException(inner) => {
655                Error::ValidationException(inner)
656            }
657            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::Unhandled(inner) => Error::Unhandled(inner),
658        }
659    }
660}
661impl<R>
662    From<
663        ::aws_smithy_runtime_api::client::result::SdkError<
664            crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError,
665            R,
666        >,
667    > for Error
668where
669    R: Send + Sync + std::fmt::Debug + 'static,
670{
671    fn from(
672        err: ::aws_smithy_runtime_api::client::result::SdkError<
673            crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError,
674            R,
675        >,
676    ) -> Self {
677        match err {
678            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
679            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
680                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
681                source: err.into(),
682            }),
683        }
684    }
685}
686impl From<crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError> for Error {
687    fn from(err: crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError) -> Self {
688        match err {
689            crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
690            crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::InternalServerException(inner) => Error::InternalServerException(inner),
691            crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
692            crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
693            crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::ValidationException(inner) => Error::ValidationException(inner),
694            crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
695        }
696    }
697}
698impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_set::DeleteConfigurationSetError, R>> for Error
699where
700    R: Send + Sync + std::fmt::Debug + 'static,
701{
702    fn from(
703        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_set::DeleteConfigurationSetError, R>,
704    ) -> Self {
705        match err {
706            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
707            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
708                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
709                source: err.into(),
710            }),
711        }
712    }
713}
714impl From<crate::operation::delete_configuration_set::DeleteConfigurationSetError> for Error {
715    fn from(err: crate::operation::delete_configuration_set::DeleteConfigurationSetError) -> Self {
716        match err {
717            crate::operation::delete_configuration_set::DeleteConfigurationSetError::AccessDeniedException(inner) => {
718                Error::AccessDeniedException(inner)
719            }
720            crate::operation::delete_configuration_set::DeleteConfigurationSetError::InternalServerException(inner) => {
721                Error::InternalServerException(inner)
722            }
723            crate::operation::delete_configuration_set::DeleteConfigurationSetError::ResourceNotFoundException(inner) => {
724                Error::ResourceNotFoundException(inner)
725            }
726            crate::operation::delete_configuration_set::DeleteConfigurationSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
727            crate::operation::delete_configuration_set::DeleteConfigurationSetError::ValidationException(inner) => Error::ValidationException(inner),
728            crate::operation::delete_configuration_set::DeleteConfigurationSetError::Unhandled(inner) => Error::Unhandled(inner),
729        }
730    }
731}
732impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError, R>>
733    for Error
734where
735    R: Send + Sync + std::fmt::Debug + 'static,
736{
737    fn from(
738        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError, R>,
739    ) -> Self {
740        match err {
741            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
742            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
743                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
744                source: err.into(),
745            }),
746        }
747    }
748}
749impl From<crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError> for Error {
750    fn from(err: crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError) -> Self {
751        match err {
752            crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::AccessDeniedException(inner) => {
753                Error::AccessDeniedException(inner)
754            }
755            crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::InternalServerException(inner) => {
756                Error::InternalServerException(inner)
757            }
758            crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::ResourceNotFoundException(inner) => {
759                Error::ResourceNotFoundException(inner)
760            }
761            crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::ThrottlingException(inner) => {
762                Error::ThrottlingException(inner)
763            }
764            crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::ValidationException(inner) => {
765                Error::ValidationException(inner)
766            }
767            crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::Unhandled(inner) => Error::Unhandled(inner),
768        }
769    }
770}
771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError, R>> for Error
772where
773    R: Send + Sync + std::fmt::Debug + 'static,
774{
775    fn from(
776        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError, R>,
777    ) -> Self {
778        match err {
779            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
780            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
781                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
782                source: err.into(),
783            }),
784        }
785    }
786}
787impl From<crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError> for Error {
788    fn from(err: crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError) -> Self {
789        match err {
790            crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::AccessDeniedException(inner) => {
791                Error::AccessDeniedException(inner)
792            }
793            crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::InternalServerException(inner) => {
794                Error::InternalServerException(inner)
795            }
796            crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::ResourceNotFoundException(inner) => {
797                Error::ResourceNotFoundException(inner)
798            }
799            crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::ThrottlingException(inner) => Error::ThrottlingException(inner),
800            crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::ValidationException(inner) => Error::ValidationException(inner),
801            crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::Unhandled(inner) => Error::Unhandled(inner),
802        }
803    }
804}
805impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_destination::DeleteEventDestinationError, R>> for Error
806where
807    R: Send + Sync + std::fmt::Debug + 'static,
808{
809    fn from(
810        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_destination::DeleteEventDestinationError, R>,
811    ) -> Self {
812        match err {
813            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
814            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
815                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
816                source: err.into(),
817            }),
818        }
819    }
820}
821impl From<crate::operation::delete_event_destination::DeleteEventDestinationError> for Error {
822    fn from(err: crate::operation::delete_event_destination::DeleteEventDestinationError) -> Self {
823        match err {
824            crate::operation::delete_event_destination::DeleteEventDestinationError::AccessDeniedException(inner) => {
825                Error::AccessDeniedException(inner)
826            }
827            crate::operation::delete_event_destination::DeleteEventDestinationError::InternalServerException(inner) => {
828                Error::InternalServerException(inner)
829            }
830            crate::operation::delete_event_destination::DeleteEventDestinationError::ResourceNotFoundException(inner) => {
831                Error::ResourceNotFoundException(inner)
832            }
833            crate::operation::delete_event_destination::DeleteEventDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
834            crate::operation::delete_event_destination::DeleteEventDestinationError::ValidationException(inner) => Error::ValidationException(inner),
835            crate::operation::delete_event_destination::DeleteEventDestinationError::Unhandled(inner) => Error::Unhandled(inner),
836        }
837    }
838}
839impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_keyword::DeleteKeywordError, R>> for Error
840where
841    R: Send + Sync + std::fmt::Debug + 'static,
842{
843    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_keyword::DeleteKeywordError, R>) -> Self {
844        match err {
845            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
846            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
847                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
848                source: err.into(),
849            }),
850        }
851    }
852}
853impl From<crate::operation::delete_keyword::DeleteKeywordError> for Error {
854    fn from(err: crate::operation::delete_keyword::DeleteKeywordError) -> Self {
855        match err {
856            crate::operation::delete_keyword::DeleteKeywordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
857            crate::operation::delete_keyword::DeleteKeywordError::ConflictException(inner) => Error::ConflictException(inner),
858            crate::operation::delete_keyword::DeleteKeywordError::InternalServerException(inner) => Error::InternalServerException(inner),
859            crate::operation::delete_keyword::DeleteKeywordError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
860            crate::operation::delete_keyword::DeleteKeywordError::ThrottlingException(inner) => Error::ThrottlingException(inner),
861            crate::operation::delete_keyword::DeleteKeywordError::ValidationException(inner) => Error::ValidationException(inner),
862            crate::operation::delete_keyword::DeleteKeywordError::Unhandled(inner) => Error::Unhandled(inner),
863        }
864    }
865}
866impl<R>
867    From<
868        ::aws_smithy_runtime_api::client::result::SdkError<
869            crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError,
870            R,
871        >,
872    > for Error
873where
874    R: Send + Sync + std::fmt::Debug + 'static,
875{
876    fn from(
877        err: ::aws_smithy_runtime_api::client::result::SdkError<
878            crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError,
879            R,
880        >,
881    ) -> 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::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError> for Error {
892    fn from(err: crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError) -> Self {
893        match err {
894            crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
895                Error::AccessDeniedException(inner)
896            }
897            crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError::InternalServerException(
898                inner,
899            ) => Error::InternalServerException(inner),
900            crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError::ThrottlingException(inner) => {
901                Error::ThrottlingException(inner)
902            }
903            crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError::ValidationException(inner) => {
904                Error::ValidationException(inner)
905            }
906            crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError::Unhandled(inner) => {
907                Error::Unhandled(inner)
908            }
909        }
910    }
911}
912impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError, R>>
913    for Error
914where
915    R: Send + Sync + std::fmt::Debug + 'static,
916{
917    fn from(
918        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError, R>,
919    ) -> Self {
920        match err {
921            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
922            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
923                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
924                source: err.into(),
925            }),
926        }
927    }
928}
929impl From<crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError> for Error {
930    fn from(err: crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError) -> Self {
931        match err {
932            crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError::AccessDeniedException(inner) => {
933                Error::AccessDeniedException(inner)
934            }
935            crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError::ConflictException(inner) => {
936                Error::ConflictException(inner)
937            }
938            crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError::InternalServerException(inner) => {
939                Error::InternalServerException(inner)
940            }
941            crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError::ResourceNotFoundException(inner) => {
942                Error::ResourceNotFoundException(inner)
943            }
944            crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError::ThrottlingException(inner) => {
945                Error::ThrottlingException(inner)
946            }
947            crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError::ValidationException(inner) => {
948                Error::ValidationException(inner)
949            }
950            crate::operation::delete_notify_configuration::DeleteNotifyConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
951        }
952    }
953}
954impl<R>
955    From<
956        ::aws_smithy_runtime_api::client::result::SdkError<
957            crate::operation::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError,
958            R,
959        >,
960    > for Error
961where
962    R: Send + Sync + std::fmt::Debug + 'static,
963{
964    fn from(
965        err: ::aws_smithy_runtime_api::client::result::SdkError<
966            crate::operation::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError,
967            R,
968        >,
969    ) -> 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::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError> for Error {
980    fn from(err: crate::operation::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError) -> Self {
981        match err {
982            crate::operation::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError::AccessDeniedException(
983                inner,
984            ) => Error::AccessDeniedException(inner),
985            crate::operation::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError::InternalServerException(
986                inner,
987            ) => Error::InternalServerException(inner),
988            crate::operation::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError::ThrottlingException(inner) => {
989                Error::ThrottlingException(inner)
990            }
991            crate::operation::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError::ValidationException(inner) => {
992                Error::ValidationException(inner)
993            }
994            crate::operation::delete_notify_message_spend_limit_override::DeleteNotifyMessageSpendLimitOverrideError::Unhandled(inner) => {
995                Error::Unhandled(inner)
996            }
997        }
998    }
999}
1000impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_opted_out_number::DeleteOptedOutNumberError, R>> for Error
1001where
1002    R: Send + Sync + std::fmt::Debug + 'static,
1003{
1004    fn from(
1005        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_opted_out_number::DeleteOptedOutNumberError, R>,
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::delete_opted_out_number::DeleteOptedOutNumberError> for Error {
1017    fn from(err: crate::operation::delete_opted_out_number::DeleteOptedOutNumberError) -> Self {
1018        match err {
1019            crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1020            crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::ConflictException(inner) => Error::ConflictException(inner),
1021            crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::InternalServerException(inner) => {
1022                Error::InternalServerException(inner)
1023            }
1024            crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::ResourceNotFoundException(inner) => {
1025                Error::ResourceNotFoundException(inner)
1026            }
1027            crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1028            crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::ValidationException(inner) => Error::ValidationException(inner),
1029            crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::Unhandled(inner) => Error::Unhandled(inner),
1030        }
1031    }
1032}
1033impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_opt_out_list::DeleteOptOutListError, R>> for Error
1034where
1035    R: Send + Sync + std::fmt::Debug + 'static,
1036{
1037    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_opt_out_list::DeleteOptOutListError, R>) -> Self {
1038        match err {
1039            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1040            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1041                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1042                source: err.into(),
1043            }),
1044        }
1045    }
1046}
1047impl From<crate::operation::delete_opt_out_list::DeleteOptOutListError> for Error {
1048    fn from(err: crate::operation::delete_opt_out_list::DeleteOptOutListError) -> Self {
1049        match err {
1050            crate::operation::delete_opt_out_list::DeleteOptOutListError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1051            crate::operation::delete_opt_out_list::DeleteOptOutListError::ConflictException(inner) => Error::ConflictException(inner),
1052            crate::operation::delete_opt_out_list::DeleteOptOutListError::InternalServerException(inner) => Error::InternalServerException(inner),
1053            crate::operation::delete_opt_out_list::DeleteOptOutListError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1054            crate::operation::delete_opt_out_list::DeleteOptOutListError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1055            crate::operation::delete_opt_out_list::DeleteOptOutListError::ValidationException(inner) => Error::ValidationException(inner),
1056            crate::operation::delete_opt_out_list::DeleteOptOutListError::Unhandled(inner) => Error::Unhandled(inner),
1057        }
1058    }
1059}
1060impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pool::DeletePoolError, R>> for Error
1061where
1062    R: Send + Sync + std::fmt::Debug + 'static,
1063{
1064    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pool::DeletePoolError, R>) -> Self {
1065        match err {
1066            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1067            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1068                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1069                source: err.into(),
1070            }),
1071        }
1072    }
1073}
1074impl From<crate::operation::delete_pool::DeletePoolError> for Error {
1075    fn from(err: crate::operation::delete_pool::DeletePoolError) -> Self {
1076        match err {
1077            crate::operation::delete_pool::DeletePoolError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1078            crate::operation::delete_pool::DeletePoolError::ConflictException(inner) => Error::ConflictException(inner),
1079            crate::operation::delete_pool::DeletePoolError::InternalServerException(inner) => Error::InternalServerException(inner),
1080            crate::operation::delete_pool::DeletePoolError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1081            crate::operation::delete_pool::DeletePoolError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1082            crate::operation::delete_pool::DeletePoolError::ValidationException(inner) => Error::ValidationException(inner),
1083            crate::operation::delete_pool::DeletePoolError::Unhandled(inner) => Error::Unhandled(inner),
1084        }
1085    }
1086}
1087impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_protect_configuration::DeleteProtectConfigurationError, R>>
1088    for Error
1089where
1090    R: Send + Sync + std::fmt::Debug + 'static,
1091{
1092    fn from(
1093        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_protect_configuration::DeleteProtectConfigurationError, R>,
1094    ) -> Self {
1095        match err {
1096            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1097            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1098                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1099                source: err.into(),
1100            }),
1101        }
1102    }
1103}
1104impl From<crate::operation::delete_protect_configuration::DeleteProtectConfigurationError> for Error {
1105    fn from(err: crate::operation::delete_protect_configuration::DeleteProtectConfigurationError) -> Self {
1106        match err {
1107            crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::AccessDeniedException(inner) => {
1108                Error::AccessDeniedException(inner)
1109            }
1110            crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::ConflictException(inner) => {
1111                Error::ConflictException(inner)
1112            }
1113            crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::InternalServerException(inner) => {
1114                Error::InternalServerException(inner)
1115            }
1116            crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::ResourceNotFoundException(inner) => {
1117                Error::ResourceNotFoundException(inner)
1118            }
1119            crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::ThrottlingException(inner) => {
1120                Error::ThrottlingException(inner)
1121            }
1122            crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::ValidationException(inner) => {
1123                Error::ValidationException(inner)
1124            }
1125            crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1126        }
1127    }
1128}
1129impl<R>
1130    From<
1131        ::aws_smithy_runtime_api::client::result::SdkError<
1132            crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError,
1133            R,
1134        >,
1135    > for Error
1136where
1137    R: Send + Sync + std::fmt::Debug + 'static,
1138{
1139    fn from(
1140        err: ::aws_smithy_runtime_api::client::result::SdkError<
1141            crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError,
1142            R,
1143        >,
1144    ) -> 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::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError> for Error {
1155    fn from(
1156        err: crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError,
1157    ) -> Self {
1158        match err {
1159            crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1160            crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::InternalServerException(inner) => Error::InternalServerException(inner),
1161            crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1162            crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1163            crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::ValidationException(inner) => Error::ValidationException(inner),
1164            crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::Unhandled(inner) => Error::Unhandled(inner),
1165        }
1166    }
1167}
1168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rcs_agent::DeleteRcsAgentError, 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::delete_rcs_agent::DeleteRcsAgentError, 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::delete_rcs_agent::DeleteRcsAgentError> for Error {
1183    fn from(err: crate::operation::delete_rcs_agent::DeleteRcsAgentError) -> Self {
1184        match err {
1185            crate::operation::delete_rcs_agent::DeleteRcsAgentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1186            crate::operation::delete_rcs_agent::DeleteRcsAgentError::ConflictException(inner) => Error::ConflictException(inner),
1187            crate::operation::delete_rcs_agent::DeleteRcsAgentError::InternalServerException(inner) => Error::InternalServerException(inner),
1188            crate::operation::delete_rcs_agent::DeleteRcsAgentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1189            crate::operation::delete_rcs_agent::DeleteRcsAgentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1190            crate::operation::delete_rcs_agent::DeleteRcsAgentError::ValidationException(inner) => Error::ValidationException(inner),
1191            crate::operation::delete_rcs_agent::DeleteRcsAgentError::Unhandled(inner) => Error::Unhandled(inner),
1192        }
1193    }
1194}
1195impl<R>
1196    From<
1197        ::aws_smithy_runtime_api::client::result::SdkError<
1198            crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError,
1199            R,
1200        >,
1201    > for Error
1202where
1203    R: Send + Sync + std::fmt::Debug + 'static,
1204{
1205    fn from(
1206        err: ::aws_smithy_runtime_api::client::result::SdkError<
1207            crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError,
1208            R,
1209        >,
1210    ) -> Self {
1211        match err {
1212            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1213            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1214                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1215                source: err.into(),
1216            }),
1217        }
1218    }
1219}
1220impl From<crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError> for Error {
1221    fn from(err: crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError) -> Self {
1222        match err {
1223            crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
1224                Error::AccessDeniedException(inner)
1225            }
1226            crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError::InternalServerException(inner) => {
1227                Error::InternalServerException(inner)
1228            }
1229            crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError::ThrottlingException(inner) => {
1230                Error::ThrottlingException(inner)
1231            }
1232            crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError::ValidationException(inner) => {
1233                Error::ValidationException(inner)
1234            }
1235            crate::operation::delete_rcs_message_spend_limit_override::DeleteRcsMessageSpendLimitOverrideError::Unhandled(inner) => {
1236                Error::Unhandled(inner)
1237            }
1238        }
1239    }
1240}
1241impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registration::DeleteRegistrationError, R>> for Error
1242where
1243    R: Send + Sync + std::fmt::Debug + 'static,
1244{
1245    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registration::DeleteRegistrationError, R>) -> Self {
1246        match err {
1247            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1248            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1249                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1250                source: err.into(),
1251            }),
1252        }
1253    }
1254}
1255impl From<crate::operation::delete_registration::DeleteRegistrationError> for Error {
1256    fn from(err: crate::operation::delete_registration::DeleteRegistrationError) -> Self {
1257        match err {
1258            crate::operation::delete_registration::DeleteRegistrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1259            crate::operation::delete_registration::DeleteRegistrationError::ConflictException(inner) => Error::ConflictException(inner),
1260            crate::operation::delete_registration::DeleteRegistrationError::InternalServerException(inner) => Error::InternalServerException(inner),
1261            crate::operation::delete_registration::DeleteRegistrationError::ResourceNotFoundException(inner) => {
1262                Error::ResourceNotFoundException(inner)
1263            }
1264            crate::operation::delete_registration::DeleteRegistrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1265            crate::operation::delete_registration::DeleteRegistrationError::ValidationException(inner) => Error::ValidationException(inner),
1266            crate::operation::delete_registration::DeleteRegistrationError::Unhandled(inner) => Error::Unhandled(inner),
1267        }
1268    }
1269}
1270impl<R>
1271    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError, R>>
1272    for Error
1273where
1274    R: Send + Sync + std::fmt::Debug + 'static,
1275{
1276    fn from(
1277        err: ::aws_smithy_runtime_api::client::result::SdkError<
1278            crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError,
1279            R,
1280        >,
1281    ) -> Self {
1282        match err {
1283            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1284            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1285                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1286                source: err.into(),
1287            }),
1288        }
1289    }
1290}
1291impl From<crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError> for Error {
1292    fn from(err: crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError) -> Self {
1293        match err {
1294            crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::AccessDeniedException(inner) => {
1295                Error::AccessDeniedException(inner)
1296            }
1297            crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::ConflictException(inner) => {
1298                Error::ConflictException(inner)
1299            }
1300            crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::InternalServerException(inner) => {
1301                Error::InternalServerException(inner)
1302            }
1303            crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::ResourceNotFoundException(inner) => {
1304                Error::ResourceNotFoundException(inner)
1305            }
1306            crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::ThrottlingException(inner) => {
1307                Error::ThrottlingException(inner)
1308            }
1309            crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::ValidationException(inner) => {
1310                Error::ValidationException(inner)
1311            }
1312            crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
1313        }
1314    }
1315}
1316impl<R>
1317    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError, R>>
1318    for Error
1319where
1320    R: Send + Sync + std::fmt::Debug + 'static,
1321{
1322    fn from(
1323        err: ::aws_smithy_runtime_api::client::result::SdkError<
1324            crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError,
1325            R,
1326        >,
1327    ) -> Self {
1328        match err {
1329            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1330            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1331                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1332                source: err.into(),
1333            }),
1334        }
1335    }
1336}
1337impl From<crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError> for Error {
1338    fn from(err: crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError) -> Self {
1339        match err {
1340            crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::AccessDeniedException(inner) => {
1341                Error::AccessDeniedException(inner)
1342            }
1343            crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::ConflictException(inner) => {
1344                Error::ConflictException(inner)
1345            }
1346            crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::InternalServerException(inner) => {
1347                Error::InternalServerException(inner)
1348            }
1349            crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::ResourceNotFoundException(inner) => {
1350                Error::ResourceNotFoundException(inner)
1351            }
1352            crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::ThrottlingException(inner) => {
1353                Error::ThrottlingException(inner)
1354            }
1355            crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::ValidationException(inner) => {
1356                Error::ValidationException(inner)
1357            }
1358            crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::Unhandled(inner) => Error::Unhandled(inner),
1359        }
1360    }
1361}
1362impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
1363where
1364    R: Send + Sync + std::fmt::Debug + 'static,
1365{
1366    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
1367        match err {
1368            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1369            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1370                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1371                source: err.into(),
1372            }),
1373        }
1374    }
1375}
1376impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
1377    fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
1378        match err {
1379            crate::operation::delete_resource_policy::DeleteResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1380            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
1381                Error::InternalServerException(inner)
1382            }
1383            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
1384                Error::ResourceNotFoundException(inner)
1385            }
1386            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1387            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
1388            crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1389        }
1390    }
1391}
1392impl<R>
1393    From<
1394        ::aws_smithy_runtime_api::client::result::SdkError<
1395            crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError,
1396            R,
1397        >,
1398    > for Error
1399where
1400    R: Send + Sync + std::fmt::Debug + 'static,
1401{
1402    fn from(
1403        err: ::aws_smithy_runtime_api::client::result::SdkError<
1404            crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError,
1405            R,
1406        >,
1407    ) -> Self {
1408        match err {
1409            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1410            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1411                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1412                source: err.into(),
1413            }),
1414        }
1415    }
1416}
1417impl From<crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError> for Error {
1418    fn from(err: crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError) -> Self {
1419        match err {
1420            crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
1421                Error::AccessDeniedException(inner)
1422            }
1423            crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError::InternalServerException(inner) => {
1424                Error::InternalServerException(inner)
1425            }
1426            crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError::ThrottlingException(inner) => {
1427                Error::ThrottlingException(inner)
1428            }
1429            crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError::ValidationException(inner) => {
1430                Error::ValidationException(inner)
1431            }
1432            crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError::Unhandled(inner) => {
1433                Error::Unhandled(inner)
1434            }
1435        }
1436    }
1437}
1438impl<R>
1439    From<
1440        ::aws_smithy_runtime_api::client::result::SdkError<
1441            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError,
1442            R,
1443        >,
1444    > for Error
1445where
1446    R: Send + Sync + std::fmt::Debug + 'static,
1447{
1448    fn from(
1449        err: ::aws_smithy_runtime_api::client::result::SdkError<
1450            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError,
1451            R,
1452        >,
1453    ) -> Self {
1454        match err {
1455            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1456            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1457                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1458                source: err.into(),
1459            }),
1460        }
1461    }
1462}
1463impl From<crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError> for Error {
1464    fn from(err: crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError) -> Self {
1465        match err {
1466            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::AccessDeniedException(inner) => {
1467                Error::AccessDeniedException(inner)
1468            }
1469            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::ConflictException(inner) => {
1470                Error::ConflictException(inner)
1471            }
1472            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::InternalServerException(inner) => {
1473                Error::InternalServerException(inner)
1474            }
1475            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::ResourceNotFoundException(inner) => {
1476                Error::ResourceNotFoundException(inner)
1477            }
1478            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::ThrottlingException(inner) => {
1479                Error::ThrottlingException(inner)
1480            }
1481            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::ValidationException(inner) => {
1482                Error::ValidationException(inner)
1483            }
1484            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::Unhandled(inner) => Error::Unhandled(inner),
1485        }
1486    }
1487}
1488impl<R>
1489    From<
1490        ::aws_smithy_runtime_api::client::result::SdkError<
1491            crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError,
1492            R,
1493        >,
1494    > for Error
1495where
1496    R: Send + Sync + std::fmt::Debug + 'static,
1497{
1498    fn from(
1499        err: ::aws_smithy_runtime_api::client::result::SdkError<
1500            crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError,
1501            R,
1502        >,
1503    ) -> Self {
1504        match err {
1505            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1506            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1507                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1508                source: err.into(),
1509            }),
1510        }
1511    }
1512}
1513impl From<crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError> for Error {
1514    fn from(err: crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError) -> Self {
1515        match err {
1516            crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
1517                Error::AccessDeniedException(inner)
1518            }
1519            crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError::InternalServerException(
1520                inner,
1521            ) => Error::InternalServerException(inner),
1522            crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError::ThrottlingException(inner) => {
1523                Error::ThrottlingException(inner)
1524            }
1525            crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError::ValidationException(inner) => {
1526                Error::ValidationException(inner)
1527            }
1528            crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError::Unhandled(inner) => {
1529                Error::Unhandled(inner)
1530            }
1531        }
1532    }
1533}
1534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>>
1535    for Error
1536where
1537    R: Send + Sync + std::fmt::Debug + 'static,
1538{
1539    fn from(
1540        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>,
1541    ) -> Self {
1542        match err {
1543            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1544            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1545                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1546                source: err.into(),
1547            }),
1548        }
1549    }
1550}
1551impl From<crate::operation::describe_account_attributes::DescribeAccountAttributesError> for Error {
1552    fn from(err: crate::operation::describe_account_attributes::DescribeAccountAttributesError) -> Self {
1553        match err {
1554            crate::operation::describe_account_attributes::DescribeAccountAttributesError::AccessDeniedException(inner) => {
1555                Error::AccessDeniedException(inner)
1556            }
1557            crate::operation::describe_account_attributes::DescribeAccountAttributesError::InternalServerException(inner) => {
1558                Error::InternalServerException(inner)
1559            }
1560            crate::operation::describe_account_attributes::DescribeAccountAttributesError::ThrottlingException(inner) => {
1561                Error::ThrottlingException(inner)
1562            }
1563            crate::operation::describe_account_attributes::DescribeAccountAttributesError::ValidationException(inner) => {
1564                Error::ValidationException(inner)
1565            }
1566            crate::operation::describe_account_attributes::DescribeAccountAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1567        }
1568    }
1569}
1570impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_limits::DescribeAccountLimitsError, R>> for Error
1571where
1572    R: Send + Sync + std::fmt::Debug + 'static,
1573{
1574    fn from(
1575        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_limits::DescribeAccountLimitsError, R>,
1576    ) -> Self {
1577        match err {
1578            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1579            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1580                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1581                source: err.into(),
1582            }),
1583        }
1584    }
1585}
1586impl From<crate::operation::describe_account_limits::DescribeAccountLimitsError> for Error {
1587    fn from(err: crate::operation::describe_account_limits::DescribeAccountLimitsError) -> Self {
1588        match err {
1589            crate::operation::describe_account_limits::DescribeAccountLimitsError::AccessDeniedException(inner) => {
1590                Error::AccessDeniedException(inner)
1591            }
1592            crate::operation::describe_account_limits::DescribeAccountLimitsError::InternalServerException(inner) => {
1593                Error::InternalServerException(inner)
1594            }
1595            crate::operation::describe_account_limits::DescribeAccountLimitsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1596            crate::operation::describe_account_limits::DescribeAccountLimitsError::ValidationException(inner) => Error::ValidationException(inner),
1597            crate::operation::describe_account_limits::DescribeAccountLimitsError::Unhandled(inner) => Error::Unhandled(inner),
1598        }
1599    }
1600}
1601impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_configuration_sets::DescribeConfigurationSetsError, R>>
1602    for Error
1603where
1604    R: Send + Sync + std::fmt::Debug + 'static,
1605{
1606    fn from(
1607        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_configuration_sets::DescribeConfigurationSetsError, R>,
1608    ) -> Self {
1609        match err {
1610            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1611            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1612                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1613                source: err.into(),
1614            }),
1615        }
1616    }
1617}
1618impl From<crate::operation::describe_configuration_sets::DescribeConfigurationSetsError> for Error {
1619    fn from(err: crate::operation::describe_configuration_sets::DescribeConfigurationSetsError) -> Self {
1620        match err {
1621            crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::AccessDeniedException(inner) => {
1622                Error::AccessDeniedException(inner)
1623            }
1624            crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::InternalServerException(inner) => {
1625                Error::InternalServerException(inner)
1626            }
1627            crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::ResourceNotFoundException(inner) => {
1628                Error::ResourceNotFoundException(inner)
1629            }
1630            crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::ThrottlingException(inner) => {
1631                Error::ThrottlingException(inner)
1632            }
1633            crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::ValidationException(inner) => {
1634                Error::ValidationException(inner)
1635            }
1636            crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::Unhandled(inner) => Error::Unhandled(inner),
1637        }
1638    }
1639}
1640impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_keywords::DescribeKeywordsError, R>> for Error
1641where
1642    R: Send + Sync + std::fmt::Debug + 'static,
1643{
1644    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_keywords::DescribeKeywordsError, R>) -> Self {
1645        match err {
1646            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1647            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1648                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1649                source: err.into(),
1650            }),
1651        }
1652    }
1653}
1654impl From<crate::operation::describe_keywords::DescribeKeywordsError> for Error {
1655    fn from(err: crate::operation::describe_keywords::DescribeKeywordsError) -> Self {
1656        match err {
1657            crate::operation::describe_keywords::DescribeKeywordsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1658            crate::operation::describe_keywords::DescribeKeywordsError::InternalServerException(inner) => Error::InternalServerException(inner),
1659            crate::operation::describe_keywords::DescribeKeywordsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1660            crate::operation::describe_keywords::DescribeKeywordsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1661            crate::operation::describe_keywords::DescribeKeywordsError::ValidationException(inner) => Error::ValidationException(inner),
1662            crate::operation::describe_keywords::DescribeKeywordsError::Unhandled(inner) => Error::Unhandled(inner),
1663        }
1664    }
1665}
1666impl<R>
1667    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError, R>>
1668    for Error
1669where
1670    R: Send + Sync + std::fmt::Debug + 'static,
1671{
1672    fn from(
1673        err: ::aws_smithy_runtime_api::client::result::SdkError<
1674            crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError,
1675            R,
1676        >,
1677    ) -> Self {
1678        match err {
1679            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1680            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1681                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1682                source: err.into(),
1683            }),
1684        }
1685    }
1686}
1687impl From<crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError> for Error {
1688    fn from(err: crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError) -> Self {
1689        match err {
1690            crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError::AccessDeniedException(inner) => {
1691                Error::AccessDeniedException(inner)
1692            }
1693            crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError::InternalServerException(inner) => {
1694                Error::InternalServerException(inner)
1695            }
1696            crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError::ResourceNotFoundException(inner) => {
1697                Error::ResourceNotFoundException(inner)
1698            }
1699            crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError::ThrottlingException(inner) => {
1700                Error::ThrottlingException(inner)
1701            }
1702            crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError::ValidationException(inner) => {
1703                Error::ValidationException(inner)
1704            }
1705            crate::operation::describe_notify_configurations::DescribeNotifyConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1706        }
1707    }
1708}
1709impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_notify_templates::DescribeNotifyTemplatesError, R>>
1710    for Error
1711where
1712    R: Send + Sync + std::fmt::Debug + 'static,
1713{
1714    fn from(
1715        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_notify_templates::DescribeNotifyTemplatesError, R>,
1716    ) -> Self {
1717        match err {
1718            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1719            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1720                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1721                source: err.into(),
1722            }),
1723        }
1724    }
1725}
1726impl From<crate::operation::describe_notify_templates::DescribeNotifyTemplatesError> for Error {
1727    fn from(err: crate::operation::describe_notify_templates::DescribeNotifyTemplatesError) -> Self {
1728        match err {
1729            crate::operation::describe_notify_templates::DescribeNotifyTemplatesError::AccessDeniedException(inner) => {
1730                Error::AccessDeniedException(inner)
1731            }
1732            crate::operation::describe_notify_templates::DescribeNotifyTemplatesError::InternalServerException(inner) => {
1733                Error::InternalServerException(inner)
1734            }
1735            crate::operation::describe_notify_templates::DescribeNotifyTemplatesError::ResourceNotFoundException(inner) => {
1736                Error::ResourceNotFoundException(inner)
1737            }
1738            crate::operation::describe_notify_templates::DescribeNotifyTemplatesError::ThrottlingException(inner) => {
1739                Error::ThrottlingException(inner)
1740            }
1741            crate::operation::describe_notify_templates::DescribeNotifyTemplatesError::ValidationException(inner) => {
1742                Error::ValidationException(inner)
1743            }
1744            crate::operation::describe_notify_templates::DescribeNotifyTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
1745        }
1746    }
1747}
1748impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError, R>>
1749    for Error
1750where
1751    R: Send + Sync + std::fmt::Debug + 'static,
1752{
1753    fn from(
1754        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError, R>,
1755    ) -> Self {
1756        match err {
1757            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1758            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1759                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1760                source: err.into(),
1761            }),
1762        }
1763    }
1764}
1765impl From<crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError> for Error {
1766    fn from(err: crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError) -> Self {
1767        match err {
1768            crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::AccessDeniedException(inner) => {
1769                Error::AccessDeniedException(inner)
1770            }
1771            crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::InternalServerException(inner) => {
1772                Error::InternalServerException(inner)
1773            }
1774            crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::ResourceNotFoundException(inner) => {
1775                Error::ResourceNotFoundException(inner)
1776            }
1777            crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::ThrottlingException(inner) => {
1778                Error::ThrottlingException(inner)
1779            }
1780            crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::ValidationException(inner) => {
1781                Error::ValidationException(inner)
1782            }
1783            crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::Unhandled(inner) => Error::Unhandled(inner),
1784        }
1785    }
1786}
1787impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_opt_out_lists::DescribeOptOutListsError, R>> for Error
1788where
1789    R: Send + Sync + std::fmt::Debug + 'static,
1790{
1791    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_opt_out_lists::DescribeOptOutListsError, R>) -> Self {
1792        match err {
1793            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1794            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1795                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1796                source: err.into(),
1797            }),
1798        }
1799    }
1800}
1801impl From<crate::operation::describe_opt_out_lists::DescribeOptOutListsError> for Error {
1802    fn from(err: crate::operation::describe_opt_out_lists::DescribeOptOutListsError) -> Self {
1803        match err {
1804            crate::operation::describe_opt_out_lists::DescribeOptOutListsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1805            crate::operation::describe_opt_out_lists::DescribeOptOutListsError::InternalServerException(inner) => {
1806                Error::InternalServerException(inner)
1807            }
1808            crate::operation::describe_opt_out_lists::DescribeOptOutListsError::ResourceNotFoundException(inner) => {
1809                Error::ResourceNotFoundException(inner)
1810            }
1811            crate::operation::describe_opt_out_lists::DescribeOptOutListsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1812            crate::operation::describe_opt_out_lists::DescribeOptOutListsError::ValidationException(inner) => Error::ValidationException(inner),
1813            crate::operation::describe_opt_out_lists::DescribeOptOutListsError::Unhandled(inner) => Error::Unhandled(inner),
1814        }
1815    }
1816}
1817impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_phone_numbers::DescribePhoneNumbersError, R>> for Error
1818where
1819    R: Send + Sync + std::fmt::Debug + 'static,
1820{
1821    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_phone_numbers::DescribePhoneNumbersError, R>) -> Self {
1822        match err {
1823            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1824            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1825                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1826                source: err.into(),
1827            }),
1828        }
1829    }
1830}
1831impl From<crate::operation::describe_phone_numbers::DescribePhoneNumbersError> for Error {
1832    fn from(err: crate::operation::describe_phone_numbers::DescribePhoneNumbersError) -> Self {
1833        match err {
1834            crate::operation::describe_phone_numbers::DescribePhoneNumbersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1835            crate::operation::describe_phone_numbers::DescribePhoneNumbersError::InternalServerException(inner) => {
1836                Error::InternalServerException(inner)
1837            }
1838            crate::operation::describe_phone_numbers::DescribePhoneNumbersError::ResourceNotFoundException(inner) => {
1839                Error::ResourceNotFoundException(inner)
1840            }
1841            crate::operation::describe_phone_numbers::DescribePhoneNumbersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1842            crate::operation::describe_phone_numbers::DescribePhoneNumbersError::ValidationException(inner) => Error::ValidationException(inner),
1843            crate::operation::describe_phone_numbers::DescribePhoneNumbersError::Unhandled(inner) => Error::Unhandled(inner),
1844        }
1845    }
1846}
1847impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pools::DescribePoolsError, R>> for Error
1848where
1849    R: Send + Sync + std::fmt::Debug + 'static,
1850{
1851    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pools::DescribePoolsError, R>) -> Self {
1852        match err {
1853            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1854            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1855                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1856                source: err.into(),
1857            }),
1858        }
1859    }
1860}
1861impl From<crate::operation::describe_pools::DescribePoolsError> for Error {
1862    fn from(err: crate::operation::describe_pools::DescribePoolsError) -> Self {
1863        match err {
1864            crate::operation::describe_pools::DescribePoolsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1865            crate::operation::describe_pools::DescribePoolsError::InternalServerException(inner) => Error::InternalServerException(inner),
1866            crate::operation::describe_pools::DescribePoolsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1867            crate::operation::describe_pools::DescribePoolsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1868            crate::operation::describe_pools::DescribePoolsError::ValidationException(inner) => Error::ValidationException(inner),
1869            crate::operation::describe_pools::DescribePoolsError::Unhandled(inner) => Error::Unhandled(inner),
1870        }
1871    }
1872}
1873impl<R>
1874    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError, R>>
1875    for Error
1876where
1877    R: Send + Sync + std::fmt::Debug + 'static,
1878{
1879    fn from(
1880        err: ::aws_smithy_runtime_api::client::result::SdkError<
1881            crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError,
1882            R,
1883        >,
1884    ) -> Self {
1885        match err {
1886            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1887            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1888                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1889                source: err.into(),
1890            }),
1891        }
1892    }
1893}
1894impl From<crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError> for Error {
1895    fn from(err: crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError) -> Self {
1896        match err {
1897            crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::AccessDeniedException(inner) => {
1898                Error::AccessDeniedException(inner)
1899            }
1900            crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::InternalServerException(inner) => {
1901                Error::InternalServerException(inner)
1902            }
1903            crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::ResourceNotFoundException(inner) => {
1904                Error::ResourceNotFoundException(inner)
1905            }
1906            crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::ThrottlingException(inner) => {
1907                Error::ThrottlingException(inner)
1908            }
1909            crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::ValidationException(inner) => {
1910                Error::ValidationException(inner)
1911            }
1912            crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1913        }
1914    }
1915}
1916impl<R>
1917    From<
1918        ::aws_smithy_runtime_api::client::result::SdkError<
1919            crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError,
1920            R,
1921        >,
1922    > for Error
1923where
1924    R: Send + Sync + std::fmt::Debug + 'static,
1925{
1926    fn from(
1927        err: ::aws_smithy_runtime_api::client::result::SdkError<
1928            crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError,
1929            R,
1930        >,
1931    ) -> Self {
1932        match err {
1933            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1934            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1935                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1936                source: err.into(),
1937            }),
1938        }
1939    }
1940}
1941impl From<crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError> for Error {
1942    fn from(err: crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError) -> Self {
1943        match err {
1944            crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError::AccessDeniedException(inner) => {
1945                Error::AccessDeniedException(inner)
1946            }
1947            crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError::InternalServerException(inner) => {
1948                Error::InternalServerException(inner)
1949            }
1950            crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError::ResourceNotFoundException(
1951                inner,
1952            ) => Error::ResourceNotFoundException(inner),
1953            crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError::ThrottlingException(inner) => {
1954                Error::ThrottlingException(inner)
1955            }
1956            crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError::ValidationException(inner) => {
1957                Error::ValidationException(inner)
1958            }
1959            crate::operation::describe_rcs_agent_country_launch_status::DescribeRcsAgentCountryLaunchStatusError::Unhandled(inner) => {
1960                Error::Unhandled(inner)
1961            }
1962        }
1963    }
1964}
1965impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rcs_agents::DescribeRcsAgentsError, R>> for Error
1966where
1967    R: Send + Sync + std::fmt::Debug + 'static,
1968{
1969    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rcs_agents::DescribeRcsAgentsError, R>) -> Self {
1970        match err {
1971            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1972            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1973                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1974                source: err.into(),
1975            }),
1976        }
1977    }
1978}
1979impl From<crate::operation::describe_rcs_agents::DescribeRcsAgentsError> for Error {
1980    fn from(err: crate::operation::describe_rcs_agents::DescribeRcsAgentsError) -> Self {
1981        match err {
1982            crate::operation::describe_rcs_agents::DescribeRcsAgentsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1983            crate::operation::describe_rcs_agents::DescribeRcsAgentsError::InternalServerException(inner) => Error::InternalServerException(inner),
1984            crate::operation::describe_rcs_agents::DescribeRcsAgentsError::ResourceNotFoundException(inner) => {
1985                Error::ResourceNotFoundException(inner)
1986            }
1987            crate::operation::describe_rcs_agents::DescribeRcsAgentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1988            crate::operation::describe_rcs_agents::DescribeRcsAgentsError::ValidationException(inner) => Error::ValidationException(inner),
1989            crate::operation::describe_rcs_agents::DescribeRcsAgentsError::Unhandled(inner) => Error::Unhandled(inner),
1990        }
1991    }
1992}
1993impl<R>
1994    From<
1995        ::aws_smithy_runtime_api::client::result::SdkError<
1996            crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError,
1997            R,
1998        >,
1999    > for Error
2000where
2001    R: Send + Sync + std::fmt::Debug + 'static,
2002{
2003    fn from(
2004        err: ::aws_smithy_runtime_api::client::result::SdkError<
2005            crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError,
2006            R,
2007        >,
2008    ) -> Self {
2009        match err {
2010            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2011            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2012                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2013                source: err.into(),
2014            }),
2015        }
2016    }
2017}
2018impl From<crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError> for Error {
2019    fn from(err: crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError) -> Self {
2020        match err {
2021            crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::AccessDeniedException(inner) => {
2022                Error::AccessDeniedException(inner)
2023            }
2024            crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::InternalServerException(inner) => {
2025                Error::InternalServerException(inner)
2026            }
2027            crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::ResourceNotFoundException(inner) => {
2028                Error::ResourceNotFoundException(inner)
2029            }
2030            crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::ThrottlingException(inner) => {
2031                Error::ThrottlingException(inner)
2032            }
2033            crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::ValidationException(inner) => {
2034                Error::ValidationException(inner)
2035            }
2036            crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::Unhandled(inner) => Error::Unhandled(inner),
2037        }
2038    }
2039}
2040impl<R>
2041    From<
2042        ::aws_smithy_runtime_api::client::result::SdkError<
2043            crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError,
2044            R,
2045        >,
2046    > for Error
2047where
2048    R: Send + Sync + std::fmt::Debug + 'static,
2049{
2050    fn from(
2051        err: ::aws_smithy_runtime_api::client::result::SdkError<
2052            crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError,
2053            R,
2054        >,
2055    ) -> Self {
2056        match err {
2057            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2058            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2059                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2060                source: err.into(),
2061            }),
2062        }
2063    }
2064}
2065impl From<crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError> for Error {
2066    fn from(err: crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError) -> Self {
2067        match err {
2068            crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError::AccessDeniedException(inner) => {
2069                Error::AccessDeniedException(inner)
2070            }
2071            crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError::InternalServerException(inner) => {
2072                Error::InternalServerException(inner)
2073            }
2074            crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError::ThrottlingException(inner) => {
2075                Error::ThrottlingException(inner)
2076            }
2077            crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError::ValidationException(inner) => {
2078                Error::ValidationException(inner)
2079            }
2080            crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError::Unhandled(inner) => {
2081                Error::Unhandled(inner)
2082            }
2083        }
2084    }
2085}
2086impl<R>
2087    From<
2088        ::aws_smithy_runtime_api::client::result::SdkError<
2089            crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError,
2090            R,
2091        >,
2092    > for Error
2093where
2094    R: Send + Sync + std::fmt::Debug + 'static,
2095{
2096    fn from(
2097        err: ::aws_smithy_runtime_api::client::result::SdkError<
2098            crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError,
2099            R,
2100        >,
2101    ) -> Self {
2102        match err {
2103            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2104            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2105                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2106                source: err.into(),
2107            }),
2108        }
2109    }
2110}
2111impl From<crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError> for Error {
2112    fn from(err: crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError) -> Self {
2113        match err {
2114            crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::AccessDeniedException(inner) => {
2115                Error::AccessDeniedException(inner)
2116            }
2117            crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::InternalServerException(inner) => {
2118                Error::InternalServerException(inner)
2119            }
2120            crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::ResourceNotFoundException(inner) => {
2121                Error::ResourceNotFoundException(inner)
2122            }
2123            crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::ThrottlingException(inner) => {
2124                Error::ThrottlingException(inner)
2125            }
2126            crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::ValidationException(inner) => {
2127                Error::ValidationException(inner)
2128            }
2129            crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::Unhandled(inner) => Error::Unhandled(inner),
2130        }
2131    }
2132}
2133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_registrations::DescribeRegistrationsError, R>> for Error
2134where
2135    R: Send + Sync + std::fmt::Debug + 'static,
2136{
2137    fn from(
2138        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_registrations::DescribeRegistrationsError, R>,
2139    ) -> Self {
2140        match err {
2141            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2142            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2143                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2144                source: err.into(),
2145            }),
2146        }
2147    }
2148}
2149impl From<crate::operation::describe_registrations::DescribeRegistrationsError> for Error {
2150    fn from(err: crate::operation::describe_registrations::DescribeRegistrationsError) -> Self {
2151        match err {
2152            crate::operation::describe_registrations::DescribeRegistrationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2153            crate::operation::describe_registrations::DescribeRegistrationsError::InternalServerException(inner) => {
2154                Error::InternalServerException(inner)
2155            }
2156            crate::operation::describe_registrations::DescribeRegistrationsError::ResourceNotFoundException(inner) => {
2157                Error::ResourceNotFoundException(inner)
2158            }
2159            crate::operation::describe_registrations::DescribeRegistrationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2160            crate::operation::describe_registrations::DescribeRegistrationsError::ValidationException(inner) => Error::ValidationException(inner),
2161            crate::operation::describe_registrations::DescribeRegistrationsError::Unhandled(inner) => Error::Unhandled(inner),
2162        }
2163    }
2164}
2165impl<R>
2166    From<
2167        ::aws_smithy_runtime_api::client::result::SdkError<
2168            crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError,
2169            R,
2170        >,
2171    > for Error
2172where
2173    R: Send + Sync + std::fmt::Debug + 'static,
2174{
2175    fn from(
2176        err: ::aws_smithy_runtime_api::client::result::SdkError<
2177            crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError,
2178            R,
2179        >,
2180    ) -> Self {
2181        match err {
2182            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2183            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2184                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2185                source: err.into(),
2186            }),
2187        }
2188    }
2189}
2190impl From<crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError> for Error {
2191    fn from(err: crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError) -> Self {
2192        match err {
2193            crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError::AccessDeniedException(
2194                inner,
2195            ) => Error::AccessDeniedException(inner),
2196            crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError::InternalServerException(
2197                inner,
2198            ) => Error::InternalServerException(inner),
2199            crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError::ThrottlingException(inner) => {
2200                Error::ThrottlingException(inner)
2201            }
2202            crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError::ValidationException(inner) => {
2203                Error::ValidationException(inner)
2204            }
2205            crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError::Unhandled(inner) => {
2206                Error::Unhandled(inner)
2207            }
2208        }
2209    }
2210}
2211impl<R>
2212    From<
2213        ::aws_smithy_runtime_api::client::result::SdkError<
2214            crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError,
2215            R,
2216        >,
2217    > for Error
2218where
2219    R: Send + Sync + std::fmt::Debug + 'static,
2220{
2221    fn from(
2222        err: ::aws_smithy_runtime_api::client::result::SdkError<
2223            crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError,
2224            R,
2225        >,
2226    ) -> Self {
2227        match err {
2228            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2229            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2230                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2231                source: err.into(),
2232            }),
2233        }
2234    }
2235}
2236impl From<crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError> for Error {
2237    fn from(err: crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError) -> Self {
2238        match err {
2239            crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError::AccessDeniedException(inner) => {
2240                Error::AccessDeniedException(inner)
2241            }
2242            crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError::InternalServerException(inner) => {
2243                Error::InternalServerException(inner)
2244            }
2245            crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError::ThrottlingException(inner) => {
2246                Error::ThrottlingException(inner)
2247            }
2248            crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError::ValidationException(inner) => {
2249                Error::ValidationException(inner)
2250            }
2251            crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError::Unhandled(inner) => {
2252                Error::Unhandled(inner)
2253            }
2254        }
2255    }
2256}
2257impl<R>
2258    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_registration_versions::DescribeRegistrationVersionsError, R>>
2259    for Error
2260where
2261    R: Send + Sync + std::fmt::Debug + 'static,
2262{
2263    fn from(
2264        err: ::aws_smithy_runtime_api::client::result::SdkError<
2265            crate::operation::describe_registration_versions::DescribeRegistrationVersionsError,
2266            R,
2267        >,
2268    ) -> Self {
2269        match err {
2270            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2271            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2272                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2273                source: err.into(),
2274            }),
2275        }
2276    }
2277}
2278impl From<crate::operation::describe_registration_versions::DescribeRegistrationVersionsError> for Error {
2279    fn from(err: crate::operation::describe_registration_versions::DescribeRegistrationVersionsError) -> Self {
2280        match err {
2281            crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::AccessDeniedException(inner) => {
2282                Error::AccessDeniedException(inner)
2283            }
2284            crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::InternalServerException(inner) => {
2285                Error::InternalServerException(inner)
2286            }
2287            crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::ResourceNotFoundException(inner) => {
2288                Error::ResourceNotFoundException(inner)
2289            }
2290            crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::ThrottlingException(inner) => {
2291                Error::ThrottlingException(inner)
2292            }
2293            crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::ValidationException(inner) => {
2294                Error::ValidationException(inner)
2295            }
2296            crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::Unhandled(inner) => Error::Unhandled(inner),
2297        }
2298    }
2299}
2300impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_sender_ids::DescribeSenderIdsError, R>> for Error
2301where
2302    R: Send + Sync + std::fmt::Debug + 'static,
2303{
2304    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_sender_ids::DescribeSenderIdsError, R>) -> Self {
2305        match err {
2306            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2307            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2308                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2309                source: err.into(),
2310            }),
2311        }
2312    }
2313}
2314impl From<crate::operation::describe_sender_ids::DescribeSenderIdsError> for Error {
2315    fn from(err: crate::operation::describe_sender_ids::DescribeSenderIdsError) -> Self {
2316        match err {
2317            crate::operation::describe_sender_ids::DescribeSenderIdsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2318            crate::operation::describe_sender_ids::DescribeSenderIdsError::InternalServerException(inner) => Error::InternalServerException(inner),
2319            crate::operation::describe_sender_ids::DescribeSenderIdsError::ResourceNotFoundException(inner) => {
2320                Error::ResourceNotFoundException(inner)
2321            }
2322            crate::operation::describe_sender_ids::DescribeSenderIdsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2323            crate::operation::describe_sender_ids::DescribeSenderIdsError::ValidationException(inner) => Error::ValidationException(inner),
2324            crate::operation::describe_sender_ids::DescribeSenderIdsError::Unhandled(inner) => Error::Unhandled(inner),
2325        }
2326    }
2327}
2328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spend_limits::DescribeSpendLimitsError, R>> for Error
2329where
2330    R: Send + Sync + std::fmt::Debug + 'static,
2331{
2332    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spend_limits::DescribeSpendLimitsError, R>) -> Self {
2333        match err {
2334            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2335            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2336                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2337                source: err.into(),
2338            }),
2339        }
2340    }
2341}
2342impl From<crate::operation::describe_spend_limits::DescribeSpendLimitsError> for Error {
2343    fn from(err: crate::operation::describe_spend_limits::DescribeSpendLimitsError) -> Self {
2344        match err {
2345            crate::operation::describe_spend_limits::DescribeSpendLimitsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2346            crate::operation::describe_spend_limits::DescribeSpendLimitsError::InternalServerException(inner) => {
2347                Error::InternalServerException(inner)
2348            }
2349            crate::operation::describe_spend_limits::DescribeSpendLimitsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2350            crate::operation::describe_spend_limits::DescribeSpendLimitsError::ValidationException(inner) => Error::ValidationException(inner),
2351            crate::operation::describe_spend_limits::DescribeSpendLimitsError::Unhandled(inner) => Error::Unhandled(inner),
2352        }
2353    }
2354}
2355impl<R>
2356    From<
2357        ::aws_smithy_runtime_api::client::result::SdkError<
2358            crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError,
2359            R,
2360        >,
2361    > for Error
2362where
2363    R: Send + Sync + std::fmt::Debug + 'static,
2364{
2365    fn from(
2366        err: ::aws_smithy_runtime_api::client::result::SdkError<
2367            crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError,
2368            R,
2369        >,
2370    ) -> Self {
2371        match err {
2372            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2373            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2374                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2375                source: err.into(),
2376            }),
2377        }
2378    }
2379}
2380impl From<crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError> for Error {
2381    fn from(err: crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError) -> Self {
2382        match err {
2383            crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::AccessDeniedException(inner) => {
2384                Error::AccessDeniedException(inner)
2385            }
2386            crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::InternalServerException(inner) => {
2387                Error::InternalServerException(inner)
2388            }
2389            crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::ResourceNotFoundException(inner) => {
2390                Error::ResourceNotFoundException(inner)
2391            }
2392            crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::ThrottlingException(inner) => {
2393                Error::ThrottlingException(inner)
2394            }
2395            crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::ValidationException(inner) => {
2396                Error::ValidationException(inner)
2397            }
2398            crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::Unhandled(inner) => {
2399                Error::Unhandled(inner)
2400            }
2401        }
2402    }
2403}
2404impl<R>
2405    From<
2406        ::aws_smithy_runtime_api::client::result::SdkError<
2407            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError,
2408            R,
2409        >,
2410    > for Error
2411where
2412    R: Send + Sync + std::fmt::Debug + 'static,
2413{
2414    fn from(
2415        err: ::aws_smithy_runtime_api::client::result::SdkError<
2416            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError,
2417            R,
2418        >,
2419    ) -> Self {
2420        match err {
2421            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2422            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2423                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2424                source: err.into(),
2425            }),
2426        }
2427    }
2428}
2429impl From<crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError> for Error {
2430    fn from(err: crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError) -> Self {
2431        match err {
2432            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::AccessDeniedException(inner) => {
2433                Error::AccessDeniedException(inner)
2434            }
2435            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::ConflictException(inner) => {
2436                Error::ConflictException(inner)
2437            }
2438            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::InternalServerException(inner) => {
2439                Error::InternalServerException(inner)
2440            }
2441            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::ResourceNotFoundException(inner) => {
2442                Error::ResourceNotFoundException(inner)
2443            }
2444            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::ThrottlingException(inner) => {
2445                Error::ThrottlingException(inner)
2446            }
2447            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::ValidationException(inner) => {
2448                Error::ValidationException(inner)
2449            }
2450            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::Unhandled(inner) => Error::Unhandled(inner),
2451        }
2452    }
2453}
2454impl<R>
2455    From<
2456        ::aws_smithy_runtime_api::client::result::SdkError<
2457            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError,
2458            R,
2459        >,
2460    > for Error
2461where
2462    R: Send + Sync + std::fmt::Debug + 'static,
2463{
2464    fn from(
2465        err: ::aws_smithy_runtime_api::client::result::SdkError<
2466            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError,
2467            R,
2468        >,
2469    ) -> Self {
2470        match err {
2471            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2472            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2473                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2474                source: err.into(),
2475            }),
2476        }
2477    }
2478}
2479impl From<crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError> for Error {
2480    fn from(err: crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError) -> Self {
2481        match err {
2482            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::AccessDeniedException(inner) => {
2483                Error::AccessDeniedException(inner)
2484            }
2485            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::ConflictException(inner) => {
2486                Error::ConflictException(inner)
2487            }
2488            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::InternalServerException(inner) => {
2489                Error::InternalServerException(inner)
2490            }
2491            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::ResourceNotFoundException(inner) => {
2492                Error::ResourceNotFoundException(inner)
2493            }
2494            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::ThrottlingException(inner) => {
2495                Error::ThrottlingException(inner)
2496            }
2497            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::ValidationException(inner) => {
2498                Error::ValidationException(inner)
2499            }
2500            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2501        }
2502    }
2503}
2504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::discard_registration_version::DiscardRegistrationVersionError, R>>
2505    for Error
2506where
2507    R: Send + Sync + std::fmt::Debug + 'static,
2508{
2509    fn from(
2510        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::discard_registration_version::DiscardRegistrationVersionError, R>,
2511    ) -> Self {
2512        match err {
2513            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2514            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2515                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2516                source: err.into(),
2517            }),
2518        }
2519    }
2520}
2521impl From<crate::operation::discard_registration_version::DiscardRegistrationVersionError> for Error {
2522    fn from(err: crate::operation::discard_registration_version::DiscardRegistrationVersionError) -> Self {
2523        match err {
2524            crate::operation::discard_registration_version::DiscardRegistrationVersionError::AccessDeniedException(inner) => {
2525                Error::AccessDeniedException(inner)
2526            }
2527            crate::operation::discard_registration_version::DiscardRegistrationVersionError::ConflictException(inner) => {
2528                Error::ConflictException(inner)
2529            }
2530            crate::operation::discard_registration_version::DiscardRegistrationVersionError::InternalServerException(inner) => {
2531                Error::InternalServerException(inner)
2532            }
2533            crate::operation::discard_registration_version::DiscardRegistrationVersionError::ResourceNotFoundException(inner) => {
2534                Error::ResourceNotFoundException(inner)
2535            }
2536            crate::operation::discard_registration_version::DiscardRegistrationVersionError::ThrottlingException(inner) => {
2537                Error::ThrottlingException(inner)
2538            }
2539            crate::operation::discard_registration_version::DiscardRegistrationVersionError::ValidationException(inner) => {
2540                Error::ValidationException(inner)
2541            }
2542            crate::operation::discard_registration_version::DiscardRegistrationVersionError::Unhandled(inner) => Error::Unhandled(inner),
2543        }
2544    }
2545}
2546impl<R>
2547    From<
2548        ::aws_smithy_runtime_api::client::result::SdkError<
2549            crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError,
2550            R,
2551        >,
2552    > for Error
2553where
2554    R: Send + Sync + std::fmt::Debug + 'static,
2555{
2556    fn from(
2557        err: ::aws_smithy_runtime_api::client::result::SdkError<
2558            crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError,
2559            R,
2560        >,
2561    ) -> Self {
2562        match err {
2563            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2564            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2565                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2566                source: err.into(),
2567            }),
2568        }
2569    }
2570}
2571impl From<crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError> for Error {
2572    fn from(err: crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError) -> Self {
2573        match err {
2574            crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::AccessDeniedException(
2575                inner,
2576            ) => Error::AccessDeniedException(inner),
2577            crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::InternalServerException(
2578                inner,
2579            ) => Error::InternalServerException(inner),
2580            crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::ResourceNotFoundException(
2581                inner,
2582            ) => Error::ResourceNotFoundException(inner),
2583            crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::ThrottlingException(inner) => {
2584                Error::ThrottlingException(inner)
2585            }
2586            crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::ValidationException(inner) => {
2587                Error::ValidationException(inner)
2588            }
2589            crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::Unhandled(inner) => {
2590                Error::Unhandled(inner)
2591            }
2592        }
2593    }
2594}
2595impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
2596where
2597    R: Send + Sync + std::fmt::Debug + 'static,
2598{
2599    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>) -> Self {
2600        match err {
2601            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2602            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2603                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2604                source: err.into(),
2605            }),
2606        }
2607    }
2608}
2609impl From<crate::operation::get_resource_policy::GetResourcePolicyError> for Error {
2610    fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
2611        match err {
2612            crate::operation::get_resource_policy::GetResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2613            crate::operation::get_resource_policy::GetResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
2614            crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException(inner) => {
2615                Error::ResourceNotFoundException(inner)
2616            }
2617            crate::operation::get_resource_policy::GetResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2618            crate::operation::get_resource_policy::GetResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
2619            crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
2620        }
2621    }
2622}
2623impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError, R>>
2624    for Error
2625where
2626    R: Send + Sync + std::fmt::Debug + 'static,
2627{
2628    fn from(
2629        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError, R>,
2630    ) -> Self {
2631        match err {
2632            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2633            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2634                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2635                source: err.into(),
2636            }),
2637        }
2638    }
2639}
2640impl From<crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError> for Error {
2641    fn from(err: crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError) -> Self {
2642        match err {
2643            crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError::AccessDeniedException(inner) => {
2644                Error::AccessDeniedException(inner)
2645            }
2646            crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError::ConflictException(inner) => {
2647                Error::ConflictException(inner)
2648            }
2649            crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError::InternalServerException(inner) => {
2650                Error::InternalServerException(inner)
2651            }
2652            crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError::ResourceNotFoundException(inner) => {
2653                Error::ResourceNotFoundException(inner)
2654            }
2655            crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError::ThrottlingException(inner) => {
2656                Error::ThrottlingException(inner)
2657            }
2658            crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError::ValidationException(inner) => {
2659                Error::ValidationException(inner)
2660            }
2661            crate::operation::list_available_phone_numbers::ListAvailablePhoneNumbersError::Unhandled(inner) => Error::Unhandled(inner),
2662        }
2663    }
2664}
2665impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notify_countries::ListNotifyCountriesError, R>> for Error
2666where
2667    R: Send + Sync + std::fmt::Debug + 'static,
2668{
2669    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notify_countries::ListNotifyCountriesError, R>) -> Self {
2670        match err {
2671            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2672            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2673                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2674                source: err.into(),
2675            }),
2676        }
2677    }
2678}
2679impl From<crate::operation::list_notify_countries::ListNotifyCountriesError> for Error {
2680    fn from(err: crate::operation::list_notify_countries::ListNotifyCountriesError) -> Self {
2681        match err {
2682            crate::operation::list_notify_countries::ListNotifyCountriesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2683            crate::operation::list_notify_countries::ListNotifyCountriesError::InternalServerException(inner) => {
2684                Error::InternalServerException(inner)
2685            }
2686            crate::operation::list_notify_countries::ListNotifyCountriesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2687            crate::operation::list_notify_countries::ListNotifyCountriesError::ValidationException(inner) => Error::ValidationException(inner),
2688            crate::operation::list_notify_countries::ListNotifyCountriesError::Unhandled(inner) => Error::Unhandled(inner),
2689        }
2690    }
2691}
2692impl<R>
2693    From<
2694        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError, R>,
2695    > for Error
2696where
2697    R: Send + Sync + std::fmt::Debug + 'static,
2698{
2699    fn from(
2700        err: ::aws_smithy_runtime_api::client::result::SdkError<
2701            crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError,
2702            R,
2703        >,
2704    ) -> Self {
2705        match err {
2706            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2707            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2708                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2709                source: err.into(),
2710            }),
2711        }
2712    }
2713}
2714impl From<crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError> for Error {
2715    fn from(err: crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError) -> Self {
2716        match err {
2717            crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::AccessDeniedException(inner) => {
2718                Error::AccessDeniedException(inner)
2719            }
2720            crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::InternalServerException(inner) => {
2721                Error::InternalServerException(inner)
2722            }
2723            crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::ResourceNotFoundException(inner) => {
2724                Error::ResourceNotFoundException(inner)
2725            }
2726            crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::ThrottlingException(inner) => {
2727                Error::ThrottlingException(inner)
2728            }
2729            crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::ValidationException(inner) => {
2730                Error::ValidationException(inner)
2731            }
2732            crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::Unhandled(inner) => Error::Unhandled(inner),
2733        }
2734    }
2735}
2736impl<R>
2737    From<
2738        ::aws_smithy_runtime_api::client::result::SdkError<
2739            crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError,
2740            R,
2741        >,
2742    > for Error
2743where
2744    R: Send + Sync + std::fmt::Debug + 'static,
2745{
2746    fn from(
2747        err: ::aws_smithy_runtime_api::client::result::SdkError<
2748            crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError,
2749            R,
2750        >,
2751    ) -> Self {
2752        match err {
2753            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2754            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2755                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2756                source: err.into(),
2757            }),
2758        }
2759    }
2760}
2761impl From<crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError> for Error {
2762    fn from(
2763        err: crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError,
2764    ) -> Self {
2765        match err {
2766            crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2767            crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::InternalServerException(inner) => Error::InternalServerException(inner),
2768            crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2769            crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2770            crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::ValidationException(inner) => Error::ValidationException(inner),
2771            crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::Unhandled(inner) => Error::Unhandled(inner),
2772        }
2773    }
2774}
2775impl<R>
2776    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_registration_associations::ListRegistrationAssociationsError, R>>
2777    for Error
2778where
2779    R: Send + Sync + std::fmt::Debug + 'static,
2780{
2781    fn from(
2782        err: ::aws_smithy_runtime_api::client::result::SdkError<
2783            crate::operation::list_registration_associations::ListRegistrationAssociationsError,
2784            R,
2785        >,
2786    ) -> Self {
2787        match err {
2788            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2789            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2790                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2791                source: err.into(),
2792            }),
2793        }
2794    }
2795}
2796impl From<crate::operation::list_registration_associations::ListRegistrationAssociationsError> for Error {
2797    fn from(err: crate::operation::list_registration_associations::ListRegistrationAssociationsError) -> Self {
2798        match err {
2799            crate::operation::list_registration_associations::ListRegistrationAssociationsError::AccessDeniedException(inner) => {
2800                Error::AccessDeniedException(inner)
2801            }
2802            crate::operation::list_registration_associations::ListRegistrationAssociationsError::InternalServerException(inner) => {
2803                Error::InternalServerException(inner)
2804            }
2805            crate::operation::list_registration_associations::ListRegistrationAssociationsError::ResourceNotFoundException(inner) => {
2806                Error::ResourceNotFoundException(inner)
2807            }
2808            crate::operation::list_registration_associations::ListRegistrationAssociationsError::ThrottlingException(inner) => {
2809                Error::ThrottlingException(inner)
2810            }
2811            crate::operation::list_registration_associations::ListRegistrationAssociationsError::ValidationException(inner) => {
2812                Error::ValidationException(inner)
2813            }
2814            crate::operation::list_registration_associations::ListRegistrationAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
2815        }
2816    }
2817}
2818impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2819where
2820    R: Send + Sync + std::fmt::Debug + 'static,
2821{
2822    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2823        match err {
2824            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2825            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2826                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2827                source: err.into(),
2828            }),
2829        }
2830    }
2831}
2832impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2833    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2834        match err {
2835            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2836            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
2837                Error::InternalServerException(inner)
2838            }
2839            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2840                Error::ResourceNotFoundException(inner)
2841            }
2842            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2843            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
2844            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2845        }
2846    }
2847}
2848impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_keyword::PutKeywordError, R>> for Error
2849where
2850    R: Send + Sync + std::fmt::Debug + 'static,
2851{
2852    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_keyword::PutKeywordError, R>) -> Self {
2853        match err {
2854            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2855            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2856                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2857                source: err.into(),
2858            }),
2859        }
2860    }
2861}
2862impl From<crate::operation::put_keyword::PutKeywordError> for Error {
2863    fn from(err: crate::operation::put_keyword::PutKeywordError) -> Self {
2864        match err {
2865            crate::operation::put_keyword::PutKeywordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2866            crate::operation::put_keyword::PutKeywordError::ConflictException(inner) => Error::ConflictException(inner),
2867            crate::operation::put_keyword::PutKeywordError::InternalServerException(inner) => Error::InternalServerException(inner),
2868            crate::operation::put_keyword::PutKeywordError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2869            crate::operation::put_keyword::PutKeywordError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2870            crate::operation::put_keyword::PutKeywordError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2871            crate::operation::put_keyword::PutKeywordError::ValidationException(inner) => Error::ValidationException(inner),
2872            crate::operation::put_keyword::PutKeywordError::Unhandled(inner) => Error::Unhandled(inner),
2873        }
2874    }
2875}
2876impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_message_feedback::PutMessageFeedbackError, R>> for Error
2877where
2878    R: Send + Sync + std::fmt::Debug + 'static,
2879{
2880    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_message_feedback::PutMessageFeedbackError, R>) -> Self {
2881        match err {
2882            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2883            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2884                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2885                source: err.into(),
2886            }),
2887        }
2888    }
2889}
2890impl From<crate::operation::put_message_feedback::PutMessageFeedbackError> for Error {
2891    fn from(err: crate::operation::put_message_feedback::PutMessageFeedbackError) -> Self {
2892        match err {
2893            crate::operation::put_message_feedback::PutMessageFeedbackError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2894            crate::operation::put_message_feedback::PutMessageFeedbackError::InternalServerException(inner) => Error::InternalServerException(inner),
2895            crate::operation::put_message_feedback::PutMessageFeedbackError::ResourceNotFoundException(inner) => {
2896                Error::ResourceNotFoundException(inner)
2897            }
2898            crate::operation::put_message_feedback::PutMessageFeedbackError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2899            crate::operation::put_message_feedback::PutMessageFeedbackError::ValidationException(inner) => Error::ValidationException(inner),
2900            crate::operation::put_message_feedback::PutMessageFeedbackError::Unhandled(inner) => Error::Unhandled(inner),
2901        }
2902    }
2903}
2904impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_opted_out_number::PutOptedOutNumberError, R>> for Error
2905where
2906    R: Send + Sync + std::fmt::Debug + 'static,
2907{
2908    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_opted_out_number::PutOptedOutNumberError, R>) -> Self {
2909        match err {
2910            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2911            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2912                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2913                source: err.into(),
2914            }),
2915        }
2916    }
2917}
2918impl From<crate::operation::put_opted_out_number::PutOptedOutNumberError> for Error {
2919    fn from(err: crate::operation::put_opted_out_number::PutOptedOutNumberError) -> Self {
2920        match err {
2921            crate::operation::put_opted_out_number::PutOptedOutNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2922            crate::operation::put_opted_out_number::PutOptedOutNumberError::InternalServerException(inner) => Error::InternalServerException(inner),
2923            crate::operation::put_opted_out_number::PutOptedOutNumberError::ResourceNotFoundException(inner) => {
2924                Error::ResourceNotFoundException(inner)
2925            }
2926            crate::operation::put_opted_out_number::PutOptedOutNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2927            crate::operation::put_opted_out_number::PutOptedOutNumberError::ValidationException(inner) => Error::ValidationException(inner),
2928            crate::operation::put_opted_out_number::PutOptedOutNumberError::Unhandled(inner) => Error::Unhandled(inner),
2929        }
2930    }
2931}
2932impl<R>
2933    From<
2934        ::aws_smithy_runtime_api::client::result::SdkError<
2935            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError,
2936            R,
2937        >,
2938    > for Error
2939where
2940    R: Send + Sync + std::fmt::Debug + 'static,
2941{
2942    fn from(
2943        err: ::aws_smithy_runtime_api::client::result::SdkError<
2944            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError,
2945            R,
2946        >,
2947    ) -> Self {
2948        match err {
2949            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2950            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2951                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2952                source: err.into(),
2953            }),
2954        }
2955    }
2956}
2957impl From<crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError> for Error {
2958    fn from(err: crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError) -> Self {
2959        match err {
2960            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2961            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::ConflictException(inner) => Error::ConflictException(inner),
2962            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::InternalServerException(inner) => Error::InternalServerException(inner),
2963            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2964            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2965            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2966            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::ValidationException(inner) => Error::ValidationException(inner),
2967            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::Unhandled(inner) => Error::Unhandled(inner),
2968        }
2969    }
2970}
2971impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_registration_field_value::PutRegistrationFieldValueError, R>>
2972    for Error
2973where
2974    R: Send + Sync + std::fmt::Debug + 'static,
2975{
2976    fn from(
2977        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_registration_field_value::PutRegistrationFieldValueError, R>,
2978    ) -> Self {
2979        match err {
2980            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2981            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2982                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2983                source: err.into(),
2984            }),
2985        }
2986    }
2987}
2988impl From<crate::operation::put_registration_field_value::PutRegistrationFieldValueError> for Error {
2989    fn from(err: crate::operation::put_registration_field_value::PutRegistrationFieldValueError) -> Self {
2990        match err {
2991            crate::operation::put_registration_field_value::PutRegistrationFieldValueError::AccessDeniedException(inner) => {
2992                Error::AccessDeniedException(inner)
2993            }
2994            crate::operation::put_registration_field_value::PutRegistrationFieldValueError::ConflictException(inner) => {
2995                Error::ConflictException(inner)
2996            }
2997            crate::operation::put_registration_field_value::PutRegistrationFieldValueError::InternalServerException(inner) => {
2998                Error::InternalServerException(inner)
2999            }
3000            crate::operation::put_registration_field_value::PutRegistrationFieldValueError::ResourceNotFoundException(inner) => {
3001                Error::ResourceNotFoundException(inner)
3002            }
3003            crate::operation::put_registration_field_value::PutRegistrationFieldValueError::ThrottlingException(inner) => {
3004                Error::ThrottlingException(inner)
3005            }
3006            crate::operation::put_registration_field_value::PutRegistrationFieldValueError::ValidationException(inner) => {
3007                Error::ValidationException(inner)
3008            }
3009            crate::operation::put_registration_field_value::PutRegistrationFieldValueError::Unhandled(inner) => Error::Unhandled(inner),
3010        }
3011    }
3012}
3013impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
3014where
3015    R: Send + Sync + std::fmt::Debug + 'static,
3016{
3017    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
3018        match err {
3019            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3020            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3021                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3022                source: err.into(),
3023            }),
3024        }
3025    }
3026}
3027impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
3028    fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
3029        match err {
3030            crate::operation::put_resource_policy::PutResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3031            crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
3032            crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
3033                Error::ResourceNotFoundException(inner)
3034            }
3035            crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3036            crate::operation::put_resource_policy::PutResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
3037            crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
3038        }
3039    }
3040}
3041impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_phone_number::ReleasePhoneNumberError, R>> for Error
3042where
3043    R: Send + Sync + std::fmt::Debug + 'static,
3044{
3045    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_phone_number::ReleasePhoneNumberError, R>) -> Self {
3046        match err {
3047            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3048            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3049                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3050                source: err.into(),
3051            }),
3052        }
3053    }
3054}
3055impl From<crate::operation::release_phone_number::ReleasePhoneNumberError> for Error {
3056    fn from(err: crate::operation::release_phone_number::ReleasePhoneNumberError) -> Self {
3057        match err {
3058            crate::operation::release_phone_number::ReleasePhoneNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3059            crate::operation::release_phone_number::ReleasePhoneNumberError::ConflictException(inner) => Error::ConflictException(inner),
3060            crate::operation::release_phone_number::ReleasePhoneNumberError::InternalServerException(inner) => Error::InternalServerException(inner),
3061            crate::operation::release_phone_number::ReleasePhoneNumberError::ResourceNotFoundException(inner) => {
3062                Error::ResourceNotFoundException(inner)
3063            }
3064            crate::operation::release_phone_number::ReleasePhoneNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3065            crate::operation::release_phone_number::ReleasePhoneNumberError::ValidationException(inner) => Error::ValidationException(inner),
3066            crate::operation::release_phone_number::ReleasePhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
3067        }
3068    }
3069}
3070impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_sender_id::ReleaseSenderIdError, R>> for Error
3071where
3072    R: Send + Sync + std::fmt::Debug + 'static,
3073{
3074    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_sender_id::ReleaseSenderIdError, R>) -> Self {
3075        match err {
3076            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3077            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3078                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3079                source: err.into(),
3080            }),
3081        }
3082    }
3083}
3084impl From<crate::operation::release_sender_id::ReleaseSenderIdError> for Error {
3085    fn from(err: crate::operation::release_sender_id::ReleaseSenderIdError) -> Self {
3086        match err {
3087            crate::operation::release_sender_id::ReleaseSenderIdError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3088            crate::operation::release_sender_id::ReleaseSenderIdError::ConflictException(inner) => Error::ConflictException(inner),
3089            crate::operation::release_sender_id::ReleaseSenderIdError::InternalServerException(inner) => Error::InternalServerException(inner),
3090            crate::operation::release_sender_id::ReleaseSenderIdError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3091            crate::operation::release_sender_id::ReleaseSenderIdError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3092            crate::operation::release_sender_id::ReleaseSenderIdError::ValidationException(inner) => Error::ValidationException(inner),
3093            crate::operation::release_sender_id::ReleaseSenderIdError::Unhandled(inner) => Error::Unhandled(inner),
3094        }
3095    }
3096}
3097impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_phone_number::RequestPhoneNumberError, R>> for Error
3098where
3099    R: Send + Sync + std::fmt::Debug + 'static,
3100{
3101    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_phone_number::RequestPhoneNumberError, R>) -> Self {
3102        match err {
3103            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3104            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3105                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3106                source: err.into(),
3107            }),
3108        }
3109    }
3110}
3111impl From<crate::operation::request_phone_number::RequestPhoneNumberError> for Error {
3112    fn from(err: crate::operation::request_phone_number::RequestPhoneNumberError) -> Self {
3113        match err {
3114            crate::operation::request_phone_number::RequestPhoneNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3115            crate::operation::request_phone_number::RequestPhoneNumberError::ConflictException(inner) => Error::ConflictException(inner),
3116            crate::operation::request_phone_number::RequestPhoneNumberError::InternalServerException(inner) => Error::InternalServerException(inner),
3117            crate::operation::request_phone_number::RequestPhoneNumberError::ResourceNotFoundException(inner) => {
3118                Error::ResourceNotFoundException(inner)
3119            }
3120            crate::operation::request_phone_number::RequestPhoneNumberError::ServiceQuotaExceededException(inner) => {
3121                Error::ServiceQuotaExceededException(inner)
3122            }
3123            crate::operation::request_phone_number::RequestPhoneNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3124            crate::operation::request_phone_number::RequestPhoneNumberError::ValidationException(inner) => Error::ValidationException(inner),
3125            crate::operation::request_phone_number::RequestPhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
3126        }
3127    }
3128}
3129impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_sender_id::RequestSenderIdError, R>> for Error
3130where
3131    R: Send + Sync + std::fmt::Debug + 'static,
3132{
3133    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_sender_id::RequestSenderIdError, R>) -> Self {
3134        match err {
3135            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3136            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3137                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3138                source: err.into(),
3139            }),
3140        }
3141    }
3142}
3143impl From<crate::operation::request_sender_id::RequestSenderIdError> for Error {
3144    fn from(err: crate::operation::request_sender_id::RequestSenderIdError) -> Self {
3145        match err {
3146            crate::operation::request_sender_id::RequestSenderIdError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3147            crate::operation::request_sender_id::RequestSenderIdError::ConflictException(inner) => Error::ConflictException(inner),
3148            crate::operation::request_sender_id::RequestSenderIdError::InternalServerException(inner) => Error::InternalServerException(inner),
3149            crate::operation::request_sender_id::RequestSenderIdError::ServiceQuotaExceededException(inner) => {
3150                Error::ServiceQuotaExceededException(inner)
3151            }
3152            crate::operation::request_sender_id::RequestSenderIdError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3153            crate::operation::request_sender_id::RequestSenderIdError::ValidationException(inner) => Error::ValidationException(inner),
3154            crate::operation::request_sender_id::RequestSenderIdError::Unhandled(inner) => Error::Unhandled(inner),
3155        }
3156    }
3157}
3158impl<R>
3159    From<
3160        ::aws_smithy_runtime_api::client::result::SdkError<
3161            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError,
3162            R,
3163        >,
3164    > for Error
3165where
3166    R: Send + Sync + std::fmt::Debug + 'static,
3167{
3168    fn from(
3169        err: ::aws_smithy_runtime_api::client::result::SdkError<
3170            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError,
3171            R,
3172        >,
3173    ) -> Self {
3174        match err {
3175            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3176            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3177                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3178                source: err.into(),
3179            }),
3180        }
3181    }
3182}
3183impl From<crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError> for Error {
3184    fn from(err: crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError) -> Self {
3185        match err {
3186            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3187            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::ConflictException(inner) => Error::ConflictException(inner),
3188            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::InternalServerException(inner) => Error::InternalServerException(inner),
3189            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3190            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
3191            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3192            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::ValidationException(inner) => Error::ValidationException(inner),
3193            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::Unhandled(inner) => Error::Unhandled(inner),
3194        }
3195    }
3196}
3197impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_media_message::SendMediaMessageError, R>> for Error
3198where
3199    R: Send + Sync + std::fmt::Debug + 'static,
3200{
3201    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_media_message::SendMediaMessageError, R>) -> Self {
3202        match err {
3203            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3204            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3205                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3206                source: err.into(),
3207            }),
3208        }
3209    }
3210}
3211impl From<crate::operation::send_media_message::SendMediaMessageError> for Error {
3212    fn from(err: crate::operation::send_media_message::SendMediaMessageError) -> Self {
3213        match err {
3214            crate::operation::send_media_message::SendMediaMessageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3215            crate::operation::send_media_message::SendMediaMessageError::ConflictException(inner) => Error::ConflictException(inner),
3216            crate::operation::send_media_message::SendMediaMessageError::InternalServerException(inner) => Error::InternalServerException(inner),
3217            crate::operation::send_media_message::SendMediaMessageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3218            crate::operation::send_media_message::SendMediaMessageError::ServiceQuotaExceededException(inner) => {
3219                Error::ServiceQuotaExceededException(inner)
3220            }
3221            crate::operation::send_media_message::SendMediaMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3222            crate::operation::send_media_message::SendMediaMessageError::ValidationException(inner) => Error::ValidationException(inner),
3223            crate::operation::send_media_message::SendMediaMessageError::Unhandled(inner) => Error::Unhandled(inner),
3224        }
3225    }
3226}
3227impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_notify_text_message::SendNotifyTextMessageError, R>> for Error
3228where
3229    R: Send + Sync + std::fmt::Debug + 'static,
3230{
3231    fn from(
3232        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_notify_text_message::SendNotifyTextMessageError, R>,
3233    ) -> Self {
3234        match err {
3235            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3236            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3237                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3238                source: err.into(),
3239            }),
3240        }
3241    }
3242}
3243impl From<crate::operation::send_notify_text_message::SendNotifyTextMessageError> for Error {
3244    fn from(err: crate::operation::send_notify_text_message::SendNotifyTextMessageError) -> Self {
3245        match err {
3246            crate::operation::send_notify_text_message::SendNotifyTextMessageError::AccessDeniedException(inner) => {
3247                Error::AccessDeniedException(inner)
3248            }
3249            crate::operation::send_notify_text_message::SendNotifyTextMessageError::ConflictException(inner) => Error::ConflictException(inner),
3250            crate::operation::send_notify_text_message::SendNotifyTextMessageError::InternalServerException(inner) => {
3251                Error::InternalServerException(inner)
3252            }
3253            crate::operation::send_notify_text_message::SendNotifyTextMessageError::ResourceNotFoundException(inner) => {
3254                Error::ResourceNotFoundException(inner)
3255            }
3256            crate::operation::send_notify_text_message::SendNotifyTextMessageError::ServiceQuotaExceededException(inner) => {
3257                Error::ServiceQuotaExceededException(inner)
3258            }
3259            crate::operation::send_notify_text_message::SendNotifyTextMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3260            crate::operation::send_notify_text_message::SendNotifyTextMessageError::ValidationException(inner) => Error::ValidationException(inner),
3261            crate::operation::send_notify_text_message::SendNotifyTextMessageError::Unhandled(inner) => Error::Unhandled(inner),
3262        }
3263    }
3264}
3265impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError, R>>
3266    for Error
3267where
3268    R: Send + Sync + std::fmt::Debug + 'static,
3269{
3270    fn from(
3271        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError, R>,
3272    ) -> Self {
3273        match err {
3274            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3275            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3276                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3277                source: err.into(),
3278            }),
3279        }
3280    }
3281}
3282impl From<crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError> for Error {
3283    fn from(err: crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError) -> Self {
3284        match err {
3285            crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError::AccessDeniedException(inner) => {
3286                Error::AccessDeniedException(inner)
3287            }
3288            crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError::ConflictException(inner) => Error::ConflictException(inner),
3289            crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError::InternalServerException(inner) => {
3290                Error::InternalServerException(inner)
3291            }
3292            crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError::ResourceNotFoundException(inner) => {
3293                Error::ResourceNotFoundException(inner)
3294            }
3295            crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError::ServiceQuotaExceededException(inner) => {
3296                Error::ServiceQuotaExceededException(inner)
3297            }
3298            crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3299            crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError::ValidationException(inner) => Error::ValidationException(inner),
3300            crate::operation::send_notify_voice_message::SendNotifyVoiceMessageError::Unhandled(inner) => Error::Unhandled(inner),
3301        }
3302    }
3303}
3304impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_rcs_message::SendRcsMessageError, R>> for Error
3305where
3306    R: Send + Sync + std::fmt::Debug + 'static,
3307{
3308    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_rcs_message::SendRcsMessageError, R>) -> Self {
3309        match err {
3310            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3311            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3312                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3313                source: err.into(),
3314            }),
3315        }
3316    }
3317}
3318impl From<crate::operation::send_rcs_message::SendRcsMessageError> for Error {
3319    fn from(err: crate::operation::send_rcs_message::SendRcsMessageError) -> Self {
3320        match err {
3321            crate::operation::send_rcs_message::SendRcsMessageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3322            crate::operation::send_rcs_message::SendRcsMessageError::ConflictException(inner) => Error::ConflictException(inner),
3323            crate::operation::send_rcs_message::SendRcsMessageError::InternalServerException(inner) => Error::InternalServerException(inner),
3324            crate::operation::send_rcs_message::SendRcsMessageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3325            crate::operation::send_rcs_message::SendRcsMessageError::ServiceQuotaExceededException(inner) => {
3326                Error::ServiceQuotaExceededException(inner)
3327            }
3328            crate::operation::send_rcs_message::SendRcsMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3329            crate::operation::send_rcs_message::SendRcsMessageError::ValidationException(inner) => Error::ValidationException(inner),
3330            crate::operation::send_rcs_message::SendRcsMessageError::Unhandled(inner) => Error::Unhandled(inner),
3331        }
3332    }
3333}
3334impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_text_message::SendTextMessageError, R>> for Error
3335where
3336    R: Send + Sync + std::fmt::Debug + 'static,
3337{
3338    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_text_message::SendTextMessageError, R>) -> Self {
3339        match err {
3340            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3341            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3342                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3343                source: err.into(),
3344            }),
3345        }
3346    }
3347}
3348impl From<crate::operation::send_text_message::SendTextMessageError> for Error {
3349    fn from(err: crate::operation::send_text_message::SendTextMessageError) -> Self {
3350        match err {
3351            crate::operation::send_text_message::SendTextMessageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3352            crate::operation::send_text_message::SendTextMessageError::ConflictException(inner) => Error::ConflictException(inner),
3353            crate::operation::send_text_message::SendTextMessageError::InternalServerException(inner) => Error::InternalServerException(inner),
3354            crate::operation::send_text_message::SendTextMessageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3355            crate::operation::send_text_message::SendTextMessageError::ServiceQuotaExceededException(inner) => {
3356                Error::ServiceQuotaExceededException(inner)
3357            }
3358            crate::operation::send_text_message::SendTextMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3359            crate::operation::send_text_message::SendTextMessageError::ValidationException(inner) => Error::ValidationException(inner),
3360            crate::operation::send_text_message::SendTextMessageError::Unhandled(inner) => Error::Unhandled(inner),
3361        }
3362    }
3363}
3364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_voice_message::SendVoiceMessageError, R>> for Error
3365where
3366    R: Send + Sync + std::fmt::Debug + 'static,
3367{
3368    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_voice_message::SendVoiceMessageError, R>) -> Self {
3369        match err {
3370            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3371            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3372                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3373                source: err.into(),
3374            }),
3375        }
3376    }
3377}
3378impl From<crate::operation::send_voice_message::SendVoiceMessageError> for Error {
3379    fn from(err: crate::operation::send_voice_message::SendVoiceMessageError) -> Self {
3380        match err {
3381            crate::operation::send_voice_message::SendVoiceMessageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3382            crate::operation::send_voice_message::SendVoiceMessageError::ConflictException(inner) => Error::ConflictException(inner),
3383            crate::operation::send_voice_message::SendVoiceMessageError::InternalServerException(inner) => Error::InternalServerException(inner),
3384            crate::operation::send_voice_message::SendVoiceMessageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3385            crate::operation::send_voice_message::SendVoiceMessageError::ServiceQuotaExceededException(inner) => {
3386                Error::ServiceQuotaExceededException(inner)
3387            }
3388            crate::operation::send_voice_message::SendVoiceMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3389            crate::operation::send_voice_message::SendVoiceMessageError::ValidationException(inner) => Error::ValidationException(inner),
3390            crate::operation::send_voice_message::SendVoiceMessageError::Unhandled(inner) => Error::Unhandled(inner),
3391        }
3392    }
3393}
3394impl<R>
3395    From<
3396        ::aws_smithy_runtime_api::client::result::SdkError<
3397            crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError,
3398            R,
3399        >,
3400    > for Error
3401where
3402    R: Send + Sync + std::fmt::Debug + 'static,
3403{
3404    fn from(
3405        err: ::aws_smithy_runtime_api::client::result::SdkError<
3406            crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError,
3407            R,
3408        >,
3409    ) -> Self {
3410        match err {
3411            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3412            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3413                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3414                source: err.into(),
3415            }),
3416        }
3417    }
3418}
3419impl From<crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError> for Error {
3420    fn from(err: crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError) -> Self {
3421        match err {
3422            crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::AccessDeniedException(inner) => {
3423                Error::AccessDeniedException(inner)
3424            }
3425            crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::InternalServerException(
3426                inner,
3427            ) => Error::InternalServerException(inner),
3428            crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::ResourceNotFoundException(
3429                inner,
3430            ) => Error::ResourceNotFoundException(inner),
3431            crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::ThrottlingException(inner) => {
3432                Error::ThrottlingException(inner)
3433            }
3434            crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::ValidationException(inner) => {
3435                Error::ValidationException(inner)
3436            }
3437            crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::Unhandled(inner) => {
3438                Error::Unhandled(inner)
3439            }
3440        }
3441    }
3442}
3443impl<R>
3444    From<
3445        ::aws_smithy_runtime_api::client::result::SdkError<
3446            crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError,
3447            R,
3448        >,
3449    > for Error
3450where
3451    R: Send + Sync + std::fmt::Debug + 'static,
3452{
3453    fn from(
3454        err: ::aws_smithy_runtime_api::client::result::SdkError<
3455            crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError,
3456            R,
3457        >,
3458    ) -> Self {
3459        match err {
3460            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3461            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3462                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3463                source: err.into(),
3464            }),
3465        }
3466    }
3467}
3468impl From<crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError> for Error {
3469    fn from(err: crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError) -> Self {
3470        match err {
3471            crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::AccessDeniedException(inner) => {
3472                Error::AccessDeniedException(inner)
3473            }
3474            crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::InternalServerException(inner) => {
3475                Error::InternalServerException(inner)
3476            }
3477            crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::ResourceNotFoundException(inner) => {
3478                Error::ResourceNotFoundException(inner)
3479            }
3480            crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::ThrottlingException(inner) => {
3481                Error::ThrottlingException(inner)
3482            }
3483            crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::ValidationException(inner) => {
3484                Error::ValidationException(inner)
3485            }
3486            crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::Unhandled(inner) => {
3487                Error::Unhandled(inner)
3488            }
3489        }
3490    }
3491}
3492impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_default_message_type::SetDefaultMessageTypeError, R>> for Error
3493where
3494    R: Send + Sync + std::fmt::Debug + 'static,
3495{
3496    fn from(
3497        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_default_message_type::SetDefaultMessageTypeError, R>,
3498    ) -> Self {
3499        match err {
3500            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3501            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3502                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3503                source: err.into(),
3504            }),
3505        }
3506    }
3507}
3508impl From<crate::operation::set_default_message_type::SetDefaultMessageTypeError> for Error {
3509    fn from(err: crate::operation::set_default_message_type::SetDefaultMessageTypeError) -> Self {
3510        match err {
3511            crate::operation::set_default_message_type::SetDefaultMessageTypeError::AccessDeniedException(inner) => {
3512                Error::AccessDeniedException(inner)
3513            }
3514            crate::operation::set_default_message_type::SetDefaultMessageTypeError::InternalServerException(inner) => {
3515                Error::InternalServerException(inner)
3516            }
3517            crate::operation::set_default_message_type::SetDefaultMessageTypeError::ResourceNotFoundException(inner) => {
3518                Error::ResourceNotFoundException(inner)
3519            }
3520            crate::operation::set_default_message_type::SetDefaultMessageTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3521            crate::operation::set_default_message_type::SetDefaultMessageTypeError::ValidationException(inner) => Error::ValidationException(inner),
3522            crate::operation::set_default_message_type::SetDefaultMessageTypeError::Unhandled(inner) => Error::Unhandled(inner),
3523        }
3524    }
3525}
3526impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_default_sender_id::SetDefaultSenderIdError, R>> for Error
3527where
3528    R: Send + Sync + std::fmt::Debug + 'static,
3529{
3530    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_default_sender_id::SetDefaultSenderIdError, R>) -> Self {
3531        match err {
3532            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3533            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3534                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3535                source: err.into(),
3536            }),
3537        }
3538    }
3539}
3540impl From<crate::operation::set_default_sender_id::SetDefaultSenderIdError> for Error {
3541    fn from(err: crate::operation::set_default_sender_id::SetDefaultSenderIdError) -> Self {
3542        match err {
3543            crate::operation::set_default_sender_id::SetDefaultSenderIdError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3544            crate::operation::set_default_sender_id::SetDefaultSenderIdError::InternalServerException(inner) => Error::InternalServerException(inner),
3545            crate::operation::set_default_sender_id::SetDefaultSenderIdError::ResourceNotFoundException(inner) => {
3546                Error::ResourceNotFoundException(inner)
3547            }
3548            crate::operation::set_default_sender_id::SetDefaultSenderIdError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3549            crate::operation::set_default_sender_id::SetDefaultSenderIdError::ValidationException(inner) => Error::ValidationException(inner),
3550            crate::operation::set_default_sender_id::SetDefaultSenderIdError::Unhandled(inner) => Error::Unhandled(inner),
3551        }
3552    }
3553}
3554impl<R>
3555    From<
3556        ::aws_smithy_runtime_api::client::result::SdkError<
3557            crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError,
3558            R,
3559        >,
3560    > for Error
3561where
3562    R: Send + Sync + std::fmt::Debug + 'static,
3563{
3564    fn from(
3565        err: ::aws_smithy_runtime_api::client::result::SdkError<
3566            crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError,
3567            R,
3568        >,
3569    ) -> Self {
3570        match err {
3571            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3572            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3573                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3574                source: err.into(),
3575            }),
3576        }
3577    }
3578}
3579impl From<crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError> for Error {
3580    fn from(err: crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError) -> Self {
3581        match err {
3582            crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
3583                Error::AccessDeniedException(inner)
3584            }
3585            crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError::InternalServerException(inner) => {
3586                Error::InternalServerException(inner)
3587            }
3588            crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError::ThrottlingException(inner) => {
3589                Error::ThrottlingException(inner)
3590            }
3591            crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError::ValidationException(inner) => {
3592                Error::ValidationException(inner)
3593            }
3594            crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError::Unhandled(inner) => {
3595                Error::Unhandled(inner)
3596            }
3597        }
3598    }
3599}
3600impl<R>
3601    From<
3602        ::aws_smithy_runtime_api::client::result::SdkError<
3603            crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError,
3604            R,
3605        >,
3606    > for Error
3607where
3608    R: Send + Sync + std::fmt::Debug + 'static,
3609{
3610    fn from(
3611        err: ::aws_smithy_runtime_api::client::result::SdkError<
3612            crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError,
3613            R,
3614        >,
3615    ) -> Self {
3616        match err {
3617            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3618            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3619                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3620                source: err.into(),
3621            }),
3622        }
3623    }
3624}
3625impl From<crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError> for Error {
3626    fn from(err: crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError) -> Self {
3627        match err {
3628            crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
3629                Error::AccessDeniedException(inner)
3630            }
3631            crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError::InternalServerException(inner) => {
3632                Error::InternalServerException(inner)
3633            }
3634            crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError::ThrottlingException(inner) => {
3635                Error::ThrottlingException(inner)
3636            }
3637            crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError::ValidationException(inner) => {
3638                Error::ValidationException(inner)
3639            }
3640            crate::operation::set_notify_message_spend_limit_override::SetNotifyMessageSpendLimitOverrideError::Unhandled(inner) => {
3641                Error::Unhandled(inner)
3642            }
3643        }
3644    }
3645}
3646impl<R>
3647    From<
3648        ::aws_smithy_runtime_api::client::result::SdkError<
3649            crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError,
3650            R,
3651        >,
3652    > for Error
3653where
3654    R: Send + Sync + std::fmt::Debug + 'static,
3655{
3656    fn from(
3657        err: ::aws_smithy_runtime_api::client::result::SdkError<
3658            crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError,
3659            R,
3660        >,
3661    ) -> Self {
3662        match err {
3663            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3664            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3665                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3666                source: err.into(),
3667            }),
3668        }
3669    }
3670}
3671impl From<crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError> for Error {
3672    fn from(err: crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError) -> Self {
3673        match err {
3674            crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
3675                Error::AccessDeniedException(inner)
3676            }
3677            crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError::InternalServerException(inner) => {
3678                Error::InternalServerException(inner)
3679            }
3680            crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError::ThrottlingException(inner) => {
3681                Error::ThrottlingException(inner)
3682            }
3683            crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError::ValidationException(inner) => {
3684                Error::ValidationException(inner)
3685            }
3686            crate::operation::set_rcs_message_spend_limit_override::SetRcsMessageSpendLimitOverrideError::Unhandled(inner) => Error::Unhandled(inner),
3687        }
3688    }
3689}
3690impl<R>
3691    From<
3692        ::aws_smithy_runtime_api::client::result::SdkError<
3693            crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError,
3694            R,
3695        >,
3696    > for Error
3697where
3698    R: Send + Sync + std::fmt::Debug + 'static,
3699{
3700    fn from(
3701        err: ::aws_smithy_runtime_api::client::result::SdkError<
3702            crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError,
3703            R,
3704        >,
3705    ) -> Self {
3706        match err {
3707            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3708            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3709                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3710                source: err.into(),
3711            }),
3712        }
3713    }
3714}
3715impl From<crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError> for Error {
3716    fn from(err: crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError) -> Self {
3717        match err {
3718            crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
3719                Error::AccessDeniedException(inner)
3720            }
3721            crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError::InternalServerException(inner) => {
3722                Error::InternalServerException(inner)
3723            }
3724            crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError::ThrottlingException(inner) => {
3725                Error::ThrottlingException(inner)
3726            }
3727            crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError::ValidationException(inner) => {
3728                Error::ValidationException(inner)
3729            }
3730            crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError::Unhandled(inner) => {
3731                Error::Unhandled(inner)
3732            }
3733        }
3734    }
3735}
3736impl<R>
3737    From<
3738        ::aws_smithy_runtime_api::client::result::SdkError<
3739            crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError,
3740            R,
3741        >,
3742    > for Error
3743where
3744    R: Send + Sync + std::fmt::Debug + 'static,
3745{
3746    fn from(
3747        err: ::aws_smithy_runtime_api::client::result::SdkError<
3748            crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError,
3749            R,
3750        >,
3751    ) -> Self {
3752        match err {
3753            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3754            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3755                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3756                source: err.into(),
3757            }),
3758        }
3759    }
3760}
3761impl From<crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError> for Error {
3762    fn from(err: crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError) -> Self {
3763        match err {
3764            crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
3765                Error::AccessDeniedException(inner)
3766            }
3767            crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError::InternalServerException(inner) => {
3768                Error::InternalServerException(inner)
3769            }
3770            crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError::ThrottlingException(inner) => {
3771                Error::ThrottlingException(inner)
3772            }
3773            crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError::ValidationException(inner) => {
3774                Error::ValidationException(inner)
3775            }
3776            crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError::Unhandled(inner) => {
3777                Error::Unhandled(inner)
3778            }
3779        }
3780    }
3781}
3782impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::submit_registration_version::SubmitRegistrationVersionError, R>>
3783    for Error
3784where
3785    R: Send + Sync + std::fmt::Debug + 'static,
3786{
3787    fn from(
3788        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::submit_registration_version::SubmitRegistrationVersionError, R>,
3789    ) -> Self {
3790        match err {
3791            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3792            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3793                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3794                source: err.into(),
3795            }),
3796        }
3797    }
3798}
3799impl From<crate::operation::submit_registration_version::SubmitRegistrationVersionError> for Error {
3800    fn from(err: crate::operation::submit_registration_version::SubmitRegistrationVersionError) -> Self {
3801        match err {
3802            crate::operation::submit_registration_version::SubmitRegistrationVersionError::AccessDeniedException(inner) => {
3803                Error::AccessDeniedException(inner)
3804            }
3805            crate::operation::submit_registration_version::SubmitRegistrationVersionError::ConflictException(inner) => {
3806                Error::ConflictException(inner)
3807            }
3808            crate::operation::submit_registration_version::SubmitRegistrationVersionError::InternalServerException(inner) => {
3809                Error::InternalServerException(inner)
3810            }
3811            crate::operation::submit_registration_version::SubmitRegistrationVersionError::ResourceNotFoundException(inner) => {
3812                Error::ResourceNotFoundException(inner)
3813            }
3814            crate::operation::submit_registration_version::SubmitRegistrationVersionError::ThrottlingException(inner) => {
3815                Error::ThrottlingException(inner)
3816            }
3817            crate::operation::submit_registration_version::SubmitRegistrationVersionError::ValidationException(inner) => {
3818                Error::ValidationException(inner)
3819            }
3820            crate::operation::submit_registration_version::SubmitRegistrationVersionError::Unhandled(inner) => Error::Unhandled(inner),
3821        }
3822    }
3823}
3824impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
3825where
3826    R: Send + Sync + std::fmt::Debug + 'static,
3827{
3828    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
3829        match err {
3830            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3831            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3832                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3833                source: err.into(),
3834            }),
3835        }
3836    }
3837}
3838impl From<crate::operation::tag_resource::TagResourceError> for Error {
3839    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
3840        match err {
3841            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3842            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
3843            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3844            crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
3845            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3846            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
3847            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3848        }
3849    }
3850}
3851impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
3852where
3853    R: Send + Sync + std::fmt::Debug + 'static,
3854{
3855    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
3856        match err {
3857            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3858            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3859                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3860                source: err.into(),
3861            }),
3862        }
3863    }
3864}
3865impl From<crate::operation::untag_resource::UntagResourceError> for Error {
3866    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
3867        match err {
3868            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3869            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
3870            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3871            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3872            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
3873            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3874        }
3875    }
3876}
3877impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_event_destination::UpdateEventDestinationError, R>> for Error
3878where
3879    R: Send + Sync + std::fmt::Debug + 'static,
3880{
3881    fn from(
3882        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_event_destination::UpdateEventDestinationError, R>,
3883    ) -> Self {
3884        match err {
3885            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3886            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3887                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3888                source: err.into(),
3889            }),
3890        }
3891    }
3892}
3893impl From<crate::operation::update_event_destination::UpdateEventDestinationError> for Error {
3894    fn from(err: crate::operation::update_event_destination::UpdateEventDestinationError) -> Self {
3895        match err {
3896            crate::operation::update_event_destination::UpdateEventDestinationError::AccessDeniedException(inner) => {
3897                Error::AccessDeniedException(inner)
3898            }
3899            crate::operation::update_event_destination::UpdateEventDestinationError::ConflictException(inner) => Error::ConflictException(inner),
3900            crate::operation::update_event_destination::UpdateEventDestinationError::InternalServerException(inner) => {
3901                Error::InternalServerException(inner)
3902            }
3903            crate::operation::update_event_destination::UpdateEventDestinationError::ResourceNotFoundException(inner) => {
3904                Error::ResourceNotFoundException(inner)
3905            }
3906            crate::operation::update_event_destination::UpdateEventDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3907            crate::operation::update_event_destination::UpdateEventDestinationError::ValidationException(inner) => Error::ValidationException(inner),
3908            crate::operation::update_event_destination::UpdateEventDestinationError::Unhandled(inner) => Error::Unhandled(inner),
3909        }
3910    }
3911}
3912impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notify_configuration::UpdateNotifyConfigurationError, R>>
3913    for Error
3914where
3915    R: Send + Sync + std::fmt::Debug + 'static,
3916{
3917    fn from(
3918        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notify_configuration::UpdateNotifyConfigurationError, R>,
3919    ) -> Self {
3920        match err {
3921            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3922            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3923                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3924                source: err.into(),
3925            }),
3926        }
3927    }
3928}
3929impl From<crate::operation::update_notify_configuration::UpdateNotifyConfigurationError> for Error {
3930    fn from(err: crate::operation::update_notify_configuration::UpdateNotifyConfigurationError) -> Self {
3931        match err {
3932            crate::operation::update_notify_configuration::UpdateNotifyConfigurationError::AccessDeniedException(inner) => {
3933                Error::AccessDeniedException(inner)
3934            }
3935            crate::operation::update_notify_configuration::UpdateNotifyConfigurationError::ConflictException(inner) => {
3936                Error::ConflictException(inner)
3937            }
3938            crate::operation::update_notify_configuration::UpdateNotifyConfigurationError::InternalServerException(inner) => {
3939                Error::InternalServerException(inner)
3940            }
3941            crate::operation::update_notify_configuration::UpdateNotifyConfigurationError::ResourceNotFoundException(inner) => {
3942                Error::ResourceNotFoundException(inner)
3943            }
3944            crate::operation::update_notify_configuration::UpdateNotifyConfigurationError::ThrottlingException(inner) => {
3945                Error::ThrottlingException(inner)
3946            }
3947            crate::operation::update_notify_configuration::UpdateNotifyConfigurationError::ValidationException(inner) => {
3948                Error::ValidationException(inner)
3949            }
3950            crate::operation::update_notify_configuration::UpdateNotifyConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3951        }
3952    }
3953}
3954impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_phone_number::UpdatePhoneNumberError, R>> for Error
3955where
3956    R: Send + Sync + std::fmt::Debug + 'static,
3957{
3958    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_phone_number::UpdatePhoneNumberError, R>) -> Self {
3959        match err {
3960            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3961            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3962                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3963                source: err.into(),
3964            }),
3965        }
3966    }
3967}
3968impl From<crate::operation::update_phone_number::UpdatePhoneNumberError> for Error {
3969    fn from(err: crate::operation::update_phone_number::UpdatePhoneNumberError) -> Self {
3970        match err {
3971            crate::operation::update_phone_number::UpdatePhoneNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3972            crate::operation::update_phone_number::UpdatePhoneNumberError::ConflictException(inner) => Error::ConflictException(inner),
3973            crate::operation::update_phone_number::UpdatePhoneNumberError::InternalServerException(inner) => Error::InternalServerException(inner),
3974            crate::operation::update_phone_number::UpdatePhoneNumberError::ResourceNotFoundException(inner) => {
3975                Error::ResourceNotFoundException(inner)
3976            }
3977            crate::operation::update_phone_number::UpdatePhoneNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3978            crate::operation::update_phone_number::UpdatePhoneNumberError::ValidationException(inner) => Error::ValidationException(inner),
3979            crate::operation::update_phone_number::UpdatePhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
3980        }
3981    }
3982}
3983impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pool::UpdatePoolError, R>> for Error
3984where
3985    R: Send + Sync + std::fmt::Debug + 'static,
3986{
3987    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pool::UpdatePoolError, R>) -> Self {
3988        match err {
3989            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3990            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3991                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3992                source: err.into(),
3993            }),
3994        }
3995    }
3996}
3997impl From<crate::operation::update_pool::UpdatePoolError> for Error {
3998    fn from(err: crate::operation::update_pool::UpdatePoolError) -> Self {
3999        match err {
4000            crate::operation::update_pool::UpdatePoolError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4001            crate::operation::update_pool::UpdatePoolError::ConflictException(inner) => Error::ConflictException(inner),
4002            crate::operation::update_pool::UpdatePoolError::InternalServerException(inner) => Error::InternalServerException(inner),
4003            crate::operation::update_pool::UpdatePoolError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4004            crate::operation::update_pool::UpdatePoolError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4005            crate::operation::update_pool::UpdatePoolError::ValidationException(inner) => Error::ValidationException(inner),
4006            crate::operation::update_pool::UpdatePoolError::Unhandled(inner) => Error::Unhandled(inner),
4007        }
4008    }
4009}
4010impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_protect_configuration::UpdateProtectConfigurationError, R>>
4011    for Error
4012where
4013    R: Send + Sync + std::fmt::Debug + 'static,
4014{
4015    fn from(
4016        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_protect_configuration::UpdateProtectConfigurationError, R>,
4017    ) -> Self {
4018        match err {
4019            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4020            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4021                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4022                source: err.into(),
4023            }),
4024        }
4025    }
4026}
4027impl From<crate::operation::update_protect_configuration::UpdateProtectConfigurationError> for Error {
4028    fn from(err: crate::operation::update_protect_configuration::UpdateProtectConfigurationError) -> Self {
4029        match err {
4030            crate::operation::update_protect_configuration::UpdateProtectConfigurationError::AccessDeniedException(inner) => {
4031                Error::AccessDeniedException(inner)
4032            }
4033            crate::operation::update_protect_configuration::UpdateProtectConfigurationError::InternalServerException(inner) => {
4034                Error::InternalServerException(inner)
4035            }
4036            crate::operation::update_protect_configuration::UpdateProtectConfigurationError::ResourceNotFoundException(inner) => {
4037                Error::ResourceNotFoundException(inner)
4038            }
4039            crate::operation::update_protect_configuration::UpdateProtectConfigurationError::ThrottlingException(inner) => {
4040                Error::ThrottlingException(inner)
4041            }
4042            crate::operation::update_protect_configuration::UpdateProtectConfigurationError::ValidationException(inner) => {
4043                Error::ValidationException(inner)
4044            }
4045            crate::operation::update_protect_configuration::UpdateProtectConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
4046        }
4047    }
4048}
4049impl<R>
4050    From<
4051        ::aws_smithy_runtime_api::client::result::SdkError<
4052            crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError,
4053            R,
4054        >,
4055    > for Error
4056where
4057    R: Send + Sync + std::fmt::Debug + 'static,
4058{
4059    fn from(
4060        err: ::aws_smithy_runtime_api::client::result::SdkError<
4061            crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError,
4062            R,
4063        >,
4064    ) -> Self {
4065        match err {
4066            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4067            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4068                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4069                source: err.into(),
4070            }),
4071        }
4072    }
4073}
4074impl From<crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError> for Error {
4075    fn from(err: crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError) -> Self {
4076        match err {
4077            crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4078            crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::InternalServerException(inner) => Error::InternalServerException(inner),
4079            crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4080            crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4081            crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::ValidationException(inner) => Error::ValidationException(inner),
4082            crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
4083        }
4084    }
4085}
4086impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rcs_agent::UpdateRcsAgentError, R>> for Error
4087where
4088    R: Send + Sync + std::fmt::Debug + 'static,
4089{
4090    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rcs_agent::UpdateRcsAgentError, R>) -> Self {
4091        match err {
4092            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4093            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4094                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4095                source: err.into(),
4096            }),
4097        }
4098    }
4099}
4100impl From<crate::operation::update_rcs_agent::UpdateRcsAgentError> for Error {
4101    fn from(err: crate::operation::update_rcs_agent::UpdateRcsAgentError) -> Self {
4102        match err {
4103            crate::operation::update_rcs_agent::UpdateRcsAgentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4104            crate::operation::update_rcs_agent::UpdateRcsAgentError::ConflictException(inner) => Error::ConflictException(inner),
4105            crate::operation::update_rcs_agent::UpdateRcsAgentError::InternalServerException(inner) => Error::InternalServerException(inner),
4106            crate::operation::update_rcs_agent::UpdateRcsAgentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4107            crate::operation::update_rcs_agent::UpdateRcsAgentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4108            crate::operation::update_rcs_agent::UpdateRcsAgentError::ValidationException(inner) => Error::ValidationException(inner),
4109            crate::operation::update_rcs_agent::UpdateRcsAgentError::Unhandled(inner) => Error::Unhandled(inner),
4110        }
4111    }
4112}
4113impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_sender_id::UpdateSenderIdError, R>> for Error
4114where
4115    R: Send + Sync + std::fmt::Debug + 'static,
4116{
4117    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_sender_id::UpdateSenderIdError, R>) -> Self {
4118        match err {
4119            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4120            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4121                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4122                source: err.into(),
4123            }),
4124        }
4125    }
4126}
4127impl From<crate::operation::update_sender_id::UpdateSenderIdError> for Error {
4128    fn from(err: crate::operation::update_sender_id::UpdateSenderIdError) -> Self {
4129        match err {
4130            crate::operation::update_sender_id::UpdateSenderIdError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4131            crate::operation::update_sender_id::UpdateSenderIdError::InternalServerException(inner) => Error::InternalServerException(inner),
4132            crate::operation::update_sender_id::UpdateSenderIdError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4133            crate::operation::update_sender_id::UpdateSenderIdError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4134            crate::operation::update_sender_id::UpdateSenderIdError::ValidationException(inner) => Error::ValidationException(inner),
4135            crate::operation::update_sender_id::UpdateSenderIdError::Unhandled(inner) => Error::Unhandled(inner),
4136        }
4137    }
4138}
4139impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_destination_number::VerifyDestinationNumberError, R>>
4140    for Error
4141where
4142    R: Send + Sync + std::fmt::Debug + 'static,
4143{
4144    fn from(
4145        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_destination_number::VerifyDestinationNumberError, R>,
4146    ) -> Self {
4147        match err {
4148            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4149            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4150                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4151                source: err.into(),
4152            }),
4153        }
4154    }
4155}
4156impl From<crate::operation::verify_destination_number::VerifyDestinationNumberError> for Error {
4157    fn from(err: crate::operation::verify_destination_number::VerifyDestinationNumberError) -> Self {
4158        match err {
4159            crate::operation::verify_destination_number::VerifyDestinationNumberError::AccessDeniedException(inner) => {
4160                Error::AccessDeniedException(inner)
4161            }
4162            crate::operation::verify_destination_number::VerifyDestinationNumberError::ConflictException(inner) => Error::ConflictException(inner),
4163            crate::operation::verify_destination_number::VerifyDestinationNumberError::InternalServerException(inner) => {
4164                Error::InternalServerException(inner)
4165            }
4166            crate::operation::verify_destination_number::VerifyDestinationNumberError::ResourceNotFoundException(inner) => {
4167                Error::ResourceNotFoundException(inner)
4168            }
4169            crate::operation::verify_destination_number::VerifyDestinationNumberError::ThrottlingException(inner) => {
4170                Error::ThrottlingException(inner)
4171            }
4172            crate::operation::verify_destination_number::VerifyDestinationNumberError::ValidationException(inner) => {
4173                Error::ValidationException(inner)
4174            }
4175            crate::operation::verify_destination_number::VerifyDestinationNumberError::Unhandled(inner) => Error::Unhandled(inner),
4176        }
4177    }
4178}
4179impl ::std::error::Error for Error {
4180    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
4181        match self {
4182            Error::AccessDeniedException(inner) => inner.source(),
4183            Error::ConflictException(inner) => inner.source(),
4184            Error::InternalServerException(inner) => inner.source(),
4185            Error::ResourceNotFoundException(inner) => inner.source(),
4186            Error::ServiceQuotaExceededException(inner) => inner.source(),
4187            Error::ThrottlingException(inner) => inner.source(),
4188            Error::ValidationException(inner) => inner.source(),
4189            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
4190        }
4191    }
4192}
4193impl ::aws_types::request_id::RequestId for Error {
4194    fn request_id(&self) -> Option<&str> {
4195        match self {
4196            Self::AccessDeniedException(e) => e.request_id(),
4197            Self::ConflictException(e) => e.request_id(),
4198            Self::InternalServerException(e) => e.request_id(),
4199            Self::ResourceNotFoundException(e) => e.request_id(),
4200            Self::ServiceQuotaExceededException(e) => e.request_id(),
4201            Self::ThrottlingException(e) => e.request_id(),
4202            Self::ValidationException(e) => e.request_id(),
4203            Self::Unhandled(e) => e.meta.request_id(),
4204        }
4205    }
4206}