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