aws_sdk_migrationhuborchestrator/
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>This exception is thrown when an attempt to update or delete a resource would cause an inconsistent state.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>An internal error has occurred.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The resource is not available.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The request was denied due to request throttling.</p>
15    ThrottlingException(crate::types::error::ThrottlingException),
16    /// <p>The input fails to satisfy the constraints specified by an AWS service.</p>
17    ValidationException(crate::types::error::ValidationException),
18    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
19    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
20    variable wildcard pattern and check `.code()`:
21     \
22    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
23     \
24    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
25    Unhandled(crate::error::sealed_unhandled::Unhandled),
26}
27impl ::std::fmt::Display for Error {
28    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
29        match self {
30            Error::AccessDeniedException(inner) => inner.fmt(f),
31            Error::ConflictException(inner) => inner.fmt(f),
32            Error::InternalServerException(inner) => inner.fmt(f),
33            Error::ResourceNotFoundException(inner) => inner.fmt(f),
34            Error::ThrottlingException(inner) => inner.fmt(f),
35            Error::ValidationException(inner) => inner.fmt(f),
36            Error::Unhandled(_) => {
37                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
38                    write!(f, "unhandled error ({code})")
39                } else {
40                    f.write_str("unhandled error")
41                }
42            }
43        }
44    }
45}
46impl From<::aws_smithy_types::error::operation::BuildError> for Error {
47    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
48        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
49            source: value.into(),
50            meta: ::std::default::Default::default(),
51        })
52    }
53}
54impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
55    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
56        match self {
57            Self::AccessDeniedException(inner) => inner.meta(),
58            Self::ConflictException(inner) => inner.meta(),
59            Self::InternalServerException(inner) => inner.meta(),
60            Self::ResourceNotFoundException(inner) => inner.meta(),
61            Self::ThrottlingException(inner) => inner.meta(),
62            Self::ValidationException(inner) => inner.meta(),
63            Self::Unhandled(inner) => &inner.meta,
64        }
65    }
66}
67impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template::CreateTemplateError, R>> for Error
68where
69    R: Send + Sync + std::fmt::Debug + 'static,
70{
71    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template::CreateTemplateError, R>) -> Self {
72        match err {
73            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
74            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
75                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
76                source: err.into(),
77            }),
78        }
79    }
80}
81impl From<crate::operation::create_template::CreateTemplateError> for Error {
82    fn from(err: crate::operation::create_template::CreateTemplateError) -> Self {
83        match err {
84            crate::operation::create_template::CreateTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
85            crate::operation::create_template::CreateTemplateError::ConflictException(inner) => Error::ConflictException(inner),
86            crate::operation::create_template::CreateTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
87            crate::operation::create_template::CreateTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
88            crate::operation::create_template::CreateTemplateError::ValidationException(inner) => Error::ValidationException(inner),
89            crate::operation::create_template::CreateTemplateError::Unhandled(inner) => Error::Unhandled(inner),
90        }
91    }
92}
93impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workflow::CreateWorkflowError, R>> for Error
94where
95    R: Send + Sync + std::fmt::Debug + 'static,
96{
97    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workflow::CreateWorkflowError, R>) -> Self {
98        match err {
99            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
100            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
101                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
102                source: err.into(),
103            }),
104        }
105    }
106}
107impl From<crate::operation::create_workflow::CreateWorkflowError> for Error {
108    fn from(err: crate::operation::create_workflow::CreateWorkflowError) -> Self {
109        match err {
110            crate::operation::create_workflow::CreateWorkflowError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
111            crate::operation::create_workflow::CreateWorkflowError::InternalServerException(inner) => Error::InternalServerException(inner),
112            crate::operation::create_workflow::CreateWorkflowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
113            crate::operation::create_workflow::CreateWorkflowError::ValidationException(inner) => Error::ValidationException(inner),
114            crate::operation::create_workflow::CreateWorkflowError::Unhandled(inner) => Error::Unhandled(inner),
115        }
116    }
117}
118impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workflow_step::CreateWorkflowStepError, R>> for Error
119where
120    R: Send + Sync + std::fmt::Debug + 'static,
121{
122    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workflow_step::CreateWorkflowStepError, R>) -> Self {
123        match err {
124            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
125            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
126                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
127                source: err.into(),
128            }),
129        }
130    }
131}
132impl From<crate::operation::create_workflow_step::CreateWorkflowStepError> for Error {
133    fn from(err: crate::operation::create_workflow_step::CreateWorkflowStepError) -> Self {
134        match err {
135            crate::operation::create_workflow_step::CreateWorkflowStepError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
136            crate::operation::create_workflow_step::CreateWorkflowStepError::InternalServerException(inner) => Error::InternalServerException(inner),
137            crate::operation::create_workflow_step::CreateWorkflowStepError::ThrottlingException(inner) => Error::ThrottlingException(inner),
138            crate::operation::create_workflow_step::CreateWorkflowStepError::ValidationException(inner) => Error::ValidationException(inner),
139            crate::operation::create_workflow_step::CreateWorkflowStepError::Unhandled(inner) => Error::Unhandled(inner),
140        }
141    }
142}
143impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workflow_step_group::CreateWorkflowStepGroupError, R>>
144    for Error
145where
146    R: Send + Sync + std::fmt::Debug + 'static,
147{
148    fn from(
149        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workflow_step_group::CreateWorkflowStepGroupError, R>,
150    ) -> Self {
151        match err {
152            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
153            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
154                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
155                source: err.into(),
156            }),
157        }
158    }
159}
160impl From<crate::operation::create_workflow_step_group::CreateWorkflowStepGroupError> for Error {
161    fn from(err: crate::operation::create_workflow_step_group::CreateWorkflowStepGroupError) -> Self {
162        match err {
163            crate::operation::create_workflow_step_group::CreateWorkflowStepGroupError::AccessDeniedException(inner) => {
164                Error::AccessDeniedException(inner)
165            }
166            crate::operation::create_workflow_step_group::CreateWorkflowStepGroupError::InternalServerException(inner) => {
167                Error::InternalServerException(inner)
168            }
169            crate::operation::create_workflow_step_group::CreateWorkflowStepGroupError::ThrottlingException(inner) => {
170                Error::ThrottlingException(inner)
171            }
172            crate::operation::create_workflow_step_group::CreateWorkflowStepGroupError::ValidationException(inner) => {
173                Error::ValidationException(inner)
174            }
175            crate::operation::create_workflow_step_group::CreateWorkflowStepGroupError::Unhandled(inner) => Error::Unhandled(inner),
176        }
177    }
178}
179impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template::DeleteTemplateError, R>> for Error
180where
181    R: Send + Sync + std::fmt::Debug + 'static,
182{
183    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template::DeleteTemplateError, R>) -> Self {
184        match err {
185            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
186            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
187                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
188                source: err.into(),
189            }),
190        }
191    }
192}
193impl From<crate::operation::delete_template::DeleteTemplateError> for Error {
194    fn from(err: crate::operation::delete_template::DeleteTemplateError) -> Self {
195        match err {
196            crate::operation::delete_template::DeleteTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
197            crate::operation::delete_template::DeleteTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
198            crate::operation::delete_template::DeleteTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
199            crate::operation::delete_template::DeleteTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
200            crate::operation::delete_template::DeleteTemplateError::ValidationException(inner) => Error::ValidationException(inner),
201            crate::operation::delete_template::DeleteTemplateError::Unhandled(inner) => Error::Unhandled(inner),
202        }
203    }
204}
205impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workflow::DeleteWorkflowError, R>> for Error
206where
207    R: Send + Sync + std::fmt::Debug + 'static,
208{
209    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workflow::DeleteWorkflowError, R>) -> Self {
210        match err {
211            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
212            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
213                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
214                source: err.into(),
215            }),
216        }
217    }
218}
219impl From<crate::operation::delete_workflow::DeleteWorkflowError> for Error {
220    fn from(err: crate::operation::delete_workflow::DeleteWorkflowError) -> Self {
221        match err {
222            crate::operation::delete_workflow::DeleteWorkflowError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
223            crate::operation::delete_workflow::DeleteWorkflowError::InternalServerException(inner) => Error::InternalServerException(inner),
224            crate::operation::delete_workflow::DeleteWorkflowError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
225            crate::operation::delete_workflow::DeleteWorkflowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
226            crate::operation::delete_workflow::DeleteWorkflowError::ValidationException(inner) => Error::ValidationException(inner),
227            crate::operation::delete_workflow::DeleteWorkflowError::Unhandled(inner) => Error::Unhandled(inner),
228        }
229    }
230}
231impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workflow_step::DeleteWorkflowStepError, R>> for Error
232where
233    R: Send + Sync + std::fmt::Debug + 'static,
234{
235    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workflow_step::DeleteWorkflowStepError, R>) -> Self {
236        match err {
237            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
238            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
239                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
240                source: err.into(),
241            }),
242        }
243    }
244}
245impl From<crate::operation::delete_workflow_step::DeleteWorkflowStepError> for Error {
246    fn from(err: crate::operation::delete_workflow_step::DeleteWorkflowStepError) -> Self {
247        match err {
248            crate::operation::delete_workflow_step::DeleteWorkflowStepError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
249            crate::operation::delete_workflow_step::DeleteWorkflowStepError::InternalServerException(inner) => Error::InternalServerException(inner),
250            crate::operation::delete_workflow_step::DeleteWorkflowStepError::ResourceNotFoundException(inner) => {
251                Error::ResourceNotFoundException(inner)
252            }
253            crate::operation::delete_workflow_step::DeleteWorkflowStepError::ThrottlingException(inner) => Error::ThrottlingException(inner),
254            crate::operation::delete_workflow_step::DeleteWorkflowStepError::ValidationException(inner) => Error::ValidationException(inner),
255            crate::operation::delete_workflow_step::DeleteWorkflowStepError::Unhandled(inner) => Error::Unhandled(inner),
256        }
257    }
258}
259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workflow_step_group::DeleteWorkflowStepGroupError, 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_workflow_step_group::DeleteWorkflowStepGroupError, 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_workflow_step_group::DeleteWorkflowStepGroupError> for Error {
277    fn from(err: crate::operation::delete_workflow_step_group::DeleteWorkflowStepGroupError) -> Self {
278        match err {
279            crate::operation::delete_workflow_step_group::DeleteWorkflowStepGroupError::AccessDeniedException(inner) => {
280                Error::AccessDeniedException(inner)
281            }
282            crate::operation::delete_workflow_step_group::DeleteWorkflowStepGroupError::InternalServerException(inner) => {
283                Error::InternalServerException(inner)
284            }
285            crate::operation::delete_workflow_step_group::DeleteWorkflowStepGroupError::ResourceNotFoundException(inner) => {
286                Error::ResourceNotFoundException(inner)
287            }
288            crate::operation::delete_workflow_step_group::DeleteWorkflowStepGroupError::ThrottlingException(inner) => {
289                Error::ThrottlingException(inner)
290            }
291            crate::operation::delete_workflow_step_group::DeleteWorkflowStepGroupError::ValidationException(inner) => {
292                Error::ValidationException(inner)
293            }
294            crate::operation::delete_workflow_step_group::DeleteWorkflowStepGroupError::Unhandled(inner) => Error::Unhandled(inner),
295        }
296    }
297}
298impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, R>> for Error
299where
300    R: Send + Sync + std::fmt::Debug + 'static,
301{
302    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, R>) -> Self {
303        match err {
304            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
305            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
306                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
307                source: err.into(),
308            }),
309        }
310    }
311}
312impl From<crate::operation::get_template::GetTemplateError> for Error {
313    fn from(err: crate::operation::get_template::GetTemplateError) -> Self {
314        match err {
315            crate::operation::get_template::GetTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
316            crate::operation::get_template::GetTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
317            crate::operation::get_template::GetTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
318            crate::operation::get_template::GetTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
319            crate::operation::get_template::GetTemplateError::Unhandled(inner) => Error::Unhandled(inner),
320        }
321    }
322}
323impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template_step::GetTemplateStepError, R>> for Error
324where
325    R: Send + Sync + std::fmt::Debug + 'static,
326{
327    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template_step::GetTemplateStepError, R>) -> 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::get_template_step::GetTemplateStepError> for Error {
338    fn from(err: crate::operation::get_template_step::GetTemplateStepError) -> Self {
339        match err {
340            crate::operation::get_template_step::GetTemplateStepError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
341            crate::operation::get_template_step::GetTemplateStepError::InternalServerException(inner) => Error::InternalServerException(inner),
342            crate::operation::get_template_step::GetTemplateStepError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
343            crate::operation::get_template_step::GetTemplateStepError::ThrottlingException(inner) => Error::ThrottlingException(inner),
344            crate::operation::get_template_step::GetTemplateStepError::ValidationException(inner) => Error::ValidationException(inner),
345            crate::operation::get_template_step::GetTemplateStepError::Unhandled(inner) => Error::Unhandled(inner),
346        }
347    }
348}
349impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template_step_group::GetTemplateStepGroupError, R>> for Error
350where
351    R: Send + Sync + std::fmt::Debug + 'static,
352{
353    fn from(
354        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template_step_group::GetTemplateStepGroupError, R>,
355    ) -> 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::get_template_step_group::GetTemplateStepGroupError> for Error {
366    fn from(err: crate::operation::get_template_step_group::GetTemplateStepGroupError) -> Self {
367        match err {
368            crate::operation::get_template_step_group::GetTemplateStepGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
369            crate::operation::get_template_step_group::GetTemplateStepGroupError::InternalServerException(inner) => {
370                Error::InternalServerException(inner)
371            }
372            crate::operation::get_template_step_group::GetTemplateStepGroupError::ResourceNotFoundException(inner) => {
373                Error::ResourceNotFoundException(inner)
374            }
375            crate::operation::get_template_step_group::GetTemplateStepGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
376            crate::operation::get_template_step_group::GetTemplateStepGroupError::ValidationException(inner) => Error::ValidationException(inner),
377            crate::operation::get_template_step_group::GetTemplateStepGroupError::Unhandled(inner) => Error::Unhandled(inner),
378        }
379    }
380}
381impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workflow::GetWorkflowError, R>> for Error
382where
383    R: Send + Sync + std::fmt::Debug + 'static,
384{
385    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workflow::GetWorkflowError, R>) -> Self {
386        match err {
387            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
388            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
389                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
390                source: err.into(),
391            }),
392        }
393    }
394}
395impl From<crate::operation::get_workflow::GetWorkflowError> for Error {
396    fn from(err: crate::operation::get_workflow::GetWorkflowError) -> Self {
397        match err {
398            crate::operation::get_workflow::GetWorkflowError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
399            crate::operation::get_workflow::GetWorkflowError::InternalServerException(inner) => Error::InternalServerException(inner),
400            crate::operation::get_workflow::GetWorkflowError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
401            crate::operation::get_workflow::GetWorkflowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
402            crate::operation::get_workflow::GetWorkflowError::ValidationException(inner) => Error::ValidationException(inner),
403            crate::operation::get_workflow::GetWorkflowError::Unhandled(inner) => Error::Unhandled(inner),
404        }
405    }
406}
407impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workflow_step::GetWorkflowStepError, R>> for Error
408where
409    R: Send + Sync + std::fmt::Debug + 'static,
410{
411    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workflow_step::GetWorkflowStepError, R>) -> Self {
412        match err {
413            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
414            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
415                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
416                source: err.into(),
417            }),
418        }
419    }
420}
421impl From<crate::operation::get_workflow_step::GetWorkflowStepError> for Error {
422    fn from(err: crate::operation::get_workflow_step::GetWorkflowStepError) -> Self {
423        match err {
424            crate::operation::get_workflow_step::GetWorkflowStepError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
425            crate::operation::get_workflow_step::GetWorkflowStepError::InternalServerException(inner) => Error::InternalServerException(inner),
426            crate::operation::get_workflow_step::GetWorkflowStepError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
427            crate::operation::get_workflow_step::GetWorkflowStepError::ThrottlingException(inner) => Error::ThrottlingException(inner),
428            crate::operation::get_workflow_step::GetWorkflowStepError::Unhandled(inner) => Error::Unhandled(inner),
429        }
430    }
431}
432impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workflow_step_group::GetWorkflowStepGroupError, R>> for Error
433where
434    R: Send + Sync + std::fmt::Debug + 'static,
435{
436    fn from(
437        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workflow_step_group::GetWorkflowStepGroupError, R>,
438    ) -> Self {
439        match err {
440            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
441            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
442                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
443                source: err.into(),
444            }),
445        }
446    }
447}
448impl From<crate::operation::get_workflow_step_group::GetWorkflowStepGroupError> for Error {
449    fn from(err: crate::operation::get_workflow_step_group::GetWorkflowStepGroupError) -> Self {
450        match err {
451            crate::operation::get_workflow_step_group::GetWorkflowStepGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
452            crate::operation::get_workflow_step_group::GetWorkflowStepGroupError::InternalServerException(inner) => {
453                Error::InternalServerException(inner)
454            }
455            crate::operation::get_workflow_step_group::GetWorkflowStepGroupError::ResourceNotFoundException(inner) => {
456                Error::ResourceNotFoundException(inner)
457            }
458            crate::operation::get_workflow_step_group::GetWorkflowStepGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
459            crate::operation::get_workflow_step_group::GetWorkflowStepGroupError::ValidationException(inner) => Error::ValidationException(inner),
460            crate::operation::get_workflow_step_group::GetWorkflowStepGroupError::Unhandled(inner) => Error::Unhandled(inner),
461        }
462    }
463}
464impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_plugins::ListPluginsError, R>> for Error
465where
466    R: Send + Sync + std::fmt::Debug + 'static,
467{
468    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_plugins::ListPluginsError, R>) -> Self {
469        match err {
470            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
471            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
472                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
473                source: err.into(),
474            }),
475        }
476    }
477}
478impl From<crate::operation::list_plugins::ListPluginsError> for Error {
479    fn from(err: crate::operation::list_plugins::ListPluginsError) -> Self {
480        match err {
481            crate::operation::list_plugins::ListPluginsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
482            crate::operation::list_plugins::ListPluginsError::InternalServerException(inner) => Error::InternalServerException(inner),
483            crate::operation::list_plugins::ListPluginsError::ValidationException(inner) => Error::ValidationException(inner),
484            crate::operation::list_plugins::ListPluginsError::Unhandled(inner) => Error::Unhandled(inner),
485        }
486    }
487}
488impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, 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_tags_for_resource::ListTagsForResourceError, 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_tags_for_resource::ListTagsForResourceError> for Error {
503    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
504        match err {
505            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
506                Error::ResourceNotFoundException(inner)
507            }
508            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
509            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
510        }
511    }
512}
513impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_templates::ListTemplatesError, R>> for Error
514where
515    R: Send + Sync + std::fmt::Debug + 'static,
516{
517    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_templates::ListTemplatesError, R>) -> Self {
518        match err {
519            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
520            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
521                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
522                source: err.into(),
523            }),
524        }
525    }
526}
527impl From<crate::operation::list_templates::ListTemplatesError> for Error {
528    fn from(err: crate::operation::list_templates::ListTemplatesError) -> Self {
529        match err {
530            crate::operation::list_templates::ListTemplatesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
531            crate::operation::list_templates::ListTemplatesError::InternalServerException(inner) => Error::InternalServerException(inner),
532            crate::operation::list_templates::ListTemplatesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
533            crate::operation::list_templates::ListTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
534        }
535    }
536}
537impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_template_step_groups::ListTemplateStepGroupsError, R>>
538    for Error
539where
540    R: Send + Sync + std::fmt::Debug + 'static,
541{
542    fn from(
543        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_template_step_groups::ListTemplateStepGroupsError, R>,
544    ) -> Self {
545        match err {
546            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
547            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
548                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
549                source: err.into(),
550            }),
551        }
552    }
553}
554impl From<crate::operation::list_template_step_groups::ListTemplateStepGroupsError> for Error {
555    fn from(err: crate::operation::list_template_step_groups::ListTemplateStepGroupsError) -> Self {
556        match err {
557            crate::operation::list_template_step_groups::ListTemplateStepGroupsError::AccessDeniedException(inner) => {
558                Error::AccessDeniedException(inner)
559            }
560            crate::operation::list_template_step_groups::ListTemplateStepGroupsError::InternalServerException(inner) => {
561                Error::InternalServerException(inner)
562            }
563            crate::operation::list_template_step_groups::ListTemplateStepGroupsError::ResourceNotFoundException(inner) => {
564                Error::ResourceNotFoundException(inner)
565            }
566            crate::operation::list_template_step_groups::ListTemplateStepGroupsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
567            crate::operation::list_template_step_groups::ListTemplateStepGroupsError::Unhandled(inner) => Error::Unhandled(inner),
568        }
569    }
570}
571impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_template_steps::ListTemplateStepsError, R>> for Error
572where
573    R: Send + Sync + std::fmt::Debug + 'static,
574{
575    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_template_steps::ListTemplateStepsError, R>) -> Self {
576        match err {
577            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
578            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
579                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
580                source: err.into(),
581            }),
582        }
583    }
584}
585impl From<crate::operation::list_template_steps::ListTemplateStepsError> for Error {
586    fn from(err: crate::operation::list_template_steps::ListTemplateStepsError) -> Self {
587        match err {
588            crate::operation::list_template_steps::ListTemplateStepsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
589            crate::operation::list_template_steps::ListTemplateStepsError::InternalServerException(inner) => Error::InternalServerException(inner),
590            crate::operation::list_template_steps::ListTemplateStepsError::ResourceNotFoundException(inner) => {
591                Error::ResourceNotFoundException(inner)
592            }
593            crate::operation::list_template_steps::ListTemplateStepsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
594            crate::operation::list_template_steps::ListTemplateStepsError::ValidationException(inner) => Error::ValidationException(inner),
595            crate::operation::list_template_steps::ListTemplateStepsError::Unhandled(inner) => Error::Unhandled(inner),
596        }
597    }
598}
599impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflows::ListWorkflowsError, 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_workflows::ListWorkflowsError, 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_workflows::ListWorkflowsError> for Error {
614    fn from(err: crate::operation::list_workflows::ListWorkflowsError) -> Self {
615        match err {
616            crate::operation::list_workflows::ListWorkflowsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
617            crate::operation::list_workflows::ListWorkflowsError::InternalServerException(inner) => Error::InternalServerException(inner),
618            crate::operation::list_workflows::ListWorkflowsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
619            crate::operation::list_workflows::ListWorkflowsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
620            crate::operation::list_workflows::ListWorkflowsError::ValidationException(inner) => Error::ValidationException(inner),
621            crate::operation::list_workflows::ListWorkflowsError::Unhandled(inner) => Error::Unhandled(inner),
622        }
623    }
624}
625impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflow_step_groups::ListWorkflowStepGroupsError, R>>
626    for Error
627where
628    R: Send + Sync + std::fmt::Debug + 'static,
629{
630    fn from(
631        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflow_step_groups::ListWorkflowStepGroupsError, R>,
632    ) -> Self {
633        match err {
634            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
635            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
636                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
637                source: err.into(),
638            }),
639        }
640    }
641}
642impl From<crate::operation::list_workflow_step_groups::ListWorkflowStepGroupsError> for Error {
643    fn from(err: crate::operation::list_workflow_step_groups::ListWorkflowStepGroupsError) -> Self {
644        match err {
645            crate::operation::list_workflow_step_groups::ListWorkflowStepGroupsError::AccessDeniedException(inner) => {
646                Error::AccessDeniedException(inner)
647            }
648            crate::operation::list_workflow_step_groups::ListWorkflowStepGroupsError::InternalServerException(inner) => {
649                Error::InternalServerException(inner)
650            }
651            crate::operation::list_workflow_step_groups::ListWorkflowStepGroupsError::ResourceNotFoundException(inner) => {
652                Error::ResourceNotFoundException(inner)
653            }
654            crate::operation::list_workflow_step_groups::ListWorkflowStepGroupsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
655            crate::operation::list_workflow_step_groups::ListWorkflowStepGroupsError::ValidationException(inner) => Error::ValidationException(inner),
656            crate::operation::list_workflow_step_groups::ListWorkflowStepGroupsError::Unhandled(inner) => Error::Unhandled(inner),
657        }
658    }
659}
660impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflow_steps::ListWorkflowStepsError, R>> for Error
661where
662    R: Send + Sync + std::fmt::Debug + 'static,
663{
664    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workflow_steps::ListWorkflowStepsError, R>) -> Self {
665        match err {
666            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
667            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
668                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
669                source: err.into(),
670            }),
671        }
672    }
673}
674impl From<crate::operation::list_workflow_steps::ListWorkflowStepsError> for Error {
675    fn from(err: crate::operation::list_workflow_steps::ListWorkflowStepsError) -> Self {
676        match err {
677            crate::operation::list_workflow_steps::ListWorkflowStepsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
678            crate::operation::list_workflow_steps::ListWorkflowStepsError::InternalServerException(inner) => Error::InternalServerException(inner),
679            crate::operation::list_workflow_steps::ListWorkflowStepsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
680            crate::operation::list_workflow_steps::ListWorkflowStepsError::ValidationException(inner) => Error::ValidationException(inner),
681            crate::operation::list_workflow_steps::ListWorkflowStepsError::Unhandled(inner) => Error::Unhandled(inner),
682        }
683    }
684}
685impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_workflow_step::RetryWorkflowStepError, R>> for Error
686where
687    R: Send + Sync + std::fmt::Debug + 'static,
688{
689    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_workflow_step::RetryWorkflowStepError, R>) -> Self {
690        match err {
691            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
692            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
693                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
694                source: err.into(),
695            }),
696        }
697    }
698}
699impl From<crate::operation::retry_workflow_step::RetryWorkflowStepError> for Error {
700    fn from(err: crate::operation::retry_workflow_step::RetryWorkflowStepError) -> Self {
701        match err {
702            crate::operation::retry_workflow_step::RetryWorkflowStepError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
703            crate::operation::retry_workflow_step::RetryWorkflowStepError::InternalServerException(inner) => Error::InternalServerException(inner),
704            crate::operation::retry_workflow_step::RetryWorkflowStepError::ResourceNotFoundException(inner) => {
705                Error::ResourceNotFoundException(inner)
706            }
707            crate::operation::retry_workflow_step::RetryWorkflowStepError::ThrottlingException(inner) => Error::ThrottlingException(inner),
708            crate::operation::retry_workflow_step::RetryWorkflowStepError::Unhandled(inner) => Error::Unhandled(inner),
709        }
710    }
711}
712impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_workflow::StartWorkflowError, R>> for Error
713where
714    R: Send + Sync + std::fmt::Debug + 'static,
715{
716    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_workflow::StartWorkflowError, R>) -> Self {
717        match err {
718            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
719            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
720                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
721                source: err.into(),
722            }),
723        }
724    }
725}
726impl From<crate::operation::start_workflow::StartWorkflowError> for Error {
727    fn from(err: crate::operation::start_workflow::StartWorkflowError) -> Self {
728        match err {
729            crate::operation::start_workflow::StartWorkflowError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
730            crate::operation::start_workflow::StartWorkflowError::InternalServerException(inner) => Error::InternalServerException(inner),
731            crate::operation::start_workflow::StartWorkflowError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
732            crate::operation::start_workflow::StartWorkflowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
733            crate::operation::start_workflow::StartWorkflowError::ValidationException(inner) => Error::ValidationException(inner),
734            crate::operation::start_workflow::StartWorkflowError::Unhandled(inner) => Error::Unhandled(inner),
735        }
736    }
737}
738impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_workflow::StopWorkflowError, R>> for Error
739where
740    R: Send + Sync + std::fmt::Debug + 'static,
741{
742    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_workflow::StopWorkflowError, R>) -> Self {
743        match err {
744            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
745            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
746                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
747                source: err.into(),
748            }),
749        }
750    }
751}
752impl From<crate::operation::stop_workflow::StopWorkflowError> for Error {
753    fn from(err: crate::operation::stop_workflow::StopWorkflowError) -> Self {
754        match err {
755            crate::operation::stop_workflow::StopWorkflowError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
756            crate::operation::stop_workflow::StopWorkflowError::InternalServerException(inner) => Error::InternalServerException(inner),
757            crate::operation::stop_workflow::StopWorkflowError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
758            crate::operation::stop_workflow::StopWorkflowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
759            crate::operation::stop_workflow::StopWorkflowError::ValidationException(inner) => Error::ValidationException(inner),
760            crate::operation::stop_workflow::StopWorkflowError::Unhandled(inner) => Error::Unhandled(inner),
761        }
762    }
763}
764impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
765where
766    R: Send + Sync + std::fmt::Debug + 'static,
767{
768    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
769        match err {
770            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
771            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
772                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
773                source: err.into(),
774            }),
775        }
776    }
777}
778impl From<crate::operation::tag_resource::TagResourceError> for Error {
779    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
780        match err {
781            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
782            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
783            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
784        }
785    }
786}
787impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
788where
789    R: Send + Sync + std::fmt::Debug + 'static,
790{
791    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
792        match err {
793            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
794            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
795                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
796                source: err.into(),
797            }),
798        }
799    }
800}
801impl From<crate::operation::untag_resource::UntagResourceError> for Error {
802    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
803        match err {
804            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
805            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
806            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
807        }
808    }
809}
810impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template::UpdateTemplateError, R>> for Error
811where
812    R: Send + Sync + std::fmt::Debug + 'static,
813{
814    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template::UpdateTemplateError, R>) -> Self {
815        match err {
816            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
817            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
818                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
819                source: err.into(),
820            }),
821        }
822    }
823}
824impl From<crate::operation::update_template::UpdateTemplateError> for Error {
825    fn from(err: crate::operation::update_template::UpdateTemplateError) -> Self {
826        match err {
827            crate::operation::update_template::UpdateTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
828            crate::operation::update_template::UpdateTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
829            crate::operation::update_template::UpdateTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
830            crate::operation::update_template::UpdateTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
831            crate::operation::update_template::UpdateTemplateError::ValidationException(inner) => Error::ValidationException(inner),
832            crate::operation::update_template::UpdateTemplateError::Unhandled(inner) => Error::Unhandled(inner),
833        }
834    }
835}
836impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workflow::UpdateWorkflowError, R>> for Error
837where
838    R: Send + Sync + std::fmt::Debug + 'static,
839{
840    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workflow::UpdateWorkflowError, R>) -> Self {
841        match err {
842            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
843            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
844                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
845                source: err.into(),
846            }),
847        }
848    }
849}
850impl From<crate::operation::update_workflow::UpdateWorkflowError> for Error {
851    fn from(err: crate::operation::update_workflow::UpdateWorkflowError) -> Self {
852        match err {
853            crate::operation::update_workflow::UpdateWorkflowError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
854            crate::operation::update_workflow::UpdateWorkflowError::InternalServerException(inner) => Error::InternalServerException(inner),
855            crate::operation::update_workflow::UpdateWorkflowError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
856            crate::operation::update_workflow::UpdateWorkflowError::ThrottlingException(inner) => Error::ThrottlingException(inner),
857            crate::operation::update_workflow::UpdateWorkflowError::ValidationException(inner) => Error::ValidationException(inner),
858            crate::operation::update_workflow::UpdateWorkflowError::Unhandled(inner) => Error::Unhandled(inner),
859        }
860    }
861}
862impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workflow_step::UpdateWorkflowStepError, R>> for Error
863where
864    R: Send + Sync + std::fmt::Debug + 'static,
865{
866    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workflow_step::UpdateWorkflowStepError, R>) -> Self {
867        match err {
868            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
869            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
870                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
871                source: err.into(),
872            }),
873        }
874    }
875}
876impl From<crate::operation::update_workflow_step::UpdateWorkflowStepError> for Error {
877    fn from(err: crate::operation::update_workflow_step::UpdateWorkflowStepError) -> Self {
878        match err {
879            crate::operation::update_workflow_step::UpdateWorkflowStepError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
880            crate::operation::update_workflow_step::UpdateWorkflowStepError::InternalServerException(inner) => Error::InternalServerException(inner),
881            crate::operation::update_workflow_step::UpdateWorkflowStepError::ThrottlingException(inner) => Error::ThrottlingException(inner),
882            crate::operation::update_workflow_step::UpdateWorkflowStepError::ValidationException(inner) => Error::ValidationException(inner),
883            crate::operation::update_workflow_step::UpdateWorkflowStepError::Unhandled(inner) => Error::Unhandled(inner),
884        }
885    }
886}
887impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workflow_step_group::UpdateWorkflowStepGroupError, R>>
888    for Error
889where
890    R: Send + Sync + std::fmt::Debug + 'static,
891{
892    fn from(
893        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workflow_step_group::UpdateWorkflowStepGroupError, R>,
894    ) -> Self {
895        match err {
896            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
897            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
898                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
899                source: err.into(),
900            }),
901        }
902    }
903}
904impl From<crate::operation::update_workflow_step_group::UpdateWorkflowStepGroupError> for Error {
905    fn from(err: crate::operation::update_workflow_step_group::UpdateWorkflowStepGroupError) -> Self {
906        match err {
907            crate::operation::update_workflow_step_group::UpdateWorkflowStepGroupError::AccessDeniedException(inner) => {
908                Error::AccessDeniedException(inner)
909            }
910            crate::operation::update_workflow_step_group::UpdateWorkflowStepGroupError::InternalServerException(inner) => {
911                Error::InternalServerException(inner)
912            }
913            crate::operation::update_workflow_step_group::UpdateWorkflowStepGroupError::ResourceNotFoundException(inner) => {
914                Error::ResourceNotFoundException(inner)
915            }
916            crate::operation::update_workflow_step_group::UpdateWorkflowStepGroupError::ThrottlingException(inner) => {
917                Error::ThrottlingException(inner)
918            }
919            crate::operation::update_workflow_step_group::UpdateWorkflowStepGroupError::ValidationException(inner) => {
920                Error::ValidationException(inner)
921            }
922            crate::operation::update_workflow_step_group::UpdateWorkflowStepGroupError::Unhandled(inner) => Error::Unhandled(inner),
923        }
924    }
925}
926impl ::std::error::Error for Error {
927    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
928        match self {
929            Error::AccessDeniedException(inner) => inner.source(),
930            Error::ConflictException(inner) => inner.source(),
931            Error::InternalServerException(inner) => inner.source(),
932            Error::ResourceNotFoundException(inner) => inner.source(),
933            Error::ThrottlingException(inner) => inner.source(),
934            Error::ValidationException(inner) => inner.source(),
935            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
936        }
937    }
938}
939impl ::aws_types::request_id::RequestId for Error {
940    fn request_id(&self) -> Option<&str> {
941        match self {
942            Self::AccessDeniedException(e) => e.request_id(),
943            Self::ConflictException(e) => e.request_id(),
944            Self::InternalServerException(e) => e.request_id(),
945            Self::ResourceNotFoundException(e) => e.request_id(),
946            Self::ThrottlingException(e) => e.request_id(),
947            Self::ValidationException(e) => e.request_id(),
948            Self::Unhandled(e) => e.meta.request_id(),
949        }
950    }
951}