aws_sdk_datapipeline/
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>An internal service error occurred.</p>
7    InternalServiceError(crate::types::error::InternalServiceError),
8    /// <p>The request was not valid. Verify that your request was properly formatted, that the signature was generated with the correct credentials, and that you haven't exceeded any of the service limits for your account.</p>
9    InvalidRequestException(crate::types::error::InvalidRequestException),
10    /// <p>The specified pipeline has been deleted.</p>
11    PipelineDeletedException(crate::types::error::PipelineDeletedException),
12    /// <p>The specified pipeline was not found. Verify that you used the correct user and account identifiers.</p>
13    PipelineNotFoundException(crate::types::error::PipelineNotFoundException),
14    /// <p>The specified task was not found.</p>
15    TaskNotFoundException(crate::types::error::TaskNotFoundException),
16    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
17    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
18    variable wildcard pattern and check `.code()`:
19     \
20    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
21     \
22    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
23    Unhandled(crate::error::sealed_unhandled::Unhandled),
24}
25impl ::std::fmt::Display for Error {
26    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
27        match self {
28            Error::InternalServiceError(inner) => inner.fmt(f),
29            Error::InvalidRequestException(inner) => inner.fmt(f),
30            Error::PipelineDeletedException(inner) => inner.fmt(f),
31            Error::PipelineNotFoundException(inner) => inner.fmt(f),
32            Error::TaskNotFoundException(inner) => inner.fmt(f),
33            Error::Unhandled(_) => {
34                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
35                    write!(f, "unhandled error ({code})")
36                } else {
37                    f.write_str("unhandled error")
38                }
39            }
40        }
41    }
42}
43impl From<::aws_smithy_types::error::operation::BuildError> for Error {
44    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
45        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
46            source: value.into(),
47            meta: ::std::default::Default::default(),
48        })
49    }
50}
51impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
52    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
53        match self {
54            Self::InternalServiceError(inner) => inner.meta(),
55            Self::InvalidRequestException(inner) => inner.meta(),
56            Self::PipelineDeletedException(inner) => inner.meta(),
57            Self::PipelineNotFoundException(inner) => inner.meta(),
58            Self::TaskNotFoundException(inner) => inner.meta(),
59            Self::Unhandled(inner) => &inner.meta,
60        }
61    }
62}
63impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::activate_pipeline::ActivatePipelineError, R>> for Error
64where
65    R: Send + Sync + std::fmt::Debug + 'static,
66{
67    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::activate_pipeline::ActivatePipelineError, R>) -> Self {
68        match err {
69            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
70            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
71                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
72                source: err.into(),
73            }),
74        }
75    }
76}
77impl From<crate::operation::activate_pipeline::ActivatePipelineError> for Error {
78    fn from(err: crate::operation::activate_pipeline::ActivatePipelineError) -> Self {
79        match err {
80            crate::operation::activate_pipeline::ActivatePipelineError::InternalServiceError(inner) => Error::InternalServiceError(inner),
81            crate::operation::activate_pipeline::ActivatePipelineError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
82            crate::operation::activate_pipeline::ActivatePipelineError::PipelineDeletedException(inner) => Error::PipelineDeletedException(inner),
83            crate::operation::activate_pipeline::ActivatePipelineError::PipelineNotFoundException(inner) => Error::PipelineNotFoundException(inner),
84            crate::operation::activate_pipeline::ActivatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
85        }
86    }
87}
88impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_tags::AddTagsError, R>> for Error
89where
90    R: Send + Sync + std::fmt::Debug + 'static,
91{
92    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_tags::AddTagsError, R>) -> Self {
93        match err {
94            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
95            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
96                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
97                source: err.into(),
98            }),
99        }
100    }
101}
102impl From<crate::operation::add_tags::AddTagsError> for Error {
103    fn from(err: crate::operation::add_tags::AddTagsError) -> Self {
104        match err {
105            crate::operation::add_tags::AddTagsError::InternalServiceError(inner) => Error::InternalServiceError(inner),
106            crate::operation::add_tags::AddTagsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
107            crate::operation::add_tags::AddTagsError::PipelineDeletedException(inner) => Error::PipelineDeletedException(inner),
108            crate::operation::add_tags::AddTagsError::PipelineNotFoundException(inner) => Error::PipelineNotFoundException(inner),
109            crate::operation::add_tags::AddTagsError::Unhandled(inner) => Error::Unhandled(inner),
110        }
111    }
112}
113impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pipeline::CreatePipelineError, R>> for Error
114where
115    R: Send + Sync + std::fmt::Debug + 'static,
116{
117    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pipeline::CreatePipelineError, R>) -> Self {
118        match err {
119            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
120            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
121                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
122                source: err.into(),
123            }),
124        }
125    }
126}
127impl From<crate::operation::create_pipeline::CreatePipelineError> for Error {
128    fn from(err: crate::operation::create_pipeline::CreatePipelineError) -> Self {
129        match err {
130            crate::operation::create_pipeline::CreatePipelineError::InternalServiceError(inner) => Error::InternalServiceError(inner),
131            crate::operation::create_pipeline::CreatePipelineError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
132            crate::operation::create_pipeline::CreatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
133        }
134    }
135}
136impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deactivate_pipeline::DeactivatePipelineError, R>> for Error
137where
138    R: Send + Sync + std::fmt::Debug + 'static,
139{
140    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deactivate_pipeline::DeactivatePipelineError, R>) -> Self {
141        match err {
142            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
143            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
144                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
145                source: err.into(),
146            }),
147        }
148    }
149}
150impl From<crate::operation::deactivate_pipeline::DeactivatePipelineError> for Error {
151    fn from(err: crate::operation::deactivate_pipeline::DeactivatePipelineError) -> Self {
152        match err {
153            crate::operation::deactivate_pipeline::DeactivatePipelineError::InternalServiceError(inner) => Error::InternalServiceError(inner),
154            crate::operation::deactivate_pipeline::DeactivatePipelineError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
155            crate::operation::deactivate_pipeline::DeactivatePipelineError::PipelineDeletedException(inner) => Error::PipelineDeletedException(inner),
156            crate::operation::deactivate_pipeline::DeactivatePipelineError::PipelineNotFoundException(inner) => {
157                Error::PipelineNotFoundException(inner)
158            }
159            crate::operation::deactivate_pipeline::DeactivatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
160        }
161    }
162}
163impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pipeline::DeletePipelineError, R>> for Error
164where
165    R: Send + Sync + std::fmt::Debug + 'static,
166{
167    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pipeline::DeletePipelineError, R>) -> Self {
168        match err {
169            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
170            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
171                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
172                source: err.into(),
173            }),
174        }
175    }
176}
177impl From<crate::operation::delete_pipeline::DeletePipelineError> for Error {
178    fn from(err: crate::operation::delete_pipeline::DeletePipelineError) -> Self {
179        match err {
180            crate::operation::delete_pipeline::DeletePipelineError::InternalServiceError(inner) => Error::InternalServiceError(inner),
181            crate::operation::delete_pipeline::DeletePipelineError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
182            crate::operation::delete_pipeline::DeletePipelineError::PipelineNotFoundException(inner) => Error::PipelineNotFoundException(inner),
183            crate::operation::delete_pipeline::DeletePipelineError::Unhandled(inner) => Error::Unhandled(inner),
184        }
185    }
186}
187impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_objects::DescribeObjectsError, R>> for Error
188where
189    R: Send + Sync + std::fmt::Debug + 'static,
190{
191    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_objects::DescribeObjectsError, R>) -> Self {
192        match err {
193            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
194            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
195                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
196                source: err.into(),
197            }),
198        }
199    }
200}
201impl From<crate::operation::describe_objects::DescribeObjectsError> for Error {
202    fn from(err: crate::operation::describe_objects::DescribeObjectsError) -> Self {
203        match err {
204            crate::operation::describe_objects::DescribeObjectsError::InternalServiceError(inner) => Error::InternalServiceError(inner),
205            crate::operation::describe_objects::DescribeObjectsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
206            crate::operation::describe_objects::DescribeObjectsError::PipelineDeletedException(inner) => Error::PipelineDeletedException(inner),
207            crate::operation::describe_objects::DescribeObjectsError::PipelineNotFoundException(inner) => Error::PipelineNotFoundException(inner),
208            crate::operation::describe_objects::DescribeObjectsError::Unhandled(inner) => Error::Unhandled(inner),
209        }
210    }
211}
212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipelines::DescribePipelinesError, R>> for Error
213where
214    R: Send + Sync + std::fmt::Debug + 'static,
215{
216    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipelines::DescribePipelinesError, R>) -> Self {
217        match err {
218            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
219            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
220                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
221                source: err.into(),
222            }),
223        }
224    }
225}
226impl From<crate::operation::describe_pipelines::DescribePipelinesError> for Error {
227    fn from(err: crate::operation::describe_pipelines::DescribePipelinesError) -> Self {
228        match err {
229            crate::operation::describe_pipelines::DescribePipelinesError::InternalServiceError(inner) => Error::InternalServiceError(inner),
230            crate::operation::describe_pipelines::DescribePipelinesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
231            crate::operation::describe_pipelines::DescribePipelinesError::PipelineDeletedException(inner) => Error::PipelineDeletedException(inner),
232            crate::operation::describe_pipelines::DescribePipelinesError::PipelineNotFoundException(inner) => Error::PipelineNotFoundException(inner),
233            crate::operation::describe_pipelines::DescribePipelinesError::Unhandled(inner) => Error::Unhandled(inner),
234        }
235    }
236}
237impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::evaluate_expression::EvaluateExpressionError, R>> for Error
238where
239    R: Send + Sync + std::fmt::Debug + 'static,
240{
241    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::evaluate_expression::EvaluateExpressionError, R>) -> Self {
242        match err {
243            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
244            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
245                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
246                source: err.into(),
247            }),
248        }
249    }
250}
251impl From<crate::operation::evaluate_expression::EvaluateExpressionError> for Error {
252    fn from(err: crate::operation::evaluate_expression::EvaluateExpressionError) -> Self {
253        match err {
254            crate::operation::evaluate_expression::EvaluateExpressionError::InternalServiceError(inner) => Error::InternalServiceError(inner),
255            crate::operation::evaluate_expression::EvaluateExpressionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
256            crate::operation::evaluate_expression::EvaluateExpressionError::PipelineDeletedException(inner) => Error::PipelineDeletedException(inner),
257            crate::operation::evaluate_expression::EvaluateExpressionError::PipelineNotFoundException(inner) => {
258                Error::PipelineNotFoundException(inner)
259            }
260            crate::operation::evaluate_expression::EvaluateExpressionError::TaskNotFoundException(inner) => Error::TaskNotFoundException(inner),
261            crate::operation::evaluate_expression::EvaluateExpressionError::Unhandled(inner) => Error::Unhandled(inner),
262        }
263    }
264}
265impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_pipeline_definition::GetPipelineDefinitionError, R>> for Error
266where
267    R: Send + Sync + std::fmt::Debug + 'static,
268{
269    fn from(
270        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_pipeline_definition::GetPipelineDefinitionError, R>,
271    ) -> Self {
272        match err {
273            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
274            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
275                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
276                source: err.into(),
277            }),
278        }
279    }
280}
281impl From<crate::operation::get_pipeline_definition::GetPipelineDefinitionError> for Error {
282    fn from(err: crate::operation::get_pipeline_definition::GetPipelineDefinitionError) -> Self {
283        match err {
284            crate::operation::get_pipeline_definition::GetPipelineDefinitionError::InternalServiceError(inner) => Error::InternalServiceError(inner),
285            crate::operation::get_pipeline_definition::GetPipelineDefinitionError::InvalidRequestException(inner) => {
286                Error::InvalidRequestException(inner)
287            }
288            crate::operation::get_pipeline_definition::GetPipelineDefinitionError::PipelineDeletedException(inner) => {
289                Error::PipelineDeletedException(inner)
290            }
291            crate::operation::get_pipeline_definition::GetPipelineDefinitionError::PipelineNotFoundException(inner) => {
292                Error::PipelineNotFoundException(inner)
293            }
294            crate::operation::get_pipeline_definition::GetPipelineDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
295        }
296    }
297}
298impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipelines::ListPipelinesError, 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::list_pipelines::ListPipelinesError, 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::list_pipelines::ListPipelinesError> for Error {
313    fn from(err: crate::operation::list_pipelines::ListPipelinesError) -> Self {
314        match err {
315            crate::operation::list_pipelines::ListPipelinesError::InternalServiceError(inner) => Error::InternalServiceError(inner),
316            crate::operation::list_pipelines::ListPipelinesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
317            crate::operation::list_pipelines::ListPipelinesError::Unhandled(inner) => Error::Unhandled(inner),
318        }
319    }
320}
321impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::poll_for_task::PollForTaskError, R>> for Error
322where
323    R: Send + Sync + std::fmt::Debug + 'static,
324{
325    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::poll_for_task::PollForTaskError, R>) -> Self {
326        match err {
327            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
328            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
329                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
330                source: err.into(),
331            }),
332        }
333    }
334}
335impl From<crate::operation::poll_for_task::PollForTaskError> for Error {
336    fn from(err: crate::operation::poll_for_task::PollForTaskError) -> Self {
337        match err {
338            crate::operation::poll_for_task::PollForTaskError::InternalServiceError(inner) => Error::InternalServiceError(inner),
339            crate::operation::poll_for_task::PollForTaskError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
340            crate::operation::poll_for_task::PollForTaskError::TaskNotFoundException(inner) => Error::TaskNotFoundException(inner),
341            crate::operation::poll_for_task::PollForTaskError::Unhandled(inner) => Error::Unhandled(inner),
342        }
343    }
344}
345impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_pipeline_definition::PutPipelineDefinitionError, R>> for Error
346where
347    R: Send + Sync + std::fmt::Debug + 'static,
348{
349    fn from(
350        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_pipeline_definition::PutPipelineDefinitionError, R>,
351    ) -> Self {
352        match err {
353            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
354            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
355                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
356                source: err.into(),
357            }),
358        }
359    }
360}
361impl From<crate::operation::put_pipeline_definition::PutPipelineDefinitionError> for Error {
362    fn from(err: crate::operation::put_pipeline_definition::PutPipelineDefinitionError) -> Self {
363        match err {
364            crate::operation::put_pipeline_definition::PutPipelineDefinitionError::InternalServiceError(inner) => Error::InternalServiceError(inner),
365            crate::operation::put_pipeline_definition::PutPipelineDefinitionError::InvalidRequestException(inner) => {
366                Error::InvalidRequestException(inner)
367            }
368            crate::operation::put_pipeline_definition::PutPipelineDefinitionError::PipelineDeletedException(inner) => {
369                Error::PipelineDeletedException(inner)
370            }
371            crate::operation::put_pipeline_definition::PutPipelineDefinitionError::PipelineNotFoundException(inner) => {
372                Error::PipelineNotFoundException(inner)
373            }
374            crate::operation::put_pipeline_definition::PutPipelineDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
375        }
376    }
377}
378impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_objects::QueryObjectsError, R>> for Error
379where
380    R: Send + Sync + std::fmt::Debug + 'static,
381{
382    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_objects::QueryObjectsError, R>) -> Self {
383        match err {
384            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
385            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
386                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
387                source: err.into(),
388            }),
389        }
390    }
391}
392impl From<crate::operation::query_objects::QueryObjectsError> for Error {
393    fn from(err: crate::operation::query_objects::QueryObjectsError) -> Self {
394        match err {
395            crate::operation::query_objects::QueryObjectsError::InternalServiceError(inner) => Error::InternalServiceError(inner),
396            crate::operation::query_objects::QueryObjectsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
397            crate::operation::query_objects::QueryObjectsError::PipelineDeletedException(inner) => Error::PipelineDeletedException(inner),
398            crate::operation::query_objects::QueryObjectsError::PipelineNotFoundException(inner) => Error::PipelineNotFoundException(inner),
399            crate::operation::query_objects::QueryObjectsError::Unhandled(inner) => Error::Unhandled(inner),
400        }
401    }
402}
403impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_tags::RemoveTagsError, R>> for Error
404where
405    R: Send + Sync + std::fmt::Debug + 'static,
406{
407    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_tags::RemoveTagsError, R>) -> Self {
408        match err {
409            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
410            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
411                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
412                source: err.into(),
413            }),
414        }
415    }
416}
417impl From<crate::operation::remove_tags::RemoveTagsError> for Error {
418    fn from(err: crate::operation::remove_tags::RemoveTagsError) -> Self {
419        match err {
420            crate::operation::remove_tags::RemoveTagsError::InternalServiceError(inner) => Error::InternalServiceError(inner),
421            crate::operation::remove_tags::RemoveTagsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
422            crate::operation::remove_tags::RemoveTagsError::PipelineDeletedException(inner) => Error::PipelineDeletedException(inner),
423            crate::operation::remove_tags::RemoveTagsError::PipelineNotFoundException(inner) => Error::PipelineNotFoundException(inner),
424            crate::operation::remove_tags::RemoveTagsError::Unhandled(inner) => Error::Unhandled(inner),
425        }
426    }
427}
428impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_task_progress::ReportTaskProgressError, R>> for Error
429where
430    R: Send + Sync + std::fmt::Debug + 'static,
431{
432    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_task_progress::ReportTaskProgressError, R>) -> Self {
433        match err {
434            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
435            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
436                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
437                source: err.into(),
438            }),
439        }
440    }
441}
442impl From<crate::operation::report_task_progress::ReportTaskProgressError> for Error {
443    fn from(err: crate::operation::report_task_progress::ReportTaskProgressError) -> Self {
444        match err {
445            crate::operation::report_task_progress::ReportTaskProgressError::InternalServiceError(inner) => Error::InternalServiceError(inner),
446            crate::operation::report_task_progress::ReportTaskProgressError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
447            crate::operation::report_task_progress::ReportTaskProgressError::PipelineDeletedException(inner) => {
448                Error::PipelineDeletedException(inner)
449            }
450            crate::operation::report_task_progress::ReportTaskProgressError::PipelineNotFoundException(inner) => {
451                Error::PipelineNotFoundException(inner)
452            }
453            crate::operation::report_task_progress::ReportTaskProgressError::TaskNotFoundException(inner) => Error::TaskNotFoundException(inner),
454            crate::operation::report_task_progress::ReportTaskProgressError::Unhandled(inner) => Error::Unhandled(inner),
455        }
456    }
457}
458impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_task_runner_heartbeat::ReportTaskRunnerHeartbeatError, R>>
459    for Error
460where
461    R: Send + Sync + std::fmt::Debug + 'static,
462{
463    fn from(
464        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::report_task_runner_heartbeat::ReportTaskRunnerHeartbeatError, R>,
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::report_task_runner_heartbeat::ReportTaskRunnerHeartbeatError> for Error {
476    fn from(err: crate::operation::report_task_runner_heartbeat::ReportTaskRunnerHeartbeatError) -> Self {
477        match err {
478            crate::operation::report_task_runner_heartbeat::ReportTaskRunnerHeartbeatError::InternalServiceError(inner) => {
479                Error::InternalServiceError(inner)
480            }
481            crate::operation::report_task_runner_heartbeat::ReportTaskRunnerHeartbeatError::InvalidRequestException(inner) => {
482                Error::InvalidRequestException(inner)
483            }
484            crate::operation::report_task_runner_heartbeat::ReportTaskRunnerHeartbeatError::Unhandled(inner) => Error::Unhandled(inner),
485        }
486    }
487}
488impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_status::SetStatusError, 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::set_status::SetStatusError, 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::set_status::SetStatusError> for Error {
503    fn from(err: crate::operation::set_status::SetStatusError) -> Self {
504        match err {
505            crate::operation::set_status::SetStatusError::InternalServiceError(inner) => Error::InternalServiceError(inner),
506            crate::operation::set_status::SetStatusError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
507            crate::operation::set_status::SetStatusError::PipelineDeletedException(inner) => Error::PipelineDeletedException(inner),
508            crate::operation::set_status::SetStatusError::PipelineNotFoundException(inner) => Error::PipelineNotFoundException(inner),
509            crate::operation::set_status::SetStatusError::Unhandled(inner) => Error::Unhandled(inner),
510        }
511    }
512}
513impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_task_status::SetTaskStatusError, 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::set_task_status::SetTaskStatusError, 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::set_task_status::SetTaskStatusError> for Error {
528    fn from(err: crate::operation::set_task_status::SetTaskStatusError) -> Self {
529        match err {
530            crate::operation::set_task_status::SetTaskStatusError::InternalServiceError(inner) => Error::InternalServiceError(inner),
531            crate::operation::set_task_status::SetTaskStatusError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
532            crate::operation::set_task_status::SetTaskStatusError::PipelineDeletedException(inner) => Error::PipelineDeletedException(inner),
533            crate::operation::set_task_status::SetTaskStatusError::PipelineNotFoundException(inner) => Error::PipelineNotFoundException(inner),
534            crate::operation::set_task_status::SetTaskStatusError::TaskNotFoundException(inner) => Error::TaskNotFoundException(inner),
535            crate::operation::set_task_status::SetTaskStatusError::Unhandled(inner) => Error::Unhandled(inner),
536        }
537    }
538}
539impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::validate_pipeline_definition::ValidatePipelineDefinitionError, R>>
540    for Error
541where
542    R: Send + Sync + std::fmt::Debug + 'static,
543{
544    fn from(
545        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::validate_pipeline_definition::ValidatePipelineDefinitionError, R>,
546    ) -> Self {
547        match err {
548            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
549            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
550                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
551                source: err.into(),
552            }),
553        }
554    }
555}
556impl From<crate::operation::validate_pipeline_definition::ValidatePipelineDefinitionError> for Error {
557    fn from(err: crate::operation::validate_pipeline_definition::ValidatePipelineDefinitionError) -> Self {
558        match err {
559            crate::operation::validate_pipeline_definition::ValidatePipelineDefinitionError::InternalServiceError(inner) => {
560                Error::InternalServiceError(inner)
561            }
562            crate::operation::validate_pipeline_definition::ValidatePipelineDefinitionError::InvalidRequestException(inner) => {
563                Error::InvalidRequestException(inner)
564            }
565            crate::operation::validate_pipeline_definition::ValidatePipelineDefinitionError::PipelineDeletedException(inner) => {
566                Error::PipelineDeletedException(inner)
567            }
568            crate::operation::validate_pipeline_definition::ValidatePipelineDefinitionError::PipelineNotFoundException(inner) => {
569                Error::PipelineNotFoundException(inner)
570            }
571            crate::operation::validate_pipeline_definition::ValidatePipelineDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
572        }
573    }
574}
575impl ::std::error::Error for Error {
576    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
577        match self {
578            Error::InternalServiceError(inner) => inner.source(),
579            Error::InvalidRequestException(inner) => inner.source(),
580            Error::PipelineDeletedException(inner) => inner.source(),
581            Error::PipelineNotFoundException(inner) => inner.source(),
582            Error::TaskNotFoundException(inner) => inner.source(),
583            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
584        }
585    }
586}
587impl ::aws_types::request_id::RequestId for Error {
588    fn request_id(&self) -> Option<&str> {
589        match self {
590            Self::InternalServiceError(e) => e.request_id(),
591            Self::InvalidRequestException(e) => e.request_id(),
592            Self::PipelineDeletedException(e) => e.request_id(),
593            Self::PipelineNotFoundException(e) => e.request_id(),
594            Self::TaskNotFoundException(e) => e.request_id(),
595            Self::Unhandled(e) => e.meta.request_id(),
596        }
597    }
598}