aws_sdk_pinpointsmsvoicev2/
error_meta.rs

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