1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 ConflictException(crate::types::error::ConflictException),
8 ResourceInUse(crate::types::error::ResourceInUse),
10 ResourceLimitExceeded(crate::types::error::ResourceLimitExceeded),
12 ResourceNotFound(crate::types::error::ResourceNotFound),
14 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
16 variable wildcard pattern and check `.code()`:
17 \
18 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
19 \
20 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
21 Unhandled(crate::error::sealed_unhandled::Unhandled),
22}
23impl ::std::fmt::Display for Error {
24 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
25 match self {
26 Error::ConflictException(inner) => inner.fmt(f),
27 Error::ResourceInUse(inner) => inner.fmt(f),
28 Error::ResourceLimitExceeded(inner) => inner.fmt(f),
29 Error::ResourceNotFound(inner) => inner.fmt(f),
30 Error::Unhandled(_) => {
31 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
32 write!(f, "unhandled error ({code})")
33 } else {
34 f.write_str("unhandled error")
35 }
36 }
37 }
38 }
39}
40impl From<::aws_smithy_types::error::operation::BuildError> for Error {
41 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
42 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
43 source: value.into(),
44 meta: ::std::default::Default::default(),
45 })
46 }
47}
48impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
49 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
50 match self {
51 Self::ConflictException(inner) => inner.meta(),
52 Self::ResourceInUse(inner) => inner.meta(),
53 Self::ResourceLimitExceeded(inner) => inner.meta(),
54 Self::ResourceNotFound(inner) => inner.meta(),
55 Self::Unhandled(inner) => &inner.meta,
56 }
57 }
58}
59impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_association::AddAssociationError, R>> for Error
60where
61 R: Send + Sync + std::fmt::Debug + 'static,
62{
63 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_association::AddAssociationError, R>) -> Self {
64 match err {
65 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
66 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
67 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
68 source: err.into(),
69 }),
70 }
71 }
72}
73impl From<crate::operation::add_association::AddAssociationError> for Error {
74 fn from(err: crate::operation::add_association::AddAssociationError) -> Self {
75 match err {
76 crate::operation::add_association::AddAssociationError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
77 crate::operation::add_association::AddAssociationError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
78 crate::operation::add_association::AddAssociationError::Unhandled(inner) => Error::Unhandled(inner),
79 }
80 }
81}
82impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_tags::AddTagsError, R>> for Error
83where
84 R: Send + Sync + std::fmt::Debug + 'static,
85{
86 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_tags::AddTagsError, R>) -> Self {
87 match err {
88 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
89 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
90 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
91 source: err.into(),
92 }),
93 }
94 }
95}
96impl From<crate::operation::add_tags::AddTagsError> for Error {
97 fn from(err: crate::operation::add_tags::AddTagsError) -> Self {
98 match err {
99 crate::operation::add_tags::AddTagsError::Unhandled(inner) => Error::Unhandled(inner),
100 }
101 }
102}
103impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_trial_component::AssociateTrialComponentError, R>>
104 for Error
105where
106 R: Send + Sync + std::fmt::Debug + 'static,
107{
108 fn from(
109 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_trial_component::AssociateTrialComponentError, R>,
110 ) -> Self {
111 match err {
112 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
113 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
114 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
115 source: err.into(),
116 }),
117 }
118 }
119}
120impl From<crate::operation::associate_trial_component::AssociateTrialComponentError> for Error {
121 fn from(err: crate::operation::associate_trial_component::AssociateTrialComponentError) -> Self {
122 match err {
123 crate::operation::associate_trial_component::AssociateTrialComponentError::ResourceLimitExceeded(inner) => {
124 Error::ResourceLimitExceeded(inner)
125 }
126 crate::operation::associate_trial_component::AssociateTrialComponentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
127 crate::operation::associate_trial_component::AssociateTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
128 }
129 }
130}
131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError, R>>
132 for Error
133where
134 R: Send + Sync + std::fmt::Debug + 'static,
135{
136 fn from(
137 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError, R>,
138 ) -> Self {
139 match err {
140 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
141 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
142 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
143 source: err.into(),
144 }),
145 }
146 }
147}
148impl From<crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError> for Error {
149 fn from(err: crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError) -> Self {
150 match err {
151 crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
152 crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError::Unhandled(inner) => Error::Unhandled(inner),
153 }
154 }
155}
156impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_describe_model_package::BatchDescribeModelPackageError, R>>
157 for Error
158where
159 R: Send + Sync + std::fmt::Debug + 'static,
160{
161 fn from(
162 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_describe_model_package::BatchDescribeModelPackageError, R>,
163 ) -> Self {
164 match err {
165 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
166 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
167 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
168 source: err.into(),
169 }),
170 }
171 }
172}
173impl From<crate::operation::batch_describe_model_package::BatchDescribeModelPackageError> for Error {
174 fn from(err: crate::operation::batch_describe_model_package::BatchDescribeModelPackageError) -> Self {
175 match err {
176 crate::operation::batch_describe_model_package::BatchDescribeModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
177 }
178 }
179}
180impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_action::CreateActionError, R>> for Error
181where
182 R: Send + Sync + std::fmt::Debug + 'static,
183{
184 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_action::CreateActionError, R>) -> Self {
185 match err {
186 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
187 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
188 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
189 source: err.into(),
190 }),
191 }
192 }
193}
194impl From<crate::operation::create_action::CreateActionError> for Error {
195 fn from(err: crate::operation::create_action::CreateActionError) -> Self {
196 match err {
197 crate::operation::create_action::CreateActionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
198 crate::operation::create_action::CreateActionError::Unhandled(inner) => Error::Unhandled(inner),
199 }
200 }
201}
202impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_algorithm::CreateAlgorithmError, R>> for Error
203where
204 R: Send + Sync + std::fmt::Debug + 'static,
205{
206 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_algorithm::CreateAlgorithmError, R>) -> Self {
207 match err {
208 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
209 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
210 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
211 source: err.into(),
212 }),
213 }
214 }
215}
216impl From<crate::operation::create_algorithm::CreateAlgorithmError> for Error {
217 fn from(err: crate::operation::create_algorithm::CreateAlgorithmError) -> Self {
218 match err {
219 crate::operation::create_algorithm::CreateAlgorithmError::Unhandled(inner) => Error::Unhandled(inner),
220 }
221 }
222}
223impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app::CreateAppError, R>> for Error
224where
225 R: Send + Sync + std::fmt::Debug + 'static,
226{
227 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app::CreateAppError, R>) -> Self {
228 match err {
229 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
230 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
231 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
232 source: err.into(),
233 }),
234 }
235 }
236}
237impl From<crate::operation::create_app::CreateAppError> for Error {
238 fn from(err: crate::operation::create_app::CreateAppError) -> Self {
239 match err {
240 crate::operation::create_app::CreateAppError::ResourceInUse(inner) => Error::ResourceInUse(inner),
241 crate::operation::create_app::CreateAppError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
242 crate::operation::create_app::CreateAppError::Unhandled(inner) => Error::Unhandled(inner),
243 }
244 }
245}
246impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_image_config::CreateAppImageConfigError, R>> for Error
247where
248 R: Send + Sync + std::fmt::Debug + 'static,
249{
250 fn from(
251 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_image_config::CreateAppImageConfigError, R>,
252 ) -> Self {
253 match err {
254 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
255 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
256 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
257 source: err.into(),
258 }),
259 }
260 }
261}
262impl From<crate::operation::create_app_image_config::CreateAppImageConfigError> for Error {
263 fn from(err: crate::operation::create_app_image_config::CreateAppImageConfigError) -> Self {
264 match err {
265 crate::operation::create_app_image_config::CreateAppImageConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
266 crate::operation::create_app_image_config::CreateAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
267 }
268 }
269}
270impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_artifact::CreateArtifactError, R>> for Error
271where
272 R: Send + Sync + std::fmt::Debug + 'static,
273{
274 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_artifact::CreateArtifactError, R>) -> Self {
275 match err {
276 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
277 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
278 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
279 source: err.into(),
280 }),
281 }
282 }
283}
284impl From<crate::operation::create_artifact::CreateArtifactError> for Error {
285 fn from(err: crate::operation::create_artifact::CreateArtifactError) -> Self {
286 match err {
287 crate::operation::create_artifact::CreateArtifactError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
288 crate::operation::create_artifact::CreateArtifactError::Unhandled(inner) => Error::Unhandled(inner),
289 }
290 }
291}
292impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_ml_job::CreateAutoMLJobError, R>> for Error
293where
294 R: Send + Sync + std::fmt::Debug + 'static,
295{
296 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_ml_job::CreateAutoMLJobError, R>) -> Self {
297 match err {
298 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
299 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
300 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
301 source: err.into(),
302 }),
303 }
304 }
305}
306impl From<crate::operation::create_auto_ml_job::CreateAutoMLJobError> for Error {
307 fn from(err: crate::operation::create_auto_ml_job::CreateAutoMLJobError) -> Self {
308 match err {
309 crate::operation::create_auto_ml_job::CreateAutoMLJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
310 crate::operation::create_auto_ml_job::CreateAutoMLJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
311 crate::operation::create_auto_ml_job::CreateAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
312 }
313 }
314}
315impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error, R>> for Error
316where
317 R: Send + Sync + std::fmt::Debug + 'static,
318{
319 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error, R>) -> Self {
320 match err {
321 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
322 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
323 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
324 source: err.into(),
325 }),
326 }
327 }
328}
329impl From<crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error> for Error {
330 fn from(err: crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error) -> Self {
331 match err {
332 crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error::ResourceInUse(inner) => Error::ResourceInUse(inner),
333 crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
334 crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error::Unhandled(inner) => Error::Unhandled(inner),
335 }
336 }
337}
338impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster::CreateClusterError, R>> for Error
339where
340 R: Send + Sync + std::fmt::Debug + 'static,
341{
342 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster::CreateClusterError, R>) -> Self {
343 match err {
344 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
345 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
346 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
347 source: err.into(),
348 }),
349 }
350 }
351}
352impl From<crate::operation::create_cluster::CreateClusterError> for Error {
353 fn from(err: crate::operation::create_cluster::CreateClusterError) -> Self {
354 match err {
355 crate::operation::create_cluster::CreateClusterError::ResourceInUse(inner) => Error::ResourceInUse(inner),
356 crate::operation::create_cluster::CreateClusterError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
357 crate::operation::create_cluster::CreateClusterError::Unhandled(inner) => Error::Unhandled(inner),
358 }
359 }
360}
361impl<R>
362 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError, R>>
363 for Error
364where
365 R: Send + Sync + std::fmt::Debug + 'static,
366{
367 fn from(
368 err: ::aws_smithy_runtime_api::client::result::SdkError<
369 crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError,
370 R,
371 >,
372 ) -> Self {
373 match err {
374 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
375 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
376 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
377 source: err.into(),
378 }),
379 }
380 }
381}
382impl From<crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError> for Error {
383 fn from(err: crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError) -> Self {
384 match err {
385 crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError::ConflictException(inner) => {
386 Error::ConflictException(inner)
387 }
388 crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError::ResourceLimitExceeded(inner) => {
389 Error::ResourceLimitExceeded(inner)
390 }
391 crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
392 }
393 }
394}
395impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_code_repository::CreateCodeRepositoryError, R>> for Error
396where
397 R: Send + Sync + std::fmt::Debug + 'static,
398{
399 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_code_repository::CreateCodeRepositoryError, R>) -> Self {
400 match err {
401 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
402 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
403 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
404 source: err.into(),
405 }),
406 }
407 }
408}
409impl From<crate::operation::create_code_repository::CreateCodeRepositoryError> for Error {
410 fn from(err: crate::operation::create_code_repository::CreateCodeRepositoryError) -> Self {
411 match err {
412 crate::operation::create_code_repository::CreateCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
413 }
414 }
415}
416impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_compilation_job::CreateCompilationJobError, R>> for Error
417where
418 R: Send + Sync + std::fmt::Debug + 'static,
419{
420 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_compilation_job::CreateCompilationJobError, R>) -> Self {
421 match err {
422 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
423 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
424 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
425 source: err.into(),
426 }),
427 }
428 }
429}
430impl From<crate::operation::create_compilation_job::CreateCompilationJobError> for Error {
431 fn from(err: crate::operation::create_compilation_job::CreateCompilationJobError) -> Self {
432 match err {
433 crate::operation::create_compilation_job::CreateCompilationJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
434 crate::operation::create_compilation_job::CreateCompilationJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
435 crate::operation::create_compilation_job::CreateCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
436 }
437 }
438}
439impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_compute_quota::CreateComputeQuotaError, R>> for Error
440where
441 R: Send + Sync + std::fmt::Debug + 'static,
442{
443 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_compute_quota::CreateComputeQuotaError, R>) -> Self {
444 match err {
445 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
446 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
447 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
448 source: err.into(),
449 }),
450 }
451 }
452}
453impl From<crate::operation::create_compute_quota::CreateComputeQuotaError> for Error {
454 fn from(err: crate::operation::create_compute_quota::CreateComputeQuotaError) -> Self {
455 match err {
456 crate::operation::create_compute_quota::CreateComputeQuotaError::ConflictException(inner) => Error::ConflictException(inner),
457 crate::operation::create_compute_quota::CreateComputeQuotaError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
458 crate::operation::create_compute_quota::CreateComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
459 }
460 }
461}
462impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_context::CreateContextError, R>> for Error
463where
464 R: Send + Sync + std::fmt::Debug + 'static,
465{
466 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_context::CreateContextError, R>) -> Self {
467 match err {
468 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
469 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
470 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
471 source: err.into(),
472 }),
473 }
474 }
475}
476impl From<crate::operation::create_context::CreateContextError> for Error {
477 fn from(err: crate::operation::create_context::CreateContextError) -> Self {
478 match err {
479 crate::operation::create_context::CreateContextError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
480 crate::operation::create_context::CreateContextError::Unhandled(inner) => Error::Unhandled(inner),
481 }
482 }
483}
484impl<R>
485 From<
486 ::aws_smithy_runtime_api::client::result::SdkError<
487 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError,
488 R,
489 >,
490 > for Error
491where
492 R: Send + Sync + std::fmt::Debug + 'static,
493{
494 fn from(
495 err: ::aws_smithy_runtime_api::client::result::SdkError<
496 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError,
497 R,
498 >,
499 ) -> Self {
500 match err {
501 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
502 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
503 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
504 source: err.into(),
505 }),
506 }
507 }
508}
509impl From<crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError> for Error {
510 fn from(err: crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError) -> Self {
511 match err {
512 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError::ResourceInUse(inner) => {
513 Error::ResourceInUse(inner)
514 }
515 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError::ResourceLimitExceeded(inner) => {
516 Error::ResourceLimitExceeded(inner)
517 }
518 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
519 }
520 }
521}
522impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_device_fleet::CreateDeviceFleetError, R>> for Error
523where
524 R: Send + Sync + std::fmt::Debug + 'static,
525{
526 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_device_fleet::CreateDeviceFleetError, R>) -> Self {
527 match err {
528 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
529 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
530 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
531 source: err.into(),
532 }),
533 }
534 }
535}
536impl From<crate::operation::create_device_fleet::CreateDeviceFleetError> for Error {
537 fn from(err: crate::operation::create_device_fleet::CreateDeviceFleetError) -> Self {
538 match err {
539 crate::operation::create_device_fleet::CreateDeviceFleetError::ResourceInUse(inner) => Error::ResourceInUse(inner),
540 crate::operation::create_device_fleet::CreateDeviceFleetError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
541 crate::operation::create_device_fleet::CreateDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
542 }
543 }
544}
545impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain::CreateDomainError, R>> for Error
546where
547 R: Send + Sync + std::fmt::Debug + 'static,
548{
549 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain::CreateDomainError, R>) -> Self {
550 match err {
551 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
552 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
553 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
554 source: err.into(),
555 }),
556 }
557 }
558}
559impl From<crate::operation::create_domain::CreateDomainError> for Error {
560 fn from(err: crate::operation::create_domain::CreateDomainError) -> Self {
561 match err {
562 crate::operation::create_domain::CreateDomainError::ResourceInUse(inner) => Error::ResourceInUse(inner),
563 crate::operation::create_domain::CreateDomainError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
564 crate::operation::create_domain::CreateDomainError::Unhandled(inner) => Error::Unhandled(inner),
565 }
566 }
567}
568impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError, R>>
569 for Error
570where
571 R: Send + Sync + std::fmt::Debug + 'static,
572{
573 fn from(
574 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError, R>,
575 ) -> Self {
576 match err {
577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
580 source: err.into(),
581 }),
582 }
583 }
584}
585impl From<crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError> for Error {
586 fn from(err: crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError) -> Self {
587 match err {
588 crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError::ResourceLimitExceeded(inner) => {
589 Error::ResourceLimitExceeded(inner)
590 }
591 crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError::Unhandled(inner) => Error::Unhandled(inner),
592 }
593 }
594}
595impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError, R>>
596 for Error
597where
598 R: Send + Sync + std::fmt::Debug + 'static,
599{
600 fn from(
601 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError, R>,
602 ) -> Self {
603 match err {
604 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
605 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
606 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
607 source: err.into(),
608 }),
609 }
610 }
611}
612impl From<crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError> for Error {
613 fn from(err: crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError) -> Self {
614 match err {
615 crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError::ResourceLimitExceeded(inner) => {
616 Error::ResourceLimitExceeded(inner)
617 }
618 crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
619 }
620 }
621}
622impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError, R>>
623 for Error
624where
625 R: Send + Sync + std::fmt::Debug + 'static,
626{
627 fn from(
628 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError, R>,
629 ) -> Self {
630 match err {
631 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
632 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
633 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
634 source: err.into(),
635 }),
636 }
637 }
638}
639impl From<crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError> for Error {
640 fn from(err: crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError) -> Self {
641 match err {
642 crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError::ResourceLimitExceeded(inner) => {
643 Error::ResourceLimitExceeded(inner)
644 }
645 crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError::Unhandled(inner) => Error::Unhandled(inner),
646 }
647 }
648}
649impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint::CreateEndpointError, R>> for Error
650where
651 R: Send + Sync + std::fmt::Debug + 'static,
652{
653 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint::CreateEndpointError, R>) -> Self {
654 match err {
655 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
656 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
657 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
658 source: err.into(),
659 }),
660 }
661 }
662}
663impl From<crate::operation::create_endpoint::CreateEndpointError> for Error {
664 fn from(err: crate::operation::create_endpoint::CreateEndpointError) -> Self {
665 match err {
666 crate::operation::create_endpoint::CreateEndpointError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
667 crate::operation::create_endpoint::CreateEndpointError::Unhandled(inner) => Error::Unhandled(inner),
668 }
669 }
670}
671impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint_config::CreateEndpointConfigError, R>> for Error
672where
673 R: Send + Sync + std::fmt::Debug + 'static,
674{
675 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint_config::CreateEndpointConfigError, R>) -> Self {
676 match err {
677 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
678 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
679 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
680 source: err.into(),
681 }),
682 }
683 }
684}
685impl From<crate::operation::create_endpoint_config::CreateEndpointConfigError> for Error {
686 fn from(err: crate::operation::create_endpoint_config::CreateEndpointConfigError) -> Self {
687 match err {
688 crate::operation::create_endpoint_config::CreateEndpointConfigError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
689 crate::operation::create_endpoint_config::CreateEndpointConfigError::Unhandled(inner) => Error::Unhandled(inner),
690 }
691 }
692}
693impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_experiment::CreateExperimentError, R>> for Error
694where
695 R: Send + Sync + std::fmt::Debug + 'static,
696{
697 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_experiment::CreateExperimentError, R>) -> Self {
698 match err {
699 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
700 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
701 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
702 source: err.into(),
703 }),
704 }
705 }
706}
707impl From<crate::operation::create_experiment::CreateExperimentError> for Error {
708 fn from(err: crate::operation::create_experiment::CreateExperimentError) -> Self {
709 match err {
710 crate::operation::create_experiment::CreateExperimentError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
711 crate::operation::create_experiment::CreateExperimentError::Unhandled(inner) => Error::Unhandled(inner),
712 }
713 }
714}
715impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_feature_group::CreateFeatureGroupError, R>> for Error
716where
717 R: Send + Sync + std::fmt::Debug + 'static,
718{
719 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_feature_group::CreateFeatureGroupError, R>) -> Self {
720 match err {
721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
724 source: err.into(),
725 }),
726 }
727 }
728}
729impl From<crate::operation::create_feature_group::CreateFeatureGroupError> for Error {
730 fn from(err: crate::operation::create_feature_group::CreateFeatureGroupError) -> Self {
731 match err {
732 crate::operation::create_feature_group::CreateFeatureGroupError::ResourceInUse(inner) => Error::ResourceInUse(inner),
733 crate::operation::create_feature_group::CreateFeatureGroupError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
734 crate::operation::create_feature_group::CreateFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
735 }
736 }
737}
738impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_flow_definition::CreateFlowDefinitionError, R>> for Error
739where
740 R: Send + Sync + std::fmt::Debug + 'static,
741{
742 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_flow_definition::CreateFlowDefinitionError, R>) -> Self {
743 match err {
744 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
745 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
746 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
747 source: err.into(),
748 }),
749 }
750 }
751}
752impl From<crate::operation::create_flow_definition::CreateFlowDefinitionError> for Error {
753 fn from(err: crate::operation::create_flow_definition::CreateFlowDefinitionError) -> Self {
754 match err {
755 crate::operation::create_flow_definition::CreateFlowDefinitionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
756 crate::operation::create_flow_definition::CreateFlowDefinitionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
757 crate::operation::create_flow_definition::CreateFlowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
758 }
759 }
760}
761impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hub::CreateHubError, R>> for Error
762where
763 R: Send + Sync + std::fmt::Debug + 'static,
764{
765 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hub::CreateHubError, R>) -> Self {
766 match err {
767 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
768 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
769 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
770 source: err.into(),
771 }),
772 }
773 }
774}
775impl From<crate::operation::create_hub::CreateHubError> for Error {
776 fn from(err: crate::operation::create_hub::CreateHubError) -> Self {
777 match err {
778 crate::operation::create_hub::CreateHubError::ResourceInUse(inner) => Error::ResourceInUse(inner),
779 crate::operation::create_hub::CreateHubError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
780 crate::operation::create_hub::CreateHubError::Unhandled(inner) => Error::Unhandled(inner),
781 }
782 }
783}
784impl<R>
785 From<
786 ::aws_smithy_runtime_api::client::result::SdkError<
787 crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError,
788 R,
789 >,
790 > for Error
791where
792 R: Send + Sync + std::fmt::Debug + 'static,
793{
794 fn from(
795 err: ::aws_smithy_runtime_api::client::result::SdkError<
796 crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError,
797 R,
798 >,
799 ) -> Self {
800 match err {
801 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
802 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
803 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
804 source: err.into(),
805 }),
806 }
807 }
808}
809impl From<crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError> for Error {
810 fn from(err: crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError) -> Self {
811 match err {
812 crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError::Unhandled(inner) => Error::Unhandled(inner),
813 }
814 }
815}
816impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hub_content_reference::CreateHubContentReferenceError, R>>
817 for Error
818where
819 R: Send + Sync + std::fmt::Debug + 'static,
820{
821 fn from(
822 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hub_content_reference::CreateHubContentReferenceError, R>,
823 ) -> Self {
824 match err {
825 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
826 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
827 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
828 source: err.into(),
829 }),
830 }
831 }
832}
833impl From<crate::operation::create_hub_content_reference::CreateHubContentReferenceError> for Error {
834 fn from(err: crate::operation::create_hub_content_reference::CreateHubContentReferenceError) -> Self {
835 match err {
836 crate::operation::create_hub_content_reference::CreateHubContentReferenceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
837 crate::operation::create_hub_content_reference::CreateHubContentReferenceError::ResourceLimitExceeded(inner) => {
838 Error::ResourceLimitExceeded(inner)
839 }
840 crate::operation::create_hub_content_reference::CreateHubContentReferenceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
841 crate::operation::create_hub_content_reference::CreateHubContentReferenceError::Unhandled(inner) => Error::Unhandled(inner),
842 }
843 }
844}
845impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_human_task_ui::CreateHumanTaskUiError, 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::create_human_task_ui::CreateHumanTaskUiError, 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::create_human_task_ui::CreateHumanTaskUiError> for Error {
860 fn from(err: crate::operation::create_human_task_ui::CreateHumanTaskUiError) -> Self {
861 match err {
862 crate::operation::create_human_task_ui::CreateHumanTaskUiError::ResourceInUse(inner) => Error::ResourceInUse(inner),
863 crate::operation::create_human_task_ui::CreateHumanTaskUiError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
864 crate::operation::create_human_task_ui::CreateHumanTaskUiError::Unhandled(inner) => Error::Unhandled(inner),
865 }
866 }
867}
868impl<R>
869 From<
870 ::aws_smithy_runtime_api::client::result::SdkError<
871 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError,
872 R,
873 >,
874 > for Error
875where
876 R: Send + Sync + std::fmt::Debug + 'static,
877{
878 fn from(
879 err: ::aws_smithy_runtime_api::client::result::SdkError<
880 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError,
881 R,
882 >,
883 ) -> Self {
884 match err {
885 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
886 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
887 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
888 source: err.into(),
889 }),
890 }
891 }
892}
893impl From<crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError> for Error {
894 fn from(err: crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError) -> Self {
895 match err {
896 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError::ResourceInUse(inner) => {
897 Error::ResourceInUse(inner)
898 }
899 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError::ResourceLimitExceeded(inner) => {
900 Error::ResourceLimitExceeded(inner)
901 }
902 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
903 }
904 }
905}
906impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image::CreateImageError, R>> for Error
907where
908 R: Send + Sync + std::fmt::Debug + 'static,
909{
910 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image::CreateImageError, R>) -> Self {
911 match err {
912 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
913 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
914 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
915 source: err.into(),
916 }),
917 }
918 }
919}
920impl From<crate::operation::create_image::CreateImageError> for Error {
921 fn from(err: crate::operation::create_image::CreateImageError) -> Self {
922 match err {
923 crate::operation::create_image::CreateImageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
924 crate::operation::create_image::CreateImageError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
925 crate::operation::create_image::CreateImageError::Unhandled(inner) => Error::Unhandled(inner),
926 }
927 }
928}
929impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_version::CreateImageVersionError, R>> for Error
930where
931 R: Send + Sync + std::fmt::Debug + 'static,
932{
933 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_version::CreateImageVersionError, R>) -> Self {
934 match err {
935 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
936 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
937 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
938 source: err.into(),
939 }),
940 }
941 }
942}
943impl From<crate::operation::create_image_version::CreateImageVersionError> for Error {
944 fn from(err: crate::operation::create_image_version::CreateImageVersionError) -> Self {
945 match err {
946 crate::operation::create_image_version::CreateImageVersionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
947 crate::operation::create_image_version::CreateImageVersionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
948 crate::operation::create_image_version::CreateImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
949 crate::operation::create_image_version::CreateImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
950 }
951 }
952}
953impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inference_component::CreateInferenceComponentError, R>>
954 for Error
955where
956 R: Send + Sync + std::fmt::Debug + 'static,
957{
958 fn from(
959 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inference_component::CreateInferenceComponentError, R>,
960 ) -> Self {
961 match err {
962 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
963 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
964 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
965 source: err.into(),
966 }),
967 }
968 }
969}
970impl From<crate::operation::create_inference_component::CreateInferenceComponentError> for Error {
971 fn from(err: crate::operation::create_inference_component::CreateInferenceComponentError) -> Self {
972 match err {
973 crate::operation::create_inference_component::CreateInferenceComponentError::ResourceLimitExceeded(inner) => {
974 Error::ResourceLimitExceeded(inner)
975 }
976 crate::operation::create_inference_component::CreateInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
977 }
978 }
979}
980impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inference_experiment::CreateInferenceExperimentError, R>>
981 for Error
982where
983 R: Send + Sync + std::fmt::Debug + 'static,
984{
985 fn from(
986 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inference_experiment::CreateInferenceExperimentError, R>,
987 ) -> Self {
988 match err {
989 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
990 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
991 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
992 source: err.into(),
993 }),
994 }
995 }
996}
997impl From<crate::operation::create_inference_experiment::CreateInferenceExperimentError> for Error {
998 fn from(err: crate::operation::create_inference_experiment::CreateInferenceExperimentError) -> Self {
999 match err {
1000 crate::operation::create_inference_experiment::CreateInferenceExperimentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1001 crate::operation::create_inference_experiment::CreateInferenceExperimentError::ResourceLimitExceeded(inner) => {
1002 Error::ResourceLimitExceeded(inner)
1003 }
1004 crate::operation::create_inference_experiment::CreateInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
1005 }
1006 }
1007}
1008impl<R>
1009 From<
1010 ::aws_smithy_runtime_api::client::result::SdkError<
1011 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError,
1012 R,
1013 >,
1014 > for Error
1015where
1016 R: Send + Sync + std::fmt::Debug + 'static,
1017{
1018 fn from(
1019 err: ::aws_smithy_runtime_api::client::result::SdkError<
1020 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError,
1021 R,
1022 >,
1023 ) -> Self {
1024 match err {
1025 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1026 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1027 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1028 source: err.into(),
1029 }),
1030 }
1031 }
1032}
1033impl From<crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError> for Error {
1034 fn from(err: crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError) -> Self {
1035 match err {
1036 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError::ResourceInUse(inner) => {
1037 Error::ResourceInUse(inner)
1038 }
1039 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError::ResourceLimitExceeded(inner) => {
1040 Error::ResourceLimitExceeded(inner)
1041 }
1042 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError::Unhandled(inner) => {
1043 Error::Unhandled(inner)
1044 }
1045 }
1046 }
1047}
1048impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_labeling_job::CreateLabelingJobError, R>> for Error
1049where
1050 R: Send + Sync + std::fmt::Debug + 'static,
1051{
1052 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_labeling_job::CreateLabelingJobError, R>) -> Self {
1053 match err {
1054 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1055 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1056 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1057 source: err.into(),
1058 }),
1059 }
1060 }
1061}
1062impl From<crate::operation::create_labeling_job::CreateLabelingJobError> for Error {
1063 fn from(err: crate::operation::create_labeling_job::CreateLabelingJobError) -> Self {
1064 match err {
1065 crate::operation::create_labeling_job::CreateLabelingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1066 crate::operation::create_labeling_job::CreateLabelingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1067 crate::operation::create_labeling_job::CreateLabelingJobError::Unhandled(inner) => Error::Unhandled(inner),
1068 }
1069 }
1070}
1071impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError, R>>
1072 for Error
1073where
1074 R: Send + Sync + std::fmt::Debug + 'static,
1075{
1076 fn from(
1077 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError, R>,
1078 ) -> Self {
1079 match err {
1080 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1081 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1082 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1083 source: err.into(),
1084 }),
1085 }
1086 }
1087}
1088impl From<crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError> for Error {
1089 fn from(err: crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError) -> Self {
1090 match err {
1091 crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError::ResourceLimitExceeded(inner) => {
1092 Error::ResourceLimitExceeded(inner)
1093 }
1094 crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
1095 }
1096 }
1097}
1098impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model::CreateModelError, R>> for Error
1099where
1100 R: Send + Sync + std::fmt::Debug + 'static,
1101{
1102 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model::CreateModelError, R>) -> Self {
1103 match err {
1104 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1105 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1106 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1107 source: err.into(),
1108 }),
1109 }
1110 }
1111}
1112impl From<crate::operation::create_model::CreateModelError> for Error {
1113 fn from(err: crate::operation::create_model::CreateModelError) -> Self {
1114 match err {
1115 crate::operation::create_model::CreateModelError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1116 crate::operation::create_model::CreateModelError::Unhandled(inner) => Error::Unhandled(inner),
1117 }
1118 }
1119}
1120impl<R>
1121 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError, R>>
1122 for Error
1123where
1124 R: Send + Sync + std::fmt::Debug + 'static,
1125{
1126 fn from(
1127 err: ::aws_smithy_runtime_api::client::result::SdkError<
1128 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError,
1129 R,
1130 >,
1131 ) -> Self {
1132 match err {
1133 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1134 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1135 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1136 source: err.into(),
1137 }),
1138 }
1139 }
1140}
1141impl From<crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError> for Error {
1142 fn from(err: crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError) -> Self {
1143 match err {
1144 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError::ResourceInUse(inner) => {
1145 Error::ResourceInUse(inner)
1146 }
1147 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError::ResourceLimitExceeded(inner) => {
1148 Error::ResourceLimitExceeded(inner)
1149 }
1150 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1151 }
1152 }
1153}
1154impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card::CreateModelCardError, R>> for Error
1155where
1156 R: Send + Sync + std::fmt::Debug + 'static,
1157{
1158 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card::CreateModelCardError, R>) -> Self {
1159 match err {
1160 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1161 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1162 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1163 source: err.into(),
1164 }),
1165 }
1166 }
1167}
1168impl From<crate::operation::create_model_card::CreateModelCardError> for Error {
1169 fn from(err: crate::operation::create_model_card::CreateModelCardError) -> Self {
1170 match err {
1171 crate::operation::create_model_card::CreateModelCardError::ConflictException(inner) => Error::ConflictException(inner),
1172 crate::operation::create_model_card::CreateModelCardError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1173 crate::operation::create_model_card::CreateModelCardError::Unhandled(inner) => Error::Unhandled(inner),
1174 }
1175 }
1176}
1177impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card_export_job::CreateModelCardExportJobError, R>>
1178 for Error
1179where
1180 R: Send + Sync + std::fmt::Debug + 'static,
1181{
1182 fn from(
1183 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card_export_job::CreateModelCardExportJobError, R>,
1184 ) -> Self {
1185 match err {
1186 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1187 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1188 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1189 source: err.into(),
1190 }),
1191 }
1192 }
1193}
1194impl From<crate::operation::create_model_card_export_job::CreateModelCardExportJobError> for Error {
1195 fn from(err: crate::operation::create_model_card_export_job::CreateModelCardExportJobError) -> Self {
1196 match err {
1197 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::ConflictException(inner) => {
1198 Error::ConflictException(inner)
1199 }
1200 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::ResourceLimitExceeded(inner) => {
1201 Error::ResourceLimitExceeded(inner)
1202 }
1203 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1204 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::Unhandled(inner) => Error::Unhandled(inner),
1205 }
1206 }
1207}
1208impl<R>
1209 From<
1210 ::aws_smithy_runtime_api::client::result::SdkError<
1211 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError,
1212 R,
1213 >,
1214 > for Error
1215where
1216 R: Send + Sync + std::fmt::Debug + 'static,
1217{
1218 fn from(
1219 err: ::aws_smithy_runtime_api::client::result::SdkError<
1220 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError,
1221 R,
1222 >,
1223 ) -> Self {
1224 match err {
1225 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1226 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1227 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1228 source: err.into(),
1229 }),
1230 }
1231 }
1232}
1233impl From<crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError> for Error {
1234 fn from(err: crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError) -> Self {
1235 match err {
1236 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError::ResourceInUse(inner) => {
1237 Error::ResourceInUse(inner)
1238 }
1239 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError::ResourceLimitExceeded(
1240 inner,
1241 ) => Error::ResourceLimitExceeded(inner),
1242 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError::Unhandled(inner) => {
1243 Error::Unhandled(inner)
1244 }
1245 }
1246 }
1247}
1248impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package::CreateModelPackageError, R>> for Error
1249where
1250 R: Send + Sync + std::fmt::Debug + 'static,
1251{
1252 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package::CreateModelPackageError, R>) -> Self {
1253 match err {
1254 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1255 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1256 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1257 source: err.into(),
1258 }),
1259 }
1260 }
1261}
1262impl From<crate::operation::create_model_package::CreateModelPackageError> for Error {
1263 fn from(err: crate::operation::create_model_package::CreateModelPackageError) -> Self {
1264 match err {
1265 crate::operation::create_model_package::CreateModelPackageError::ConflictException(inner) => Error::ConflictException(inner),
1266 crate::operation::create_model_package::CreateModelPackageError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1267 crate::operation::create_model_package::CreateModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
1268 }
1269 }
1270}
1271impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package_group::CreateModelPackageGroupError, R>>
1272 for Error
1273where
1274 R: Send + Sync + std::fmt::Debug + 'static,
1275{
1276 fn from(
1277 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package_group::CreateModelPackageGroupError, R>,
1278 ) -> Self {
1279 match err {
1280 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1281 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1282 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1283 source: err.into(),
1284 }),
1285 }
1286 }
1287}
1288impl From<crate::operation::create_model_package_group::CreateModelPackageGroupError> for Error {
1289 fn from(err: crate::operation::create_model_package_group::CreateModelPackageGroupError) -> Self {
1290 match err {
1291 crate::operation::create_model_package_group::CreateModelPackageGroupError::ResourceLimitExceeded(inner) => {
1292 Error::ResourceLimitExceeded(inner)
1293 }
1294 crate::operation::create_model_package_group::CreateModelPackageGroupError::Unhandled(inner) => Error::Unhandled(inner),
1295 }
1296 }
1297}
1298impl<R>
1299 From<
1300 ::aws_smithy_runtime_api::client::result::SdkError<
1301 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError,
1302 R,
1303 >,
1304 > for Error
1305where
1306 R: Send + Sync + std::fmt::Debug + 'static,
1307{
1308 fn from(
1309 err: ::aws_smithy_runtime_api::client::result::SdkError<
1310 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError,
1311 R,
1312 >,
1313 ) -> Self {
1314 match err {
1315 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1316 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1317 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1318 source: err.into(),
1319 }),
1320 }
1321 }
1322}
1323impl From<crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError> for Error {
1324 fn from(err: crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError) -> Self {
1325 match err {
1326 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError::ResourceInUse(inner) => {
1327 Error::ResourceInUse(inner)
1328 }
1329 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError::ResourceLimitExceeded(inner) => {
1330 Error::ResourceLimitExceeded(inner)
1331 }
1332 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1333 }
1334 }
1335}
1336impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError, R>>
1337 for Error
1338where
1339 R: Send + Sync + std::fmt::Debug + 'static,
1340{
1341 fn from(
1342 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError, R>,
1343 ) -> Self {
1344 match err {
1345 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1346 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1347 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1348 source: err.into(),
1349 }),
1350 }
1351 }
1352}
1353impl From<crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError> for Error {
1354 fn from(err: crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError) -> Self {
1355 match err {
1356 crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1357 crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError::ResourceLimitExceeded(inner) => {
1358 Error::ResourceLimitExceeded(inner)
1359 }
1360 crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
1361 }
1362 }
1363}
1364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notebook_instance::CreateNotebookInstanceError, R>> for Error
1365where
1366 R: Send + Sync + std::fmt::Debug + 'static,
1367{
1368 fn from(
1369 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notebook_instance::CreateNotebookInstanceError, R>,
1370 ) -> Self {
1371 match err {
1372 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1373 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1374 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1375 source: err.into(),
1376 }),
1377 }
1378 }
1379}
1380impl From<crate::operation::create_notebook_instance::CreateNotebookInstanceError> for Error {
1381 fn from(err: crate::operation::create_notebook_instance::CreateNotebookInstanceError) -> Self {
1382 match err {
1383 crate::operation::create_notebook_instance::CreateNotebookInstanceError::ResourceLimitExceeded(inner) => {
1384 Error::ResourceLimitExceeded(inner)
1385 }
1386 crate::operation::create_notebook_instance::CreateNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
1387 }
1388 }
1389}
1390impl<R>
1391 From<
1392 ::aws_smithy_runtime_api::client::result::SdkError<
1393 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError,
1394 R,
1395 >,
1396 > for Error
1397where
1398 R: Send + Sync + std::fmt::Debug + 'static,
1399{
1400 fn from(
1401 err: ::aws_smithy_runtime_api::client::result::SdkError<
1402 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError,
1403 R,
1404 >,
1405 ) -> Self {
1406 match err {
1407 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1408 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1409 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1410 source: err.into(),
1411 }),
1412 }
1413 }
1414}
1415impl From<crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError> for Error {
1416 fn from(err: crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError) -> Self {
1417 match err {
1418 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError::ResourceLimitExceeded(inner) => {
1419 Error::ResourceLimitExceeded(inner)
1420 }
1421 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
1422 Error::Unhandled(inner)
1423 }
1424 }
1425 }
1426}
1427impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_optimization_job::CreateOptimizationJobError, R>> for Error
1428where
1429 R: Send + Sync + std::fmt::Debug + 'static,
1430{
1431 fn from(
1432 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_optimization_job::CreateOptimizationJobError, R>,
1433 ) -> Self {
1434 match err {
1435 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1436 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1437 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1438 source: err.into(),
1439 }),
1440 }
1441 }
1442}
1443impl From<crate::operation::create_optimization_job::CreateOptimizationJobError> for Error {
1444 fn from(err: crate::operation::create_optimization_job::CreateOptimizationJobError) -> Self {
1445 match err {
1446 crate::operation::create_optimization_job::CreateOptimizationJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1447 crate::operation::create_optimization_job::CreateOptimizationJobError::ResourceLimitExceeded(inner) => {
1448 Error::ResourceLimitExceeded(inner)
1449 }
1450 crate::operation::create_optimization_job::CreateOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
1451 }
1452 }
1453}
1454impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_app::CreatePartnerAppError, R>> for Error
1455where
1456 R: Send + Sync + std::fmt::Debug + 'static,
1457{
1458 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_app::CreatePartnerAppError, R>) -> Self {
1459 match err {
1460 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1461 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1462 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1463 source: err.into(),
1464 }),
1465 }
1466 }
1467}
1468impl From<crate::operation::create_partner_app::CreatePartnerAppError> for Error {
1469 fn from(err: crate::operation::create_partner_app::CreatePartnerAppError) -> Self {
1470 match err {
1471 crate::operation::create_partner_app::CreatePartnerAppError::ConflictException(inner) => Error::ConflictException(inner),
1472 crate::operation::create_partner_app::CreatePartnerAppError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1473 crate::operation::create_partner_app::CreatePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
1474 }
1475 }
1476}
1477impl<R>
1478 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError, R>>
1479 for Error
1480where
1481 R: Send + Sync + std::fmt::Debug + 'static,
1482{
1483 fn from(
1484 err: ::aws_smithy_runtime_api::client::result::SdkError<
1485 crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError,
1486 R,
1487 >,
1488 ) -> Self {
1489 match err {
1490 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1491 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1492 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1493 source: err.into(),
1494 }),
1495 }
1496 }
1497}
1498impl From<crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError> for Error {
1499 fn from(err: crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError) -> Self {
1500 match err {
1501 crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError::ResourceNotFound(inner) => {
1502 Error::ResourceNotFound(inner)
1503 }
1504 crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError::Unhandled(inner) => Error::Unhandled(inner),
1505 }
1506 }
1507}
1508impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pipeline::CreatePipelineError, R>> for Error
1509where
1510 R: Send + Sync + std::fmt::Debug + 'static,
1511{
1512 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pipeline::CreatePipelineError, R>) -> Self {
1513 match err {
1514 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1515 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1516 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1517 source: err.into(),
1518 }),
1519 }
1520 }
1521}
1522impl From<crate::operation::create_pipeline::CreatePipelineError> for Error {
1523 fn from(err: crate::operation::create_pipeline::CreatePipelineError) -> Self {
1524 match err {
1525 crate::operation::create_pipeline::CreatePipelineError::ConflictException(inner) => Error::ConflictException(inner),
1526 crate::operation::create_pipeline::CreatePipelineError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1527 crate::operation::create_pipeline::CreatePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1528 crate::operation::create_pipeline::CreatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
1529 }
1530 }
1531}
1532impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError, R>>
1533 for Error
1534where
1535 R: Send + Sync + std::fmt::Debug + 'static,
1536{
1537 fn from(
1538 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError, R>,
1539 ) -> Self {
1540 match err {
1541 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1542 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1543 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1544 source: err.into(),
1545 }),
1546 }
1547 }
1548}
1549impl From<crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError> for Error {
1550 fn from(err: crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError) -> Self {
1551 match err {
1552 crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1553 crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError::Unhandled(inner) => Error::Unhandled(inner),
1554 }
1555 }
1556}
1557impl<R>
1558 From<
1559 ::aws_smithy_runtime_api::client::result::SdkError<
1560 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError,
1561 R,
1562 >,
1563 > for Error
1564where
1565 R: Send + Sync + std::fmt::Debug + 'static,
1566{
1567 fn from(
1568 err: ::aws_smithy_runtime_api::client::result::SdkError<
1569 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError,
1570 R,
1571 >,
1572 ) -> Self {
1573 match err {
1574 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1575 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1576 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1577 source: err.into(),
1578 }),
1579 }
1580 }
1581}
1582impl From<crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError> for Error {
1583 fn from(err: crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError) -> Self {
1584 match err {
1585 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError::ResourceNotFound(inner) => {
1586 Error::ResourceNotFound(inner)
1587 }
1588 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError::Unhandled(inner) => {
1589 Error::Unhandled(inner)
1590 }
1591 }
1592 }
1593}
1594impl<R>
1595 From<
1596 ::aws_smithy_runtime_api::client::result::SdkError<
1597 crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError,
1598 R,
1599 >,
1600 > for Error
1601where
1602 R: Send + Sync + std::fmt::Debug + 'static,
1603{
1604 fn from(
1605 err: ::aws_smithy_runtime_api::client::result::SdkError<
1606 crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError,
1607 R,
1608 >,
1609 ) -> Self {
1610 match err {
1611 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1612 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1613 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1614 source: err.into(),
1615 }),
1616 }
1617 }
1618}
1619impl From<crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError> for Error {
1620 fn from(err: crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError) -> Self {
1621 match err {
1622 crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError::Unhandled(inner) => {
1623 Error::Unhandled(inner)
1624 }
1625 }
1626 }
1627}
1628impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_processing_job::CreateProcessingJobError, R>> for Error
1629where
1630 R: Send + Sync + std::fmt::Debug + 'static,
1631{
1632 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_processing_job::CreateProcessingJobError, R>) -> Self {
1633 match err {
1634 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1635 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1636 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1637 source: err.into(),
1638 }),
1639 }
1640 }
1641}
1642impl From<crate::operation::create_processing_job::CreateProcessingJobError> for Error {
1643 fn from(err: crate::operation::create_processing_job::CreateProcessingJobError) -> Self {
1644 match err {
1645 crate::operation::create_processing_job::CreateProcessingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1646 crate::operation::create_processing_job::CreateProcessingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1647 crate::operation::create_processing_job::CreateProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1648 crate::operation::create_processing_job::CreateProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
1649 }
1650 }
1651}
1652impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>> for Error
1653where
1654 R: Send + Sync + std::fmt::Debug + 'static,
1655{
1656 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>) -> Self {
1657 match err {
1658 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1659 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1660 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1661 source: err.into(),
1662 }),
1663 }
1664 }
1665}
1666impl From<crate::operation::create_project::CreateProjectError> for Error {
1667 fn from(err: crate::operation::create_project::CreateProjectError) -> Self {
1668 match err {
1669 crate::operation::create_project::CreateProjectError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1670 crate::operation::create_project::CreateProjectError::Unhandled(inner) => Error::Unhandled(inner),
1671 }
1672 }
1673}
1674impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_space::CreateSpaceError, R>> for Error
1675where
1676 R: Send + Sync + std::fmt::Debug + 'static,
1677{
1678 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_space::CreateSpaceError, R>) -> Self {
1679 match err {
1680 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1681 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1682 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1683 source: err.into(),
1684 }),
1685 }
1686 }
1687}
1688impl From<crate::operation::create_space::CreateSpaceError> for Error {
1689 fn from(err: crate::operation::create_space::CreateSpaceError) -> Self {
1690 match err {
1691 crate::operation::create_space::CreateSpaceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1692 crate::operation::create_space::CreateSpaceError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1693 crate::operation::create_space::CreateSpaceError::Unhandled(inner) => Error::Unhandled(inner),
1694 }
1695 }
1696}
1697impl<R>
1698 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError, R>>
1699 for Error
1700where
1701 R: Send + Sync + std::fmt::Debug + 'static,
1702{
1703 fn from(
1704 err: ::aws_smithy_runtime_api::client::result::SdkError<
1705 crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError,
1706 R,
1707 >,
1708 ) -> Self {
1709 match err {
1710 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1711 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1712 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1713 source: err.into(),
1714 }),
1715 }
1716 }
1717}
1718impl From<crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError> for Error {
1719 fn from(err: crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError) -> Self {
1720 match err {
1721 crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1722 crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError::Unhandled(inner) => Error::Unhandled(inner),
1723 }
1724 }
1725}
1726impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_job::CreateTrainingJobError, R>> for Error
1727where
1728 R: Send + Sync + std::fmt::Debug + 'static,
1729{
1730 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_job::CreateTrainingJobError, R>) -> Self {
1731 match err {
1732 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1733 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1734 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1735 source: err.into(),
1736 }),
1737 }
1738 }
1739}
1740impl From<crate::operation::create_training_job::CreateTrainingJobError> for Error {
1741 fn from(err: crate::operation::create_training_job::CreateTrainingJobError) -> Self {
1742 match err {
1743 crate::operation::create_training_job::CreateTrainingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1744 crate::operation::create_training_job::CreateTrainingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1745 crate::operation::create_training_job::CreateTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1746 crate::operation::create_training_job::CreateTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
1747 }
1748 }
1749}
1750impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_plan::CreateTrainingPlanError, R>> for Error
1751where
1752 R: Send + Sync + std::fmt::Debug + 'static,
1753{
1754 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_plan::CreateTrainingPlanError, R>) -> Self {
1755 match err {
1756 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1757 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1758 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1759 source: err.into(),
1760 }),
1761 }
1762 }
1763}
1764impl From<crate::operation::create_training_plan::CreateTrainingPlanError> for Error {
1765 fn from(err: crate::operation::create_training_plan::CreateTrainingPlanError) -> Self {
1766 match err {
1767 crate::operation::create_training_plan::CreateTrainingPlanError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1768 crate::operation::create_training_plan::CreateTrainingPlanError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1769 crate::operation::create_training_plan::CreateTrainingPlanError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1770 crate::operation::create_training_plan::CreateTrainingPlanError::Unhandled(inner) => Error::Unhandled(inner),
1771 }
1772 }
1773}
1774impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transform_job::CreateTransformJobError, R>> for Error
1775where
1776 R: Send + Sync + std::fmt::Debug + 'static,
1777{
1778 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transform_job::CreateTransformJobError, R>) -> Self {
1779 match err {
1780 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1781 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1782 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1783 source: err.into(),
1784 }),
1785 }
1786 }
1787}
1788impl From<crate::operation::create_transform_job::CreateTransformJobError> for Error {
1789 fn from(err: crate::operation::create_transform_job::CreateTransformJobError) -> Self {
1790 match err {
1791 crate::operation::create_transform_job::CreateTransformJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1792 crate::operation::create_transform_job::CreateTransformJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1793 crate::operation::create_transform_job::CreateTransformJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1794 crate::operation::create_transform_job::CreateTransformJobError::Unhandled(inner) => Error::Unhandled(inner),
1795 }
1796 }
1797}
1798impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial::CreateTrialError, R>> for Error
1799where
1800 R: Send + Sync + std::fmt::Debug + 'static,
1801{
1802 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial::CreateTrialError, R>) -> Self {
1803 match err {
1804 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1805 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1806 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1807 source: err.into(),
1808 }),
1809 }
1810 }
1811}
1812impl From<crate::operation::create_trial::CreateTrialError> for Error {
1813 fn from(err: crate::operation::create_trial::CreateTrialError) -> Self {
1814 match err {
1815 crate::operation::create_trial::CreateTrialError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1816 crate::operation::create_trial::CreateTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1817 crate::operation::create_trial::CreateTrialError::Unhandled(inner) => Error::Unhandled(inner),
1818 }
1819 }
1820}
1821impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial_component::CreateTrialComponentError, R>> for Error
1822where
1823 R: Send + Sync + std::fmt::Debug + 'static,
1824{
1825 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial_component::CreateTrialComponentError, R>) -> Self {
1826 match err {
1827 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1828 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1829 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1830 source: err.into(),
1831 }),
1832 }
1833 }
1834}
1835impl From<crate::operation::create_trial_component::CreateTrialComponentError> for Error {
1836 fn from(err: crate::operation::create_trial_component::CreateTrialComponentError) -> Self {
1837 match err {
1838 crate::operation::create_trial_component::CreateTrialComponentError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1839 crate::operation::create_trial_component::CreateTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
1840 }
1841 }
1842}
1843impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_profile::CreateUserProfileError, R>> for Error
1844where
1845 R: Send + Sync + std::fmt::Debug + 'static,
1846{
1847 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_profile::CreateUserProfileError, R>) -> Self {
1848 match err {
1849 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1850 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1851 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1852 source: err.into(),
1853 }),
1854 }
1855 }
1856}
1857impl From<crate::operation::create_user_profile::CreateUserProfileError> for Error {
1858 fn from(err: crate::operation::create_user_profile::CreateUserProfileError) -> Self {
1859 match err {
1860 crate::operation::create_user_profile::CreateUserProfileError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1861 crate::operation::create_user_profile::CreateUserProfileError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1862 crate::operation::create_user_profile::CreateUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
1863 }
1864 }
1865}
1866impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workforce::CreateWorkforceError, R>> for Error
1867where
1868 R: Send + Sync + std::fmt::Debug + 'static,
1869{
1870 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workforce::CreateWorkforceError, R>) -> Self {
1871 match err {
1872 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1873 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1874 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1875 source: err.into(),
1876 }),
1877 }
1878 }
1879}
1880impl From<crate::operation::create_workforce::CreateWorkforceError> for Error {
1881 fn from(err: crate::operation::create_workforce::CreateWorkforceError) -> Self {
1882 match err {
1883 crate::operation::create_workforce::CreateWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
1884 }
1885 }
1886}
1887impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workteam::CreateWorkteamError, R>> for Error
1888where
1889 R: Send + Sync + std::fmt::Debug + 'static,
1890{
1891 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workteam::CreateWorkteamError, R>) -> Self {
1892 match err {
1893 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1894 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1895 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1896 source: err.into(),
1897 }),
1898 }
1899 }
1900}
1901impl From<crate::operation::create_workteam::CreateWorkteamError> for Error {
1902 fn from(err: crate::operation::create_workteam::CreateWorkteamError) -> Self {
1903 match err {
1904 crate::operation::create_workteam::CreateWorkteamError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1905 crate::operation::create_workteam::CreateWorkteamError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1906 crate::operation::create_workteam::CreateWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
1907 }
1908 }
1909}
1910impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_action::DeleteActionError, R>> for Error
1911where
1912 R: Send + Sync + std::fmt::Debug + 'static,
1913{
1914 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_action::DeleteActionError, R>) -> Self {
1915 match err {
1916 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1917 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1918 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1919 source: err.into(),
1920 }),
1921 }
1922 }
1923}
1924impl From<crate::operation::delete_action::DeleteActionError> for Error {
1925 fn from(err: crate::operation::delete_action::DeleteActionError) -> Self {
1926 match err {
1927 crate::operation::delete_action::DeleteActionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1928 crate::operation::delete_action::DeleteActionError::Unhandled(inner) => Error::Unhandled(inner),
1929 }
1930 }
1931}
1932impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_algorithm::DeleteAlgorithmError, R>> for Error
1933where
1934 R: Send + Sync + std::fmt::Debug + 'static,
1935{
1936 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_algorithm::DeleteAlgorithmError, R>) -> Self {
1937 match err {
1938 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1939 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1940 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1941 source: err.into(),
1942 }),
1943 }
1944 }
1945}
1946impl From<crate::operation::delete_algorithm::DeleteAlgorithmError> for Error {
1947 fn from(err: crate::operation::delete_algorithm::DeleteAlgorithmError) -> Self {
1948 match err {
1949 crate::operation::delete_algorithm::DeleteAlgorithmError::ConflictException(inner) => Error::ConflictException(inner),
1950 crate::operation::delete_algorithm::DeleteAlgorithmError::Unhandled(inner) => Error::Unhandled(inner),
1951 }
1952 }
1953}
1954impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app::DeleteAppError, R>> for Error
1955where
1956 R: Send + Sync + std::fmt::Debug + 'static,
1957{
1958 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app::DeleteAppError, R>) -> Self {
1959 match err {
1960 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1961 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1962 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1963 source: err.into(),
1964 }),
1965 }
1966 }
1967}
1968impl From<crate::operation::delete_app::DeleteAppError> for Error {
1969 fn from(err: crate::operation::delete_app::DeleteAppError) -> Self {
1970 match err {
1971 crate::operation::delete_app::DeleteAppError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1972 crate::operation::delete_app::DeleteAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1973 crate::operation::delete_app::DeleteAppError::Unhandled(inner) => Error::Unhandled(inner),
1974 }
1975 }
1976}
1977impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_image_config::DeleteAppImageConfigError, R>> for Error
1978where
1979 R: Send + Sync + std::fmt::Debug + 'static,
1980{
1981 fn from(
1982 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_image_config::DeleteAppImageConfigError, R>,
1983 ) -> Self {
1984 match err {
1985 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1986 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1987 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1988 source: err.into(),
1989 }),
1990 }
1991 }
1992}
1993impl From<crate::operation::delete_app_image_config::DeleteAppImageConfigError> for Error {
1994 fn from(err: crate::operation::delete_app_image_config::DeleteAppImageConfigError) -> Self {
1995 match err {
1996 crate::operation::delete_app_image_config::DeleteAppImageConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1997 crate::operation::delete_app_image_config::DeleteAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
1998 }
1999 }
2000}
2001impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_artifact::DeleteArtifactError, R>> for Error
2002where
2003 R: Send + Sync + std::fmt::Debug + 'static,
2004{
2005 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_artifact::DeleteArtifactError, R>) -> Self {
2006 match err {
2007 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2008 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2009 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2010 source: err.into(),
2011 }),
2012 }
2013 }
2014}
2015impl From<crate::operation::delete_artifact::DeleteArtifactError> for Error {
2016 fn from(err: crate::operation::delete_artifact::DeleteArtifactError) -> Self {
2017 match err {
2018 crate::operation::delete_artifact::DeleteArtifactError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2019 crate::operation::delete_artifact::DeleteArtifactError::Unhandled(inner) => Error::Unhandled(inner),
2020 }
2021 }
2022}
2023impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_association::DeleteAssociationError, R>> for Error
2024where
2025 R: Send + Sync + std::fmt::Debug + 'static,
2026{
2027 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_association::DeleteAssociationError, R>) -> Self {
2028 match err {
2029 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2030 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2031 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2032 source: err.into(),
2033 }),
2034 }
2035 }
2036}
2037impl From<crate::operation::delete_association::DeleteAssociationError> for Error {
2038 fn from(err: crate::operation::delete_association::DeleteAssociationError) -> Self {
2039 match err {
2040 crate::operation::delete_association::DeleteAssociationError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2041 crate::operation::delete_association::DeleteAssociationError::Unhandled(inner) => Error::Unhandled(inner),
2042 }
2043 }
2044}
2045impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster::DeleteClusterError, R>> for Error
2046where
2047 R: Send + Sync + std::fmt::Debug + 'static,
2048{
2049 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster::DeleteClusterError, R>) -> Self {
2050 match err {
2051 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2052 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2053 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2054 source: err.into(),
2055 }),
2056 }
2057 }
2058}
2059impl From<crate::operation::delete_cluster::DeleteClusterError> for Error {
2060 fn from(err: crate::operation::delete_cluster::DeleteClusterError) -> Self {
2061 match err {
2062 crate::operation::delete_cluster::DeleteClusterError::ConflictException(inner) => Error::ConflictException(inner),
2063 crate::operation::delete_cluster::DeleteClusterError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2064 crate::operation::delete_cluster::DeleteClusterError::Unhandled(inner) => Error::Unhandled(inner),
2065 }
2066 }
2067}
2068impl<R>
2069 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError, R>>
2070 for Error
2071where
2072 R: Send + Sync + std::fmt::Debug + 'static,
2073{
2074 fn from(
2075 err: ::aws_smithy_runtime_api::client::result::SdkError<
2076 crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError,
2077 R,
2078 >,
2079 ) -> Self {
2080 match err {
2081 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2082 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2083 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2084 source: err.into(),
2085 }),
2086 }
2087 }
2088}
2089impl From<crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError> for Error {
2090 fn from(err: crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError) -> Self {
2091 match err {
2092 crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError::ResourceNotFound(inner) => {
2093 Error::ResourceNotFound(inner)
2094 }
2095 crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
2096 }
2097 }
2098}
2099impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_code_repository::DeleteCodeRepositoryError, R>> for Error
2100where
2101 R: Send + Sync + std::fmt::Debug + 'static,
2102{
2103 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_code_repository::DeleteCodeRepositoryError, R>) -> Self {
2104 match err {
2105 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2106 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2107 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2108 source: err.into(),
2109 }),
2110 }
2111 }
2112}
2113impl From<crate::operation::delete_code_repository::DeleteCodeRepositoryError> for Error {
2114 fn from(err: crate::operation::delete_code_repository::DeleteCodeRepositoryError) -> Self {
2115 match err {
2116 crate::operation::delete_code_repository::DeleteCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
2117 }
2118 }
2119}
2120impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compilation_job::DeleteCompilationJobError, R>> for Error
2121where
2122 R: Send + Sync + std::fmt::Debug + 'static,
2123{
2124 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compilation_job::DeleteCompilationJobError, R>) -> Self {
2125 match err {
2126 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2127 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2128 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2129 source: err.into(),
2130 }),
2131 }
2132 }
2133}
2134impl From<crate::operation::delete_compilation_job::DeleteCompilationJobError> for Error {
2135 fn from(err: crate::operation::delete_compilation_job::DeleteCompilationJobError) -> Self {
2136 match err {
2137 crate::operation::delete_compilation_job::DeleteCompilationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2138 crate::operation::delete_compilation_job::DeleteCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
2139 }
2140 }
2141}
2142impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compute_quota::DeleteComputeQuotaError, R>> for Error
2143where
2144 R: Send + Sync + std::fmt::Debug + 'static,
2145{
2146 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compute_quota::DeleteComputeQuotaError, R>) -> Self {
2147 match err {
2148 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2149 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2150 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2151 source: err.into(),
2152 }),
2153 }
2154 }
2155}
2156impl From<crate::operation::delete_compute_quota::DeleteComputeQuotaError> for Error {
2157 fn from(err: crate::operation::delete_compute_quota::DeleteComputeQuotaError) -> Self {
2158 match err {
2159 crate::operation::delete_compute_quota::DeleteComputeQuotaError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2160 crate::operation::delete_compute_quota::DeleteComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
2161 }
2162 }
2163}
2164impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_context::DeleteContextError, R>> for Error
2165where
2166 R: Send + Sync + std::fmt::Debug + 'static,
2167{
2168 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_context::DeleteContextError, R>) -> Self {
2169 match err {
2170 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2171 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2172 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2173 source: err.into(),
2174 }),
2175 }
2176 }
2177}
2178impl From<crate::operation::delete_context::DeleteContextError> for Error {
2179 fn from(err: crate::operation::delete_context::DeleteContextError) -> Self {
2180 match err {
2181 crate::operation::delete_context::DeleteContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2182 crate::operation::delete_context::DeleteContextError::Unhandled(inner) => Error::Unhandled(inner),
2183 }
2184 }
2185}
2186impl<R>
2187 From<
2188 ::aws_smithy_runtime_api::client::result::SdkError<
2189 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError,
2190 R,
2191 >,
2192 > for Error
2193where
2194 R: Send + Sync + std::fmt::Debug + 'static,
2195{
2196 fn from(
2197 err: ::aws_smithy_runtime_api::client::result::SdkError<
2198 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError,
2199 R,
2200 >,
2201 ) -> Self {
2202 match err {
2203 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2204 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2205 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2206 source: err.into(),
2207 }),
2208 }
2209 }
2210}
2211impl From<crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError> for Error {
2212 fn from(err: crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError) -> Self {
2213 match err {
2214 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError::ResourceNotFound(inner) => {
2215 Error::ResourceNotFound(inner)
2216 }
2217 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2218 }
2219 }
2220}
2221impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device_fleet::DeleteDeviceFleetError, R>> for Error
2222where
2223 R: Send + Sync + std::fmt::Debug + 'static,
2224{
2225 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device_fleet::DeleteDeviceFleetError, R>) -> Self {
2226 match err {
2227 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2228 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2229 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2230 source: err.into(),
2231 }),
2232 }
2233 }
2234}
2235impl From<crate::operation::delete_device_fleet::DeleteDeviceFleetError> for Error {
2236 fn from(err: crate::operation::delete_device_fleet::DeleteDeviceFleetError) -> Self {
2237 match err {
2238 crate::operation::delete_device_fleet::DeleteDeviceFleetError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2239 crate::operation::delete_device_fleet::DeleteDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
2240 }
2241 }
2242}
2243impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>> for Error
2244where
2245 R: Send + Sync + std::fmt::Debug + 'static,
2246{
2247 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>) -> Self {
2248 match err {
2249 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2250 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2251 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2252 source: err.into(),
2253 }),
2254 }
2255 }
2256}
2257impl From<crate::operation::delete_domain::DeleteDomainError> for Error {
2258 fn from(err: crate::operation::delete_domain::DeleteDomainError) -> Self {
2259 match err {
2260 crate::operation::delete_domain::DeleteDomainError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2261 crate::operation::delete_domain::DeleteDomainError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2262 crate::operation::delete_domain::DeleteDomainError::Unhandled(inner) => Error::Unhandled(inner),
2263 }
2264 }
2265}
2266impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError, R>>
2267 for Error
2268where
2269 R: Send + Sync + std::fmt::Debug + 'static,
2270{
2271 fn from(
2272 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError, R>,
2273 ) -> Self {
2274 match err {
2275 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2276 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2277 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2278 source: err.into(),
2279 }),
2280 }
2281 }
2282}
2283impl From<crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError> for Error {
2284 fn from(err: crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError) -> Self {
2285 match err {
2286 crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2287 crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError::Unhandled(inner) => Error::Unhandled(inner),
2288 }
2289 }
2290}
2291impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError, R>>
2292 for Error
2293where
2294 R: Send + Sync + std::fmt::Debug + 'static,
2295{
2296 fn from(
2297 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError, R>,
2298 ) -> Self {
2299 match err {
2300 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2301 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2302 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2303 source: err.into(),
2304 }),
2305 }
2306 }
2307}
2308impl From<crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError> for Error {
2309 fn from(err: crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError) -> Self {
2310 match err {
2311 crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2312 crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
2313 }
2314 }
2315}
2316impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint::DeleteEndpointError, R>> for Error
2317where
2318 R: Send + Sync + std::fmt::Debug + 'static,
2319{
2320 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint::DeleteEndpointError, R>) -> Self {
2321 match err {
2322 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2323 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2324 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2325 source: err.into(),
2326 }),
2327 }
2328 }
2329}
2330impl From<crate::operation::delete_endpoint::DeleteEndpointError> for Error {
2331 fn from(err: crate::operation::delete_endpoint::DeleteEndpointError) -> Self {
2332 match err {
2333 crate::operation::delete_endpoint::DeleteEndpointError::Unhandled(inner) => Error::Unhandled(inner),
2334 }
2335 }
2336}
2337impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint_config::DeleteEndpointConfigError, R>> for Error
2338where
2339 R: Send + Sync + std::fmt::Debug + 'static,
2340{
2341 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint_config::DeleteEndpointConfigError, R>) -> Self {
2342 match err {
2343 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2344 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2345 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2346 source: err.into(),
2347 }),
2348 }
2349 }
2350}
2351impl From<crate::operation::delete_endpoint_config::DeleteEndpointConfigError> for Error {
2352 fn from(err: crate::operation::delete_endpoint_config::DeleteEndpointConfigError) -> Self {
2353 match err {
2354 crate::operation::delete_endpoint_config::DeleteEndpointConfigError::Unhandled(inner) => Error::Unhandled(inner),
2355 }
2356 }
2357}
2358impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_experiment::DeleteExperimentError, R>> for Error
2359where
2360 R: Send + Sync + std::fmt::Debug + 'static,
2361{
2362 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_experiment::DeleteExperimentError, R>) -> Self {
2363 match err {
2364 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2365 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2366 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2367 source: err.into(),
2368 }),
2369 }
2370 }
2371}
2372impl From<crate::operation::delete_experiment::DeleteExperimentError> for Error {
2373 fn from(err: crate::operation::delete_experiment::DeleteExperimentError) -> Self {
2374 match err {
2375 crate::operation::delete_experiment::DeleteExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2376 crate::operation::delete_experiment::DeleteExperimentError::Unhandled(inner) => Error::Unhandled(inner),
2377 }
2378 }
2379}
2380impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feature_group::DeleteFeatureGroupError, R>> for Error
2381where
2382 R: Send + Sync + std::fmt::Debug + 'static,
2383{
2384 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feature_group::DeleteFeatureGroupError, R>) -> Self {
2385 match err {
2386 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2387 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2388 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2389 source: err.into(),
2390 }),
2391 }
2392 }
2393}
2394impl From<crate::operation::delete_feature_group::DeleteFeatureGroupError> for Error {
2395 fn from(err: crate::operation::delete_feature_group::DeleteFeatureGroupError) -> Self {
2396 match err {
2397 crate::operation::delete_feature_group::DeleteFeatureGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2398 crate::operation::delete_feature_group::DeleteFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
2399 }
2400 }
2401}
2402impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_definition::DeleteFlowDefinitionError, R>> for Error
2403where
2404 R: Send + Sync + std::fmt::Debug + 'static,
2405{
2406 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_definition::DeleteFlowDefinitionError, R>) -> Self {
2407 match err {
2408 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2409 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2410 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2411 source: err.into(),
2412 }),
2413 }
2414 }
2415}
2416impl From<crate::operation::delete_flow_definition::DeleteFlowDefinitionError> for Error {
2417 fn from(err: crate::operation::delete_flow_definition::DeleteFlowDefinitionError) -> Self {
2418 match err {
2419 crate::operation::delete_flow_definition::DeleteFlowDefinitionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2420 crate::operation::delete_flow_definition::DeleteFlowDefinitionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2421 crate::operation::delete_flow_definition::DeleteFlowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2422 }
2423 }
2424}
2425impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub::DeleteHubError, R>> for Error
2426where
2427 R: Send + Sync + std::fmt::Debug + 'static,
2428{
2429 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub::DeleteHubError, R>) -> Self {
2430 match err {
2431 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2432 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2433 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2434 source: err.into(),
2435 }),
2436 }
2437 }
2438}
2439impl From<crate::operation::delete_hub::DeleteHubError> for Error {
2440 fn from(err: crate::operation::delete_hub::DeleteHubError) -> Self {
2441 match err {
2442 crate::operation::delete_hub::DeleteHubError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2443 crate::operation::delete_hub::DeleteHubError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2444 crate::operation::delete_hub::DeleteHubError::Unhandled(inner) => Error::Unhandled(inner),
2445 }
2446 }
2447}
2448impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content::DeleteHubContentError, R>> for Error
2449where
2450 R: Send + Sync + std::fmt::Debug + 'static,
2451{
2452 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content::DeleteHubContentError, R>) -> Self {
2453 match err {
2454 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2455 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2456 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2457 source: err.into(),
2458 }),
2459 }
2460 }
2461}
2462impl From<crate::operation::delete_hub_content::DeleteHubContentError> for Error {
2463 fn from(err: crate::operation::delete_hub_content::DeleteHubContentError) -> Self {
2464 match err {
2465 crate::operation::delete_hub_content::DeleteHubContentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2466 crate::operation::delete_hub_content::DeleteHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2467 crate::operation::delete_hub_content::DeleteHubContentError::Unhandled(inner) => Error::Unhandled(inner),
2468 }
2469 }
2470}
2471impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError, R>>
2472 for Error
2473where
2474 R: Send + Sync + std::fmt::Debug + 'static,
2475{
2476 fn from(
2477 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError, R>,
2478 ) -> Self {
2479 match err {
2480 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2481 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2482 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2483 source: err.into(),
2484 }),
2485 }
2486 }
2487}
2488impl From<crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError> for Error {
2489 fn from(err: crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError) -> Self {
2490 match err {
2491 crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2492 crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError::Unhandled(inner) => Error::Unhandled(inner),
2493 }
2494 }
2495}
2496impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_human_task_ui::DeleteHumanTaskUiError, R>> for Error
2497where
2498 R: Send + Sync + std::fmt::Debug + 'static,
2499{
2500 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_human_task_ui::DeleteHumanTaskUiError, R>) -> Self {
2501 match err {
2502 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2503 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2504 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2505 source: err.into(),
2506 }),
2507 }
2508 }
2509}
2510impl From<crate::operation::delete_human_task_ui::DeleteHumanTaskUiError> for Error {
2511 fn from(err: crate::operation::delete_human_task_ui::DeleteHumanTaskUiError) -> Self {
2512 match err {
2513 crate::operation::delete_human_task_ui::DeleteHumanTaskUiError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2514 crate::operation::delete_human_task_ui::DeleteHumanTaskUiError::Unhandled(inner) => Error::Unhandled(inner),
2515 }
2516 }
2517}
2518impl<R>
2519 From<
2520 ::aws_smithy_runtime_api::client::result::SdkError<
2521 crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError,
2522 R,
2523 >,
2524 > for Error
2525where
2526 R: Send + Sync + std::fmt::Debug + 'static,
2527{
2528 fn from(
2529 err: ::aws_smithy_runtime_api::client::result::SdkError<
2530 crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError,
2531 R,
2532 >,
2533 ) -> Self {
2534 match err {
2535 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2536 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2537 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2538 source: err.into(),
2539 }),
2540 }
2541 }
2542}
2543impl From<crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError> for Error {
2544 fn from(err: crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError) -> Self {
2545 match err {
2546 crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
2547 }
2548 }
2549}
2550impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image::DeleteImageError, R>> for Error
2551where
2552 R: Send + Sync + std::fmt::Debug + 'static,
2553{
2554 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image::DeleteImageError, R>) -> Self {
2555 match err {
2556 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2557 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2558 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2559 source: err.into(),
2560 }),
2561 }
2562 }
2563}
2564impl From<crate::operation::delete_image::DeleteImageError> for Error {
2565 fn from(err: crate::operation::delete_image::DeleteImageError) -> Self {
2566 match err {
2567 crate::operation::delete_image::DeleteImageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2568 crate::operation::delete_image::DeleteImageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2569 crate::operation::delete_image::DeleteImageError::Unhandled(inner) => Error::Unhandled(inner),
2570 }
2571 }
2572}
2573impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_version::DeleteImageVersionError, R>> for Error
2574where
2575 R: Send + Sync + std::fmt::Debug + 'static,
2576{
2577 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_version::DeleteImageVersionError, R>) -> Self {
2578 match err {
2579 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2580 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2581 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2582 source: err.into(),
2583 }),
2584 }
2585 }
2586}
2587impl From<crate::operation::delete_image_version::DeleteImageVersionError> for Error {
2588 fn from(err: crate::operation::delete_image_version::DeleteImageVersionError) -> Self {
2589 match err {
2590 crate::operation::delete_image_version::DeleteImageVersionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2591 crate::operation::delete_image_version::DeleteImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2592 crate::operation::delete_image_version::DeleteImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
2593 }
2594 }
2595}
2596impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_component::DeleteInferenceComponentError, R>>
2597 for Error
2598where
2599 R: Send + Sync + std::fmt::Debug + 'static,
2600{
2601 fn from(
2602 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_component::DeleteInferenceComponentError, R>,
2603 ) -> Self {
2604 match err {
2605 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2606 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2607 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2608 source: err.into(),
2609 }),
2610 }
2611 }
2612}
2613impl From<crate::operation::delete_inference_component::DeleteInferenceComponentError> for Error {
2614 fn from(err: crate::operation::delete_inference_component::DeleteInferenceComponentError) -> Self {
2615 match err {
2616 crate::operation::delete_inference_component::DeleteInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
2617 }
2618 }
2619}
2620impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_experiment::DeleteInferenceExperimentError, R>>
2621 for Error
2622where
2623 R: Send + Sync + std::fmt::Debug + 'static,
2624{
2625 fn from(
2626 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_experiment::DeleteInferenceExperimentError, R>,
2627 ) -> Self {
2628 match err {
2629 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2630 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2631 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2632 source: err.into(),
2633 }),
2634 }
2635 }
2636}
2637impl From<crate::operation::delete_inference_experiment::DeleteInferenceExperimentError> for Error {
2638 fn from(err: crate::operation::delete_inference_experiment::DeleteInferenceExperimentError) -> Self {
2639 match err {
2640 crate::operation::delete_inference_experiment::DeleteInferenceExperimentError::ConflictException(inner) => {
2641 Error::ConflictException(inner)
2642 }
2643 crate::operation::delete_inference_experiment::DeleteInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2644 crate::operation::delete_inference_experiment::DeleteInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
2645 }
2646 }
2647}
2648impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError, R>>
2649 for Error
2650where
2651 R: Send + Sync + std::fmt::Debug + 'static,
2652{
2653 fn from(
2654 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError, R>,
2655 ) -> Self {
2656 match err {
2657 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2658 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2659 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2660 source: err.into(),
2661 }),
2662 }
2663 }
2664}
2665impl From<crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError> for Error {
2666 fn from(err: crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError) -> Self {
2667 match err {
2668 crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError::ResourceNotFound(inner) => {
2669 Error::ResourceNotFound(inner)
2670 }
2671 crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
2672 }
2673 }
2674}
2675impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model::DeleteModelError, R>> for Error
2676where
2677 R: Send + Sync + std::fmt::Debug + 'static,
2678{
2679 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model::DeleteModelError, R>) -> Self {
2680 match err {
2681 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2682 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2683 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2684 source: err.into(),
2685 }),
2686 }
2687 }
2688}
2689impl From<crate::operation::delete_model::DeleteModelError> for Error {
2690 fn from(err: crate::operation::delete_model::DeleteModelError) -> Self {
2691 match err {
2692 crate::operation::delete_model::DeleteModelError::Unhandled(inner) => Error::Unhandled(inner),
2693 }
2694 }
2695}
2696impl<R>
2697 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError, R>>
2698 for Error
2699where
2700 R: Send + Sync + std::fmt::Debug + 'static,
2701{
2702 fn from(
2703 err: ::aws_smithy_runtime_api::client::result::SdkError<
2704 crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError,
2705 R,
2706 >,
2707 ) -> Self {
2708 match err {
2709 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2710 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2711 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2712 source: err.into(),
2713 }),
2714 }
2715 }
2716}
2717impl From<crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError> for Error {
2718 fn from(err: crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError) -> Self {
2719 match err {
2720 crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError::ResourceNotFound(inner) => {
2721 Error::ResourceNotFound(inner)
2722 }
2723 crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2724 }
2725 }
2726}
2727impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_card::DeleteModelCardError, R>> for Error
2728where
2729 R: Send + Sync + std::fmt::Debug + 'static,
2730{
2731 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_card::DeleteModelCardError, R>) -> Self {
2732 match err {
2733 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2734 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2735 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2736 source: err.into(),
2737 }),
2738 }
2739 }
2740}
2741impl From<crate::operation::delete_model_card::DeleteModelCardError> for Error {
2742 fn from(err: crate::operation::delete_model_card::DeleteModelCardError) -> Self {
2743 match err {
2744 crate::operation::delete_model_card::DeleteModelCardError::ConflictException(inner) => Error::ConflictException(inner),
2745 crate::operation::delete_model_card::DeleteModelCardError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2746 crate::operation::delete_model_card::DeleteModelCardError::Unhandled(inner) => Error::Unhandled(inner),
2747 }
2748 }
2749}
2750impl<R>
2751 From<
2752 ::aws_smithy_runtime_api::client::result::SdkError<
2753 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError,
2754 R,
2755 >,
2756 > for Error
2757where
2758 R: Send + Sync + std::fmt::Debug + 'static,
2759{
2760 fn from(
2761 err: ::aws_smithy_runtime_api::client::result::SdkError<
2762 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError,
2763 R,
2764 >,
2765 ) -> Self {
2766 match err {
2767 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2768 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2769 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2770 source: err.into(),
2771 }),
2772 }
2773 }
2774}
2775impl From<crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError> for Error {
2776 fn from(err: crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError) -> Self {
2777 match err {
2778 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError::ResourceNotFound(inner) => {
2779 Error::ResourceNotFound(inner)
2780 }
2781 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError::Unhandled(inner) => {
2782 Error::Unhandled(inner)
2783 }
2784 }
2785 }
2786}
2787impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package::DeleteModelPackageError, R>> for Error
2788where
2789 R: Send + Sync + std::fmt::Debug + 'static,
2790{
2791 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package::DeleteModelPackageError, R>) -> Self {
2792 match err {
2793 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2794 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2795 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2796 source: err.into(),
2797 }),
2798 }
2799 }
2800}
2801impl From<crate::operation::delete_model_package::DeleteModelPackageError> for Error {
2802 fn from(err: crate::operation::delete_model_package::DeleteModelPackageError) -> Self {
2803 match err {
2804 crate::operation::delete_model_package::DeleteModelPackageError::ConflictException(inner) => Error::ConflictException(inner),
2805 crate::operation::delete_model_package::DeleteModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
2806 }
2807 }
2808}
2809impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package_group::DeleteModelPackageGroupError, R>>
2810 for Error
2811where
2812 R: Send + Sync + std::fmt::Debug + 'static,
2813{
2814 fn from(
2815 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package_group::DeleteModelPackageGroupError, R>,
2816 ) -> Self {
2817 match err {
2818 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2819 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2820 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2821 source: err.into(),
2822 }),
2823 }
2824 }
2825}
2826impl From<crate::operation::delete_model_package_group::DeleteModelPackageGroupError> for Error {
2827 fn from(err: crate::operation::delete_model_package_group::DeleteModelPackageGroupError) -> Self {
2828 match err {
2829 crate::operation::delete_model_package_group::DeleteModelPackageGroupError::ConflictException(inner) => Error::ConflictException(inner),
2830 crate::operation::delete_model_package_group::DeleteModelPackageGroupError::Unhandled(inner) => Error::Unhandled(inner),
2831 }
2832 }
2833}
2834impl<R>
2835 From<
2836 ::aws_smithy_runtime_api::client::result::SdkError<
2837 crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError,
2838 R,
2839 >,
2840 > for Error
2841where
2842 R: Send + Sync + std::fmt::Debug + 'static,
2843{
2844 fn from(
2845 err: ::aws_smithy_runtime_api::client::result::SdkError<
2846 crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError,
2847 R,
2848 >,
2849 ) -> Self {
2850 match err {
2851 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2852 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2853 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2854 source: err.into(),
2855 }),
2856 }
2857 }
2858}
2859impl From<crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError> for Error {
2860 fn from(err: crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError) -> Self {
2861 match err {
2862 crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2863 }
2864 }
2865}
2866impl<R>
2867 From<
2868 ::aws_smithy_runtime_api::client::result::SdkError<
2869 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError,
2870 R,
2871 >,
2872 > for Error
2873where
2874 R: Send + Sync + std::fmt::Debug + 'static,
2875{
2876 fn from(
2877 err: ::aws_smithy_runtime_api::client::result::SdkError<
2878 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError,
2879 R,
2880 >,
2881 ) -> Self {
2882 match err {
2883 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2884 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2885 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2886 source: err.into(),
2887 }),
2888 }
2889 }
2890}
2891impl From<crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError> for Error {
2892 fn from(err: crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError) -> Self {
2893 match err {
2894 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError::ResourceNotFound(inner) => {
2895 Error::ResourceNotFound(inner)
2896 }
2897 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2898 }
2899 }
2900}
2901impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError, R>>
2902 for Error
2903where
2904 R: Send + Sync + std::fmt::Debug + 'static,
2905{
2906 fn from(
2907 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError, R>,
2908 ) -> Self {
2909 match err {
2910 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2911 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2912 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2913 source: err.into(),
2914 }),
2915 }
2916 }
2917}
2918impl From<crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError> for Error {
2919 fn from(err: crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError) -> Self {
2920 match err {
2921 crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2922 crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
2923 }
2924 }
2925}
2926impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notebook_instance::DeleteNotebookInstanceError, R>> for Error
2927where
2928 R: Send + Sync + std::fmt::Debug + 'static,
2929{
2930 fn from(
2931 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notebook_instance::DeleteNotebookInstanceError, R>,
2932 ) -> Self {
2933 match err {
2934 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2935 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2936 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2937 source: err.into(),
2938 }),
2939 }
2940 }
2941}
2942impl From<crate::operation::delete_notebook_instance::DeleteNotebookInstanceError> for Error {
2943 fn from(err: crate::operation::delete_notebook_instance::DeleteNotebookInstanceError) -> Self {
2944 match err {
2945 crate::operation::delete_notebook_instance::DeleteNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
2946 }
2947 }
2948}
2949impl<R>
2950 From<
2951 ::aws_smithy_runtime_api::client::result::SdkError<
2952 crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError,
2953 R,
2954 >,
2955 > for Error
2956where
2957 R: Send + Sync + std::fmt::Debug + 'static,
2958{
2959 fn from(
2960 err: ::aws_smithy_runtime_api::client::result::SdkError<
2961 crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError,
2962 R,
2963 >,
2964 ) -> Self {
2965 match err {
2966 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2967 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2968 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2969 source: err.into(),
2970 }),
2971 }
2972 }
2973}
2974impl From<crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError> for Error {
2975 fn from(err: crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError) -> Self {
2976 match err {
2977 crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
2978 Error::Unhandled(inner)
2979 }
2980 }
2981 }
2982}
2983impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_optimization_job::DeleteOptimizationJobError, R>> for Error
2984where
2985 R: Send + Sync + std::fmt::Debug + 'static,
2986{
2987 fn from(
2988 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_optimization_job::DeleteOptimizationJobError, R>,
2989 ) -> Self {
2990 match err {
2991 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2992 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2993 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2994 source: err.into(),
2995 }),
2996 }
2997 }
2998}
2999impl From<crate::operation::delete_optimization_job::DeleteOptimizationJobError> for Error {
3000 fn from(err: crate::operation::delete_optimization_job::DeleteOptimizationJobError) -> Self {
3001 match err {
3002 crate::operation::delete_optimization_job::DeleteOptimizationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3003 crate::operation::delete_optimization_job::DeleteOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
3004 }
3005 }
3006}
3007impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_partner_app::DeletePartnerAppError, R>> for Error
3008where
3009 R: Send + Sync + std::fmt::Debug + 'static,
3010{
3011 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_partner_app::DeletePartnerAppError, R>) -> Self {
3012 match err {
3013 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3014 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3015 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3016 source: err.into(),
3017 }),
3018 }
3019 }
3020}
3021impl From<crate::operation::delete_partner_app::DeletePartnerAppError> for Error {
3022 fn from(err: crate::operation::delete_partner_app::DeletePartnerAppError) -> Self {
3023 match err {
3024 crate::operation::delete_partner_app::DeletePartnerAppError::ConflictException(inner) => Error::ConflictException(inner),
3025 crate::operation::delete_partner_app::DeletePartnerAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3026 crate::operation::delete_partner_app::DeletePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
3027 }
3028 }
3029}
3030impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pipeline::DeletePipelineError, R>> for Error
3031where
3032 R: Send + Sync + std::fmt::Debug + 'static,
3033{
3034 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pipeline::DeletePipelineError, R>) -> Self {
3035 match err {
3036 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3037 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3038 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3039 source: err.into(),
3040 }),
3041 }
3042 }
3043}
3044impl From<crate::operation::delete_pipeline::DeletePipelineError> for Error {
3045 fn from(err: crate::operation::delete_pipeline::DeletePipelineError) -> Self {
3046 match err {
3047 crate::operation::delete_pipeline::DeletePipelineError::ConflictException(inner) => Error::ConflictException(inner),
3048 crate::operation::delete_pipeline::DeletePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3049 crate::operation::delete_pipeline::DeletePipelineError::Unhandled(inner) => Error::Unhandled(inner),
3050 }
3051 }
3052}
3053impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>> for Error
3054where
3055 R: Send + Sync + std::fmt::Debug + 'static,
3056{
3057 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>) -> Self {
3058 match err {
3059 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3060 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3061 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3062 source: err.into(),
3063 }),
3064 }
3065 }
3066}
3067impl From<crate::operation::delete_project::DeleteProjectError> for Error {
3068 fn from(err: crate::operation::delete_project::DeleteProjectError) -> Self {
3069 match err {
3070 crate::operation::delete_project::DeleteProjectError::ConflictException(inner) => Error::ConflictException(inner),
3071 crate::operation::delete_project::DeleteProjectError::Unhandled(inner) => Error::Unhandled(inner),
3072 }
3073 }
3074}
3075impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_space::DeleteSpaceError, R>> for Error
3076where
3077 R: Send + Sync + std::fmt::Debug + 'static,
3078{
3079 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_space::DeleteSpaceError, R>) -> Self {
3080 match err {
3081 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3082 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3083 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3084 source: err.into(),
3085 }),
3086 }
3087 }
3088}
3089impl From<crate::operation::delete_space::DeleteSpaceError> for Error {
3090 fn from(err: crate::operation::delete_space::DeleteSpaceError) -> Self {
3091 match err {
3092 crate::operation::delete_space::DeleteSpaceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3093 crate::operation::delete_space::DeleteSpaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3094 crate::operation::delete_space::DeleteSpaceError::Unhandled(inner) => Error::Unhandled(inner),
3095 }
3096 }
3097}
3098impl<R>
3099 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError, R>>
3100 for Error
3101where
3102 R: Send + Sync + std::fmt::Debug + 'static,
3103{
3104 fn from(
3105 err: ::aws_smithy_runtime_api::client::result::SdkError<
3106 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError,
3107 R,
3108 >,
3109 ) -> Self {
3110 match err {
3111 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3112 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3113 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3114 source: err.into(),
3115 }),
3116 }
3117 }
3118}
3119impl From<crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError> for Error {
3120 fn from(err: crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError) -> Self {
3121 match err {
3122 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3123 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError::ResourceNotFound(inner) => {
3124 Error::ResourceNotFound(inner)
3125 }
3126 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError::Unhandled(inner) => Error::Unhandled(inner),
3127 }
3128 }
3129}
3130impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>> for Error
3131where
3132 R: Send + Sync + std::fmt::Debug + 'static,
3133{
3134 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>) -> Self {
3135 match err {
3136 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3137 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3138 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3139 source: err.into(),
3140 }),
3141 }
3142 }
3143}
3144impl From<crate::operation::delete_tags::DeleteTagsError> for Error {
3145 fn from(err: crate::operation::delete_tags::DeleteTagsError) -> Self {
3146 match err {
3147 crate::operation::delete_tags::DeleteTagsError::Unhandled(inner) => Error::Unhandled(inner),
3148 }
3149 }
3150}
3151impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial::DeleteTrialError, R>> for Error
3152where
3153 R: Send + Sync + std::fmt::Debug + 'static,
3154{
3155 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial::DeleteTrialError, R>) -> Self {
3156 match err {
3157 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3158 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3159 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3160 source: err.into(),
3161 }),
3162 }
3163 }
3164}
3165impl From<crate::operation::delete_trial::DeleteTrialError> for Error {
3166 fn from(err: crate::operation::delete_trial::DeleteTrialError) -> Self {
3167 match err {
3168 crate::operation::delete_trial::DeleteTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3169 crate::operation::delete_trial::DeleteTrialError::Unhandled(inner) => Error::Unhandled(inner),
3170 }
3171 }
3172}
3173impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial_component::DeleteTrialComponentError, R>> for Error
3174where
3175 R: Send + Sync + std::fmt::Debug + 'static,
3176{
3177 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial_component::DeleteTrialComponentError, R>) -> Self {
3178 match err {
3179 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3180 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3181 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3182 source: err.into(),
3183 }),
3184 }
3185 }
3186}
3187impl From<crate::operation::delete_trial_component::DeleteTrialComponentError> for Error {
3188 fn from(err: crate::operation::delete_trial_component::DeleteTrialComponentError) -> Self {
3189 match err {
3190 crate::operation::delete_trial_component::DeleteTrialComponentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3191 crate::operation::delete_trial_component::DeleteTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
3192 }
3193 }
3194}
3195impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_profile::DeleteUserProfileError, R>> for Error
3196where
3197 R: Send + Sync + std::fmt::Debug + 'static,
3198{
3199 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_profile::DeleteUserProfileError, R>) -> Self {
3200 match err {
3201 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3202 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3203 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3204 source: err.into(),
3205 }),
3206 }
3207 }
3208}
3209impl From<crate::operation::delete_user_profile::DeleteUserProfileError> for Error {
3210 fn from(err: crate::operation::delete_user_profile::DeleteUserProfileError) -> Self {
3211 match err {
3212 crate::operation::delete_user_profile::DeleteUserProfileError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3213 crate::operation::delete_user_profile::DeleteUserProfileError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3214 crate::operation::delete_user_profile::DeleteUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
3215 }
3216 }
3217}
3218impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workforce::DeleteWorkforceError, R>> for Error
3219where
3220 R: Send + Sync + std::fmt::Debug + 'static,
3221{
3222 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workforce::DeleteWorkforceError, R>) -> Self {
3223 match err {
3224 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3225 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3226 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3227 source: err.into(),
3228 }),
3229 }
3230 }
3231}
3232impl From<crate::operation::delete_workforce::DeleteWorkforceError> for Error {
3233 fn from(err: crate::operation::delete_workforce::DeleteWorkforceError) -> Self {
3234 match err {
3235 crate::operation::delete_workforce::DeleteWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
3236 }
3237 }
3238}
3239impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workteam::DeleteWorkteamError, R>> for Error
3240where
3241 R: Send + Sync + std::fmt::Debug + 'static,
3242{
3243 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workteam::DeleteWorkteamError, R>) -> Self {
3244 match err {
3245 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3246 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3247 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3248 source: err.into(),
3249 }),
3250 }
3251 }
3252}
3253impl From<crate::operation::delete_workteam::DeleteWorkteamError> for Error {
3254 fn from(err: crate::operation::delete_workteam::DeleteWorkteamError) -> Self {
3255 match err {
3256 crate::operation::delete_workteam::DeleteWorkteamError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
3257 crate::operation::delete_workteam::DeleteWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
3258 }
3259 }
3260}
3261impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_devices::DeregisterDevicesError, R>> for Error
3262where
3263 R: Send + Sync + std::fmt::Debug + 'static,
3264{
3265 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_devices::DeregisterDevicesError, R>) -> Self {
3266 match err {
3267 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3268 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3269 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3270 source: err.into(),
3271 }),
3272 }
3273 }
3274}
3275impl From<crate::operation::deregister_devices::DeregisterDevicesError> for Error {
3276 fn from(err: crate::operation::deregister_devices::DeregisterDevicesError) -> Self {
3277 match err {
3278 crate::operation::deregister_devices::DeregisterDevicesError::Unhandled(inner) => Error::Unhandled(inner),
3279 }
3280 }
3281}
3282impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_action::DescribeActionError, R>> for Error
3283where
3284 R: Send + Sync + std::fmt::Debug + 'static,
3285{
3286 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_action::DescribeActionError, R>) -> Self {
3287 match err {
3288 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3289 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3290 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3291 source: err.into(),
3292 }),
3293 }
3294 }
3295}
3296impl From<crate::operation::describe_action::DescribeActionError> for Error {
3297 fn from(err: crate::operation::describe_action::DescribeActionError) -> Self {
3298 match err {
3299 crate::operation::describe_action::DescribeActionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3300 crate::operation::describe_action::DescribeActionError::Unhandled(inner) => Error::Unhandled(inner),
3301 }
3302 }
3303}
3304impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_algorithm::DescribeAlgorithmError, R>> for Error
3305where
3306 R: Send + Sync + std::fmt::Debug + 'static,
3307{
3308 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_algorithm::DescribeAlgorithmError, R>) -> Self {
3309 match err {
3310 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3311 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3312 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3313 source: err.into(),
3314 }),
3315 }
3316 }
3317}
3318impl From<crate::operation::describe_algorithm::DescribeAlgorithmError> for Error {
3319 fn from(err: crate::operation::describe_algorithm::DescribeAlgorithmError) -> Self {
3320 match err {
3321 crate::operation::describe_algorithm::DescribeAlgorithmError::Unhandled(inner) => Error::Unhandled(inner),
3322 }
3323 }
3324}
3325impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app::DescribeAppError, R>> for Error
3326where
3327 R: Send + Sync + std::fmt::Debug + 'static,
3328{
3329 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app::DescribeAppError, R>) -> Self {
3330 match err {
3331 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3332 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3333 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3334 source: err.into(),
3335 }),
3336 }
3337 }
3338}
3339impl From<crate::operation::describe_app::DescribeAppError> for Error {
3340 fn from(err: crate::operation::describe_app::DescribeAppError) -> Self {
3341 match err {
3342 crate::operation::describe_app::DescribeAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3343 crate::operation::describe_app::DescribeAppError::Unhandled(inner) => Error::Unhandled(inner),
3344 }
3345 }
3346}
3347impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_image_config::DescribeAppImageConfigError, R>>
3348 for Error
3349where
3350 R: Send + Sync + std::fmt::Debug + 'static,
3351{
3352 fn from(
3353 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_image_config::DescribeAppImageConfigError, R>,
3354 ) -> Self {
3355 match err {
3356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3359 source: err.into(),
3360 }),
3361 }
3362 }
3363}
3364impl From<crate::operation::describe_app_image_config::DescribeAppImageConfigError> for Error {
3365 fn from(err: crate::operation::describe_app_image_config::DescribeAppImageConfigError) -> Self {
3366 match err {
3367 crate::operation::describe_app_image_config::DescribeAppImageConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3368 crate::operation::describe_app_image_config::DescribeAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
3369 }
3370 }
3371}
3372impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_artifact::DescribeArtifactError, R>> for Error
3373where
3374 R: Send + Sync + std::fmt::Debug + 'static,
3375{
3376 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_artifact::DescribeArtifactError, R>) -> Self {
3377 match err {
3378 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3379 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3380 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3381 source: err.into(),
3382 }),
3383 }
3384 }
3385}
3386impl From<crate::operation::describe_artifact::DescribeArtifactError> for Error {
3387 fn from(err: crate::operation::describe_artifact::DescribeArtifactError) -> Self {
3388 match err {
3389 crate::operation::describe_artifact::DescribeArtifactError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3390 crate::operation::describe_artifact::DescribeArtifactError::Unhandled(inner) => Error::Unhandled(inner),
3391 }
3392 }
3393}
3394impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job::DescribeAutoMLJobError, R>> for Error
3395where
3396 R: Send + Sync + std::fmt::Debug + 'static,
3397{
3398 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job::DescribeAutoMLJobError, R>) -> Self {
3399 match err {
3400 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3401 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3402 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3403 source: err.into(),
3404 }),
3405 }
3406 }
3407}
3408impl From<crate::operation::describe_auto_ml_job::DescribeAutoMLJobError> for Error {
3409 fn from(err: crate::operation::describe_auto_ml_job::DescribeAutoMLJobError) -> Self {
3410 match err {
3411 crate::operation::describe_auto_ml_job::DescribeAutoMLJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3412 crate::operation::describe_auto_ml_job::DescribeAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
3413 }
3414 }
3415}
3416impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error, R>> for Error
3417where
3418 R: Send + Sync + std::fmt::Debug + 'static,
3419{
3420 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error, R>) -> Self {
3421 match err {
3422 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3423 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3424 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3425 source: err.into(),
3426 }),
3427 }
3428 }
3429}
3430impl From<crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error> for Error {
3431 fn from(err: crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error) -> Self {
3432 match err {
3433 crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3434 crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error::Unhandled(inner) => Error::Unhandled(inner),
3435 }
3436 }
3437}
3438impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster::DescribeClusterError, R>> for Error
3439where
3440 R: Send + Sync + std::fmt::Debug + 'static,
3441{
3442 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster::DescribeClusterError, R>) -> Self {
3443 match err {
3444 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3445 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3446 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3447 source: err.into(),
3448 }),
3449 }
3450 }
3451}
3452impl From<crate::operation::describe_cluster::DescribeClusterError> for Error {
3453 fn from(err: crate::operation::describe_cluster::DescribeClusterError) -> Self {
3454 match err {
3455 crate::operation::describe_cluster::DescribeClusterError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3456 crate::operation::describe_cluster::DescribeClusterError::Unhandled(inner) => Error::Unhandled(inner),
3457 }
3458 }
3459}
3460impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_node::DescribeClusterNodeError, R>> for Error
3461where
3462 R: Send + Sync + std::fmt::Debug + 'static,
3463{
3464 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_node::DescribeClusterNodeError, R>) -> Self {
3465 match err {
3466 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3467 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3468 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3469 source: err.into(),
3470 }),
3471 }
3472 }
3473}
3474impl From<crate::operation::describe_cluster_node::DescribeClusterNodeError> for Error {
3475 fn from(err: crate::operation::describe_cluster_node::DescribeClusterNodeError) -> Self {
3476 match err {
3477 crate::operation::describe_cluster_node::DescribeClusterNodeError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3478 crate::operation::describe_cluster_node::DescribeClusterNodeError::Unhandled(inner) => Error::Unhandled(inner),
3479 }
3480 }
3481}
3482impl<R>
3483 From<
3484 ::aws_smithy_runtime_api::client::result::SdkError<
3485 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError,
3486 R,
3487 >,
3488 > for Error
3489where
3490 R: Send + Sync + std::fmt::Debug + 'static,
3491{
3492 fn from(
3493 err: ::aws_smithy_runtime_api::client::result::SdkError<
3494 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError,
3495 R,
3496 >,
3497 ) -> Self {
3498 match err {
3499 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3500 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3501 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3502 source: err.into(),
3503 }),
3504 }
3505 }
3506}
3507impl From<crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError> for Error {
3508 fn from(err: crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError) -> Self {
3509 match err {
3510 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError::ResourceNotFound(inner) => {
3511 Error::ResourceNotFound(inner)
3512 }
3513 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
3514 }
3515 }
3516}
3517impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_code_repository::DescribeCodeRepositoryError, R>> for Error
3518where
3519 R: Send + Sync + std::fmt::Debug + 'static,
3520{
3521 fn from(
3522 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_code_repository::DescribeCodeRepositoryError, R>,
3523 ) -> Self {
3524 match err {
3525 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3526 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3527 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3528 source: err.into(),
3529 }),
3530 }
3531 }
3532}
3533impl From<crate::operation::describe_code_repository::DescribeCodeRepositoryError> for Error {
3534 fn from(err: crate::operation::describe_code_repository::DescribeCodeRepositoryError) -> Self {
3535 match err {
3536 crate::operation::describe_code_repository::DescribeCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
3537 }
3538 }
3539}
3540impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compilation_job::DescribeCompilationJobError, R>> for Error
3541where
3542 R: Send + Sync + std::fmt::Debug + 'static,
3543{
3544 fn from(
3545 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compilation_job::DescribeCompilationJobError, R>,
3546 ) -> Self {
3547 match err {
3548 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3549 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3550 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3551 source: err.into(),
3552 }),
3553 }
3554 }
3555}
3556impl From<crate::operation::describe_compilation_job::DescribeCompilationJobError> for Error {
3557 fn from(err: crate::operation::describe_compilation_job::DescribeCompilationJobError) -> Self {
3558 match err {
3559 crate::operation::describe_compilation_job::DescribeCompilationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3560 crate::operation::describe_compilation_job::DescribeCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
3561 }
3562 }
3563}
3564impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compute_quota::DescribeComputeQuotaError, R>> for Error
3565where
3566 R: Send + Sync + std::fmt::Debug + 'static,
3567{
3568 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compute_quota::DescribeComputeQuotaError, R>) -> Self {
3569 match err {
3570 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3571 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3572 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3573 source: err.into(),
3574 }),
3575 }
3576 }
3577}
3578impl From<crate::operation::describe_compute_quota::DescribeComputeQuotaError> for Error {
3579 fn from(err: crate::operation::describe_compute_quota::DescribeComputeQuotaError) -> Self {
3580 match err {
3581 crate::operation::describe_compute_quota::DescribeComputeQuotaError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3582 crate::operation::describe_compute_quota::DescribeComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
3583 }
3584 }
3585}
3586impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_context::DescribeContextError, R>> for Error
3587where
3588 R: Send + Sync + std::fmt::Debug + 'static,
3589{
3590 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_context::DescribeContextError, R>) -> Self {
3591 match err {
3592 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3593 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3594 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3595 source: err.into(),
3596 }),
3597 }
3598 }
3599}
3600impl From<crate::operation::describe_context::DescribeContextError> for Error {
3601 fn from(err: crate::operation::describe_context::DescribeContextError) -> Self {
3602 match err {
3603 crate::operation::describe_context::DescribeContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3604 crate::operation::describe_context::DescribeContextError::Unhandled(inner) => Error::Unhandled(inner),
3605 }
3606 }
3607}
3608impl<R>
3609 From<
3610 ::aws_smithy_runtime_api::client::result::SdkError<
3611 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError,
3612 R,
3613 >,
3614 > for Error
3615where
3616 R: Send + Sync + std::fmt::Debug + 'static,
3617{
3618 fn from(
3619 err: ::aws_smithy_runtime_api::client::result::SdkError<
3620 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError,
3621 R,
3622 >,
3623 ) -> Self {
3624 match err {
3625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3628 source: err.into(),
3629 }),
3630 }
3631 }
3632}
3633impl From<crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError> for Error {
3634 fn from(err: crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError) -> Self {
3635 match err {
3636 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError::ResourceNotFound(inner) => {
3637 Error::ResourceNotFound(inner)
3638 }
3639 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError::Unhandled(inner) => {
3640 Error::Unhandled(inner)
3641 }
3642 }
3643 }
3644}
3645impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device::DescribeDeviceError, R>> for Error
3646where
3647 R: Send + Sync + std::fmt::Debug + 'static,
3648{
3649 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device::DescribeDeviceError, R>) -> Self {
3650 match err {
3651 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3652 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3653 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3654 source: err.into(),
3655 }),
3656 }
3657 }
3658}
3659impl From<crate::operation::describe_device::DescribeDeviceError> for Error {
3660 fn from(err: crate::operation::describe_device::DescribeDeviceError) -> Self {
3661 match err {
3662 crate::operation::describe_device::DescribeDeviceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3663 crate::operation::describe_device::DescribeDeviceError::Unhandled(inner) => Error::Unhandled(inner),
3664 }
3665 }
3666}
3667impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device_fleet::DescribeDeviceFleetError, R>> for Error
3668where
3669 R: Send + Sync + std::fmt::Debug + 'static,
3670{
3671 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device_fleet::DescribeDeviceFleetError, R>) -> Self {
3672 match err {
3673 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3674 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3675 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3676 source: err.into(),
3677 }),
3678 }
3679 }
3680}
3681impl From<crate::operation::describe_device_fleet::DescribeDeviceFleetError> for Error {
3682 fn from(err: crate::operation::describe_device_fleet::DescribeDeviceFleetError) -> Self {
3683 match err {
3684 crate::operation::describe_device_fleet::DescribeDeviceFleetError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3685 crate::operation::describe_device_fleet::DescribeDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
3686 }
3687 }
3688}
3689impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_domain::DescribeDomainError, R>> for Error
3690where
3691 R: Send + Sync + std::fmt::Debug + 'static,
3692{
3693 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_domain::DescribeDomainError, R>) -> Self {
3694 match err {
3695 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3696 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3697 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3698 source: err.into(),
3699 }),
3700 }
3701 }
3702}
3703impl From<crate::operation::describe_domain::DescribeDomainError> for Error {
3704 fn from(err: crate::operation::describe_domain::DescribeDomainError) -> Self {
3705 match err {
3706 crate::operation::describe_domain::DescribeDomainError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3707 crate::operation::describe_domain::DescribeDomainError::Unhandled(inner) => Error::Unhandled(inner),
3708 }
3709 }
3710}
3711impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError, R>>
3712 for Error
3713where
3714 R: Send + Sync + std::fmt::Debug + 'static,
3715{
3716 fn from(
3717 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError, R>,
3718 ) -> Self {
3719 match err {
3720 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3721 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3722 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3723 source: err.into(),
3724 }),
3725 }
3726 }
3727}
3728impl From<crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError> for Error {
3729 fn from(err: crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError) -> Self {
3730 match err {
3731 crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError::ResourceNotFound(inner) => {
3732 Error::ResourceNotFound(inner)
3733 }
3734 crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError::Unhandled(inner) => Error::Unhandled(inner),
3735 }
3736 }
3737}
3738impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError, R>>
3739 for Error
3740where
3741 R: Send + Sync + std::fmt::Debug + 'static,
3742{
3743 fn from(
3744 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError, R>,
3745 ) -> Self {
3746 match err {
3747 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3748 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3749 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3750 source: err.into(),
3751 }),
3752 }
3753 }
3754}
3755impl From<crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError> for Error {
3756 fn from(err: crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError) -> Self {
3757 match err {
3758 crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3759 crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError::Unhandled(inner) => Error::Unhandled(inner),
3760 }
3761 }
3762}
3763impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint::DescribeEndpointError, R>> for Error
3764where
3765 R: Send + Sync + std::fmt::Debug + 'static,
3766{
3767 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint::DescribeEndpointError, R>) -> Self {
3768 match err {
3769 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3770 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3771 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3772 source: err.into(),
3773 }),
3774 }
3775 }
3776}
3777impl From<crate::operation::describe_endpoint::DescribeEndpointError> for Error {
3778 fn from(err: crate::operation::describe_endpoint::DescribeEndpointError) -> Self {
3779 match err {
3780 crate::operation::describe_endpoint::DescribeEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3781 }
3782 }
3783}
3784impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint_config::DescribeEndpointConfigError, R>> for Error
3785where
3786 R: Send + Sync + std::fmt::Debug + 'static,
3787{
3788 fn from(
3789 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint_config::DescribeEndpointConfigError, R>,
3790 ) -> Self {
3791 match err {
3792 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3793 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3794 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3795 source: err.into(),
3796 }),
3797 }
3798 }
3799}
3800impl From<crate::operation::describe_endpoint_config::DescribeEndpointConfigError> for Error {
3801 fn from(err: crate::operation::describe_endpoint_config::DescribeEndpointConfigError) -> Self {
3802 match err {
3803 crate::operation::describe_endpoint_config::DescribeEndpointConfigError::Unhandled(inner) => Error::Unhandled(inner),
3804 }
3805 }
3806}
3807impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_experiment::DescribeExperimentError, R>> for Error
3808where
3809 R: Send + Sync + std::fmt::Debug + 'static,
3810{
3811 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_experiment::DescribeExperimentError, R>) -> Self {
3812 match err {
3813 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3814 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3815 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3816 source: err.into(),
3817 }),
3818 }
3819 }
3820}
3821impl From<crate::operation::describe_experiment::DescribeExperimentError> for Error {
3822 fn from(err: crate::operation::describe_experiment::DescribeExperimentError) -> Self {
3823 match err {
3824 crate::operation::describe_experiment::DescribeExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3825 crate::operation::describe_experiment::DescribeExperimentError::Unhandled(inner) => Error::Unhandled(inner),
3826 }
3827 }
3828}
3829impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_group::DescribeFeatureGroupError, R>> for Error
3830where
3831 R: Send + Sync + std::fmt::Debug + 'static,
3832{
3833 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_group::DescribeFeatureGroupError, R>) -> Self {
3834 match err {
3835 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3836 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3837 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3838 source: err.into(),
3839 }),
3840 }
3841 }
3842}
3843impl From<crate::operation::describe_feature_group::DescribeFeatureGroupError> for Error {
3844 fn from(err: crate::operation::describe_feature_group::DescribeFeatureGroupError) -> Self {
3845 match err {
3846 crate::operation::describe_feature_group::DescribeFeatureGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3847 crate::operation::describe_feature_group::DescribeFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
3848 }
3849 }
3850}
3851impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_metadata::DescribeFeatureMetadataError, R>>
3852 for Error
3853where
3854 R: Send + Sync + std::fmt::Debug + 'static,
3855{
3856 fn from(
3857 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_metadata::DescribeFeatureMetadataError, R>,
3858 ) -> Self {
3859 match err {
3860 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3861 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3862 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3863 source: err.into(),
3864 }),
3865 }
3866 }
3867}
3868impl From<crate::operation::describe_feature_metadata::DescribeFeatureMetadataError> for Error {
3869 fn from(err: crate::operation::describe_feature_metadata::DescribeFeatureMetadataError) -> Self {
3870 match err {
3871 crate::operation::describe_feature_metadata::DescribeFeatureMetadataError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3872 crate::operation::describe_feature_metadata::DescribeFeatureMetadataError::Unhandled(inner) => Error::Unhandled(inner),
3873 }
3874 }
3875}
3876impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_definition::DescribeFlowDefinitionError, R>> for Error
3877where
3878 R: Send + Sync + std::fmt::Debug + 'static,
3879{
3880 fn from(
3881 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_definition::DescribeFlowDefinitionError, R>,
3882 ) -> Self {
3883 match err {
3884 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3885 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3886 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3887 source: err.into(),
3888 }),
3889 }
3890 }
3891}
3892impl From<crate::operation::describe_flow_definition::DescribeFlowDefinitionError> for Error {
3893 fn from(err: crate::operation::describe_flow_definition::DescribeFlowDefinitionError) -> Self {
3894 match err {
3895 crate::operation::describe_flow_definition::DescribeFlowDefinitionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3896 crate::operation::describe_flow_definition::DescribeFlowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
3897 }
3898 }
3899}
3900impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub::DescribeHubError, R>> for Error
3901where
3902 R: Send + Sync + std::fmt::Debug + 'static,
3903{
3904 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub::DescribeHubError, R>) -> Self {
3905 match err {
3906 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3907 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3908 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3909 source: err.into(),
3910 }),
3911 }
3912 }
3913}
3914impl From<crate::operation::describe_hub::DescribeHubError> for Error {
3915 fn from(err: crate::operation::describe_hub::DescribeHubError) -> Self {
3916 match err {
3917 crate::operation::describe_hub::DescribeHubError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3918 crate::operation::describe_hub::DescribeHubError::Unhandled(inner) => Error::Unhandled(inner),
3919 }
3920 }
3921}
3922impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub_content::DescribeHubContentError, R>> for Error
3923where
3924 R: Send + Sync + std::fmt::Debug + 'static,
3925{
3926 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub_content::DescribeHubContentError, R>) -> Self {
3927 match err {
3928 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3929 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3930 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3931 source: err.into(),
3932 }),
3933 }
3934 }
3935}
3936impl From<crate::operation::describe_hub_content::DescribeHubContentError> for Error {
3937 fn from(err: crate::operation::describe_hub_content::DescribeHubContentError) -> Self {
3938 match err {
3939 crate::operation::describe_hub_content::DescribeHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3940 crate::operation::describe_hub_content::DescribeHubContentError::Unhandled(inner) => Error::Unhandled(inner),
3941 }
3942 }
3943}
3944impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_human_task_ui::DescribeHumanTaskUiError, R>> for Error
3945where
3946 R: Send + Sync + std::fmt::Debug + 'static,
3947{
3948 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_human_task_ui::DescribeHumanTaskUiError, R>) -> Self {
3949 match err {
3950 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3951 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3952 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3953 source: err.into(),
3954 }),
3955 }
3956 }
3957}
3958impl From<crate::operation::describe_human_task_ui::DescribeHumanTaskUiError> for Error {
3959 fn from(err: crate::operation::describe_human_task_ui::DescribeHumanTaskUiError) -> Self {
3960 match err {
3961 crate::operation::describe_human_task_ui::DescribeHumanTaskUiError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3962 crate::operation::describe_human_task_ui::DescribeHumanTaskUiError::Unhandled(inner) => Error::Unhandled(inner),
3963 }
3964 }
3965}
3966impl<R>
3967 From<
3968 ::aws_smithy_runtime_api::client::result::SdkError<
3969 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError,
3970 R,
3971 >,
3972 > for Error
3973where
3974 R: Send + Sync + std::fmt::Debug + 'static,
3975{
3976 fn from(
3977 err: ::aws_smithy_runtime_api::client::result::SdkError<
3978 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError,
3979 R,
3980 >,
3981 ) -> Self {
3982 match err {
3983 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3984 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3985 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3986 source: err.into(),
3987 }),
3988 }
3989 }
3990}
3991impl From<crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError> for Error {
3992 fn from(err: crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError) -> Self {
3993 match err {
3994 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError::ResourceNotFound(inner) => {
3995 Error::ResourceNotFound(inner)
3996 }
3997 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
3998 }
3999 }
4000}
4001impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image::DescribeImageError, R>> for Error
4002where
4003 R: Send + Sync + std::fmt::Debug + 'static,
4004{
4005 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image::DescribeImageError, R>) -> Self {
4006 match err {
4007 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4008 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4009 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4010 source: err.into(),
4011 }),
4012 }
4013 }
4014}
4015impl From<crate::operation::describe_image::DescribeImageError> for Error {
4016 fn from(err: crate::operation::describe_image::DescribeImageError) -> Self {
4017 match err {
4018 crate::operation::describe_image::DescribeImageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4019 crate::operation::describe_image::DescribeImageError::Unhandled(inner) => Error::Unhandled(inner),
4020 }
4021 }
4022}
4023impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_version::DescribeImageVersionError, R>> for Error
4024where
4025 R: Send + Sync + std::fmt::Debug + 'static,
4026{
4027 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_version::DescribeImageVersionError, R>) -> Self {
4028 match err {
4029 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4030 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4031 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4032 source: err.into(),
4033 }),
4034 }
4035 }
4036}
4037impl From<crate::operation::describe_image_version::DescribeImageVersionError> for Error {
4038 fn from(err: crate::operation::describe_image_version::DescribeImageVersionError) -> Self {
4039 match err {
4040 crate::operation::describe_image_version::DescribeImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4041 crate::operation::describe_image_version::DescribeImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
4042 }
4043 }
4044}
4045impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_component::DescribeInferenceComponentError, R>>
4046 for Error
4047where
4048 R: Send + Sync + std::fmt::Debug + 'static,
4049{
4050 fn from(
4051 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_component::DescribeInferenceComponentError, R>,
4052 ) -> Self {
4053 match err {
4054 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4055 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4056 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4057 source: err.into(),
4058 }),
4059 }
4060 }
4061}
4062impl From<crate::operation::describe_inference_component::DescribeInferenceComponentError> for Error {
4063 fn from(err: crate::operation::describe_inference_component::DescribeInferenceComponentError) -> Self {
4064 match err {
4065 crate::operation::describe_inference_component::DescribeInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
4066 }
4067 }
4068}
4069impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_experiment::DescribeInferenceExperimentError, R>>
4070 for Error
4071where
4072 R: Send + Sync + std::fmt::Debug + 'static,
4073{
4074 fn from(
4075 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_experiment::DescribeInferenceExperimentError, R>,
4076 ) -> Self {
4077 match err {
4078 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4079 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4080 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4081 source: err.into(),
4082 }),
4083 }
4084 }
4085}
4086impl From<crate::operation::describe_inference_experiment::DescribeInferenceExperimentError> for Error {
4087 fn from(err: crate::operation::describe_inference_experiment::DescribeInferenceExperimentError) -> Self {
4088 match err {
4089 crate::operation::describe_inference_experiment::DescribeInferenceExperimentError::ResourceNotFound(inner) => {
4090 Error::ResourceNotFound(inner)
4091 }
4092 crate::operation::describe_inference_experiment::DescribeInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
4093 }
4094 }
4095}
4096impl<R>
4097 From<
4098 ::aws_smithy_runtime_api::client::result::SdkError<
4099 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError,
4100 R,
4101 >,
4102 > for Error
4103where
4104 R: Send + Sync + std::fmt::Debug + 'static,
4105{
4106 fn from(
4107 err: ::aws_smithy_runtime_api::client::result::SdkError<
4108 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError,
4109 R,
4110 >,
4111 ) -> Self {
4112 match err {
4113 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4114 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4115 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4116 source: err.into(),
4117 }),
4118 }
4119 }
4120}
4121impl From<crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError> for Error {
4122 fn from(err: crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError) -> Self {
4123 match err {
4124 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError::ResourceNotFound(inner) => {
4125 Error::ResourceNotFound(inner)
4126 }
4127 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError::Unhandled(inner) => {
4128 Error::Unhandled(inner)
4129 }
4130 }
4131 }
4132}
4133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_labeling_job::DescribeLabelingJobError, R>> for Error
4134where
4135 R: Send + Sync + std::fmt::Debug + 'static,
4136{
4137 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_labeling_job::DescribeLabelingJobError, R>) -> Self {
4138 match err {
4139 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4140 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4141 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4142 source: err.into(),
4143 }),
4144 }
4145 }
4146}
4147impl From<crate::operation::describe_labeling_job::DescribeLabelingJobError> for Error {
4148 fn from(err: crate::operation::describe_labeling_job::DescribeLabelingJobError) -> Self {
4149 match err {
4150 crate::operation::describe_labeling_job::DescribeLabelingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4151 crate::operation::describe_labeling_job::DescribeLabelingJobError::Unhandled(inner) => Error::Unhandled(inner),
4152 }
4153 }
4154}
4155impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lineage_group::DescribeLineageGroupError, R>> for Error
4156where
4157 R: Send + Sync + std::fmt::Debug + 'static,
4158{
4159 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lineage_group::DescribeLineageGroupError, R>) -> Self {
4160 match err {
4161 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4162 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4163 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4164 source: err.into(),
4165 }),
4166 }
4167 }
4168}
4169impl From<crate::operation::describe_lineage_group::DescribeLineageGroupError> for Error {
4170 fn from(err: crate::operation::describe_lineage_group::DescribeLineageGroupError) -> Self {
4171 match err {
4172 crate::operation::describe_lineage_group::DescribeLineageGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4173 crate::operation::describe_lineage_group::DescribeLineageGroupError::Unhandled(inner) => Error::Unhandled(inner),
4174 }
4175 }
4176}
4177impl<R>
4178 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError, R>>
4179 for Error
4180where
4181 R: Send + Sync + std::fmt::Debug + 'static,
4182{
4183 fn from(
4184 err: ::aws_smithy_runtime_api::client::result::SdkError<
4185 crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError,
4186 R,
4187 >,
4188 ) -> Self {
4189 match err {
4190 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4191 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4192 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4193 source: err.into(),
4194 }),
4195 }
4196 }
4197}
4198impl From<crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError> for Error {
4199 fn from(err: crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError) -> Self {
4200 match err {
4201 crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError::ResourceNotFound(inner) => {
4202 Error::ResourceNotFound(inner)
4203 }
4204 crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
4205 }
4206 }
4207}
4208impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model::DescribeModelError, R>> for Error
4209where
4210 R: Send + Sync + std::fmt::Debug + 'static,
4211{
4212 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model::DescribeModelError, R>) -> Self {
4213 match err {
4214 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4215 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4216 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4217 source: err.into(),
4218 }),
4219 }
4220 }
4221}
4222impl From<crate::operation::describe_model::DescribeModelError> for Error {
4223 fn from(err: crate::operation::describe_model::DescribeModelError) -> Self {
4224 match err {
4225 crate::operation::describe_model::DescribeModelError::Unhandled(inner) => Error::Unhandled(inner),
4226 }
4227 }
4228}
4229impl<R>
4230 From<
4231 ::aws_smithy_runtime_api::client::result::SdkError<
4232 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError,
4233 R,
4234 >,
4235 > for Error
4236where
4237 R: Send + Sync + std::fmt::Debug + 'static,
4238{
4239 fn from(
4240 err: ::aws_smithy_runtime_api::client::result::SdkError<
4241 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError,
4242 R,
4243 >,
4244 ) -> Self {
4245 match err {
4246 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4247 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4248 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4249 source: err.into(),
4250 }),
4251 }
4252 }
4253}
4254impl From<crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError> for Error {
4255 fn from(err: crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError) -> Self {
4256 match err {
4257 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError::ResourceNotFound(inner) => {
4258 Error::ResourceNotFound(inner)
4259 }
4260 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
4261 }
4262 }
4263}
4264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card::DescribeModelCardError, R>> for Error
4265where
4266 R: Send + Sync + std::fmt::Debug + 'static,
4267{
4268 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card::DescribeModelCardError, R>) -> Self {
4269 match err {
4270 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4271 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4272 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4273 source: err.into(),
4274 }),
4275 }
4276 }
4277}
4278impl From<crate::operation::describe_model_card::DescribeModelCardError> for Error {
4279 fn from(err: crate::operation::describe_model_card::DescribeModelCardError) -> Self {
4280 match err {
4281 crate::operation::describe_model_card::DescribeModelCardError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4282 crate::operation::describe_model_card::DescribeModelCardError::Unhandled(inner) => Error::Unhandled(inner),
4283 }
4284 }
4285}
4286impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError, R>>
4287 for Error
4288where
4289 R: Send + Sync + std::fmt::Debug + 'static,
4290{
4291 fn from(
4292 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError, R>,
4293 ) -> Self {
4294 match err {
4295 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4296 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4297 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4298 source: err.into(),
4299 }),
4300 }
4301 }
4302}
4303impl From<crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError> for Error {
4304 fn from(err: crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError) -> Self {
4305 match err {
4306 crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError::ResourceNotFound(inner) => {
4307 Error::ResourceNotFound(inner)
4308 }
4309 crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError::Unhandled(inner) => Error::Unhandled(inner),
4310 }
4311 }
4312}
4313impl<R>
4314 From<
4315 ::aws_smithy_runtime_api::client::result::SdkError<
4316 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError,
4317 R,
4318 >,
4319 > for Error
4320where
4321 R: Send + Sync + std::fmt::Debug + 'static,
4322{
4323 fn from(
4324 err: ::aws_smithy_runtime_api::client::result::SdkError<
4325 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError,
4326 R,
4327 >,
4328 ) -> Self {
4329 match err {
4330 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4331 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4332 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4333 source: err.into(),
4334 }),
4335 }
4336 }
4337}
4338impl From<crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError> for Error {
4339 fn from(err: crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError) -> Self {
4340 match err {
4341 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError::ResourceNotFound(
4342 inner,
4343 ) => Error::ResourceNotFound(inner),
4344 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError::Unhandled(inner) => {
4345 Error::Unhandled(inner)
4346 }
4347 }
4348 }
4349}
4350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package::DescribeModelPackageError, R>> for Error
4351where
4352 R: Send + Sync + std::fmt::Debug + 'static,
4353{
4354 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package::DescribeModelPackageError, R>) -> Self {
4355 match err {
4356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4359 source: err.into(),
4360 }),
4361 }
4362 }
4363}
4364impl From<crate::operation::describe_model_package::DescribeModelPackageError> for Error {
4365 fn from(err: crate::operation::describe_model_package::DescribeModelPackageError) -> Self {
4366 match err {
4367 crate::operation::describe_model_package::DescribeModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
4368 }
4369 }
4370}
4371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package_group::DescribeModelPackageGroupError, R>>
4372 for Error
4373where
4374 R: Send + Sync + std::fmt::Debug + 'static,
4375{
4376 fn from(
4377 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package_group::DescribeModelPackageGroupError, R>,
4378 ) -> Self {
4379 match err {
4380 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4381 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4382 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4383 source: err.into(),
4384 }),
4385 }
4386 }
4387}
4388impl From<crate::operation::describe_model_package_group::DescribeModelPackageGroupError> for Error {
4389 fn from(err: crate::operation::describe_model_package_group::DescribeModelPackageGroupError) -> Self {
4390 match err {
4391 crate::operation::describe_model_package_group::DescribeModelPackageGroupError::Unhandled(inner) => Error::Unhandled(inner),
4392 }
4393 }
4394}
4395impl<R>
4396 From<
4397 ::aws_smithy_runtime_api::client::result::SdkError<
4398 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError,
4399 R,
4400 >,
4401 > for Error
4402where
4403 R: Send + Sync + std::fmt::Debug + 'static,
4404{
4405 fn from(
4406 err: ::aws_smithy_runtime_api::client::result::SdkError<
4407 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError,
4408 R,
4409 >,
4410 ) -> Self {
4411 match err {
4412 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4413 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4414 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4415 source: err.into(),
4416 }),
4417 }
4418 }
4419}
4420impl From<crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError> for Error {
4421 fn from(err: crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError) -> Self {
4422 match err {
4423 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError::ResourceNotFound(inner) => {
4424 Error::ResourceNotFound(inner)
4425 }
4426 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError::Unhandled(inner) => {
4427 Error::Unhandled(inner)
4428 }
4429 }
4430 }
4431}
4432impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError, R>>
4433 for Error
4434where
4435 R: Send + Sync + std::fmt::Debug + 'static,
4436{
4437 fn from(
4438 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError, R>,
4439 ) -> Self {
4440 match err {
4441 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4442 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4443 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4444 source: err.into(),
4445 }),
4446 }
4447 }
4448}
4449impl From<crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError> for Error {
4450 fn from(err: crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError) -> Self {
4451 match err {
4452 crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError::ResourceNotFound(inner) => {
4453 Error::ResourceNotFound(inner)
4454 }
4455 crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
4456 }
4457 }
4458}
4459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_notebook_instance::DescribeNotebookInstanceError, R>>
4460 for Error
4461where
4462 R: Send + Sync + std::fmt::Debug + 'static,
4463{
4464 fn from(
4465 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_notebook_instance::DescribeNotebookInstanceError, R>,
4466 ) -> Self {
4467 match err {
4468 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4469 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4470 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4471 source: err.into(),
4472 }),
4473 }
4474 }
4475}
4476impl From<crate::operation::describe_notebook_instance::DescribeNotebookInstanceError> for Error {
4477 fn from(err: crate::operation::describe_notebook_instance::DescribeNotebookInstanceError) -> Self {
4478 match err {
4479 crate::operation::describe_notebook_instance::DescribeNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
4480 }
4481 }
4482}
4483impl<R>
4484 From<
4485 ::aws_smithy_runtime_api::client::result::SdkError<
4486 crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError,
4487 R,
4488 >,
4489 > for Error
4490where
4491 R: Send + Sync + std::fmt::Debug + 'static,
4492{
4493 fn from(
4494 err: ::aws_smithy_runtime_api::client::result::SdkError<
4495 crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError,
4496 R,
4497 >,
4498 ) -> Self {
4499 match err {
4500 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4501 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4502 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4503 source: err.into(),
4504 }),
4505 }
4506 }
4507}
4508impl From<crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError> for Error {
4509 fn from(err: crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError) -> Self {
4510 match err {
4511 crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
4512 Error::Unhandled(inner)
4513 }
4514 }
4515 }
4516}
4517impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_optimization_job::DescribeOptimizationJobError, R>>
4518 for Error
4519where
4520 R: Send + Sync + std::fmt::Debug + 'static,
4521{
4522 fn from(
4523 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_optimization_job::DescribeOptimizationJobError, R>,
4524 ) -> Self {
4525 match err {
4526 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4527 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4528 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4529 source: err.into(),
4530 }),
4531 }
4532 }
4533}
4534impl From<crate::operation::describe_optimization_job::DescribeOptimizationJobError> for Error {
4535 fn from(err: crate::operation::describe_optimization_job::DescribeOptimizationJobError) -> Self {
4536 match err {
4537 crate::operation::describe_optimization_job::DescribeOptimizationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4538 crate::operation::describe_optimization_job::DescribeOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
4539 }
4540 }
4541}
4542impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_partner_app::DescribePartnerAppError, R>> for Error
4543where
4544 R: Send + Sync + std::fmt::Debug + 'static,
4545{
4546 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_partner_app::DescribePartnerAppError, R>) -> Self {
4547 match err {
4548 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4549 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4550 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4551 source: err.into(),
4552 }),
4553 }
4554 }
4555}
4556impl From<crate::operation::describe_partner_app::DescribePartnerAppError> for Error {
4557 fn from(err: crate::operation::describe_partner_app::DescribePartnerAppError) -> Self {
4558 match err {
4559 crate::operation::describe_partner_app::DescribePartnerAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4560 crate::operation::describe_partner_app::DescribePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
4561 }
4562 }
4563}
4564impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline::DescribePipelineError, R>> for Error
4565where
4566 R: Send + Sync + std::fmt::Debug + 'static,
4567{
4568 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline::DescribePipelineError, R>) -> Self {
4569 match err {
4570 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4571 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4572 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4573 source: err.into(),
4574 }),
4575 }
4576 }
4577}
4578impl From<crate::operation::describe_pipeline::DescribePipelineError> for Error {
4579 fn from(err: crate::operation::describe_pipeline::DescribePipelineError) -> Self {
4580 match err {
4581 crate::operation::describe_pipeline::DescribePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4582 crate::operation::describe_pipeline::DescribePipelineError::Unhandled(inner) => Error::Unhandled(inner),
4583 }
4584 }
4585}
4586impl<R>
4587 From<
4588 ::aws_smithy_runtime_api::client::result::SdkError<
4589 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError,
4590 R,
4591 >,
4592 > for Error
4593where
4594 R: Send + Sync + std::fmt::Debug + 'static,
4595{
4596 fn from(
4597 err: ::aws_smithy_runtime_api::client::result::SdkError<
4598 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError,
4599 R,
4600 >,
4601 ) -> Self {
4602 match err {
4603 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4604 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4605 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4606 source: err.into(),
4607 }),
4608 }
4609 }
4610}
4611impl From<crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError> for Error {
4612 fn from(err: crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError) -> Self {
4613 match err {
4614 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError::ResourceNotFound(inner) => {
4615 Error::ResourceNotFound(inner)
4616 }
4617 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError::Unhandled(inner) => {
4618 Error::Unhandled(inner)
4619 }
4620 }
4621 }
4622}
4623impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline_execution::DescribePipelineExecutionError, R>>
4624 for Error
4625where
4626 R: Send + Sync + std::fmt::Debug + 'static,
4627{
4628 fn from(
4629 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline_execution::DescribePipelineExecutionError, R>,
4630 ) -> Self {
4631 match err {
4632 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4633 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4634 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4635 source: err.into(),
4636 }),
4637 }
4638 }
4639}
4640impl From<crate::operation::describe_pipeline_execution::DescribePipelineExecutionError> for Error {
4641 fn from(err: crate::operation::describe_pipeline_execution::DescribePipelineExecutionError) -> Self {
4642 match err {
4643 crate::operation::describe_pipeline_execution::DescribePipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4644 crate::operation::describe_pipeline_execution::DescribePipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
4645 }
4646 }
4647}
4648impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_processing_job::DescribeProcessingJobError, R>> for Error
4649where
4650 R: Send + Sync + std::fmt::Debug + 'static,
4651{
4652 fn from(
4653 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_processing_job::DescribeProcessingJobError, R>,
4654 ) -> Self {
4655 match err {
4656 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4657 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4658 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4659 source: err.into(),
4660 }),
4661 }
4662 }
4663}
4664impl From<crate::operation::describe_processing_job::DescribeProcessingJobError> for Error {
4665 fn from(err: crate::operation::describe_processing_job::DescribeProcessingJobError) -> Self {
4666 match err {
4667 crate::operation::describe_processing_job::DescribeProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4668 crate::operation::describe_processing_job::DescribeProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
4669 }
4670 }
4671}
4672impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_project::DescribeProjectError, R>> for Error
4673where
4674 R: Send + Sync + std::fmt::Debug + 'static,
4675{
4676 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_project::DescribeProjectError, R>) -> Self {
4677 match err {
4678 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4679 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4680 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4681 source: err.into(),
4682 }),
4683 }
4684 }
4685}
4686impl From<crate::operation::describe_project::DescribeProjectError> for Error {
4687 fn from(err: crate::operation::describe_project::DescribeProjectError) -> Self {
4688 match err {
4689 crate::operation::describe_project::DescribeProjectError::Unhandled(inner) => Error::Unhandled(inner),
4690 }
4691 }
4692}
4693impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_space::DescribeSpaceError, R>> for Error
4694where
4695 R: Send + Sync + std::fmt::Debug + 'static,
4696{
4697 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_space::DescribeSpaceError, R>) -> Self {
4698 match err {
4699 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4700 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4701 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4702 source: err.into(),
4703 }),
4704 }
4705 }
4706}
4707impl From<crate::operation::describe_space::DescribeSpaceError> for Error {
4708 fn from(err: crate::operation::describe_space::DescribeSpaceError) -> Self {
4709 match err {
4710 crate::operation::describe_space::DescribeSpaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4711 crate::operation::describe_space::DescribeSpaceError::Unhandled(inner) => Error::Unhandled(inner),
4712 }
4713 }
4714}
4715impl<R>
4716 From<
4717 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError, R>,
4718 > for Error
4719where
4720 R: Send + Sync + std::fmt::Debug + 'static,
4721{
4722 fn from(
4723 err: ::aws_smithy_runtime_api::client::result::SdkError<
4724 crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError,
4725 R,
4726 >,
4727 ) -> Self {
4728 match err {
4729 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4730 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4731 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4732 source: err.into(),
4733 }),
4734 }
4735 }
4736}
4737impl From<crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError> for Error {
4738 fn from(err: crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError) -> Self {
4739 match err {
4740 crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError::ResourceNotFound(inner) => {
4741 Error::ResourceNotFound(inner)
4742 }
4743 crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError::Unhandled(inner) => Error::Unhandled(inner),
4744 }
4745 }
4746}
4747impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError, R>>
4748 for Error
4749where
4750 R: Send + Sync + std::fmt::Debug + 'static,
4751{
4752 fn from(
4753 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError, R>,
4754 ) -> Self {
4755 match err {
4756 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4757 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4758 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4759 source: err.into(),
4760 }),
4761 }
4762 }
4763}
4764impl From<crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError> for Error {
4765 fn from(err: crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError) -> Self {
4766 match err {
4767 crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
4768 }
4769 }
4770}
4771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_job::DescribeTrainingJobError, R>> for Error
4772where
4773 R: Send + Sync + std::fmt::Debug + 'static,
4774{
4775 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_job::DescribeTrainingJobError, R>) -> Self {
4776 match err {
4777 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4778 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4779 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4780 source: err.into(),
4781 }),
4782 }
4783 }
4784}
4785impl From<crate::operation::describe_training_job::DescribeTrainingJobError> for Error {
4786 fn from(err: crate::operation::describe_training_job::DescribeTrainingJobError) -> Self {
4787 match err {
4788 crate::operation::describe_training_job::DescribeTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4789 crate::operation::describe_training_job::DescribeTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
4790 }
4791 }
4792}
4793impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_plan::DescribeTrainingPlanError, R>> for Error
4794where
4795 R: Send + Sync + std::fmt::Debug + 'static,
4796{
4797 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_plan::DescribeTrainingPlanError, R>) -> Self {
4798 match err {
4799 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4800 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4801 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4802 source: err.into(),
4803 }),
4804 }
4805 }
4806}
4807impl From<crate::operation::describe_training_plan::DescribeTrainingPlanError> for Error {
4808 fn from(err: crate::operation::describe_training_plan::DescribeTrainingPlanError) -> Self {
4809 match err {
4810 crate::operation::describe_training_plan::DescribeTrainingPlanError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4811 crate::operation::describe_training_plan::DescribeTrainingPlanError::Unhandled(inner) => Error::Unhandled(inner),
4812 }
4813 }
4814}
4815impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transform_job::DescribeTransformJobError, R>> for Error
4816where
4817 R: Send + Sync + std::fmt::Debug + 'static,
4818{
4819 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transform_job::DescribeTransformJobError, R>) -> Self {
4820 match err {
4821 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4822 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4823 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4824 source: err.into(),
4825 }),
4826 }
4827 }
4828}
4829impl From<crate::operation::describe_transform_job::DescribeTransformJobError> for Error {
4830 fn from(err: crate::operation::describe_transform_job::DescribeTransformJobError) -> Self {
4831 match err {
4832 crate::operation::describe_transform_job::DescribeTransformJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4833 crate::operation::describe_transform_job::DescribeTransformJobError::Unhandled(inner) => Error::Unhandled(inner),
4834 }
4835 }
4836}
4837impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial::DescribeTrialError, R>> for Error
4838where
4839 R: Send + Sync + std::fmt::Debug + 'static,
4840{
4841 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial::DescribeTrialError, R>) -> Self {
4842 match err {
4843 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4844 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4845 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4846 source: err.into(),
4847 }),
4848 }
4849 }
4850}
4851impl From<crate::operation::describe_trial::DescribeTrialError> for Error {
4852 fn from(err: crate::operation::describe_trial::DescribeTrialError) -> Self {
4853 match err {
4854 crate::operation::describe_trial::DescribeTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4855 crate::operation::describe_trial::DescribeTrialError::Unhandled(inner) => Error::Unhandled(inner),
4856 }
4857 }
4858}
4859impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial_component::DescribeTrialComponentError, R>> for Error
4860where
4861 R: Send + Sync + std::fmt::Debug + 'static,
4862{
4863 fn from(
4864 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial_component::DescribeTrialComponentError, R>,
4865 ) -> Self {
4866 match err {
4867 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4868 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4869 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4870 source: err.into(),
4871 }),
4872 }
4873 }
4874}
4875impl From<crate::operation::describe_trial_component::DescribeTrialComponentError> for Error {
4876 fn from(err: crate::operation::describe_trial_component::DescribeTrialComponentError) -> Self {
4877 match err {
4878 crate::operation::describe_trial_component::DescribeTrialComponentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4879 crate::operation::describe_trial_component::DescribeTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
4880 }
4881 }
4882}
4883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_profile::DescribeUserProfileError, R>> for Error
4884where
4885 R: Send + Sync + std::fmt::Debug + 'static,
4886{
4887 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_profile::DescribeUserProfileError, R>) -> Self {
4888 match err {
4889 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4890 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4891 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4892 source: err.into(),
4893 }),
4894 }
4895 }
4896}
4897impl From<crate::operation::describe_user_profile::DescribeUserProfileError> for Error {
4898 fn from(err: crate::operation::describe_user_profile::DescribeUserProfileError) -> Self {
4899 match err {
4900 crate::operation::describe_user_profile::DescribeUserProfileError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
4901 crate::operation::describe_user_profile::DescribeUserProfileError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4902 crate::operation::describe_user_profile::DescribeUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
4903 }
4904 }
4905}
4906impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workforce::DescribeWorkforceError, R>> for Error
4907where
4908 R: Send + Sync + std::fmt::Debug + 'static,
4909{
4910 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workforce::DescribeWorkforceError, R>) -> Self {
4911 match err {
4912 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4913 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4914 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4915 source: err.into(),
4916 }),
4917 }
4918 }
4919}
4920impl From<crate::operation::describe_workforce::DescribeWorkforceError> for Error {
4921 fn from(err: crate::operation::describe_workforce::DescribeWorkforceError) -> Self {
4922 match err {
4923 crate::operation::describe_workforce::DescribeWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
4924 }
4925 }
4926}
4927impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workteam::DescribeWorkteamError, R>> for Error
4928where
4929 R: Send + Sync + std::fmt::Debug + 'static,
4930{
4931 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workteam::DescribeWorkteamError, R>) -> Self {
4932 match err {
4933 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4934 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4935 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4936 source: err.into(),
4937 }),
4938 }
4939 }
4940}
4941impl From<crate::operation::describe_workteam::DescribeWorkteamError> for Error {
4942 fn from(err: crate::operation::describe_workteam::DescribeWorkteamError) -> Self {
4943 match err {
4944 crate::operation::describe_workteam::DescribeWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
4945 }
4946 }
4947}
4948impl<R>
4949 From<
4950 ::aws_smithy_runtime_api::client::result::SdkError<
4951 crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError,
4952 R,
4953 >,
4954 > for Error
4955where
4956 R: Send + Sync + std::fmt::Debug + 'static,
4957{
4958 fn from(
4959 err: ::aws_smithy_runtime_api::client::result::SdkError<
4960 crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError,
4961 R,
4962 >,
4963 ) -> Self {
4964 match err {
4965 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4966 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4967 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4968 source: err.into(),
4969 }),
4970 }
4971 }
4972}
4973impl From<crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError> for Error {
4974 fn from(err: crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError) -> Self {
4975 match err {
4976 crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError::Unhandled(inner) => {
4977 Error::Unhandled(inner)
4978 }
4979 }
4980 }
4981}
4982impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trial_component::DisassociateTrialComponentError, R>>
4983 for Error
4984where
4985 R: Send + Sync + std::fmt::Debug + 'static,
4986{
4987 fn from(
4988 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trial_component::DisassociateTrialComponentError, R>,
4989 ) -> Self {
4990 match err {
4991 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4992 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4993 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4994 source: err.into(),
4995 }),
4996 }
4997 }
4998}
4999impl From<crate::operation::disassociate_trial_component::DisassociateTrialComponentError> for Error {
5000 fn from(err: crate::operation::disassociate_trial_component::DisassociateTrialComponentError) -> Self {
5001 match err {
5002 crate::operation::disassociate_trial_component::DisassociateTrialComponentError::ResourceNotFound(inner) => {
5003 Error::ResourceNotFound(inner)
5004 }
5005 crate::operation::disassociate_trial_component::DisassociateTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
5006 }
5007 }
5008}
5009impl<R>
5010 From<
5011 ::aws_smithy_runtime_api::client::result::SdkError<
5012 crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError,
5013 R,
5014 >,
5015 > for Error
5016where
5017 R: Send + Sync + std::fmt::Debug + 'static,
5018{
5019 fn from(
5020 err: ::aws_smithy_runtime_api::client::result::SdkError<
5021 crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError,
5022 R,
5023 >,
5024 ) -> Self {
5025 match err {
5026 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5027 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5028 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5029 source: err.into(),
5030 }),
5031 }
5032 }
5033}
5034impl From<crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError> for Error {
5035 fn from(err: crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError) -> Self {
5036 match err {
5037 crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError::Unhandled(inner) => {
5038 Error::Unhandled(inner)
5039 }
5040 }
5041 }
5042}
5043impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_fleet_report::GetDeviceFleetReportError, R>> for Error
5044where
5045 R: Send + Sync + std::fmt::Debug + 'static,
5046{
5047 fn from(
5048 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_fleet_report::GetDeviceFleetReportError, R>,
5049 ) -> Self {
5050 match err {
5051 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5052 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5053 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5054 source: err.into(),
5055 }),
5056 }
5057 }
5058}
5059impl From<crate::operation::get_device_fleet_report::GetDeviceFleetReportError> for Error {
5060 fn from(err: crate::operation::get_device_fleet_report::GetDeviceFleetReportError) -> Self {
5061 match err {
5062 crate::operation::get_device_fleet_report::GetDeviceFleetReportError::Unhandled(inner) => Error::Unhandled(inner),
5063 }
5064 }
5065}
5066impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError, R>> for Error
5067where
5068 R: Send + Sync + std::fmt::Debug + 'static,
5069{
5070 fn from(
5071 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError, R>,
5072 ) -> Self {
5073 match err {
5074 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5075 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5076 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5077 source: err.into(),
5078 }),
5079 }
5080 }
5081}
5082impl From<crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError> for Error {
5083 fn from(err: crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError) -> Self {
5084 match err {
5085 crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5086 crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
5087 }
5088 }
5089}
5090impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError, R>>
5091 for Error
5092where
5093 R: Send + Sync + std::fmt::Debug + 'static,
5094{
5095 fn from(
5096 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError, R>,
5097 ) -> Self {
5098 match err {
5099 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5100 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5101 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5102 source: err.into(),
5103 }),
5104 }
5105 }
5106}
5107impl From<crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError> for Error {
5108 fn from(err: crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError) -> Self {
5109 match err {
5110 crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
5111 }
5112 }
5113}
5114impl<R>
5115 From<
5116 ::aws_smithy_runtime_api::client::result::SdkError<
5117 crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError,
5118 R,
5119 >,
5120 > for Error
5121where
5122 R: Send + Sync + std::fmt::Debug + 'static,
5123{
5124 fn from(
5125 err: ::aws_smithy_runtime_api::client::result::SdkError<
5126 crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError,
5127 R,
5128 >,
5129 ) -> Self {
5130 match err {
5131 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5132 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5133 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5134 source: err.into(),
5135 }),
5136 }
5137 }
5138}
5139impl From<crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError> for Error {
5140 fn from(err: crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError) -> Self {
5141 match err {
5142 crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError::Unhandled(inner) => {
5143 Error::Unhandled(inner)
5144 }
5145 }
5146 }
5147}
5148impl<R>
5149 From<
5150 ::aws_smithy_runtime_api::client::result::SdkError<
5151 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError,
5152 R,
5153 >,
5154 > for Error
5155where
5156 R: Send + Sync + std::fmt::Debug + 'static,
5157{
5158 fn from(
5159 err: ::aws_smithy_runtime_api::client::result::SdkError<
5160 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError,
5161 R,
5162 >,
5163 ) -> Self {
5164 match err {
5165 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5166 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5167 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5168 source: err.into(),
5169 }),
5170 }
5171 }
5172}
5173impl From<crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError> for Error {
5174 fn from(err: crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError) -> Self {
5175 match err {
5176 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError::ResourceNotFound(inner) => {
5177 Error::ResourceNotFound(inner)
5178 }
5179 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError::Unhandled(inner) => {
5180 Error::Unhandled(inner)
5181 }
5182 }
5183 }
5184}
5185impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_search_suggestions::GetSearchSuggestionsError, R>> for Error
5186where
5187 R: Send + Sync + std::fmt::Debug + 'static,
5188{
5189 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_search_suggestions::GetSearchSuggestionsError, R>) -> Self {
5190 match err {
5191 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5192 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5193 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5194 source: err.into(),
5195 }),
5196 }
5197 }
5198}
5199impl From<crate::operation::get_search_suggestions::GetSearchSuggestionsError> for Error {
5200 fn from(err: crate::operation::get_search_suggestions::GetSearchSuggestionsError) -> Self {
5201 match err {
5202 crate::operation::get_search_suggestions::GetSearchSuggestionsError::Unhandled(inner) => Error::Unhandled(inner),
5203 }
5204 }
5205}
5206impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_hub_content::ImportHubContentError, R>> for Error
5207where
5208 R: Send + Sync + std::fmt::Debug + 'static,
5209{
5210 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_hub_content::ImportHubContentError, R>) -> Self {
5211 match err {
5212 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5213 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5214 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5215 source: err.into(),
5216 }),
5217 }
5218 }
5219}
5220impl From<crate::operation::import_hub_content::ImportHubContentError> for Error {
5221 fn from(err: crate::operation::import_hub_content::ImportHubContentError) -> Self {
5222 match err {
5223 crate::operation::import_hub_content::ImportHubContentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
5224 crate::operation::import_hub_content::ImportHubContentError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
5225 crate::operation::import_hub_content::ImportHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5226 crate::operation::import_hub_content::ImportHubContentError::Unhandled(inner) => Error::Unhandled(inner),
5227 }
5228 }
5229}
5230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_actions::ListActionsError, R>> for Error
5231where
5232 R: Send + Sync + std::fmt::Debug + 'static,
5233{
5234 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_actions::ListActionsError, R>) -> Self {
5235 match err {
5236 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5237 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5238 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5239 source: err.into(),
5240 }),
5241 }
5242 }
5243}
5244impl From<crate::operation::list_actions::ListActionsError> for Error {
5245 fn from(err: crate::operation::list_actions::ListActionsError) -> Self {
5246 match err {
5247 crate::operation::list_actions::ListActionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5248 crate::operation::list_actions::ListActionsError::Unhandled(inner) => Error::Unhandled(inner),
5249 }
5250 }
5251}
5252impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_algorithms::ListAlgorithmsError, R>> for Error
5253where
5254 R: Send + Sync + std::fmt::Debug + 'static,
5255{
5256 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_algorithms::ListAlgorithmsError, R>) -> Self {
5257 match err {
5258 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5259 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5260 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5261 source: err.into(),
5262 }),
5263 }
5264 }
5265}
5266impl From<crate::operation::list_algorithms::ListAlgorithmsError> for Error {
5267 fn from(err: crate::operation::list_algorithms::ListAlgorithmsError) -> Self {
5268 match err {
5269 crate::operation::list_algorithms::ListAlgorithmsError::Unhandled(inner) => Error::Unhandled(inner),
5270 }
5271 }
5272}
5273impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aliases::ListAliasesError, R>> for Error
5274where
5275 R: Send + Sync + std::fmt::Debug + 'static,
5276{
5277 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aliases::ListAliasesError, R>) -> Self {
5278 match err {
5279 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5280 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5281 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5282 source: err.into(),
5283 }),
5284 }
5285 }
5286}
5287impl From<crate::operation::list_aliases::ListAliasesError> for Error {
5288 fn from(err: crate::operation::list_aliases::ListAliasesError) -> Self {
5289 match err {
5290 crate::operation::list_aliases::ListAliasesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5291 crate::operation::list_aliases::ListAliasesError::Unhandled(inner) => Error::Unhandled(inner),
5292 }
5293 }
5294}
5295impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_app_image_configs::ListAppImageConfigsError, R>> for Error
5296where
5297 R: Send + Sync + std::fmt::Debug + 'static,
5298{
5299 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_app_image_configs::ListAppImageConfigsError, R>) -> Self {
5300 match err {
5301 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5302 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5303 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5304 source: err.into(),
5305 }),
5306 }
5307 }
5308}
5309impl From<crate::operation::list_app_image_configs::ListAppImageConfigsError> for Error {
5310 fn from(err: crate::operation::list_app_image_configs::ListAppImageConfigsError) -> Self {
5311 match err {
5312 crate::operation::list_app_image_configs::ListAppImageConfigsError::Unhandled(inner) => Error::Unhandled(inner),
5313 }
5314 }
5315}
5316impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_apps::ListAppsError, R>> for Error
5317where
5318 R: Send + Sync + std::fmt::Debug + 'static,
5319{
5320 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_apps::ListAppsError, R>) -> Self {
5321 match err {
5322 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5323 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5324 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5325 source: err.into(),
5326 }),
5327 }
5328 }
5329}
5330impl From<crate::operation::list_apps::ListAppsError> for Error {
5331 fn from(err: crate::operation::list_apps::ListAppsError) -> Self {
5332 match err {
5333 crate::operation::list_apps::ListAppsError::Unhandled(inner) => Error::Unhandled(inner),
5334 }
5335 }
5336}
5337impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_artifacts::ListArtifactsError, R>> for Error
5338where
5339 R: Send + Sync + std::fmt::Debug + 'static,
5340{
5341 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_artifacts::ListArtifactsError, R>) -> Self {
5342 match err {
5343 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5344 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5345 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5346 source: err.into(),
5347 }),
5348 }
5349 }
5350}
5351impl From<crate::operation::list_artifacts::ListArtifactsError> for Error {
5352 fn from(err: crate::operation::list_artifacts::ListArtifactsError) -> Self {
5353 match err {
5354 crate::operation::list_artifacts::ListArtifactsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5355 crate::operation::list_artifacts::ListArtifactsError::Unhandled(inner) => Error::Unhandled(inner),
5356 }
5357 }
5358}
5359impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associations::ListAssociationsError, R>> for Error
5360where
5361 R: Send + Sync + std::fmt::Debug + 'static,
5362{
5363 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associations::ListAssociationsError, R>) -> Self {
5364 match err {
5365 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5366 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5367 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5368 source: err.into(),
5369 }),
5370 }
5371 }
5372}
5373impl From<crate::operation::list_associations::ListAssociationsError> for Error {
5374 fn from(err: crate::operation::list_associations::ListAssociationsError) -> Self {
5375 match err {
5376 crate::operation::list_associations::ListAssociationsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5377 crate::operation::list_associations::ListAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
5378 }
5379 }
5380}
5381impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_auto_ml_jobs::ListAutoMLJobsError, R>> for Error
5382where
5383 R: Send + Sync + std::fmt::Debug + 'static,
5384{
5385 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_auto_ml_jobs::ListAutoMLJobsError, R>) -> Self {
5386 match err {
5387 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5388 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5389 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5390 source: err.into(),
5391 }),
5392 }
5393 }
5394}
5395impl From<crate::operation::list_auto_ml_jobs::ListAutoMLJobsError> for Error {
5396 fn from(err: crate::operation::list_auto_ml_jobs::ListAutoMLJobsError) -> Self {
5397 match err {
5398 crate::operation::list_auto_ml_jobs::ListAutoMLJobsError::Unhandled(inner) => Error::Unhandled(inner),
5399 }
5400 }
5401}
5402impl<R>
5403 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError, R>>
5404 for Error
5405where
5406 R: Send + Sync + std::fmt::Debug + 'static,
5407{
5408 fn from(
5409 err: ::aws_smithy_runtime_api::client::result::SdkError<
5410 crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError,
5411 R,
5412 >,
5413 ) -> Self {
5414 match err {
5415 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5416 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5417 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5418 source: err.into(),
5419 }),
5420 }
5421 }
5422}
5423impl From<crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError> for Error {
5424 fn from(err: crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError) -> Self {
5425 match err {
5426 crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError::ResourceNotFound(inner) => {
5427 Error::ResourceNotFound(inner)
5428 }
5429 crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
5430 }
5431 }
5432}
5433impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_nodes::ListClusterNodesError, R>> for Error
5434where
5435 R: Send + Sync + std::fmt::Debug + 'static,
5436{
5437 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_nodes::ListClusterNodesError, R>) -> Self {
5438 match err {
5439 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5440 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5441 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5442 source: err.into(),
5443 }),
5444 }
5445 }
5446}
5447impl From<crate::operation::list_cluster_nodes::ListClusterNodesError> for Error {
5448 fn from(err: crate::operation::list_cluster_nodes::ListClusterNodesError) -> Self {
5449 match err {
5450 crate::operation::list_cluster_nodes::ListClusterNodesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5451 crate::operation::list_cluster_nodes::ListClusterNodesError::Unhandled(inner) => Error::Unhandled(inner),
5452 }
5453 }
5454}
5455impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_clusters::ListClustersError, R>> for Error
5456where
5457 R: Send + Sync + std::fmt::Debug + 'static,
5458{
5459 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_clusters::ListClustersError, R>) -> Self {
5460 match err {
5461 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5462 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5463 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5464 source: err.into(),
5465 }),
5466 }
5467 }
5468}
5469impl From<crate::operation::list_clusters::ListClustersError> for Error {
5470 fn from(err: crate::operation::list_clusters::ListClustersError) -> Self {
5471 match err {
5472 crate::operation::list_clusters::ListClustersError::Unhandled(inner) => Error::Unhandled(inner),
5473 }
5474 }
5475}
5476impl<R>
5477 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError, R>>
5478 for Error
5479where
5480 R: Send + Sync + std::fmt::Debug + 'static,
5481{
5482 fn from(
5483 err: ::aws_smithy_runtime_api::client::result::SdkError<
5484 crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError,
5485 R,
5486 >,
5487 ) -> Self {
5488 match err {
5489 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5490 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5491 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5492 source: err.into(),
5493 }),
5494 }
5495 }
5496}
5497impl From<crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError> for Error {
5498 fn from(err: crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError) -> Self {
5499 match err {
5500 crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError::Unhandled(inner) => Error::Unhandled(inner),
5501 }
5502 }
5503}
5504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_repositories::ListCodeRepositoriesError, R>> for Error
5505where
5506 R: Send + Sync + std::fmt::Debug + 'static,
5507{
5508 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_repositories::ListCodeRepositoriesError, R>) -> Self {
5509 match err {
5510 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5511 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5512 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5513 source: err.into(),
5514 }),
5515 }
5516 }
5517}
5518impl From<crate::operation::list_code_repositories::ListCodeRepositoriesError> for Error {
5519 fn from(err: crate::operation::list_code_repositories::ListCodeRepositoriesError) -> Self {
5520 match err {
5521 crate::operation::list_code_repositories::ListCodeRepositoriesError::Unhandled(inner) => Error::Unhandled(inner),
5522 }
5523 }
5524}
5525impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compilation_jobs::ListCompilationJobsError, R>> for Error
5526where
5527 R: Send + Sync + std::fmt::Debug + 'static,
5528{
5529 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compilation_jobs::ListCompilationJobsError, R>) -> Self {
5530 match err {
5531 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5532 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5533 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5534 source: err.into(),
5535 }),
5536 }
5537 }
5538}
5539impl From<crate::operation::list_compilation_jobs::ListCompilationJobsError> for Error {
5540 fn from(err: crate::operation::list_compilation_jobs::ListCompilationJobsError) -> Self {
5541 match err {
5542 crate::operation::list_compilation_jobs::ListCompilationJobsError::Unhandled(inner) => Error::Unhandled(inner),
5543 }
5544 }
5545}
5546impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compute_quotas::ListComputeQuotasError, R>> for Error
5547where
5548 R: Send + Sync + std::fmt::Debug + 'static,
5549{
5550 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compute_quotas::ListComputeQuotasError, R>) -> Self {
5551 match err {
5552 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5553 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5554 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5555 source: err.into(),
5556 }),
5557 }
5558 }
5559}
5560impl From<crate::operation::list_compute_quotas::ListComputeQuotasError> for Error {
5561 fn from(err: crate::operation::list_compute_quotas::ListComputeQuotasError) -> Self {
5562 match err {
5563 crate::operation::list_compute_quotas::ListComputeQuotasError::Unhandled(inner) => Error::Unhandled(inner),
5564 }
5565 }
5566}
5567impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contexts::ListContextsError, R>> for Error
5568where
5569 R: Send + Sync + std::fmt::Debug + 'static,
5570{
5571 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contexts::ListContextsError, R>) -> Self {
5572 match err {
5573 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5574 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5575 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5576 source: err.into(),
5577 }),
5578 }
5579 }
5580}
5581impl From<crate::operation::list_contexts::ListContextsError> for Error {
5582 fn from(err: crate::operation::list_contexts::ListContextsError) -> Self {
5583 match err {
5584 crate::operation::list_contexts::ListContextsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5585 crate::operation::list_contexts::ListContextsError::Unhandled(inner) => Error::Unhandled(inner),
5586 }
5587 }
5588}
5589impl<R>
5590 From<
5591 ::aws_smithy_runtime_api::client::result::SdkError<
5592 crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError,
5593 R,
5594 >,
5595 > for Error
5596where
5597 R: Send + Sync + std::fmt::Debug + 'static,
5598{
5599 fn from(
5600 err: ::aws_smithy_runtime_api::client::result::SdkError<
5601 crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError,
5602 R,
5603 >,
5604 ) -> Self {
5605 match err {
5606 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5607 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5608 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5609 source: err.into(),
5610 }),
5611 }
5612 }
5613}
5614impl From<crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError> for Error {
5615 fn from(err: crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError) -> Self {
5616 match err {
5617 crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
5618 }
5619 }
5620}
5621impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_fleets::ListDeviceFleetsError, R>> for Error
5622where
5623 R: Send + Sync + std::fmt::Debug + 'static,
5624{
5625 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_fleets::ListDeviceFleetsError, R>) -> Self {
5626 match err {
5627 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5628 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5629 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5630 source: err.into(),
5631 }),
5632 }
5633 }
5634}
5635impl From<crate::operation::list_device_fleets::ListDeviceFleetsError> for Error {
5636 fn from(err: crate::operation::list_device_fleets::ListDeviceFleetsError) -> Self {
5637 match err {
5638 crate::operation::list_device_fleets::ListDeviceFleetsError::Unhandled(inner) => Error::Unhandled(inner),
5639 }
5640 }
5641}
5642impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices::ListDevicesError, R>> for Error
5643where
5644 R: Send + Sync + std::fmt::Debug + 'static,
5645{
5646 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices::ListDevicesError, R>) -> Self {
5647 match err {
5648 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5649 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5650 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5651 source: err.into(),
5652 }),
5653 }
5654 }
5655}
5656impl From<crate::operation::list_devices::ListDevicesError> for Error {
5657 fn from(err: crate::operation::list_devices::ListDevicesError) -> Self {
5658 match err {
5659 crate::operation::list_devices::ListDevicesError::Unhandled(inner) => Error::Unhandled(inner),
5660 }
5661 }
5662}
5663impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>> for Error
5664where
5665 R: Send + Sync + std::fmt::Debug + 'static,
5666{
5667 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>) -> Self {
5668 match err {
5669 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5670 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5671 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5672 source: err.into(),
5673 }),
5674 }
5675 }
5676}
5677impl From<crate::operation::list_domains::ListDomainsError> for Error {
5678 fn from(err: crate::operation::list_domains::ListDomainsError) -> Self {
5679 match err {
5680 crate::operation::list_domains::ListDomainsError::Unhandled(inner) => Error::Unhandled(inner),
5681 }
5682 }
5683}
5684impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError, R>>
5685 for Error
5686where
5687 R: Send + Sync + std::fmt::Debug + 'static,
5688{
5689 fn from(
5690 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError, R>,
5691 ) -> Self {
5692 match err {
5693 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5694 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5695 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5696 source: err.into(),
5697 }),
5698 }
5699 }
5700}
5701impl From<crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError> for Error {
5702 fn from(err: crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError) -> Self {
5703 match err {
5704 crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError::Unhandled(inner) => Error::Unhandled(inner),
5705 }
5706 }
5707}
5708impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError, R>> for Error
5709where
5710 R: Send + Sync + std::fmt::Debug + 'static,
5711{
5712 fn from(
5713 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError, R>,
5714 ) -> Self {
5715 match err {
5716 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5717 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5718 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5719 source: err.into(),
5720 }),
5721 }
5722 }
5723}
5724impl From<crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError> for Error {
5725 fn from(err: crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError) -> Self {
5726 match err {
5727 crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError::Unhandled(inner) => Error::Unhandled(inner),
5728 }
5729 }
5730}
5731impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoint_configs::ListEndpointConfigsError, R>> for Error
5732where
5733 R: Send + Sync + std::fmt::Debug + 'static,
5734{
5735 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoint_configs::ListEndpointConfigsError, R>) -> Self {
5736 match err {
5737 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5738 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5739 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5740 source: err.into(),
5741 }),
5742 }
5743 }
5744}
5745impl From<crate::operation::list_endpoint_configs::ListEndpointConfigsError> for Error {
5746 fn from(err: crate::operation::list_endpoint_configs::ListEndpointConfigsError) -> Self {
5747 match err {
5748 crate::operation::list_endpoint_configs::ListEndpointConfigsError::Unhandled(inner) => Error::Unhandled(inner),
5749 }
5750 }
5751}
5752impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoints::ListEndpointsError, R>> for Error
5753where
5754 R: Send + Sync + std::fmt::Debug + 'static,
5755{
5756 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoints::ListEndpointsError, R>) -> Self {
5757 match err {
5758 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5759 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5760 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5761 source: err.into(),
5762 }),
5763 }
5764 }
5765}
5766impl From<crate::operation::list_endpoints::ListEndpointsError> for Error {
5767 fn from(err: crate::operation::list_endpoints::ListEndpointsError) -> Self {
5768 match err {
5769 crate::operation::list_endpoints::ListEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
5770 }
5771 }
5772}
5773impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_experiments::ListExperimentsError, R>> for Error
5774where
5775 R: Send + Sync + std::fmt::Debug + 'static,
5776{
5777 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_experiments::ListExperimentsError, R>) -> Self {
5778 match err {
5779 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5780 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5781 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5782 source: err.into(),
5783 }),
5784 }
5785 }
5786}
5787impl From<crate::operation::list_experiments::ListExperimentsError> for Error {
5788 fn from(err: crate::operation::list_experiments::ListExperimentsError) -> Self {
5789 match err {
5790 crate::operation::list_experiments::ListExperimentsError::Unhandled(inner) => Error::Unhandled(inner),
5791 }
5792 }
5793}
5794impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_feature_groups::ListFeatureGroupsError, R>> for Error
5795where
5796 R: Send + Sync + std::fmt::Debug + 'static,
5797{
5798 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_feature_groups::ListFeatureGroupsError, R>) -> Self {
5799 match err {
5800 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5801 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5802 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5803 source: err.into(),
5804 }),
5805 }
5806 }
5807}
5808impl From<crate::operation::list_feature_groups::ListFeatureGroupsError> for Error {
5809 fn from(err: crate::operation::list_feature_groups::ListFeatureGroupsError) -> Self {
5810 match err {
5811 crate::operation::list_feature_groups::ListFeatureGroupsError::Unhandled(inner) => Error::Unhandled(inner),
5812 }
5813 }
5814}
5815impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_definitions::ListFlowDefinitionsError, R>> for Error
5816where
5817 R: Send + Sync + std::fmt::Debug + 'static,
5818{
5819 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_definitions::ListFlowDefinitionsError, R>) -> Self {
5820 match err {
5821 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5822 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5823 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5824 source: err.into(),
5825 }),
5826 }
5827 }
5828}
5829impl From<crate::operation::list_flow_definitions::ListFlowDefinitionsError> for Error {
5830 fn from(err: crate::operation::list_flow_definitions::ListFlowDefinitionsError) -> Self {
5831 match err {
5832 crate::operation::list_flow_definitions::ListFlowDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
5833 }
5834 }
5835}
5836impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_contents::ListHubContentsError, R>> for Error
5837where
5838 R: Send + Sync + std::fmt::Debug + 'static,
5839{
5840 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_contents::ListHubContentsError, R>) -> Self {
5841 match err {
5842 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5843 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5844 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5845 source: err.into(),
5846 }),
5847 }
5848 }
5849}
5850impl From<crate::operation::list_hub_contents::ListHubContentsError> for Error {
5851 fn from(err: crate::operation::list_hub_contents::ListHubContentsError) -> Self {
5852 match err {
5853 crate::operation::list_hub_contents::ListHubContentsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5854 crate::operation::list_hub_contents::ListHubContentsError::Unhandled(inner) => Error::Unhandled(inner),
5855 }
5856 }
5857}
5858impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_content_versions::ListHubContentVersionsError, R>>
5859 for Error
5860where
5861 R: Send + Sync + std::fmt::Debug + 'static,
5862{
5863 fn from(
5864 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_content_versions::ListHubContentVersionsError, R>,
5865 ) -> Self {
5866 match err {
5867 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5868 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5869 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5870 source: err.into(),
5871 }),
5872 }
5873 }
5874}
5875impl From<crate::operation::list_hub_content_versions::ListHubContentVersionsError> for Error {
5876 fn from(err: crate::operation::list_hub_content_versions::ListHubContentVersionsError) -> Self {
5877 match err {
5878 crate::operation::list_hub_content_versions::ListHubContentVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5879 crate::operation::list_hub_content_versions::ListHubContentVersionsError::Unhandled(inner) => Error::Unhandled(inner),
5880 }
5881 }
5882}
5883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hubs::ListHubsError, R>> for Error
5884where
5885 R: Send + Sync + std::fmt::Debug + 'static,
5886{
5887 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hubs::ListHubsError, R>) -> Self {
5888 match err {
5889 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5890 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5891 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5892 source: err.into(),
5893 }),
5894 }
5895 }
5896}
5897impl From<crate::operation::list_hubs::ListHubsError> for Error {
5898 fn from(err: crate::operation::list_hubs::ListHubsError) -> Self {
5899 match err {
5900 crate::operation::list_hubs::ListHubsError::Unhandled(inner) => Error::Unhandled(inner),
5901 }
5902 }
5903}
5904impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_human_task_uis::ListHumanTaskUisError, R>> for Error
5905where
5906 R: Send + Sync + std::fmt::Debug + 'static,
5907{
5908 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_human_task_uis::ListHumanTaskUisError, R>) -> Self {
5909 match err {
5910 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5911 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5912 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5913 source: err.into(),
5914 }),
5915 }
5916 }
5917}
5918impl From<crate::operation::list_human_task_uis::ListHumanTaskUisError> for Error {
5919 fn from(err: crate::operation::list_human_task_uis::ListHumanTaskUisError) -> Self {
5920 match err {
5921 crate::operation::list_human_task_uis::ListHumanTaskUisError::Unhandled(inner) => Error::Unhandled(inner),
5922 }
5923 }
5924}
5925impl<R>
5926 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError, R>>
5927 for Error
5928where
5929 R: Send + Sync + std::fmt::Debug + 'static,
5930{
5931 fn from(
5932 err: ::aws_smithy_runtime_api::client::result::SdkError<
5933 crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError,
5934 R,
5935 >,
5936 ) -> Self {
5937 match err {
5938 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5939 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5940 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5941 source: err.into(),
5942 }),
5943 }
5944 }
5945}
5946impl From<crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError> for Error {
5947 fn from(err: crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError) -> Self {
5948 match err {
5949 crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError::Unhandled(inner) => Error::Unhandled(inner),
5950 }
5951 }
5952}
5953impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images::ListImagesError, R>> for Error
5954where
5955 R: Send + Sync + std::fmt::Debug + 'static,
5956{
5957 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images::ListImagesError, R>) -> Self {
5958 match err {
5959 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5960 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5961 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5962 source: err.into(),
5963 }),
5964 }
5965 }
5966}
5967impl From<crate::operation::list_images::ListImagesError> for Error {
5968 fn from(err: crate::operation::list_images::ListImagesError) -> Self {
5969 match err {
5970 crate::operation::list_images::ListImagesError::Unhandled(inner) => Error::Unhandled(inner),
5971 }
5972 }
5973}
5974impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_image_versions::ListImageVersionsError, R>> for Error
5975where
5976 R: Send + Sync + std::fmt::Debug + 'static,
5977{
5978 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_image_versions::ListImageVersionsError, R>) -> Self {
5979 match err {
5980 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5981 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5982 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5983 source: err.into(),
5984 }),
5985 }
5986 }
5987}
5988impl From<crate::operation::list_image_versions::ListImageVersionsError> for Error {
5989 fn from(err: crate::operation::list_image_versions::ListImageVersionsError) -> Self {
5990 match err {
5991 crate::operation::list_image_versions::ListImageVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5992 crate::operation::list_image_versions::ListImageVersionsError::Unhandled(inner) => Error::Unhandled(inner),
5993 }
5994 }
5995}
5996impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_components::ListInferenceComponentsError, R>>
5997 for Error
5998where
5999 R: Send + Sync + std::fmt::Debug + 'static,
6000{
6001 fn from(
6002 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_components::ListInferenceComponentsError, R>,
6003 ) -> Self {
6004 match err {
6005 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6006 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6007 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6008 source: err.into(),
6009 }),
6010 }
6011 }
6012}
6013impl From<crate::operation::list_inference_components::ListInferenceComponentsError> for Error {
6014 fn from(err: crate::operation::list_inference_components::ListInferenceComponentsError) -> Self {
6015 match err {
6016 crate::operation::list_inference_components::ListInferenceComponentsError::Unhandled(inner) => Error::Unhandled(inner),
6017 }
6018 }
6019}
6020impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_experiments::ListInferenceExperimentsError, R>>
6021 for Error
6022where
6023 R: Send + Sync + std::fmt::Debug + 'static,
6024{
6025 fn from(
6026 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_experiments::ListInferenceExperimentsError, R>,
6027 ) -> Self {
6028 match err {
6029 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6030 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6031 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6032 source: err.into(),
6033 }),
6034 }
6035 }
6036}
6037impl From<crate::operation::list_inference_experiments::ListInferenceExperimentsError> for Error {
6038 fn from(err: crate::operation::list_inference_experiments::ListInferenceExperimentsError) -> Self {
6039 match err {
6040 crate::operation::list_inference_experiments::ListInferenceExperimentsError::Unhandled(inner) => Error::Unhandled(inner),
6041 }
6042 }
6043}
6044impl<R>
6045 From<
6046 ::aws_smithy_runtime_api::client::result::SdkError<
6047 crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError,
6048 R,
6049 >,
6050 > for Error
6051where
6052 R: Send + Sync + std::fmt::Debug + 'static,
6053{
6054 fn from(
6055 err: ::aws_smithy_runtime_api::client::result::SdkError<
6056 crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError,
6057 R,
6058 >,
6059 ) -> Self {
6060 match err {
6061 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6062 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6063 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6064 source: err.into(),
6065 }),
6066 }
6067 }
6068}
6069impl From<crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError> for Error {
6070 fn from(err: crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError) -> Self {
6071 match err {
6072 crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError::Unhandled(inner) => Error::Unhandled(inner),
6073 }
6074 }
6075}
6076impl<R>
6077 From<
6078 ::aws_smithy_runtime_api::client::result::SdkError<
6079 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError,
6080 R,
6081 >,
6082 > for Error
6083where
6084 R: Send + Sync + std::fmt::Debug + 'static,
6085{
6086 fn from(
6087 err: ::aws_smithy_runtime_api::client::result::SdkError<
6088 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError,
6089 R,
6090 >,
6091 ) -> Self {
6092 match err {
6093 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6094 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6095 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6096 source: err.into(),
6097 }),
6098 }
6099 }
6100}
6101impl From<crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError> for Error {
6102 fn from(err: crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError) -> Self {
6103 match err {
6104 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError::ResourceNotFound(inner) => {
6105 Error::ResourceNotFound(inner)
6106 }
6107 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError::Unhandled(inner) => {
6108 Error::Unhandled(inner)
6109 }
6110 }
6111 }
6112}
6113impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_labeling_jobs::ListLabelingJobsError, R>> for Error
6114where
6115 R: Send + Sync + std::fmt::Debug + 'static,
6116{
6117 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_labeling_jobs::ListLabelingJobsError, R>) -> Self {
6118 match err {
6119 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6120 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6121 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6122 source: err.into(),
6123 }),
6124 }
6125 }
6126}
6127impl From<crate::operation::list_labeling_jobs::ListLabelingJobsError> for Error {
6128 fn from(err: crate::operation::list_labeling_jobs::ListLabelingJobsError) -> Self {
6129 match err {
6130 crate::operation::list_labeling_jobs::ListLabelingJobsError::Unhandled(inner) => Error::Unhandled(inner),
6131 }
6132 }
6133}
6134impl<R>
6135 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError, R>>
6136 for Error
6137where
6138 R: Send + Sync + std::fmt::Debug + 'static,
6139{
6140 fn from(
6141 err: ::aws_smithy_runtime_api::client::result::SdkError<
6142 crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError,
6143 R,
6144 >,
6145 ) -> Self {
6146 match err {
6147 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6148 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6149 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6150 source: err.into(),
6151 }),
6152 }
6153 }
6154}
6155impl From<crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError> for Error {
6156 fn from(err: crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError) -> Self {
6157 match err {
6158 crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError::ResourceNotFound(inner) => {
6159 Error::ResourceNotFound(inner)
6160 }
6161 crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
6162 }
6163 }
6164}
6165impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lineage_groups::ListLineageGroupsError, R>> for Error
6166where
6167 R: Send + Sync + std::fmt::Debug + 'static,
6168{
6169 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lineage_groups::ListLineageGroupsError, R>) -> Self {
6170 match err {
6171 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6172 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6173 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6174 source: err.into(),
6175 }),
6176 }
6177 }
6178}
6179impl From<crate::operation::list_lineage_groups::ListLineageGroupsError> for Error {
6180 fn from(err: crate::operation::list_lineage_groups::ListLineageGroupsError) -> Self {
6181 match err {
6182 crate::operation::list_lineage_groups::ListLineageGroupsError::Unhandled(inner) => Error::Unhandled(inner),
6183 }
6184 }
6185}
6186impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError, R>>
6187 for Error
6188where
6189 R: Send + Sync + std::fmt::Debug + 'static,
6190{
6191 fn from(
6192 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError, R>,
6193 ) -> Self {
6194 match err {
6195 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6196 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6197 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6198 source: err.into(),
6199 }),
6200 }
6201 }
6202}
6203impl From<crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError> for Error {
6204 fn from(err: crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError) -> Self {
6205 match err {
6206 crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError::Unhandled(inner) => Error::Unhandled(inner),
6207 }
6208 }
6209}
6210impl<R>
6211 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError, R>>
6212 for Error
6213where
6214 R: Send + Sync + std::fmt::Debug + 'static,
6215{
6216 fn from(
6217 err: ::aws_smithy_runtime_api::client::result::SdkError<
6218 crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError,
6219 R,
6220 >,
6221 ) -> Self {
6222 match err {
6223 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6224 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6225 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6226 source: err.into(),
6227 }),
6228 }
6229 }
6230}
6231impl From<crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError> for Error {
6232 fn from(err: crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError) -> Self {
6233 match err {
6234 crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
6235 }
6236 }
6237}
6238impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError, R>>
6239 for Error
6240where
6241 R: Send + Sync + std::fmt::Debug + 'static,
6242{
6243 fn from(
6244 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError, R>,
6245 ) -> Self {
6246 match err {
6247 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6248 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6249 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6250 source: err.into(),
6251 }),
6252 }
6253 }
6254}
6255impl From<crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError> for Error {
6256 fn from(err: crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError) -> Self {
6257 match err {
6258 crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError::Unhandled(inner) => Error::Unhandled(inner),
6259 }
6260 }
6261}
6262impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_cards::ListModelCardsError, R>> for Error
6263where
6264 R: Send + Sync + std::fmt::Debug + 'static,
6265{
6266 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_cards::ListModelCardsError, R>) -> Self {
6267 match err {
6268 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6269 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6270 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6271 source: err.into(),
6272 }),
6273 }
6274 }
6275}
6276impl From<crate::operation::list_model_cards::ListModelCardsError> for Error {
6277 fn from(err: crate::operation::list_model_cards::ListModelCardsError) -> Self {
6278 match err {
6279 crate::operation::list_model_cards::ListModelCardsError::Unhandled(inner) => Error::Unhandled(inner),
6280 }
6281 }
6282}
6283impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_versions::ListModelCardVersionsError, R>> for Error
6284where
6285 R: Send + Sync + std::fmt::Debug + 'static,
6286{
6287 fn from(
6288 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_versions::ListModelCardVersionsError, R>,
6289 ) -> Self {
6290 match err {
6291 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6292 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6293 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6294 source: err.into(),
6295 }),
6296 }
6297 }
6298}
6299impl From<crate::operation::list_model_card_versions::ListModelCardVersionsError> for Error {
6300 fn from(err: crate::operation::list_model_card_versions::ListModelCardVersionsError) -> Self {
6301 match err {
6302 crate::operation::list_model_card_versions::ListModelCardVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6303 crate::operation::list_model_card_versions::ListModelCardVersionsError::Unhandled(inner) => Error::Unhandled(inner),
6304 }
6305 }
6306}
6307impl<R>
6308 From<
6309 ::aws_smithy_runtime_api::client::result::SdkError<
6310 crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError,
6311 R,
6312 >,
6313 > for Error
6314where
6315 R: Send + Sync + std::fmt::Debug + 'static,
6316{
6317 fn from(
6318 err: ::aws_smithy_runtime_api::client::result::SdkError<
6319 crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError,
6320 R,
6321 >,
6322 ) -> Self {
6323 match err {
6324 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6325 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6326 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6327 source: err.into(),
6328 }),
6329 }
6330 }
6331}
6332impl From<crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError> for Error {
6333 fn from(err: crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError) -> Self {
6334 match err {
6335 crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError::Unhandled(inner) => {
6336 Error::Unhandled(inner)
6337 }
6338 }
6339 }
6340}
6341impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_metadata::ListModelMetadataError, R>> for Error
6342where
6343 R: Send + Sync + std::fmt::Debug + 'static,
6344{
6345 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_metadata::ListModelMetadataError, R>) -> Self {
6346 match err {
6347 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6348 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6349 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6350 source: err.into(),
6351 }),
6352 }
6353 }
6354}
6355impl From<crate::operation::list_model_metadata::ListModelMetadataError> for Error {
6356 fn from(err: crate::operation::list_model_metadata::ListModelMetadataError) -> Self {
6357 match err {
6358 crate::operation::list_model_metadata::ListModelMetadataError::Unhandled(inner) => Error::Unhandled(inner),
6359 }
6360 }
6361}
6362impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_package_groups::ListModelPackageGroupsError, R>>
6363 for Error
6364where
6365 R: Send + Sync + std::fmt::Debug + 'static,
6366{
6367 fn from(
6368 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_package_groups::ListModelPackageGroupsError, R>,
6369 ) -> Self {
6370 match err {
6371 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6372 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6373 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6374 source: err.into(),
6375 }),
6376 }
6377 }
6378}
6379impl From<crate::operation::list_model_package_groups::ListModelPackageGroupsError> for Error {
6380 fn from(err: crate::operation::list_model_package_groups::ListModelPackageGroupsError) -> Self {
6381 match err {
6382 crate::operation::list_model_package_groups::ListModelPackageGroupsError::Unhandled(inner) => Error::Unhandled(inner),
6383 }
6384 }
6385}
6386impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_packages::ListModelPackagesError, R>> for Error
6387where
6388 R: Send + Sync + std::fmt::Debug + 'static,
6389{
6390 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_packages::ListModelPackagesError, R>) -> Self {
6391 match err {
6392 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6393 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6394 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6395 source: err.into(),
6396 }),
6397 }
6398 }
6399}
6400impl From<crate::operation::list_model_packages::ListModelPackagesError> for Error {
6401 fn from(err: crate::operation::list_model_packages::ListModelPackagesError) -> Self {
6402 match err {
6403 crate::operation::list_model_packages::ListModelPackagesError::Unhandled(inner) => Error::Unhandled(inner),
6404 }
6405 }
6406}
6407impl<R>
6408 From<
6409 ::aws_smithy_runtime_api::client::result::SdkError<
6410 crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError,
6411 R,
6412 >,
6413 > for Error
6414where
6415 R: Send + Sync + std::fmt::Debug + 'static,
6416{
6417 fn from(
6418 err: ::aws_smithy_runtime_api::client::result::SdkError<
6419 crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError,
6420 R,
6421 >,
6422 ) -> Self {
6423 match err {
6424 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6425 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6426 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6427 source: err.into(),
6428 }),
6429 }
6430 }
6431}
6432impl From<crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError> for Error {
6433 fn from(err: crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError) -> Self {
6434 match err {
6435 crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
6436 }
6437 }
6438}
6439impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_models::ListModelsError, R>> for Error
6440where
6441 R: Send + Sync + std::fmt::Debug + 'static,
6442{
6443 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_models::ListModelsError, R>) -> Self {
6444 match err {
6445 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6446 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6447 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6448 source: err.into(),
6449 }),
6450 }
6451 }
6452}
6453impl From<crate::operation::list_models::ListModelsError> for Error {
6454 fn from(err: crate::operation::list_models::ListModelsError) -> Self {
6455 match err {
6456 crate::operation::list_models::ListModelsError::Unhandled(inner) => Error::Unhandled(inner),
6457 }
6458 }
6459}
6460impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError, R>>
6461 for Error
6462where
6463 R: Send + Sync + std::fmt::Debug + 'static,
6464{
6465 fn from(
6466 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError, R>,
6467 ) -> Self {
6468 match err {
6469 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6470 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6471 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6472 source: err.into(),
6473 }),
6474 }
6475 }
6476}
6477impl From<crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError> for Error {
6478 fn from(err: crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError) -> Self {
6479 match err {
6480 crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError::ResourceNotFound(inner) => {
6481 Error::ResourceNotFound(inner)
6482 }
6483 crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError::Unhandled(inner) => Error::Unhandled(inner),
6484 }
6485 }
6486}
6487impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alerts::ListMonitoringAlertsError, R>> for Error
6488where
6489 R: Send + Sync + std::fmt::Debug + 'static,
6490{
6491 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alerts::ListMonitoringAlertsError, R>) -> Self {
6492 match err {
6493 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6494 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6495 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6496 source: err.into(),
6497 }),
6498 }
6499 }
6500}
6501impl From<crate::operation::list_monitoring_alerts::ListMonitoringAlertsError> for Error {
6502 fn from(err: crate::operation::list_monitoring_alerts::ListMonitoringAlertsError) -> Self {
6503 match err {
6504 crate::operation::list_monitoring_alerts::ListMonitoringAlertsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6505 crate::operation::list_monitoring_alerts::ListMonitoringAlertsError::Unhandled(inner) => Error::Unhandled(inner),
6506 }
6507 }
6508}
6509impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_executions::ListMonitoringExecutionsError, R>>
6510 for Error
6511where
6512 R: Send + Sync + std::fmt::Debug + 'static,
6513{
6514 fn from(
6515 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_executions::ListMonitoringExecutionsError, R>,
6516 ) -> Self {
6517 match err {
6518 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6519 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6520 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6521 source: err.into(),
6522 }),
6523 }
6524 }
6525}
6526impl From<crate::operation::list_monitoring_executions::ListMonitoringExecutionsError> for Error {
6527 fn from(err: crate::operation::list_monitoring_executions::ListMonitoringExecutionsError) -> Self {
6528 match err {
6529 crate::operation::list_monitoring_executions::ListMonitoringExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
6530 }
6531 }
6532}
6533impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError, R>>
6534 for Error
6535where
6536 R: Send + Sync + std::fmt::Debug + 'static,
6537{
6538 fn from(
6539 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError, R>,
6540 ) -> Self {
6541 match err {
6542 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6543 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6544 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6545 source: err.into(),
6546 }),
6547 }
6548 }
6549}
6550impl From<crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError> for Error {
6551 fn from(err: crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError) -> Self {
6552 match err {
6553 crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError::Unhandled(inner) => Error::Unhandled(inner),
6554 }
6555 }
6556}
6557impl<R>
6558 From<
6559 ::aws_smithy_runtime_api::client::result::SdkError<
6560 crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError,
6561 R,
6562 >,
6563 > for Error
6564where
6565 R: Send + Sync + std::fmt::Debug + 'static,
6566{
6567 fn from(
6568 err: ::aws_smithy_runtime_api::client::result::SdkError<
6569 crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError,
6570 R,
6571 >,
6572 ) -> Self {
6573 match err {
6574 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6575 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6576 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6577 source: err.into(),
6578 }),
6579 }
6580 }
6581}
6582impl From<crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError> for Error {
6583 fn from(err: crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError) -> Self {
6584 match err {
6585 crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError::Unhandled(inner) => {
6586 Error::Unhandled(inner)
6587 }
6588 }
6589 }
6590}
6591impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notebook_instances::ListNotebookInstancesError, R>> for Error
6592where
6593 R: Send + Sync + std::fmt::Debug + 'static,
6594{
6595 fn from(
6596 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notebook_instances::ListNotebookInstancesError, R>,
6597 ) -> Self {
6598 match err {
6599 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6600 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6601 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6602 source: err.into(),
6603 }),
6604 }
6605 }
6606}
6607impl From<crate::operation::list_notebook_instances::ListNotebookInstancesError> for Error {
6608 fn from(err: crate::operation::list_notebook_instances::ListNotebookInstancesError) -> Self {
6609 match err {
6610 crate::operation::list_notebook_instances::ListNotebookInstancesError::Unhandled(inner) => Error::Unhandled(inner),
6611 }
6612 }
6613}
6614impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_optimization_jobs::ListOptimizationJobsError, R>> for Error
6615where
6616 R: Send + Sync + std::fmt::Debug + 'static,
6617{
6618 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_optimization_jobs::ListOptimizationJobsError, R>) -> Self {
6619 match err {
6620 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6621 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6622 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6623 source: err.into(),
6624 }),
6625 }
6626 }
6627}
6628impl From<crate::operation::list_optimization_jobs::ListOptimizationJobsError> for Error {
6629 fn from(err: crate::operation::list_optimization_jobs::ListOptimizationJobsError) -> Self {
6630 match err {
6631 crate::operation::list_optimization_jobs::ListOptimizationJobsError::Unhandled(inner) => Error::Unhandled(inner),
6632 }
6633 }
6634}
6635impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_partner_apps::ListPartnerAppsError, R>> for Error
6636where
6637 R: Send + Sync + std::fmt::Debug + 'static,
6638{
6639 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_partner_apps::ListPartnerAppsError, R>) -> Self {
6640 match err {
6641 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6642 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6643 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6644 source: err.into(),
6645 }),
6646 }
6647 }
6648}
6649impl From<crate::operation::list_partner_apps::ListPartnerAppsError> for Error {
6650 fn from(err: crate::operation::list_partner_apps::ListPartnerAppsError) -> Self {
6651 match err {
6652 crate::operation::list_partner_apps::ListPartnerAppsError::Unhandled(inner) => Error::Unhandled(inner),
6653 }
6654 }
6655}
6656impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_executions::ListPipelineExecutionsError, R>> for Error
6657where
6658 R: Send + Sync + std::fmt::Debug + 'static,
6659{
6660 fn from(
6661 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_executions::ListPipelineExecutionsError, R>,
6662 ) -> Self {
6663 match err {
6664 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6665 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6666 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6667 source: err.into(),
6668 }),
6669 }
6670 }
6671}
6672impl From<crate::operation::list_pipeline_executions::ListPipelineExecutionsError> for Error {
6673 fn from(err: crate::operation::list_pipeline_executions::ListPipelineExecutionsError) -> Self {
6674 match err {
6675 crate::operation::list_pipeline_executions::ListPipelineExecutionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6676 crate::operation::list_pipeline_executions::ListPipelineExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
6677 }
6678 }
6679}
6680impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError, R>>
6681 for Error
6682where
6683 R: Send + Sync + std::fmt::Debug + 'static,
6684{
6685 fn from(
6686 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError, R>,
6687 ) -> Self {
6688 match err {
6689 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6690 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6691 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6692 source: err.into(),
6693 }),
6694 }
6695 }
6696}
6697impl From<crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError> for Error {
6698 fn from(err: crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError) -> Self {
6699 match err {
6700 crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError::ResourceNotFound(inner) => {
6701 Error::ResourceNotFound(inner)
6702 }
6703 crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError::Unhandled(inner) => Error::Unhandled(inner),
6704 }
6705 }
6706}
6707impl<R>
6708 From<
6709 ::aws_smithy_runtime_api::client::result::SdkError<
6710 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError,
6711 R,
6712 >,
6713 > for Error
6714where
6715 R: Send + Sync + std::fmt::Debug + 'static,
6716{
6717 fn from(
6718 err: ::aws_smithy_runtime_api::client::result::SdkError<
6719 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError,
6720 R,
6721 >,
6722 ) -> Self {
6723 match err {
6724 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6725 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6726 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6727 source: err.into(),
6728 }),
6729 }
6730 }
6731}
6732impl From<crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError> for Error {
6733 fn from(err: crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError) -> Self {
6734 match err {
6735 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError::ResourceNotFound(inner) => {
6736 Error::ResourceNotFound(inner)
6737 }
6738 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError::Unhandled(inner) => {
6739 Error::Unhandled(inner)
6740 }
6741 }
6742 }
6743}
6744impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipelines::ListPipelinesError, R>> for Error
6745where
6746 R: Send + Sync + std::fmt::Debug + 'static,
6747{
6748 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipelines::ListPipelinesError, R>) -> Self {
6749 match err {
6750 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6751 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6752 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6753 source: err.into(),
6754 }),
6755 }
6756 }
6757}
6758impl From<crate::operation::list_pipelines::ListPipelinesError> for Error {
6759 fn from(err: crate::operation::list_pipelines::ListPipelinesError) -> Self {
6760 match err {
6761 crate::operation::list_pipelines::ListPipelinesError::Unhandled(inner) => Error::Unhandled(inner),
6762 }
6763 }
6764}
6765impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_processing_jobs::ListProcessingJobsError, R>> for Error
6766where
6767 R: Send + Sync + std::fmt::Debug + 'static,
6768{
6769 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_processing_jobs::ListProcessingJobsError, R>) -> Self {
6770 match err {
6771 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6772 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6773 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6774 source: err.into(),
6775 }),
6776 }
6777 }
6778}
6779impl From<crate::operation::list_processing_jobs::ListProcessingJobsError> for Error {
6780 fn from(err: crate::operation::list_processing_jobs::ListProcessingJobsError) -> Self {
6781 match err {
6782 crate::operation::list_processing_jobs::ListProcessingJobsError::Unhandled(inner) => Error::Unhandled(inner),
6783 }
6784 }
6785}
6786impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>> for Error
6787where
6788 R: Send + Sync + std::fmt::Debug + 'static,
6789{
6790 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>) -> Self {
6791 match err {
6792 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6793 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6794 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6795 source: err.into(),
6796 }),
6797 }
6798 }
6799}
6800impl From<crate::operation::list_projects::ListProjectsError> for Error {
6801 fn from(err: crate::operation::list_projects::ListProjectsError) -> Self {
6802 match err {
6803 crate::operation::list_projects::ListProjectsError::Unhandled(inner) => Error::Unhandled(inner),
6804 }
6805 }
6806}
6807impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_catalogs::ListResourceCatalogsError, R>> for Error
6808where
6809 R: Send + Sync + std::fmt::Debug + 'static,
6810{
6811 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_catalogs::ListResourceCatalogsError, R>) -> Self {
6812 match err {
6813 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6814 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6815 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6816 source: err.into(),
6817 }),
6818 }
6819 }
6820}
6821impl From<crate::operation::list_resource_catalogs::ListResourceCatalogsError> for Error {
6822 fn from(err: crate::operation::list_resource_catalogs::ListResourceCatalogsError) -> Self {
6823 match err {
6824 crate::operation::list_resource_catalogs::ListResourceCatalogsError::Unhandled(inner) => Error::Unhandled(inner),
6825 }
6826 }
6827}
6828impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces::ListSpacesError, R>> for Error
6829where
6830 R: Send + Sync + std::fmt::Debug + 'static,
6831{
6832 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces::ListSpacesError, R>) -> Self {
6833 match err {
6834 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6835 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6836 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6837 source: err.into(),
6838 }),
6839 }
6840 }
6841}
6842impl From<crate::operation::list_spaces::ListSpacesError> for Error {
6843 fn from(err: crate::operation::list_spaces::ListSpacesError) -> Self {
6844 match err {
6845 crate::operation::list_spaces::ListSpacesError::Unhandled(inner) => Error::Unhandled(inner),
6846 }
6847 }
6848}
6849impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stage_devices::ListStageDevicesError, R>> for Error
6850where
6851 R: Send + Sync + std::fmt::Debug + 'static,
6852{
6853 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stage_devices::ListStageDevicesError, R>) -> Self {
6854 match err {
6855 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6856 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6857 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6858 source: err.into(),
6859 }),
6860 }
6861 }
6862}
6863impl From<crate::operation::list_stage_devices::ListStageDevicesError> for Error {
6864 fn from(err: crate::operation::list_stage_devices::ListStageDevicesError) -> Self {
6865 match err {
6866 crate::operation::list_stage_devices::ListStageDevicesError::Unhandled(inner) => Error::Unhandled(inner),
6867 }
6868 }
6869}
6870impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError, R>>
6871 for Error
6872where
6873 R: Send + Sync + std::fmt::Debug + 'static,
6874{
6875 fn from(
6876 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError, R>,
6877 ) -> Self {
6878 match err {
6879 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6880 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6881 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6882 source: err.into(),
6883 }),
6884 }
6885 }
6886}
6887impl From<crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError> for Error {
6888 fn from(err: crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError) -> Self {
6889 match err {
6890 crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError::ResourceInUse(inner) => Error::ResourceInUse(inner),
6891 crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError::Unhandled(inner) => Error::Unhandled(inner),
6892 }
6893 }
6894}
6895impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError, R>>
6896 for Error
6897where
6898 R: Send + Sync + std::fmt::Debug + 'static,
6899{
6900 fn from(
6901 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError, R>,
6902 ) -> Self {
6903 match err {
6904 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6905 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6906 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6907 source: err.into(),
6908 }),
6909 }
6910 }
6911}
6912impl From<crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError> for Error {
6913 fn from(err: crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError) -> Self {
6914 match err {
6915 crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError::Unhandled(inner) => Error::Unhandled(inner),
6916 }
6917 }
6918}
6919impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags::ListTagsError, R>> for Error
6920where
6921 R: Send + Sync + std::fmt::Debug + 'static,
6922{
6923 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags::ListTagsError, R>) -> Self {
6924 match err {
6925 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6926 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6927 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6928 source: err.into(),
6929 }),
6930 }
6931 }
6932}
6933impl From<crate::operation::list_tags::ListTagsError> for Error {
6934 fn from(err: crate::operation::list_tags::ListTagsError) -> Self {
6935 match err {
6936 crate::operation::list_tags::ListTagsError::Unhandled(inner) => Error::Unhandled(inner),
6937 }
6938 }
6939}
6940impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_jobs::ListTrainingJobsError, R>> for Error
6941where
6942 R: Send + Sync + std::fmt::Debug + 'static,
6943{
6944 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_jobs::ListTrainingJobsError, R>) -> Self {
6945 match err {
6946 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6947 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6948 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6949 source: err.into(),
6950 }),
6951 }
6952 }
6953}
6954impl From<crate::operation::list_training_jobs::ListTrainingJobsError> for Error {
6955 fn from(err: crate::operation::list_training_jobs::ListTrainingJobsError) -> Self {
6956 match err {
6957 crate::operation::list_training_jobs::ListTrainingJobsError::Unhandled(inner) => Error::Unhandled(inner),
6958 }
6959 }
6960}
6961impl<R>
6962 From<
6963 ::aws_smithy_runtime_api::client::result::SdkError<
6964 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError,
6965 R,
6966 >,
6967 > for Error
6968where
6969 R: Send + Sync + std::fmt::Debug + 'static,
6970{
6971 fn from(
6972 err: ::aws_smithy_runtime_api::client::result::SdkError<
6973 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError,
6974 R,
6975 >,
6976 ) -> Self {
6977 match err {
6978 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6979 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6980 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6981 source: err.into(),
6982 }),
6983 }
6984 }
6985}
6986impl From<crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError> for Error {
6987 fn from(err: crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError) -> Self {
6988 match err {
6989 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6990 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
6991 }
6992 }
6993}
6994impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_plans::ListTrainingPlansError, R>> for Error
6995where
6996 R: Send + Sync + std::fmt::Debug + 'static,
6997{
6998 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_plans::ListTrainingPlansError, R>) -> Self {
6999 match err {
7000 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7001 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7002 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7003 source: err.into(),
7004 }),
7005 }
7006 }
7007}
7008impl From<crate::operation::list_training_plans::ListTrainingPlansError> for Error {
7009 fn from(err: crate::operation::list_training_plans::ListTrainingPlansError) -> Self {
7010 match err {
7011 crate::operation::list_training_plans::ListTrainingPlansError::Unhandled(inner) => Error::Unhandled(inner),
7012 }
7013 }
7014}
7015impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_transform_jobs::ListTransformJobsError, R>> for Error
7016where
7017 R: Send + Sync + std::fmt::Debug + 'static,
7018{
7019 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_transform_jobs::ListTransformJobsError, R>) -> Self {
7020 match err {
7021 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7022 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7023 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7024 source: err.into(),
7025 }),
7026 }
7027 }
7028}
7029impl From<crate::operation::list_transform_jobs::ListTransformJobsError> for Error {
7030 fn from(err: crate::operation::list_transform_jobs::ListTransformJobsError) -> Self {
7031 match err {
7032 crate::operation::list_transform_jobs::ListTransformJobsError::Unhandled(inner) => Error::Unhandled(inner),
7033 }
7034 }
7035}
7036impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trial_components::ListTrialComponentsError, R>> for Error
7037where
7038 R: Send + Sync + std::fmt::Debug + 'static,
7039{
7040 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trial_components::ListTrialComponentsError, R>) -> Self {
7041 match err {
7042 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7043 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7044 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7045 source: err.into(),
7046 }),
7047 }
7048 }
7049}
7050impl From<crate::operation::list_trial_components::ListTrialComponentsError> for Error {
7051 fn from(err: crate::operation::list_trial_components::ListTrialComponentsError) -> Self {
7052 match err {
7053 crate::operation::list_trial_components::ListTrialComponentsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7054 crate::operation::list_trial_components::ListTrialComponentsError::Unhandled(inner) => Error::Unhandled(inner),
7055 }
7056 }
7057}
7058impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trials::ListTrialsError, R>> for Error
7059where
7060 R: Send + Sync + std::fmt::Debug + 'static,
7061{
7062 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trials::ListTrialsError, R>) -> Self {
7063 match err {
7064 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7065 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7066 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7067 source: err.into(),
7068 }),
7069 }
7070 }
7071}
7072impl From<crate::operation::list_trials::ListTrialsError> for Error {
7073 fn from(err: crate::operation::list_trials::ListTrialsError) -> Self {
7074 match err {
7075 crate::operation::list_trials::ListTrialsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7076 crate::operation::list_trials::ListTrialsError::Unhandled(inner) => Error::Unhandled(inner),
7077 }
7078 }
7079}
7080impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_profiles::ListUserProfilesError, R>> for Error
7081where
7082 R: Send + Sync + std::fmt::Debug + 'static,
7083{
7084 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_profiles::ListUserProfilesError, R>) -> Self {
7085 match err {
7086 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7087 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7088 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7089 source: err.into(),
7090 }),
7091 }
7092 }
7093}
7094impl From<crate::operation::list_user_profiles::ListUserProfilesError> for Error {
7095 fn from(err: crate::operation::list_user_profiles::ListUserProfilesError) -> Self {
7096 match err {
7097 crate::operation::list_user_profiles::ListUserProfilesError::Unhandled(inner) => Error::Unhandled(inner),
7098 }
7099 }
7100}
7101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workforces::ListWorkforcesError, R>> for Error
7102where
7103 R: Send + Sync + std::fmt::Debug + 'static,
7104{
7105 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workforces::ListWorkforcesError, R>) -> Self {
7106 match err {
7107 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7108 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7109 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7110 source: err.into(),
7111 }),
7112 }
7113 }
7114}
7115impl From<crate::operation::list_workforces::ListWorkforcesError> for Error {
7116 fn from(err: crate::operation::list_workforces::ListWorkforcesError) -> Self {
7117 match err {
7118 crate::operation::list_workforces::ListWorkforcesError::Unhandled(inner) => Error::Unhandled(inner),
7119 }
7120 }
7121}
7122impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workteams::ListWorkteamsError, R>> for Error
7123where
7124 R: Send + Sync + std::fmt::Debug + 'static,
7125{
7126 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workteams::ListWorkteamsError, R>) -> Self {
7127 match err {
7128 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7129 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7130 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7131 source: err.into(),
7132 }),
7133 }
7134 }
7135}
7136impl From<crate::operation::list_workteams::ListWorkteamsError> for Error {
7137 fn from(err: crate::operation::list_workteams::ListWorkteamsError) -> Self {
7138 match err {
7139 crate::operation::list_workteams::ListWorkteamsError::Unhandled(inner) => Error::Unhandled(inner),
7140 }
7141 }
7142}
7143impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError, R>>
7144 for Error
7145where
7146 R: Send + Sync + std::fmt::Debug + 'static,
7147{
7148 fn from(
7149 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError, R>,
7150 ) -> Self {
7151 match err {
7152 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7153 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7154 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7155 source: err.into(),
7156 }),
7157 }
7158 }
7159}
7160impl From<crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError> for Error {
7161 fn from(err: crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError) -> Self {
7162 match err {
7163 crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError::ConflictException(inner) => {
7164 Error::ConflictException(inner)
7165 }
7166 crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
7167 }
7168 }
7169}
7170impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_lineage::QueryLineageError, R>> for Error
7171where
7172 R: Send + Sync + std::fmt::Debug + 'static,
7173{
7174 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_lineage::QueryLineageError, R>) -> Self {
7175 match err {
7176 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7177 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7178 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7179 source: err.into(),
7180 }),
7181 }
7182 }
7183}
7184impl From<crate::operation::query_lineage::QueryLineageError> for Error {
7185 fn from(err: crate::operation::query_lineage::QueryLineageError) -> Self {
7186 match err {
7187 crate::operation::query_lineage::QueryLineageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7188 crate::operation::query_lineage::QueryLineageError::Unhandled(inner) => Error::Unhandled(inner),
7189 }
7190 }
7191}
7192impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_devices::RegisterDevicesError, R>> for Error
7193where
7194 R: Send + Sync + std::fmt::Debug + 'static,
7195{
7196 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_devices::RegisterDevicesError, R>) -> Self {
7197 match err {
7198 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7199 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7200 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7201 source: err.into(),
7202 }),
7203 }
7204 }
7205}
7206impl From<crate::operation::register_devices::RegisterDevicesError> for Error {
7207 fn from(err: crate::operation::register_devices::RegisterDevicesError) -> Self {
7208 match err {
7209 crate::operation::register_devices::RegisterDevicesError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
7210 crate::operation::register_devices::RegisterDevicesError::Unhandled(inner) => Error::Unhandled(inner),
7211 }
7212 }
7213}
7214impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::render_ui_template::RenderUiTemplateError, R>> for Error
7215where
7216 R: Send + Sync + std::fmt::Debug + 'static,
7217{
7218 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::render_ui_template::RenderUiTemplateError, R>) -> Self {
7219 match err {
7220 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7221 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7222 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7223 source: err.into(),
7224 }),
7225 }
7226 }
7227}
7228impl From<crate::operation::render_ui_template::RenderUiTemplateError> for Error {
7229 fn from(err: crate::operation::render_ui_template::RenderUiTemplateError) -> Self {
7230 match err {
7231 crate::operation::render_ui_template::RenderUiTemplateError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7232 crate::operation::render_ui_template::RenderUiTemplateError::Unhandled(inner) => Error::Unhandled(inner),
7233 }
7234 }
7235}
7236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_pipeline_execution::RetryPipelineExecutionError, R>> for Error
7237where
7238 R: Send + Sync + std::fmt::Debug + 'static,
7239{
7240 fn from(
7241 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_pipeline_execution::RetryPipelineExecutionError, R>,
7242 ) -> Self {
7243 match err {
7244 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7245 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7246 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7247 source: err.into(),
7248 }),
7249 }
7250 }
7251}
7252impl From<crate::operation::retry_pipeline_execution::RetryPipelineExecutionError> for Error {
7253 fn from(err: crate::operation::retry_pipeline_execution::RetryPipelineExecutionError) -> Self {
7254 match err {
7255 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
7256 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::ResourceLimitExceeded(inner) => {
7257 Error::ResourceLimitExceeded(inner)
7258 }
7259 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7260 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
7261 }
7262 }
7263}
7264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search::SearchError, R>> for Error
7265where
7266 R: Send + Sync + std::fmt::Debug + 'static,
7267{
7268 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search::SearchError, R>) -> Self {
7269 match err {
7270 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7271 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7272 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7273 source: err.into(),
7274 }),
7275 }
7276 }
7277}
7278impl From<crate::operation::search::SearchError> for Error {
7279 fn from(err: crate::operation::search::SearchError) -> Self {
7280 match err {
7281 crate::operation::search::SearchError::Unhandled(inner) => Error::Unhandled(inner),
7282 }
7283 }
7284}
7285impl<R>
7286 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError, R>>
7287 for Error
7288where
7289 R: Send + Sync + std::fmt::Debug + 'static,
7290{
7291 fn from(
7292 err: ::aws_smithy_runtime_api::client::result::SdkError<
7293 crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError,
7294 R,
7295 >,
7296 ) -> Self {
7297 match err {
7298 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7299 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7300 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7301 source: err.into(),
7302 }),
7303 }
7304 }
7305}
7306impl From<crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError> for Error {
7307 fn from(err: crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError) -> Self {
7308 match err {
7309 crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError::ResourceLimitExceeded(inner) => {
7310 Error::ResourceLimitExceeded(inner)
7311 }
7312 crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
7313 }
7314 }
7315}
7316impl<R>
7317 From<
7318 ::aws_smithy_runtime_api::client::result::SdkError<
7319 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError,
7320 R,
7321 >,
7322 > for Error
7323where
7324 R: Send + Sync + std::fmt::Debug + 'static,
7325{
7326 fn from(
7327 err: ::aws_smithy_runtime_api::client::result::SdkError<
7328 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError,
7329 R,
7330 >,
7331 ) -> Self {
7332 match err {
7333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7336 source: err.into(),
7337 }),
7338 }
7339 }
7340}
7341impl From<crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError> for Error {
7342 fn from(err: crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError) -> Self {
7343 match err {
7344 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::ConflictException(inner) => {
7345 Error::ConflictException(inner)
7346 }
7347 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::ResourceLimitExceeded(inner) => {
7348 Error::ResourceLimitExceeded(inner)
7349 }
7350 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::ResourceNotFound(inner) => {
7351 Error::ResourceNotFound(inner)
7352 }
7353 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::Unhandled(inner) => {
7354 Error::Unhandled(inner)
7355 }
7356 }
7357 }
7358}
7359impl<R>
7360 From<
7361 ::aws_smithy_runtime_api::client::result::SdkError<
7362 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError,
7363 R,
7364 >,
7365 > for Error
7366where
7367 R: Send + Sync + std::fmt::Debug + 'static,
7368{
7369 fn from(
7370 err: ::aws_smithy_runtime_api::client::result::SdkError<
7371 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError,
7372 R,
7373 >,
7374 ) -> Self {
7375 match err {
7376 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7377 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7378 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7379 source: err.into(),
7380 }),
7381 }
7382 }
7383}
7384impl From<crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError> for Error {
7385 fn from(err: crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError) -> Self {
7386 match err {
7387 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::ConflictException(inner) => {
7388 Error::ConflictException(inner)
7389 }
7390 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::ResourceLimitExceeded(inner) => {
7391 Error::ResourceLimitExceeded(inner)
7392 }
7393 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::ResourceNotFound(inner) => {
7394 Error::ResourceNotFound(inner)
7395 }
7396 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::Unhandled(inner) => {
7397 Error::Unhandled(inner)
7398 }
7399 }
7400 }
7401}
7402impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError, R>>
7403 for Error
7404where
7405 R: Send + Sync + std::fmt::Debug + 'static,
7406{
7407 fn from(
7408 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError, R>,
7409 ) -> Self {
7410 match err {
7411 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7412 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7413 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7414 source: err.into(),
7415 }),
7416 }
7417 }
7418}
7419impl From<crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError> for Error {
7420 fn from(err: crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError) -> Self {
7421 match err {
7422 crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
7423 }
7424 }
7425}
7426impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_inference_experiment::StartInferenceExperimentError, R>>
7427 for Error
7428where
7429 R: Send + Sync + std::fmt::Debug + 'static,
7430{
7431 fn from(
7432 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_inference_experiment::StartInferenceExperimentError, R>,
7433 ) -> Self {
7434 match err {
7435 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7436 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7437 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7438 source: err.into(),
7439 }),
7440 }
7441 }
7442}
7443impl From<crate::operation::start_inference_experiment::StartInferenceExperimentError> for Error {
7444 fn from(err: crate::operation::start_inference_experiment::StartInferenceExperimentError) -> Self {
7445 match err {
7446 crate::operation::start_inference_experiment::StartInferenceExperimentError::ConflictException(inner) => Error::ConflictException(inner),
7447 crate::operation::start_inference_experiment::StartInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7448 crate::operation::start_inference_experiment::StartInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
7449 }
7450 }
7451}
7452impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError, R>>
7453 for Error
7454where
7455 R: Send + Sync + std::fmt::Debug + 'static,
7456{
7457 fn from(
7458 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError, R>,
7459 ) -> Self {
7460 match err {
7461 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7462 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7463 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7464 source: err.into(),
7465 }),
7466 }
7467 }
7468}
7469impl From<crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError> for Error {
7470 fn from(err: crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError) -> Self {
7471 match err {
7472 crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError::ConflictException(inner) => {
7473 Error::ConflictException(inner)
7474 }
7475 crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7476 crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
7477 }
7478 }
7479}
7480impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_monitoring_schedule::StartMonitoringScheduleError, R>>
7481 for Error
7482where
7483 R: Send + Sync + std::fmt::Debug + 'static,
7484{
7485 fn from(
7486 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_monitoring_schedule::StartMonitoringScheduleError, R>,
7487 ) -> Self {
7488 match err {
7489 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7490 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7491 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7492 source: err.into(),
7493 }),
7494 }
7495 }
7496}
7497impl From<crate::operation::start_monitoring_schedule::StartMonitoringScheduleError> for Error {
7498 fn from(err: crate::operation::start_monitoring_schedule::StartMonitoringScheduleError) -> Self {
7499 match err {
7500 crate::operation::start_monitoring_schedule::StartMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7501 crate::operation::start_monitoring_schedule::StartMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
7502 }
7503 }
7504}
7505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_notebook_instance::StartNotebookInstanceError, R>> for Error
7506where
7507 R: Send + Sync + std::fmt::Debug + 'static,
7508{
7509 fn from(
7510 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_notebook_instance::StartNotebookInstanceError, R>,
7511 ) -> Self {
7512 match err {
7513 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7514 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7515 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7516 source: err.into(),
7517 }),
7518 }
7519 }
7520}
7521impl From<crate::operation::start_notebook_instance::StartNotebookInstanceError> for Error {
7522 fn from(err: crate::operation::start_notebook_instance::StartNotebookInstanceError) -> Self {
7523 match err {
7524 crate::operation::start_notebook_instance::StartNotebookInstanceError::ResourceLimitExceeded(inner) => {
7525 Error::ResourceLimitExceeded(inner)
7526 }
7527 crate::operation::start_notebook_instance::StartNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
7528 }
7529 }
7530}
7531impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pipeline_execution::StartPipelineExecutionError, R>> for Error
7532where
7533 R: Send + Sync + std::fmt::Debug + 'static,
7534{
7535 fn from(
7536 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pipeline_execution::StartPipelineExecutionError, R>,
7537 ) -> Self {
7538 match err {
7539 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7540 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7541 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7542 source: err.into(),
7543 }),
7544 }
7545 }
7546}
7547impl From<crate::operation::start_pipeline_execution::StartPipelineExecutionError> for Error {
7548 fn from(err: crate::operation::start_pipeline_execution::StartPipelineExecutionError) -> Self {
7549 match err {
7550 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
7551 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ResourceLimitExceeded(inner) => {
7552 Error::ResourceLimitExceeded(inner)
7553 }
7554 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7555 crate::operation::start_pipeline_execution::StartPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
7556 }
7557 }
7558}
7559impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_session::StartSessionError, R>> for Error
7560where
7561 R: Send + Sync + std::fmt::Debug + 'static,
7562{
7563 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_session::StartSessionError, R>) -> Self {
7564 match err {
7565 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7566 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7567 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7568 source: err.into(),
7569 }),
7570 }
7571 }
7572}
7573impl From<crate::operation::start_session::StartSessionError> for Error {
7574 fn from(err: crate::operation::start_session::StartSessionError) -> Self {
7575 match err {
7576 crate::operation::start_session::StartSessionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
7577 crate::operation::start_session::StartSessionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7578 crate::operation::start_session::StartSessionError::Unhandled(inner) => Error::Unhandled(inner),
7579 }
7580 }
7581}
7582impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_auto_ml_job::StopAutoMLJobError, R>> for Error
7583where
7584 R: Send + Sync + std::fmt::Debug + 'static,
7585{
7586 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_auto_ml_job::StopAutoMLJobError, R>) -> Self {
7587 match err {
7588 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7589 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7590 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7591 source: err.into(),
7592 }),
7593 }
7594 }
7595}
7596impl From<crate::operation::stop_auto_ml_job::StopAutoMLJobError> for Error {
7597 fn from(err: crate::operation::stop_auto_ml_job::StopAutoMLJobError) -> Self {
7598 match err {
7599 crate::operation::stop_auto_ml_job::StopAutoMLJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7600 crate::operation::stop_auto_ml_job::StopAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
7601 }
7602 }
7603}
7604impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_compilation_job::StopCompilationJobError, R>> for Error
7605where
7606 R: Send + Sync + std::fmt::Debug + 'static,
7607{
7608 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_compilation_job::StopCompilationJobError, R>) -> Self {
7609 match err {
7610 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7611 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7612 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7613 source: err.into(),
7614 }),
7615 }
7616 }
7617}
7618impl From<crate::operation::stop_compilation_job::StopCompilationJobError> for Error {
7619 fn from(err: crate::operation::stop_compilation_job::StopCompilationJobError) -> Self {
7620 match err {
7621 crate::operation::stop_compilation_job::StopCompilationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7622 crate::operation::stop_compilation_job::StopCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
7623 }
7624 }
7625}
7626impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError, R>>
7627 for Error
7628where
7629 R: Send + Sync + std::fmt::Debug + 'static,
7630{
7631 fn from(
7632 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError, R>,
7633 ) -> Self {
7634 match err {
7635 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7636 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7637 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7638 source: err.into(),
7639 }),
7640 }
7641 }
7642}
7643impl From<crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError> for Error {
7644 fn from(err: crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError) -> Self {
7645 match err {
7646 crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
7647 }
7648 }
7649}
7650impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError, R>> for Error
7651where
7652 R: Send + Sync + std::fmt::Debug + 'static,
7653{
7654 fn from(
7655 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError, R>,
7656 ) -> Self {
7657 match err {
7658 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7659 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7660 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7661 source: err.into(),
7662 }),
7663 }
7664 }
7665}
7666impl From<crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError> for Error {
7667 fn from(err: crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError) -> Self {
7668 match err {
7669 crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError::Unhandled(inner) => Error::Unhandled(inner),
7670 }
7671 }
7672}
7673impl<R>
7674 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError, R>>
7675 for Error
7676where
7677 R: Send + Sync + std::fmt::Debug + 'static,
7678{
7679 fn from(
7680 err: ::aws_smithy_runtime_api::client::result::SdkError<
7681 crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError,
7682 R,
7683 >,
7684 ) -> Self {
7685 match err {
7686 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7687 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7688 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7689 source: err.into(),
7690 }),
7691 }
7692 }
7693}
7694impl From<crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError> for Error {
7695 fn from(err: crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError) -> Self {
7696 match err {
7697 crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError::ResourceNotFound(inner) => {
7698 Error::ResourceNotFound(inner)
7699 }
7700 crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
7701 }
7702 }
7703}
7704impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_inference_experiment::StopInferenceExperimentError, R>>
7705 for Error
7706where
7707 R: Send + Sync + std::fmt::Debug + 'static,
7708{
7709 fn from(
7710 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_inference_experiment::StopInferenceExperimentError, R>,
7711 ) -> Self {
7712 match err {
7713 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7714 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7715 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7716 source: err.into(),
7717 }),
7718 }
7719 }
7720}
7721impl From<crate::operation::stop_inference_experiment::StopInferenceExperimentError> for Error {
7722 fn from(err: crate::operation::stop_inference_experiment::StopInferenceExperimentError) -> Self {
7723 match err {
7724 crate::operation::stop_inference_experiment::StopInferenceExperimentError::ConflictException(inner) => Error::ConflictException(inner),
7725 crate::operation::stop_inference_experiment::StopInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7726 crate::operation::stop_inference_experiment::StopInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
7727 }
7728 }
7729}
7730impl<R>
7731 From<
7732 ::aws_smithy_runtime_api::client::result::SdkError<
7733 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError,
7734 R,
7735 >,
7736 > for Error
7737where
7738 R: Send + Sync + std::fmt::Debug + 'static,
7739{
7740 fn from(
7741 err: ::aws_smithy_runtime_api::client::result::SdkError<
7742 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError,
7743 R,
7744 >,
7745 ) -> Self {
7746 match err {
7747 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7748 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7749 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7750 source: err.into(),
7751 }),
7752 }
7753 }
7754}
7755impl From<crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError> for Error {
7756 fn from(err: crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError) -> Self {
7757 match err {
7758 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError::ResourceNotFound(inner) => {
7759 Error::ResourceNotFound(inner)
7760 }
7761 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError::Unhandled(inner) => Error::Unhandled(inner),
7762 }
7763 }
7764}
7765impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_labeling_job::StopLabelingJobError, R>> for Error
7766where
7767 R: Send + Sync + std::fmt::Debug + 'static,
7768{
7769 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_labeling_job::StopLabelingJobError, R>) -> Self {
7770 match err {
7771 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7772 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7773 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7774 source: err.into(),
7775 }),
7776 }
7777 }
7778}
7779impl From<crate::operation::stop_labeling_job::StopLabelingJobError> for Error {
7780 fn from(err: crate::operation::stop_labeling_job::StopLabelingJobError) -> Self {
7781 match err {
7782 crate::operation::stop_labeling_job::StopLabelingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7783 crate::operation::stop_labeling_job::StopLabelingJobError::Unhandled(inner) => Error::Unhandled(inner),
7784 }
7785 }
7786}
7787impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError, R>>
7788 for Error
7789where
7790 R: Send + Sync + std::fmt::Debug + 'static,
7791{
7792 fn from(
7793 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError, R>,
7794 ) -> Self {
7795 match err {
7796 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7797 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7798 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7799 source: err.into(),
7800 }),
7801 }
7802 }
7803}
7804impl From<crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError> for Error {
7805 fn from(err: crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError) -> Self {
7806 match err {
7807 crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError::ConflictException(inner) => Error::ConflictException(inner),
7808 crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7809 crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
7810 }
7811 }
7812}
7813impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError, R>> for Error
7814where
7815 R: Send + Sync + std::fmt::Debug + 'static,
7816{
7817 fn from(
7818 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError, R>,
7819 ) -> Self {
7820 match err {
7821 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7822 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7823 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7824 source: err.into(),
7825 }),
7826 }
7827 }
7828}
7829impl From<crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError> for Error {
7830 fn from(err: crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError) -> Self {
7831 match err {
7832 crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7833 crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
7834 }
7835 }
7836}
7837impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_notebook_instance::StopNotebookInstanceError, R>> for Error
7838where
7839 R: Send + Sync + std::fmt::Debug + 'static,
7840{
7841 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_notebook_instance::StopNotebookInstanceError, R>) -> Self {
7842 match err {
7843 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7844 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7845 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7846 source: err.into(),
7847 }),
7848 }
7849 }
7850}
7851impl From<crate::operation::stop_notebook_instance::StopNotebookInstanceError> for Error {
7852 fn from(err: crate::operation::stop_notebook_instance::StopNotebookInstanceError) -> Self {
7853 match err {
7854 crate::operation::stop_notebook_instance::StopNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
7855 }
7856 }
7857}
7858impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_optimization_job::StopOptimizationJobError, R>> for Error
7859where
7860 R: Send + Sync + std::fmt::Debug + 'static,
7861{
7862 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_optimization_job::StopOptimizationJobError, R>) -> Self {
7863 match err {
7864 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7865 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7866 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7867 source: err.into(),
7868 }),
7869 }
7870 }
7871}
7872impl From<crate::operation::stop_optimization_job::StopOptimizationJobError> for Error {
7873 fn from(err: crate::operation::stop_optimization_job::StopOptimizationJobError) -> Self {
7874 match err {
7875 crate::operation::stop_optimization_job::StopOptimizationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7876 crate::operation::stop_optimization_job::StopOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
7877 }
7878 }
7879}
7880impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_pipeline_execution::StopPipelineExecutionError, R>> for Error
7881where
7882 R: Send + Sync + std::fmt::Debug + 'static,
7883{
7884 fn from(
7885 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_pipeline_execution::StopPipelineExecutionError, R>,
7886 ) -> Self {
7887 match err {
7888 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7889 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7890 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7891 source: err.into(),
7892 }),
7893 }
7894 }
7895}
7896impl From<crate::operation::stop_pipeline_execution::StopPipelineExecutionError> for Error {
7897 fn from(err: crate::operation::stop_pipeline_execution::StopPipelineExecutionError) -> Self {
7898 match err {
7899 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
7900 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7901 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
7902 }
7903 }
7904}
7905impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_processing_job::StopProcessingJobError, R>> for Error
7906where
7907 R: Send + Sync + std::fmt::Debug + 'static,
7908{
7909 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_processing_job::StopProcessingJobError, R>) -> Self {
7910 match err {
7911 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7912 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7913 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7914 source: err.into(),
7915 }),
7916 }
7917 }
7918}
7919impl From<crate::operation::stop_processing_job::StopProcessingJobError> for Error {
7920 fn from(err: crate::operation::stop_processing_job::StopProcessingJobError) -> Self {
7921 match err {
7922 crate::operation::stop_processing_job::StopProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7923 crate::operation::stop_processing_job::StopProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
7924 }
7925 }
7926}
7927impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_training_job::StopTrainingJobError, R>> for Error
7928where
7929 R: Send + Sync + std::fmt::Debug + 'static,
7930{
7931 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_training_job::StopTrainingJobError, R>) -> Self {
7932 match err {
7933 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7934 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7935 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7936 source: err.into(),
7937 }),
7938 }
7939 }
7940}
7941impl From<crate::operation::stop_training_job::StopTrainingJobError> for Error {
7942 fn from(err: crate::operation::stop_training_job::StopTrainingJobError) -> Self {
7943 match err {
7944 crate::operation::stop_training_job::StopTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7945 crate::operation::stop_training_job::StopTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
7946 }
7947 }
7948}
7949impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_transform_job::StopTransformJobError, R>> for Error
7950where
7951 R: Send + Sync + std::fmt::Debug + 'static,
7952{
7953 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_transform_job::StopTransformJobError, R>) -> Self {
7954 match err {
7955 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7956 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7957 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7958 source: err.into(),
7959 }),
7960 }
7961 }
7962}
7963impl From<crate::operation::stop_transform_job::StopTransformJobError> for Error {
7964 fn from(err: crate::operation::stop_transform_job::StopTransformJobError) -> Self {
7965 match err {
7966 crate::operation::stop_transform_job::StopTransformJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7967 crate::operation::stop_transform_job::StopTransformJobError::Unhandled(inner) => Error::Unhandled(inner),
7968 }
7969 }
7970}
7971impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_action::UpdateActionError, R>> for Error
7972where
7973 R: Send + Sync + std::fmt::Debug + 'static,
7974{
7975 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_action::UpdateActionError, R>) -> Self {
7976 match err {
7977 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7978 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7979 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7980 source: err.into(),
7981 }),
7982 }
7983 }
7984}
7985impl From<crate::operation::update_action::UpdateActionError> for Error {
7986 fn from(err: crate::operation::update_action::UpdateActionError) -> Self {
7987 match err {
7988 crate::operation::update_action::UpdateActionError::ConflictException(inner) => Error::ConflictException(inner),
7989 crate::operation::update_action::UpdateActionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7990 crate::operation::update_action::UpdateActionError::Unhandled(inner) => Error::Unhandled(inner),
7991 }
7992 }
7993}
7994impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_image_config::UpdateAppImageConfigError, R>> for Error
7995where
7996 R: Send + Sync + std::fmt::Debug + 'static,
7997{
7998 fn from(
7999 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_image_config::UpdateAppImageConfigError, R>,
8000 ) -> Self {
8001 match err {
8002 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8003 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8004 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8005 source: err.into(),
8006 }),
8007 }
8008 }
8009}
8010impl From<crate::operation::update_app_image_config::UpdateAppImageConfigError> for Error {
8011 fn from(err: crate::operation::update_app_image_config::UpdateAppImageConfigError) -> Self {
8012 match err {
8013 crate::operation::update_app_image_config::UpdateAppImageConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8014 crate::operation::update_app_image_config::UpdateAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
8015 }
8016 }
8017}
8018impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_artifact::UpdateArtifactError, R>> for Error
8019where
8020 R: Send + Sync + std::fmt::Debug + 'static,
8021{
8022 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_artifact::UpdateArtifactError, R>) -> Self {
8023 match err {
8024 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8025 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8026 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8027 source: err.into(),
8028 }),
8029 }
8030 }
8031}
8032impl From<crate::operation::update_artifact::UpdateArtifactError> for Error {
8033 fn from(err: crate::operation::update_artifact::UpdateArtifactError) -> Self {
8034 match err {
8035 crate::operation::update_artifact::UpdateArtifactError::ConflictException(inner) => Error::ConflictException(inner),
8036 crate::operation::update_artifact::UpdateArtifactError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8037 crate::operation::update_artifact::UpdateArtifactError::Unhandled(inner) => Error::Unhandled(inner),
8038 }
8039 }
8040}
8041impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster::UpdateClusterError, R>> for Error
8042where
8043 R: Send + Sync + std::fmt::Debug + 'static,
8044{
8045 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster::UpdateClusterError, R>) -> Self {
8046 match err {
8047 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8048 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8049 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8050 source: err.into(),
8051 }),
8052 }
8053 }
8054}
8055impl From<crate::operation::update_cluster::UpdateClusterError> for Error {
8056 fn from(err: crate::operation::update_cluster::UpdateClusterError) -> Self {
8057 match err {
8058 crate::operation::update_cluster::UpdateClusterError::ConflictException(inner) => Error::ConflictException(inner),
8059 crate::operation::update_cluster::UpdateClusterError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8060 crate::operation::update_cluster::UpdateClusterError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8061 crate::operation::update_cluster::UpdateClusterError::Unhandled(inner) => Error::Unhandled(inner),
8062 }
8063 }
8064}
8065impl<R>
8066 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError, R>>
8067 for Error
8068where
8069 R: Send + Sync + std::fmt::Debug + 'static,
8070{
8071 fn from(
8072 err: ::aws_smithy_runtime_api::client::result::SdkError<
8073 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError,
8074 R,
8075 >,
8076 ) -> Self {
8077 match err {
8078 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8079 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8080 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8081 source: err.into(),
8082 }),
8083 }
8084 }
8085}
8086impl From<crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError> for Error {
8087 fn from(err: crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError) -> Self {
8088 match err {
8089 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::ConflictException(inner) => {
8090 Error::ConflictException(inner)
8091 }
8092 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::ResourceLimitExceeded(inner) => {
8093 Error::ResourceLimitExceeded(inner)
8094 }
8095 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::ResourceNotFound(inner) => {
8096 Error::ResourceNotFound(inner)
8097 }
8098 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
8099 }
8100 }
8101}
8102impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_software::UpdateClusterSoftwareError, R>> for Error
8103where
8104 R: Send + Sync + std::fmt::Debug + 'static,
8105{
8106 fn from(
8107 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_software::UpdateClusterSoftwareError, R>,
8108 ) -> Self {
8109 match err {
8110 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8111 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8112 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8113 source: err.into(),
8114 }),
8115 }
8116 }
8117}
8118impl From<crate::operation::update_cluster_software::UpdateClusterSoftwareError> for Error {
8119 fn from(err: crate::operation::update_cluster_software::UpdateClusterSoftwareError) -> Self {
8120 match err {
8121 crate::operation::update_cluster_software::UpdateClusterSoftwareError::ConflictException(inner) => Error::ConflictException(inner),
8122 crate::operation::update_cluster_software::UpdateClusterSoftwareError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8123 crate::operation::update_cluster_software::UpdateClusterSoftwareError::Unhandled(inner) => Error::Unhandled(inner),
8124 }
8125 }
8126}
8127impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_code_repository::UpdateCodeRepositoryError, R>> for Error
8128where
8129 R: Send + Sync + std::fmt::Debug + 'static,
8130{
8131 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_code_repository::UpdateCodeRepositoryError, R>) -> Self {
8132 match err {
8133 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8134 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8135 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8136 source: err.into(),
8137 }),
8138 }
8139 }
8140}
8141impl From<crate::operation::update_code_repository::UpdateCodeRepositoryError> for Error {
8142 fn from(err: crate::operation::update_code_repository::UpdateCodeRepositoryError) -> Self {
8143 match err {
8144 crate::operation::update_code_repository::UpdateCodeRepositoryError::ConflictException(inner) => Error::ConflictException(inner),
8145 crate::operation::update_code_repository::UpdateCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
8146 }
8147 }
8148}
8149impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_compute_quota::UpdateComputeQuotaError, R>> for Error
8150where
8151 R: Send + Sync + std::fmt::Debug + 'static,
8152{
8153 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_compute_quota::UpdateComputeQuotaError, R>) -> Self {
8154 match err {
8155 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8156 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8157 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8158 source: err.into(),
8159 }),
8160 }
8161 }
8162}
8163impl From<crate::operation::update_compute_quota::UpdateComputeQuotaError> for Error {
8164 fn from(err: crate::operation::update_compute_quota::UpdateComputeQuotaError) -> Self {
8165 match err {
8166 crate::operation::update_compute_quota::UpdateComputeQuotaError::ConflictException(inner) => Error::ConflictException(inner),
8167 crate::operation::update_compute_quota::UpdateComputeQuotaError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8168 crate::operation::update_compute_quota::UpdateComputeQuotaError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8169 crate::operation::update_compute_quota::UpdateComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
8170 }
8171 }
8172}
8173impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_context::UpdateContextError, R>> for Error
8174where
8175 R: Send + Sync + std::fmt::Debug + 'static,
8176{
8177 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_context::UpdateContextError, R>) -> Self {
8178 match err {
8179 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8180 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8181 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8182 source: err.into(),
8183 }),
8184 }
8185 }
8186}
8187impl From<crate::operation::update_context::UpdateContextError> for Error {
8188 fn from(err: crate::operation::update_context::UpdateContextError) -> Self {
8189 match err {
8190 crate::operation::update_context::UpdateContextError::ConflictException(inner) => Error::ConflictException(inner),
8191 crate::operation::update_context::UpdateContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8192 crate::operation::update_context::UpdateContextError::Unhandled(inner) => Error::Unhandled(inner),
8193 }
8194 }
8195}
8196impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device_fleet::UpdateDeviceFleetError, R>> for Error
8197where
8198 R: Send + Sync + std::fmt::Debug + 'static,
8199{
8200 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device_fleet::UpdateDeviceFleetError, R>) -> Self {
8201 match err {
8202 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8203 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8204 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8205 source: err.into(),
8206 }),
8207 }
8208 }
8209}
8210impl From<crate::operation::update_device_fleet::UpdateDeviceFleetError> for Error {
8211 fn from(err: crate::operation::update_device_fleet::UpdateDeviceFleetError) -> Self {
8212 match err {
8213 crate::operation::update_device_fleet::UpdateDeviceFleetError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8214 crate::operation::update_device_fleet::UpdateDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
8215 }
8216 }
8217}
8218impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_devices::UpdateDevicesError, R>> for Error
8219where
8220 R: Send + Sync + std::fmt::Debug + 'static,
8221{
8222 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_devices::UpdateDevicesError, R>) -> Self {
8223 match err {
8224 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8225 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8226 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8227 source: err.into(),
8228 }),
8229 }
8230 }
8231}
8232impl From<crate::operation::update_devices::UpdateDevicesError> for Error {
8233 fn from(err: crate::operation::update_devices::UpdateDevicesError) -> Self {
8234 match err {
8235 crate::operation::update_devices::UpdateDevicesError::Unhandled(inner) => Error::Unhandled(inner),
8236 }
8237 }
8238}
8239impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain::UpdateDomainError, R>> for Error
8240where
8241 R: Send + Sync + std::fmt::Debug + 'static,
8242{
8243 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain::UpdateDomainError, R>) -> Self {
8244 match err {
8245 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8246 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8247 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8248 source: err.into(),
8249 }),
8250 }
8251 }
8252}
8253impl From<crate::operation::update_domain::UpdateDomainError> for Error {
8254 fn from(err: crate::operation::update_domain::UpdateDomainError) -> Self {
8255 match err {
8256 crate::operation::update_domain::UpdateDomainError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8257 crate::operation::update_domain::UpdateDomainError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8258 crate::operation::update_domain::UpdateDomainError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8259 crate::operation::update_domain::UpdateDomainError::Unhandled(inner) => Error::Unhandled(inner),
8260 }
8261 }
8262}
8263impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoint::UpdateEndpointError, R>> for Error
8264where
8265 R: Send + Sync + std::fmt::Debug + 'static,
8266{
8267 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoint::UpdateEndpointError, R>) -> Self {
8268 match err {
8269 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8270 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8271 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8272 source: err.into(),
8273 }),
8274 }
8275 }
8276}
8277impl From<crate::operation::update_endpoint::UpdateEndpointError> for Error {
8278 fn from(err: crate::operation::update_endpoint::UpdateEndpointError) -> Self {
8279 match err {
8280 crate::operation::update_endpoint::UpdateEndpointError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8281 crate::operation::update_endpoint::UpdateEndpointError::Unhandled(inner) => Error::Unhandled(inner),
8282 }
8283 }
8284}
8285impl<R>
8286 From<
8287 ::aws_smithy_runtime_api::client::result::SdkError<
8288 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError,
8289 R,
8290 >,
8291 > for Error
8292where
8293 R: Send + Sync + std::fmt::Debug + 'static,
8294{
8295 fn from(
8296 err: ::aws_smithy_runtime_api::client::result::SdkError<
8297 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError,
8298 R,
8299 >,
8300 ) -> Self {
8301 match err {
8302 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8303 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8304 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8305 source: err.into(),
8306 }),
8307 }
8308 }
8309}
8310impl From<crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError> for Error {
8311 fn from(err: crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError) -> Self {
8312 match err {
8313 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError::ResourceLimitExceeded(inner) => {
8314 Error::ResourceLimitExceeded(inner)
8315 }
8316 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError::Unhandled(inner) => {
8317 Error::Unhandled(inner)
8318 }
8319 }
8320 }
8321}
8322impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_experiment::UpdateExperimentError, R>> for Error
8323where
8324 R: Send + Sync + std::fmt::Debug + 'static,
8325{
8326 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_experiment::UpdateExperimentError, R>) -> Self {
8327 match err {
8328 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8329 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8330 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8331 source: err.into(),
8332 }),
8333 }
8334 }
8335}
8336impl From<crate::operation::update_experiment::UpdateExperimentError> for Error {
8337 fn from(err: crate::operation::update_experiment::UpdateExperimentError) -> Self {
8338 match err {
8339 crate::operation::update_experiment::UpdateExperimentError::ConflictException(inner) => Error::ConflictException(inner),
8340 crate::operation::update_experiment::UpdateExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8341 crate::operation::update_experiment::UpdateExperimentError::Unhandled(inner) => Error::Unhandled(inner),
8342 }
8343 }
8344}
8345impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_group::UpdateFeatureGroupError, R>> for Error
8346where
8347 R: Send + Sync + std::fmt::Debug + 'static,
8348{
8349 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_group::UpdateFeatureGroupError, R>) -> Self {
8350 match err {
8351 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8352 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8353 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8354 source: err.into(),
8355 }),
8356 }
8357 }
8358}
8359impl From<crate::operation::update_feature_group::UpdateFeatureGroupError> for Error {
8360 fn from(err: crate::operation::update_feature_group::UpdateFeatureGroupError) -> Self {
8361 match err {
8362 crate::operation::update_feature_group::UpdateFeatureGroupError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8363 crate::operation::update_feature_group::UpdateFeatureGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8364 crate::operation::update_feature_group::UpdateFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
8365 }
8366 }
8367}
8368impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_metadata::UpdateFeatureMetadataError, R>> for Error
8369where
8370 R: Send + Sync + std::fmt::Debug + 'static,
8371{
8372 fn from(
8373 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_metadata::UpdateFeatureMetadataError, R>,
8374 ) -> Self {
8375 match err {
8376 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8377 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8378 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8379 source: err.into(),
8380 }),
8381 }
8382 }
8383}
8384impl From<crate::operation::update_feature_metadata::UpdateFeatureMetadataError> for Error {
8385 fn from(err: crate::operation::update_feature_metadata::UpdateFeatureMetadataError) -> Self {
8386 match err {
8387 crate::operation::update_feature_metadata::UpdateFeatureMetadataError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8388 crate::operation::update_feature_metadata::UpdateFeatureMetadataError::Unhandled(inner) => Error::Unhandled(inner),
8389 }
8390 }
8391}
8392impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub::UpdateHubError, R>> for Error
8393where
8394 R: Send + Sync + std::fmt::Debug + 'static,
8395{
8396 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub::UpdateHubError, R>) -> Self {
8397 match err {
8398 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8399 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8400 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8401 source: err.into(),
8402 }),
8403 }
8404 }
8405}
8406impl From<crate::operation::update_hub::UpdateHubError> for Error {
8407 fn from(err: crate::operation::update_hub::UpdateHubError) -> Self {
8408 match err {
8409 crate::operation::update_hub::UpdateHubError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8410 crate::operation::update_hub::UpdateHubError::Unhandled(inner) => Error::Unhandled(inner),
8411 }
8412 }
8413}
8414impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content::UpdateHubContentError, R>> for Error
8415where
8416 R: Send + Sync + std::fmt::Debug + 'static,
8417{
8418 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content::UpdateHubContentError, R>) -> Self {
8419 match err {
8420 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8421 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8422 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8423 source: err.into(),
8424 }),
8425 }
8426 }
8427}
8428impl From<crate::operation::update_hub_content::UpdateHubContentError> for Error {
8429 fn from(err: crate::operation::update_hub_content::UpdateHubContentError) -> Self {
8430 match err {
8431 crate::operation::update_hub_content::UpdateHubContentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8432 crate::operation::update_hub_content::UpdateHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8433 crate::operation::update_hub_content::UpdateHubContentError::Unhandled(inner) => Error::Unhandled(inner),
8434 }
8435 }
8436}
8437impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content_reference::UpdateHubContentReferenceError, R>>
8438 for Error
8439where
8440 R: Send + Sync + std::fmt::Debug + 'static,
8441{
8442 fn from(
8443 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content_reference::UpdateHubContentReferenceError, R>,
8444 ) -> Self {
8445 match err {
8446 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8447 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8448 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8449 source: err.into(),
8450 }),
8451 }
8452 }
8453}
8454impl From<crate::operation::update_hub_content_reference::UpdateHubContentReferenceError> for Error {
8455 fn from(err: crate::operation::update_hub_content_reference::UpdateHubContentReferenceError) -> Self {
8456 match err {
8457 crate::operation::update_hub_content_reference::UpdateHubContentReferenceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8458 crate::operation::update_hub_content_reference::UpdateHubContentReferenceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8459 crate::operation::update_hub_content_reference::UpdateHubContentReferenceError::Unhandled(inner) => Error::Unhandled(inner),
8460 }
8461 }
8462}
8463impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image::UpdateImageError, R>> for Error
8464where
8465 R: Send + Sync + std::fmt::Debug + 'static,
8466{
8467 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image::UpdateImageError, R>) -> Self {
8468 match err {
8469 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8470 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8471 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8472 source: err.into(),
8473 }),
8474 }
8475 }
8476}
8477impl From<crate::operation::update_image::UpdateImageError> for Error {
8478 fn from(err: crate::operation::update_image::UpdateImageError) -> Self {
8479 match err {
8480 crate::operation::update_image::UpdateImageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8481 crate::operation::update_image::UpdateImageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8482 crate::operation::update_image::UpdateImageError::Unhandled(inner) => Error::Unhandled(inner),
8483 }
8484 }
8485}
8486impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image_version::UpdateImageVersionError, R>> for Error
8487where
8488 R: Send + Sync + std::fmt::Debug + 'static,
8489{
8490 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image_version::UpdateImageVersionError, R>) -> Self {
8491 match err {
8492 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8493 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8494 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8495 source: err.into(),
8496 }),
8497 }
8498 }
8499}
8500impl From<crate::operation::update_image_version::UpdateImageVersionError> for Error {
8501 fn from(err: crate::operation::update_image_version::UpdateImageVersionError) -> Self {
8502 match err {
8503 crate::operation::update_image_version::UpdateImageVersionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8504 crate::operation::update_image_version::UpdateImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8505 crate::operation::update_image_version::UpdateImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
8506 }
8507 }
8508}
8509impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_component::UpdateInferenceComponentError, R>>
8510 for Error
8511where
8512 R: Send + Sync + std::fmt::Debug + 'static,
8513{
8514 fn from(
8515 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_component::UpdateInferenceComponentError, R>,
8516 ) -> Self {
8517 match err {
8518 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8519 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8520 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8521 source: err.into(),
8522 }),
8523 }
8524 }
8525}
8526impl From<crate::operation::update_inference_component::UpdateInferenceComponentError> for Error {
8527 fn from(err: crate::operation::update_inference_component::UpdateInferenceComponentError) -> Self {
8528 match err {
8529 crate::operation::update_inference_component::UpdateInferenceComponentError::ResourceLimitExceeded(inner) => {
8530 Error::ResourceLimitExceeded(inner)
8531 }
8532 crate::operation::update_inference_component::UpdateInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
8533 }
8534 }
8535}
8536impl<R>
8537 From<
8538 ::aws_smithy_runtime_api::client::result::SdkError<
8539 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError,
8540 R,
8541 >,
8542 > for Error
8543where
8544 R: Send + Sync + std::fmt::Debug + 'static,
8545{
8546 fn from(
8547 err: ::aws_smithy_runtime_api::client::result::SdkError<
8548 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError,
8549 R,
8550 >,
8551 ) -> Self {
8552 match err {
8553 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8554 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8555 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8556 source: err.into(),
8557 }),
8558 }
8559 }
8560}
8561impl From<crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError> for Error {
8562 fn from(err: crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError) -> Self {
8563 match err {
8564 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError::ResourceLimitExceeded(inner) => {
8565 Error::ResourceLimitExceeded(inner)
8566 }
8567 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError::Unhandled(inner) => {
8568 Error::Unhandled(inner)
8569 }
8570 }
8571 }
8572}
8573impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_experiment::UpdateInferenceExperimentError, R>>
8574 for Error
8575where
8576 R: Send + Sync + std::fmt::Debug + 'static,
8577{
8578 fn from(
8579 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_experiment::UpdateInferenceExperimentError, R>,
8580 ) -> Self {
8581 match err {
8582 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8583 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8584 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8585 source: err.into(),
8586 }),
8587 }
8588 }
8589}
8590impl From<crate::operation::update_inference_experiment::UpdateInferenceExperimentError> for Error {
8591 fn from(err: crate::operation::update_inference_experiment::UpdateInferenceExperimentError) -> Self {
8592 match err {
8593 crate::operation::update_inference_experiment::UpdateInferenceExperimentError::ConflictException(inner) => {
8594 Error::ConflictException(inner)
8595 }
8596 crate::operation::update_inference_experiment::UpdateInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8597 crate::operation::update_inference_experiment::UpdateInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
8598 }
8599 }
8600}
8601impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError, R>>
8602 for Error
8603where
8604 R: Send + Sync + std::fmt::Debug + 'static,
8605{
8606 fn from(
8607 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError, R>,
8608 ) -> Self {
8609 match err {
8610 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8611 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8612 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8613 source: err.into(),
8614 }),
8615 }
8616 }
8617}
8618impl From<crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError> for Error {
8619 fn from(err: crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError) -> Self {
8620 match err {
8621 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::ConflictException(inner) => {
8622 Error::ConflictException(inner)
8623 }
8624 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::ResourceLimitExceeded(inner) => {
8625 Error::ResourceLimitExceeded(inner)
8626 }
8627 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::ResourceNotFound(inner) => {
8628 Error::ResourceNotFound(inner)
8629 }
8630 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
8631 }
8632 }
8633}
8634impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_card::UpdateModelCardError, R>> for Error
8635where
8636 R: Send + Sync + std::fmt::Debug + 'static,
8637{
8638 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_card::UpdateModelCardError, R>) -> Self {
8639 match err {
8640 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8641 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8642 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8643 source: err.into(),
8644 }),
8645 }
8646 }
8647}
8648impl From<crate::operation::update_model_card::UpdateModelCardError> for Error {
8649 fn from(err: crate::operation::update_model_card::UpdateModelCardError) -> Self {
8650 match err {
8651 crate::operation::update_model_card::UpdateModelCardError::ConflictException(inner) => Error::ConflictException(inner),
8652 crate::operation::update_model_card::UpdateModelCardError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8653 crate::operation::update_model_card::UpdateModelCardError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8654 crate::operation::update_model_card::UpdateModelCardError::Unhandled(inner) => Error::Unhandled(inner),
8655 }
8656 }
8657}
8658impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_package::UpdateModelPackageError, R>> for Error
8659where
8660 R: Send + Sync + std::fmt::Debug + 'static,
8661{
8662 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_package::UpdateModelPackageError, R>) -> Self {
8663 match err {
8664 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8665 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8666 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8667 source: err.into(),
8668 }),
8669 }
8670 }
8671}
8672impl From<crate::operation::update_model_package::UpdateModelPackageError> for Error {
8673 fn from(err: crate::operation::update_model_package::UpdateModelPackageError) -> Self {
8674 match err {
8675 crate::operation::update_model_package::UpdateModelPackageError::ConflictException(inner) => Error::ConflictException(inner),
8676 crate::operation::update_model_package::UpdateModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
8677 }
8678 }
8679}
8680impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_alert::UpdateMonitoringAlertError, R>> for Error
8681where
8682 R: Send + Sync + std::fmt::Debug + 'static,
8683{
8684 fn from(
8685 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_alert::UpdateMonitoringAlertError, R>,
8686 ) -> Self {
8687 match err {
8688 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8689 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8690 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8691 source: err.into(),
8692 }),
8693 }
8694 }
8695}
8696impl From<crate::operation::update_monitoring_alert::UpdateMonitoringAlertError> for Error {
8697 fn from(err: crate::operation::update_monitoring_alert::UpdateMonitoringAlertError) -> Self {
8698 match err {
8699 crate::operation::update_monitoring_alert::UpdateMonitoringAlertError::ResourceLimitExceeded(inner) => {
8700 Error::ResourceLimitExceeded(inner)
8701 }
8702 crate::operation::update_monitoring_alert::UpdateMonitoringAlertError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8703 crate::operation::update_monitoring_alert::UpdateMonitoringAlertError::Unhandled(inner) => Error::Unhandled(inner),
8704 }
8705 }
8706}
8707impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError, R>>
8708 for Error
8709where
8710 R: Send + Sync + std::fmt::Debug + 'static,
8711{
8712 fn from(
8713 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError, R>,
8714 ) -> Self {
8715 match err {
8716 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8717 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8718 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8719 source: err.into(),
8720 }),
8721 }
8722 }
8723}
8724impl From<crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError> for Error {
8725 fn from(err: crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError) -> Self {
8726 match err {
8727 crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError::ResourceLimitExceeded(inner) => {
8728 Error::ResourceLimitExceeded(inner)
8729 }
8730 crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8731 crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
8732 }
8733 }
8734}
8735impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notebook_instance::UpdateNotebookInstanceError, R>> for Error
8736where
8737 R: Send + Sync + std::fmt::Debug + 'static,
8738{
8739 fn from(
8740 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notebook_instance::UpdateNotebookInstanceError, R>,
8741 ) -> Self {
8742 match err {
8743 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8744 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8745 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8746 source: err.into(),
8747 }),
8748 }
8749 }
8750}
8751impl From<crate::operation::update_notebook_instance::UpdateNotebookInstanceError> for Error {
8752 fn from(err: crate::operation::update_notebook_instance::UpdateNotebookInstanceError) -> Self {
8753 match err {
8754 crate::operation::update_notebook_instance::UpdateNotebookInstanceError::ResourceLimitExceeded(inner) => {
8755 Error::ResourceLimitExceeded(inner)
8756 }
8757 crate::operation::update_notebook_instance::UpdateNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
8758 }
8759 }
8760}
8761impl<R>
8762 From<
8763 ::aws_smithy_runtime_api::client::result::SdkError<
8764 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError,
8765 R,
8766 >,
8767 > for Error
8768where
8769 R: Send + Sync + std::fmt::Debug + 'static,
8770{
8771 fn from(
8772 err: ::aws_smithy_runtime_api::client::result::SdkError<
8773 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError,
8774 R,
8775 >,
8776 ) -> Self {
8777 match err {
8778 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8779 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8780 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8781 source: err.into(),
8782 }),
8783 }
8784 }
8785}
8786impl From<crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError> for Error {
8787 fn from(err: crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError) -> Self {
8788 match err {
8789 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError::ResourceLimitExceeded(inner) => {
8790 Error::ResourceLimitExceeded(inner)
8791 }
8792 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
8793 Error::Unhandled(inner)
8794 }
8795 }
8796 }
8797}
8798impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_partner_app::UpdatePartnerAppError, R>> for Error
8799where
8800 R: Send + Sync + std::fmt::Debug + 'static,
8801{
8802 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_partner_app::UpdatePartnerAppError, R>) -> Self {
8803 match err {
8804 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8805 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8806 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8807 source: err.into(),
8808 }),
8809 }
8810 }
8811}
8812impl From<crate::operation::update_partner_app::UpdatePartnerAppError> for Error {
8813 fn from(err: crate::operation::update_partner_app::UpdatePartnerAppError) -> Self {
8814 match err {
8815 crate::operation::update_partner_app::UpdatePartnerAppError::ConflictException(inner) => Error::ConflictException(inner),
8816 crate::operation::update_partner_app::UpdatePartnerAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8817 crate::operation::update_partner_app::UpdatePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
8818 }
8819 }
8820}
8821impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline::UpdatePipelineError, R>> for Error
8822where
8823 R: Send + Sync + std::fmt::Debug + 'static,
8824{
8825 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline::UpdatePipelineError, R>) -> Self {
8826 match err {
8827 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8828 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8829 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8830 source: err.into(),
8831 }),
8832 }
8833 }
8834}
8835impl From<crate::operation::update_pipeline::UpdatePipelineError> for Error {
8836 fn from(err: crate::operation::update_pipeline::UpdatePipelineError) -> Self {
8837 match err {
8838 crate::operation::update_pipeline::UpdatePipelineError::ConflictException(inner) => Error::ConflictException(inner),
8839 crate::operation::update_pipeline::UpdatePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8840 crate::operation::update_pipeline::UpdatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
8841 }
8842 }
8843}
8844impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_execution::UpdatePipelineExecutionError, R>>
8845 for Error
8846where
8847 R: Send + Sync + std::fmt::Debug + 'static,
8848{
8849 fn from(
8850 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_execution::UpdatePipelineExecutionError, R>,
8851 ) -> Self {
8852 match err {
8853 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8854 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8855 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8856 source: err.into(),
8857 }),
8858 }
8859 }
8860}
8861impl From<crate::operation::update_pipeline_execution::UpdatePipelineExecutionError> for Error {
8862 fn from(err: crate::operation::update_pipeline_execution::UpdatePipelineExecutionError) -> Self {
8863 match err {
8864 crate::operation::update_pipeline_execution::UpdatePipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
8865 crate::operation::update_pipeline_execution::UpdatePipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8866 crate::operation::update_pipeline_execution::UpdatePipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
8867 }
8868 }
8869}
8870impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>> for Error
8871where
8872 R: Send + Sync + std::fmt::Debug + 'static,
8873{
8874 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>) -> Self {
8875 match err {
8876 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8877 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8878 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8879 source: err.into(),
8880 }),
8881 }
8882 }
8883}
8884impl From<crate::operation::update_project::UpdateProjectError> for Error {
8885 fn from(err: crate::operation::update_project::UpdateProjectError) -> Self {
8886 match err {
8887 crate::operation::update_project::UpdateProjectError::ConflictException(inner) => Error::ConflictException(inner),
8888 crate::operation::update_project::UpdateProjectError::Unhandled(inner) => Error::Unhandled(inner),
8889 }
8890 }
8891}
8892impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_space::UpdateSpaceError, R>> for Error
8893where
8894 R: Send + Sync + std::fmt::Debug + 'static,
8895{
8896 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_space::UpdateSpaceError, R>) -> Self {
8897 match err {
8898 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8899 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8900 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8901 source: err.into(),
8902 }),
8903 }
8904 }
8905}
8906impl From<crate::operation::update_space::UpdateSpaceError> for Error {
8907 fn from(err: crate::operation::update_space::UpdateSpaceError) -> Self {
8908 match err {
8909 crate::operation::update_space::UpdateSpaceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8910 crate::operation::update_space::UpdateSpaceError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8911 crate::operation::update_space::UpdateSpaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8912 crate::operation::update_space::UpdateSpaceError::Unhandled(inner) => Error::Unhandled(inner),
8913 }
8914 }
8915}
8916impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_training_job::UpdateTrainingJobError, R>> for Error
8917where
8918 R: Send + Sync + std::fmt::Debug + 'static,
8919{
8920 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_training_job::UpdateTrainingJobError, R>) -> Self {
8921 match err {
8922 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8923 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8924 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8925 source: err.into(),
8926 }),
8927 }
8928 }
8929}
8930impl From<crate::operation::update_training_job::UpdateTrainingJobError> for Error {
8931 fn from(err: crate::operation::update_training_job::UpdateTrainingJobError) -> Self {
8932 match err {
8933 crate::operation::update_training_job::UpdateTrainingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8934 crate::operation::update_training_job::UpdateTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8935 crate::operation::update_training_job::UpdateTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
8936 }
8937 }
8938}
8939impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial::UpdateTrialError, R>> for Error
8940where
8941 R: Send + Sync + std::fmt::Debug + 'static,
8942{
8943 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial::UpdateTrialError, R>) -> Self {
8944 match err {
8945 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8946 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8947 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8948 source: err.into(),
8949 }),
8950 }
8951 }
8952}
8953impl From<crate::operation::update_trial::UpdateTrialError> for Error {
8954 fn from(err: crate::operation::update_trial::UpdateTrialError) -> Self {
8955 match err {
8956 crate::operation::update_trial::UpdateTrialError::ConflictException(inner) => Error::ConflictException(inner),
8957 crate::operation::update_trial::UpdateTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8958 crate::operation::update_trial::UpdateTrialError::Unhandled(inner) => Error::Unhandled(inner),
8959 }
8960 }
8961}
8962impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial_component::UpdateTrialComponentError, R>> for Error
8963where
8964 R: Send + Sync + std::fmt::Debug + 'static,
8965{
8966 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial_component::UpdateTrialComponentError, R>) -> Self {
8967 match err {
8968 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8969 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8970 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8971 source: err.into(),
8972 }),
8973 }
8974 }
8975}
8976impl From<crate::operation::update_trial_component::UpdateTrialComponentError> for Error {
8977 fn from(err: crate::operation::update_trial_component::UpdateTrialComponentError) -> Self {
8978 match err {
8979 crate::operation::update_trial_component::UpdateTrialComponentError::ConflictException(inner) => Error::ConflictException(inner),
8980 crate::operation::update_trial_component::UpdateTrialComponentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8981 crate::operation::update_trial_component::UpdateTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
8982 }
8983 }
8984}
8985impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_profile::UpdateUserProfileError, R>> for Error
8986where
8987 R: Send + Sync + std::fmt::Debug + 'static,
8988{
8989 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_profile::UpdateUserProfileError, R>) -> Self {
8990 match err {
8991 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8992 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8993 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8994 source: err.into(),
8995 }),
8996 }
8997 }
8998}
8999impl From<crate::operation::update_user_profile::UpdateUserProfileError> for Error {
9000 fn from(err: crate::operation::update_user_profile::UpdateUserProfileError) -> Self {
9001 match err {
9002 crate::operation::update_user_profile::UpdateUserProfileError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9003 crate::operation::update_user_profile::UpdateUserProfileError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9004 crate::operation::update_user_profile::UpdateUserProfileError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9005 crate::operation::update_user_profile::UpdateUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
9006 }
9007 }
9008}
9009impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workforce::UpdateWorkforceError, R>> for Error
9010where
9011 R: Send + Sync + std::fmt::Debug + 'static,
9012{
9013 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workforce::UpdateWorkforceError, R>) -> Self {
9014 match err {
9015 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9016 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9017 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9018 source: err.into(),
9019 }),
9020 }
9021 }
9022}
9023impl From<crate::operation::update_workforce::UpdateWorkforceError> for Error {
9024 fn from(err: crate::operation::update_workforce::UpdateWorkforceError) -> Self {
9025 match err {
9026 crate::operation::update_workforce::UpdateWorkforceError::ConflictException(inner) => Error::ConflictException(inner),
9027 crate::operation::update_workforce::UpdateWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
9028 }
9029 }
9030}
9031impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workteam::UpdateWorkteamError, R>> for Error
9032where
9033 R: Send + Sync + std::fmt::Debug + 'static,
9034{
9035 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workteam::UpdateWorkteamError, R>) -> Self {
9036 match err {
9037 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9038 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9039 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9040 source: err.into(),
9041 }),
9042 }
9043 }
9044}
9045impl From<crate::operation::update_workteam::UpdateWorkteamError> for Error {
9046 fn from(err: crate::operation::update_workteam::UpdateWorkteamError) -> Self {
9047 match err {
9048 crate::operation::update_workteam::UpdateWorkteamError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9049 crate::operation::update_workteam::UpdateWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
9050 }
9051 }
9052}
9053impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
9054where
9055 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
9056 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
9057{
9058 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
9059 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9060 meta: ::std::default::Default::default(),
9061 source: err.into(),
9062 })
9063 }
9064}
9065impl ::std::error::Error for Error {
9066 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
9067 match self {
9068 Error::ConflictException(inner) => inner.source(),
9069 Error::ResourceInUse(inner) => inner.source(),
9070 Error::ResourceLimitExceeded(inner) => inner.source(),
9071 Error::ResourceNotFound(inner) => inner.source(),
9072 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
9073 }
9074 }
9075}
9076impl ::aws_types::request_id::RequestId for Error {
9077 fn request_id(&self) -> Option<&str> {
9078 match self {
9079 Self::ConflictException(e) => e.request_id(),
9080 Self::ResourceInUse(e) => e.request_id(),
9081 Self::ResourceLimitExceeded(e) => e.request_id(),
9082 Self::ResourceNotFound(e) => e.request_id(),
9083 Self::Unhandled(e) => e.meta.request_id(),
9084 }
9085 }
9086}