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 could not 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 could not 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::ThrottlingException(inner) => {
287                Error::ThrottlingException(inner)
288            }
289            crate::operation::delete_id_mapping_workflow::DeleteIdMappingWorkflowError::ValidationException(inner) => {
290                Error::ValidationException(inner)
291            }
292            crate::operation::delete_id_mapping_workflow::DeleteIdMappingWorkflowError::Unhandled(inner) => Error::Unhandled(inner),
293        }
294    }
295}
296impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_id_namespace::DeleteIdNamespaceError, R>> for Error
297where
298    R: Send + Sync + std::fmt::Debug + 'static,
299{
300    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_id_namespace::DeleteIdNamespaceError, R>) -> Self {
301        match err {
302            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
303            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
304                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
305                source: err.into(),
306            }),
307        }
308    }
309}
310impl From<crate::operation::delete_id_namespace::DeleteIdNamespaceError> for Error {
311    fn from(err: crate::operation::delete_id_namespace::DeleteIdNamespaceError) -> Self {
312        match err {
313            crate::operation::delete_id_namespace::DeleteIdNamespaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
314            crate::operation::delete_id_namespace::DeleteIdNamespaceError::InternalServerException(inner) => Error::InternalServerException(inner),
315            crate::operation::delete_id_namespace::DeleteIdNamespaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
316            crate::operation::delete_id_namespace::DeleteIdNamespaceError::ValidationException(inner) => Error::ValidationException(inner),
317            crate::operation::delete_id_namespace::DeleteIdNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
318        }
319    }
320}
321impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_matching_workflow::DeleteMatchingWorkflowError, R>> for Error
322where
323    R: Send + Sync + std::fmt::Debug + 'static,
324{
325    fn from(
326        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_matching_workflow::DeleteMatchingWorkflowError, R>,
327    ) -> Self {
328        match err {
329            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
330            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
331                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
332                source: err.into(),
333            }),
334        }
335    }
336}
337impl From<crate::operation::delete_matching_workflow::DeleteMatchingWorkflowError> for Error {
338    fn from(err: crate::operation::delete_matching_workflow::DeleteMatchingWorkflowError) -> Self {
339        match err {
340            crate::operation::delete_matching_workflow::DeleteMatchingWorkflowError::AccessDeniedException(inner) => {
341                Error::AccessDeniedException(inner)
342            }
343            crate::operation::delete_matching_workflow::DeleteMatchingWorkflowError::ConflictException(inner) => Error::ConflictException(inner),
344            crate::operation::delete_matching_workflow::DeleteMatchingWorkflowError::InternalServerException(inner) => {
345                Error::InternalServerException(inner)
346            }
347            crate::operation::delete_matching_workflow::DeleteMatchingWorkflowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
348            crate::operation::delete_matching_workflow::DeleteMatchingWorkflowError::ValidationException(inner) => Error::ValidationException(inner),
349            crate::operation::delete_matching_workflow::DeleteMatchingWorkflowError::Unhandled(inner) => Error::Unhandled(inner),
350        }
351    }
352}
353impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_policy_statement::DeletePolicyStatementError, R>> for Error
354where
355    R: Send + Sync + std::fmt::Debug + 'static,
356{
357    fn from(
358        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_policy_statement::DeletePolicyStatementError, R>,
359    ) -> Self {
360        match err {
361            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
362            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
363                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
364                source: err.into(),
365            }),
366        }
367    }
368}
369impl From<crate::operation::delete_policy_statement::DeletePolicyStatementError> for Error {
370    fn from(err: crate::operation::delete_policy_statement::DeletePolicyStatementError) -> Self {
371        match err {
372            crate::operation::delete_policy_statement::DeletePolicyStatementError::AccessDeniedException(inner) => {
373                Error::AccessDeniedException(inner)
374            }
375            crate::operation::delete_policy_statement::DeletePolicyStatementError::ConflictException(inner) => Error::ConflictException(inner),
376            crate::operation::delete_policy_statement::DeletePolicyStatementError::InternalServerException(inner) => {
377                Error::InternalServerException(inner)
378            }
379            crate::operation::delete_policy_statement::DeletePolicyStatementError::ResourceNotFoundException(inner) => {
380                Error::ResourceNotFoundException(inner)
381            }
382            crate::operation::delete_policy_statement::DeletePolicyStatementError::ThrottlingException(inner) => Error::ThrottlingException(inner),
383            crate::operation::delete_policy_statement::DeletePolicyStatementError::ValidationException(inner) => Error::ValidationException(inner),
384            crate::operation::delete_policy_statement::DeletePolicyStatementError::Unhandled(inner) => Error::Unhandled(inner),
385        }
386    }
387}
388impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_schema_mapping::DeleteSchemaMappingError, 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::delete_schema_mapping::DeleteSchemaMappingError, 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::delete_schema_mapping::DeleteSchemaMappingError> for Error {
403    fn from(err: crate::operation::delete_schema_mapping::DeleteSchemaMappingError) -> Self {
404        match err {
405            crate::operation::delete_schema_mapping::DeleteSchemaMappingError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
406            crate::operation::delete_schema_mapping::DeleteSchemaMappingError::ConflictException(inner) => Error::ConflictException(inner),
407            crate::operation::delete_schema_mapping::DeleteSchemaMappingError::InternalServerException(inner) => {
408                Error::InternalServerException(inner)
409            }
410            crate::operation::delete_schema_mapping::DeleteSchemaMappingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
411            crate::operation::delete_schema_mapping::DeleteSchemaMappingError::ValidationException(inner) => Error::ValidationException(inner),
412            crate::operation::delete_schema_mapping::DeleteSchemaMappingError::Unhandled(inner) => Error::Unhandled(inner),
413        }
414    }
415}
416impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_id_mapping_job::GetIdMappingJobError, R>> for Error
417where
418    R: Send + Sync + std::fmt::Debug + 'static,
419{
420    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_id_mapping_job::GetIdMappingJobError, R>) -> Self {
421        match err {
422            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
423            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
424                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
425                source: err.into(),
426            }),
427        }
428    }
429}
430impl From<crate::operation::get_id_mapping_job::GetIdMappingJobError> for Error {
431    fn from(err: crate::operation::get_id_mapping_job::GetIdMappingJobError) -> Self {
432        match err {
433            crate::operation::get_id_mapping_job::GetIdMappingJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
434            crate::operation::get_id_mapping_job::GetIdMappingJobError::InternalServerException(inner) => Error::InternalServerException(inner),
435            crate::operation::get_id_mapping_job::GetIdMappingJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
436            crate::operation::get_id_mapping_job::GetIdMappingJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
437            crate::operation::get_id_mapping_job::GetIdMappingJobError::ValidationException(inner) => Error::ValidationException(inner),
438            crate::operation::get_id_mapping_job::GetIdMappingJobError::Unhandled(inner) => Error::Unhandled(inner),
439        }
440    }
441}
442impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_id_mapping_workflow::GetIdMappingWorkflowError, R>> for Error
443where
444    R: Send + Sync + std::fmt::Debug + 'static,
445{
446    fn from(
447        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_id_mapping_workflow::GetIdMappingWorkflowError, R>,
448    ) -> Self {
449        match err {
450            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
451            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
452                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
453                source: err.into(),
454            }),
455        }
456    }
457}
458impl From<crate::operation::get_id_mapping_workflow::GetIdMappingWorkflowError> for Error {
459    fn from(err: crate::operation::get_id_mapping_workflow::GetIdMappingWorkflowError) -> Self {
460        match err {
461            crate::operation::get_id_mapping_workflow::GetIdMappingWorkflowError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
462            crate::operation::get_id_mapping_workflow::GetIdMappingWorkflowError::InternalServerException(inner) => {
463                Error::InternalServerException(inner)
464            }
465            crate::operation::get_id_mapping_workflow::GetIdMappingWorkflowError::ResourceNotFoundException(inner) => {
466                Error::ResourceNotFoundException(inner)
467            }
468            crate::operation::get_id_mapping_workflow::GetIdMappingWorkflowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
469            crate::operation::get_id_mapping_workflow::GetIdMappingWorkflowError::ValidationException(inner) => Error::ValidationException(inner),
470            crate::operation::get_id_mapping_workflow::GetIdMappingWorkflowError::Unhandled(inner) => Error::Unhandled(inner),
471        }
472    }
473}
474impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_id_namespace::GetIdNamespaceError, R>> for Error
475where
476    R: Send + Sync + std::fmt::Debug + 'static,
477{
478    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_id_namespace::GetIdNamespaceError, R>) -> Self {
479        match err {
480            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
481            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
482                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
483                source: err.into(),
484            }),
485        }
486    }
487}
488impl From<crate::operation::get_id_namespace::GetIdNamespaceError> for Error {
489    fn from(err: crate::operation::get_id_namespace::GetIdNamespaceError) -> Self {
490        match err {
491            crate::operation::get_id_namespace::GetIdNamespaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
492            crate::operation::get_id_namespace::GetIdNamespaceError::InternalServerException(inner) => Error::InternalServerException(inner),
493            crate::operation::get_id_namespace::GetIdNamespaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
494            crate::operation::get_id_namespace::GetIdNamespaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
495            crate::operation::get_id_namespace::GetIdNamespaceError::ValidationException(inner) => Error::ValidationException(inner),
496            crate::operation::get_id_namespace::GetIdNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
497        }
498    }
499}
500impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_match_id::GetMatchIdError, R>> for Error
501where
502    R: Send + Sync + std::fmt::Debug + 'static,
503{
504    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_match_id::GetMatchIdError, R>) -> Self {
505        match err {
506            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
507            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
508                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
509                source: err.into(),
510            }),
511        }
512    }
513}
514impl From<crate::operation::get_match_id::GetMatchIdError> for Error {
515    fn from(err: crate::operation::get_match_id::GetMatchIdError) -> Self {
516        match err {
517            crate::operation::get_match_id::GetMatchIdError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
518            crate::operation::get_match_id::GetMatchIdError::InternalServerException(inner) => Error::InternalServerException(inner),
519            crate::operation::get_match_id::GetMatchIdError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
520            crate::operation::get_match_id::GetMatchIdError::ThrottlingException(inner) => Error::ThrottlingException(inner),
521            crate::operation::get_match_id::GetMatchIdError::ValidationException(inner) => Error::ValidationException(inner),
522            crate::operation::get_match_id::GetMatchIdError::Unhandled(inner) => Error::Unhandled(inner),
523        }
524    }
525}
526impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_matching_job::GetMatchingJobError, R>> for Error
527where
528    R: Send + Sync + std::fmt::Debug + 'static,
529{
530    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_matching_job::GetMatchingJobError, R>) -> Self {
531        match err {
532            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
533            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
534                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
535                source: err.into(),
536            }),
537        }
538    }
539}
540impl From<crate::operation::get_matching_job::GetMatchingJobError> for Error {
541    fn from(err: crate::operation::get_matching_job::GetMatchingJobError) -> Self {
542        match err {
543            crate::operation::get_matching_job::GetMatchingJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
544            crate::operation::get_matching_job::GetMatchingJobError::InternalServerException(inner) => Error::InternalServerException(inner),
545            crate::operation::get_matching_job::GetMatchingJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
546            crate::operation::get_matching_job::GetMatchingJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
547            crate::operation::get_matching_job::GetMatchingJobError::ValidationException(inner) => Error::ValidationException(inner),
548            crate::operation::get_matching_job::GetMatchingJobError::Unhandled(inner) => Error::Unhandled(inner),
549        }
550    }
551}
552impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_matching_workflow::GetMatchingWorkflowError, R>> for Error
553where
554    R: Send + Sync + std::fmt::Debug + 'static,
555{
556    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_matching_workflow::GetMatchingWorkflowError, R>) -> Self {
557        match err {
558            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
559            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
560                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
561                source: err.into(),
562            }),
563        }
564    }
565}
566impl From<crate::operation::get_matching_workflow::GetMatchingWorkflowError> for Error {
567    fn from(err: crate::operation::get_matching_workflow::GetMatchingWorkflowError) -> Self {
568        match err {
569            crate::operation::get_matching_workflow::GetMatchingWorkflowError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
570            crate::operation::get_matching_workflow::GetMatchingWorkflowError::InternalServerException(inner) => {
571                Error::InternalServerException(inner)
572            }
573            crate::operation::get_matching_workflow::GetMatchingWorkflowError::ResourceNotFoundException(inner) => {
574                Error::ResourceNotFoundException(inner)
575            }
576            crate::operation::get_matching_workflow::GetMatchingWorkflowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
577            crate::operation::get_matching_workflow::GetMatchingWorkflowError::ValidationException(inner) => Error::ValidationException(inner),
578            crate::operation::get_matching_workflow::GetMatchingWorkflowError::Unhandled(inner) => Error::Unhandled(inner),
579        }
580    }
581}
582impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy::GetPolicyError, R>> for Error
583where
584    R: Send + Sync + std::fmt::Debug + 'static,
585{
586    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policy::GetPolicyError, R>) -> Self {
587        match err {
588            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
589            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
590                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
591                source: err.into(),
592            }),
593        }
594    }
595}
596impl From<crate::operation::get_policy::GetPolicyError> for Error {
597    fn from(err: crate::operation::get_policy::GetPolicyError) -> Self {
598        match err {
599            crate::operation::get_policy::GetPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
600            crate::operation::get_policy::GetPolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
601            crate::operation::get_policy::GetPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
602            crate::operation::get_policy::GetPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
603            crate::operation::get_policy::GetPolicyError::ValidationException(inner) => Error::ValidationException(inner),
604            crate::operation::get_policy::GetPolicyError::Unhandled(inner) => Error::Unhandled(inner),
605        }
606    }
607}
608impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_provider_service::GetProviderServiceError, R>> for Error
609where
610    R: Send + Sync + std::fmt::Debug + 'static,
611{
612    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_provider_service::GetProviderServiceError, R>) -> Self {
613        match err {
614            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
615            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
616                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
617                source: err.into(),
618            }),
619        }
620    }
621}
622impl From<crate::operation::get_provider_service::GetProviderServiceError> for Error {
623    fn from(err: crate::operation::get_provider_service::GetProviderServiceError) -> Self {
624        match err {
625            crate::operation::get_provider_service::GetProviderServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
626            crate::operation::get_provider_service::GetProviderServiceError::InternalServerException(inner) => Error::InternalServerException(inner),
627            crate::operation::get_provider_service::GetProviderServiceError::ResourceNotFoundException(inner) => {
628                Error::ResourceNotFoundException(inner)
629            }
630            crate::operation::get_provider_service::GetProviderServiceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
631            crate::operation::get_provider_service::GetProviderServiceError::ValidationException(inner) => Error::ValidationException(inner),
632            crate::operation::get_provider_service::GetProviderServiceError::Unhandled(inner) => Error::Unhandled(inner),
633        }
634    }
635}
636impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_schema_mapping::GetSchemaMappingError, R>> for Error
637where
638    R: Send + Sync + std::fmt::Debug + 'static,
639{
640    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_schema_mapping::GetSchemaMappingError, R>) -> Self {
641        match err {
642            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
643            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
644                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
645                source: err.into(),
646            }),
647        }
648    }
649}
650impl From<crate::operation::get_schema_mapping::GetSchemaMappingError> for Error {
651    fn from(err: crate::operation::get_schema_mapping::GetSchemaMappingError) -> Self {
652        match err {
653            crate::operation::get_schema_mapping::GetSchemaMappingError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
654            crate::operation::get_schema_mapping::GetSchemaMappingError::InternalServerException(inner) => Error::InternalServerException(inner),
655            crate::operation::get_schema_mapping::GetSchemaMappingError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
656            crate::operation::get_schema_mapping::GetSchemaMappingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
657            crate::operation::get_schema_mapping::GetSchemaMappingError::ValidationException(inner) => Error::ValidationException(inner),
658            crate::operation::get_schema_mapping::GetSchemaMappingError::Unhandled(inner) => Error::Unhandled(inner),
659        }
660    }
661}
662impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_id_mapping_jobs::ListIdMappingJobsError, R>> for Error
663where
664    R: Send + Sync + std::fmt::Debug + 'static,
665{
666    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_id_mapping_jobs::ListIdMappingJobsError, R>) -> Self {
667        match err {
668            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
669            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
670                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
671                source: err.into(),
672            }),
673        }
674    }
675}
676impl From<crate::operation::list_id_mapping_jobs::ListIdMappingJobsError> for Error {
677    fn from(err: crate::operation::list_id_mapping_jobs::ListIdMappingJobsError) -> Self {
678        match err {
679            crate::operation::list_id_mapping_jobs::ListIdMappingJobsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
680            crate::operation::list_id_mapping_jobs::ListIdMappingJobsError::InternalServerException(inner) => Error::InternalServerException(inner),
681            crate::operation::list_id_mapping_jobs::ListIdMappingJobsError::ResourceNotFoundException(inner) => {
682                Error::ResourceNotFoundException(inner)
683            }
684            crate::operation::list_id_mapping_jobs::ListIdMappingJobsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
685            crate::operation::list_id_mapping_jobs::ListIdMappingJobsError::ValidationException(inner) => Error::ValidationException(inner),
686            crate::operation::list_id_mapping_jobs::ListIdMappingJobsError::Unhandled(inner) => Error::Unhandled(inner),
687        }
688    }
689}
690impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_id_mapping_workflows::ListIdMappingWorkflowsError, R>>
691    for Error
692where
693    R: Send + Sync + std::fmt::Debug + 'static,
694{
695    fn from(
696        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_id_mapping_workflows::ListIdMappingWorkflowsError, R>,
697    ) -> Self {
698        match err {
699            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
700            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
701                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
702                source: err.into(),
703            }),
704        }
705    }
706}
707impl From<crate::operation::list_id_mapping_workflows::ListIdMappingWorkflowsError> for Error {
708    fn from(err: crate::operation::list_id_mapping_workflows::ListIdMappingWorkflowsError) -> Self {
709        match err {
710            crate::operation::list_id_mapping_workflows::ListIdMappingWorkflowsError::AccessDeniedException(inner) => {
711                Error::AccessDeniedException(inner)
712            }
713            crate::operation::list_id_mapping_workflows::ListIdMappingWorkflowsError::InternalServerException(inner) => {
714                Error::InternalServerException(inner)
715            }
716            crate::operation::list_id_mapping_workflows::ListIdMappingWorkflowsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
717            crate::operation::list_id_mapping_workflows::ListIdMappingWorkflowsError::ValidationException(inner) => Error::ValidationException(inner),
718            crate::operation::list_id_mapping_workflows::ListIdMappingWorkflowsError::Unhandled(inner) => Error::Unhandled(inner),
719        }
720    }
721}
722impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_id_namespaces::ListIdNamespacesError, R>> for Error
723where
724    R: Send + Sync + std::fmt::Debug + 'static,
725{
726    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_id_namespaces::ListIdNamespacesError, R>) -> Self {
727        match err {
728            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
729            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
730                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
731                source: err.into(),
732            }),
733        }
734    }
735}
736impl From<crate::operation::list_id_namespaces::ListIdNamespacesError> for Error {
737    fn from(err: crate::operation::list_id_namespaces::ListIdNamespacesError) -> Self {
738        match err {
739            crate::operation::list_id_namespaces::ListIdNamespacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
740            crate::operation::list_id_namespaces::ListIdNamespacesError::InternalServerException(inner) => Error::InternalServerException(inner),
741            crate::operation::list_id_namespaces::ListIdNamespacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
742            crate::operation::list_id_namespaces::ListIdNamespacesError::ValidationException(inner) => Error::ValidationException(inner),
743            crate::operation::list_id_namespaces::ListIdNamespacesError::Unhandled(inner) => Error::Unhandled(inner),
744        }
745    }
746}
747impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_matching_jobs::ListMatchingJobsError, R>> for Error
748where
749    R: Send + Sync + std::fmt::Debug + 'static,
750{
751    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_matching_jobs::ListMatchingJobsError, R>) -> Self {
752        match err {
753            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
754            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
755                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
756                source: err.into(),
757            }),
758        }
759    }
760}
761impl From<crate::operation::list_matching_jobs::ListMatchingJobsError> for Error {
762    fn from(err: crate::operation::list_matching_jobs::ListMatchingJobsError) -> Self {
763        match err {
764            crate::operation::list_matching_jobs::ListMatchingJobsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
765            crate::operation::list_matching_jobs::ListMatchingJobsError::InternalServerException(inner) => Error::InternalServerException(inner),
766            crate::operation::list_matching_jobs::ListMatchingJobsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
767            crate::operation::list_matching_jobs::ListMatchingJobsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
768            crate::operation::list_matching_jobs::ListMatchingJobsError::ValidationException(inner) => Error::ValidationException(inner),
769            crate::operation::list_matching_jobs::ListMatchingJobsError::Unhandled(inner) => Error::Unhandled(inner),
770        }
771    }
772}
773impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_matching_workflows::ListMatchingWorkflowsError, R>> for Error
774where
775    R: Send + Sync + std::fmt::Debug + 'static,
776{
777    fn from(
778        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_matching_workflows::ListMatchingWorkflowsError, R>,
779    ) -> Self {
780        match err {
781            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
782            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
783                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
784                source: err.into(),
785            }),
786        }
787    }
788}
789impl From<crate::operation::list_matching_workflows::ListMatchingWorkflowsError> for Error {
790    fn from(err: crate::operation::list_matching_workflows::ListMatchingWorkflowsError) -> Self {
791        match err {
792            crate::operation::list_matching_workflows::ListMatchingWorkflowsError::AccessDeniedException(inner) => {
793                Error::AccessDeniedException(inner)
794            }
795            crate::operation::list_matching_workflows::ListMatchingWorkflowsError::InternalServerException(inner) => {
796                Error::InternalServerException(inner)
797            }
798            crate::operation::list_matching_workflows::ListMatchingWorkflowsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
799            crate::operation::list_matching_workflows::ListMatchingWorkflowsError::ValidationException(inner) => Error::ValidationException(inner),
800            crate::operation::list_matching_workflows::ListMatchingWorkflowsError::Unhandled(inner) => Error::Unhandled(inner),
801        }
802    }
803}
804impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_provider_services::ListProviderServicesError, R>> for Error
805where
806    R: Send + Sync + std::fmt::Debug + 'static,
807{
808    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_provider_services::ListProviderServicesError, R>) -> Self {
809        match err {
810            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
811            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
812                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
813                source: err.into(),
814            }),
815        }
816    }
817}
818impl From<crate::operation::list_provider_services::ListProviderServicesError> for Error {
819    fn from(err: crate::operation::list_provider_services::ListProviderServicesError) -> Self {
820        match err {
821            crate::operation::list_provider_services::ListProviderServicesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
822            crate::operation::list_provider_services::ListProviderServicesError::InternalServerException(inner) => {
823                Error::InternalServerException(inner)
824            }
825            crate::operation::list_provider_services::ListProviderServicesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
826            crate::operation::list_provider_services::ListProviderServicesError::ValidationException(inner) => Error::ValidationException(inner),
827            crate::operation::list_provider_services::ListProviderServicesError::Unhandled(inner) => Error::Unhandled(inner),
828        }
829    }
830}
831impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_schema_mappings::ListSchemaMappingsError, R>> for Error
832where
833    R: Send + Sync + std::fmt::Debug + 'static,
834{
835    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_schema_mappings::ListSchemaMappingsError, R>) -> Self {
836        match err {
837            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
838            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
839                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
840                source: err.into(),
841            }),
842        }
843    }
844}
845impl From<crate::operation::list_schema_mappings::ListSchemaMappingsError> for Error {
846    fn from(err: crate::operation::list_schema_mappings::ListSchemaMappingsError) -> Self {
847        match err {
848            crate::operation::list_schema_mappings::ListSchemaMappingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
849            crate::operation::list_schema_mappings::ListSchemaMappingsError::InternalServerException(inner) => Error::InternalServerException(inner),
850            crate::operation::list_schema_mappings::ListSchemaMappingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
851            crate::operation::list_schema_mappings::ListSchemaMappingsError::ValidationException(inner) => Error::ValidationException(inner),
852            crate::operation::list_schema_mappings::ListSchemaMappingsError::Unhandled(inner) => Error::Unhandled(inner),
853        }
854    }
855}
856impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
857where
858    R: Send + Sync + std::fmt::Debug + 'static,
859{
860    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
861        match err {
862            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
863            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
864                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
865                source: err.into(),
866            }),
867        }
868    }
869}
870impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
871    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
872        match err {
873            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
874                Error::InternalServerException(inner)
875            }
876            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
877                Error::ResourceNotFoundException(inner)
878            }
879            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
880            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
881        }
882    }
883}
884impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_policy::PutPolicyError, R>> for Error
885where
886    R: Send + Sync + std::fmt::Debug + 'static,
887{
888    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_policy::PutPolicyError, R>) -> Self {
889        match err {
890            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
891            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
892                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
893                source: err.into(),
894            }),
895        }
896    }
897}
898impl From<crate::operation::put_policy::PutPolicyError> for Error {
899    fn from(err: crate::operation::put_policy::PutPolicyError) -> Self {
900        match err {
901            crate::operation::put_policy::PutPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
902            crate::operation::put_policy::PutPolicyError::ConflictException(inner) => Error::ConflictException(inner),
903            crate::operation::put_policy::PutPolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
904            crate::operation::put_policy::PutPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
905            crate::operation::put_policy::PutPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
906            crate::operation::put_policy::PutPolicyError::ValidationException(inner) => Error::ValidationException(inner),
907            crate::operation::put_policy::PutPolicyError::Unhandled(inner) => Error::Unhandled(inner),
908        }
909    }
910}
911impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_id_mapping_job::StartIdMappingJobError, R>> for Error
912where
913    R: Send + Sync + std::fmt::Debug + 'static,
914{
915    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_id_mapping_job::StartIdMappingJobError, R>) -> Self {
916        match err {
917            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
918            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
919                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
920                source: err.into(),
921            }),
922        }
923    }
924}
925impl From<crate::operation::start_id_mapping_job::StartIdMappingJobError> for Error {
926    fn from(err: crate::operation::start_id_mapping_job::StartIdMappingJobError) -> Self {
927        match err {
928            crate::operation::start_id_mapping_job::StartIdMappingJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
929            crate::operation::start_id_mapping_job::StartIdMappingJobError::ConflictException(inner) => Error::ConflictException(inner),
930            crate::operation::start_id_mapping_job::StartIdMappingJobError::ExceedsLimitException(inner) => Error::ExceedsLimitException(inner),
931            crate::operation::start_id_mapping_job::StartIdMappingJobError::InternalServerException(inner) => Error::InternalServerException(inner),
932            crate::operation::start_id_mapping_job::StartIdMappingJobError::ResourceNotFoundException(inner) => {
933                Error::ResourceNotFoundException(inner)
934            }
935            crate::operation::start_id_mapping_job::StartIdMappingJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
936            crate::operation::start_id_mapping_job::StartIdMappingJobError::ValidationException(inner) => Error::ValidationException(inner),
937            crate::operation::start_id_mapping_job::StartIdMappingJobError::Unhandled(inner) => Error::Unhandled(inner),
938        }
939    }
940}
941impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_matching_job::StartMatchingJobError, R>> for Error
942where
943    R: Send + Sync + std::fmt::Debug + 'static,
944{
945    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_matching_job::StartMatchingJobError, R>) -> Self {
946        match err {
947            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
948            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
949                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
950                source: err.into(),
951            }),
952        }
953    }
954}
955impl From<crate::operation::start_matching_job::StartMatchingJobError> for Error {
956    fn from(err: crate::operation::start_matching_job::StartMatchingJobError) -> Self {
957        match err {
958            crate::operation::start_matching_job::StartMatchingJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
959            crate::operation::start_matching_job::StartMatchingJobError::ConflictException(inner) => Error::ConflictException(inner),
960            crate::operation::start_matching_job::StartMatchingJobError::ExceedsLimitException(inner) => Error::ExceedsLimitException(inner),
961            crate::operation::start_matching_job::StartMatchingJobError::InternalServerException(inner) => Error::InternalServerException(inner),
962            crate::operation::start_matching_job::StartMatchingJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
963            crate::operation::start_matching_job::StartMatchingJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
964            crate::operation::start_matching_job::StartMatchingJobError::ValidationException(inner) => Error::ValidationException(inner),
965            crate::operation::start_matching_job::StartMatchingJobError::Unhandled(inner) => Error::Unhandled(inner),
966        }
967    }
968}
969impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
970where
971    R: Send + Sync + std::fmt::Debug + 'static,
972{
973    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
974        match err {
975            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
976            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
977                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
978                source: err.into(),
979            }),
980        }
981    }
982}
983impl From<crate::operation::tag_resource::TagResourceError> for Error {
984    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
985        match err {
986            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
987            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
988            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
989            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
990        }
991    }
992}
993impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
994where
995    R: Send + Sync + std::fmt::Debug + 'static,
996{
997    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
998        match err {
999            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1000            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1001                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1002                source: err.into(),
1003            }),
1004        }
1005    }
1006}
1007impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1008    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1009        match err {
1010            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1011            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1012            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1013        }
1014    }
1015}
1016impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_id_mapping_workflow::UpdateIdMappingWorkflowError, R>>
1017    for Error
1018where
1019    R: Send + Sync + std::fmt::Debug + 'static,
1020{
1021    fn from(
1022        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_id_mapping_workflow::UpdateIdMappingWorkflowError, R>,
1023    ) -> Self {
1024        match err {
1025            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1026            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1027                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1028                source: err.into(),
1029            }),
1030        }
1031    }
1032}
1033impl From<crate::operation::update_id_mapping_workflow::UpdateIdMappingWorkflowError> for Error {
1034    fn from(err: crate::operation::update_id_mapping_workflow::UpdateIdMappingWorkflowError) -> Self {
1035        match err {
1036            crate::operation::update_id_mapping_workflow::UpdateIdMappingWorkflowError::AccessDeniedException(inner) => {
1037                Error::AccessDeniedException(inner)
1038            }
1039            crate::operation::update_id_mapping_workflow::UpdateIdMappingWorkflowError::InternalServerException(inner) => {
1040                Error::InternalServerException(inner)
1041            }
1042            crate::operation::update_id_mapping_workflow::UpdateIdMappingWorkflowError::ResourceNotFoundException(inner) => {
1043                Error::ResourceNotFoundException(inner)
1044            }
1045            crate::operation::update_id_mapping_workflow::UpdateIdMappingWorkflowError::ThrottlingException(inner) => {
1046                Error::ThrottlingException(inner)
1047            }
1048            crate::operation::update_id_mapping_workflow::UpdateIdMappingWorkflowError::ValidationException(inner) => {
1049                Error::ValidationException(inner)
1050            }
1051            crate::operation::update_id_mapping_workflow::UpdateIdMappingWorkflowError::Unhandled(inner) => Error::Unhandled(inner),
1052        }
1053    }
1054}
1055impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_id_namespace::UpdateIdNamespaceError, R>> for Error
1056where
1057    R: Send + Sync + std::fmt::Debug + 'static,
1058{
1059    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_id_namespace::UpdateIdNamespaceError, R>) -> Self {
1060        match err {
1061            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1062            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1063                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1064                source: err.into(),
1065            }),
1066        }
1067    }
1068}
1069impl From<crate::operation::update_id_namespace::UpdateIdNamespaceError> for Error {
1070    fn from(err: crate::operation::update_id_namespace::UpdateIdNamespaceError) -> Self {
1071        match err {
1072            crate::operation::update_id_namespace::UpdateIdNamespaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1073            crate::operation::update_id_namespace::UpdateIdNamespaceError::InternalServerException(inner) => Error::InternalServerException(inner),
1074            crate::operation::update_id_namespace::UpdateIdNamespaceError::ResourceNotFoundException(inner) => {
1075                Error::ResourceNotFoundException(inner)
1076            }
1077            crate::operation::update_id_namespace::UpdateIdNamespaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1078            crate::operation::update_id_namespace::UpdateIdNamespaceError::ValidationException(inner) => Error::ValidationException(inner),
1079            crate::operation::update_id_namespace::UpdateIdNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
1080        }
1081    }
1082}
1083impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_matching_workflow::UpdateMatchingWorkflowError, R>> for Error
1084where
1085    R: Send + Sync + std::fmt::Debug + 'static,
1086{
1087    fn from(
1088        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_matching_workflow::UpdateMatchingWorkflowError, R>,
1089    ) -> Self {
1090        match err {
1091            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1092            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1093                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1094                source: err.into(),
1095            }),
1096        }
1097    }
1098}
1099impl From<crate::operation::update_matching_workflow::UpdateMatchingWorkflowError> for Error {
1100    fn from(err: crate::operation::update_matching_workflow::UpdateMatchingWorkflowError) -> Self {
1101        match err {
1102            crate::operation::update_matching_workflow::UpdateMatchingWorkflowError::AccessDeniedException(inner) => {
1103                Error::AccessDeniedException(inner)
1104            }
1105            crate::operation::update_matching_workflow::UpdateMatchingWorkflowError::InternalServerException(inner) => {
1106                Error::InternalServerException(inner)
1107            }
1108            crate::operation::update_matching_workflow::UpdateMatchingWorkflowError::ResourceNotFoundException(inner) => {
1109                Error::ResourceNotFoundException(inner)
1110            }
1111            crate::operation::update_matching_workflow::UpdateMatchingWorkflowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1112            crate::operation::update_matching_workflow::UpdateMatchingWorkflowError::ValidationException(inner) => Error::ValidationException(inner),
1113            crate::operation::update_matching_workflow::UpdateMatchingWorkflowError::Unhandled(inner) => Error::Unhandled(inner),
1114        }
1115    }
1116}
1117impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_schema_mapping::UpdateSchemaMappingError, R>> for Error
1118where
1119    R: Send + Sync + std::fmt::Debug + 'static,
1120{
1121    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_schema_mapping::UpdateSchemaMappingError, R>) -> Self {
1122        match err {
1123            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1124            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1125                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1126                source: err.into(),
1127            }),
1128        }
1129    }
1130}
1131impl From<crate::operation::update_schema_mapping::UpdateSchemaMappingError> for Error {
1132    fn from(err: crate::operation::update_schema_mapping::UpdateSchemaMappingError) -> Self {
1133        match err {
1134            crate::operation::update_schema_mapping::UpdateSchemaMappingError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1135            crate::operation::update_schema_mapping::UpdateSchemaMappingError::ConflictException(inner) => Error::ConflictException(inner),
1136            crate::operation::update_schema_mapping::UpdateSchemaMappingError::InternalServerException(inner) => {
1137                Error::InternalServerException(inner)
1138            }
1139            crate::operation::update_schema_mapping::UpdateSchemaMappingError::ResourceNotFoundException(inner) => {
1140                Error::ResourceNotFoundException(inner)
1141            }
1142            crate::operation::update_schema_mapping::UpdateSchemaMappingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1143            crate::operation::update_schema_mapping::UpdateSchemaMappingError::ValidationException(inner) => Error::ValidationException(inner),
1144            crate::operation::update_schema_mapping::UpdateSchemaMappingError::Unhandled(inner) => Error::Unhandled(inner),
1145        }
1146    }
1147}
1148impl ::std::error::Error for Error {
1149    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1150        match self {
1151            Error::AccessDeniedException(inner) => inner.source(),
1152            Error::ConflictException(inner) => inner.source(),
1153            Error::ExceedsLimitException(inner) => inner.source(),
1154            Error::InternalServerException(inner) => inner.source(),
1155            Error::ResourceNotFoundException(inner) => inner.source(),
1156            Error::ThrottlingException(inner) => inner.source(),
1157            Error::ValidationException(inner) => inner.source(),
1158            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1159        }
1160    }
1161}
1162impl ::aws_types::request_id::RequestId for Error {
1163    fn request_id(&self) -> Option<&str> {
1164        match self {
1165            Self::AccessDeniedException(e) => e.request_id(),
1166            Self::ConflictException(e) => e.request_id(),
1167            Self::ExceedsLimitException(e) => e.request_id(),
1168            Self::InternalServerException(e) => e.request_id(),
1169            Self::ResourceNotFoundException(e) => e.request_id(),
1170            Self::ThrottlingException(e) => e.request_id(),
1171            Self::ValidationException(e) => e.request_id(),
1172            Self::Unhandled(e) => e.meta.request_id(),
1173        }
1174    }
1175}