aws_sdk_databrew/
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>Access to the specified resource was denied.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>Updating or deleting a resource can cause an inconsistent state.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>An internal service failure occurred.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>One or more resources can't be found.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>A service quota is exceeded.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The input parameters for this request failed validation.</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::ServiceQuotaExceededException(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::ServiceQuotaExceededException(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::batch_delete_recipe_version::BatchDeleteRecipeVersionError, R>>
68    for Error
69where
70    R: Send + Sync + std::fmt::Debug + 'static,
71{
72    fn from(
73        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_recipe_version::BatchDeleteRecipeVersionError, R>,
74    ) -> Self {
75        match err {
76            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
77            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
78                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
79                source: err.into(),
80            }),
81        }
82    }
83}
84impl From<crate::operation::batch_delete_recipe_version::BatchDeleteRecipeVersionError> for Error {
85    fn from(err: crate::operation::batch_delete_recipe_version::BatchDeleteRecipeVersionError) -> Self {
86        match err {
87            crate::operation::batch_delete_recipe_version::BatchDeleteRecipeVersionError::ConflictException(inner) => Error::ConflictException(inner),
88            crate::operation::batch_delete_recipe_version::BatchDeleteRecipeVersionError::ResourceNotFoundException(inner) => {
89                Error::ResourceNotFoundException(inner)
90            }
91            crate::operation::batch_delete_recipe_version::BatchDeleteRecipeVersionError::ValidationException(inner) => {
92                Error::ValidationException(inner)
93            }
94            crate::operation::batch_delete_recipe_version::BatchDeleteRecipeVersionError::Unhandled(inner) => Error::Unhandled(inner),
95        }
96    }
97}
98impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset::CreateDatasetError, R>> for Error
99where
100    R: Send + Sync + std::fmt::Debug + 'static,
101{
102    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset::CreateDatasetError, R>) -> Self {
103        match err {
104            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
105            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
106                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
107                source: err.into(),
108            }),
109        }
110    }
111}
112impl From<crate::operation::create_dataset::CreateDatasetError> for Error {
113    fn from(err: crate::operation::create_dataset::CreateDatasetError) -> Self {
114        match err {
115            crate::operation::create_dataset::CreateDatasetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
116            crate::operation::create_dataset::CreateDatasetError::ConflictException(inner) => Error::ConflictException(inner),
117            crate::operation::create_dataset::CreateDatasetError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
118            crate::operation::create_dataset::CreateDatasetError::ValidationException(inner) => Error::ValidationException(inner),
119            crate::operation::create_dataset::CreateDatasetError::Unhandled(inner) => Error::Unhandled(inner),
120        }
121    }
122}
123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_profile_job::CreateProfileJobError, R>> for Error
124where
125    R: Send + Sync + std::fmt::Debug + 'static,
126{
127    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_profile_job::CreateProfileJobError, R>) -> Self {
128        match err {
129            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
130            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
131                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
132                source: err.into(),
133            }),
134        }
135    }
136}
137impl From<crate::operation::create_profile_job::CreateProfileJobError> for Error {
138    fn from(err: crate::operation::create_profile_job::CreateProfileJobError) -> Self {
139        match err {
140            crate::operation::create_profile_job::CreateProfileJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
141            crate::operation::create_profile_job::CreateProfileJobError::ConflictException(inner) => Error::ConflictException(inner),
142            crate::operation::create_profile_job::CreateProfileJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
143            crate::operation::create_profile_job::CreateProfileJobError::ServiceQuotaExceededException(inner) => {
144                Error::ServiceQuotaExceededException(inner)
145            }
146            crate::operation::create_profile_job::CreateProfileJobError::ValidationException(inner) => Error::ValidationException(inner),
147            crate::operation::create_profile_job::CreateProfileJobError::Unhandled(inner) => Error::Unhandled(inner),
148        }
149    }
150}
151impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>> for Error
152where
153    R: Send + Sync + std::fmt::Debug + 'static,
154{
155    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>) -> Self {
156        match err {
157            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
158            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
159                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
160                source: err.into(),
161            }),
162        }
163    }
164}
165impl From<crate::operation::create_project::CreateProjectError> for Error {
166    fn from(err: crate::operation::create_project::CreateProjectError) -> Self {
167        match err {
168            crate::operation::create_project::CreateProjectError::ConflictException(inner) => Error::ConflictException(inner),
169            crate::operation::create_project::CreateProjectError::InternalServerException(inner) => Error::InternalServerException(inner),
170            crate::operation::create_project::CreateProjectError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
171            crate::operation::create_project::CreateProjectError::ValidationException(inner) => Error::ValidationException(inner),
172            crate::operation::create_project::CreateProjectError::Unhandled(inner) => Error::Unhandled(inner),
173        }
174    }
175}
176impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_recipe::CreateRecipeError, R>> for Error
177where
178    R: Send + Sync + std::fmt::Debug + 'static,
179{
180    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_recipe::CreateRecipeError, R>) -> Self {
181        match err {
182            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
183            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
184                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
185                source: err.into(),
186            }),
187        }
188    }
189}
190impl From<crate::operation::create_recipe::CreateRecipeError> for Error {
191    fn from(err: crate::operation::create_recipe::CreateRecipeError) -> Self {
192        match err {
193            crate::operation::create_recipe::CreateRecipeError::ConflictException(inner) => Error::ConflictException(inner),
194            crate::operation::create_recipe::CreateRecipeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
195            crate::operation::create_recipe::CreateRecipeError::ValidationException(inner) => Error::ValidationException(inner),
196            crate::operation::create_recipe::CreateRecipeError::Unhandled(inner) => Error::Unhandled(inner),
197        }
198    }
199}
200impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_recipe_job::CreateRecipeJobError, R>> for Error
201where
202    R: Send + Sync + std::fmt::Debug + 'static,
203{
204    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_recipe_job::CreateRecipeJobError, R>) -> Self {
205        match err {
206            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
207            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
208                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
209                source: err.into(),
210            }),
211        }
212    }
213}
214impl From<crate::operation::create_recipe_job::CreateRecipeJobError> for Error {
215    fn from(err: crate::operation::create_recipe_job::CreateRecipeJobError) -> Self {
216        match err {
217            crate::operation::create_recipe_job::CreateRecipeJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
218            crate::operation::create_recipe_job::CreateRecipeJobError::ConflictException(inner) => Error::ConflictException(inner),
219            crate::operation::create_recipe_job::CreateRecipeJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
220            crate::operation::create_recipe_job::CreateRecipeJobError::ServiceQuotaExceededException(inner) => {
221                Error::ServiceQuotaExceededException(inner)
222            }
223            crate::operation::create_recipe_job::CreateRecipeJobError::ValidationException(inner) => Error::ValidationException(inner),
224            crate::operation::create_recipe_job::CreateRecipeJobError::Unhandled(inner) => Error::Unhandled(inner),
225        }
226    }
227}
228impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ruleset::CreateRulesetError, R>> for Error
229where
230    R: Send + Sync + std::fmt::Debug + 'static,
231{
232    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ruleset::CreateRulesetError, R>) -> Self {
233        match err {
234            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
235            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
236                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
237                source: err.into(),
238            }),
239        }
240    }
241}
242impl From<crate::operation::create_ruleset::CreateRulesetError> for Error {
243    fn from(err: crate::operation::create_ruleset::CreateRulesetError) -> Self {
244        match err {
245            crate::operation::create_ruleset::CreateRulesetError::ConflictException(inner) => Error::ConflictException(inner),
246            crate::operation::create_ruleset::CreateRulesetError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
247            crate::operation::create_ruleset::CreateRulesetError::ValidationException(inner) => Error::ValidationException(inner),
248            crate::operation::create_ruleset::CreateRulesetError::Unhandled(inner) => Error::Unhandled(inner),
249        }
250    }
251}
252impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_schedule::CreateScheduleError, R>> for Error
253where
254    R: Send + Sync + std::fmt::Debug + 'static,
255{
256    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_schedule::CreateScheduleError, R>) -> Self {
257        match err {
258            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
259            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
260                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
261                source: err.into(),
262            }),
263        }
264    }
265}
266impl From<crate::operation::create_schedule::CreateScheduleError> for Error {
267    fn from(err: crate::operation::create_schedule::CreateScheduleError) -> Self {
268        match err {
269            crate::operation::create_schedule::CreateScheduleError::ConflictException(inner) => Error::ConflictException(inner),
270            crate::operation::create_schedule::CreateScheduleError::ServiceQuotaExceededException(inner) => {
271                Error::ServiceQuotaExceededException(inner)
272            }
273            crate::operation::create_schedule::CreateScheduleError::ValidationException(inner) => Error::ValidationException(inner),
274            crate::operation::create_schedule::CreateScheduleError::Unhandled(inner) => Error::Unhandled(inner),
275        }
276    }
277}
278impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset::DeleteDatasetError, R>> for Error
279where
280    R: Send + Sync + std::fmt::Debug + 'static,
281{
282    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset::DeleteDatasetError, R>) -> Self {
283        match err {
284            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
285            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
286                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
287                source: err.into(),
288            }),
289        }
290    }
291}
292impl From<crate::operation::delete_dataset::DeleteDatasetError> for Error {
293    fn from(err: crate::operation::delete_dataset::DeleteDatasetError) -> Self {
294        match err {
295            crate::operation::delete_dataset::DeleteDatasetError::ConflictException(inner) => Error::ConflictException(inner),
296            crate::operation::delete_dataset::DeleteDatasetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
297            crate::operation::delete_dataset::DeleteDatasetError::ValidationException(inner) => Error::ValidationException(inner),
298            crate::operation::delete_dataset::DeleteDatasetError::Unhandled(inner) => Error::Unhandled(inner),
299        }
300    }
301}
302impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_job::DeleteJobError, R>> for Error
303where
304    R: Send + Sync + std::fmt::Debug + 'static,
305{
306    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_job::DeleteJobError, R>) -> Self {
307        match err {
308            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
309            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
310                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
311                source: err.into(),
312            }),
313        }
314    }
315}
316impl From<crate::operation::delete_job::DeleteJobError> for Error {
317    fn from(err: crate::operation::delete_job::DeleteJobError) -> Self {
318        match err {
319            crate::operation::delete_job::DeleteJobError::ConflictException(inner) => Error::ConflictException(inner),
320            crate::operation::delete_job::DeleteJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
321            crate::operation::delete_job::DeleteJobError::ValidationException(inner) => Error::ValidationException(inner),
322            crate::operation::delete_job::DeleteJobError::Unhandled(inner) => Error::Unhandled(inner),
323        }
324    }
325}
326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>> for Error
327where
328    R: Send + Sync + std::fmt::Debug + 'static,
329{
330    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>) -> Self {
331        match err {
332            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
333            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
334                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
335                source: err.into(),
336            }),
337        }
338    }
339}
340impl From<crate::operation::delete_project::DeleteProjectError> for Error {
341    fn from(err: crate::operation::delete_project::DeleteProjectError) -> Self {
342        match err {
343            crate::operation::delete_project::DeleteProjectError::ConflictException(inner) => Error::ConflictException(inner),
344            crate::operation::delete_project::DeleteProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
345            crate::operation::delete_project::DeleteProjectError::ValidationException(inner) => Error::ValidationException(inner),
346            crate::operation::delete_project::DeleteProjectError::Unhandled(inner) => Error::Unhandled(inner),
347        }
348    }
349}
350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_recipe_version::DeleteRecipeVersionError, R>> for Error
351where
352    R: Send + Sync + std::fmt::Debug + 'static,
353{
354    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_recipe_version::DeleteRecipeVersionError, R>) -> Self {
355        match err {
356            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
357            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
358                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
359                source: err.into(),
360            }),
361        }
362    }
363}
364impl From<crate::operation::delete_recipe_version::DeleteRecipeVersionError> for Error {
365    fn from(err: crate::operation::delete_recipe_version::DeleteRecipeVersionError) -> Self {
366        match err {
367            crate::operation::delete_recipe_version::DeleteRecipeVersionError::ConflictException(inner) => Error::ConflictException(inner),
368            crate::operation::delete_recipe_version::DeleteRecipeVersionError::ResourceNotFoundException(inner) => {
369                Error::ResourceNotFoundException(inner)
370            }
371            crate::operation::delete_recipe_version::DeleteRecipeVersionError::ValidationException(inner) => Error::ValidationException(inner),
372            crate::operation::delete_recipe_version::DeleteRecipeVersionError::Unhandled(inner) => Error::Unhandled(inner),
373        }
374    }
375}
376impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ruleset::DeleteRulesetError, R>> for Error
377where
378    R: Send + Sync + std::fmt::Debug + 'static,
379{
380    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ruleset::DeleteRulesetError, R>) -> Self {
381        match err {
382            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
383            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
384                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
385                source: err.into(),
386            }),
387        }
388    }
389}
390impl From<crate::operation::delete_ruleset::DeleteRulesetError> for Error {
391    fn from(err: crate::operation::delete_ruleset::DeleteRulesetError) -> Self {
392        match err {
393            crate::operation::delete_ruleset::DeleteRulesetError::ConflictException(inner) => Error::ConflictException(inner),
394            crate::operation::delete_ruleset::DeleteRulesetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
395            crate::operation::delete_ruleset::DeleteRulesetError::ValidationException(inner) => Error::ValidationException(inner),
396            crate::operation::delete_ruleset::DeleteRulesetError::Unhandled(inner) => Error::Unhandled(inner),
397        }
398    }
399}
400impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_schedule::DeleteScheduleError, R>> for Error
401where
402    R: Send + Sync + std::fmt::Debug + 'static,
403{
404    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_schedule::DeleteScheduleError, R>) -> Self {
405        match err {
406            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
407            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
408                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
409                source: err.into(),
410            }),
411        }
412    }
413}
414impl From<crate::operation::delete_schedule::DeleteScheduleError> for Error {
415    fn from(err: crate::operation::delete_schedule::DeleteScheduleError) -> Self {
416        match err {
417            crate::operation::delete_schedule::DeleteScheduleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
418            crate::operation::delete_schedule::DeleteScheduleError::ValidationException(inner) => Error::ValidationException(inner),
419            crate::operation::delete_schedule::DeleteScheduleError::Unhandled(inner) => Error::Unhandled(inner),
420        }
421    }
422}
423impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dataset::DescribeDatasetError, R>> for Error
424where
425    R: Send + Sync + std::fmt::Debug + 'static,
426{
427    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dataset::DescribeDatasetError, R>) -> Self {
428        match err {
429            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
430            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
431                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
432                source: err.into(),
433            }),
434        }
435    }
436}
437impl From<crate::operation::describe_dataset::DescribeDatasetError> for Error {
438    fn from(err: crate::operation::describe_dataset::DescribeDatasetError) -> Self {
439        match err {
440            crate::operation::describe_dataset::DescribeDatasetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
441            crate::operation::describe_dataset::DescribeDatasetError::ValidationException(inner) => Error::ValidationException(inner),
442            crate::operation::describe_dataset::DescribeDatasetError::Unhandled(inner) => Error::Unhandled(inner),
443        }
444    }
445}
446impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_job::DescribeJobError, R>> for Error
447where
448    R: Send + Sync + std::fmt::Debug + 'static,
449{
450    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_job::DescribeJobError, R>) -> Self {
451        match err {
452            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
453            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
454                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
455                source: err.into(),
456            }),
457        }
458    }
459}
460impl From<crate::operation::describe_job::DescribeJobError> for Error {
461    fn from(err: crate::operation::describe_job::DescribeJobError) -> Self {
462        match err {
463            crate::operation::describe_job::DescribeJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
464            crate::operation::describe_job::DescribeJobError::ValidationException(inner) => Error::ValidationException(inner),
465            crate::operation::describe_job::DescribeJobError::Unhandled(inner) => Error::Unhandled(inner),
466        }
467    }
468}
469impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_job_run::DescribeJobRunError, R>> for Error
470where
471    R: Send + Sync + std::fmt::Debug + 'static,
472{
473    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_job_run::DescribeJobRunError, R>) -> Self {
474        match err {
475            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
476            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
477                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
478                source: err.into(),
479            }),
480        }
481    }
482}
483impl From<crate::operation::describe_job_run::DescribeJobRunError> for Error {
484    fn from(err: crate::operation::describe_job_run::DescribeJobRunError) -> Self {
485        match err {
486            crate::operation::describe_job_run::DescribeJobRunError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
487            crate::operation::describe_job_run::DescribeJobRunError::ValidationException(inner) => Error::ValidationException(inner),
488            crate::operation::describe_job_run::DescribeJobRunError::Unhandled(inner) => Error::Unhandled(inner),
489        }
490    }
491}
492impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_project::DescribeProjectError, R>> for Error
493where
494    R: Send + Sync + std::fmt::Debug + 'static,
495{
496    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_project::DescribeProjectError, R>) -> Self {
497        match err {
498            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
499            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
500                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
501                source: err.into(),
502            }),
503        }
504    }
505}
506impl From<crate::operation::describe_project::DescribeProjectError> for Error {
507    fn from(err: crate::operation::describe_project::DescribeProjectError) -> Self {
508        match err {
509            crate::operation::describe_project::DescribeProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
510            crate::operation::describe_project::DescribeProjectError::ValidationException(inner) => Error::ValidationException(inner),
511            crate::operation::describe_project::DescribeProjectError::Unhandled(inner) => Error::Unhandled(inner),
512        }
513    }
514}
515impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_recipe::DescribeRecipeError, R>> for Error
516where
517    R: Send + Sync + std::fmt::Debug + 'static,
518{
519    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_recipe::DescribeRecipeError, R>) -> Self {
520        match err {
521            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
522            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
523                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
524                source: err.into(),
525            }),
526        }
527    }
528}
529impl From<crate::operation::describe_recipe::DescribeRecipeError> for Error {
530    fn from(err: crate::operation::describe_recipe::DescribeRecipeError) -> Self {
531        match err {
532            crate::operation::describe_recipe::DescribeRecipeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
533            crate::operation::describe_recipe::DescribeRecipeError::ValidationException(inner) => Error::ValidationException(inner),
534            crate::operation::describe_recipe::DescribeRecipeError::Unhandled(inner) => Error::Unhandled(inner),
535        }
536    }
537}
538impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ruleset::DescribeRulesetError, R>> for Error
539where
540    R: Send + Sync + std::fmt::Debug + 'static,
541{
542    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ruleset::DescribeRulesetError, R>) -> Self {
543        match err {
544            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
545            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
546                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
547                source: err.into(),
548            }),
549        }
550    }
551}
552impl From<crate::operation::describe_ruleset::DescribeRulesetError> for Error {
553    fn from(err: crate::operation::describe_ruleset::DescribeRulesetError) -> Self {
554        match err {
555            crate::operation::describe_ruleset::DescribeRulesetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
556            crate::operation::describe_ruleset::DescribeRulesetError::ValidationException(inner) => Error::ValidationException(inner),
557            crate::operation::describe_ruleset::DescribeRulesetError::Unhandled(inner) => Error::Unhandled(inner),
558        }
559    }
560}
561impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_schedule::DescribeScheduleError, R>> for Error
562where
563    R: Send + Sync + std::fmt::Debug + 'static,
564{
565    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_schedule::DescribeScheduleError, R>) -> Self {
566        match err {
567            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
568            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
569                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
570                source: err.into(),
571            }),
572        }
573    }
574}
575impl From<crate::operation::describe_schedule::DescribeScheduleError> for Error {
576    fn from(err: crate::operation::describe_schedule::DescribeScheduleError) -> Self {
577        match err {
578            crate::operation::describe_schedule::DescribeScheduleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
579            crate::operation::describe_schedule::DescribeScheduleError::ValidationException(inner) => Error::ValidationException(inner),
580            crate::operation::describe_schedule::DescribeScheduleError::Unhandled(inner) => Error::Unhandled(inner),
581        }
582    }
583}
584impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_datasets::ListDatasetsError, R>> for Error
585where
586    R: Send + Sync + std::fmt::Debug + 'static,
587{
588    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_datasets::ListDatasetsError, R>) -> Self {
589        match err {
590            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
591            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
592                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
593                source: err.into(),
594            }),
595        }
596    }
597}
598impl From<crate::operation::list_datasets::ListDatasetsError> for Error {
599    fn from(err: crate::operation::list_datasets::ListDatasetsError) -> Self {
600        match err {
601            crate::operation::list_datasets::ListDatasetsError::ValidationException(inner) => Error::ValidationException(inner),
602            crate::operation::list_datasets::ListDatasetsError::Unhandled(inner) => Error::Unhandled(inner),
603        }
604    }
605}
606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_runs::ListJobRunsError, R>> for Error
607where
608    R: Send + Sync + std::fmt::Debug + 'static,
609{
610    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_runs::ListJobRunsError, R>) -> Self {
611        match err {
612            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
613            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
614                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
615                source: err.into(),
616            }),
617        }
618    }
619}
620impl From<crate::operation::list_job_runs::ListJobRunsError> for Error {
621    fn from(err: crate::operation::list_job_runs::ListJobRunsError) -> Self {
622        match err {
623            crate::operation::list_job_runs::ListJobRunsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
624            crate::operation::list_job_runs::ListJobRunsError::ValidationException(inner) => Error::ValidationException(inner),
625            crate::operation::list_job_runs::ListJobRunsError::Unhandled(inner) => Error::Unhandled(inner),
626        }
627    }
628}
629impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>> for Error
630where
631    R: Send + Sync + std::fmt::Debug + 'static,
632{
633    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>) -> Self {
634        match err {
635            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
636            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
637                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
638                source: err.into(),
639            }),
640        }
641    }
642}
643impl From<crate::operation::list_jobs::ListJobsError> for Error {
644    fn from(err: crate::operation::list_jobs::ListJobsError) -> Self {
645        match err {
646            crate::operation::list_jobs::ListJobsError::ValidationException(inner) => Error::ValidationException(inner),
647            crate::operation::list_jobs::ListJobsError::Unhandled(inner) => Error::Unhandled(inner),
648        }
649    }
650}
651impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>> for Error
652where
653    R: Send + Sync + std::fmt::Debug + 'static,
654{
655    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>) -> Self {
656        match err {
657            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
658            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
659                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
660                source: err.into(),
661            }),
662        }
663    }
664}
665impl From<crate::operation::list_projects::ListProjectsError> for Error {
666    fn from(err: crate::operation::list_projects::ListProjectsError) -> Self {
667        match err {
668            crate::operation::list_projects::ListProjectsError::ValidationException(inner) => Error::ValidationException(inner),
669            crate::operation::list_projects::ListProjectsError::Unhandled(inner) => Error::Unhandled(inner),
670        }
671    }
672}
673impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recipes::ListRecipesError, R>> for Error
674where
675    R: Send + Sync + std::fmt::Debug + 'static,
676{
677    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recipes::ListRecipesError, R>) -> Self {
678        match err {
679            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
680            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
681                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
682                source: err.into(),
683            }),
684        }
685    }
686}
687impl From<crate::operation::list_recipes::ListRecipesError> for Error {
688    fn from(err: crate::operation::list_recipes::ListRecipesError) -> Self {
689        match err {
690            crate::operation::list_recipes::ListRecipesError::ValidationException(inner) => Error::ValidationException(inner),
691            crate::operation::list_recipes::ListRecipesError::Unhandled(inner) => Error::Unhandled(inner),
692        }
693    }
694}
695impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recipe_versions::ListRecipeVersionsError, R>> for Error
696where
697    R: Send + Sync + std::fmt::Debug + 'static,
698{
699    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recipe_versions::ListRecipeVersionsError, R>) -> Self {
700        match err {
701            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
702            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
703                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
704                source: err.into(),
705            }),
706        }
707    }
708}
709impl From<crate::operation::list_recipe_versions::ListRecipeVersionsError> for Error {
710    fn from(err: crate::operation::list_recipe_versions::ListRecipeVersionsError) -> Self {
711        match err {
712            crate::operation::list_recipe_versions::ListRecipeVersionsError::ValidationException(inner) => Error::ValidationException(inner),
713            crate::operation::list_recipe_versions::ListRecipeVersionsError::Unhandled(inner) => Error::Unhandled(inner),
714        }
715    }
716}
717impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rulesets::ListRulesetsError, R>> for Error
718where
719    R: Send + Sync + std::fmt::Debug + 'static,
720{
721    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rulesets::ListRulesetsError, R>) -> Self {
722        match err {
723            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
724            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
725                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
726                source: err.into(),
727            }),
728        }
729    }
730}
731impl From<crate::operation::list_rulesets::ListRulesetsError> for Error {
732    fn from(err: crate::operation::list_rulesets::ListRulesetsError) -> Self {
733        match err {
734            crate::operation::list_rulesets::ListRulesetsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
735            crate::operation::list_rulesets::ListRulesetsError::ValidationException(inner) => Error::ValidationException(inner),
736            crate::operation::list_rulesets::ListRulesetsError::Unhandled(inner) => Error::Unhandled(inner),
737        }
738    }
739}
740impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_schedules::ListSchedulesError, R>> for Error
741where
742    R: Send + Sync + std::fmt::Debug + 'static,
743{
744    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_schedules::ListSchedulesError, R>) -> Self {
745        match err {
746            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
747            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
748                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
749                source: err.into(),
750            }),
751        }
752    }
753}
754impl From<crate::operation::list_schedules::ListSchedulesError> for Error {
755    fn from(err: crate::operation::list_schedules::ListSchedulesError) -> Self {
756        match err {
757            crate::operation::list_schedules::ListSchedulesError::ValidationException(inner) => Error::ValidationException(inner),
758            crate::operation::list_schedules::ListSchedulesError::Unhandled(inner) => Error::Unhandled(inner),
759        }
760    }
761}
762impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
763where
764    R: Send + Sync + std::fmt::Debug + 'static,
765{
766    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
767        match err {
768            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
769            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
770                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
771                source: err.into(),
772            }),
773        }
774    }
775}
776impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
777    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
778        match err {
779            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
780                Error::InternalServerException(inner)
781            }
782            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
783                Error::ResourceNotFoundException(inner)
784            }
785            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
786            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
787        }
788    }
789}
790impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::publish_recipe::PublishRecipeError, R>> for Error
791where
792    R: Send + Sync + std::fmt::Debug + 'static,
793{
794    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::publish_recipe::PublishRecipeError, R>) -> Self {
795        match err {
796            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
797            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
798                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
799                source: err.into(),
800            }),
801        }
802    }
803}
804impl From<crate::operation::publish_recipe::PublishRecipeError> for Error {
805    fn from(err: crate::operation::publish_recipe::PublishRecipeError) -> Self {
806        match err {
807            crate::operation::publish_recipe::PublishRecipeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
808            crate::operation::publish_recipe::PublishRecipeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
809            crate::operation::publish_recipe::PublishRecipeError::ValidationException(inner) => Error::ValidationException(inner),
810            crate::operation::publish_recipe::PublishRecipeError::Unhandled(inner) => Error::Unhandled(inner),
811        }
812    }
813}
814impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_project_session_action::SendProjectSessionActionError, R>>
815    for Error
816where
817    R: Send + Sync + std::fmt::Debug + 'static,
818{
819    fn from(
820        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_project_session_action::SendProjectSessionActionError, R>,
821    ) -> Self {
822        match err {
823            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
824            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
825                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
826                source: err.into(),
827            }),
828        }
829    }
830}
831impl From<crate::operation::send_project_session_action::SendProjectSessionActionError> for Error {
832    fn from(err: crate::operation::send_project_session_action::SendProjectSessionActionError) -> Self {
833        match err {
834            crate::operation::send_project_session_action::SendProjectSessionActionError::ConflictException(inner) => Error::ConflictException(inner),
835            crate::operation::send_project_session_action::SendProjectSessionActionError::ResourceNotFoundException(inner) => {
836                Error::ResourceNotFoundException(inner)
837            }
838            crate::operation::send_project_session_action::SendProjectSessionActionError::ValidationException(inner) => {
839                Error::ValidationException(inner)
840            }
841            crate::operation::send_project_session_action::SendProjectSessionActionError::Unhandled(inner) => Error::Unhandled(inner),
842        }
843    }
844}
845impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_job_run::StartJobRunError, R>> for Error
846where
847    R: Send + Sync + std::fmt::Debug + 'static,
848{
849    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_job_run::StartJobRunError, R>) -> Self {
850        match err {
851            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
852            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
853                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
854                source: err.into(),
855            }),
856        }
857    }
858}
859impl From<crate::operation::start_job_run::StartJobRunError> for Error {
860    fn from(err: crate::operation::start_job_run::StartJobRunError) -> Self {
861        match err {
862            crate::operation::start_job_run::StartJobRunError::ConflictException(inner) => Error::ConflictException(inner),
863            crate::operation::start_job_run::StartJobRunError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
864            crate::operation::start_job_run::StartJobRunError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
865            crate::operation::start_job_run::StartJobRunError::ValidationException(inner) => Error::ValidationException(inner),
866            crate::operation::start_job_run::StartJobRunError::Unhandled(inner) => Error::Unhandled(inner),
867        }
868    }
869}
870impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_project_session::StartProjectSessionError, R>> for Error
871where
872    R: Send + Sync + std::fmt::Debug + 'static,
873{
874    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_project_session::StartProjectSessionError, R>) -> Self {
875        match err {
876            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
877            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
878                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
879                source: err.into(),
880            }),
881        }
882    }
883}
884impl From<crate::operation::start_project_session::StartProjectSessionError> for Error {
885    fn from(err: crate::operation::start_project_session::StartProjectSessionError) -> Self {
886        match err {
887            crate::operation::start_project_session::StartProjectSessionError::ConflictException(inner) => Error::ConflictException(inner),
888            crate::operation::start_project_session::StartProjectSessionError::ResourceNotFoundException(inner) => {
889                Error::ResourceNotFoundException(inner)
890            }
891            crate::operation::start_project_session::StartProjectSessionError::ServiceQuotaExceededException(inner) => {
892                Error::ServiceQuotaExceededException(inner)
893            }
894            crate::operation::start_project_session::StartProjectSessionError::ValidationException(inner) => Error::ValidationException(inner),
895            crate::operation::start_project_session::StartProjectSessionError::Unhandled(inner) => Error::Unhandled(inner),
896        }
897    }
898}
899impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_job_run::StopJobRunError, R>> for Error
900where
901    R: Send + Sync + std::fmt::Debug + 'static,
902{
903    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_job_run::StopJobRunError, R>) -> Self {
904        match err {
905            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
906            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
907                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
908                source: err.into(),
909            }),
910        }
911    }
912}
913impl From<crate::operation::stop_job_run::StopJobRunError> for Error {
914    fn from(err: crate::operation::stop_job_run::StopJobRunError) -> Self {
915        match err {
916            crate::operation::stop_job_run::StopJobRunError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
917            crate::operation::stop_job_run::StopJobRunError::ValidationException(inner) => Error::ValidationException(inner),
918            crate::operation::stop_job_run::StopJobRunError::Unhandled(inner) => Error::Unhandled(inner),
919        }
920    }
921}
922impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
923where
924    R: Send + Sync + std::fmt::Debug + 'static,
925{
926    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
927        match err {
928            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
929            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
930                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
931                source: err.into(),
932            }),
933        }
934    }
935}
936impl From<crate::operation::tag_resource::TagResourceError> for Error {
937    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
938        match err {
939            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
940            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
941            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
942            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
943        }
944    }
945}
946impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
947where
948    R: Send + Sync + std::fmt::Debug + 'static,
949{
950    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
951        match err {
952            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
953            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
954                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
955                source: err.into(),
956            }),
957        }
958    }
959}
960impl From<crate::operation::untag_resource::UntagResourceError> for Error {
961    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
962        match err {
963            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
964            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
965            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
966            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
967        }
968    }
969}
970impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dataset::UpdateDatasetError, R>> for Error
971where
972    R: Send + Sync + std::fmt::Debug + 'static,
973{
974    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dataset::UpdateDatasetError, R>) -> Self {
975        match err {
976            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
977            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
978                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
979                source: err.into(),
980            }),
981        }
982    }
983}
984impl From<crate::operation::update_dataset::UpdateDatasetError> for Error {
985    fn from(err: crate::operation::update_dataset::UpdateDatasetError) -> Self {
986        match err {
987            crate::operation::update_dataset::UpdateDatasetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
988            crate::operation::update_dataset::UpdateDatasetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
989            crate::operation::update_dataset::UpdateDatasetError::ValidationException(inner) => Error::ValidationException(inner),
990            crate::operation::update_dataset::UpdateDatasetError::Unhandled(inner) => Error::Unhandled(inner),
991        }
992    }
993}
994impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_profile_job::UpdateProfileJobError, R>> for Error
995where
996    R: Send + Sync + std::fmt::Debug + 'static,
997{
998    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_profile_job::UpdateProfileJobError, R>) -> Self {
999        match err {
1000            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1001            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1002                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1003                source: err.into(),
1004            }),
1005        }
1006    }
1007}
1008impl From<crate::operation::update_profile_job::UpdateProfileJobError> for Error {
1009    fn from(err: crate::operation::update_profile_job::UpdateProfileJobError) -> Self {
1010        match err {
1011            crate::operation::update_profile_job::UpdateProfileJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1012            crate::operation::update_profile_job::UpdateProfileJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1013            crate::operation::update_profile_job::UpdateProfileJobError::ValidationException(inner) => Error::ValidationException(inner),
1014            crate::operation::update_profile_job::UpdateProfileJobError::Unhandled(inner) => Error::Unhandled(inner),
1015        }
1016    }
1017}
1018impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>> for Error
1019where
1020    R: Send + Sync + std::fmt::Debug + 'static,
1021{
1022    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>) -> Self {
1023        match err {
1024            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1025            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1026                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1027                source: err.into(),
1028            }),
1029        }
1030    }
1031}
1032impl From<crate::operation::update_project::UpdateProjectError> for Error {
1033    fn from(err: crate::operation::update_project::UpdateProjectError) -> Self {
1034        match err {
1035            crate::operation::update_project::UpdateProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1036            crate::operation::update_project::UpdateProjectError::ValidationException(inner) => Error::ValidationException(inner),
1037            crate::operation::update_project::UpdateProjectError::Unhandled(inner) => Error::Unhandled(inner),
1038        }
1039    }
1040}
1041impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_recipe::UpdateRecipeError, R>> for Error
1042where
1043    R: Send + Sync + std::fmt::Debug + 'static,
1044{
1045    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_recipe::UpdateRecipeError, R>) -> Self {
1046        match err {
1047            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1048            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1049                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1050                source: err.into(),
1051            }),
1052        }
1053    }
1054}
1055impl From<crate::operation::update_recipe::UpdateRecipeError> for Error {
1056    fn from(err: crate::operation::update_recipe::UpdateRecipeError) -> Self {
1057        match err {
1058            crate::operation::update_recipe::UpdateRecipeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1059            crate::operation::update_recipe::UpdateRecipeError::ValidationException(inner) => Error::ValidationException(inner),
1060            crate::operation::update_recipe::UpdateRecipeError::Unhandled(inner) => Error::Unhandled(inner),
1061        }
1062    }
1063}
1064impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_recipe_job::UpdateRecipeJobError, R>> for Error
1065where
1066    R: Send + Sync + std::fmt::Debug + 'static,
1067{
1068    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_recipe_job::UpdateRecipeJobError, R>) -> Self {
1069        match err {
1070            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1071            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1072                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1073                source: err.into(),
1074            }),
1075        }
1076    }
1077}
1078impl From<crate::operation::update_recipe_job::UpdateRecipeJobError> for Error {
1079    fn from(err: crate::operation::update_recipe_job::UpdateRecipeJobError) -> Self {
1080        match err {
1081            crate::operation::update_recipe_job::UpdateRecipeJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1082            crate::operation::update_recipe_job::UpdateRecipeJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1083            crate::operation::update_recipe_job::UpdateRecipeJobError::ValidationException(inner) => Error::ValidationException(inner),
1084            crate::operation::update_recipe_job::UpdateRecipeJobError::Unhandled(inner) => Error::Unhandled(inner),
1085        }
1086    }
1087}
1088impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_ruleset::UpdateRulesetError, R>> for Error
1089where
1090    R: Send + Sync + std::fmt::Debug + 'static,
1091{
1092    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_ruleset::UpdateRulesetError, R>) -> Self {
1093        match err {
1094            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1095            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1096                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1097                source: err.into(),
1098            }),
1099        }
1100    }
1101}
1102impl From<crate::operation::update_ruleset::UpdateRulesetError> for Error {
1103    fn from(err: crate::operation::update_ruleset::UpdateRulesetError) -> Self {
1104        match err {
1105            crate::operation::update_ruleset::UpdateRulesetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1106            crate::operation::update_ruleset::UpdateRulesetError::ValidationException(inner) => Error::ValidationException(inner),
1107            crate::operation::update_ruleset::UpdateRulesetError::Unhandled(inner) => Error::Unhandled(inner),
1108        }
1109    }
1110}
1111impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_schedule::UpdateScheduleError, R>> for Error
1112where
1113    R: Send + Sync + std::fmt::Debug + 'static,
1114{
1115    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_schedule::UpdateScheduleError, R>) -> Self {
1116        match err {
1117            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1118            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1119                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1120                source: err.into(),
1121            }),
1122        }
1123    }
1124}
1125impl From<crate::operation::update_schedule::UpdateScheduleError> for Error {
1126    fn from(err: crate::operation::update_schedule::UpdateScheduleError) -> Self {
1127        match err {
1128            crate::operation::update_schedule::UpdateScheduleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1129            crate::operation::update_schedule::UpdateScheduleError::ServiceQuotaExceededException(inner) => {
1130                Error::ServiceQuotaExceededException(inner)
1131            }
1132            crate::operation::update_schedule::UpdateScheduleError::ValidationException(inner) => Error::ValidationException(inner),
1133            crate::operation::update_schedule::UpdateScheduleError::Unhandled(inner) => Error::Unhandled(inner),
1134        }
1135    }
1136}
1137impl ::std::error::Error for Error {
1138    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1139        match self {
1140            Error::AccessDeniedException(inner) => inner.source(),
1141            Error::ConflictException(inner) => inner.source(),
1142            Error::InternalServerException(inner) => inner.source(),
1143            Error::ResourceNotFoundException(inner) => inner.source(),
1144            Error::ServiceQuotaExceededException(inner) => inner.source(),
1145            Error::ValidationException(inner) => inner.source(),
1146            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1147        }
1148    }
1149}
1150impl ::aws_types::request_id::RequestId for Error {
1151    fn request_id(&self) -> Option<&str> {
1152        match self {
1153            Self::AccessDeniedException(e) => e.request_id(),
1154            Self::ConflictException(e) => e.request_id(),
1155            Self::InternalServerException(e) => e.request_id(),
1156            Self::ResourceNotFoundException(e) => e.request_id(),
1157            Self::ServiceQuotaExceededException(e) => e.request_id(),
1158            Self::ValidationException(e) => e.request_id(),
1159            Self::Unhandled(e) => e.meta.request_id(),
1160        }
1161    }
1162}