Skip to main content

aws_sdk_endusermessaging/
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>You do not have sufficient access to perform this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The request conflicts with the current state of the resource.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>An unexpected error occurred during the processing of the request.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The request references a resource that does not exist. Verify that the resource identifier is correct and try your request again.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The request would exceed a service quota for your account.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The request was denied because it exceeded the allowed request rate.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
19    ValidationException(crate::types::error::ValidationException),
20    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
21    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22    variable wildcard pattern and check `.code()`:
23     \
24    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25     \
26    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27    Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31        match self {
32            Error::AccessDeniedException(inner) => inner.fmt(f),
33            Error::ConflictException(inner) => inner.fmt(f),
34            Error::InternalServerException(inner) => inner.fmt(f),
35            Error::ResourceNotFoundException(inner) => inner.fmt(f),
36            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37            Error::ThrottlingException(inner) => inner.fmt(f),
38            Error::ValidationException(inner) => inner.fmt(f),
39            Error::Unhandled(_) => {
40                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41                    write!(f, "unhandled error ({code})")
42                } else {
43                    f.write_str("unhandled error")
44                }
45            }
46        }
47    }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52            source: value.into(),
53            meta: ::std::default::Default::default(),
54        })
55    }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59        match self {
60            Self::AccessDeniedException(inner) => inner.meta(),
61            Self::ConflictException(inner) => inner.meta(),
62            Self::InternalServerException(inner) => inner.meta(),
63            Self::ResourceNotFoundException(inner) => inner.meta(),
64            Self::ServiceQuotaExceededException(inner) => inner.meta(),
65            Self::ThrottlingException(inner) => inner.meta(),
66            Self::ValidationException(inner) => inner.meta(),
67            Self::Unhandled(inner) => &inner.meta,
68        }
69    }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_brand_profile::CreateBrandProfileError, R>> for Error
72where
73    R: Send + Sync + std::fmt::Debug + 'static,
74{
75    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_brand_profile::CreateBrandProfileError, R>) -> Self {
76        match err {
77            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
78            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
79                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
80                source: err.into(),
81            }),
82        }
83    }
84}
85impl From<crate::operation::create_brand_profile::CreateBrandProfileError> for Error {
86    fn from(err: crate::operation::create_brand_profile::CreateBrandProfileError) -> Self {
87        match err {
88            crate::operation::create_brand_profile::CreateBrandProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89            crate::operation::create_brand_profile::CreateBrandProfileError::ConflictException(inner) => Error::ConflictException(inner),
90            crate::operation::create_brand_profile::CreateBrandProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
91            crate::operation::create_brand_profile::CreateBrandProfileError::ServiceQuotaExceededException(inner) => {
92                Error::ServiceQuotaExceededException(inner)
93            }
94            crate::operation::create_brand_profile::CreateBrandProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
95            crate::operation::create_brand_profile::CreateBrandProfileError::ValidationException(inner) => Error::ValidationException(inner),
96            crate::operation::create_brand_profile::CreateBrandProfileError::Unhandled(inner) => Error::Unhandled(inner),
97        }
98    }
99}
100impl<R>
101    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError, R>>
102    for Error
103where
104    R: Send + Sync + std::fmt::Debug + 'static,
105{
106    fn from(
107        err: ::aws_smithy_runtime_api::client::result::SdkError<
108            crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError,
109            R,
110        >,
111    ) -> Self {
112        match err {
113            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
114            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
115                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
116                source: err.into(),
117            }),
118        }
119    }
120}
121impl From<crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError> for Error {
122    fn from(err: crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError) -> Self {
123        match err {
124            crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError::AccessDeniedException(inner) => {
125                Error::AccessDeniedException(inner)
126            }
127            crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError::ConflictException(inner) => {
128                Error::ConflictException(inner)
129            }
130            crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError::InternalServerException(inner) => {
131                Error::InternalServerException(inner)
132            }
133            crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError::ResourceNotFoundException(inner) => {
134                Error::ResourceNotFoundException(inner)
135            }
136            crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError::ServiceQuotaExceededException(inner) => {
137                Error::ServiceQuotaExceededException(inner)
138            }
139            crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError::ThrottlingException(inner) => {
140                Error::ThrottlingException(inner)
141            }
142            crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError::ValidationException(inner) => {
143                Error::ValidationException(inner)
144            }
145            crate::operation::create_brand_profile_attributes::CreateBrandProfileAttributesError::Unhandled(inner) => Error::Unhandled(inner),
146        }
147    }
148}
149impl<R>
150    From<
151        ::aws_smithy_runtime_api::client::result::SdkError<
152            crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError,
153            R,
154        >,
155    > for Error
156where
157    R: Send + Sync + std::fmt::Debug + 'static,
158{
159    fn from(
160        err: ::aws_smithy_runtime_api::client::result::SdkError<
161            crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError,
162            R,
163        >,
164    ) -> Self {
165        match err {
166            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
167            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
168                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
169                source: err.into(),
170            }),
171        }
172    }
173}
174impl From<crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError> for Error {
175    fn from(err: crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError) -> Self {
176        match err {
177            crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError::AccessDeniedException(inner) => {
178                Error::AccessDeniedException(inner)
179            }
180            crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError::ConflictException(inner) => {
181                Error::ConflictException(inner)
182            }
183            crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError::InternalServerException(inner) => {
184                Error::InternalServerException(inner)
185            }
186            crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError::ResourceNotFoundException(inner) => {
187                Error::ResourceNotFoundException(inner)
188            }
189            crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError::ServiceQuotaExceededException(
190                inner,
191            ) => Error::ServiceQuotaExceededException(inner),
192            crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError::ThrottlingException(inner) => {
193                Error::ThrottlingException(inner)
194            }
195            crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError::ValidationException(inner) => {
196                Error::ValidationException(inner)
197            }
198            crate::operation::create_brand_profile_from_registration::CreateBrandProfileFromRegistrationError::Unhandled(inner) => {
199                Error::Unhandled(inner)
200            }
201        }
202    }
203}
204impl<R>
205    From<
206        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError, R>,
207    > for Error
208where
209    R: Send + Sync + std::fmt::Debug + 'static,
210{
211    fn from(
212        err: ::aws_smithy_runtime_api::client::result::SdkError<
213            crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError,
214            R,
215        >,
216    ) -> Self {
217        match err {
218            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
219            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
220                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
221                source: err.into(),
222            }),
223        }
224    }
225}
226impl From<crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError> for Error {
227    fn from(err: crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError) -> Self {
228        match err {
229            crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError::AccessDeniedException(inner) => {
230                Error::AccessDeniedException(inner)
231            }
232            crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError::ConflictException(inner) => {
233                Error::ConflictException(inner)
234            }
235            crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError::InternalServerException(inner) => {
236                Error::InternalServerException(inner)
237            }
238            crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError::ServiceQuotaExceededException(inner) => {
239                Error::ServiceQuotaExceededException(inner)
240            }
241            crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError::ThrottlingException(inner) => {
242                Error::ThrottlingException(inner)
243            }
244            crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError::ValidationException(inner) => {
245                Error::ValidationException(inner)
246            }
247            crate::operation::create_notify_code_configuration::CreateNotifyCodeConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
248        }
249    }
250}
251impl<R>
252    From<
253        ::aws_smithy_runtime_api::client::result::SdkError<
254            crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError,
255            R,
256        >,
257    > for Error
258where
259    R: Send + Sync + std::fmt::Debug + 'static,
260{
261    fn from(
262        err: ::aws_smithy_runtime_api::client::result::SdkError<
263            crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError,
264            R,
265        >,
266    ) -> Self {
267        match err {
268            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
269            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
270                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
271                source: err.into(),
272            }),
273        }
274    }
275}
276impl From<crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError> for Error {
277    fn from(err: crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError) -> Self {
278        match err {
279            crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError::AccessDeniedException(inner) => {
280                Error::AccessDeniedException(inner)
281            }
282            crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError::ConflictException(inner) => {
283                Error::ConflictException(inner)
284            }
285            crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError::InternalServerException(inner) => {
286                Error::InternalServerException(inner)
287            }
288            crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError::ResourceNotFoundException(inner) => {
289                Error::ResourceNotFoundException(inner)
290            }
291            crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError::ThrottlingException(inner) => {
292                Error::ThrottlingException(inner)
293            }
294            crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError::ValidationException(inner) => {
295                Error::ValidationException(inner)
296            }
297            crate::operation::create_registrations_from_brand_profile::CreateRegistrationsFromBrandProfileError::Unhandled(inner) => {
298                Error::Unhandled(inner)
299            }
300        }
301    }
302}
303impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_brand_profile::DeleteBrandProfileError, R>> for Error
304where
305    R: Send + Sync + std::fmt::Debug + 'static,
306{
307    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_brand_profile::DeleteBrandProfileError, R>) -> Self {
308        match err {
309            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
310            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
311                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
312                source: err.into(),
313            }),
314        }
315    }
316}
317impl From<crate::operation::delete_brand_profile::DeleteBrandProfileError> for Error {
318    fn from(err: crate::operation::delete_brand_profile::DeleteBrandProfileError) -> Self {
319        match err {
320            crate::operation::delete_brand_profile::DeleteBrandProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
321            crate::operation::delete_brand_profile::DeleteBrandProfileError::ConflictException(inner) => Error::ConflictException(inner),
322            crate::operation::delete_brand_profile::DeleteBrandProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
323            crate::operation::delete_brand_profile::DeleteBrandProfileError::ResourceNotFoundException(inner) => {
324                Error::ResourceNotFoundException(inner)
325            }
326            crate::operation::delete_brand_profile::DeleteBrandProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
327            crate::operation::delete_brand_profile::DeleteBrandProfileError::ValidationException(inner) => Error::ValidationException(inner),
328            crate::operation::delete_brand_profile::DeleteBrandProfileError::Unhandled(inner) => Error::Unhandled(inner),
329        }
330    }
331}
332impl<R>
333    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError, R>>
334    for Error
335where
336    R: Send + Sync + std::fmt::Debug + 'static,
337{
338    fn from(
339        err: ::aws_smithy_runtime_api::client::result::SdkError<
340            crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError,
341            R,
342        >,
343    ) -> Self {
344        match err {
345            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
346            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
347                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
348                source: err.into(),
349            }),
350        }
351    }
352}
353impl From<crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError> for Error {
354    fn from(err: crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError) -> Self {
355        match err {
356            crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError::AccessDeniedException(inner) => {
357                Error::AccessDeniedException(inner)
358            }
359            crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError::ConflictException(inner) => {
360                Error::ConflictException(inner)
361            }
362            crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError::InternalServerException(inner) => {
363                Error::InternalServerException(inner)
364            }
365            crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError::ResourceNotFoundException(inner) => {
366                Error::ResourceNotFoundException(inner)
367            }
368            crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError::ThrottlingException(inner) => {
369                Error::ThrottlingException(inner)
370            }
371            crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError::ValidationException(inner) => {
372                Error::ValidationException(inner)
373            }
374            crate::operation::delete_brand_profile_attribute::DeleteBrandProfileAttributeError::Unhandled(inner) => Error::Unhandled(inner),
375        }
376    }
377}
378impl<R>
379    From<
380        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError, R>,
381    > for Error
382where
383    R: Send + Sync + std::fmt::Debug + 'static,
384{
385    fn from(
386        err: ::aws_smithy_runtime_api::client::result::SdkError<
387            crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError,
388            R,
389        >,
390    ) -> Self {
391        match err {
392            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
393            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
394                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
395                source: err.into(),
396            }),
397        }
398    }
399}
400impl From<crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError> for Error {
401    fn from(err: crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError) -> Self {
402        match err {
403            crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError::AccessDeniedException(inner) => {
404                Error::AccessDeniedException(inner)
405            }
406            crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError::ConflictException(inner) => {
407                Error::ConflictException(inner)
408            }
409            crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError::InternalServerException(inner) => {
410                Error::InternalServerException(inner)
411            }
412            crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError::ResourceNotFoundException(inner) => {
413                Error::ResourceNotFoundException(inner)
414            }
415            crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError::ThrottlingException(inner) => {
416                Error::ThrottlingException(inner)
417            }
418            crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError::ValidationException(inner) => {
419                Error::ValidationException(inner)
420            }
421            crate::operation::delete_notify_code_configuration::DeleteNotifyCodeConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
422        }
423    }
424}
425impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_brand_profile::GetBrandProfileError, R>> for Error
426where
427    R: Send + Sync + std::fmt::Debug + 'static,
428{
429    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_brand_profile::GetBrandProfileError, R>) -> Self {
430        match err {
431            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
432            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
433                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
434                source: err.into(),
435            }),
436        }
437    }
438}
439impl From<crate::operation::get_brand_profile::GetBrandProfileError> for Error {
440    fn from(err: crate::operation::get_brand_profile::GetBrandProfileError) -> Self {
441        match err {
442            crate::operation::get_brand_profile::GetBrandProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
443            crate::operation::get_brand_profile::GetBrandProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
444            crate::operation::get_brand_profile::GetBrandProfileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
445            crate::operation::get_brand_profile::GetBrandProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
446            crate::operation::get_brand_profile::GetBrandProfileError::ValidationException(inner) => Error::ValidationException(inner),
447            crate::operation::get_brand_profile::GetBrandProfileError::Unhandled(inner) => Error::Unhandled(inner),
448        }
449    }
450}
451impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError, R>>
452    for Error
453where
454    R: Send + Sync + std::fmt::Debug + 'static,
455{
456    fn from(
457        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError, R>,
458    ) -> Self {
459        match err {
460            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
461            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
462                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
463                source: err.into(),
464            }),
465        }
466    }
467}
468impl From<crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError> for Error {
469    fn from(err: crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError) -> Self {
470        match err {
471            crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError::AccessDeniedException(inner) => {
472                Error::AccessDeniedException(inner)
473            }
474            crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError::InternalServerException(inner) => {
475                Error::InternalServerException(inner)
476            }
477            crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError::ResourceNotFoundException(inner) => {
478                Error::ResourceNotFoundException(inner)
479            }
480            crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError::ThrottlingException(inner) => {
481                Error::ThrottlingException(inner)
482            }
483            crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError::ValidationException(inner) => {
484                Error::ValidationException(inner)
485            }
486            crate::operation::get_brand_profile_attribute::GetBrandProfileAttributeError::Unhandled(inner) => Error::Unhandled(inner),
487        }
488    }
489}
490impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job::GetJobError, R>> for Error
491where
492    R: Send + Sync + std::fmt::Debug + 'static,
493{
494    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job::GetJobError, R>) -> Self {
495        match err {
496            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
497            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
498                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
499                source: err.into(),
500            }),
501        }
502    }
503}
504impl From<crate::operation::get_job::GetJobError> for Error {
505    fn from(err: crate::operation::get_job::GetJobError) -> Self {
506        match err {
507            crate::operation::get_job::GetJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
508            crate::operation::get_job::GetJobError::InternalServerException(inner) => Error::InternalServerException(inner),
509            crate::operation::get_job::GetJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
510            crate::operation::get_job::GetJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
511            crate::operation::get_job::GetJobError::ValidationException(inner) => Error::ValidationException(inner),
512            crate::operation::get_job::GetJobError::Unhandled(inner) => Error::Unhandled(inner),
513        }
514    }
515}
516impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError, R>>
517    for Error
518where
519    R: Send + Sync + std::fmt::Debug + 'static,
520{
521    fn from(
522        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError, R>,
523    ) -> Self {
524        match err {
525            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
526            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
527                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
528                source: err.into(),
529            }),
530        }
531    }
532}
533impl From<crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError> for Error {
534    fn from(err: crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError) -> Self {
535        match err {
536            crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError::AccessDeniedException(inner) => {
537                Error::AccessDeniedException(inner)
538            }
539            crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError::InternalServerException(inner) => {
540                Error::InternalServerException(inner)
541            }
542            crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError::ResourceNotFoundException(inner) => {
543                Error::ResourceNotFoundException(inner)
544            }
545            crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError::ThrottlingException(inner) => {
546                Error::ThrottlingException(inner)
547            }
548            crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError::ValidationException(inner) => {
549                Error::ValidationException(inner)
550            }
551            crate::operation::get_notify_code_configuration::GetNotifyCodeConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
552        }
553    }
554}
555impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError, R>>
556    for Error
557where
558    R: Send + Sync + std::fmt::Debug + 'static,
559{
560    fn from(
561        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError, R>,
562    ) -> Self {
563        match err {
564            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
565            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
566                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
567                source: err.into(),
568            }),
569        }
570    }
571}
572impl From<crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError> for Error {
573    fn from(err: crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError) -> Self {
574        match err {
575            crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError::AccessDeniedException(inner) => {
576                Error::AccessDeniedException(inner)
577            }
578            crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError::InternalServerException(inner) => {
579                Error::InternalServerException(inner)
580            }
581            crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError::ResourceNotFoundException(inner) => {
582                Error::ResourceNotFoundException(inner)
583            }
584            crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError::ThrottlingException(inner) => {
585                Error::ThrottlingException(inner)
586            }
587            crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError::ValidationException(inner) => {
588                Error::ValidationException(inner)
589            }
590            crate::operation::list_brand_profile_attributes::ListBrandProfileAttributesError::Unhandled(inner) => Error::Unhandled(inner),
591        }
592    }
593}
594impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_brand_profiles::ListBrandProfilesError, R>> for Error
595where
596    R: Send + Sync + std::fmt::Debug + 'static,
597{
598    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_brand_profiles::ListBrandProfilesError, R>) -> 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::list_brand_profiles::ListBrandProfilesError> for Error {
609    fn from(err: crate::operation::list_brand_profiles::ListBrandProfilesError) -> Self {
610        match err {
611            crate::operation::list_brand_profiles::ListBrandProfilesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
612            crate::operation::list_brand_profiles::ListBrandProfilesError::InternalServerException(inner) => Error::InternalServerException(inner),
613            crate::operation::list_brand_profiles::ListBrandProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
614            crate::operation::list_brand_profiles::ListBrandProfilesError::ValidationException(inner) => Error::ValidationException(inner),
615            crate::operation::list_brand_profiles::ListBrandProfilesError::Unhandled(inner) => Error::Unhandled(inner),
616        }
617    }
618}
619impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>> for Error
620where
621    R: Send + Sync + std::fmt::Debug + 'static,
622{
623    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>) -> Self {
624        match err {
625            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
626            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
627                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
628                source: err.into(),
629            }),
630        }
631    }
632}
633impl From<crate::operation::list_jobs::ListJobsError> for Error {
634    fn from(err: crate::operation::list_jobs::ListJobsError) -> Self {
635        match err {
636            crate::operation::list_jobs::ListJobsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
637            crate::operation::list_jobs::ListJobsError::InternalServerException(inner) => Error::InternalServerException(inner),
638            crate::operation::list_jobs::ListJobsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
639            crate::operation::list_jobs::ListJobsError::ValidationException(inner) => Error::ValidationException(inner),
640            crate::operation::list_jobs::ListJobsError::Unhandled(inner) => Error::Unhandled(inner),
641        }
642    }
643}
644impl<R>
645    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError, R>>
646    for Error
647where
648    R: Send + Sync + std::fmt::Debug + 'static,
649{
650    fn from(
651        err: ::aws_smithy_runtime_api::client::result::SdkError<
652            crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError,
653            R,
654        >,
655    ) -> Self {
656        match err {
657            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
658            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
659                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
660                source: err.into(),
661            }),
662        }
663    }
664}
665impl From<crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError> for Error {
666    fn from(err: crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError) -> Self {
667        match err {
668            crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError::AccessDeniedException(inner) => {
669                Error::AccessDeniedException(inner)
670            }
671            crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError::InternalServerException(inner) => {
672                Error::InternalServerException(inner)
673            }
674            crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError::ThrottlingException(inner) => {
675                Error::ThrottlingException(inner)
676            }
677            crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError::ValidationException(inner) => {
678                Error::ValidationException(inner)
679            }
680            crate::operation::list_notify_code_configurations::ListNotifyCodeConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
681        }
682    }
683}
684impl<R>
685    From<
686        ::aws_smithy_runtime_api::client::result::SdkError<
687            crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError,
688            R,
689        >,
690    > for Error
691where
692    R: Send + Sync + std::fmt::Debug + 'static,
693{
694    fn from(
695        err: ::aws_smithy_runtime_api::client::result::SdkError<
696            crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError,
697            R,
698        >,
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::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError> for Error {
710    fn from(err: crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError) -> Self {
711        match err {
712            crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError::AccessDeniedException(inner) => {
713                Error::AccessDeniedException(inner)
714            }
715            crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError::InternalServerException(inner) => {
716                Error::InternalServerException(inner)
717            }
718            crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError::ResourceNotFoundException(inner) => {
719                Error::ResourceNotFoundException(inner)
720            }
721            crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError::ThrottlingException(inner) => {
722                Error::ThrottlingException(inner)
723            }
724            crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError::ValidationException(inner) => {
725                Error::ValidationException(inner)
726            }
727            crate::operation::list_registrations_from_brand_profile::ListRegistrationsFromBrandProfileError::Unhandled(inner) => {
728                Error::Unhandled(inner)
729            }
730        }
731    }
732}
733impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
734where
735    R: Send + Sync + std::fmt::Debug + 'static,
736{
737    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
738        match err {
739            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
740            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
741                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
742                source: err.into(),
743            }),
744        }
745    }
746}
747impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
748    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
749        match err {
750            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
751            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
752                Error::InternalServerException(inner)
753            }
754            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
755                Error::ResourceNotFoundException(inner)
756            }
757            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
758            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
759            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
760        }
761    }
762}
763impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError, R>>
764    for Error
765where
766    R: Send + Sync + std::fmt::Debug + 'static,
767{
768    fn from(
769        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError, R>,
770    ) -> Self {
771        match err {
772            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
773            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
774                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
775                source: err.into(),
776            }),
777        }
778    }
779}
780impl From<crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError> for Error {
781    fn from(err: crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError) -> Self {
782        match err {
783            crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError::AccessDeniedException(inner) => {
784                Error::AccessDeniedException(inner)
785            }
786            crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError::ConflictException(inner) => {
787                Error::ConflictException(inner)
788            }
789            crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError::InternalServerException(inner) => {
790                Error::InternalServerException(inner)
791            }
792            crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError::ResourceNotFoundException(inner) => {
793                Error::ResourceNotFoundException(inner)
794            }
795            crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError::ServiceQuotaExceededException(inner) => {
796                Error::ServiceQuotaExceededException(inner)
797            }
798            crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError::ThrottlingException(inner) => {
799                Error::ThrottlingException(inner)
800            }
801            crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError::ValidationException(inner) => {
802                Error::ValidationException(inner)
803            }
804            crate::operation::send_notify_code_verification::SendNotifyCodeVerificationError::Unhandled(inner) => Error::Unhandled(inner),
805        }
806    }
807}
808impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
809where
810    R: Send + Sync + std::fmt::Debug + 'static,
811{
812    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
813        match err {
814            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
815            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
816                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
817                source: err.into(),
818            }),
819        }
820    }
821}
822impl From<crate::operation::tag_resource::TagResourceError> for Error {
823    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
824        match err {
825            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
826            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
827            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
828            crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
829            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
830            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
831            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
832        }
833    }
834}
835impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
836where
837    R: Send + Sync + std::fmt::Debug + 'static,
838{
839    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
840        match err {
841            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
842            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
843                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
844                source: err.into(),
845            }),
846        }
847    }
848}
849impl From<crate::operation::untag_resource::UntagResourceError> for Error {
850    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
851        match err {
852            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
853            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
854            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
855            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
856            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
857            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
858        }
859    }
860}
861impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_brand_profile::UpdateBrandProfileError, R>> for Error
862where
863    R: Send + Sync + std::fmt::Debug + 'static,
864{
865    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_brand_profile::UpdateBrandProfileError, R>) -> Self {
866        match err {
867            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
868            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
869                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
870                source: err.into(),
871            }),
872        }
873    }
874}
875impl From<crate::operation::update_brand_profile::UpdateBrandProfileError> for Error {
876    fn from(err: crate::operation::update_brand_profile::UpdateBrandProfileError) -> Self {
877        match err {
878            crate::operation::update_brand_profile::UpdateBrandProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
879            crate::operation::update_brand_profile::UpdateBrandProfileError::ConflictException(inner) => Error::ConflictException(inner),
880            crate::operation::update_brand_profile::UpdateBrandProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
881            crate::operation::update_brand_profile::UpdateBrandProfileError::ResourceNotFoundException(inner) => {
882                Error::ResourceNotFoundException(inner)
883            }
884            crate::operation::update_brand_profile::UpdateBrandProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
885            crate::operation::update_brand_profile::UpdateBrandProfileError::ValidationException(inner) => Error::ValidationException(inner),
886            crate::operation::update_brand_profile::UpdateBrandProfileError::Unhandled(inner) => Error::Unhandled(inner),
887        }
888    }
889}
890impl<R>
891    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError, R>>
892    for Error
893where
894    R: Send + Sync + std::fmt::Debug + 'static,
895{
896    fn from(
897        err: ::aws_smithy_runtime_api::client::result::SdkError<
898            crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError,
899            R,
900        >,
901    ) -> Self {
902        match err {
903            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
904            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
905                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
906                source: err.into(),
907            }),
908        }
909    }
910}
911impl From<crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError> for Error {
912    fn from(err: crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError) -> Self {
913        match err {
914            crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError::AccessDeniedException(inner) => {
915                Error::AccessDeniedException(inner)
916            }
917            crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError::ConflictException(inner) => {
918                Error::ConflictException(inner)
919            }
920            crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError::InternalServerException(inner) => {
921                Error::InternalServerException(inner)
922            }
923            crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError::ResourceNotFoundException(inner) => {
924                Error::ResourceNotFoundException(inner)
925            }
926            crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError::ThrottlingException(inner) => {
927                Error::ThrottlingException(inner)
928            }
929            crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError::ValidationException(inner) => {
930                Error::ValidationException(inner)
931            }
932            crate::operation::update_brand_profile_attribute::UpdateBrandProfileAttributeError::Unhandled(inner) => Error::Unhandled(inner),
933        }
934    }
935}
936impl<R>
937    From<
938        ::aws_smithy_runtime_api::client::result::SdkError<
939            crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError,
940            R,
941        >,
942    > for Error
943where
944    R: Send + Sync + std::fmt::Debug + 'static,
945{
946    fn from(
947        err: ::aws_smithy_runtime_api::client::result::SdkError<
948            crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError,
949            R,
950        >,
951    ) -> Self {
952        match err {
953            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
954            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
955                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
956                source: err.into(),
957            }),
958        }
959    }
960}
961impl From<crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError> for Error {
962    fn from(err: crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError) -> Self {
963        match err {
964            crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError::AccessDeniedException(inner) => {
965                Error::AccessDeniedException(inner)
966            }
967            crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError::ConflictException(inner) => {
968                Error::ConflictException(inner)
969            }
970            crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError::InternalServerException(inner) => {
971                Error::InternalServerException(inner)
972            }
973            crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError::ResourceNotFoundException(inner) => {
974                Error::ResourceNotFoundException(inner)
975            }
976            crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError::ThrottlingException(inner) => {
977                Error::ThrottlingException(inner)
978            }
979            crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError::ValidationException(inner) => {
980                Error::ValidationException(inner)
981            }
982            crate::operation::update_brand_profile_from_registration::UpdateBrandProfileFromRegistrationError::Unhandled(inner) => {
983                Error::Unhandled(inner)
984            }
985        }
986    }
987}
988impl<R>
989    From<
990        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError, R>,
991    > for Error
992where
993    R: Send + Sync + std::fmt::Debug + 'static,
994{
995    fn from(
996        err: ::aws_smithy_runtime_api::client::result::SdkError<
997            crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError,
998            R,
999        >,
1000    ) -> Self {
1001        match err {
1002            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1003            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1004                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1005                source: err.into(),
1006            }),
1007        }
1008    }
1009}
1010impl From<crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError> for Error {
1011    fn from(err: crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError) -> Self {
1012        match err {
1013            crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError::AccessDeniedException(inner) => {
1014                Error::AccessDeniedException(inner)
1015            }
1016            crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError::ConflictException(inner) => {
1017                Error::ConflictException(inner)
1018            }
1019            crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError::InternalServerException(inner) => {
1020                Error::InternalServerException(inner)
1021            }
1022            crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError::ResourceNotFoundException(inner) => {
1023                Error::ResourceNotFoundException(inner)
1024            }
1025            crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError::ThrottlingException(inner) => {
1026                Error::ThrottlingException(inner)
1027            }
1028            crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError::ValidationException(inner) => {
1029                Error::ValidationException(inner)
1030            }
1031            crate::operation::update_notify_code_configuration::UpdateNotifyCodeConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1032        }
1033    }
1034}
1035impl<R>
1036    From<
1037        ::aws_smithy_runtime_api::client::result::SdkError<
1038            crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError,
1039            R,
1040        >,
1041    > for Error
1042where
1043    R: Send + Sync + std::fmt::Debug + 'static,
1044{
1045    fn from(
1046        err: ::aws_smithy_runtime_api::client::result::SdkError<
1047            crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError,
1048            R,
1049        >,
1050    ) -> Self {
1051        match err {
1052            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1053            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1054                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1055                source: err.into(),
1056            }),
1057        }
1058    }
1059}
1060impl From<crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError> for Error {
1061    fn from(err: crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError) -> Self {
1062        match err {
1063            crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError::AccessDeniedException(inner) => {
1064                Error::AccessDeniedException(inner)
1065            }
1066            crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError::ConflictException(inner) => {
1067                Error::ConflictException(inner)
1068            }
1069            crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError::InternalServerException(inner) => {
1070                Error::InternalServerException(inner)
1071            }
1072            crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError::ResourceNotFoundException(inner) => {
1073                Error::ResourceNotFoundException(inner)
1074            }
1075            crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError::ThrottlingException(inner) => {
1076                Error::ThrottlingException(inner)
1077            }
1078            crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError::ValidationException(inner) => {
1079                Error::ValidationException(inner)
1080            }
1081            crate::operation::update_registrations_from_brand_profile::UpdateRegistrationsFromBrandProfileError::Unhandled(inner) => {
1082                Error::Unhandled(inner)
1083            }
1084        }
1085    }
1086}
1087impl<R>
1088    From<
1089        ::aws_smithy_runtime_api::client::result::SdkError<
1090            crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError,
1091            R,
1092        >,
1093    > for Error
1094where
1095    R: Send + Sync + std::fmt::Debug + 'static,
1096{
1097    fn from(
1098        err: ::aws_smithy_runtime_api::client::result::SdkError<
1099            crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError,
1100            R,
1101        >,
1102    ) -> Self {
1103        match err {
1104            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1105            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1106                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1107                source: err.into(),
1108            }),
1109        }
1110    }
1111}
1112impl From<crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError> for Error {
1113    fn from(err: crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError) -> Self {
1114        match err {
1115            crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError::AccessDeniedException(inner) => {
1116                Error::AccessDeniedException(inner)
1117            }
1118            crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError::InternalServerException(inner) => {
1119                Error::InternalServerException(inner)
1120            }
1121            crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError::ThrottlingException(inner) => {
1122                Error::ThrottlingException(inner)
1123            }
1124            crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError::ValidationException(inner) => {
1125                Error::ValidationException(inner)
1126            }
1127            crate::operation::validate_notify_code_verification::ValidateNotifyCodeVerificationError::Unhandled(inner) => Error::Unhandled(inner),
1128        }
1129    }
1130}
1131impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
1132where
1133    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
1134    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
1135{
1136    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
1137        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1138            meta: ::std::default::Default::default(),
1139            source: err.into(),
1140        })
1141    }
1142}
1143impl ::std::error::Error for Error {
1144    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1145        match self {
1146            Error::AccessDeniedException(inner) => inner.source(),
1147            Error::ConflictException(inner) => inner.source(),
1148            Error::InternalServerException(inner) => inner.source(),
1149            Error::ResourceNotFoundException(inner) => inner.source(),
1150            Error::ServiceQuotaExceededException(inner) => inner.source(),
1151            Error::ThrottlingException(inner) => inner.source(),
1152            Error::ValidationException(inner) => inner.source(),
1153            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1154        }
1155    }
1156}
1157impl ::aws_types::request_id::RequestId for Error {
1158    fn request_id(&self) -> Option<&str> {
1159        match self {
1160            Self::AccessDeniedException(e) => e.request_id(),
1161            Self::ConflictException(e) => e.request_id(),
1162            Self::InternalServerException(e) => e.request_id(),
1163            Self::ResourceNotFoundException(e) => e.request_id(),
1164            Self::ServiceQuotaExceededException(e) => e.request_id(),
1165            Self::ThrottlingException(e) => e.request_id(),
1166            Self::ValidationException(e) => e.request_id(),
1167            Self::Unhandled(e) => e.meta.request_id(),
1168        }
1169    }
1170}