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::create_configuration_set::CreateConfigurationSetError, R>> for Error
167where
168    R: Send + Sync + std::fmt::Debug + 'static,
169{
170    fn from(
171        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_configuration_set::CreateConfigurationSetError, R>,
172    ) -> Self {
173        match err {
174            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
175            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
176                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
177                source: err.into(),
178            }),
179        }
180    }
181}
182impl From<crate::operation::create_configuration_set::CreateConfigurationSetError> for Error {
183    fn from(err: crate::operation::create_configuration_set::CreateConfigurationSetError) -> Self {
184        match err {
185            crate::operation::create_configuration_set::CreateConfigurationSetError::AccessDeniedException(inner) => {
186                Error::AccessDeniedException(inner)
187            }
188            crate::operation::create_configuration_set::CreateConfigurationSetError::ConflictException(inner) => Error::ConflictException(inner),
189            crate::operation::create_configuration_set::CreateConfigurationSetError::InternalServerException(inner) => {
190                Error::InternalServerException(inner)
191            }
192            crate::operation::create_configuration_set::CreateConfigurationSetError::ServiceQuotaExceededException(inner) => {
193                Error::ServiceQuotaExceededException(inner)
194            }
195            crate::operation::create_configuration_set::CreateConfigurationSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
196            crate::operation::create_configuration_set::CreateConfigurationSetError::ValidationException(inner) => Error::ValidationException(inner),
197            crate::operation::create_configuration_set::CreateConfigurationSetError::Unhandled(inner) => Error::Unhandled(inner),
198        }
199    }
200}
201impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_destination::CreateEventDestinationError, R>> for Error
202where
203    R: Send + Sync + std::fmt::Debug + 'static,
204{
205    fn from(
206        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_destination::CreateEventDestinationError, R>,
207    ) -> Self {
208        match err {
209            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
210            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
211                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
212                source: err.into(),
213            }),
214        }
215    }
216}
217impl From<crate::operation::create_event_destination::CreateEventDestinationError> for Error {
218    fn from(err: crate::operation::create_event_destination::CreateEventDestinationError) -> Self {
219        match err {
220            crate::operation::create_event_destination::CreateEventDestinationError::AccessDeniedException(inner) => {
221                Error::AccessDeniedException(inner)
222            }
223            crate::operation::create_event_destination::CreateEventDestinationError::ConflictException(inner) => Error::ConflictException(inner),
224            crate::operation::create_event_destination::CreateEventDestinationError::InternalServerException(inner) => {
225                Error::InternalServerException(inner)
226            }
227            crate::operation::create_event_destination::CreateEventDestinationError::ResourceNotFoundException(inner) => {
228                Error::ResourceNotFoundException(inner)
229            }
230            crate::operation::create_event_destination::CreateEventDestinationError::ServiceQuotaExceededException(inner) => {
231                Error::ServiceQuotaExceededException(inner)
232            }
233            crate::operation::create_event_destination::CreateEventDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
234            crate::operation::create_event_destination::CreateEventDestinationError::ValidationException(inner) => Error::ValidationException(inner),
235            crate::operation::create_event_destination::CreateEventDestinationError::Unhandled(inner) => Error::Unhandled(inner),
236        }
237    }
238}
239impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_opt_out_list::CreateOptOutListError, R>> for Error
240where
241    R: Send + Sync + std::fmt::Debug + 'static,
242{
243    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_opt_out_list::CreateOptOutListError, R>) -> Self {
244        match err {
245            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
246            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
247                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
248                source: err.into(),
249            }),
250        }
251    }
252}
253impl From<crate::operation::create_opt_out_list::CreateOptOutListError> for Error {
254    fn from(err: crate::operation::create_opt_out_list::CreateOptOutListError) -> Self {
255        match err {
256            crate::operation::create_opt_out_list::CreateOptOutListError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
257            crate::operation::create_opt_out_list::CreateOptOutListError::ConflictException(inner) => Error::ConflictException(inner),
258            crate::operation::create_opt_out_list::CreateOptOutListError::InternalServerException(inner) => Error::InternalServerException(inner),
259            crate::operation::create_opt_out_list::CreateOptOutListError::ServiceQuotaExceededException(inner) => {
260                Error::ServiceQuotaExceededException(inner)
261            }
262            crate::operation::create_opt_out_list::CreateOptOutListError::ThrottlingException(inner) => Error::ThrottlingException(inner),
263            crate::operation::create_opt_out_list::CreateOptOutListError::ValidationException(inner) => Error::ValidationException(inner),
264            crate::operation::create_opt_out_list::CreateOptOutListError::Unhandled(inner) => Error::Unhandled(inner),
265        }
266    }
267}
268impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pool::CreatePoolError, R>> for Error
269where
270    R: Send + Sync + std::fmt::Debug + 'static,
271{
272    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pool::CreatePoolError, R>) -> 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_pool::CreatePoolError> for Error {
283    fn from(err: crate::operation::create_pool::CreatePoolError) -> Self {
284        match err {
285            crate::operation::create_pool::CreatePoolError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
286            crate::operation::create_pool::CreatePoolError::ConflictException(inner) => Error::ConflictException(inner),
287            crate::operation::create_pool::CreatePoolError::InternalServerException(inner) => Error::InternalServerException(inner),
288            crate::operation::create_pool::CreatePoolError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
289            crate::operation::create_pool::CreatePoolError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
290            crate::operation::create_pool::CreatePoolError::ThrottlingException(inner) => Error::ThrottlingException(inner),
291            crate::operation::create_pool::CreatePoolError::ValidationException(inner) => Error::ValidationException(inner),
292            crate::operation::create_pool::CreatePoolError::Unhandled(inner) => Error::Unhandled(inner),
293        }
294    }
295}
296impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_protect_configuration::CreateProtectConfigurationError, R>>
297    for Error
298where
299    R: Send + Sync + std::fmt::Debug + 'static,
300{
301    fn from(
302        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_protect_configuration::CreateProtectConfigurationError, R>,
303    ) -> Self {
304        match err {
305            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
306            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
307                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
308                source: err.into(),
309            }),
310        }
311    }
312}
313impl From<crate::operation::create_protect_configuration::CreateProtectConfigurationError> for Error {
314    fn from(err: crate::operation::create_protect_configuration::CreateProtectConfigurationError) -> Self {
315        match err {
316            crate::operation::create_protect_configuration::CreateProtectConfigurationError::AccessDeniedException(inner) => {
317                Error::AccessDeniedException(inner)
318            }
319            crate::operation::create_protect_configuration::CreateProtectConfigurationError::ConflictException(inner) => {
320                Error::ConflictException(inner)
321            }
322            crate::operation::create_protect_configuration::CreateProtectConfigurationError::InternalServerException(inner) => {
323                Error::InternalServerException(inner)
324            }
325            crate::operation::create_protect_configuration::CreateProtectConfigurationError::ServiceQuotaExceededException(inner) => {
326                Error::ServiceQuotaExceededException(inner)
327            }
328            crate::operation::create_protect_configuration::CreateProtectConfigurationError::ThrottlingException(inner) => {
329                Error::ThrottlingException(inner)
330            }
331            crate::operation::create_protect_configuration::CreateProtectConfigurationError::ValidationException(inner) => {
332                Error::ValidationException(inner)
333            }
334            crate::operation::create_protect_configuration::CreateProtectConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
335        }
336    }
337}
338impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration::CreateRegistrationError, R>> for Error
339where
340    R: Send + Sync + std::fmt::Debug + 'static,
341{
342    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration::CreateRegistrationError, R>) -> Self {
343        match err {
344            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
345            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
346                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
347                source: err.into(),
348            }),
349        }
350    }
351}
352impl From<crate::operation::create_registration::CreateRegistrationError> for Error {
353    fn from(err: crate::operation::create_registration::CreateRegistrationError) -> Self {
354        match err {
355            crate::operation::create_registration::CreateRegistrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
356            crate::operation::create_registration::CreateRegistrationError::ConflictException(inner) => Error::ConflictException(inner),
357            crate::operation::create_registration::CreateRegistrationError::InternalServerException(inner) => Error::InternalServerException(inner),
358            crate::operation::create_registration::CreateRegistrationError::ServiceQuotaExceededException(inner) => {
359                Error::ServiceQuotaExceededException(inner)
360            }
361            crate::operation::create_registration::CreateRegistrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
362            crate::operation::create_registration::CreateRegistrationError::ValidationException(inner) => Error::ValidationException(inner),
363            crate::operation::create_registration::CreateRegistrationError::Unhandled(inner) => Error::Unhandled(inner),
364        }
365    }
366}
367impl<R>
368    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration_association::CreateRegistrationAssociationError, R>>
369    for Error
370where
371    R: Send + Sync + std::fmt::Debug + 'static,
372{
373    fn from(
374        err: ::aws_smithy_runtime_api::client::result::SdkError<
375            crate::operation::create_registration_association::CreateRegistrationAssociationError,
376            R,
377        >,
378    ) -> Self {
379        match err {
380            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
381            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
382                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
383                source: err.into(),
384            }),
385        }
386    }
387}
388impl From<crate::operation::create_registration_association::CreateRegistrationAssociationError> for Error {
389    fn from(err: crate::operation::create_registration_association::CreateRegistrationAssociationError) -> Self {
390        match err {
391            crate::operation::create_registration_association::CreateRegistrationAssociationError::AccessDeniedException(inner) => {
392                Error::AccessDeniedException(inner)
393            }
394            crate::operation::create_registration_association::CreateRegistrationAssociationError::ConflictException(inner) => {
395                Error::ConflictException(inner)
396            }
397            crate::operation::create_registration_association::CreateRegistrationAssociationError::InternalServerException(inner) => {
398                Error::InternalServerException(inner)
399            }
400            crate::operation::create_registration_association::CreateRegistrationAssociationError::ResourceNotFoundException(inner) => {
401                Error::ResourceNotFoundException(inner)
402            }
403            crate::operation::create_registration_association::CreateRegistrationAssociationError::ServiceQuotaExceededException(inner) => {
404                Error::ServiceQuotaExceededException(inner)
405            }
406            crate::operation::create_registration_association::CreateRegistrationAssociationError::ThrottlingException(inner) => {
407                Error::ThrottlingException(inner)
408            }
409            crate::operation::create_registration_association::CreateRegistrationAssociationError::ValidationException(inner) => {
410                Error::ValidationException(inner)
411            }
412            crate::operation::create_registration_association::CreateRegistrationAssociationError::Unhandled(inner) => Error::Unhandled(inner),
413        }
414    }
415}
416impl<R>
417    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration_attachment::CreateRegistrationAttachmentError, R>>
418    for Error
419where
420    R: Send + Sync + std::fmt::Debug + 'static,
421{
422    fn from(
423        err: ::aws_smithy_runtime_api::client::result::SdkError<
424            crate::operation::create_registration_attachment::CreateRegistrationAttachmentError,
425            R,
426        >,
427    ) -> Self {
428        match err {
429            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
430            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
431                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
432                source: err.into(),
433            }),
434        }
435    }
436}
437impl From<crate::operation::create_registration_attachment::CreateRegistrationAttachmentError> for Error {
438    fn from(err: crate::operation::create_registration_attachment::CreateRegistrationAttachmentError) -> Self {
439        match err {
440            crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::AccessDeniedException(inner) => {
441                Error::AccessDeniedException(inner)
442            }
443            crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::ConflictException(inner) => {
444                Error::ConflictException(inner)
445            }
446            crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::InternalServerException(inner) => {
447                Error::InternalServerException(inner)
448            }
449            crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::ServiceQuotaExceededException(inner) => {
450                Error::ServiceQuotaExceededException(inner)
451            }
452            crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::ThrottlingException(inner) => {
453                Error::ThrottlingException(inner)
454            }
455            crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::ValidationException(inner) => {
456                Error::ValidationException(inner)
457            }
458            crate::operation::create_registration_attachment::CreateRegistrationAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
459        }
460    }
461}
462impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration_version::CreateRegistrationVersionError, R>>
463    for Error
464where
465    R: Send + Sync + std::fmt::Debug + 'static,
466{
467    fn from(
468        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_registration_version::CreateRegistrationVersionError, R>,
469    ) -> Self {
470        match err {
471            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
472            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
473                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
474                source: err.into(),
475            }),
476        }
477    }
478}
479impl From<crate::operation::create_registration_version::CreateRegistrationVersionError> for Error {
480    fn from(err: crate::operation::create_registration_version::CreateRegistrationVersionError) -> Self {
481        match err {
482            crate::operation::create_registration_version::CreateRegistrationVersionError::AccessDeniedException(inner) => {
483                Error::AccessDeniedException(inner)
484            }
485            crate::operation::create_registration_version::CreateRegistrationVersionError::ConflictException(inner) => {
486                Error::ConflictException(inner)
487            }
488            crate::operation::create_registration_version::CreateRegistrationVersionError::InternalServerException(inner) => {
489                Error::InternalServerException(inner)
490            }
491            crate::operation::create_registration_version::CreateRegistrationVersionError::ResourceNotFoundException(inner) => {
492                Error::ResourceNotFoundException(inner)
493            }
494            crate::operation::create_registration_version::CreateRegistrationVersionError::ServiceQuotaExceededException(inner) => {
495                Error::ServiceQuotaExceededException(inner)
496            }
497            crate::operation::create_registration_version::CreateRegistrationVersionError::ThrottlingException(inner) => {
498                Error::ThrottlingException(inner)
499            }
500            crate::operation::create_registration_version::CreateRegistrationVersionError::ValidationException(inner) => {
501                Error::ValidationException(inner)
502            }
503            crate::operation::create_registration_version::CreateRegistrationVersionError::Unhandled(inner) => Error::Unhandled(inner),
504        }
505    }
506}
507impl<R>
508    From<
509        ::aws_smithy_runtime_api::client::result::SdkError<
510            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError,
511            R,
512        >,
513    > for Error
514where
515    R: Send + Sync + std::fmt::Debug + 'static,
516{
517    fn from(
518        err: ::aws_smithy_runtime_api::client::result::SdkError<
519            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError,
520            R,
521        >,
522    ) -> Self {
523        match err {
524            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
525            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
526                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
527                source: err.into(),
528            }),
529        }
530    }
531}
532impl From<crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError> for Error {
533    fn from(err: crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError) -> Self {
534        match err {
535            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::AccessDeniedException(inner) => {
536                Error::AccessDeniedException(inner)
537            }
538            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::ConflictException(inner) => {
539                Error::ConflictException(inner)
540            }
541            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::InternalServerException(inner) => {
542                Error::InternalServerException(inner)
543            }
544            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::ServiceQuotaExceededException(inner) => {
545                Error::ServiceQuotaExceededException(inner)
546            }
547            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::ThrottlingException(inner) => {
548                Error::ThrottlingException(inner)
549            }
550            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::ValidationException(inner) => {
551                Error::ValidationException(inner)
552            }
553            crate::operation::create_verified_destination_number::CreateVerifiedDestinationNumberError::Unhandled(inner) => Error::Unhandled(inner),
554        }
555    }
556}
557impl<R>
558    From<
559        ::aws_smithy_runtime_api::client::result::SdkError<
560            crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError,
561            R,
562        >,
563    > for Error
564where
565    R: Send + Sync + std::fmt::Debug + 'static,
566{
567    fn from(
568        err: ::aws_smithy_runtime_api::client::result::SdkError<
569            crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError,
570            R,
571        >,
572    ) -> Self {
573        match err {
574            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
575            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
576                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
577                source: err.into(),
578            }),
579        }
580    }
581}
582impl From<crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError> for Error {
583    fn from(err: crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError) -> Self {
584        match err {
585            crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
586            crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::InternalServerException(inner) => Error::InternalServerException(inner),
587            crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
588            crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
589            crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::ValidationException(inner) => Error::ValidationException(inner),
590            crate::operation::delete_account_default_protect_configuration::DeleteAccountDefaultProtectConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
591        }
592    }
593}
594impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_set::DeleteConfigurationSetError, R>> for Error
595where
596    R: Send + Sync + std::fmt::Debug + 'static,
597{
598    fn from(
599        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_configuration_set::DeleteConfigurationSetError, R>,
600    ) -> Self {
601        match err {
602            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
603            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
604                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
605                source: err.into(),
606            }),
607        }
608    }
609}
610impl From<crate::operation::delete_configuration_set::DeleteConfigurationSetError> for Error {
611    fn from(err: crate::operation::delete_configuration_set::DeleteConfigurationSetError) -> Self {
612        match err {
613            crate::operation::delete_configuration_set::DeleteConfigurationSetError::AccessDeniedException(inner) => {
614                Error::AccessDeniedException(inner)
615            }
616            crate::operation::delete_configuration_set::DeleteConfigurationSetError::InternalServerException(inner) => {
617                Error::InternalServerException(inner)
618            }
619            crate::operation::delete_configuration_set::DeleteConfigurationSetError::ResourceNotFoundException(inner) => {
620                Error::ResourceNotFoundException(inner)
621            }
622            crate::operation::delete_configuration_set::DeleteConfigurationSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
623            crate::operation::delete_configuration_set::DeleteConfigurationSetError::ValidationException(inner) => Error::ValidationException(inner),
624            crate::operation::delete_configuration_set::DeleteConfigurationSetError::Unhandled(inner) => Error::Unhandled(inner),
625        }
626    }
627}
628impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError, R>>
629    for Error
630where
631    R: Send + Sync + std::fmt::Debug + 'static,
632{
633    fn from(
634        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError, R>,
635    ) -> Self {
636        match err {
637            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
638            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
639                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
640                source: err.into(),
641            }),
642        }
643    }
644}
645impl From<crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError> for Error {
646    fn from(err: crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError) -> Self {
647        match err {
648            crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::AccessDeniedException(inner) => {
649                Error::AccessDeniedException(inner)
650            }
651            crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::InternalServerException(inner) => {
652                Error::InternalServerException(inner)
653            }
654            crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::ResourceNotFoundException(inner) => {
655                Error::ResourceNotFoundException(inner)
656            }
657            crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::ThrottlingException(inner) => {
658                Error::ThrottlingException(inner)
659            }
660            crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::ValidationException(inner) => {
661                Error::ValidationException(inner)
662            }
663            crate::operation::delete_default_message_type::DeleteDefaultMessageTypeError::Unhandled(inner) => Error::Unhandled(inner),
664        }
665    }
666}
667impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError, R>> for Error
668where
669    R: Send + Sync + std::fmt::Debug + 'static,
670{
671    fn from(
672        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError, R>,
673    ) -> Self {
674        match err {
675            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
676            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
677                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
678                source: err.into(),
679            }),
680        }
681    }
682}
683impl From<crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError> for Error {
684    fn from(err: crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError) -> Self {
685        match err {
686            crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::AccessDeniedException(inner) => {
687                Error::AccessDeniedException(inner)
688            }
689            crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::InternalServerException(inner) => {
690                Error::InternalServerException(inner)
691            }
692            crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::ResourceNotFoundException(inner) => {
693                Error::ResourceNotFoundException(inner)
694            }
695            crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::ThrottlingException(inner) => Error::ThrottlingException(inner),
696            crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::ValidationException(inner) => Error::ValidationException(inner),
697            crate::operation::delete_default_sender_id::DeleteDefaultSenderIdError::Unhandled(inner) => Error::Unhandled(inner),
698        }
699    }
700}
701impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_destination::DeleteEventDestinationError, R>> for Error
702where
703    R: Send + Sync + std::fmt::Debug + 'static,
704{
705    fn from(
706        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_destination::DeleteEventDestinationError, R>,
707    ) -> Self {
708        match err {
709            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
710            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
711                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
712                source: err.into(),
713            }),
714        }
715    }
716}
717impl From<crate::operation::delete_event_destination::DeleteEventDestinationError> for Error {
718    fn from(err: crate::operation::delete_event_destination::DeleteEventDestinationError) -> Self {
719        match err {
720            crate::operation::delete_event_destination::DeleteEventDestinationError::AccessDeniedException(inner) => {
721                Error::AccessDeniedException(inner)
722            }
723            crate::operation::delete_event_destination::DeleteEventDestinationError::InternalServerException(inner) => {
724                Error::InternalServerException(inner)
725            }
726            crate::operation::delete_event_destination::DeleteEventDestinationError::ResourceNotFoundException(inner) => {
727                Error::ResourceNotFoundException(inner)
728            }
729            crate::operation::delete_event_destination::DeleteEventDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
730            crate::operation::delete_event_destination::DeleteEventDestinationError::ValidationException(inner) => Error::ValidationException(inner),
731            crate::operation::delete_event_destination::DeleteEventDestinationError::Unhandled(inner) => Error::Unhandled(inner),
732        }
733    }
734}
735impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_keyword::DeleteKeywordError, R>> for Error
736where
737    R: Send + Sync + std::fmt::Debug + 'static,
738{
739    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_keyword::DeleteKeywordError, R>) -> 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_keyword::DeleteKeywordError> for Error {
750    fn from(err: crate::operation::delete_keyword::DeleteKeywordError) -> Self {
751        match err {
752            crate::operation::delete_keyword::DeleteKeywordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
753            crate::operation::delete_keyword::DeleteKeywordError::ConflictException(inner) => Error::ConflictException(inner),
754            crate::operation::delete_keyword::DeleteKeywordError::InternalServerException(inner) => Error::InternalServerException(inner),
755            crate::operation::delete_keyword::DeleteKeywordError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
756            crate::operation::delete_keyword::DeleteKeywordError::ThrottlingException(inner) => Error::ThrottlingException(inner),
757            crate::operation::delete_keyword::DeleteKeywordError::ValidationException(inner) => Error::ValidationException(inner),
758            crate::operation::delete_keyword::DeleteKeywordError::Unhandled(inner) => Error::Unhandled(inner),
759        }
760    }
761}
762impl<R>
763    From<
764        ::aws_smithy_runtime_api::client::result::SdkError<
765            crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError,
766            R,
767        >,
768    > for Error
769where
770    R: Send + Sync + std::fmt::Debug + 'static,
771{
772    fn from(
773        err: ::aws_smithy_runtime_api::client::result::SdkError<
774            crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError,
775            R,
776        >,
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_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError> for Error {
788    fn from(err: crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError) -> Self {
789        match err {
790            crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
791                Error::AccessDeniedException(inner)
792            }
793            crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError::InternalServerException(
794                inner,
795            ) => Error::InternalServerException(inner),
796            crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError::ThrottlingException(inner) => {
797                Error::ThrottlingException(inner)
798            }
799            crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError::ValidationException(inner) => {
800                Error::ValidationException(inner)
801            }
802            crate::operation::delete_media_message_spend_limit_override::DeleteMediaMessageSpendLimitOverrideError::Unhandled(inner) => {
803                Error::Unhandled(inner)
804            }
805        }
806    }
807}
808impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_opted_out_number::DeleteOptedOutNumberError, R>> for Error
809where
810    R: Send + Sync + std::fmt::Debug + 'static,
811{
812    fn from(
813        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_opted_out_number::DeleteOptedOutNumberError, R>,
814    ) -> Self {
815        match err {
816            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
817            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
818                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
819                source: err.into(),
820            }),
821        }
822    }
823}
824impl From<crate::operation::delete_opted_out_number::DeleteOptedOutNumberError> for Error {
825    fn from(err: crate::operation::delete_opted_out_number::DeleteOptedOutNumberError) -> Self {
826        match err {
827            crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
828            crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::ConflictException(inner) => Error::ConflictException(inner),
829            crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::InternalServerException(inner) => {
830                Error::InternalServerException(inner)
831            }
832            crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::ResourceNotFoundException(inner) => {
833                Error::ResourceNotFoundException(inner)
834            }
835            crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
836            crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::ValidationException(inner) => Error::ValidationException(inner),
837            crate::operation::delete_opted_out_number::DeleteOptedOutNumberError::Unhandled(inner) => Error::Unhandled(inner),
838        }
839    }
840}
841impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_opt_out_list::DeleteOptOutListError, R>> for Error
842where
843    R: Send + Sync + std::fmt::Debug + 'static,
844{
845    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_opt_out_list::DeleteOptOutListError, R>) -> Self {
846        match err {
847            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
848            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
849                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
850                source: err.into(),
851            }),
852        }
853    }
854}
855impl From<crate::operation::delete_opt_out_list::DeleteOptOutListError> for Error {
856    fn from(err: crate::operation::delete_opt_out_list::DeleteOptOutListError) -> Self {
857        match err {
858            crate::operation::delete_opt_out_list::DeleteOptOutListError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
859            crate::operation::delete_opt_out_list::DeleteOptOutListError::ConflictException(inner) => Error::ConflictException(inner),
860            crate::operation::delete_opt_out_list::DeleteOptOutListError::InternalServerException(inner) => Error::InternalServerException(inner),
861            crate::operation::delete_opt_out_list::DeleteOptOutListError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
862            crate::operation::delete_opt_out_list::DeleteOptOutListError::ThrottlingException(inner) => Error::ThrottlingException(inner),
863            crate::operation::delete_opt_out_list::DeleteOptOutListError::ValidationException(inner) => Error::ValidationException(inner),
864            crate::operation::delete_opt_out_list::DeleteOptOutListError::Unhandled(inner) => Error::Unhandled(inner),
865        }
866    }
867}
868impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pool::DeletePoolError, R>> for Error
869where
870    R: Send + Sync + std::fmt::Debug + 'static,
871{
872    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pool::DeletePoolError, R>) -> Self {
873        match err {
874            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
875            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
876                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
877                source: err.into(),
878            }),
879        }
880    }
881}
882impl From<crate::operation::delete_pool::DeletePoolError> for Error {
883    fn from(err: crate::operation::delete_pool::DeletePoolError) -> Self {
884        match err {
885            crate::operation::delete_pool::DeletePoolError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
886            crate::operation::delete_pool::DeletePoolError::ConflictException(inner) => Error::ConflictException(inner),
887            crate::operation::delete_pool::DeletePoolError::InternalServerException(inner) => Error::InternalServerException(inner),
888            crate::operation::delete_pool::DeletePoolError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
889            crate::operation::delete_pool::DeletePoolError::ThrottlingException(inner) => Error::ThrottlingException(inner),
890            crate::operation::delete_pool::DeletePoolError::ValidationException(inner) => Error::ValidationException(inner),
891            crate::operation::delete_pool::DeletePoolError::Unhandled(inner) => Error::Unhandled(inner),
892        }
893    }
894}
895impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_protect_configuration::DeleteProtectConfigurationError, R>>
896    for Error
897where
898    R: Send + Sync + std::fmt::Debug + 'static,
899{
900    fn from(
901        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_protect_configuration::DeleteProtectConfigurationError, R>,
902    ) -> Self {
903        match err {
904            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
905            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
906                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
907                source: err.into(),
908            }),
909        }
910    }
911}
912impl From<crate::operation::delete_protect_configuration::DeleteProtectConfigurationError> for Error {
913    fn from(err: crate::operation::delete_protect_configuration::DeleteProtectConfigurationError) -> Self {
914        match err {
915            crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::AccessDeniedException(inner) => {
916                Error::AccessDeniedException(inner)
917            }
918            crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::ConflictException(inner) => {
919                Error::ConflictException(inner)
920            }
921            crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::InternalServerException(inner) => {
922                Error::InternalServerException(inner)
923            }
924            crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::ResourceNotFoundException(inner) => {
925                Error::ResourceNotFoundException(inner)
926            }
927            crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::ThrottlingException(inner) => {
928                Error::ThrottlingException(inner)
929            }
930            crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::ValidationException(inner) => {
931                Error::ValidationException(inner)
932            }
933            crate::operation::delete_protect_configuration::DeleteProtectConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
934        }
935    }
936}
937impl<R>
938    From<
939        ::aws_smithy_runtime_api::client::result::SdkError<
940            crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError,
941            R,
942        >,
943    > for Error
944where
945    R: Send + Sync + std::fmt::Debug + 'static,
946{
947    fn from(
948        err: ::aws_smithy_runtime_api::client::result::SdkError<
949            crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError,
950            R,
951        >,
952    ) -> Self {
953        match err {
954            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
955            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
956                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
957                source: err.into(),
958            }),
959        }
960    }
961}
962impl From<crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError> for Error {
963    fn from(
964        err: crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError,
965    ) -> Self {
966        match err {
967            crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
968            crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::InternalServerException(inner) => Error::InternalServerException(inner),
969            crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
970            crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::ThrottlingException(inner) => Error::ThrottlingException(inner),
971            crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::ValidationException(inner) => Error::ValidationException(inner),
972            crate::operation::delete_protect_configuration_rule_set_number_override::DeleteProtectConfigurationRuleSetNumberOverrideError::Unhandled(inner) => Error::Unhandled(inner),
973        }
974    }
975}
976impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registration::DeleteRegistrationError, R>> for Error
977where
978    R: Send + Sync + std::fmt::Debug + 'static,
979{
980    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registration::DeleteRegistrationError, R>) -> Self {
981        match err {
982            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
983            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
984                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
985                source: err.into(),
986            }),
987        }
988    }
989}
990impl From<crate::operation::delete_registration::DeleteRegistrationError> for Error {
991    fn from(err: crate::operation::delete_registration::DeleteRegistrationError) -> Self {
992        match err {
993            crate::operation::delete_registration::DeleteRegistrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
994            crate::operation::delete_registration::DeleteRegistrationError::ConflictException(inner) => Error::ConflictException(inner),
995            crate::operation::delete_registration::DeleteRegistrationError::InternalServerException(inner) => Error::InternalServerException(inner),
996            crate::operation::delete_registration::DeleteRegistrationError::ResourceNotFoundException(inner) => {
997                Error::ResourceNotFoundException(inner)
998            }
999            crate::operation::delete_registration::DeleteRegistrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1000            crate::operation::delete_registration::DeleteRegistrationError::ValidationException(inner) => Error::ValidationException(inner),
1001            crate::operation::delete_registration::DeleteRegistrationError::Unhandled(inner) => Error::Unhandled(inner),
1002        }
1003    }
1004}
1005impl<R>
1006    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError, R>>
1007    for Error
1008where
1009    R: Send + Sync + std::fmt::Debug + 'static,
1010{
1011    fn from(
1012        err: ::aws_smithy_runtime_api::client::result::SdkError<
1013            crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError,
1014            R,
1015        >,
1016    ) -> Self {
1017        match err {
1018            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1019            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1020                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1021                source: err.into(),
1022            }),
1023        }
1024    }
1025}
1026impl From<crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError> for Error {
1027    fn from(err: crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError) -> Self {
1028        match err {
1029            crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::AccessDeniedException(inner) => {
1030                Error::AccessDeniedException(inner)
1031            }
1032            crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::ConflictException(inner) => {
1033                Error::ConflictException(inner)
1034            }
1035            crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::InternalServerException(inner) => {
1036                Error::InternalServerException(inner)
1037            }
1038            crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::ResourceNotFoundException(inner) => {
1039                Error::ResourceNotFoundException(inner)
1040            }
1041            crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::ThrottlingException(inner) => {
1042                Error::ThrottlingException(inner)
1043            }
1044            crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::ValidationException(inner) => {
1045                Error::ValidationException(inner)
1046            }
1047            crate::operation::delete_registration_attachment::DeleteRegistrationAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
1048        }
1049    }
1050}
1051impl<R>
1052    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError, R>>
1053    for Error
1054where
1055    R: Send + Sync + std::fmt::Debug + 'static,
1056{
1057    fn from(
1058        err: ::aws_smithy_runtime_api::client::result::SdkError<
1059            crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError,
1060            R,
1061        >,
1062    ) -> Self {
1063        match err {
1064            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1065            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1066                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1067                source: err.into(),
1068            }),
1069        }
1070    }
1071}
1072impl From<crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError> for Error {
1073    fn from(err: crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError) -> Self {
1074        match err {
1075            crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::AccessDeniedException(inner) => {
1076                Error::AccessDeniedException(inner)
1077            }
1078            crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::ConflictException(inner) => {
1079                Error::ConflictException(inner)
1080            }
1081            crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::InternalServerException(inner) => {
1082                Error::InternalServerException(inner)
1083            }
1084            crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::ResourceNotFoundException(inner) => {
1085                Error::ResourceNotFoundException(inner)
1086            }
1087            crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::ThrottlingException(inner) => {
1088                Error::ThrottlingException(inner)
1089            }
1090            crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::ValidationException(inner) => {
1091                Error::ValidationException(inner)
1092            }
1093            crate::operation::delete_registration_field_value::DeleteRegistrationFieldValueError::Unhandled(inner) => Error::Unhandled(inner),
1094        }
1095    }
1096}
1097impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
1098where
1099    R: Send + Sync + std::fmt::Debug + 'static,
1100{
1101    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
1102        match err {
1103            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1104            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1105                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1106                source: err.into(),
1107            }),
1108        }
1109    }
1110}
1111impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
1112    fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
1113        match err {
1114            crate::operation::delete_resource_policy::DeleteResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1115            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
1116                Error::InternalServerException(inner)
1117            }
1118            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
1119                Error::ResourceNotFoundException(inner)
1120            }
1121            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1122            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
1123            crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1124        }
1125    }
1126}
1127impl<R>
1128    From<
1129        ::aws_smithy_runtime_api::client::result::SdkError<
1130            crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError,
1131            R,
1132        >,
1133    > for Error
1134where
1135    R: Send + Sync + std::fmt::Debug + 'static,
1136{
1137    fn from(
1138        err: ::aws_smithy_runtime_api::client::result::SdkError<
1139            crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError,
1140            R,
1141        >,
1142    ) -> Self {
1143        match err {
1144            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1145            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1146                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1147                source: err.into(),
1148            }),
1149        }
1150    }
1151}
1152impl From<crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError> for Error {
1153    fn from(err: crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError) -> Self {
1154        match err {
1155            crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
1156                Error::AccessDeniedException(inner)
1157            }
1158            crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError::InternalServerException(inner) => {
1159                Error::InternalServerException(inner)
1160            }
1161            crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError::ThrottlingException(inner) => {
1162                Error::ThrottlingException(inner)
1163            }
1164            crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError::ValidationException(inner) => {
1165                Error::ValidationException(inner)
1166            }
1167            crate::operation::delete_text_message_spend_limit_override::DeleteTextMessageSpendLimitOverrideError::Unhandled(inner) => {
1168                Error::Unhandled(inner)
1169            }
1170        }
1171    }
1172}
1173impl<R>
1174    From<
1175        ::aws_smithy_runtime_api::client::result::SdkError<
1176            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError,
1177            R,
1178        >,
1179    > for Error
1180where
1181    R: Send + Sync + std::fmt::Debug + 'static,
1182{
1183    fn from(
1184        err: ::aws_smithy_runtime_api::client::result::SdkError<
1185            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError,
1186            R,
1187        >,
1188    ) -> Self {
1189        match err {
1190            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1191            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1192                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1193                source: err.into(),
1194            }),
1195        }
1196    }
1197}
1198impl From<crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError> for Error {
1199    fn from(err: crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError) -> Self {
1200        match err {
1201            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::AccessDeniedException(inner) => {
1202                Error::AccessDeniedException(inner)
1203            }
1204            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::ConflictException(inner) => {
1205                Error::ConflictException(inner)
1206            }
1207            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::InternalServerException(inner) => {
1208                Error::InternalServerException(inner)
1209            }
1210            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::ResourceNotFoundException(inner) => {
1211                Error::ResourceNotFoundException(inner)
1212            }
1213            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::ThrottlingException(inner) => {
1214                Error::ThrottlingException(inner)
1215            }
1216            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::ValidationException(inner) => {
1217                Error::ValidationException(inner)
1218            }
1219            crate::operation::delete_verified_destination_number::DeleteVerifiedDestinationNumberError::Unhandled(inner) => Error::Unhandled(inner),
1220        }
1221    }
1222}
1223impl<R>
1224    From<
1225        ::aws_smithy_runtime_api::client::result::SdkError<
1226            crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError,
1227            R,
1228        >,
1229    > for Error
1230where
1231    R: Send + Sync + std::fmt::Debug + 'static,
1232{
1233    fn from(
1234        err: ::aws_smithy_runtime_api::client::result::SdkError<
1235            crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError,
1236            R,
1237        >,
1238    ) -> Self {
1239        match err {
1240            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1241            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1242                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1243                source: err.into(),
1244            }),
1245        }
1246    }
1247}
1248impl From<crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError> for Error {
1249    fn from(err: crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError) -> Self {
1250        match err {
1251            crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
1252                Error::AccessDeniedException(inner)
1253            }
1254            crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError::InternalServerException(
1255                inner,
1256            ) => Error::InternalServerException(inner),
1257            crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError::ThrottlingException(inner) => {
1258                Error::ThrottlingException(inner)
1259            }
1260            crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError::ValidationException(inner) => {
1261                Error::ValidationException(inner)
1262            }
1263            crate::operation::delete_voice_message_spend_limit_override::DeleteVoiceMessageSpendLimitOverrideError::Unhandled(inner) => {
1264                Error::Unhandled(inner)
1265            }
1266        }
1267    }
1268}
1269impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>>
1270    for Error
1271where
1272    R: Send + Sync + std::fmt::Debug + 'static,
1273{
1274    fn from(
1275        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>,
1276    ) -> Self {
1277        match err {
1278            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1279            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1280                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1281                source: err.into(),
1282            }),
1283        }
1284    }
1285}
1286impl From<crate::operation::describe_account_attributes::DescribeAccountAttributesError> for Error {
1287    fn from(err: crate::operation::describe_account_attributes::DescribeAccountAttributesError) -> Self {
1288        match err {
1289            crate::operation::describe_account_attributes::DescribeAccountAttributesError::AccessDeniedException(inner) => {
1290                Error::AccessDeniedException(inner)
1291            }
1292            crate::operation::describe_account_attributes::DescribeAccountAttributesError::InternalServerException(inner) => {
1293                Error::InternalServerException(inner)
1294            }
1295            crate::operation::describe_account_attributes::DescribeAccountAttributesError::ThrottlingException(inner) => {
1296                Error::ThrottlingException(inner)
1297            }
1298            crate::operation::describe_account_attributes::DescribeAccountAttributesError::ValidationException(inner) => {
1299                Error::ValidationException(inner)
1300            }
1301            crate::operation::describe_account_attributes::DescribeAccountAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1302        }
1303    }
1304}
1305impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_limits::DescribeAccountLimitsError, R>> for Error
1306where
1307    R: Send + Sync + std::fmt::Debug + 'static,
1308{
1309    fn from(
1310        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_limits::DescribeAccountLimitsError, R>,
1311    ) -> Self {
1312        match err {
1313            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1314            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1315                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1316                source: err.into(),
1317            }),
1318        }
1319    }
1320}
1321impl From<crate::operation::describe_account_limits::DescribeAccountLimitsError> for Error {
1322    fn from(err: crate::operation::describe_account_limits::DescribeAccountLimitsError) -> Self {
1323        match err {
1324            crate::operation::describe_account_limits::DescribeAccountLimitsError::AccessDeniedException(inner) => {
1325                Error::AccessDeniedException(inner)
1326            }
1327            crate::operation::describe_account_limits::DescribeAccountLimitsError::InternalServerException(inner) => {
1328                Error::InternalServerException(inner)
1329            }
1330            crate::operation::describe_account_limits::DescribeAccountLimitsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1331            crate::operation::describe_account_limits::DescribeAccountLimitsError::ValidationException(inner) => Error::ValidationException(inner),
1332            crate::operation::describe_account_limits::DescribeAccountLimitsError::Unhandled(inner) => Error::Unhandled(inner),
1333        }
1334    }
1335}
1336impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_configuration_sets::DescribeConfigurationSetsError, R>>
1337    for Error
1338where
1339    R: Send + Sync + std::fmt::Debug + 'static,
1340{
1341    fn from(
1342        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_configuration_sets::DescribeConfigurationSetsError, R>,
1343    ) -> Self {
1344        match err {
1345            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1346            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1347                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1348                source: err.into(),
1349            }),
1350        }
1351    }
1352}
1353impl From<crate::operation::describe_configuration_sets::DescribeConfigurationSetsError> for Error {
1354    fn from(err: crate::operation::describe_configuration_sets::DescribeConfigurationSetsError) -> Self {
1355        match err {
1356            crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::AccessDeniedException(inner) => {
1357                Error::AccessDeniedException(inner)
1358            }
1359            crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::InternalServerException(inner) => {
1360                Error::InternalServerException(inner)
1361            }
1362            crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::ResourceNotFoundException(inner) => {
1363                Error::ResourceNotFoundException(inner)
1364            }
1365            crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::ThrottlingException(inner) => {
1366                Error::ThrottlingException(inner)
1367            }
1368            crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::ValidationException(inner) => {
1369                Error::ValidationException(inner)
1370            }
1371            crate::operation::describe_configuration_sets::DescribeConfigurationSetsError::Unhandled(inner) => Error::Unhandled(inner),
1372        }
1373    }
1374}
1375impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_keywords::DescribeKeywordsError, R>> for Error
1376where
1377    R: Send + Sync + std::fmt::Debug + 'static,
1378{
1379    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_keywords::DescribeKeywordsError, R>) -> Self {
1380        match err {
1381            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1382            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1383                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1384                source: err.into(),
1385            }),
1386        }
1387    }
1388}
1389impl From<crate::operation::describe_keywords::DescribeKeywordsError> for Error {
1390    fn from(err: crate::operation::describe_keywords::DescribeKeywordsError) -> Self {
1391        match err {
1392            crate::operation::describe_keywords::DescribeKeywordsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1393            crate::operation::describe_keywords::DescribeKeywordsError::InternalServerException(inner) => Error::InternalServerException(inner),
1394            crate::operation::describe_keywords::DescribeKeywordsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1395            crate::operation::describe_keywords::DescribeKeywordsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1396            crate::operation::describe_keywords::DescribeKeywordsError::ValidationException(inner) => Error::ValidationException(inner),
1397            crate::operation::describe_keywords::DescribeKeywordsError::Unhandled(inner) => Error::Unhandled(inner),
1398        }
1399    }
1400}
1401impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError, R>>
1402    for Error
1403where
1404    R: Send + Sync + std::fmt::Debug + 'static,
1405{
1406    fn from(
1407        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError, R>,
1408    ) -> Self {
1409        match err {
1410            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1411            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1412                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1413                source: err.into(),
1414            }),
1415        }
1416    }
1417}
1418impl From<crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError> for Error {
1419    fn from(err: crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError) -> Self {
1420        match err {
1421            crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::AccessDeniedException(inner) => {
1422                Error::AccessDeniedException(inner)
1423            }
1424            crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::InternalServerException(inner) => {
1425                Error::InternalServerException(inner)
1426            }
1427            crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::ResourceNotFoundException(inner) => {
1428                Error::ResourceNotFoundException(inner)
1429            }
1430            crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::ThrottlingException(inner) => {
1431                Error::ThrottlingException(inner)
1432            }
1433            crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::ValidationException(inner) => {
1434                Error::ValidationException(inner)
1435            }
1436            crate::operation::describe_opted_out_numbers::DescribeOptedOutNumbersError::Unhandled(inner) => Error::Unhandled(inner),
1437        }
1438    }
1439}
1440impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_opt_out_lists::DescribeOptOutListsError, R>> for Error
1441where
1442    R: Send + Sync + std::fmt::Debug + 'static,
1443{
1444    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_opt_out_lists::DescribeOptOutListsError, R>) -> Self {
1445        match err {
1446            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1447            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1448                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1449                source: err.into(),
1450            }),
1451        }
1452    }
1453}
1454impl From<crate::operation::describe_opt_out_lists::DescribeOptOutListsError> for Error {
1455    fn from(err: crate::operation::describe_opt_out_lists::DescribeOptOutListsError) -> Self {
1456        match err {
1457            crate::operation::describe_opt_out_lists::DescribeOptOutListsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1458            crate::operation::describe_opt_out_lists::DescribeOptOutListsError::InternalServerException(inner) => {
1459                Error::InternalServerException(inner)
1460            }
1461            crate::operation::describe_opt_out_lists::DescribeOptOutListsError::ResourceNotFoundException(inner) => {
1462                Error::ResourceNotFoundException(inner)
1463            }
1464            crate::operation::describe_opt_out_lists::DescribeOptOutListsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1465            crate::operation::describe_opt_out_lists::DescribeOptOutListsError::ValidationException(inner) => Error::ValidationException(inner),
1466            crate::operation::describe_opt_out_lists::DescribeOptOutListsError::Unhandled(inner) => Error::Unhandled(inner),
1467        }
1468    }
1469}
1470impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_phone_numbers::DescribePhoneNumbersError, R>> for Error
1471where
1472    R: Send + Sync + std::fmt::Debug + 'static,
1473{
1474    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_phone_numbers::DescribePhoneNumbersError, R>) -> Self {
1475        match err {
1476            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1477            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1478                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1479                source: err.into(),
1480            }),
1481        }
1482    }
1483}
1484impl From<crate::operation::describe_phone_numbers::DescribePhoneNumbersError> for Error {
1485    fn from(err: crate::operation::describe_phone_numbers::DescribePhoneNumbersError) -> Self {
1486        match err {
1487            crate::operation::describe_phone_numbers::DescribePhoneNumbersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1488            crate::operation::describe_phone_numbers::DescribePhoneNumbersError::InternalServerException(inner) => {
1489                Error::InternalServerException(inner)
1490            }
1491            crate::operation::describe_phone_numbers::DescribePhoneNumbersError::ResourceNotFoundException(inner) => {
1492                Error::ResourceNotFoundException(inner)
1493            }
1494            crate::operation::describe_phone_numbers::DescribePhoneNumbersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1495            crate::operation::describe_phone_numbers::DescribePhoneNumbersError::ValidationException(inner) => Error::ValidationException(inner),
1496            crate::operation::describe_phone_numbers::DescribePhoneNumbersError::Unhandled(inner) => Error::Unhandled(inner),
1497        }
1498    }
1499}
1500impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pools::DescribePoolsError, R>> for Error
1501where
1502    R: Send + Sync + std::fmt::Debug + 'static,
1503{
1504    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pools::DescribePoolsError, R>) -> Self {
1505        match err {
1506            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1507            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1508                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1509                source: err.into(),
1510            }),
1511        }
1512    }
1513}
1514impl From<crate::operation::describe_pools::DescribePoolsError> for Error {
1515    fn from(err: crate::operation::describe_pools::DescribePoolsError) -> Self {
1516        match err {
1517            crate::operation::describe_pools::DescribePoolsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1518            crate::operation::describe_pools::DescribePoolsError::InternalServerException(inner) => Error::InternalServerException(inner),
1519            crate::operation::describe_pools::DescribePoolsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1520            crate::operation::describe_pools::DescribePoolsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1521            crate::operation::describe_pools::DescribePoolsError::ValidationException(inner) => Error::ValidationException(inner),
1522            crate::operation::describe_pools::DescribePoolsError::Unhandled(inner) => Error::Unhandled(inner),
1523        }
1524    }
1525}
1526impl<R>
1527    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError, R>>
1528    for Error
1529where
1530    R: Send + Sync + std::fmt::Debug + 'static,
1531{
1532    fn from(
1533        err: ::aws_smithy_runtime_api::client::result::SdkError<
1534            crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError,
1535            R,
1536        >,
1537    ) -> Self {
1538        match err {
1539            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1540            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1541                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1542                source: err.into(),
1543            }),
1544        }
1545    }
1546}
1547impl From<crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError> for Error {
1548    fn from(err: crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError) -> Self {
1549        match err {
1550            crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::AccessDeniedException(inner) => {
1551                Error::AccessDeniedException(inner)
1552            }
1553            crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::InternalServerException(inner) => {
1554                Error::InternalServerException(inner)
1555            }
1556            crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::ResourceNotFoundException(inner) => {
1557                Error::ResourceNotFoundException(inner)
1558            }
1559            crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::ThrottlingException(inner) => {
1560                Error::ThrottlingException(inner)
1561            }
1562            crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::ValidationException(inner) => {
1563                Error::ValidationException(inner)
1564            }
1565            crate::operation::describe_protect_configurations::DescribeProtectConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1566        }
1567    }
1568}
1569impl<R>
1570    From<
1571        ::aws_smithy_runtime_api::client::result::SdkError<
1572            crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError,
1573            R,
1574        >,
1575    > for Error
1576where
1577    R: Send + Sync + std::fmt::Debug + 'static,
1578{
1579    fn from(
1580        err: ::aws_smithy_runtime_api::client::result::SdkError<
1581            crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError,
1582            R,
1583        >,
1584    ) -> Self {
1585        match err {
1586            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1587            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1588                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1589                source: err.into(),
1590            }),
1591        }
1592    }
1593}
1594impl From<crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError> for Error {
1595    fn from(err: crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError) -> Self {
1596        match err {
1597            crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::AccessDeniedException(inner) => {
1598                Error::AccessDeniedException(inner)
1599            }
1600            crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::InternalServerException(inner) => {
1601                Error::InternalServerException(inner)
1602            }
1603            crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::ResourceNotFoundException(inner) => {
1604                Error::ResourceNotFoundException(inner)
1605            }
1606            crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::ThrottlingException(inner) => {
1607                Error::ThrottlingException(inner)
1608            }
1609            crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::ValidationException(inner) => {
1610                Error::ValidationException(inner)
1611            }
1612            crate::operation::describe_registration_attachments::DescribeRegistrationAttachmentsError::Unhandled(inner) => Error::Unhandled(inner),
1613        }
1614    }
1615}
1616impl<R>
1617    From<
1618        ::aws_smithy_runtime_api::client::result::SdkError<
1619            crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError,
1620            R,
1621        >,
1622    > for Error
1623where
1624    R: Send + Sync + std::fmt::Debug + 'static,
1625{
1626    fn from(
1627        err: ::aws_smithy_runtime_api::client::result::SdkError<
1628            crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError,
1629            R,
1630        >,
1631    ) -> Self {
1632        match err {
1633            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1634            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1635                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1636                source: err.into(),
1637            }),
1638        }
1639    }
1640}
1641impl From<crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError> for Error {
1642    fn from(err: crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError) -> Self {
1643        match err {
1644            crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError::AccessDeniedException(inner) => {
1645                Error::AccessDeniedException(inner)
1646            }
1647            crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError::InternalServerException(inner) => {
1648                Error::InternalServerException(inner)
1649            }
1650            crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError::ThrottlingException(inner) => {
1651                Error::ThrottlingException(inner)
1652            }
1653            crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError::ValidationException(inner) => {
1654                Error::ValidationException(inner)
1655            }
1656            crate::operation::describe_registration_field_definitions::DescribeRegistrationFieldDefinitionsError::Unhandled(inner) => {
1657                Error::Unhandled(inner)
1658            }
1659        }
1660    }
1661}
1662impl<R>
1663    From<
1664        ::aws_smithy_runtime_api::client::result::SdkError<
1665            crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError,
1666            R,
1667        >,
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_registration_field_values::DescribeRegistrationFieldValuesError,
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_registration_field_values::DescribeRegistrationFieldValuesError> for Error {
1688    fn from(err: crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError) -> Self {
1689        match err {
1690            crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::AccessDeniedException(inner) => {
1691                Error::AccessDeniedException(inner)
1692            }
1693            crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::InternalServerException(inner) => {
1694                Error::InternalServerException(inner)
1695            }
1696            crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::ResourceNotFoundException(inner) => {
1697                Error::ResourceNotFoundException(inner)
1698            }
1699            crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::ThrottlingException(inner) => {
1700                Error::ThrottlingException(inner)
1701            }
1702            crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::ValidationException(inner) => {
1703                Error::ValidationException(inner)
1704            }
1705            crate::operation::describe_registration_field_values::DescribeRegistrationFieldValuesError::Unhandled(inner) => Error::Unhandled(inner),
1706        }
1707    }
1708}
1709impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_registrations::DescribeRegistrationsError, R>> for Error
1710where
1711    R: Send + Sync + std::fmt::Debug + 'static,
1712{
1713    fn from(
1714        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_registrations::DescribeRegistrationsError, R>,
1715    ) -> Self {
1716        match err {
1717            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1718            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1719                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1720                source: err.into(),
1721            }),
1722        }
1723    }
1724}
1725impl From<crate::operation::describe_registrations::DescribeRegistrationsError> for Error {
1726    fn from(err: crate::operation::describe_registrations::DescribeRegistrationsError) -> Self {
1727        match err {
1728            crate::operation::describe_registrations::DescribeRegistrationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1729            crate::operation::describe_registrations::DescribeRegistrationsError::InternalServerException(inner) => {
1730                Error::InternalServerException(inner)
1731            }
1732            crate::operation::describe_registrations::DescribeRegistrationsError::ResourceNotFoundException(inner) => {
1733                Error::ResourceNotFoundException(inner)
1734            }
1735            crate::operation::describe_registrations::DescribeRegistrationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1736            crate::operation::describe_registrations::DescribeRegistrationsError::ValidationException(inner) => Error::ValidationException(inner),
1737            crate::operation::describe_registrations::DescribeRegistrationsError::Unhandled(inner) => Error::Unhandled(inner),
1738        }
1739    }
1740}
1741impl<R>
1742    From<
1743        ::aws_smithy_runtime_api::client::result::SdkError<
1744            crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError,
1745            R,
1746        >,
1747    > for Error
1748where
1749    R: Send + Sync + std::fmt::Debug + 'static,
1750{
1751    fn from(
1752        err: ::aws_smithy_runtime_api::client::result::SdkError<
1753            crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError,
1754            R,
1755        >,
1756    ) -> Self {
1757        match err {
1758            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1759            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1760                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1761                source: err.into(),
1762            }),
1763        }
1764    }
1765}
1766impl From<crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError> for Error {
1767    fn from(err: crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError) -> Self {
1768        match err {
1769            crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError::AccessDeniedException(
1770                inner,
1771            ) => Error::AccessDeniedException(inner),
1772            crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError::InternalServerException(
1773                inner,
1774            ) => Error::InternalServerException(inner),
1775            crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError::ThrottlingException(inner) => {
1776                Error::ThrottlingException(inner)
1777            }
1778            crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError::ValidationException(inner) => {
1779                Error::ValidationException(inner)
1780            }
1781            crate::operation::describe_registration_section_definitions::DescribeRegistrationSectionDefinitionsError::Unhandled(inner) => {
1782                Error::Unhandled(inner)
1783            }
1784        }
1785    }
1786}
1787impl<R>
1788    From<
1789        ::aws_smithy_runtime_api::client::result::SdkError<
1790            crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError,
1791            R,
1792        >,
1793    > for Error
1794where
1795    R: Send + Sync + std::fmt::Debug + 'static,
1796{
1797    fn from(
1798        err: ::aws_smithy_runtime_api::client::result::SdkError<
1799            crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError,
1800            R,
1801        >,
1802    ) -> Self {
1803        match err {
1804            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1805            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1806                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1807                source: err.into(),
1808            }),
1809        }
1810    }
1811}
1812impl From<crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError> for Error {
1813    fn from(err: crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError) -> Self {
1814        match err {
1815            crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError::AccessDeniedException(inner) => {
1816                Error::AccessDeniedException(inner)
1817            }
1818            crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError::InternalServerException(inner) => {
1819                Error::InternalServerException(inner)
1820            }
1821            crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError::ThrottlingException(inner) => {
1822                Error::ThrottlingException(inner)
1823            }
1824            crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError::ValidationException(inner) => {
1825                Error::ValidationException(inner)
1826            }
1827            crate::operation::describe_registration_type_definitions::DescribeRegistrationTypeDefinitionsError::Unhandled(inner) => {
1828                Error::Unhandled(inner)
1829            }
1830        }
1831    }
1832}
1833impl<R>
1834    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_registration_versions::DescribeRegistrationVersionsError, R>>
1835    for Error
1836where
1837    R: Send + Sync + std::fmt::Debug + 'static,
1838{
1839    fn from(
1840        err: ::aws_smithy_runtime_api::client::result::SdkError<
1841            crate::operation::describe_registration_versions::DescribeRegistrationVersionsError,
1842            R,
1843        >,
1844    ) -> Self {
1845        match err {
1846            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1847            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1848                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1849                source: err.into(),
1850            }),
1851        }
1852    }
1853}
1854impl From<crate::operation::describe_registration_versions::DescribeRegistrationVersionsError> for Error {
1855    fn from(err: crate::operation::describe_registration_versions::DescribeRegistrationVersionsError) -> Self {
1856        match err {
1857            crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::AccessDeniedException(inner) => {
1858                Error::AccessDeniedException(inner)
1859            }
1860            crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::InternalServerException(inner) => {
1861                Error::InternalServerException(inner)
1862            }
1863            crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::ResourceNotFoundException(inner) => {
1864                Error::ResourceNotFoundException(inner)
1865            }
1866            crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::ThrottlingException(inner) => {
1867                Error::ThrottlingException(inner)
1868            }
1869            crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::ValidationException(inner) => {
1870                Error::ValidationException(inner)
1871            }
1872            crate::operation::describe_registration_versions::DescribeRegistrationVersionsError::Unhandled(inner) => Error::Unhandled(inner),
1873        }
1874    }
1875}
1876impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_sender_ids::DescribeSenderIdsError, R>> for Error
1877where
1878    R: Send + Sync + std::fmt::Debug + 'static,
1879{
1880    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_sender_ids::DescribeSenderIdsError, R>) -> Self {
1881        match err {
1882            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1883            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1884                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1885                source: err.into(),
1886            }),
1887        }
1888    }
1889}
1890impl From<crate::operation::describe_sender_ids::DescribeSenderIdsError> for Error {
1891    fn from(err: crate::operation::describe_sender_ids::DescribeSenderIdsError) -> Self {
1892        match err {
1893            crate::operation::describe_sender_ids::DescribeSenderIdsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1894            crate::operation::describe_sender_ids::DescribeSenderIdsError::InternalServerException(inner) => Error::InternalServerException(inner),
1895            crate::operation::describe_sender_ids::DescribeSenderIdsError::ResourceNotFoundException(inner) => {
1896                Error::ResourceNotFoundException(inner)
1897            }
1898            crate::operation::describe_sender_ids::DescribeSenderIdsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1899            crate::operation::describe_sender_ids::DescribeSenderIdsError::ValidationException(inner) => Error::ValidationException(inner),
1900            crate::operation::describe_sender_ids::DescribeSenderIdsError::Unhandled(inner) => Error::Unhandled(inner),
1901        }
1902    }
1903}
1904impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spend_limits::DescribeSpendLimitsError, R>> for Error
1905where
1906    R: Send + Sync + std::fmt::Debug + 'static,
1907{
1908    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_spend_limits::DescribeSpendLimitsError, R>) -> Self {
1909        match err {
1910            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1911            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1912                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1913                source: err.into(),
1914            }),
1915        }
1916    }
1917}
1918impl From<crate::operation::describe_spend_limits::DescribeSpendLimitsError> for Error {
1919    fn from(err: crate::operation::describe_spend_limits::DescribeSpendLimitsError) -> Self {
1920        match err {
1921            crate::operation::describe_spend_limits::DescribeSpendLimitsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1922            crate::operation::describe_spend_limits::DescribeSpendLimitsError::InternalServerException(inner) => {
1923                Error::InternalServerException(inner)
1924            }
1925            crate::operation::describe_spend_limits::DescribeSpendLimitsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1926            crate::operation::describe_spend_limits::DescribeSpendLimitsError::ValidationException(inner) => Error::ValidationException(inner),
1927            crate::operation::describe_spend_limits::DescribeSpendLimitsError::Unhandled(inner) => Error::Unhandled(inner),
1928        }
1929    }
1930}
1931impl<R>
1932    From<
1933        ::aws_smithy_runtime_api::client::result::SdkError<
1934            crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError,
1935            R,
1936        >,
1937    > for Error
1938where
1939    R: Send + Sync + std::fmt::Debug + 'static,
1940{
1941    fn from(
1942        err: ::aws_smithy_runtime_api::client::result::SdkError<
1943            crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError,
1944            R,
1945        >,
1946    ) -> Self {
1947        match err {
1948            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1949            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1950                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1951                source: err.into(),
1952            }),
1953        }
1954    }
1955}
1956impl From<crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError> for Error {
1957    fn from(err: crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError) -> Self {
1958        match err {
1959            crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::AccessDeniedException(inner) => {
1960                Error::AccessDeniedException(inner)
1961            }
1962            crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::InternalServerException(inner) => {
1963                Error::InternalServerException(inner)
1964            }
1965            crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::ResourceNotFoundException(inner) => {
1966                Error::ResourceNotFoundException(inner)
1967            }
1968            crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::ThrottlingException(inner) => {
1969                Error::ThrottlingException(inner)
1970            }
1971            crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::ValidationException(inner) => {
1972                Error::ValidationException(inner)
1973            }
1974            crate::operation::describe_verified_destination_numbers::DescribeVerifiedDestinationNumbersError::Unhandled(inner) => {
1975                Error::Unhandled(inner)
1976            }
1977        }
1978    }
1979}
1980impl<R>
1981    From<
1982        ::aws_smithy_runtime_api::client::result::SdkError<
1983            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError,
1984            R,
1985        >,
1986    > for Error
1987where
1988    R: Send + Sync + std::fmt::Debug + 'static,
1989{
1990    fn from(
1991        err: ::aws_smithy_runtime_api::client::result::SdkError<
1992            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError,
1993            R,
1994        >,
1995    ) -> Self {
1996        match err {
1997            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1998            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1999                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2000                source: err.into(),
2001            }),
2002        }
2003    }
2004}
2005impl From<crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError> for Error {
2006    fn from(err: crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError) -> Self {
2007        match err {
2008            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::AccessDeniedException(inner) => {
2009                Error::AccessDeniedException(inner)
2010            }
2011            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::ConflictException(inner) => {
2012                Error::ConflictException(inner)
2013            }
2014            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::InternalServerException(inner) => {
2015                Error::InternalServerException(inner)
2016            }
2017            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::ResourceNotFoundException(inner) => {
2018                Error::ResourceNotFoundException(inner)
2019            }
2020            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::ThrottlingException(inner) => {
2021                Error::ThrottlingException(inner)
2022            }
2023            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::ValidationException(inner) => {
2024                Error::ValidationException(inner)
2025            }
2026            crate::operation::disassociate_origination_identity::DisassociateOriginationIdentityError::Unhandled(inner) => Error::Unhandled(inner),
2027        }
2028    }
2029}
2030impl<R>
2031    From<
2032        ::aws_smithy_runtime_api::client::result::SdkError<
2033            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError,
2034            R,
2035        >,
2036    > for Error
2037where
2038    R: Send + Sync + std::fmt::Debug + 'static,
2039{
2040    fn from(
2041        err: ::aws_smithy_runtime_api::client::result::SdkError<
2042            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError,
2043            R,
2044        >,
2045    ) -> Self {
2046        match err {
2047            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2048            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2049                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2050                source: err.into(),
2051            }),
2052        }
2053    }
2054}
2055impl From<crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError> for Error {
2056    fn from(err: crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError) -> Self {
2057        match err {
2058            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::AccessDeniedException(inner) => {
2059                Error::AccessDeniedException(inner)
2060            }
2061            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::ConflictException(inner) => {
2062                Error::ConflictException(inner)
2063            }
2064            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::InternalServerException(inner) => {
2065                Error::InternalServerException(inner)
2066            }
2067            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::ResourceNotFoundException(inner) => {
2068                Error::ResourceNotFoundException(inner)
2069            }
2070            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::ThrottlingException(inner) => {
2071                Error::ThrottlingException(inner)
2072            }
2073            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::ValidationException(inner) => {
2074                Error::ValidationException(inner)
2075            }
2076            crate::operation::disassociate_protect_configuration::DisassociateProtectConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2077        }
2078    }
2079}
2080impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::discard_registration_version::DiscardRegistrationVersionError, R>>
2081    for Error
2082where
2083    R: Send + Sync + std::fmt::Debug + 'static,
2084{
2085    fn from(
2086        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::discard_registration_version::DiscardRegistrationVersionError, R>,
2087    ) -> Self {
2088        match err {
2089            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2090            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2091                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2092                source: err.into(),
2093            }),
2094        }
2095    }
2096}
2097impl From<crate::operation::discard_registration_version::DiscardRegistrationVersionError> for Error {
2098    fn from(err: crate::operation::discard_registration_version::DiscardRegistrationVersionError) -> Self {
2099        match err {
2100            crate::operation::discard_registration_version::DiscardRegistrationVersionError::AccessDeniedException(inner) => {
2101                Error::AccessDeniedException(inner)
2102            }
2103            crate::operation::discard_registration_version::DiscardRegistrationVersionError::ConflictException(inner) => {
2104                Error::ConflictException(inner)
2105            }
2106            crate::operation::discard_registration_version::DiscardRegistrationVersionError::InternalServerException(inner) => {
2107                Error::InternalServerException(inner)
2108            }
2109            crate::operation::discard_registration_version::DiscardRegistrationVersionError::ResourceNotFoundException(inner) => {
2110                Error::ResourceNotFoundException(inner)
2111            }
2112            crate::operation::discard_registration_version::DiscardRegistrationVersionError::ThrottlingException(inner) => {
2113                Error::ThrottlingException(inner)
2114            }
2115            crate::operation::discard_registration_version::DiscardRegistrationVersionError::ValidationException(inner) => {
2116                Error::ValidationException(inner)
2117            }
2118            crate::operation::discard_registration_version::DiscardRegistrationVersionError::Unhandled(inner) => Error::Unhandled(inner),
2119        }
2120    }
2121}
2122impl<R>
2123    From<
2124        ::aws_smithy_runtime_api::client::result::SdkError<
2125            crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError,
2126            R,
2127        >,
2128    > for Error
2129where
2130    R: Send + Sync + std::fmt::Debug + 'static,
2131{
2132    fn from(
2133        err: ::aws_smithy_runtime_api::client::result::SdkError<
2134            crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError,
2135            R,
2136        >,
2137    ) -> Self {
2138        match err {
2139            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2140            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2141                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2142                source: err.into(),
2143            }),
2144        }
2145    }
2146}
2147impl From<crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError> for Error {
2148    fn from(err: crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError) -> Self {
2149        match err {
2150            crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::AccessDeniedException(
2151                inner,
2152            ) => Error::AccessDeniedException(inner),
2153            crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::InternalServerException(
2154                inner,
2155            ) => Error::InternalServerException(inner),
2156            crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::ResourceNotFoundException(
2157                inner,
2158            ) => Error::ResourceNotFoundException(inner),
2159            crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::ThrottlingException(inner) => {
2160                Error::ThrottlingException(inner)
2161            }
2162            crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::ValidationException(inner) => {
2163                Error::ValidationException(inner)
2164            }
2165            crate::operation::get_protect_configuration_country_rule_set::GetProtectConfigurationCountryRuleSetError::Unhandled(inner) => {
2166                Error::Unhandled(inner)
2167            }
2168        }
2169    }
2170}
2171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
2172where
2173    R: Send + Sync + std::fmt::Debug + 'static,
2174{
2175    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>) -> Self {
2176        match err {
2177            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2178            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2179                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2180                source: err.into(),
2181            }),
2182        }
2183    }
2184}
2185impl From<crate::operation::get_resource_policy::GetResourcePolicyError> for Error {
2186    fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
2187        match err {
2188            crate::operation::get_resource_policy::GetResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2189            crate::operation::get_resource_policy::GetResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
2190            crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException(inner) => {
2191                Error::ResourceNotFoundException(inner)
2192            }
2193            crate::operation::get_resource_policy::GetResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2194            crate::operation::get_resource_policy::GetResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
2195            crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
2196        }
2197    }
2198}
2199impl<R>
2200    From<
2201        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError, R>,
2202    > for Error
2203where
2204    R: Send + Sync + std::fmt::Debug + 'static,
2205{
2206    fn from(
2207        err: ::aws_smithy_runtime_api::client::result::SdkError<
2208            crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError,
2209            R,
2210        >,
2211    ) -> Self {
2212        match err {
2213            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2214            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2215                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2216                source: err.into(),
2217            }),
2218        }
2219    }
2220}
2221impl From<crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError> for Error {
2222    fn from(err: crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError) -> Self {
2223        match err {
2224            crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::AccessDeniedException(inner) => {
2225                Error::AccessDeniedException(inner)
2226            }
2227            crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::InternalServerException(inner) => {
2228                Error::InternalServerException(inner)
2229            }
2230            crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::ResourceNotFoundException(inner) => {
2231                Error::ResourceNotFoundException(inner)
2232            }
2233            crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::ThrottlingException(inner) => {
2234                Error::ThrottlingException(inner)
2235            }
2236            crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::ValidationException(inner) => {
2237                Error::ValidationException(inner)
2238            }
2239            crate::operation::list_pool_origination_identities::ListPoolOriginationIdentitiesError::Unhandled(inner) => Error::Unhandled(inner),
2240        }
2241    }
2242}
2243impl<R>
2244    From<
2245        ::aws_smithy_runtime_api::client::result::SdkError<
2246            crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError,
2247            R,
2248        >,
2249    > for Error
2250where
2251    R: Send + Sync + std::fmt::Debug + 'static,
2252{
2253    fn from(
2254        err: ::aws_smithy_runtime_api::client::result::SdkError<
2255            crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError,
2256            R,
2257        >,
2258    ) -> Self {
2259        match err {
2260            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2261            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2262                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2263                source: err.into(),
2264            }),
2265        }
2266    }
2267}
2268impl From<crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError> for Error {
2269    fn from(
2270        err: crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError,
2271    ) -> Self {
2272        match err {
2273            crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2274            crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::InternalServerException(inner) => Error::InternalServerException(inner),
2275            crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2276            crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2277            crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::ValidationException(inner) => Error::ValidationException(inner),
2278            crate::operation::list_protect_configuration_rule_set_number_overrides::ListProtectConfigurationRuleSetNumberOverridesError::Unhandled(inner) => Error::Unhandled(inner),
2279        }
2280    }
2281}
2282impl<R>
2283    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_registration_associations::ListRegistrationAssociationsError, R>>
2284    for Error
2285where
2286    R: Send + Sync + std::fmt::Debug + 'static,
2287{
2288    fn from(
2289        err: ::aws_smithy_runtime_api::client::result::SdkError<
2290            crate::operation::list_registration_associations::ListRegistrationAssociationsError,
2291            R,
2292        >,
2293    ) -> Self {
2294        match err {
2295            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2296            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2297                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2298                source: err.into(),
2299            }),
2300        }
2301    }
2302}
2303impl From<crate::operation::list_registration_associations::ListRegistrationAssociationsError> for Error {
2304    fn from(err: crate::operation::list_registration_associations::ListRegistrationAssociationsError) -> Self {
2305        match err {
2306            crate::operation::list_registration_associations::ListRegistrationAssociationsError::AccessDeniedException(inner) => {
2307                Error::AccessDeniedException(inner)
2308            }
2309            crate::operation::list_registration_associations::ListRegistrationAssociationsError::InternalServerException(inner) => {
2310                Error::InternalServerException(inner)
2311            }
2312            crate::operation::list_registration_associations::ListRegistrationAssociationsError::ResourceNotFoundException(inner) => {
2313                Error::ResourceNotFoundException(inner)
2314            }
2315            crate::operation::list_registration_associations::ListRegistrationAssociationsError::ThrottlingException(inner) => {
2316                Error::ThrottlingException(inner)
2317            }
2318            crate::operation::list_registration_associations::ListRegistrationAssociationsError::ValidationException(inner) => {
2319                Error::ValidationException(inner)
2320            }
2321            crate::operation::list_registration_associations::ListRegistrationAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
2322        }
2323    }
2324}
2325impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2326where
2327    R: Send + Sync + std::fmt::Debug + 'static,
2328{
2329    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2330        match err {
2331            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2332            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2333                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2334                source: err.into(),
2335            }),
2336        }
2337    }
2338}
2339impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2340    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2341        match err {
2342            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2343            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
2344                Error::InternalServerException(inner)
2345            }
2346            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2347                Error::ResourceNotFoundException(inner)
2348            }
2349            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2350            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
2351            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2352        }
2353    }
2354}
2355impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_keyword::PutKeywordError, R>> for Error
2356where
2357    R: Send + Sync + std::fmt::Debug + 'static,
2358{
2359    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_keyword::PutKeywordError, R>) -> Self {
2360        match err {
2361            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2362            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2363                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2364                source: err.into(),
2365            }),
2366        }
2367    }
2368}
2369impl From<crate::operation::put_keyword::PutKeywordError> for Error {
2370    fn from(err: crate::operation::put_keyword::PutKeywordError) -> Self {
2371        match err {
2372            crate::operation::put_keyword::PutKeywordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2373            crate::operation::put_keyword::PutKeywordError::ConflictException(inner) => Error::ConflictException(inner),
2374            crate::operation::put_keyword::PutKeywordError::InternalServerException(inner) => Error::InternalServerException(inner),
2375            crate::operation::put_keyword::PutKeywordError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2376            crate::operation::put_keyword::PutKeywordError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2377            crate::operation::put_keyword::PutKeywordError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2378            crate::operation::put_keyword::PutKeywordError::ValidationException(inner) => Error::ValidationException(inner),
2379            crate::operation::put_keyword::PutKeywordError::Unhandled(inner) => Error::Unhandled(inner),
2380        }
2381    }
2382}
2383impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_message_feedback::PutMessageFeedbackError, R>> for Error
2384where
2385    R: Send + Sync + std::fmt::Debug + 'static,
2386{
2387    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_message_feedback::PutMessageFeedbackError, R>) -> Self {
2388        match err {
2389            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2390            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2391                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2392                source: err.into(),
2393            }),
2394        }
2395    }
2396}
2397impl From<crate::operation::put_message_feedback::PutMessageFeedbackError> for Error {
2398    fn from(err: crate::operation::put_message_feedback::PutMessageFeedbackError) -> Self {
2399        match err {
2400            crate::operation::put_message_feedback::PutMessageFeedbackError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2401            crate::operation::put_message_feedback::PutMessageFeedbackError::InternalServerException(inner) => Error::InternalServerException(inner),
2402            crate::operation::put_message_feedback::PutMessageFeedbackError::ResourceNotFoundException(inner) => {
2403                Error::ResourceNotFoundException(inner)
2404            }
2405            crate::operation::put_message_feedback::PutMessageFeedbackError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2406            crate::operation::put_message_feedback::PutMessageFeedbackError::ValidationException(inner) => Error::ValidationException(inner),
2407            crate::operation::put_message_feedback::PutMessageFeedbackError::Unhandled(inner) => Error::Unhandled(inner),
2408        }
2409    }
2410}
2411impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_opted_out_number::PutOptedOutNumberError, R>> for Error
2412where
2413    R: Send + Sync + std::fmt::Debug + 'static,
2414{
2415    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_opted_out_number::PutOptedOutNumberError, R>) -> Self {
2416        match err {
2417            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2418            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2419                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2420                source: err.into(),
2421            }),
2422        }
2423    }
2424}
2425impl From<crate::operation::put_opted_out_number::PutOptedOutNumberError> for Error {
2426    fn from(err: crate::operation::put_opted_out_number::PutOptedOutNumberError) -> Self {
2427        match err {
2428            crate::operation::put_opted_out_number::PutOptedOutNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2429            crate::operation::put_opted_out_number::PutOptedOutNumberError::InternalServerException(inner) => Error::InternalServerException(inner),
2430            crate::operation::put_opted_out_number::PutOptedOutNumberError::ResourceNotFoundException(inner) => {
2431                Error::ResourceNotFoundException(inner)
2432            }
2433            crate::operation::put_opted_out_number::PutOptedOutNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2434            crate::operation::put_opted_out_number::PutOptedOutNumberError::ValidationException(inner) => Error::ValidationException(inner),
2435            crate::operation::put_opted_out_number::PutOptedOutNumberError::Unhandled(inner) => Error::Unhandled(inner),
2436        }
2437    }
2438}
2439impl<R>
2440    From<
2441        ::aws_smithy_runtime_api::client::result::SdkError<
2442            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError,
2443            R,
2444        >,
2445    > for Error
2446where
2447    R: Send + Sync + std::fmt::Debug + 'static,
2448{
2449    fn from(
2450        err: ::aws_smithy_runtime_api::client::result::SdkError<
2451            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError,
2452            R,
2453        >,
2454    ) -> Self {
2455        match err {
2456            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2457            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2458                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2459                source: err.into(),
2460            }),
2461        }
2462    }
2463}
2464impl From<crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError> for Error {
2465    fn from(err: crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError) -> Self {
2466        match err {
2467            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2468            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::ConflictException(inner) => Error::ConflictException(inner),
2469            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::InternalServerException(inner) => Error::InternalServerException(inner),
2470            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2471            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2472            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::ValidationException(inner) => Error::ValidationException(inner),
2473            crate::operation::put_protect_configuration_rule_set_number_override::PutProtectConfigurationRuleSetNumberOverrideError::Unhandled(inner) => Error::Unhandled(inner),
2474        }
2475    }
2476}
2477impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_registration_field_value::PutRegistrationFieldValueError, R>>
2478    for Error
2479where
2480    R: Send + Sync + std::fmt::Debug + 'static,
2481{
2482    fn from(
2483        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_registration_field_value::PutRegistrationFieldValueError, R>,
2484    ) -> Self {
2485        match err {
2486            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2487            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2488                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2489                source: err.into(),
2490            }),
2491        }
2492    }
2493}
2494impl From<crate::operation::put_registration_field_value::PutRegistrationFieldValueError> for Error {
2495    fn from(err: crate::operation::put_registration_field_value::PutRegistrationFieldValueError) -> Self {
2496        match err {
2497            crate::operation::put_registration_field_value::PutRegistrationFieldValueError::AccessDeniedException(inner) => {
2498                Error::AccessDeniedException(inner)
2499            }
2500            crate::operation::put_registration_field_value::PutRegistrationFieldValueError::ConflictException(inner) => {
2501                Error::ConflictException(inner)
2502            }
2503            crate::operation::put_registration_field_value::PutRegistrationFieldValueError::InternalServerException(inner) => {
2504                Error::InternalServerException(inner)
2505            }
2506            crate::operation::put_registration_field_value::PutRegistrationFieldValueError::ResourceNotFoundException(inner) => {
2507                Error::ResourceNotFoundException(inner)
2508            }
2509            crate::operation::put_registration_field_value::PutRegistrationFieldValueError::ThrottlingException(inner) => {
2510                Error::ThrottlingException(inner)
2511            }
2512            crate::operation::put_registration_field_value::PutRegistrationFieldValueError::ValidationException(inner) => {
2513                Error::ValidationException(inner)
2514            }
2515            crate::operation::put_registration_field_value::PutRegistrationFieldValueError::Unhandled(inner) => Error::Unhandled(inner),
2516        }
2517    }
2518}
2519impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
2520where
2521    R: Send + Sync + std::fmt::Debug + 'static,
2522{
2523    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
2524        match err {
2525            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2526            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2527                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2528                source: err.into(),
2529            }),
2530        }
2531    }
2532}
2533impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
2534    fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
2535        match err {
2536            crate::operation::put_resource_policy::PutResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2537            crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
2538            crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
2539                Error::ResourceNotFoundException(inner)
2540            }
2541            crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2542            crate::operation::put_resource_policy::PutResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
2543            crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
2544        }
2545    }
2546}
2547impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_phone_number::ReleasePhoneNumberError, R>> for Error
2548where
2549    R: Send + Sync + std::fmt::Debug + 'static,
2550{
2551    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_phone_number::ReleasePhoneNumberError, R>) -> Self {
2552        match err {
2553            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2554            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2555                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2556                source: err.into(),
2557            }),
2558        }
2559    }
2560}
2561impl From<crate::operation::release_phone_number::ReleasePhoneNumberError> for Error {
2562    fn from(err: crate::operation::release_phone_number::ReleasePhoneNumberError) -> Self {
2563        match err {
2564            crate::operation::release_phone_number::ReleasePhoneNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2565            crate::operation::release_phone_number::ReleasePhoneNumberError::ConflictException(inner) => Error::ConflictException(inner),
2566            crate::operation::release_phone_number::ReleasePhoneNumberError::InternalServerException(inner) => Error::InternalServerException(inner),
2567            crate::operation::release_phone_number::ReleasePhoneNumberError::ResourceNotFoundException(inner) => {
2568                Error::ResourceNotFoundException(inner)
2569            }
2570            crate::operation::release_phone_number::ReleasePhoneNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2571            crate::operation::release_phone_number::ReleasePhoneNumberError::ValidationException(inner) => Error::ValidationException(inner),
2572            crate::operation::release_phone_number::ReleasePhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
2573        }
2574    }
2575}
2576impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_sender_id::ReleaseSenderIdError, R>> for Error
2577where
2578    R: Send + Sync + std::fmt::Debug + 'static,
2579{
2580    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_sender_id::ReleaseSenderIdError, R>) -> Self {
2581        match err {
2582            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2583            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2584                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2585                source: err.into(),
2586            }),
2587        }
2588    }
2589}
2590impl From<crate::operation::release_sender_id::ReleaseSenderIdError> for Error {
2591    fn from(err: crate::operation::release_sender_id::ReleaseSenderIdError) -> Self {
2592        match err {
2593            crate::operation::release_sender_id::ReleaseSenderIdError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2594            crate::operation::release_sender_id::ReleaseSenderIdError::ConflictException(inner) => Error::ConflictException(inner),
2595            crate::operation::release_sender_id::ReleaseSenderIdError::InternalServerException(inner) => Error::InternalServerException(inner),
2596            crate::operation::release_sender_id::ReleaseSenderIdError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2597            crate::operation::release_sender_id::ReleaseSenderIdError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2598            crate::operation::release_sender_id::ReleaseSenderIdError::ValidationException(inner) => Error::ValidationException(inner),
2599            crate::operation::release_sender_id::ReleaseSenderIdError::Unhandled(inner) => Error::Unhandled(inner),
2600        }
2601    }
2602}
2603impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_phone_number::RequestPhoneNumberError, R>> for Error
2604where
2605    R: Send + Sync + std::fmt::Debug + 'static,
2606{
2607    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_phone_number::RequestPhoneNumberError, R>) -> Self {
2608        match err {
2609            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2610            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2611                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2612                source: err.into(),
2613            }),
2614        }
2615    }
2616}
2617impl From<crate::operation::request_phone_number::RequestPhoneNumberError> for Error {
2618    fn from(err: crate::operation::request_phone_number::RequestPhoneNumberError) -> Self {
2619        match err {
2620            crate::operation::request_phone_number::RequestPhoneNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2621            crate::operation::request_phone_number::RequestPhoneNumberError::ConflictException(inner) => Error::ConflictException(inner),
2622            crate::operation::request_phone_number::RequestPhoneNumberError::InternalServerException(inner) => Error::InternalServerException(inner),
2623            crate::operation::request_phone_number::RequestPhoneNumberError::ResourceNotFoundException(inner) => {
2624                Error::ResourceNotFoundException(inner)
2625            }
2626            crate::operation::request_phone_number::RequestPhoneNumberError::ServiceQuotaExceededException(inner) => {
2627                Error::ServiceQuotaExceededException(inner)
2628            }
2629            crate::operation::request_phone_number::RequestPhoneNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2630            crate::operation::request_phone_number::RequestPhoneNumberError::ValidationException(inner) => Error::ValidationException(inner),
2631            crate::operation::request_phone_number::RequestPhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
2632        }
2633    }
2634}
2635impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_sender_id::RequestSenderIdError, R>> for Error
2636where
2637    R: Send + Sync + std::fmt::Debug + 'static,
2638{
2639    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::request_sender_id::RequestSenderIdError, R>) -> Self {
2640        match err {
2641            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2642            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2643                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2644                source: err.into(),
2645            }),
2646        }
2647    }
2648}
2649impl From<crate::operation::request_sender_id::RequestSenderIdError> for Error {
2650    fn from(err: crate::operation::request_sender_id::RequestSenderIdError) -> Self {
2651        match err {
2652            crate::operation::request_sender_id::RequestSenderIdError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2653            crate::operation::request_sender_id::RequestSenderIdError::ConflictException(inner) => Error::ConflictException(inner),
2654            crate::operation::request_sender_id::RequestSenderIdError::InternalServerException(inner) => Error::InternalServerException(inner),
2655            crate::operation::request_sender_id::RequestSenderIdError::ServiceQuotaExceededException(inner) => {
2656                Error::ServiceQuotaExceededException(inner)
2657            }
2658            crate::operation::request_sender_id::RequestSenderIdError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2659            crate::operation::request_sender_id::RequestSenderIdError::ValidationException(inner) => Error::ValidationException(inner),
2660            crate::operation::request_sender_id::RequestSenderIdError::Unhandled(inner) => Error::Unhandled(inner),
2661        }
2662    }
2663}
2664impl<R>
2665    From<
2666        ::aws_smithy_runtime_api::client::result::SdkError<
2667            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError,
2668            R,
2669        >,
2670    > for Error
2671where
2672    R: Send + Sync + std::fmt::Debug + 'static,
2673{
2674    fn from(
2675        err: ::aws_smithy_runtime_api::client::result::SdkError<
2676            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError,
2677            R,
2678        >,
2679    ) -> Self {
2680        match err {
2681            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2682            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2683                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2684                source: err.into(),
2685            }),
2686        }
2687    }
2688}
2689impl From<crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError> for Error {
2690    fn from(err: crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError) -> Self {
2691        match err {
2692            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2693            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::ConflictException(inner) => Error::ConflictException(inner),
2694            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::InternalServerException(inner) => Error::InternalServerException(inner),
2695            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2696            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2697            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2698            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::ValidationException(inner) => Error::ValidationException(inner),
2699            crate::operation::send_destination_number_verification_code::SendDestinationNumberVerificationCodeError::Unhandled(inner) => Error::Unhandled(inner),
2700        }
2701    }
2702}
2703impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_media_message::SendMediaMessageError, R>> for Error
2704where
2705    R: Send + Sync + std::fmt::Debug + 'static,
2706{
2707    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_media_message::SendMediaMessageError, R>) -> Self {
2708        match err {
2709            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2710            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2711                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2712                source: err.into(),
2713            }),
2714        }
2715    }
2716}
2717impl From<crate::operation::send_media_message::SendMediaMessageError> for Error {
2718    fn from(err: crate::operation::send_media_message::SendMediaMessageError) -> Self {
2719        match err {
2720            crate::operation::send_media_message::SendMediaMessageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2721            crate::operation::send_media_message::SendMediaMessageError::ConflictException(inner) => Error::ConflictException(inner),
2722            crate::operation::send_media_message::SendMediaMessageError::InternalServerException(inner) => Error::InternalServerException(inner),
2723            crate::operation::send_media_message::SendMediaMessageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2724            crate::operation::send_media_message::SendMediaMessageError::ServiceQuotaExceededException(inner) => {
2725                Error::ServiceQuotaExceededException(inner)
2726            }
2727            crate::operation::send_media_message::SendMediaMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2728            crate::operation::send_media_message::SendMediaMessageError::ValidationException(inner) => Error::ValidationException(inner),
2729            crate::operation::send_media_message::SendMediaMessageError::Unhandled(inner) => Error::Unhandled(inner),
2730        }
2731    }
2732}
2733impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_text_message::SendTextMessageError, R>> for Error
2734where
2735    R: Send + Sync + std::fmt::Debug + 'static,
2736{
2737    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_text_message::SendTextMessageError, R>) -> Self {
2738        match err {
2739            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2740            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2741                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2742                source: err.into(),
2743            }),
2744        }
2745    }
2746}
2747impl From<crate::operation::send_text_message::SendTextMessageError> for Error {
2748    fn from(err: crate::operation::send_text_message::SendTextMessageError) -> Self {
2749        match err {
2750            crate::operation::send_text_message::SendTextMessageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2751            crate::operation::send_text_message::SendTextMessageError::ConflictException(inner) => Error::ConflictException(inner),
2752            crate::operation::send_text_message::SendTextMessageError::InternalServerException(inner) => Error::InternalServerException(inner),
2753            crate::operation::send_text_message::SendTextMessageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2754            crate::operation::send_text_message::SendTextMessageError::ServiceQuotaExceededException(inner) => {
2755                Error::ServiceQuotaExceededException(inner)
2756            }
2757            crate::operation::send_text_message::SendTextMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2758            crate::operation::send_text_message::SendTextMessageError::ValidationException(inner) => Error::ValidationException(inner),
2759            crate::operation::send_text_message::SendTextMessageError::Unhandled(inner) => Error::Unhandled(inner),
2760        }
2761    }
2762}
2763impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_voice_message::SendVoiceMessageError, R>> for Error
2764where
2765    R: Send + Sync + std::fmt::Debug + 'static,
2766{
2767    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_voice_message::SendVoiceMessageError, R>) -> Self {
2768        match err {
2769            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2770            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2771                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2772                source: err.into(),
2773            }),
2774        }
2775    }
2776}
2777impl From<crate::operation::send_voice_message::SendVoiceMessageError> for Error {
2778    fn from(err: crate::operation::send_voice_message::SendVoiceMessageError) -> Self {
2779        match err {
2780            crate::operation::send_voice_message::SendVoiceMessageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2781            crate::operation::send_voice_message::SendVoiceMessageError::ConflictException(inner) => Error::ConflictException(inner),
2782            crate::operation::send_voice_message::SendVoiceMessageError::InternalServerException(inner) => Error::InternalServerException(inner),
2783            crate::operation::send_voice_message::SendVoiceMessageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2784            crate::operation::send_voice_message::SendVoiceMessageError::ServiceQuotaExceededException(inner) => {
2785                Error::ServiceQuotaExceededException(inner)
2786            }
2787            crate::operation::send_voice_message::SendVoiceMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2788            crate::operation::send_voice_message::SendVoiceMessageError::ValidationException(inner) => Error::ValidationException(inner),
2789            crate::operation::send_voice_message::SendVoiceMessageError::Unhandled(inner) => Error::Unhandled(inner),
2790        }
2791    }
2792}
2793impl<R>
2794    From<
2795        ::aws_smithy_runtime_api::client::result::SdkError<
2796            crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError,
2797            R,
2798        >,
2799    > for Error
2800where
2801    R: Send + Sync + std::fmt::Debug + 'static,
2802{
2803    fn from(
2804        err: ::aws_smithy_runtime_api::client::result::SdkError<
2805            crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError,
2806            R,
2807        >,
2808    ) -> Self {
2809        match err {
2810            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2811            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2812                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2813                source: err.into(),
2814            }),
2815        }
2816    }
2817}
2818impl From<crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError> for Error {
2819    fn from(err: crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError) -> Self {
2820        match err {
2821            crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::AccessDeniedException(inner) => {
2822                Error::AccessDeniedException(inner)
2823            }
2824            crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::InternalServerException(
2825                inner,
2826            ) => Error::InternalServerException(inner),
2827            crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::ResourceNotFoundException(
2828                inner,
2829            ) => Error::ResourceNotFoundException(inner),
2830            crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::ThrottlingException(inner) => {
2831                Error::ThrottlingException(inner)
2832            }
2833            crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::ValidationException(inner) => {
2834                Error::ValidationException(inner)
2835            }
2836            crate::operation::set_account_default_protect_configuration::SetAccountDefaultProtectConfigurationError::Unhandled(inner) => {
2837                Error::Unhandled(inner)
2838            }
2839        }
2840    }
2841}
2842impl<R>
2843    From<
2844        ::aws_smithy_runtime_api::client::result::SdkError<
2845            crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError,
2846            R,
2847        >,
2848    > for Error
2849where
2850    R: Send + Sync + std::fmt::Debug + 'static,
2851{
2852    fn from(
2853        err: ::aws_smithy_runtime_api::client::result::SdkError<
2854            crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError,
2855            R,
2856        >,
2857    ) -> Self {
2858        match err {
2859            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2860            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2861                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2862                source: err.into(),
2863            }),
2864        }
2865    }
2866}
2867impl From<crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError> for Error {
2868    fn from(err: crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError) -> Self {
2869        match err {
2870            crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::AccessDeniedException(inner) => {
2871                Error::AccessDeniedException(inner)
2872            }
2873            crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::InternalServerException(inner) => {
2874                Error::InternalServerException(inner)
2875            }
2876            crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::ResourceNotFoundException(inner) => {
2877                Error::ResourceNotFoundException(inner)
2878            }
2879            crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::ThrottlingException(inner) => {
2880                Error::ThrottlingException(inner)
2881            }
2882            crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::ValidationException(inner) => {
2883                Error::ValidationException(inner)
2884            }
2885            crate::operation::set_default_message_feedback_enabled::SetDefaultMessageFeedbackEnabledError::Unhandled(inner) => {
2886                Error::Unhandled(inner)
2887            }
2888        }
2889    }
2890}
2891impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_default_message_type::SetDefaultMessageTypeError, R>> for Error
2892where
2893    R: Send + Sync + std::fmt::Debug + 'static,
2894{
2895    fn from(
2896        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_default_message_type::SetDefaultMessageTypeError, R>,
2897    ) -> Self {
2898        match err {
2899            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2900            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2901                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2902                source: err.into(),
2903            }),
2904        }
2905    }
2906}
2907impl From<crate::operation::set_default_message_type::SetDefaultMessageTypeError> for Error {
2908    fn from(err: crate::operation::set_default_message_type::SetDefaultMessageTypeError) -> Self {
2909        match err {
2910            crate::operation::set_default_message_type::SetDefaultMessageTypeError::AccessDeniedException(inner) => {
2911                Error::AccessDeniedException(inner)
2912            }
2913            crate::operation::set_default_message_type::SetDefaultMessageTypeError::InternalServerException(inner) => {
2914                Error::InternalServerException(inner)
2915            }
2916            crate::operation::set_default_message_type::SetDefaultMessageTypeError::ResourceNotFoundException(inner) => {
2917                Error::ResourceNotFoundException(inner)
2918            }
2919            crate::operation::set_default_message_type::SetDefaultMessageTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2920            crate::operation::set_default_message_type::SetDefaultMessageTypeError::ValidationException(inner) => Error::ValidationException(inner),
2921            crate::operation::set_default_message_type::SetDefaultMessageTypeError::Unhandled(inner) => Error::Unhandled(inner),
2922        }
2923    }
2924}
2925impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_default_sender_id::SetDefaultSenderIdError, R>> for Error
2926where
2927    R: Send + Sync + std::fmt::Debug + 'static,
2928{
2929    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_default_sender_id::SetDefaultSenderIdError, R>) -> Self {
2930        match err {
2931            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2932            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2933                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2934                source: err.into(),
2935            }),
2936        }
2937    }
2938}
2939impl From<crate::operation::set_default_sender_id::SetDefaultSenderIdError> for Error {
2940    fn from(err: crate::operation::set_default_sender_id::SetDefaultSenderIdError) -> Self {
2941        match err {
2942            crate::operation::set_default_sender_id::SetDefaultSenderIdError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2943            crate::operation::set_default_sender_id::SetDefaultSenderIdError::InternalServerException(inner) => Error::InternalServerException(inner),
2944            crate::operation::set_default_sender_id::SetDefaultSenderIdError::ResourceNotFoundException(inner) => {
2945                Error::ResourceNotFoundException(inner)
2946            }
2947            crate::operation::set_default_sender_id::SetDefaultSenderIdError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2948            crate::operation::set_default_sender_id::SetDefaultSenderIdError::ValidationException(inner) => Error::ValidationException(inner),
2949            crate::operation::set_default_sender_id::SetDefaultSenderIdError::Unhandled(inner) => Error::Unhandled(inner),
2950        }
2951    }
2952}
2953impl<R>
2954    From<
2955        ::aws_smithy_runtime_api::client::result::SdkError<
2956            crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError,
2957            R,
2958        >,
2959    > for Error
2960where
2961    R: Send + Sync + std::fmt::Debug + 'static,
2962{
2963    fn from(
2964        err: ::aws_smithy_runtime_api::client::result::SdkError<
2965            crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError,
2966            R,
2967        >,
2968    ) -> Self {
2969        match err {
2970            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2971            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2972                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2973                source: err.into(),
2974            }),
2975        }
2976    }
2977}
2978impl From<crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError> for Error {
2979    fn from(err: crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError) -> Self {
2980        match err {
2981            crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
2982                Error::AccessDeniedException(inner)
2983            }
2984            crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError::InternalServerException(inner) => {
2985                Error::InternalServerException(inner)
2986            }
2987            crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError::ThrottlingException(inner) => {
2988                Error::ThrottlingException(inner)
2989            }
2990            crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError::ValidationException(inner) => {
2991                Error::ValidationException(inner)
2992            }
2993            crate::operation::set_media_message_spend_limit_override::SetMediaMessageSpendLimitOverrideError::Unhandled(inner) => {
2994                Error::Unhandled(inner)
2995            }
2996        }
2997    }
2998}
2999impl<R>
3000    From<
3001        ::aws_smithy_runtime_api::client::result::SdkError<
3002            crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError,
3003            R,
3004        >,
3005    > for Error
3006where
3007    R: Send + Sync + std::fmt::Debug + 'static,
3008{
3009    fn from(
3010        err: ::aws_smithy_runtime_api::client::result::SdkError<
3011            crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError,
3012            R,
3013        >,
3014    ) -> Self {
3015        match err {
3016            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3017            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3018                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3019                source: err.into(),
3020            }),
3021        }
3022    }
3023}
3024impl From<crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError> for Error {
3025    fn from(err: crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError) -> Self {
3026        match err {
3027            crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
3028                Error::AccessDeniedException(inner)
3029            }
3030            crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError::InternalServerException(inner) => {
3031                Error::InternalServerException(inner)
3032            }
3033            crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError::ThrottlingException(inner) => {
3034                Error::ThrottlingException(inner)
3035            }
3036            crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError::ValidationException(inner) => {
3037                Error::ValidationException(inner)
3038            }
3039            crate::operation::set_text_message_spend_limit_override::SetTextMessageSpendLimitOverrideError::Unhandled(inner) => {
3040                Error::Unhandled(inner)
3041            }
3042        }
3043    }
3044}
3045impl<R>
3046    From<
3047        ::aws_smithy_runtime_api::client::result::SdkError<
3048            crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError,
3049            R,
3050        >,
3051    > for Error
3052where
3053    R: Send + Sync + std::fmt::Debug + 'static,
3054{
3055    fn from(
3056        err: ::aws_smithy_runtime_api::client::result::SdkError<
3057            crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError,
3058            R,
3059        >,
3060    ) -> Self {
3061        match err {
3062            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3063            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3064                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3065                source: err.into(),
3066            }),
3067        }
3068    }
3069}
3070impl From<crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError> for Error {
3071    fn from(err: crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError) -> Self {
3072        match err {
3073            crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError::AccessDeniedException(inner) => {
3074                Error::AccessDeniedException(inner)
3075            }
3076            crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError::InternalServerException(inner) => {
3077                Error::InternalServerException(inner)
3078            }
3079            crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError::ThrottlingException(inner) => {
3080                Error::ThrottlingException(inner)
3081            }
3082            crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError::ValidationException(inner) => {
3083                Error::ValidationException(inner)
3084            }
3085            crate::operation::set_voice_message_spend_limit_override::SetVoiceMessageSpendLimitOverrideError::Unhandled(inner) => {
3086                Error::Unhandled(inner)
3087            }
3088        }
3089    }
3090}
3091impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::submit_registration_version::SubmitRegistrationVersionError, R>>
3092    for Error
3093where
3094    R: Send + Sync + std::fmt::Debug + 'static,
3095{
3096    fn from(
3097        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::submit_registration_version::SubmitRegistrationVersionError, R>,
3098    ) -> Self {
3099        match err {
3100            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3101            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3102                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3103                source: err.into(),
3104            }),
3105        }
3106    }
3107}
3108impl From<crate::operation::submit_registration_version::SubmitRegistrationVersionError> for Error {
3109    fn from(err: crate::operation::submit_registration_version::SubmitRegistrationVersionError) -> Self {
3110        match err {
3111            crate::operation::submit_registration_version::SubmitRegistrationVersionError::AccessDeniedException(inner) => {
3112                Error::AccessDeniedException(inner)
3113            }
3114            crate::operation::submit_registration_version::SubmitRegistrationVersionError::ConflictException(inner) => {
3115                Error::ConflictException(inner)
3116            }
3117            crate::operation::submit_registration_version::SubmitRegistrationVersionError::InternalServerException(inner) => {
3118                Error::InternalServerException(inner)
3119            }
3120            crate::operation::submit_registration_version::SubmitRegistrationVersionError::ResourceNotFoundException(inner) => {
3121                Error::ResourceNotFoundException(inner)
3122            }
3123            crate::operation::submit_registration_version::SubmitRegistrationVersionError::ThrottlingException(inner) => {
3124                Error::ThrottlingException(inner)
3125            }
3126            crate::operation::submit_registration_version::SubmitRegistrationVersionError::ValidationException(inner) => {
3127                Error::ValidationException(inner)
3128            }
3129            crate::operation::submit_registration_version::SubmitRegistrationVersionError::Unhandled(inner) => Error::Unhandled(inner),
3130        }
3131    }
3132}
3133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
3134where
3135    R: Send + Sync + std::fmt::Debug + 'static,
3136{
3137    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
3138        match err {
3139            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3140            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3141                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3142                source: err.into(),
3143            }),
3144        }
3145    }
3146}
3147impl From<crate::operation::tag_resource::TagResourceError> for Error {
3148    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
3149        match err {
3150            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3151            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
3152            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3153            crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
3154            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3155            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
3156            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3157        }
3158    }
3159}
3160impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
3161where
3162    R: Send + Sync + std::fmt::Debug + 'static,
3163{
3164    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
3165        match err {
3166            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3167            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3168                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3169                source: err.into(),
3170            }),
3171        }
3172    }
3173}
3174impl From<crate::operation::untag_resource::UntagResourceError> for Error {
3175    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
3176        match err {
3177            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3178            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
3179            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3180            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3181            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
3182            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3183        }
3184    }
3185}
3186impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_event_destination::UpdateEventDestinationError, R>> for Error
3187where
3188    R: Send + Sync + std::fmt::Debug + 'static,
3189{
3190    fn from(
3191        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_event_destination::UpdateEventDestinationError, R>,
3192    ) -> Self {
3193        match err {
3194            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3195            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3196                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3197                source: err.into(),
3198            }),
3199        }
3200    }
3201}
3202impl From<crate::operation::update_event_destination::UpdateEventDestinationError> for Error {
3203    fn from(err: crate::operation::update_event_destination::UpdateEventDestinationError) -> Self {
3204        match err {
3205            crate::operation::update_event_destination::UpdateEventDestinationError::AccessDeniedException(inner) => {
3206                Error::AccessDeniedException(inner)
3207            }
3208            crate::operation::update_event_destination::UpdateEventDestinationError::ConflictException(inner) => Error::ConflictException(inner),
3209            crate::operation::update_event_destination::UpdateEventDestinationError::InternalServerException(inner) => {
3210                Error::InternalServerException(inner)
3211            }
3212            crate::operation::update_event_destination::UpdateEventDestinationError::ResourceNotFoundException(inner) => {
3213                Error::ResourceNotFoundException(inner)
3214            }
3215            crate::operation::update_event_destination::UpdateEventDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3216            crate::operation::update_event_destination::UpdateEventDestinationError::ValidationException(inner) => Error::ValidationException(inner),
3217            crate::operation::update_event_destination::UpdateEventDestinationError::Unhandled(inner) => Error::Unhandled(inner),
3218        }
3219    }
3220}
3221impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_phone_number::UpdatePhoneNumberError, R>> for Error
3222where
3223    R: Send + Sync + std::fmt::Debug + 'static,
3224{
3225    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_phone_number::UpdatePhoneNumberError, R>) -> Self {
3226        match err {
3227            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3228            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3229                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3230                source: err.into(),
3231            }),
3232        }
3233    }
3234}
3235impl From<crate::operation::update_phone_number::UpdatePhoneNumberError> for Error {
3236    fn from(err: crate::operation::update_phone_number::UpdatePhoneNumberError) -> Self {
3237        match err {
3238            crate::operation::update_phone_number::UpdatePhoneNumberError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3239            crate::operation::update_phone_number::UpdatePhoneNumberError::ConflictException(inner) => Error::ConflictException(inner),
3240            crate::operation::update_phone_number::UpdatePhoneNumberError::InternalServerException(inner) => Error::InternalServerException(inner),
3241            crate::operation::update_phone_number::UpdatePhoneNumberError::ResourceNotFoundException(inner) => {
3242                Error::ResourceNotFoundException(inner)
3243            }
3244            crate::operation::update_phone_number::UpdatePhoneNumberError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3245            crate::operation::update_phone_number::UpdatePhoneNumberError::ValidationException(inner) => Error::ValidationException(inner),
3246            crate::operation::update_phone_number::UpdatePhoneNumberError::Unhandled(inner) => Error::Unhandled(inner),
3247        }
3248    }
3249}
3250impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pool::UpdatePoolError, R>> for Error
3251where
3252    R: Send + Sync + std::fmt::Debug + 'static,
3253{
3254    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pool::UpdatePoolError, R>) -> Self {
3255        match err {
3256            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3257            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3258                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3259                source: err.into(),
3260            }),
3261        }
3262    }
3263}
3264impl From<crate::operation::update_pool::UpdatePoolError> for Error {
3265    fn from(err: crate::operation::update_pool::UpdatePoolError) -> Self {
3266        match err {
3267            crate::operation::update_pool::UpdatePoolError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3268            crate::operation::update_pool::UpdatePoolError::ConflictException(inner) => Error::ConflictException(inner),
3269            crate::operation::update_pool::UpdatePoolError::InternalServerException(inner) => Error::InternalServerException(inner),
3270            crate::operation::update_pool::UpdatePoolError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3271            crate::operation::update_pool::UpdatePoolError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3272            crate::operation::update_pool::UpdatePoolError::ValidationException(inner) => Error::ValidationException(inner),
3273            crate::operation::update_pool::UpdatePoolError::Unhandled(inner) => Error::Unhandled(inner),
3274        }
3275    }
3276}
3277impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_protect_configuration::UpdateProtectConfigurationError, R>>
3278    for Error
3279where
3280    R: Send + Sync + std::fmt::Debug + 'static,
3281{
3282    fn from(
3283        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_protect_configuration::UpdateProtectConfigurationError, R>,
3284    ) -> Self {
3285        match err {
3286            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3287            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3288                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3289                source: err.into(),
3290            }),
3291        }
3292    }
3293}
3294impl From<crate::operation::update_protect_configuration::UpdateProtectConfigurationError> for Error {
3295    fn from(err: crate::operation::update_protect_configuration::UpdateProtectConfigurationError) -> Self {
3296        match err {
3297            crate::operation::update_protect_configuration::UpdateProtectConfigurationError::AccessDeniedException(inner) => {
3298                Error::AccessDeniedException(inner)
3299            }
3300            crate::operation::update_protect_configuration::UpdateProtectConfigurationError::InternalServerException(inner) => {
3301                Error::InternalServerException(inner)
3302            }
3303            crate::operation::update_protect_configuration::UpdateProtectConfigurationError::ResourceNotFoundException(inner) => {
3304                Error::ResourceNotFoundException(inner)
3305            }
3306            crate::operation::update_protect_configuration::UpdateProtectConfigurationError::ThrottlingException(inner) => {
3307                Error::ThrottlingException(inner)
3308            }
3309            crate::operation::update_protect_configuration::UpdateProtectConfigurationError::ValidationException(inner) => {
3310                Error::ValidationException(inner)
3311            }
3312            crate::operation::update_protect_configuration::UpdateProtectConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3313        }
3314    }
3315}
3316impl<R>
3317    From<
3318        ::aws_smithy_runtime_api::client::result::SdkError<
3319            crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError,
3320            R,
3321        >,
3322    > for Error
3323where
3324    R: Send + Sync + std::fmt::Debug + 'static,
3325{
3326    fn from(
3327        err: ::aws_smithy_runtime_api::client::result::SdkError<
3328            crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError,
3329            R,
3330        >,
3331    ) -> Self {
3332        match err {
3333            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3334            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3335                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3336                source: err.into(),
3337            }),
3338        }
3339    }
3340}
3341impl From<crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError> for Error {
3342    fn from(err: crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError) -> Self {
3343        match err {
3344            crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3345            crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::InternalServerException(inner) => Error::InternalServerException(inner),
3346            crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3347            crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3348            crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::ValidationException(inner) => Error::ValidationException(inner),
3349            crate::operation::update_protect_configuration_country_rule_set::UpdateProtectConfigurationCountryRuleSetError::Unhandled(inner) => Error::Unhandled(inner),
3350        }
3351    }
3352}
3353impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_sender_id::UpdateSenderIdError, R>> for Error
3354where
3355    R: Send + Sync + std::fmt::Debug + 'static,
3356{
3357    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_sender_id::UpdateSenderIdError, R>) -> Self {
3358        match err {
3359            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3360            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3361                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3362                source: err.into(),
3363            }),
3364        }
3365    }
3366}
3367impl From<crate::operation::update_sender_id::UpdateSenderIdError> for Error {
3368    fn from(err: crate::operation::update_sender_id::UpdateSenderIdError) -> Self {
3369        match err {
3370            crate::operation::update_sender_id::UpdateSenderIdError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3371            crate::operation::update_sender_id::UpdateSenderIdError::InternalServerException(inner) => Error::InternalServerException(inner),
3372            crate::operation::update_sender_id::UpdateSenderIdError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3373            crate::operation::update_sender_id::UpdateSenderIdError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3374            crate::operation::update_sender_id::UpdateSenderIdError::ValidationException(inner) => Error::ValidationException(inner),
3375            crate::operation::update_sender_id::UpdateSenderIdError::Unhandled(inner) => Error::Unhandled(inner),
3376        }
3377    }
3378}
3379impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_destination_number::VerifyDestinationNumberError, R>>
3380    for Error
3381where
3382    R: Send + Sync + std::fmt::Debug + 'static,
3383{
3384    fn from(
3385        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::verify_destination_number::VerifyDestinationNumberError, R>,
3386    ) -> Self {
3387        match err {
3388            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3389            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3390                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3391                source: err.into(),
3392            }),
3393        }
3394    }
3395}
3396impl From<crate::operation::verify_destination_number::VerifyDestinationNumberError> for Error {
3397    fn from(err: crate::operation::verify_destination_number::VerifyDestinationNumberError) -> Self {
3398        match err {
3399            crate::operation::verify_destination_number::VerifyDestinationNumberError::AccessDeniedException(inner) => {
3400                Error::AccessDeniedException(inner)
3401            }
3402            crate::operation::verify_destination_number::VerifyDestinationNumberError::ConflictException(inner) => Error::ConflictException(inner),
3403            crate::operation::verify_destination_number::VerifyDestinationNumberError::InternalServerException(inner) => {
3404                Error::InternalServerException(inner)
3405            }
3406            crate::operation::verify_destination_number::VerifyDestinationNumberError::ResourceNotFoundException(inner) => {
3407                Error::ResourceNotFoundException(inner)
3408            }
3409            crate::operation::verify_destination_number::VerifyDestinationNumberError::ThrottlingException(inner) => {
3410                Error::ThrottlingException(inner)
3411            }
3412            crate::operation::verify_destination_number::VerifyDestinationNumberError::ValidationException(inner) => {
3413                Error::ValidationException(inner)
3414            }
3415            crate::operation::verify_destination_number::VerifyDestinationNumberError::Unhandled(inner) => Error::Unhandled(inner),
3416        }
3417    }
3418}
3419impl ::std::error::Error for Error {
3420    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3421        match self {
3422            Error::AccessDeniedException(inner) => inner.source(),
3423            Error::ConflictException(inner) => inner.source(),
3424            Error::InternalServerException(inner) => inner.source(),
3425            Error::ResourceNotFoundException(inner) => inner.source(),
3426            Error::ServiceQuotaExceededException(inner) => inner.source(),
3427            Error::ThrottlingException(inner) => inner.source(),
3428            Error::ValidationException(inner) => inner.source(),
3429            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3430        }
3431    }
3432}
3433impl ::aws_types::request_id::RequestId for Error {
3434    fn request_id(&self) -> Option<&str> {
3435        match self {
3436            Self::AccessDeniedException(e) => e.request_id(),
3437            Self::ConflictException(e) => e.request_id(),
3438            Self::InternalServerException(e) => e.request_id(),
3439            Self::ResourceNotFoundException(e) => e.request_id(),
3440            Self::ServiceQuotaExceededException(e) => e.request_id(),
3441            Self::ThrottlingException(e) => e.request_id(),
3442            Self::ValidationException(e) => e.request_id(),
3443            Self::Unhandled(e) => e.meta.request_id(),
3444        }
3445    }
3446}