aws_sdk_swf/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>The <code>StartWorkflowExecution</code> API action was called without the required parameters set.</p>
7    /// <p>Some workflow execution parameters, such as the decision <code>taskList</code>, must be set to start the execution. However, these parameters might have been set as defaults when the workflow type was registered. In this case, you can omit these parameters from the <code>StartWorkflowExecution</code> call and Amazon SWF uses the values defined in the workflow type.</p><note>
8    /// <p>If these parameters aren't set and no default parameters were defined in the workflow type, this error is displayed.</p>
9    /// </note>
10    DefaultUndefinedFault(crate::types::error::DefaultUndefinedFault),
11    /// <p>Returned if the domain already exists. You may get this fault if you are registering a domain that is either already registered or deprecated, or if you undeprecate a domain that is currently registered.</p>
12    DomainAlreadyExistsFault(crate::types::error::DomainAlreadyExistsFault),
13    /// <p>Returned when the specified domain has been deprecated.</p>
14    DomainDeprecatedFault(crate::types::error::DomainDeprecatedFault),
15    /// <p>Returned by any operation if a system imposed limitation has been reached. To address this fault you should either clean up unused resources or increase the limit by contacting AWS.</p>
16    LimitExceededFault(crate::types::error::LimitExceededFault),
17    /// <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p>
18    OperationNotPermittedFault(crate::types::error::OperationNotPermittedFault),
19    /// <p>You've exceeded the number of tags allowed for a domain.</p>
20    TooManyTagsFault(crate::types::error::TooManyTagsFault),
21    /// <p>Returned if the type already exists in the specified domain. You may get this fault if you are registering a type that is either already registered or deprecated, or if you undeprecate a type that is currently registered.</p>
22    TypeAlreadyExistsFault(crate::types::error::TypeAlreadyExistsFault),
23    /// <p>Returned when the specified activity or workflow type was already deprecated.</p>
24    TypeDeprecatedFault(crate::types::error::TypeDeprecatedFault),
25    /// <p>Returned when the resource type has not been deprecated.</p>
26    TypeNotDeprecatedFault(crate::types::error::TypeNotDeprecatedFault),
27    /// <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p>
28    UnknownResourceFault(crate::types::error::UnknownResourceFault),
29    /// <p>Returned by <code>StartWorkflowExecution</code> when an open execution with the same workflowId is already running in the specified domain.</p>
30    WorkflowExecutionAlreadyStartedFault(crate::types::error::WorkflowExecutionAlreadyStartedFault),
31    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
32    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
33    variable wildcard pattern and check `.code()`:
34     \
35    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
36     \
37    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
38    Unhandled(crate::error::sealed_unhandled::Unhandled),
39}
40impl ::std::fmt::Display for Error {
41    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
42        match self {
43            Error::DefaultUndefinedFault(inner) => inner.fmt(f),
44            Error::DomainAlreadyExistsFault(inner) => inner.fmt(f),
45            Error::DomainDeprecatedFault(inner) => inner.fmt(f),
46            Error::LimitExceededFault(inner) => inner.fmt(f),
47            Error::OperationNotPermittedFault(inner) => inner.fmt(f),
48            Error::TooManyTagsFault(inner) => inner.fmt(f),
49            Error::TypeAlreadyExistsFault(inner) => inner.fmt(f),
50            Error::TypeDeprecatedFault(inner) => inner.fmt(f),
51            Error::TypeNotDeprecatedFault(inner) => inner.fmt(f),
52            Error::UnknownResourceFault(inner) => inner.fmt(f),
53            Error::WorkflowExecutionAlreadyStartedFault(inner) => inner.fmt(f),
54            Error::Unhandled(_) => {
55                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
56                    write!(f, "unhandled error ({code})")
57                } else {
58                    f.write_str("unhandled error")
59                }
60            }
61        }
62    }
63}
64impl From<::aws_smithy_types::error::operation::BuildError> for Error {
65    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
66        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
67            source: value.into(),
68            meta: ::std::default::Default::default(),
69        })
70    }
71}
72impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
73    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
74        match self {
75            Self::DefaultUndefinedFault(inner) => inner.meta(),
76            Self::DomainAlreadyExistsFault(inner) => inner.meta(),
77            Self::DomainDeprecatedFault(inner) => inner.meta(),
78            Self::LimitExceededFault(inner) => inner.meta(),
79            Self::OperationNotPermittedFault(inner) => inner.meta(),
80            Self::TooManyTagsFault(inner) => inner.meta(),
81            Self::TypeAlreadyExistsFault(inner) => inner.meta(),
82            Self::TypeDeprecatedFault(inner) => inner.meta(),
83            Self::TypeNotDeprecatedFault(inner) => inner.meta(),
84            Self::UnknownResourceFault(inner) => inner.meta(),
85            Self::WorkflowExecutionAlreadyStartedFault(inner) => inner.meta(),
86            Self::Unhandled(inner) => &inner.meta,
87        }
88    }
89}
90impl<R>
91    From<
92        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::count_closed_workflow_executions::CountClosedWorkflowExecutionsError, R>,
93    > for Error
94where
95    R: Send + Sync + std::fmt::Debug + 'static,
96{
97    fn from(
98        err: ::aws_smithy_runtime_api::client::result::SdkError<
99            crate::operation::count_closed_workflow_executions::CountClosedWorkflowExecutionsError,
100            R,
101        >,
102    ) -> Self {
103        match err {
104            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
105            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
106                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
107                source: err.into(),
108            }),
109        }
110    }
111}
112impl From<crate::operation::count_closed_workflow_executions::CountClosedWorkflowExecutionsError> for Error {
113    fn from(err: crate::operation::count_closed_workflow_executions::CountClosedWorkflowExecutionsError) -> Self {
114        match err {
115            crate::operation::count_closed_workflow_executions::CountClosedWorkflowExecutionsError::OperationNotPermittedFault(inner) => {
116                Error::OperationNotPermittedFault(inner)
117            }
118            crate::operation::count_closed_workflow_executions::CountClosedWorkflowExecutionsError::UnknownResourceFault(inner) => {
119                Error::UnknownResourceFault(inner)
120            }
121            crate::operation::count_closed_workflow_executions::CountClosedWorkflowExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
122        }
123    }
124}
125impl<R>
126    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::count_open_workflow_executions::CountOpenWorkflowExecutionsError, R>>
127    for Error
128where
129    R: Send + Sync + std::fmt::Debug + 'static,
130{
131    fn from(
132        err: ::aws_smithy_runtime_api::client::result::SdkError<
133            crate::operation::count_open_workflow_executions::CountOpenWorkflowExecutionsError,
134            R,
135        >,
136    ) -> Self {
137        match err {
138            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
139            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
140                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
141                source: err.into(),
142            }),
143        }
144    }
145}
146impl From<crate::operation::count_open_workflow_executions::CountOpenWorkflowExecutionsError> for Error {
147    fn from(err: crate::operation::count_open_workflow_executions::CountOpenWorkflowExecutionsError) -> Self {
148        match err {
149            crate::operation::count_open_workflow_executions::CountOpenWorkflowExecutionsError::OperationNotPermittedFault(inner) => {
150                Error::OperationNotPermittedFault(inner)
151            }
152            crate::operation::count_open_workflow_executions::CountOpenWorkflowExecutionsError::UnknownResourceFault(inner) => {
153                Error::UnknownResourceFault(inner)
154            }
155            crate::operation::count_open_workflow_executions::CountOpenWorkflowExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
156        }
157    }
158}
159impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::count_pending_activity_tasks::CountPendingActivityTasksError, R>>
160    for Error
161where
162    R: Send + Sync + std::fmt::Debug + 'static,
163{
164    fn from(
165        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::count_pending_activity_tasks::CountPendingActivityTasksError, R>,
166    ) -> Self {
167        match err {
168            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
169            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
170                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
171                source: err.into(),
172            }),
173        }
174    }
175}
176impl From<crate::operation::count_pending_activity_tasks::CountPendingActivityTasksError> for Error {
177    fn from(err: crate::operation::count_pending_activity_tasks::CountPendingActivityTasksError) -> Self {
178        match err {
179            crate::operation::count_pending_activity_tasks::CountPendingActivityTasksError::OperationNotPermittedFault(inner) => {
180                Error::OperationNotPermittedFault(inner)
181            }
182            crate::operation::count_pending_activity_tasks::CountPendingActivityTasksError::UnknownResourceFault(inner) => {
183                Error::UnknownResourceFault(inner)
184            }
185            crate::operation::count_pending_activity_tasks::CountPendingActivityTasksError::Unhandled(inner) => Error::Unhandled(inner),
186        }
187    }
188}
189impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::count_pending_decision_tasks::CountPendingDecisionTasksError, R>>
190    for Error
191where
192    R: Send + Sync + std::fmt::Debug + 'static,
193{
194    fn from(
195        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::count_pending_decision_tasks::CountPendingDecisionTasksError, R>,
196    ) -> Self {
197        match err {
198            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
199            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
200                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
201                source: err.into(),
202            }),
203        }
204    }
205}
206impl From<crate::operation::count_pending_decision_tasks::CountPendingDecisionTasksError> for Error {
207    fn from(err: crate::operation::count_pending_decision_tasks::CountPendingDecisionTasksError) -> Self {
208        match err {
209            crate::operation::count_pending_decision_tasks::CountPendingDecisionTasksError::OperationNotPermittedFault(inner) => {
210                Error::OperationNotPermittedFault(inner)
211            }
212            crate::operation::count_pending_decision_tasks::CountPendingDecisionTasksError::UnknownResourceFault(inner) => {
213                Error::UnknownResourceFault(inner)
214            }
215            crate::operation::count_pending_decision_tasks::CountPendingDecisionTasksError::Unhandled(inner) => Error::Unhandled(inner),
216        }
217    }
218}
219impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_activity_type::DeleteActivityTypeError, R>> for Error
220where
221    R: Send + Sync + std::fmt::Debug + 'static,
222{
223    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_activity_type::DeleteActivityTypeError, R>) -> Self {
224        match err {
225            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
226            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
227                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
228                source: err.into(),
229            }),
230        }
231    }
232}
233impl From<crate::operation::delete_activity_type::DeleteActivityTypeError> for Error {
234    fn from(err: crate::operation::delete_activity_type::DeleteActivityTypeError) -> Self {
235        match err {
236            crate::operation::delete_activity_type::DeleteActivityTypeError::OperationNotPermittedFault(inner) => {
237                Error::OperationNotPermittedFault(inner)
238            }
239            crate::operation::delete_activity_type::DeleteActivityTypeError::TypeNotDeprecatedFault(inner) => Error::TypeNotDeprecatedFault(inner),
240            crate::operation::delete_activity_type::DeleteActivityTypeError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
241            crate::operation::delete_activity_type::DeleteActivityTypeError::Unhandled(inner) => Error::Unhandled(inner),
242        }
243    }
244}
245impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workflow_type::DeleteWorkflowTypeError, R>> for Error
246where
247    R: Send + Sync + std::fmt::Debug + 'static,
248{
249    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workflow_type::DeleteWorkflowTypeError, R>) -> Self {
250        match err {
251            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
252            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
253                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
254                source: err.into(),
255            }),
256        }
257    }
258}
259impl From<crate::operation::delete_workflow_type::DeleteWorkflowTypeError> for Error {
260    fn from(err: crate::operation::delete_workflow_type::DeleteWorkflowTypeError) -> Self {
261        match err {
262            crate::operation::delete_workflow_type::DeleteWorkflowTypeError::OperationNotPermittedFault(inner) => {
263                Error::OperationNotPermittedFault(inner)
264            }
265            crate::operation::delete_workflow_type::DeleteWorkflowTypeError::TypeNotDeprecatedFault(inner) => Error::TypeNotDeprecatedFault(inner),
266            crate::operation::delete_workflow_type::DeleteWorkflowTypeError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
267            crate::operation::delete_workflow_type::DeleteWorkflowTypeError::Unhandled(inner) => Error::Unhandled(inner),
268        }
269    }
270}
271impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprecate_activity_type::DeprecateActivityTypeError, R>> for Error
272where
273    R: Send + Sync + std::fmt::Debug + 'static,
274{
275    fn from(
276        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprecate_activity_type::DeprecateActivityTypeError, R>,
277    ) -> Self {
278        match err {
279            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
280            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
281                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
282                source: err.into(),
283            }),
284        }
285    }
286}
287impl From<crate::operation::deprecate_activity_type::DeprecateActivityTypeError> for Error {
288    fn from(err: crate::operation::deprecate_activity_type::DeprecateActivityTypeError) -> Self {
289        match err {
290            crate::operation::deprecate_activity_type::DeprecateActivityTypeError::OperationNotPermittedFault(inner) => {
291                Error::OperationNotPermittedFault(inner)
292            }
293            crate::operation::deprecate_activity_type::DeprecateActivityTypeError::TypeDeprecatedFault(inner) => Error::TypeDeprecatedFault(inner),
294            crate::operation::deprecate_activity_type::DeprecateActivityTypeError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
295            crate::operation::deprecate_activity_type::DeprecateActivityTypeError::Unhandled(inner) => Error::Unhandled(inner),
296        }
297    }
298}
299impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprecate_domain::DeprecateDomainError, 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::deprecate_domain::DeprecateDomainError, 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::deprecate_domain::DeprecateDomainError> for Error {
314    fn from(err: crate::operation::deprecate_domain::DeprecateDomainError) -> Self {
315        match err {
316            crate::operation::deprecate_domain::DeprecateDomainError::DomainDeprecatedFault(inner) => Error::DomainDeprecatedFault(inner),
317            crate::operation::deprecate_domain::DeprecateDomainError::OperationNotPermittedFault(inner) => Error::OperationNotPermittedFault(inner),
318            crate::operation::deprecate_domain::DeprecateDomainError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
319            crate::operation::deprecate_domain::DeprecateDomainError::Unhandled(inner) => Error::Unhandled(inner),
320        }
321    }
322}
323impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprecate_workflow_type::DeprecateWorkflowTypeError, R>> for Error
324where
325    R: Send + Sync + std::fmt::Debug + 'static,
326{
327    fn from(
328        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprecate_workflow_type::DeprecateWorkflowTypeError, R>,
329    ) -> Self {
330        match err {
331            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
332            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
333                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
334                source: err.into(),
335            }),
336        }
337    }
338}
339impl From<crate::operation::deprecate_workflow_type::DeprecateWorkflowTypeError> for Error {
340    fn from(err: crate::operation::deprecate_workflow_type::DeprecateWorkflowTypeError) -> Self {
341        match err {
342            crate::operation::deprecate_workflow_type::DeprecateWorkflowTypeError::OperationNotPermittedFault(inner) => {
343                Error::OperationNotPermittedFault(inner)
344            }
345            crate::operation::deprecate_workflow_type::DeprecateWorkflowTypeError::TypeDeprecatedFault(inner) => Error::TypeDeprecatedFault(inner),
346            crate::operation::deprecate_workflow_type::DeprecateWorkflowTypeError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
347            crate::operation::deprecate_workflow_type::DeprecateWorkflowTypeError::Unhandled(inner) => Error::Unhandled(inner),
348        }
349    }
350}
351impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_activity_type::DescribeActivityTypeError, R>> for Error
352where
353    R: Send + Sync + std::fmt::Debug + 'static,
354{
355    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_activity_type::DescribeActivityTypeError, R>) -> Self {
356        match err {
357            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
358            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
359                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
360                source: err.into(),
361            }),
362        }
363    }
364}
365impl From<crate::operation::describe_activity_type::DescribeActivityTypeError> for Error {
366    fn from(err: crate::operation::describe_activity_type::DescribeActivityTypeError) -> Self {
367        match err {
368            crate::operation::describe_activity_type::DescribeActivityTypeError::OperationNotPermittedFault(inner) => {
369                Error::OperationNotPermittedFault(inner)
370            }
371            crate::operation::describe_activity_type::DescribeActivityTypeError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
372            crate::operation::describe_activity_type::DescribeActivityTypeError::Unhandled(inner) => Error::Unhandled(inner),
373        }
374    }
375}
376impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_domain::DescribeDomainError, R>> for Error
377where
378    R: Send + Sync + std::fmt::Debug + 'static,
379{
380    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_domain::DescribeDomainError, R>) -> Self {
381        match err {
382            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
383            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
384                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
385                source: err.into(),
386            }),
387        }
388    }
389}
390impl From<crate::operation::describe_domain::DescribeDomainError> for Error {
391    fn from(err: crate::operation::describe_domain::DescribeDomainError) -> Self {
392        match err {
393            crate::operation::describe_domain::DescribeDomainError::OperationNotPermittedFault(inner) => Error::OperationNotPermittedFault(inner),
394            crate::operation::describe_domain::DescribeDomainError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
395            crate::operation::describe_domain::DescribeDomainError::Unhandled(inner) => Error::Unhandled(inner),
396        }
397    }
398}
399impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workflow_execution::DescribeWorkflowExecutionError, R>>
400    for Error
401where
402    R: Send + Sync + std::fmt::Debug + 'static,
403{
404    fn from(
405        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workflow_execution::DescribeWorkflowExecutionError, R>,
406    ) -> Self {
407        match err {
408            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
409            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
410                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
411                source: err.into(),
412            }),
413        }
414    }
415}
416impl From<crate::operation::describe_workflow_execution::DescribeWorkflowExecutionError> for Error {
417    fn from(err: crate::operation::describe_workflow_execution::DescribeWorkflowExecutionError) -> Self {
418        match err {
419            crate::operation::describe_workflow_execution::DescribeWorkflowExecutionError::OperationNotPermittedFault(inner) => {
420                Error::OperationNotPermittedFault(inner)
421            }
422            crate::operation::describe_workflow_execution::DescribeWorkflowExecutionError::UnknownResourceFault(inner) => {
423                Error::UnknownResourceFault(inner)
424            }
425            crate::operation::describe_workflow_execution::DescribeWorkflowExecutionError::Unhandled(inner) => Error::Unhandled(inner),
426        }
427    }
428}
429impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workflow_type::DescribeWorkflowTypeError, R>> for Error
430where
431    R: Send + Sync + std::fmt::Debug + 'static,
432{
433    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workflow_type::DescribeWorkflowTypeError, R>) -> Self {
434        match err {
435            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
436            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
437                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
438                source: err.into(),
439            }),
440        }
441    }
442}
443impl From<crate::operation::describe_workflow_type::DescribeWorkflowTypeError> for Error {
444    fn from(err: crate::operation::describe_workflow_type::DescribeWorkflowTypeError) -> Self {
445        match err {
446            crate::operation::describe_workflow_type::DescribeWorkflowTypeError::OperationNotPermittedFault(inner) => {
447                Error::OperationNotPermittedFault(inner)
448            }
449            crate::operation::describe_workflow_type::DescribeWorkflowTypeError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
450            crate::operation::describe_workflow_type::DescribeWorkflowTypeError::Unhandled(inner) => Error::Unhandled(inner),
451        }
452    }
453}
454impl<R>
455    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workflow_execution_history::GetWorkflowExecutionHistoryError, R>>
456    for Error
457where
458    R: Send + Sync + std::fmt::Debug + 'static,
459{
460    fn from(
461        err: ::aws_smithy_runtime_api::client::result::SdkError<
462            crate::operation::get_workflow_execution_history::GetWorkflowExecutionHistoryError,
463            R,
464        >,
465    ) -> Self {
466        match err {
467            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
468            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
469                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
470                source: err.into(),
471            }),
472        }
473    }
474}
475impl From<crate::operation::get_workflow_execution_history::GetWorkflowExecutionHistoryError> for Error {
476    fn from(err: crate::operation::get_workflow_execution_history::GetWorkflowExecutionHistoryError) -> Self {
477        match err {
478            crate::operation::get_workflow_execution_history::GetWorkflowExecutionHistoryError::OperationNotPermittedFault(inner) => {
479                Error::OperationNotPermittedFault(inner)
480            }
481            crate::operation::get_workflow_execution_history::GetWorkflowExecutionHistoryError::UnknownResourceFault(inner) => {
482                Error::UnknownResourceFault(inner)
483            }
484            crate::operation::get_workflow_execution_history::GetWorkflowExecutionHistoryError::Unhandled(inner) => Error::Unhandled(inner),
485        }
486    }
487}
488impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_activity_types::ListActivityTypesError, R>> for Error
489where
490    R: Send + Sync + std::fmt::Debug + 'static,
491{
492    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_activity_types::ListActivityTypesError, R>) -> Self {
493        match err {
494            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
495            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
496                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
497                source: err.into(),
498            }),
499        }
500    }
501}
502impl From<crate::operation::list_activity_types::ListActivityTypesError> for Error {
503    fn from(err: crate::operation::list_activity_types::ListActivityTypesError) -> Self {
504        match err {
505            crate::operation::list_activity_types::ListActivityTypesError::OperationNotPermittedFault(inner) => {
506                Error::OperationNotPermittedFault(inner)
507            }
508            crate::operation::list_activity_types::ListActivityTypesError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
509            crate::operation::list_activity_types::ListActivityTypesError::Unhandled(inner) => Error::Unhandled(inner),
510        }
511    }
512}
513impl<R>
514    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_closed_workflow_executions::ListClosedWorkflowExecutionsError, R>>
515    for Error
516where
517    R: Send + Sync + std::fmt::Debug + 'static,
518{
519    fn from(
520        err: ::aws_smithy_runtime_api::client::result::SdkError<
521            crate::operation::list_closed_workflow_executions::ListClosedWorkflowExecutionsError,
522            R,
523        >,
524    ) -> Self {
525        match err {
526            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
527            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
528                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
529                source: err.into(),
530            }),
531        }
532    }
533}
534impl From<crate::operation::list_closed_workflow_executions::ListClosedWorkflowExecutionsError> for Error {
535    fn from(err: crate::operation::list_closed_workflow_executions::ListClosedWorkflowExecutionsError) -> Self {
536        match err {
537            crate::operation::list_closed_workflow_executions::ListClosedWorkflowExecutionsError::OperationNotPermittedFault(inner) => {
538                Error::OperationNotPermittedFault(inner)
539            }
540            crate::operation::list_closed_workflow_executions::ListClosedWorkflowExecutionsError::UnknownResourceFault(inner) => {
541                Error::UnknownResourceFault(inner)
542            }
543            crate::operation::list_closed_workflow_executions::ListClosedWorkflowExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
544        }
545    }
546}
547impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>> for Error
548where
549    R: Send + Sync + std::fmt::Debug + 'static,
550{
551    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>) -> Self {
552        match err {
553            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
554            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
555                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
556                source: err.into(),
557            }),
558        }
559    }
560}
561impl From<crate::operation::list_domains::ListDomainsError> for Error {
562    fn from(err: crate::operation::list_domains::ListDomainsError) -> Self {
563        match err {
564            crate::operation::list_domains::ListDomainsError::OperationNotPermittedFault(inner) => Error::OperationNotPermittedFault(inner),
565            crate::operation::list_domains::ListDomainsError::Unhandled(inner) => Error::Unhandled(inner),
566        }
567    }
568}
569impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_open_workflow_executions::ListOpenWorkflowExecutionsError, R>>
570    for Error
571where
572    R: Send + Sync + std::fmt::Debug + 'static,
573{
574    fn from(
575        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_open_workflow_executions::ListOpenWorkflowExecutionsError, R>,
576    ) -> Self {
577        match err {
578            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
579            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
580                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
581                source: err.into(),
582            }),
583        }
584    }
585}
586impl From<crate::operation::list_open_workflow_executions::ListOpenWorkflowExecutionsError> for Error {
587    fn from(err: crate::operation::list_open_workflow_executions::ListOpenWorkflowExecutionsError) -> Self {
588        match err {
589            crate::operation::list_open_workflow_executions::ListOpenWorkflowExecutionsError::OperationNotPermittedFault(inner) => {
590                Error::OperationNotPermittedFault(inner)
591            }
592            crate::operation::list_open_workflow_executions::ListOpenWorkflowExecutionsError::UnknownResourceFault(inner) => {
593                Error::UnknownResourceFault(inner)
594            }
595            crate::operation::list_open_workflow_executions::ListOpenWorkflowExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
596        }
597    }
598}
599impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
600where
601    R: Send + Sync + std::fmt::Debug + 'static,
602{
603    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
604        match err {
605            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
606            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
607                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
608                source: err.into(),
609            }),
610        }
611    }
612}
613impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
614    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
615        match err {
616            crate::operation::list_tags_for_resource::ListTagsForResourceError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
617            crate::operation::list_tags_for_resource::ListTagsForResourceError::OperationNotPermittedFault(inner) => {
618                Error::OperationNotPermittedFault(inner)
619            }
620            crate::operation::list_tags_for_resource::ListTagsForResourceError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
621            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
622        }
623    }
624}
625impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflow_types::ListWorkflowTypesError, R>> for Error
626where
627    R: Send + Sync + std::fmt::Debug + 'static,
628{
629    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflow_types::ListWorkflowTypesError, R>) -> Self {
630        match err {
631            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
632            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
633                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
634                source: err.into(),
635            }),
636        }
637    }
638}
639impl From<crate::operation::list_workflow_types::ListWorkflowTypesError> for Error {
640    fn from(err: crate::operation::list_workflow_types::ListWorkflowTypesError) -> Self {
641        match err {
642            crate::operation::list_workflow_types::ListWorkflowTypesError::OperationNotPermittedFault(inner) => {
643                Error::OperationNotPermittedFault(inner)
644            }
645            crate::operation::list_workflow_types::ListWorkflowTypesError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
646            crate::operation::list_workflow_types::ListWorkflowTypesError::Unhandled(inner) => Error::Unhandled(inner),
647        }
648    }
649}
650impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::poll_for_activity_task::PollForActivityTaskError, R>> for Error
651where
652    R: Send + Sync + std::fmt::Debug + 'static,
653{
654    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::poll_for_activity_task::PollForActivityTaskError, R>) -> Self {
655        match err {
656            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
657            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
658                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
659                source: err.into(),
660            }),
661        }
662    }
663}
664impl From<crate::operation::poll_for_activity_task::PollForActivityTaskError> for Error {
665    fn from(err: crate::operation::poll_for_activity_task::PollForActivityTaskError) -> Self {
666        match err {
667            crate::operation::poll_for_activity_task::PollForActivityTaskError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
668            crate::operation::poll_for_activity_task::PollForActivityTaskError::OperationNotPermittedFault(inner) => {
669                Error::OperationNotPermittedFault(inner)
670            }
671            crate::operation::poll_for_activity_task::PollForActivityTaskError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
672            crate::operation::poll_for_activity_task::PollForActivityTaskError::Unhandled(inner) => Error::Unhandled(inner),
673        }
674    }
675}
676impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::poll_for_decision_task::PollForDecisionTaskError, R>> for Error
677where
678    R: Send + Sync + std::fmt::Debug + 'static,
679{
680    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::poll_for_decision_task::PollForDecisionTaskError, R>) -> Self {
681        match err {
682            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
683            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
684                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
685                source: err.into(),
686            }),
687        }
688    }
689}
690impl From<crate::operation::poll_for_decision_task::PollForDecisionTaskError> for Error {
691    fn from(err: crate::operation::poll_for_decision_task::PollForDecisionTaskError) -> Self {
692        match err {
693            crate::operation::poll_for_decision_task::PollForDecisionTaskError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
694            crate::operation::poll_for_decision_task::PollForDecisionTaskError::OperationNotPermittedFault(inner) => {
695                Error::OperationNotPermittedFault(inner)
696            }
697            crate::operation::poll_for_decision_task::PollForDecisionTaskError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
698            crate::operation::poll_for_decision_task::PollForDecisionTaskError::Unhandled(inner) => Error::Unhandled(inner),
699        }
700    }
701}
702impl<R>
703    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::record_activity_task_heartbeat::RecordActivityTaskHeartbeatError, R>>
704    for Error
705where
706    R: Send + Sync + std::fmt::Debug + 'static,
707{
708    fn from(
709        err: ::aws_smithy_runtime_api::client::result::SdkError<
710            crate::operation::record_activity_task_heartbeat::RecordActivityTaskHeartbeatError,
711            R,
712        >,
713    ) -> Self {
714        match err {
715            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
716            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
717                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
718                source: err.into(),
719            }),
720        }
721    }
722}
723impl From<crate::operation::record_activity_task_heartbeat::RecordActivityTaskHeartbeatError> for Error {
724    fn from(err: crate::operation::record_activity_task_heartbeat::RecordActivityTaskHeartbeatError) -> Self {
725        match err {
726            crate::operation::record_activity_task_heartbeat::RecordActivityTaskHeartbeatError::OperationNotPermittedFault(inner) => {
727                Error::OperationNotPermittedFault(inner)
728            }
729            crate::operation::record_activity_task_heartbeat::RecordActivityTaskHeartbeatError::UnknownResourceFault(inner) => {
730                Error::UnknownResourceFault(inner)
731            }
732            crate::operation::record_activity_task_heartbeat::RecordActivityTaskHeartbeatError::Unhandled(inner) => Error::Unhandled(inner),
733        }
734    }
735}
736impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_activity_type::RegisterActivityTypeError, R>> for Error
737where
738    R: Send + Sync + std::fmt::Debug + 'static,
739{
740    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_activity_type::RegisterActivityTypeError, R>) -> Self {
741        match err {
742            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
743            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
744                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
745                source: err.into(),
746            }),
747        }
748    }
749}
750impl From<crate::operation::register_activity_type::RegisterActivityTypeError> for Error {
751    fn from(err: crate::operation::register_activity_type::RegisterActivityTypeError) -> Self {
752        match err {
753            crate::operation::register_activity_type::RegisterActivityTypeError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
754            crate::operation::register_activity_type::RegisterActivityTypeError::OperationNotPermittedFault(inner) => {
755                Error::OperationNotPermittedFault(inner)
756            }
757            crate::operation::register_activity_type::RegisterActivityTypeError::TypeAlreadyExistsFault(inner) => {
758                Error::TypeAlreadyExistsFault(inner)
759            }
760            crate::operation::register_activity_type::RegisterActivityTypeError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
761            crate::operation::register_activity_type::RegisterActivityTypeError::Unhandled(inner) => Error::Unhandled(inner),
762        }
763    }
764}
765impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_domain::RegisterDomainError, R>> for Error
766where
767    R: Send + Sync + std::fmt::Debug + 'static,
768{
769    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_domain::RegisterDomainError, R>) -> Self {
770        match err {
771            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
772            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
773                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
774                source: err.into(),
775            }),
776        }
777    }
778}
779impl From<crate::operation::register_domain::RegisterDomainError> for Error {
780    fn from(err: crate::operation::register_domain::RegisterDomainError) -> Self {
781        match err {
782            crate::operation::register_domain::RegisterDomainError::DomainAlreadyExistsFault(inner) => Error::DomainAlreadyExistsFault(inner),
783            crate::operation::register_domain::RegisterDomainError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
784            crate::operation::register_domain::RegisterDomainError::OperationNotPermittedFault(inner) => Error::OperationNotPermittedFault(inner),
785            crate::operation::register_domain::RegisterDomainError::TooManyTagsFault(inner) => Error::TooManyTagsFault(inner),
786            crate::operation::register_domain::RegisterDomainError::Unhandled(inner) => Error::Unhandled(inner),
787        }
788    }
789}
790impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_workflow_type::RegisterWorkflowTypeError, R>> for Error
791where
792    R: Send + Sync + std::fmt::Debug + 'static,
793{
794    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_workflow_type::RegisterWorkflowTypeError, R>) -> Self {
795        match err {
796            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
797            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
798                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
799                source: err.into(),
800            }),
801        }
802    }
803}
804impl From<crate::operation::register_workflow_type::RegisterWorkflowTypeError> for Error {
805    fn from(err: crate::operation::register_workflow_type::RegisterWorkflowTypeError) -> Self {
806        match err {
807            crate::operation::register_workflow_type::RegisterWorkflowTypeError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
808            crate::operation::register_workflow_type::RegisterWorkflowTypeError::OperationNotPermittedFault(inner) => {
809                Error::OperationNotPermittedFault(inner)
810            }
811            crate::operation::register_workflow_type::RegisterWorkflowTypeError::TypeAlreadyExistsFault(inner) => {
812                Error::TypeAlreadyExistsFault(inner)
813            }
814            crate::operation::register_workflow_type::RegisterWorkflowTypeError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
815            crate::operation::register_workflow_type::RegisterWorkflowTypeError::Unhandled(inner) => Error::Unhandled(inner),
816        }
817    }
818}
819impl<R>
820    From<
821        ::aws_smithy_runtime_api::client::result::SdkError<
822            crate::operation::request_cancel_workflow_execution::RequestCancelWorkflowExecutionError,
823            R,
824        >,
825    > for Error
826where
827    R: Send + Sync + std::fmt::Debug + 'static,
828{
829    fn from(
830        err: ::aws_smithy_runtime_api::client::result::SdkError<
831            crate::operation::request_cancel_workflow_execution::RequestCancelWorkflowExecutionError,
832            R,
833        >,
834    ) -> Self {
835        match err {
836            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
837            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
838                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
839                source: err.into(),
840            }),
841        }
842    }
843}
844impl From<crate::operation::request_cancel_workflow_execution::RequestCancelWorkflowExecutionError> for Error {
845    fn from(err: crate::operation::request_cancel_workflow_execution::RequestCancelWorkflowExecutionError) -> Self {
846        match err {
847            crate::operation::request_cancel_workflow_execution::RequestCancelWorkflowExecutionError::OperationNotPermittedFault(inner) => {
848                Error::OperationNotPermittedFault(inner)
849            }
850            crate::operation::request_cancel_workflow_execution::RequestCancelWorkflowExecutionError::UnknownResourceFault(inner) => {
851                Error::UnknownResourceFault(inner)
852            }
853            crate::operation::request_cancel_workflow_execution::RequestCancelWorkflowExecutionError::Unhandled(inner) => Error::Unhandled(inner),
854        }
855    }
856}
857impl<R>
858    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::respond_activity_task_canceled::RespondActivityTaskCanceledError, R>>
859    for Error
860where
861    R: Send + Sync + std::fmt::Debug + 'static,
862{
863    fn from(
864        err: ::aws_smithy_runtime_api::client::result::SdkError<
865            crate::operation::respond_activity_task_canceled::RespondActivityTaskCanceledError,
866            R,
867        >,
868    ) -> Self {
869        match err {
870            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
871            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
872                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
873                source: err.into(),
874            }),
875        }
876    }
877}
878impl From<crate::operation::respond_activity_task_canceled::RespondActivityTaskCanceledError> for Error {
879    fn from(err: crate::operation::respond_activity_task_canceled::RespondActivityTaskCanceledError) -> Self {
880        match err {
881            crate::operation::respond_activity_task_canceled::RespondActivityTaskCanceledError::OperationNotPermittedFault(inner) => {
882                Error::OperationNotPermittedFault(inner)
883            }
884            crate::operation::respond_activity_task_canceled::RespondActivityTaskCanceledError::UnknownResourceFault(inner) => {
885                Error::UnknownResourceFault(inner)
886            }
887            crate::operation::respond_activity_task_canceled::RespondActivityTaskCanceledError::Unhandled(inner) => Error::Unhandled(inner),
888        }
889    }
890}
891impl<R>
892    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::respond_activity_task_completed::RespondActivityTaskCompletedError, R>>
893    for Error
894where
895    R: Send + Sync + std::fmt::Debug + 'static,
896{
897    fn from(
898        err: ::aws_smithy_runtime_api::client::result::SdkError<
899            crate::operation::respond_activity_task_completed::RespondActivityTaskCompletedError,
900            R,
901        >,
902    ) -> Self {
903        match err {
904            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
905            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
906                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
907                source: err.into(),
908            }),
909        }
910    }
911}
912impl From<crate::operation::respond_activity_task_completed::RespondActivityTaskCompletedError> for Error {
913    fn from(err: crate::operation::respond_activity_task_completed::RespondActivityTaskCompletedError) -> Self {
914        match err {
915            crate::operation::respond_activity_task_completed::RespondActivityTaskCompletedError::OperationNotPermittedFault(inner) => {
916                Error::OperationNotPermittedFault(inner)
917            }
918            crate::operation::respond_activity_task_completed::RespondActivityTaskCompletedError::UnknownResourceFault(inner) => {
919                Error::UnknownResourceFault(inner)
920            }
921            crate::operation::respond_activity_task_completed::RespondActivityTaskCompletedError::Unhandled(inner) => Error::Unhandled(inner),
922        }
923    }
924}
925impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::respond_activity_task_failed::RespondActivityTaskFailedError, R>>
926    for Error
927where
928    R: Send + Sync + std::fmt::Debug + 'static,
929{
930    fn from(
931        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::respond_activity_task_failed::RespondActivityTaskFailedError, R>,
932    ) -> Self {
933        match err {
934            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
935            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
936                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
937                source: err.into(),
938            }),
939        }
940    }
941}
942impl From<crate::operation::respond_activity_task_failed::RespondActivityTaskFailedError> for Error {
943    fn from(err: crate::operation::respond_activity_task_failed::RespondActivityTaskFailedError) -> Self {
944        match err {
945            crate::operation::respond_activity_task_failed::RespondActivityTaskFailedError::OperationNotPermittedFault(inner) => {
946                Error::OperationNotPermittedFault(inner)
947            }
948            crate::operation::respond_activity_task_failed::RespondActivityTaskFailedError::UnknownResourceFault(inner) => {
949                Error::UnknownResourceFault(inner)
950            }
951            crate::operation::respond_activity_task_failed::RespondActivityTaskFailedError::Unhandled(inner) => Error::Unhandled(inner),
952        }
953    }
954}
955impl<R>
956    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::respond_decision_task_completed::RespondDecisionTaskCompletedError, R>>
957    for Error
958where
959    R: Send + Sync + std::fmt::Debug + 'static,
960{
961    fn from(
962        err: ::aws_smithy_runtime_api::client::result::SdkError<
963            crate::operation::respond_decision_task_completed::RespondDecisionTaskCompletedError,
964            R,
965        >,
966    ) -> Self {
967        match err {
968            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
969            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
970                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
971                source: err.into(),
972            }),
973        }
974    }
975}
976impl From<crate::operation::respond_decision_task_completed::RespondDecisionTaskCompletedError> for Error {
977    fn from(err: crate::operation::respond_decision_task_completed::RespondDecisionTaskCompletedError) -> Self {
978        match err {
979            crate::operation::respond_decision_task_completed::RespondDecisionTaskCompletedError::OperationNotPermittedFault(inner) => {
980                Error::OperationNotPermittedFault(inner)
981            }
982            crate::operation::respond_decision_task_completed::RespondDecisionTaskCompletedError::UnknownResourceFault(inner) => {
983                Error::UnknownResourceFault(inner)
984            }
985            crate::operation::respond_decision_task_completed::RespondDecisionTaskCompletedError::Unhandled(inner) => Error::Unhandled(inner),
986        }
987    }
988}
989impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::signal_workflow_execution::SignalWorkflowExecutionError, R>>
990    for Error
991where
992    R: Send + Sync + std::fmt::Debug + 'static,
993{
994    fn from(
995        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::signal_workflow_execution::SignalWorkflowExecutionError, R>,
996    ) -> Self {
997        match err {
998            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
999            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1000                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1001                source: err.into(),
1002            }),
1003        }
1004    }
1005}
1006impl From<crate::operation::signal_workflow_execution::SignalWorkflowExecutionError> for Error {
1007    fn from(err: crate::operation::signal_workflow_execution::SignalWorkflowExecutionError) -> Self {
1008        match err {
1009            crate::operation::signal_workflow_execution::SignalWorkflowExecutionError::OperationNotPermittedFault(inner) => {
1010                Error::OperationNotPermittedFault(inner)
1011            }
1012            crate::operation::signal_workflow_execution::SignalWorkflowExecutionError::UnknownResourceFault(inner) => {
1013                Error::UnknownResourceFault(inner)
1014            }
1015            crate::operation::signal_workflow_execution::SignalWorkflowExecutionError::Unhandled(inner) => Error::Unhandled(inner),
1016        }
1017    }
1018}
1019impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_workflow_execution::StartWorkflowExecutionError, R>> for Error
1020where
1021    R: Send + Sync + std::fmt::Debug + 'static,
1022{
1023    fn from(
1024        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_workflow_execution::StartWorkflowExecutionError, R>,
1025    ) -> Self {
1026        match err {
1027            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1028            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1029                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1030                source: err.into(),
1031            }),
1032        }
1033    }
1034}
1035impl From<crate::operation::start_workflow_execution::StartWorkflowExecutionError> for Error {
1036    fn from(err: crate::operation::start_workflow_execution::StartWorkflowExecutionError) -> Self {
1037        match err {
1038            crate::operation::start_workflow_execution::StartWorkflowExecutionError::DefaultUndefinedFault(inner) => {
1039                Error::DefaultUndefinedFault(inner)
1040            }
1041            crate::operation::start_workflow_execution::StartWorkflowExecutionError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
1042            crate::operation::start_workflow_execution::StartWorkflowExecutionError::OperationNotPermittedFault(inner) => {
1043                Error::OperationNotPermittedFault(inner)
1044            }
1045            crate::operation::start_workflow_execution::StartWorkflowExecutionError::TypeDeprecatedFault(inner) => Error::TypeDeprecatedFault(inner),
1046            crate::operation::start_workflow_execution::StartWorkflowExecutionError::UnknownResourceFault(inner) => {
1047                Error::UnknownResourceFault(inner)
1048            }
1049            crate::operation::start_workflow_execution::StartWorkflowExecutionError::WorkflowExecutionAlreadyStartedFault(inner) => {
1050                Error::WorkflowExecutionAlreadyStartedFault(inner)
1051            }
1052            crate::operation::start_workflow_execution::StartWorkflowExecutionError::Unhandled(inner) => Error::Unhandled(inner),
1053        }
1054    }
1055}
1056impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1057where
1058    R: Send + Sync + std::fmt::Debug + 'static,
1059{
1060    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1061        match err {
1062            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1063            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1064                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1065                source: err.into(),
1066            }),
1067        }
1068    }
1069}
1070impl From<crate::operation::tag_resource::TagResourceError> for Error {
1071    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1072        match err {
1073            crate::operation::tag_resource::TagResourceError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
1074            crate::operation::tag_resource::TagResourceError::OperationNotPermittedFault(inner) => Error::OperationNotPermittedFault(inner),
1075            crate::operation::tag_resource::TagResourceError::TooManyTagsFault(inner) => Error::TooManyTagsFault(inner),
1076            crate::operation::tag_resource::TagResourceError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
1077            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1078        }
1079    }
1080}
1081impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_workflow_execution::TerminateWorkflowExecutionError, R>>
1082    for Error
1083where
1084    R: Send + Sync + std::fmt::Debug + 'static,
1085{
1086    fn from(
1087        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_workflow_execution::TerminateWorkflowExecutionError, R>,
1088    ) -> Self {
1089        match err {
1090            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1091            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1092                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1093                source: err.into(),
1094            }),
1095        }
1096    }
1097}
1098impl From<crate::operation::terminate_workflow_execution::TerminateWorkflowExecutionError> for Error {
1099    fn from(err: crate::operation::terminate_workflow_execution::TerminateWorkflowExecutionError) -> Self {
1100        match err {
1101            crate::operation::terminate_workflow_execution::TerminateWorkflowExecutionError::OperationNotPermittedFault(inner) => {
1102                Error::OperationNotPermittedFault(inner)
1103            }
1104            crate::operation::terminate_workflow_execution::TerminateWorkflowExecutionError::UnknownResourceFault(inner) => {
1105                Error::UnknownResourceFault(inner)
1106            }
1107            crate::operation::terminate_workflow_execution::TerminateWorkflowExecutionError::Unhandled(inner) => Error::Unhandled(inner),
1108        }
1109    }
1110}
1111impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::undeprecate_activity_type::UndeprecateActivityTypeError, R>>
1112    for Error
1113where
1114    R: Send + Sync + std::fmt::Debug + 'static,
1115{
1116    fn from(
1117        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::undeprecate_activity_type::UndeprecateActivityTypeError, R>,
1118    ) -> Self {
1119        match err {
1120            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1121            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1122                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1123                source: err.into(),
1124            }),
1125        }
1126    }
1127}
1128impl From<crate::operation::undeprecate_activity_type::UndeprecateActivityTypeError> for Error {
1129    fn from(err: crate::operation::undeprecate_activity_type::UndeprecateActivityTypeError) -> Self {
1130        match err {
1131            crate::operation::undeprecate_activity_type::UndeprecateActivityTypeError::OperationNotPermittedFault(inner) => {
1132                Error::OperationNotPermittedFault(inner)
1133            }
1134            crate::operation::undeprecate_activity_type::UndeprecateActivityTypeError::TypeAlreadyExistsFault(inner) => {
1135                Error::TypeAlreadyExistsFault(inner)
1136            }
1137            crate::operation::undeprecate_activity_type::UndeprecateActivityTypeError::UnknownResourceFault(inner) => {
1138                Error::UnknownResourceFault(inner)
1139            }
1140            crate::operation::undeprecate_activity_type::UndeprecateActivityTypeError::Unhandled(inner) => Error::Unhandled(inner),
1141        }
1142    }
1143}
1144impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::undeprecate_domain::UndeprecateDomainError, R>> for Error
1145where
1146    R: Send + Sync + std::fmt::Debug + 'static,
1147{
1148    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::undeprecate_domain::UndeprecateDomainError, R>) -> Self {
1149        match err {
1150            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1151            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1152                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1153                source: err.into(),
1154            }),
1155        }
1156    }
1157}
1158impl From<crate::operation::undeprecate_domain::UndeprecateDomainError> for Error {
1159    fn from(err: crate::operation::undeprecate_domain::UndeprecateDomainError) -> Self {
1160        match err {
1161            crate::operation::undeprecate_domain::UndeprecateDomainError::DomainAlreadyExistsFault(inner) => Error::DomainAlreadyExistsFault(inner),
1162            crate::operation::undeprecate_domain::UndeprecateDomainError::OperationNotPermittedFault(inner) => {
1163                Error::OperationNotPermittedFault(inner)
1164            }
1165            crate::operation::undeprecate_domain::UndeprecateDomainError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
1166            crate::operation::undeprecate_domain::UndeprecateDomainError::Unhandled(inner) => Error::Unhandled(inner),
1167        }
1168    }
1169}
1170impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::undeprecate_workflow_type::UndeprecateWorkflowTypeError, R>>
1171    for Error
1172where
1173    R: Send + Sync + std::fmt::Debug + 'static,
1174{
1175    fn from(
1176        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::undeprecate_workflow_type::UndeprecateWorkflowTypeError, R>,
1177    ) -> Self {
1178        match err {
1179            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1180            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1181                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1182                source: err.into(),
1183            }),
1184        }
1185    }
1186}
1187impl From<crate::operation::undeprecate_workflow_type::UndeprecateWorkflowTypeError> for Error {
1188    fn from(err: crate::operation::undeprecate_workflow_type::UndeprecateWorkflowTypeError) -> Self {
1189        match err {
1190            crate::operation::undeprecate_workflow_type::UndeprecateWorkflowTypeError::OperationNotPermittedFault(inner) => {
1191                Error::OperationNotPermittedFault(inner)
1192            }
1193            crate::operation::undeprecate_workflow_type::UndeprecateWorkflowTypeError::TypeAlreadyExistsFault(inner) => {
1194                Error::TypeAlreadyExistsFault(inner)
1195            }
1196            crate::operation::undeprecate_workflow_type::UndeprecateWorkflowTypeError::UnknownResourceFault(inner) => {
1197                Error::UnknownResourceFault(inner)
1198            }
1199            crate::operation::undeprecate_workflow_type::UndeprecateWorkflowTypeError::Unhandled(inner) => Error::Unhandled(inner),
1200        }
1201    }
1202}
1203impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1204where
1205    R: Send + Sync + std::fmt::Debug + 'static,
1206{
1207    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1208        match err {
1209            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1210            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1211                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1212                source: err.into(),
1213            }),
1214        }
1215    }
1216}
1217impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1218    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1219        match err {
1220            crate::operation::untag_resource::UntagResourceError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
1221            crate::operation::untag_resource::UntagResourceError::OperationNotPermittedFault(inner) => Error::OperationNotPermittedFault(inner),
1222            crate::operation::untag_resource::UntagResourceError::UnknownResourceFault(inner) => Error::UnknownResourceFault(inner),
1223            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1224        }
1225    }
1226}
1227impl ::std::error::Error for Error {
1228    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1229        match self {
1230            Error::DefaultUndefinedFault(inner) => inner.source(),
1231            Error::DomainAlreadyExistsFault(inner) => inner.source(),
1232            Error::DomainDeprecatedFault(inner) => inner.source(),
1233            Error::LimitExceededFault(inner) => inner.source(),
1234            Error::OperationNotPermittedFault(inner) => inner.source(),
1235            Error::TooManyTagsFault(inner) => inner.source(),
1236            Error::TypeAlreadyExistsFault(inner) => inner.source(),
1237            Error::TypeDeprecatedFault(inner) => inner.source(),
1238            Error::TypeNotDeprecatedFault(inner) => inner.source(),
1239            Error::UnknownResourceFault(inner) => inner.source(),
1240            Error::WorkflowExecutionAlreadyStartedFault(inner) => inner.source(),
1241            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1242        }
1243    }
1244}
1245impl ::aws_types::request_id::RequestId for Error {
1246    fn request_id(&self) -> Option<&str> {
1247        match self {
1248            Self::DefaultUndefinedFault(e) => e.request_id(),
1249            Self::DomainAlreadyExistsFault(e) => e.request_id(),
1250            Self::DomainDeprecatedFault(e) => e.request_id(),
1251            Self::LimitExceededFault(e) => e.request_id(),
1252            Self::OperationNotPermittedFault(e) => e.request_id(),
1253            Self::TooManyTagsFault(e) => e.request_id(),
1254            Self::TypeAlreadyExistsFault(e) => e.request_id(),
1255            Self::TypeDeprecatedFault(e) => e.request_id(),
1256            Self::TypeNotDeprecatedFault(e) => e.request_id(),
1257            Self::UnknownResourceFault(e) => e.request_id(),
1258            Self::WorkflowExecutionAlreadyStartedFault(e) => e.request_id(),
1259            Self::Unhandled(e) => e.meta.request_id(),
1260        }
1261    }
1262}