Skip to main content

aws_sdk_entityresolution/
error_meta.rs

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