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::attach_cluster_node_volume::AttachClusterNodeVolumeError, 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::attach_cluster_node_volume::AttachClusterNodeVolumeError, 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::attach_cluster_node_volume::AttachClusterNodeVolumeError> for Error {
149 fn from(err: crate::operation::attach_cluster_node_volume::AttachClusterNodeVolumeError) -> Self {
150 match err {
151 crate::operation::attach_cluster_node_volume::AttachClusterNodeVolumeError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
152 crate::operation::attach_cluster_node_volume::AttachClusterNodeVolumeError::Unhandled(inner) => Error::Unhandled(inner),
153 }
154 }
155}
156impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_add_cluster_nodes::BatchAddClusterNodesError, R>> for Error
157where
158 R: Send + Sync + std::fmt::Debug + 'static,
159{
160 fn from(
161 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_add_cluster_nodes::BatchAddClusterNodesError, R>,
162 ) -> Self {
163 match err {
164 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
165 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
166 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
167 source: err.into(),
168 }),
169 }
170 }
171}
172impl From<crate::operation::batch_add_cluster_nodes::BatchAddClusterNodesError> for Error {
173 fn from(err: crate::operation::batch_add_cluster_nodes::BatchAddClusterNodesError) -> Self {
174 match err {
175 crate::operation::batch_add_cluster_nodes::BatchAddClusterNodesError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
176 crate::operation::batch_add_cluster_nodes::BatchAddClusterNodesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
177 crate::operation::batch_add_cluster_nodes::BatchAddClusterNodesError::Unhandled(inner) => Error::Unhandled(inner),
178 }
179 }
180}
181impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError, R>>
182 for Error
183where
184 R: Send + Sync + std::fmt::Debug + 'static,
185{
186 fn from(
187 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError, R>,
188 ) -> Self {
189 match err {
190 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
191 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
192 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
193 source: err.into(),
194 }),
195 }
196 }
197}
198impl From<crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError> for Error {
199 fn from(err: crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError) -> Self {
200 match err {
201 crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
202 crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError::Unhandled(inner) => Error::Unhandled(inner),
203 }
204 }
205}
206impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_describe_model_package::BatchDescribeModelPackageError, R>>
207 for Error
208where
209 R: Send + Sync + std::fmt::Debug + 'static,
210{
211 fn from(
212 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_describe_model_package::BatchDescribeModelPackageError, R>,
213 ) -> Self {
214 match err {
215 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
216 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
217 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
218 source: err.into(),
219 }),
220 }
221 }
222}
223impl From<crate::operation::batch_describe_model_package::BatchDescribeModelPackageError> for Error {
224 fn from(err: crate::operation::batch_describe_model_package::BatchDescribeModelPackageError) -> Self {
225 match err {
226 crate::operation::batch_describe_model_package::BatchDescribeModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
227 }
228 }
229}
230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_reboot_cluster_nodes::BatchRebootClusterNodesError, R>>
231 for Error
232where
233 R: Send + Sync + std::fmt::Debug + 'static,
234{
235 fn from(
236 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_reboot_cluster_nodes::BatchRebootClusterNodesError, R>,
237 ) -> Self {
238 match err {
239 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
240 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
241 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
242 source: err.into(),
243 }),
244 }
245 }
246}
247impl From<crate::operation::batch_reboot_cluster_nodes::BatchRebootClusterNodesError> for Error {
248 fn from(err: crate::operation::batch_reboot_cluster_nodes::BatchRebootClusterNodesError) -> Self {
249 match err {
250 crate::operation::batch_reboot_cluster_nodes::BatchRebootClusterNodesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
251 crate::operation::batch_reboot_cluster_nodes::BatchRebootClusterNodesError::Unhandled(inner) => Error::Unhandled(inner),
252 }
253 }
254}
255impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_replace_cluster_nodes::BatchReplaceClusterNodesError, R>>
256 for Error
257where
258 R: Send + Sync + std::fmt::Debug + 'static,
259{
260 fn from(
261 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_replace_cluster_nodes::BatchReplaceClusterNodesError, R>,
262 ) -> Self {
263 match err {
264 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
265 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
266 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
267 source: err.into(),
268 }),
269 }
270 }
271}
272impl From<crate::operation::batch_replace_cluster_nodes::BatchReplaceClusterNodesError> for Error {
273 fn from(err: crate::operation::batch_replace_cluster_nodes::BatchReplaceClusterNodesError) -> Self {
274 match err {
275 crate::operation::batch_replace_cluster_nodes::BatchReplaceClusterNodesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
276 crate::operation::batch_replace_cluster_nodes::BatchReplaceClusterNodesError::Unhandled(inner) => Error::Unhandled(inner),
277 }
278 }
279}
280impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_action::CreateActionError, R>> for Error
281where
282 R: Send + Sync + std::fmt::Debug + 'static,
283{
284 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_action::CreateActionError, R>) -> Self {
285 match err {
286 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
287 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
288 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
289 source: err.into(),
290 }),
291 }
292 }
293}
294impl From<crate::operation::create_action::CreateActionError> for Error {
295 fn from(err: crate::operation::create_action::CreateActionError) -> Self {
296 match err {
297 crate::operation::create_action::CreateActionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
298 crate::operation::create_action::CreateActionError::Unhandled(inner) => Error::Unhandled(inner),
299 }
300 }
301}
302impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ai_benchmark_job::CreateAIBenchmarkJobError, R>> for Error
303where
304 R: Send + Sync + std::fmt::Debug + 'static,
305{
306 fn from(
307 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ai_benchmark_job::CreateAIBenchmarkJobError, R>,
308 ) -> Self {
309 match err {
310 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
311 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
312 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
313 source: err.into(),
314 }),
315 }
316 }
317}
318impl From<crate::operation::create_ai_benchmark_job::CreateAIBenchmarkJobError> for Error {
319 fn from(err: crate::operation::create_ai_benchmark_job::CreateAIBenchmarkJobError) -> Self {
320 match err {
321 crate::operation::create_ai_benchmark_job::CreateAIBenchmarkJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
322 crate::operation::create_ai_benchmark_job::CreateAIBenchmarkJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
323 crate::operation::create_ai_benchmark_job::CreateAIBenchmarkJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
324 crate::operation::create_ai_benchmark_job::CreateAIBenchmarkJobError::Unhandled(inner) => Error::Unhandled(inner),
325 }
326 }
327}
328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ai_recommendation_job::CreateAIRecommendationJobError, R>>
329 for Error
330where
331 R: Send + Sync + std::fmt::Debug + 'static,
332{
333 fn from(
334 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ai_recommendation_job::CreateAIRecommendationJobError, R>,
335 ) -> Self {
336 match err {
337 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
338 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
339 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
340 source: err.into(),
341 }),
342 }
343 }
344}
345impl From<crate::operation::create_ai_recommendation_job::CreateAIRecommendationJobError> for Error {
346 fn from(err: crate::operation::create_ai_recommendation_job::CreateAIRecommendationJobError) -> Self {
347 match err {
348 crate::operation::create_ai_recommendation_job::CreateAIRecommendationJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
349 crate::operation::create_ai_recommendation_job::CreateAIRecommendationJobError::ResourceLimitExceeded(inner) => {
350 Error::ResourceLimitExceeded(inner)
351 }
352 crate::operation::create_ai_recommendation_job::CreateAIRecommendationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
353 crate::operation::create_ai_recommendation_job::CreateAIRecommendationJobError::Unhandled(inner) => Error::Unhandled(inner),
354 }
355 }
356}
357impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ai_workload_config::CreateAIWorkloadConfigError, R>>
358 for Error
359where
360 R: Send + Sync + std::fmt::Debug + 'static,
361{
362 fn from(
363 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ai_workload_config::CreateAIWorkloadConfigError, R>,
364 ) -> Self {
365 match err {
366 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
367 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
368 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
369 source: err.into(),
370 }),
371 }
372 }
373}
374impl From<crate::operation::create_ai_workload_config::CreateAIWorkloadConfigError> for Error {
375 fn from(err: crate::operation::create_ai_workload_config::CreateAIWorkloadConfigError) -> Self {
376 match err {
377 crate::operation::create_ai_workload_config::CreateAIWorkloadConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
378 crate::operation::create_ai_workload_config::CreateAIWorkloadConfigError::ResourceLimitExceeded(inner) => {
379 Error::ResourceLimitExceeded(inner)
380 }
381 crate::operation::create_ai_workload_config::CreateAIWorkloadConfigError::Unhandled(inner) => Error::Unhandled(inner),
382 }
383 }
384}
385impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_algorithm::CreateAlgorithmError, R>> for Error
386where
387 R: Send + Sync + std::fmt::Debug + 'static,
388{
389 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_algorithm::CreateAlgorithmError, R>) -> Self {
390 match err {
391 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
392 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
393 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
394 source: err.into(),
395 }),
396 }
397 }
398}
399impl From<crate::operation::create_algorithm::CreateAlgorithmError> for Error {
400 fn from(err: crate::operation::create_algorithm::CreateAlgorithmError) -> Self {
401 match err {
402 crate::operation::create_algorithm::CreateAlgorithmError::Unhandled(inner) => Error::Unhandled(inner),
403 }
404 }
405}
406impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app::CreateAppError, R>> for Error
407where
408 R: Send + Sync + std::fmt::Debug + 'static,
409{
410 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app::CreateAppError, R>) -> Self {
411 match err {
412 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
413 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
414 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
415 source: err.into(),
416 }),
417 }
418 }
419}
420impl From<crate::operation::create_app::CreateAppError> for Error {
421 fn from(err: crate::operation::create_app::CreateAppError) -> Self {
422 match err {
423 crate::operation::create_app::CreateAppError::ResourceInUse(inner) => Error::ResourceInUse(inner),
424 crate::operation::create_app::CreateAppError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
425 crate::operation::create_app::CreateAppError::Unhandled(inner) => Error::Unhandled(inner),
426 }
427 }
428}
429impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_image_config::CreateAppImageConfigError, R>> for Error
430where
431 R: Send + Sync + std::fmt::Debug + 'static,
432{
433 fn from(
434 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_image_config::CreateAppImageConfigError, R>,
435 ) -> Self {
436 match err {
437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
440 source: err.into(),
441 }),
442 }
443 }
444}
445impl From<crate::operation::create_app_image_config::CreateAppImageConfigError> for Error {
446 fn from(err: crate::operation::create_app_image_config::CreateAppImageConfigError) -> Self {
447 match err {
448 crate::operation::create_app_image_config::CreateAppImageConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
449 crate::operation::create_app_image_config::CreateAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
450 }
451 }
452}
453impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_artifact::CreateArtifactError, R>> for Error
454where
455 R: Send + Sync + std::fmt::Debug + 'static,
456{
457 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_artifact::CreateArtifactError, R>) -> Self {
458 match err {
459 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
460 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
461 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
462 source: err.into(),
463 }),
464 }
465 }
466}
467impl From<crate::operation::create_artifact::CreateArtifactError> for Error {
468 fn from(err: crate::operation::create_artifact::CreateArtifactError) -> Self {
469 match err {
470 crate::operation::create_artifact::CreateArtifactError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
471 crate::operation::create_artifact::CreateArtifactError::Unhandled(inner) => Error::Unhandled(inner),
472 }
473 }
474}
475impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_ml_job::CreateAutoMLJobError, R>> for Error
476where
477 R: Send + Sync + std::fmt::Debug + 'static,
478{
479 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_ml_job::CreateAutoMLJobError, R>) -> Self {
480 match err {
481 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
482 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
483 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
484 source: err.into(),
485 }),
486 }
487 }
488}
489impl From<crate::operation::create_auto_ml_job::CreateAutoMLJobError> for Error {
490 fn from(err: crate::operation::create_auto_ml_job::CreateAutoMLJobError) -> Self {
491 match err {
492 crate::operation::create_auto_ml_job::CreateAutoMLJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
493 crate::operation::create_auto_ml_job::CreateAutoMLJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
494 crate::operation::create_auto_ml_job::CreateAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
495 }
496 }
497}
498impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error, R>> for Error
499where
500 R: Send + Sync + std::fmt::Debug + 'static,
501{
502 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error, R>) -> Self {
503 match err {
504 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
505 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
506 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
507 source: err.into(),
508 }),
509 }
510 }
511}
512impl From<crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error> for Error {
513 fn from(err: crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error) -> Self {
514 match err {
515 crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error::ResourceInUse(inner) => Error::ResourceInUse(inner),
516 crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
517 crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error::Unhandled(inner) => Error::Unhandled(inner),
518 }
519 }
520}
521impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster::CreateClusterError, R>> for Error
522where
523 R: Send + Sync + std::fmt::Debug + 'static,
524{
525 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster::CreateClusterError, R>) -> Self {
526 match err {
527 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
528 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
529 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
530 source: err.into(),
531 }),
532 }
533 }
534}
535impl From<crate::operation::create_cluster::CreateClusterError> for Error {
536 fn from(err: crate::operation::create_cluster::CreateClusterError) -> Self {
537 match err {
538 crate::operation::create_cluster::CreateClusterError::ResourceInUse(inner) => Error::ResourceInUse(inner),
539 crate::operation::create_cluster::CreateClusterError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
540 crate::operation::create_cluster::CreateClusterError::Unhandled(inner) => Error::Unhandled(inner),
541 }
542 }
543}
544impl<R>
545 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError, R>>
546 for Error
547where
548 R: Send + Sync + std::fmt::Debug + 'static,
549{
550 fn from(
551 err: ::aws_smithy_runtime_api::client::result::SdkError<
552 crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError,
553 R,
554 >,
555 ) -> Self {
556 match err {
557 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
558 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
559 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
560 source: err.into(),
561 }),
562 }
563 }
564}
565impl From<crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError> for Error {
566 fn from(err: crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError) -> Self {
567 match err {
568 crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError::ConflictException(inner) => {
569 Error::ConflictException(inner)
570 }
571 crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError::ResourceLimitExceeded(inner) => {
572 Error::ResourceLimitExceeded(inner)
573 }
574 crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
575 }
576 }
577}
578impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_code_repository::CreateCodeRepositoryError, R>> for Error
579where
580 R: Send + Sync + std::fmt::Debug + 'static,
581{
582 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_code_repository::CreateCodeRepositoryError, R>) -> Self {
583 match err {
584 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
585 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
586 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
587 source: err.into(),
588 }),
589 }
590 }
591}
592impl From<crate::operation::create_code_repository::CreateCodeRepositoryError> for Error {
593 fn from(err: crate::operation::create_code_repository::CreateCodeRepositoryError) -> Self {
594 match err {
595 crate::operation::create_code_repository::CreateCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
596 }
597 }
598}
599impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_compilation_job::CreateCompilationJobError, R>> for Error
600where
601 R: Send + Sync + std::fmt::Debug + 'static,
602{
603 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_compilation_job::CreateCompilationJobError, R>) -> Self {
604 match err {
605 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
606 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
607 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
608 source: err.into(),
609 }),
610 }
611 }
612}
613impl From<crate::operation::create_compilation_job::CreateCompilationJobError> for Error {
614 fn from(err: crate::operation::create_compilation_job::CreateCompilationJobError) -> Self {
615 match err {
616 crate::operation::create_compilation_job::CreateCompilationJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
617 crate::operation::create_compilation_job::CreateCompilationJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
618 crate::operation::create_compilation_job::CreateCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
619 }
620 }
621}
622impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_compute_quota::CreateComputeQuotaError, R>> for Error
623where
624 R: Send + Sync + std::fmt::Debug + 'static,
625{
626 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_compute_quota::CreateComputeQuotaError, R>) -> Self {
627 match err {
628 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
629 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
630 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
631 source: err.into(),
632 }),
633 }
634 }
635}
636impl From<crate::operation::create_compute_quota::CreateComputeQuotaError> for Error {
637 fn from(err: crate::operation::create_compute_quota::CreateComputeQuotaError) -> Self {
638 match err {
639 crate::operation::create_compute_quota::CreateComputeQuotaError::ConflictException(inner) => Error::ConflictException(inner),
640 crate::operation::create_compute_quota::CreateComputeQuotaError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
641 crate::operation::create_compute_quota::CreateComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
642 }
643 }
644}
645impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_context::CreateContextError, R>> for Error
646where
647 R: Send + Sync + std::fmt::Debug + 'static,
648{
649 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_context::CreateContextError, R>) -> Self {
650 match err {
651 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
652 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
653 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
654 source: err.into(),
655 }),
656 }
657 }
658}
659impl From<crate::operation::create_context::CreateContextError> for Error {
660 fn from(err: crate::operation::create_context::CreateContextError) -> Self {
661 match err {
662 crate::operation::create_context::CreateContextError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
663 crate::operation::create_context::CreateContextError::Unhandled(inner) => Error::Unhandled(inner),
664 }
665 }
666}
667impl<R>
668 From<
669 ::aws_smithy_runtime_api::client::result::SdkError<
670 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError,
671 R,
672 >,
673 > for Error
674where
675 R: Send + Sync + std::fmt::Debug + 'static,
676{
677 fn from(
678 err: ::aws_smithy_runtime_api::client::result::SdkError<
679 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError,
680 R,
681 >,
682 ) -> Self {
683 match err {
684 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
685 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
686 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
687 source: err.into(),
688 }),
689 }
690 }
691}
692impl From<crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError> for Error {
693 fn from(err: crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError) -> Self {
694 match err {
695 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError::ResourceInUse(inner) => {
696 Error::ResourceInUse(inner)
697 }
698 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError::ResourceLimitExceeded(inner) => {
699 Error::ResourceLimitExceeded(inner)
700 }
701 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
702 }
703 }
704}
705impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_device_fleet::CreateDeviceFleetError, R>> for Error
706where
707 R: Send + Sync + std::fmt::Debug + 'static,
708{
709 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_device_fleet::CreateDeviceFleetError, R>) -> Self {
710 match err {
711 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
712 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
713 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
714 source: err.into(),
715 }),
716 }
717 }
718}
719impl From<crate::operation::create_device_fleet::CreateDeviceFleetError> for Error {
720 fn from(err: crate::operation::create_device_fleet::CreateDeviceFleetError) -> Self {
721 match err {
722 crate::operation::create_device_fleet::CreateDeviceFleetError::ResourceInUse(inner) => Error::ResourceInUse(inner),
723 crate::operation::create_device_fleet::CreateDeviceFleetError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
724 crate::operation::create_device_fleet::CreateDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
725 }
726 }
727}
728impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain::CreateDomainError, R>> for Error
729where
730 R: Send + Sync + std::fmt::Debug + 'static,
731{
732 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain::CreateDomainError, R>) -> Self {
733 match err {
734 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
735 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
736 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
737 source: err.into(),
738 }),
739 }
740 }
741}
742impl From<crate::operation::create_domain::CreateDomainError> for Error {
743 fn from(err: crate::operation::create_domain::CreateDomainError) -> Self {
744 match err {
745 crate::operation::create_domain::CreateDomainError::ResourceInUse(inner) => Error::ResourceInUse(inner),
746 crate::operation::create_domain::CreateDomainError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
747 crate::operation::create_domain::CreateDomainError::Unhandled(inner) => Error::Unhandled(inner),
748 }
749 }
750}
751impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError, R>>
752 for Error
753where
754 R: Send + Sync + std::fmt::Debug + 'static,
755{
756 fn from(
757 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError, R>,
758 ) -> Self {
759 match err {
760 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
761 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
762 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
763 source: err.into(),
764 }),
765 }
766 }
767}
768impl From<crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError> for Error {
769 fn from(err: crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError) -> Self {
770 match err {
771 crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError::ResourceLimitExceeded(inner) => {
772 Error::ResourceLimitExceeded(inner)
773 }
774 crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError::Unhandled(inner) => Error::Unhandled(inner),
775 }
776 }
777}
778impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError, R>>
779 for Error
780where
781 R: Send + Sync + std::fmt::Debug + 'static,
782{
783 fn from(
784 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError, R>,
785 ) -> Self {
786 match err {
787 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
788 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
789 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
790 source: err.into(),
791 }),
792 }
793 }
794}
795impl From<crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError> for Error {
796 fn from(err: crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError) -> Self {
797 match err {
798 crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError::ResourceLimitExceeded(inner) => {
799 Error::ResourceLimitExceeded(inner)
800 }
801 crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
802 }
803 }
804}
805impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError, R>>
806 for Error
807where
808 R: Send + Sync + std::fmt::Debug + 'static,
809{
810 fn from(
811 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError, R>,
812 ) -> Self {
813 match err {
814 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
815 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
816 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
817 source: err.into(),
818 }),
819 }
820 }
821}
822impl From<crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError> for Error {
823 fn from(err: crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError) -> Self {
824 match err {
825 crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError::ResourceLimitExceeded(inner) => {
826 Error::ResourceLimitExceeded(inner)
827 }
828 crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError::Unhandled(inner) => Error::Unhandled(inner),
829 }
830 }
831}
832impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint::CreateEndpointError, R>> for Error
833where
834 R: Send + Sync + std::fmt::Debug + 'static,
835{
836 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint::CreateEndpointError, R>) -> Self {
837 match err {
838 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
839 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
840 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
841 source: err.into(),
842 }),
843 }
844 }
845}
846impl From<crate::operation::create_endpoint::CreateEndpointError> for Error {
847 fn from(err: crate::operation::create_endpoint::CreateEndpointError) -> Self {
848 match err {
849 crate::operation::create_endpoint::CreateEndpointError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
850 crate::operation::create_endpoint::CreateEndpointError::Unhandled(inner) => Error::Unhandled(inner),
851 }
852 }
853}
854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint_config::CreateEndpointConfigError, R>> for Error
855where
856 R: Send + Sync + std::fmt::Debug + 'static,
857{
858 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint_config::CreateEndpointConfigError, R>) -> Self {
859 match err {
860 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
861 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
862 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
863 source: err.into(),
864 }),
865 }
866 }
867}
868impl From<crate::operation::create_endpoint_config::CreateEndpointConfigError> for Error {
869 fn from(err: crate::operation::create_endpoint_config::CreateEndpointConfigError) -> Self {
870 match err {
871 crate::operation::create_endpoint_config::CreateEndpointConfigError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
872 crate::operation::create_endpoint_config::CreateEndpointConfigError::Unhandled(inner) => Error::Unhandled(inner),
873 }
874 }
875}
876impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_experiment::CreateExperimentError, R>> for Error
877where
878 R: Send + Sync + std::fmt::Debug + 'static,
879{
880 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_experiment::CreateExperimentError, R>) -> Self {
881 match err {
882 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
883 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
884 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
885 source: err.into(),
886 }),
887 }
888 }
889}
890impl From<crate::operation::create_experiment::CreateExperimentError> for Error {
891 fn from(err: crate::operation::create_experiment::CreateExperimentError) -> Self {
892 match err {
893 crate::operation::create_experiment::CreateExperimentError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
894 crate::operation::create_experiment::CreateExperimentError::Unhandled(inner) => Error::Unhandled(inner),
895 }
896 }
897}
898impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_feature_group::CreateFeatureGroupError, R>> for Error
899where
900 R: Send + Sync + std::fmt::Debug + 'static,
901{
902 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_feature_group::CreateFeatureGroupError, R>) -> Self {
903 match err {
904 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
905 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
906 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
907 source: err.into(),
908 }),
909 }
910 }
911}
912impl From<crate::operation::create_feature_group::CreateFeatureGroupError> for Error {
913 fn from(err: crate::operation::create_feature_group::CreateFeatureGroupError) -> Self {
914 match err {
915 crate::operation::create_feature_group::CreateFeatureGroupError::ResourceInUse(inner) => Error::ResourceInUse(inner),
916 crate::operation::create_feature_group::CreateFeatureGroupError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
917 crate::operation::create_feature_group::CreateFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
918 }
919 }
920}
921impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_flow_definition::CreateFlowDefinitionError, R>> for Error
922where
923 R: Send + Sync + std::fmt::Debug + 'static,
924{
925 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_flow_definition::CreateFlowDefinitionError, R>) -> Self {
926 match err {
927 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
928 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
929 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
930 source: err.into(),
931 }),
932 }
933 }
934}
935impl From<crate::operation::create_flow_definition::CreateFlowDefinitionError> for Error {
936 fn from(err: crate::operation::create_flow_definition::CreateFlowDefinitionError) -> Self {
937 match err {
938 crate::operation::create_flow_definition::CreateFlowDefinitionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
939 crate::operation::create_flow_definition::CreateFlowDefinitionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
940 crate::operation::create_flow_definition::CreateFlowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
941 }
942 }
943}
944impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hub::CreateHubError, R>> for Error
945where
946 R: Send + Sync + std::fmt::Debug + 'static,
947{
948 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hub::CreateHubError, R>) -> Self {
949 match err {
950 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
951 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
952 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
953 source: err.into(),
954 }),
955 }
956 }
957}
958impl From<crate::operation::create_hub::CreateHubError> for Error {
959 fn from(err: crate::operation::create_hub::CreateHubError) -> Self {
960 match err {
961 crate::operation::create_hub::CreateHubError::ResourceInUse(inner) => Error::ResourceInUse(inner),
962 crate::operation::create_hub::CreateHubError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
963 crate::operation::create_hub::CreateHubError::Unhandled(inner) => Error::Unhandled(inner),
964 }
965 }
966}
967impl<R>
968 From<
969 ::aws_smithy_runtime_api::client::result::SdkError<
970 crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError,
971 R,
972 >,
973 > for Error
974where
975 R: Send + Sync + std::fmt::Debug + 'static,
976{
977 fn from(
978 err: ::aws_smithy_runtime_api::client::result::SdkError<
979 crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError,
980 R,
981 >,
982 ) -> Self {
983 match err {
984 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
985 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
986 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
987 source: err.into(),
988 }),
989 }
990 }
991}
992impl From<crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError> for Error {
993 fn from(err: crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError) -> Self {
994 match err {
995 crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError::Unhandled(inner) => Error::Unhandled(inner),
996 }
997 }
998}
999impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hub_content_reference::CreateHubContentReferenceError, R>>
1000 for Error
1001where
1002 R: Send + Sync + std::fmt::Debug + 'static,
1003{
1004 fn from(
1005 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hub_content_reference::CreateHubContentReferenceError, R>,
1006 ) -> Self {
1007 match err {
1008 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1009 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1010 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1011 source: err.into(),
1012 }),
1013 }
1014 }
1015}
1016impl From<crate::operation::create_hub_content_reference::CreateHubContentReferenceError> for Error {
1017 fn from(err: crate::operation::create_hub_content_reference::CreateHubContentReferenceError) -> Self {
1018 match err {
1019 crate::operation::create_hub_content_reference::CreateHubContentReferenceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1020 crate::operation::create_hub_content_reference::CreateHubContentReferenceError::ResourceLimitExceeded(inner) => {
1021 Error::ResourceLimitExceeded(inner)
1022 }
1023 crate::operation::create_hub_content_reference::CreateHubContentReferenceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1024 crate::operation::create_hub_content_reference::CreateHubContentReferenceError::Unhandled(inner) => Error::Unhandled(inner),
1025 }
1026 }
1027}
1028impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_human_task_ui::CreateHumanTaskUiError, R>> for Error
1029where
1030 R: Send + Sync + std::fmt::Debug + 'static,
1031{
1032 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_human_task_ui::CreateHumanTaskUiError, R>) -> Self {
1033 match err {
1034 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1035 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1036 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1037 source: err.into(),
1038 }),
1039 }
1040 }
1041}
1042impl From<crate::operation::create_human_task_ui::CreateHumanTaskUiError> for Error {
1043 fn from(err: crate::operation::create_human_task_ui::CreateHumanTaskUiError) -> Self {
1044 match err {
1045 crate::operation::create_human_task_ui::CreateHumanTaskUiError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1046 crate::operation::create_human_task_ui::CreateHumanTaskUiError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1047 crate::operation::create_human_task_ui::CreateHumanTaskUiError::Unhandled(inner) => Error::Unhandled(inner),
1048 }
1049 }
1050}
1051impl<R>
1052 From<
1053 ::aws_smithy_runtime_api::client::result::SdkError<
1054 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError,
1055 R,
1056 >,
1057 > for Error
1058where
1059 R: Send + Sync + std::fmt::Debug + 'static,
1060{
1061 fn from(
1062 err: ::aws_smithy_runtime_api::client::result::SdkError<
1063 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError,
1064 R,
1065 >,
1066 ) -> Self {
1067 match err {
1068 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1069 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1070 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1071 source: err.into(),
1072 }),
1073 }
1074 }
1075}
1076impl From<crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError> for Error {
1077 fn from(err: crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError) -> Self {
1078 match err {
1079 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError::ResourceInUse(inner) => {
1080 Error::ResourceInUse(inner)
1081 }
1082 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError::ResourceLimitExceeded(inner) => {
1083 Error::ResourceLimitExceeded(inner)
1084 }
1085 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
1086 }
1087 }
1088}
1089impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image::CreateImageError, R>> for Error
1090where
1091 R: Send + Sync + std::fmt::Debug + 'static,
1092{
1093 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image::CreateImageError, R>) -> Self {
1094 match err {
1095 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1096 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1097 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1098 source: err.into(),
1099 }),
1100 }
1101 }
1102}
1103impl From<crate::operation::create_image::CreateImageError> for Error {
1104 fn from(err: crate::operation::create_image::CreateImageError) -> Self {
1105 match err {
1106 crate::operation::create_image::CreateImageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1107 crate::operation::create_image::CreateImageError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1108 crate::operation::create_image::CreateImageError::Unhandled(inner) => Error::Unhandled(inner),
1109 }
1110 }
1111}
1112impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_version::CreateImageVersionError, R>> for Error
1113where
1114 R: Send + Sync + std::fmt::Debug + 'static,
1115{
1116 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_version::CreateImageVersionError, R>) -> Self {
1117 match err {
1118 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1119 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1120 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1121 source: err.into(),
1122 }),
1123 }
1124 }
1125}
1126impl From<crate::operation::create_image_version::CreateImageVersionError> for Error {
1127 fn from(err: crate::operation::create_image_version::CreateImageVersionError) -> Self {
1128 match err {
1129 crate::operation::create_image_version::CreateImageVersionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1130 crate::operation::create_image_version::CreateImageVersionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1131 crate::operation::create_image_version::CreateImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1132 crate::operation::create_image_version::CreateImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
1133 }
1134 }
1135}
1136impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inference_component::CreateInferenceComponentError, R>>
1137 for Error
1138where
1139 R: Send + Sync + std::fmt::Debug + 'static,
1140{
1141 fn from(
1142 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inference_component::CreateInferenceComponentError, R>,
1143 ) -> Self {
1144 match err {
1145 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1146 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1147 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1148 source: err.into(),
1149 }),
1150 }
1151 }
1152}
1153impl From<crate::operation::create_inference_component::CreateInferenceComponentError> for Error {
1154 fn from(err: crate::operation::create_inference_component::CreateInferenceComponentError) -> Self {
1155 match err {
1156 crate::operation::create_inference_component::CreateInferenceComponentError::ResourceLimitExceeded(inner) => {
1157 Error::ResourceLimitExceeded(inner)
1158 }
1159 crate::operation::create_inference_component::CreateInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
1160 }
1161 }
1162}
1163impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inference_experiment::CreateInferenceExperimentError, R>>
1164 for Error
1165where
1166 R: Send + Sync + std::fmt::Debug + 'static,
1167{
1168 fn from(
1169 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inference_experiment::CreateInferenceExperimentError, R>,
1170 ) -> Self {
1171 match err {
1172 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1173 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1174 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1175 source: err.into(),
1176 }),
1177 }
1178 }
1179}
1180impl From<crate::operation::create_inference_experiment::CreateInferenceExperimentError> for Error {
1181 fn from(err: crate::operation::create_inference_experiment::CreateInferenceExperimentError) -> Self {
1182 match err {
1183 crate::operation::create_inference_experiment::CreateInferenceExperimentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1184 crate::operation::create_inference_experiment::CreateInferenceExperimentError::ResourceLimitExceeded(inner) => {
1185 Error::ResourceLimitExceeded(inner)
1186 }
1187 crate::operation::create_inference_experiment::CreateInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
1188 }
1189 }
1190}
1191impl<R>
1192 From<
1193 ::aws_smithy_runtime_api::client::result::SdkError<
1194 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError,
1195 R,
1196 >,
1197 > for Error
1198where
1199 R: Send + Sync + std::fmt::Debug + 'static,
1200{
1201 fn from(
1202 err: ::aws_smithy_runtime_api::client::result::SdkError<
1203 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError,
1204 R,
1205 >,
1206 ) -> Self {
1207 match err {
1208 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1209 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1210 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1211 source: err.into(),
1212 }),
1213 }
1214 }
1215}
1216impl From<crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError> for Error {
1217 fn from(err: crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError) -> Self {
1218 match err {
1219 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError::ResourceInUse(inner) => {
1220 Error::ResourceInUse(inner)
1221 }
1222 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError::ResourceLimitExceeded(inner) => {
1223 Error::ResourceLimitExceeded(inner)
1224 }
1225 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError::Unhandled(inner) => {
1226 Error::Unhandled(inner)
1227 }
1228 }
1229 }
1230}
1231impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_labeling_job::CreateLabelingJobError, R>> for Error
1232where
1233 R: Send + Sync + std::fmt::Debug + 'static,
1234{
1235 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_labeling_job::CreateLabelingJobError, R>) -> Self {
1236 match err {
1237 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1238 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1239 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1240 source: err.into(),
1241 }),
1242 }
1243 }
1244}
1245impl From<crate::operation::create_labeling_job::CreateLabelingJobError> for Error {
1246 fn from(err: crate::operation::create_labeling_job::CreateLabelingJobError) -> Self {
1247 match err {
1248 crate::operation::create_labeling_job::CreateLabelingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1249 crate::operation::create_labeling_job::CreateLabelingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1250 crate::operation::create_labeling_job::CreateLabelingJobError::Unhandled(inner) => Error::Unhandled(inner),
1251 }
1252 }
1253}
1254impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mlflow_app::CreateMlflowAppError, R>> for Error
1255where
1256 R: Send + Sync + std::fmt::Debug + 'static,
1257{
1258 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mlflow_app::CreateMlflowAppError, R>) -> Self {
1259 match err {
1260 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1261 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1262 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1263 source: err.into(),
1264 }),
1265 }
1266 }
1267}
1268impl From<crate::operation::create_mlflow_app::CreateMlflowAppError> for Error {
1269 fn from(err: crate::operation::create_mlflow_app::CreateMlflowAppError) -> Self {
1270 match err {
1271 crate::operation::create_mlflow_app::CreateMlflowAppError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1272 crate::operation::create_mlflow_app::CreateMlflowAppError::Unhandled(inner) => Error::Unhandled(inner),
1273 }
1274 }
1275}
1276impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError, R>>
1277 for Error
1278where
1279 R: Send + Sync + std::fmt::Debug + 'static,
1280{
1281 fn from(
1282 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError, R>,
1283 ) -> Self {
1284 match err {
1285 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1286 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1287 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1288 source: err.into(),
1289 }),
1290 }
1291 }
1292}
1293impl From<crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError> for Error {
1294 fn from(err: crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError) -> Self {
1295 match err {
1296 crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError::ResourceLimitExceeded(inner) => {
1297 Error::ResourceLimitExceeded(inner)
1298 }
1299 crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
1300 }
1301 }
1302}
1303impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model::CreateModelError, R>> for Error
1304where
1305 R: Send + Sync + std::fmt::Debug + 'static,
1306{
1307 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model::CreateModelError, R>) -> Self {
1308 match err {
1309 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1310 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1311 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1312 source: err.into(),
1313 }),
1314 }
1315 }
1316}
1317impl From<crate::operation::create_model::CreateModelError> for Error {
1318 fn from(err: crate::operation::create_model::CreateModelError) -> Self {
1319 match err {
1320 crate::operation::create_model::CreateModelError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1321 crate::operation::create_model::CreateModelError::Unhandled(inner) => Error::Unhandled(inner),
1322 }
1323 }
1324}
1325impl<R>
1326 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError, R>>
1327 for Error
1328where
1329 R: Send + Sync + std::fmt::Debug + 'static,
1330{
1331 fn from(
1332 err: ::aws_smithy_runtime_api::client::result::SdkError<
1333 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError,
1334 R,
1335 >,
1336 ) -> Self {
1337 match err {
1338 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1339 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1340 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1341 source: err.into(),
1342 }),
1343 }
1344 }
1345}
1346impl From<crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError> for Error {
1347 fn from(err: crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError) -> Self {
1348 match err {
1349 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError::ResourceInUse(inner) => {
1350 Error::ResourceInUse(inner)
1351 }
1352 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError::ResourceLimitExceeded(inner) => {
1353 Error::ResourceLimitExceeded(inner)
1354 }
1355 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1356 }
1357 }
1358}
1359impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card::CreateModelCardError, R>> for Error
1360where
1361 R: Send + Sync + std::fmt::Debug + 'static,
1362{
1363 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card::CreateModelCardError, R>) -> Self {
1364 match err {
1365 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1366 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1367 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1368 source: err.into(),
1369 }),
1370 }
1371 }
1372}
1373impl From<crate::operation::create_model_card::CreateModelCardError> for Error {
1374 fn from(err: crate::operation::create_model_card::CreateModelCardError) -> Self {
1375 match err {
1376 crate::operation::create_model_card::CreateModelCardError::ConflictException(inner) => Error::ConflictException(inner),
1377 crate::operation::create_model_card::CreateModelCardError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1378 crate::operation::create_model_card::CreateModelCardError::Unhandled(inner) => Error::Unhandled(inner),
1379 }
1380 }
1381}
1382impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card_export_job::CreateModelCardExportJobError, R>>
1383 for Error
1384where
1385 R: Send + Sync + std::fmt::Debug + 'static,
1386{
1387 fn from(
1388 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card_export_job::CreateModelCardExportJobError, R>,
1389 ) -> Self {
1390 match err {
1391 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1392 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1393 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1394 source: err.into(),
1395 }),
1396 }
1397 }
1398}
1399impl From<crate::operation::create_model_card_export_job::CreateModelCardExportJobError> for Error {
1400 fn from(err: crate::operation::create_model_card_export_job::CreateModelCardExportJobError) -> Self {
1401 match err {
1402 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::ConflictException(inner) => {
1403 Error::ConflictException(inner)
1404 }
1405 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::ResourceLimitExceeded(inner) => {
1406 Error::ResourceLimitExceeded(inner)
1407 }
1408 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1409 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::Unhandled(inner) => Error::Unhandled(inner),
1410 }
1411 }
1412}
1413impl<R>
1414 From<
1415 ::aws_smithy_runtime_api::client::result::SdkError<
1416 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError,
1417 R,
1418 >,
1419 > for Error
1420where
1421 R: Send + Sync + std::fmt::Debug + 'static,
1422{
1423 fn from(
1424 err: ::aws_smithy_runtime_api::client::result::SdkError<
1425 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError,
1426 R,
1427 >,
1428 ) -> Self {
1429 match err {
1430 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1431 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1432 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1433 source: err.into(),
1434 }),
1435 }
1436 }
1437}
1438impl From<crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError> for Error {
1439 fn from(err: crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError) -> Self {
1440 match err {
1441 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError::ResourceInUse(inner) => {
1442 Error::ResourceInUse(inner)
1443 }
1444 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError::ResourceLimitExceeded(
1445 inner,
1446 ) => Error::ResourceLimitExceeded(inner),
1447 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError::Unhandled(inner) => {
1448 Error::Unhandled(inner)
1449 }
1450 }
1451 }
1452}
1453impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package::CreateModelPackageError, R>> for Error
1454where
1455 R: Send + Sync + std::fmt::Debug + 'static,
1456{
1457 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package::CreateModelPackageError, R>) -> Self {
1458 match err {
1459 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1460 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1461 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1462 source: err.into(),
1463 }),
1464 }
1465 }
1466}
1467impl From<crate::operation::create_model_package::CreateModelPackageError> for Error {
1468 fn from(err: crate::operation::create_model_package::CreateModelPackageError) -> Self {
1469 match err {
1470 crate::operation::create_model_package::CreateModelPackageError::ConflictException(inner) => Error::ConflictException(inner),
1471 crate::operation::create_model_package::CreateModelPackageError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1472 crate::operation::create_model_package::CreateModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
1473 }
1474 }
1475}
1476impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package_group::CreateModelPackageGroupError, R>>
1477 for Error
1478where
1479 R: Send + Sync + std::fmt::Debug + 'static,
1480{
1481 fn from(
1482 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package_group::CreateModelPackageGroupError, R>,
1483 ) -> Self {
1484 match err {
1485 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1486 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1487 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1488 source: err.into(),
1489 }),
1490 }
1491 }
1492}
1493impl From<crate::operation::create_model_package_group::CreateModelPackageGroupError> for Error {
1494 fn from(err: crate::operation::create_model_package_group::CreateModelPackageGroupError) -> Self {
1495 match err {
1496 crate::operation::create_model_package_group::CreateModelPackageGroupError::ResourceLimitExceeded(inner) => {
1497 Error::ResourceLimitExceeded(inner)
1498 }
1499 crate::operation::create_model_package_group::CreateModelPackageGroupError::Unhandled(inner) => Error::Unhandled(inner),
1500 }
1501 }
1502}
1503impl<R>
1504 From<
1505 ::aws_smithy_runtime_api::client::result::SdkError<
1506 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError,
1507 R,
1508 >,
1509 > for Error
1510where
1511 R: Send + Sync + std::fmt::Debug + 'static,
1512{
1513 fn from(
1514 err: ::aws_smithy_runtime_api::client::result::SdkError<
1515 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError,
1516 R,
1517 >,
1518 ) -> Self {
1519 match err {
1520 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1521 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1522 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1523 source: err.into(),
1524 }),
1525 }
1526 }
1527}
1528impl From<crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError> for Error {
1529 fn from(err: crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError) -> Self {
1530 match err {
1531 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError::ResourceInUse(inner) => {
1532 Error::ResourceInUse(inner)
1533 }
1534 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError::ResourceLimitExceeded(inner) => {
1535 Error::ResourceLimitExceeded(inner)
1536 }
1537 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1538 }
1539 }
1540}
1541impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError, R>>
1542 for Error
1543where
1544 R: Send + Sync + std::fmt::Debug + 'static,
1545{
1546 fn from(
1547 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError, R>,
1548 ) -> Self {
1549 match err {
1550 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1551 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1552 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1553 source: err.into(),
1554 }),
1555 }
1556 }
1557}
1558impl From<crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError> for Error {
1559 fn from(err: crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError) -> Self {
1560 match err {
1561 crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1562 crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError::ResourceLimitExceeded(inner) => {
1563 Error::ResourceLimitExceeded(inner)
1564 }
1565 crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
1566 }
1567 }
1568}
1569impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notebook_instance::CreateNotebookInstanceError, R>> for Error
1570where
1571 R: Send + Sync + std::fmt::Debug + 'static,
1572{
1573 fn from(
1574 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notebook_instance::CreateNotebookInstanceError, R>,
1575 ) -> Self {
1576 match err {
1577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1580 source: err.into(),
1581 }),
1582 }
1583 }
1584}
1585impl From<crate::operation::create_notebook_instance::CreateNotebookInstanceError> for Error {
1586 fn from(err: crate::operation::create_notebook_instance::CreateNotebookInstanceError) -> Self {
1587 match err {
1588 crate::operation::create_notebook_instance::CreateNotebookInstanceError::ResourceLimitExceeded(inner) => {
1589 Error::ResourceLimitExceeded(inner)
1590 }
1591 crate::operation::create_notebook_instance::CreateNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
1592 }
1593 }
1594}
1595impl<R>
1596 From<
1597 ::aws_smithy_runtime_api::client::result::SdkError<
1598 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError,
1599 R,
1600 >,
1601 > for Error
1602where
1603 R: Send + Sync + std::fmt::Debug + 'static,
1604{
1605 fn from(
1606 err: ::aws_smithy_runtime_api::client::result::SdkError<
1607 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError,
1608 R,
1609 >,
1610 ) -> Self {
1611 match err {
1612 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1613 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1614 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1615 source: err.into(),
1616 }),
1617 }
1618 }
1619}
1620impl From<crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError> for Error {
1621 fn from(err: crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError) -> Self {
1622 match err {
1623 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError::ResourceLimitExceeded(inner) => {
1624 Error::ResourceLimitExceeded(inner)
1625 }
1626 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
1627 Error::Unhandled(inner)
1628 }
1629 }
1630 }
1631}
1632impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_optimization_job::CreateOptimizationJobError, R>> for Error
1633where
1634 R: Send + Sync + std::fmt::Debug + 'static,
1635{
1636 fn from(
1637 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_optimization_job::CreateOptimizationJobError, R>,
1638 ) -> Self {
1639 match err {
1640 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1641 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1642 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1643 source: err.into(),
1644 }),
1645 }
1646 }
1647}
1648impl From<crate::operation::create_optimization_job::CreateOptimizationJobError> for Error {
1649 fn from(err: crate::operation::create_optimization_job::CreateOptimizationJobError) -> Self {
1650 match err {
1651 crate::operation::create_optimization_job::CreateOptimizationJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1652 crate::operation::create_optimization_job::CreateOptimizationJobError::ResourceLimitExceeded(inner) => {
1653 Error::ResourceLimitExceeded(inner)
1654 }
1655 crate::operation::create_optimization_job::CreateOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
1656 }
1657 }
1658}
1659impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_app::CreatePartnerAppError, R>> for Error
1660where
1661 R: Send + Sync + std::fmt::Debug + 'static,
1662{
1663 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_app::CreatePartnerAppError, R>) -> Self {
1664 match err {
1665 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1666 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1667 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1668 source: err.into(),
1669 }),
1670 }
1671 }
1672}
1673impl From<crate::operation::create_partner_app::CreatePartnerAppError> for Error {
1674 fn from(err: crate::operation::create_partner_app::CreatePartnerAppError) -> Self {
1675 match err {
1676 crate::operation::create_partner_app::CreatePartnerAppError::ConflictException(inner) => Error::ConflictException(inner),
1677 crate::operation::create_partner_app::CreatePartnerAppError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1678 crate::operation::create_partner_app::CreatePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
1679 }
1680 }
1681}
1682impl<R>
1683 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError, R>>
1684 for Error
1685where
1686 R: Send + Sync + std::fmt::Debug + 'static,
1687{
1688 fn from(
1689 err: ::aws_smithy_runtime_api::client::result::SdkError<
1690 crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError,
1691 R,
1692 >,
1693 ) -> Self {
1694 match err {
1695 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1696 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1697 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1698 source: err.into(),
1699 }),
1700 }
1701 }
1702}
1703impl From<crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError> for Error {
1704 fn from(err: crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError) -> Self {
1705 match err {
1706 crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError::ResourceNotFound(inner) => {
1707 Error::ResourceNotFound(inner)
1708 }
1709 crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError::Unhandled(inner) => Error::Unhandled(inner),
1710 }
1711 }
1712}
1713impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pipeline::CreatePipelineError, R>> for Error
1714where
1715 R: Send + Sync + std::fmt::Debug + 'static,
1716{
1717 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pipeline::CreatePipelineError, R>) -> Self {
1718 match err {
1719 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1720 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1721 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1722 source: err.into(),
1723 }),
1724 }
1725 }
1726}
1727impl From<crate::operation::create_pipeline::CreatePipelineError> for Error {
1728 fn from(err: crate::operation::create_pipeline::CreatePipelineError) -> Self {
1729 match err {
1730 crate::operation::create_pipeline::CreatePipelineError::ConflictException(inner) => Error::ConflictException(inner),
1731 crate::operation::create_pipeline::CreatePipelineError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1732 crate::operation::create_pipeline::CreatePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1733 crate::operation::create_pipeline::CreatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
1734 }
1735 }
1736}
1737impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError, R>>
1738 for Error
1739where
1740 R: Send + Sync + std::fmt::Debug + 'static,
1741{
1742 fn from(
1743 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError, R>,
1744 ) -> Self {
1745 match err {
1746 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1747 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1748 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1749 source: err.into(),
1750 }),
1751 }
1752 }
1753}
1754impl From<crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError> for Error {
1755 fn from(err: crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError) -> Self {
1756 match err {
1757 crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1758 crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError::Unhandled(inner) => Error::Unhandled(inner),
1759 }
1760 }
1761}
1762impl<R>
1763 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_presigned_mlflow_app_url::CreatePresignedMlflowAppUrlError, R>>
1764 for Error
1765where
1766 R: Send + Sync + std::fmt::Debug + 'static,
1767{
1768 fn from(
1769 err: ::aws_smithy_runtime_api::client::result::SdkError<
1770 crate::operation::create_presigned_mlflow_app_url::CreatePresignedMlflowAppUrlError,
1771 R,
1772 >,
1773 ) -> Self {
1774 match err {
1775 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1776 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1777 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1778 source: err.into(),
1779 }),
1780 }
1781 }
1782}
1783impl From<crate::operation::create_presigned_mlflow_app_url::CreatePresignedMlflowAppUrlError> for Error {
1784 fn from(err: crate::operation::create_presigned_mlflow_app_url::CreatePresignedMlflowAppUrlError) -> Self {
1785 match err {
1786 crate::operation::create_presigned_mlflow_app_url::CreatePresignedMlflowAppUrlError::ResourceNotFound(inner) => {
1787 Error::ResourceNotFound(inner)
1788 }
1789 crate::operation::create_presigned_mlflow_app_url::CreatePresignedMlflowAppUrlError::Unhandled(inner) => Error::Unhandled(inner),
1790 }
1791 }
1792}
1793impl<R>
1794 From<
1795 ::aws_smithy_runtime_api::client::result::SdkError<
1796 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError,
1797 R,
1798 >,
1799 > for Error
1800where
1801 R: Send + Sync + std::fmt::Debug + 'static,
1802{
1803 fn from(
1804 err: ::aws_smithy_runtime_api::client::result::SdkError<
1805 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError,
1806 R,
1807 >,
1808 ) -> Self {
1809 match err {
1810 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1811 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1812 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1813 source: err.into(),
1814 }),
1815 }
1816 }
1817}
1818impl From<crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError> for Error {
1819 fn from(err: crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError) -> Self {
1820 match err {
1821 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError::ResourceNotFound(inner) => {
1822 Error::ResourceNotFound(inner)
1823 }
1824 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError::Unhandled(inner) => {
1825 Error::Unhandled(inner)
1826 }
1827 }
1828 }
1829}
1830impl<R>
1831 From<
1832 ::aws_smithy_runtime_api::client::result::SdkError<
1833 crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError,
1834 R,
1835 >,
1836 > for Error
1837where
1838 R: Send + Sync + std::fmt::Debug + 'static,
1839{
1840 fn from(
1841 err: ::aws_smithy_runtime_api::client::result::SdkError<
1842 crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError,
1843 R,
1844 >,
1845 ) -> Self {
1846 match err {
1847 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1848 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1849 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1850 source: err.into(),
1851 }),
1852 }
1853 }
1854}
1855impl From<crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError> for Error {
1856 fn from(err: crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError) -> Self {
1857 match err {
1858 crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError::Unhandled(inner) => {
1859 Error::Unhandled(inner)
1860 }
1861 }
1862 }
1863}
1864impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_processing_job::CreateProcessingJobError, R>> for Error
1865where
1866 R: Send + Sync + std::fmt::Debug + 'static,
1867{
1868 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_processing_job::CreateProcessingJobError, R>) -> Self {
1869 match err {
1870 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1871 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1872 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1873 source: err.into(),
1874 }),
1875 }
1876 }
1877}
1878impl From<crate::operation::create_processing_job::CreateProcessingJobError> for Error {
1879 fn from(err: crate::operation::create_processing_job::CreateProcessingJobError) -> Self {
1880 match err {
1881 crate::operation::create_processing_job::CreateProcessingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1882 crate::operation::create_processing_job::CreateProcessingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1883 crate::operation::create_processing_job::CreateProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1884 crate::operation::create_processing_job::CreateProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
1885 }
1886 }
1887}
1888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>> for Error
1889where
1890 R: Send + Sync + std::fmt::Debug + 'static,
1891{
1892 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>) -> Self {
1893 match err {
1894 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1895 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1896 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1897 source: err.into(),
1898 }),
1899 }
1900 }
1901}
1902impl From<crate::operation::create_project::CreateProjectError> for Error {
1903 fn from(err: crate::operation::create_project::CreateProjectError) -> Self {
1904 match err {
1905 crate::operation::create_project::CreateProjectError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1906 crate::operation::create_project::CreateProjectError::Unhandled(inner) => Error::Unhandled(inner),
1907 }
1908 }
1909}
1910impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_space::CreateSpaceError, 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::create_space::CreateSpaceError, 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::create_space::CreateSpaceError> for Error {
1925 fn from(err: crate::operation::create_space::CreateSpaceError) -> Self {
1926 match err {
1927 crate::operation::create_space::CreateSpaceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1928 crate::operation::create_space::CreateSpaceError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1929 crate::operation::create_space::CreateSpaceError::Unhandled(inner) => Error::Unhandled(inner),
1930 }
1931 }
1932}
1933impl<R>
1934 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError, R>>
1935 for Error
1936where
1937 R: Send + Sync + std::fmt::Debug + 'static,
1938{
1939 fn from(
1940 err: ::aws_smithy_runtime_api::client::result::SdkError<
1941 crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError,
1942 R,
1943 >,
1944 ) -> Self {
1945 match err {
1946 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1947 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1948 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1949 source: err.into(),
1950 }),
1951 }
1952 }
1953}
1954impl From<crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError> for Error {
1955 fn from(err: crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError) -> Self {
1956 match err {
1957 crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1958 crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError::Unhandled(inner) => Error::Unhandled(inner),
1959 }
1960 }
1961}
1962impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_job::CreateTrainingJobError, R>> for Error
1963where
1964 R: Send + Sync + std::fmt::Debug + 'static,
1965{
1966 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_job::CreateTrainingJobError, R>) -> Self {
1967 match err {
1968 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1969 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1970 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1971 source: err.into(),
1972 }),
1973 }
1974 }
1975}
1976impl From<crate::operation::create_training_job::CreateTrainingJobError> for Error {
1977 fn from(err: crate::operation::create_training_job::CreateTrainingJobError) -> Self {
1978 match err {
1979 crate::operation::create_training_job::CreateTrainingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1980 crate::operation::create_training_job::CreateTrainingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1981 crate::operation::create_training_job::CreateTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1982 crate::operation::create_training_job::CreateTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
1983 }
1984 }
1985}
1986impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_plan::CreateTrainingPlanError, R>> for Error
1987where
1988 R: Send + Sync + std::fmt::Debug + 'static,
1989{
1990 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_plan::CreateTrainingPlanError, R>) -> Self {
1991 match err {
1992 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1993 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1994 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1995 source: err.into(),
1996 }),
1997 }
1998 }
1999}
2000impl From<crate::operation::create_training_plan::CreateTrainingPlanError> for Error {
2001 fn from(err: crate::operation::create_training_plan::CreateTrainingPlanError) -> Self {
2002 match err {
2003 crate::operation::create_training_plan::CreateTrainingPlanError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2004 crate::operation::create_training_plan::CreateTrainingPlanError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
2005 crate::operation::create_training_plan::CreateTrainingPlanError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2006 crate::operation::create_training_plan::CreateTrainingPlanError::Unhandled(inner) => Error::Unhandled(inner),
2007 }
2008 }
2009}
2010impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transform_job::CreateTransformJobError, R>> for Error
2011where
2012 R: Send + Sync + std::fmt::Debug + 'static,
2013{
2014 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transform_job::CreateTransformJobError, R>) -> Self {
2015 match err {
2016 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2017 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2018 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2019 source: err.into(),
2020 }),
2021 }
2022 }
2023}
2024impl From<crate::operation::create_transform_job::CreateTransformJobError> for Error {
2025 fn from(err: crate::operation::create_transform_job::CreateTransformJobError) -> Self {
2026 match err {
2027 crate::operation::create_transform_job::CreateTransformJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2028 crate::operation::create_transform_job::CreateTransformJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
2029 crate::operation::create_transform_job::CreateTransformJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2030 crate::operation::create_transform_job::CreateTransformJobError::Unhandled(inner) => Error::Unhandled(inner),
2031 }
2032 }
2033}
2034impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial::CreateTrialError, R>> for Error
2035where
2036 R: Send + Sync + std::fmt::Debug + 'static,
2037{
2038 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial::CreateTrialError, R>) -> Self {
2039 match err {
2040 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2041 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2042 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2043 source: err.into(),
2044 }),
2045 }
2046 }
2047}
2048impl From<crate::operation::create_trial::CreateTrialError> for Error {
2049 fn from(err: crate::operation::create_trial::CreateTrialError) -> Self {
2050 match err {
2051 crate::operation::create_trial::CreateTrialError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
2052 crate::operation::create_trial::CreateTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2053 crate::operation::create_trial::CreateTrialError::Unhandled(inner) => Error::Unhandled(inner),
2054 }
2055 }
2056}
2057impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial_component::CreateTrialComponentError, R>> for Error
2058where
2059 R: Send + Sync + std::fmt::Debug + 'static,
2060{
2061 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial_component::CreateTrialComponentError, R>) -> Self {
2062 match err {
2063 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2064 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2065 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2066 source: err.into(),
2067 }),
2068 }
2069 }
2070}
2071impl From<crate::operation::create_trial_component::CreateTrialComponentError> for Error {
2072 fn from(err: crate::operation::create_trial_component::CreateTrialComponentError) -> Self {
2073 match err {
2074 crate::operation::create_trial_component::CreateTrialComponentError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
2075 crate::operation::create_trial_component::CreateTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
2076 }
2077 }
2078}
2079impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_profile::CreateUserProfileError, R>> for Error
2080where
2081 R: Send + Sync + std::fmt::Debug + 'static,
2082{
2083 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_profile::CreateUserProfileError, R>) -> Self {
2084 match err {
2085 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2086 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2087 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2088 source: err.into(),
2089 }),
2090 }
2091 }
2092}
2093impl From<crate::operation::create_user_profile::CreateUserProfileError> for Error {
2094 fn from(err: crate::operation::create_user_profile::CreateUserProfileError) -> Self {
2095 match err {
2096 crate::operation::create_user_profile::CreateUserProfileError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2097 crate::operation::create_user_profile::CreateUserProfileError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
2098 crate::operation::create_user_profile::CreateUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
2099 }
2100 }
2101}
2102impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workforce::CreateWorkforceError, R>> for Error
2103where
2104 R: Send + Sync + std::fmt::Debug + 'static,
2105{
2106 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workforce::CreateWorkforceError, R>) -> Self {
2107 match err {
2108 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2109 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2110 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2111 source: err.into(),
2112 }),
2113 }
2114 }
2115}
2116impl From<crate::operation::create_workforce::CreateWorkforceError> for Error {
2117 fn from(err: crate::operation::create_workforce::CreateWorkforceError) -> Self {
2118 match err {
2119 crate::operation::create_workforce::CreateWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
2120 }
2121 }
2122}
2123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workteam::CreateWorkteamError, R>> for Error
2124where
2125 R: Send + Sync + std::fmt::Debug + 'static,
2126{
2127 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workteam::CreateWorkteamError, R>) -> Self {
2128 match err {
2129 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2130 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2131 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2132 source: err.into(),
2133 }),
2134 }
2135 }
2136}
2137impl From<crate::operation::create_workteam::CreateWorkteamError> for Error {
2138 fn from(err: crate::operation::create_workteam::CreateWorkteamError) -> Self {
2139 match err {
2140 crate::operation::create_workteam::CreateWorkteamError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2141 crate::operation::create_workteam::CreateWorkteamError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
2142 crate::operation::create_workteam::CreateWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
2143 }
2144 }
2145}
2146impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_action::DeleteActionError, R>> for Error
2147where
2148 R: Send + Sync + std::fmt::Debug + 'static,
2149{
2150 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_action::DeleteActionError, R>) -> Self {
2151 match err {
2152 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2153 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2154 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2155 source: err.into(),
2156 }),
2157 }
2158 }
2159}
2160impl From<crate::operation::delete_action::DeleteActionError> for Error {
2161 fn from(err: crate::operation::delete_action::DeleteActionError) -> Self {
2162 match err {
2163 crate::operation::delete_action::DeleteActionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2164 crate::operation::delete_action::DeleteActionError::Unhandled(inner) => Error::Unhandled(inner),
2165 }
2166 }
2167}
2168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ai_benchmark_job::DeleteAIBenchmarkJobError, R>> for Error
2169where
2170 R: Send + Sync + std::fmt::Debug + 'static,
2171{
2172 fn from(
2173 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ai_benchmark_job::DeleteAIBenchmarkJobError, R>,
2174 ) -> Self {
2175 match err {
2176 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2177 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2178 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2179 source: err.into(),
2180 }),
2181 }
2182 }
2183}
2184impl From<crate::operation::delete_ai_benchmark_job::DeleteAIBenchmarkJobError> for Error {
2185 fn from(err: crate::operation::delete_ai_benchmark_job::DeleteAIBenchmarkJobError) -> Self {
2186 match err {
2187 crate::operation::delete_ai_benchmark_job::DeleteAIBenchmarkJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2188 crate::operation::delete_ai_benchmark_job::DeleteAIBenchmarkJobError::Unhandled(inner) => Error::Unhandled(inner),
2189 }
2190 }
2191}
2192impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ai_recommendation_job::DeleteAIRecommendationJobError, R>>
2193 for Error
2194where
2195 R: Send + Sync + std::fmt::Debug + 'static,
2196{
2197 fn from(
2198 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ai_recommendation_job::DeleteAIRecommendationJobError, R>,
2199 ) -> Self {
2200 match err {
2201 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2202 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2203 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2204 source: err.into(),
2205 }),
2206 }
2207 }
2208}
2209impl From<crate::operation::delete_ai_recommendation_job::DeleteAIRecommendationJobError> for Error {
2210 fn from(err: crate::operation::delete_ai_recommendation_job::DeleteAIRecommendationJobError) -> Self {
2211 match err {
2212 crate::operation::delete_ai_recommendation_job::DeleteAIRecommendationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2213 crate::operation::delete_ai_recommendation_job::DeleteAIRecommendationJobError::Unhandled(inner) => Error::Unhandled(inner),
2214 }
2215 }
2216}
2217impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ai_workload_config::DeleteAIWorkloadConfigError, R>>
2218 for Error
2219where
2220 R: Send + Sync + std::fmt::Debug + 'static,
2221{
2222 fn from(
2223 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ai_workload_config::DeleteAIWorkloadConfigError, R>,
2224 ) -> Self {
2225 match err {
2226 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2227 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2228 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2229 source: err.into(),
2230 }),
2231 }
2232 }
2233}
2234impl From<crate::operation::delete_ai_workload_config::DeleteAIWorkloadConfigError> for Error {
2235 fn from(err: crate::operation::delete_ai_workload_config::DeleteAIWorkloadConfigError) -> Self {
2236 match err {
2237 crate::operation::delete_ai_workload_config::DeleteAIWorkloadConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2238 crate::operation::delete_ai_workload_config::DeleteAIWorkloadConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2239 crate::operation::delete_ai_workload_config::DeleteAIWorkloadConfigError::Unhandled(inner) => Error::Unhandled(inner),
2240 }
2241 }
2242}
2243impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_algorithm::DeleteAlgorithmError, 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_algorithm::DeleteAlgorithmError, 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_algorithm::DeleteAlgorithmError> for Error {
2258 fn from(err: crate::operation::delete_algorithm::DeleteAlgorithmError) -> Self {
2259 match err {
2260 crate::operation::delete_algorithm::DeleteAlgorithmError::ConflictException(inner) => Error::ConflictException(inner),
2261 crate::operation::delete_algorithm::DeleteAlgorithmError::Unhandled(inner) => Error::Unhandled(inner),
2262 }
2263 }
2264}
2265impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app::DeleteAppError, R>> for Error
2266where
2267 R: Send + Sync + std::fmt::Debug + 'static,
2268{
2269 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app::DeleteAppError, R>) -> Self {
2270 match err {
2271 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2272 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2273 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2274 source: err.into(),
2275 }),
2276 }
2277 }
2278}
2279impl From<crate::operation::delete_app::DeleteAppError> for Error {
2280 fn from(err: crate::operation::delete_app::DeleteAppError) -> Self {
2281 match err {
2282 crate::operation::delete_app::DeleteAppError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2283 crate::operation::delete_app::DeleteAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2284 crate::operation::delete_app::DeleteAppError::Unhandled(inner) => Error::Unhandled(inner),
2285 }
2286 }
2287}
2288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_image_config::DeleteAppImageConfigError, R>> for Error
2289where
2290 R: Send + Sync + std::fmt::Debug + 'static,
2291{
2292 fn from(
2293 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_image_config::DeleteAppImageConfigError, R>,
2294 ) -> Self {
2295 match err {
2296 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2297 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2298 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2299 source: err.into(),
2300 }),
2301 }
2302 }
2303}
2304impl From<crate::operation::delete_app_image_config::DeleteAppImageConfigError> for Error {
2305 fn from(err: crate::operation::delete_app_image_config::DeleteAppImageConfigError) -> Self {
2306 match err {
2307 crate::operation::delete_app_image_config::DeleteAppImageConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2308 crate::operation::delete_app_image_config::DeleteAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
2309 }
2310 }
2311}
2312impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_artifact::DeleteArtifactError, R>> for Error
2313where
2314 R: Send + Sync + std::fmt::Debug + 'static,
2315{
2316 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_artifact::DeleteArtifactError, R>) -> Self {
2317 match err {
2318 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2319 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2320 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2321 source: err.into(),
2322 }),
2323 }
2324 }
2325}
2326impl From<crate::operation::delete_artifact::DeleteArtifactError> for Error {
2327 fn from(err: crate::operation::delete_artifact::DeleteArtifactError) -> Self {
2328 match err {
2329 crate::operation::delete_artifact::DeleteArtifactError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2330 crate::operation::delete_artifact::DeleteArtifactError::Unhandled(inner) => Error::Unhandled(inner),
2331 }
2332 }
2333}
2334impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_association::DeleteAssociationError, R>> for Error
2335where
2336 R: Send + Sync + std::fmt::Debug + 'static,
2337{
2338 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_association::DeleteAssociationError, R>) -> Self {
2339 match err {
2340 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2341 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2342 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2343 source: err.into(),
2344 }),
2345 }
2346 }
2347}
2348impl From<crate::operation::delete_association::DeleteAssociationError> for Error {
2349 fn from(err: crate::operation::delete_association::DeleteAssociationError) -> Self {
2350 match err {
2351 crate::operation::delete_association::DeleteAssociationError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2352 crate::operation::delete_association::DeleteAssociationError::Unhandled(inner) => Error::Unhandled(inner),
2353 }
2354 }
2355}
2356impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster::DeleteClusterError, R>> for Error
2357where
2358 R: Send + Sync + std::fmt::Debug + 'static,
2359{
2360 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster::DeleteClusterError, R>) -> Self {
2361 match err {
2362 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2363 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2364 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2365 source: err.into(),
2366 }),
2367 }
2368 }
2369}
2370impl From<crate::operation::delete_cluster::DeleteClusterError> for Error {
2371 fn from(err: crate::operation::delete_cluster::DeleteClusterError) -> Self {
2372 match err {
2373 crate::operation::delete_cluster::DeleteClusterError::ConflictException(inner) => Error::ConflictException(inner),
2374 crate::operation::delete_cluster::DeleteClusterError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2375 crate::operation::delete_cluster::DeleteClusterError::Unhandled(inner) => Error::Unhandled(inner),
2376 }
2377 }
2378}
2379impl<R>
2380 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError, R>>
2381 for Error
2382where
2383 R: Send + Sync + std::fmt::Debug + 'static,
2384{
2385 fn from(
2386 err: ::aws_smithy_runtime_api::client::result::SdkError<
2387 crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError,
2388 R,
2389 >,
2390 ) -> Self {
2391 match err {
2392 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2393 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2394 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2395 source: err.into(),
2396 }),
2397 }
2398 }
2399}
2400impl From<crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError> for Error {
2401 fn from(err: crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError) -> Self {
2402 match err {
2403 crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError::ResourceNotFound(inner) => {
2404 Error::ResourceNotFound(inner)
2405 }
2406 crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
2407 }
2408 }
2409}
2410impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_code_repository::DeleteCodeRepositoryError, R>> for Error
2411where
2412 R: Send + Sync + std::fmt::Debug + 'static,
2413{
2414 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_code_repository::DeleteCodeRepositoryError, R>) -> Self {
2415 match err {
2416 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2417 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2418 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2419 source: err.into(),
2420 }),
2421 }
2422 }
2423}
2424impl From<crate::operation::delete_code_repository::DeleteCodeRepositoryError> for Error {
2425 fn from(err: crate::operation::delete_code_repository::DeleteCodeRepositoryError) -> Self {
2426 match err {
2427 crate::operation::delete_code_repository::DeleteCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
2428 }
2429 }
2430}
2431impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compilation_job::DeleteCompilationJobError, R>> for Error
2432where
2433 R: Send + Sync + std::fmt::Debug + 'static,
2434{
2435 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compilation_job::DeleteCompilationJobError, R>) -> Self {
2436 match err {
2437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2440 source: err.into(),
2441 }),
2442 }
2443 }
2444}
2445impl From<crate::operation::delete_compilation_job::DeleteCompilationJobError> for Error {
2446 fn from(err: crate::operation::delete_compilation_job::DeleteCompilationJobError) -> Self {
2447 match err {
2448 crate::operation::delete_compilation_job::DeleteCompilationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2449 crate::operation::delete_compilation_job::DeleteCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
2450 }
2451 }
2452}
2453impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compute_quota::DeleteComputeQuotaError, R>> for Error
2454where
2455 R: Send + Sync + std::fmt::Debug + 'static,
2456{
2457 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compute_quota::DeleteComputeQuotaError, R>) -> Self {
2458 match err {
2459 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2460 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2461 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2462 source: err.into(),
2463 }),
2464 }
2465 }
2466}
2467impl From<crate::operation::delete_compute_quota::DeleteComputeQuotaError> for Error {
2468 fn from(err: crate::operation::delete_compute_quota::DeleteComputeQuotaError) -> Self {
2469 match err {
2470 crate::operation::delete_compute_quota::DeleteComputeQuotaError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2471 crate::operation::delete_compute_quota::DeleteComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
2472 }
2473 }
2474}
2475impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_context::DeleteContextError, R>> for Error
2476where
2477 R: Send + Sync + std::fmt::Debug + 'static,
2478{
2479 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_context::DeleteContextError, R>) -> Self {
2480 match err {
2481 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2482 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2483 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2484 source: err.into(),
2485 }),
2486 }
2487 }
2488}
2489impl From<crate::operation::delete_context::DeleteContextError> for Error {
2490 fn from(err: crate::operation::delete_context::DeleteContextError) -> Self {
2491 match err {
2492 crate::operation::delete_context::DeleteContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2493 crate::operation::delete_context::DeleteContextError::Unhandled(inner) => Error::Unhandled(inner),
2494 }
2495 }
2496}
2497impl<R>
2498 From<
2499 ::aws_smithy_runtime_api::client::result::SdkError<
2500 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError,
2501 R,
2502 >,
2503 > for Error
2504where
2505 R: Send + Sync + std::fmt::Debug + 'static,
2506{
2507 fn from(
2508 err: ::aws_smithy_runtime_api::client::result::SdkError<
2509 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError,
2510 R,
2511 >,
2512 ) -> Self {
2513 match err {
2514 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2515 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2516 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2517 source: err.into(),
2518 }),
2519 }
2520 }
2521}
2522impl From<crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError> for Error {
2523 fn from(err: crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError) -> Self {
2524 match err {
2525 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError::ResourceNotFound(inner) => {
2526 Error::ResourceNotFound(inner)
2527 }
2528 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2529 }
2530 }
2531}
2532impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device_fleet::DeleteDeviceFleetError, R>> for Error
2533where
2534 R: Send + Sync + std::fmt::Debug + 'static,
2535{
2536 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device_fleet::DeleteDeviceFleetError, R>) -> Self {
2537 match err {
2538 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2539 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2540 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2541 source: err.into(),
2542 }),
2543 }
2544 }
2545}
2546impl From<crate::operation::delete_device_fleet::DeleteDeviceFleetError> for Error {
2547 fn from(err: crate::operation::delete_device_fleet::DeleteDeviceFleetError) -> Self {
2548 match err {
2549 crate::operation::delete_device_fleet::DeleteDeviceFleetError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2550 crate::operation::delete_device_fleet::DeleteDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
2551 }
2552 }
2553}
2554impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>> for Error
2555where
2556 R: Send + Sync + std::fmt::Debug + 'static,
2557{
2558 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>) -> Self {
2559 match err {
2560 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2561 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2562 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2563 source: err.into(),
2564 }),
2565 }
2566 }
2567}
2568impl From<crate::operation::delete_domain::DeleteDomainError> for Error {
2569 fn from(err: crate::operation::delete_domain::DeleteDomainError) -> Self {
2570 match err {
2571 crate::operation::delete_domain::DeleteDomainError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2572 crate::operation::delete_domain::DeleteDomainError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2573 crate::operation::delete_domain::DeleteDomainError::Unhandled(inner) => Error::Unhandled(inner),
2574 }
2575 }
2576}
2577impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError, R>>
2578 for Error
2579where
2580 R: Send + Sync + std::fmt::Debug + 'static,
2581{
2582 fn from(
2583 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError, R>,
2584 ) -> Self {
2585 match err {
2586 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2587 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2588 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2589 source: err.into(),
2590 }),
2591 }
2592 }
2593}
2594impl From<crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError> for Error {
2595 fn from(err: crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError) -> Self {
2596 match err {
2597 crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2598 crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError::Unhandled(inner) => Error::Unhandled(inner),
2599 }
2600 }
2601}
2602impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError, R>>
2603 for Error
2604where
2605 R: Send + Sync + std::fmt::Debug + 'static,
2606{
2607 fn from(
2608 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError, R>,
2609 ) -> Self {
2610 match err {
2611 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2612 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2613 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2614 source: err.into(),
2615 }),
2616 }
2617 }
2618}
2619impl From<crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError> for Error {
2620 fn from(err: crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError) -> Self {
2621 match err {
2622 crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2623 crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
2624 }
2625 }
2626}
2627impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint::DeleteEndpointError, R>> for Error
2628where
2629 R: Send + Sync + std::fmt::Debug + 'static,
2630{
2631 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint::DeleteEndpointError, R>) -> Self {
2632 match err {
2633 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2634 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2635 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2636 source: err.into(),
2637 }),
2638 }
2639 }
2640}
2641impl From<crate::operation::delete_endpoint::DeleteEndpointError> for Error {
2642 fn from(err: crate::operation::delete_endpoint::DeleteEndpointError) -> Self {
2643 match err {
2644 crate::operation::delete_endpoint::DeleteEndpointError::Unhandled(inner) => Error::Unhandled(inner),
2645 }
2646 }
2647}
2648impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint_config::DeleteEndpointConfigError, R>> for Error
2649where
2650 R: Send + Sync + std::fmt::Debug + 'static,
2651{
2652 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint_config::DeleteEndpointConfigError, R>) -> Self {
2653 match err {
2654 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2655 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2656 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2657 source: err.into(),
2658 }),
2659 }
2660 }
2661}
2662impl From<crate::operation::delete_endpoint_config::DeleteEndpointConfigError> for Error {
2663 fn from(err: crate::operation::delete_endpoint_config::DeleteEndpointConfigError) -> Self {
2664 match err {
2665 crate::operation::delete_endpoint_config::DeleteEndpointConfigError::Unhandled(inner) => Error::Unhandled(inner),
2666 }
2667 }
2668}
2669impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_experiment::DeleteExperimentError, R>> for Error
2670where
2671 R: Send + Sync + std::fmt::Debug + 'static,
2672{
2673 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_experiment::DeleteExperimentError, R>) -> Self {
2674 match err {
2675 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2676 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2677 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2678 source: err.into(),
2679 }),
2680 }
2681 }
2682}
2683impl From<crate::operation::delete_experiment::DeleteExperimentError> for Error {
2684 fn from(err: crate::operation::delete_experiment::DeleteExperimentError) -> Self {
2685 match err {
2686 crate::operation::delete_experiment::DeleteExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2687 crate::operation::delete_experiment::DeleteExperimentError::Unhandled(inner) => Error::Unhandled(inner),
2688 }
2689 }
2690}
2691impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feature_group::DeleteFeatureGroupError, R>> for Error
2692where
2693 R: Send + Sync + std::fmt::Debug + 'static,
2694{
2695 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feature_group::DeleteFeatureGroupError, R>) -> Self {
2696 match err {
2697 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2698 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2699 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2700 source: err.into(),
2701 }),
2702 }
2703 }
2704}
2705impl From<crate::operation::delete_feature_group::DeleteFeatureGroupError> for Error {
2706 fn from(err: crate::operation::delete_feature_group::DeleteFeatureGroupError) -> Self {
2707 match err {
2708 crate::operation::delete_feature_group::DeleteFeatureGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2709 crate::operation::delete_feature_group::DeleteFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
2710 }
2711 }
2712}
2713impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_definition::DeleteFlowDefinitionError, R>> for Error
2714where
2715 R: Send + Sync + std::fmt::Debug + 'static,
2716{
2717 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_definition::DeleteFlowDefinitionError, R>) -> Self {
2718 match err {
2719 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2720 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2721 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2722 source: err.into(),
2723 }),
2724 }
2725 }
2726}
2727impl From<crate::operation::delete_flow_definition::DeleteFlowDefinitionError> for Error {
2728 fn from(err: crate::operation::delete_flow_definition::DeleteFlowDefinitionError) -> Self {
2729 match err {
2730 crate::operation::delete_flow_definition::DeleteFlowDefinitionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2731 crate::operation::delete_flow_definition::DeleteFlowDefinitionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2732 crate::operation::delete_flow_definition::DeleteFlowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2733 }
2734 }
2735}
2736impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub::DeleteHubError, R>> for Error
2737where
2738 R: Send + Sync + std::fmt::Debug + 'static,
2739{
2740 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub::DeleteHubError, R>) -> Self {
2741 match err {
2742 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2743 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2744 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2745 source: err.into(),
2746 }),
2747 }
2748 }
2749}
2750impl From<crate::operation::delete_hub::DeleteHubError> for Error {
2751 fn from(err: crate::operation::delete_hub::DeleteHubError) -> Self {
2752 match err {
2753 crate::operation::delete_hub::DeleteHubError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2754 crate::operation::delete_hub::DeleteHubError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2755 crate::operation::delete_hub::DeleteHubError::Unhandled(inner) => Error::Unhandled(inner),
2756 }
2757 }
2758}
2759impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content::DeleteHubContentError, R>> for Error
2760where
2761 R: Send + Sync + std::fmt::Debug + 'static,
2762{
2763 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content::DeleteHubContentError, R>) -> Self {
2764 match err {
2765 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2766 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2767 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2768 source: err.into(),
2769 }),
2770 }
2771 }
2772}
2773impl From<crate::operation::delete_hub_content::DeleteHubContentError> for Error {
2774 fn from(err: crate::operation::delete_hub_content::DeleteHubContentError) -> Self {
2775 match err {
2776 crate::operation::delete_hub_content::DeleteHubContentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2777 crate::operation::delete_hub_content::DeleteHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2778 crate::operation::delete_hub_content::DeleteHubContentError::Unhandled(inner) => Error::Unhandled(inner),
2779 }
2780 }
2781}
2782impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError, R>>
2783 for Error
2784where
2785 R: Send + Sync + std::fmt::Debug + 'static,
2786{
2787 fn from(
2788 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError, R>,
2789 ) -> Self {
2790 match err {
2791 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2792 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2793 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2794 source: err.into(),
2795 }),
2796 }
2797 }
2798}
2799impl From<crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError> for Error {
2800 fn from(err: crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError) -> Self {
2801 match err {
2802 crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2803 crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError::Unhandled(inner) => Error::Unhandled(inner),
2804 }
2805 }
2806}
2807impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_human_task_ui::DeleteHumanTaskUiError, R>> for Error
2808where
2809 R: Send + Sync + std::fmt::Debug + 'static,
2810{
2811 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_human_task_ui::DeleteHumanTaskUiError, R>) -> Self {
2812 match err {
2813 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2814 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2815 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2816 source: err.into(),
2817 }),
2818 }
2819 }
2820}
2821impl From<crate::operation::delete_human_task_ui::DeleteHumanTaskUiError> for Error {
2822 fn from(err: crate::operation::delete_human_task_ui::DeleteHumanTaskUiError) -> Self {
2823 match err {
2824 crate::operation::delete_human_task_ui::DeleteHumanTaskUiError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2825 crate::operation::delete_human_task_ui::DeleteHumanTaskUiError::Unhandled(inner) => Error::Unhandled(inner),
2826 }
2827 }
2828}
2829impl<R>
2830 From<
2831 ::aws_smithy_runtime_api::client::result::SdkError<
2832 crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError,
2833 R,
2834 >,
2835 > for Error
2836where
2837 R: Send + Sync + std::fmt::Debug + 'static,
2838{
2839 fn from(
2840 err: ::aws_smithy_runtime_api::client::result::SdkError<
2841 crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError,
2842 R,
2843 >,
2844 ) -> Self {
2845 match err {
2846 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2847 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2848 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2849 source: err.into(),
2850 }),
2851 }
2852 }
2853}
2854impl From<crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError> for Error {
2855 fn from(err: crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError) -> Self {
2856 match err {
2857 crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
2858 }
2859 }
2860}
2861impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image::DeleteImageError, R>> for Error
2862where
2863 R: Send + Sync + std::fmt::Debug + 'static,
2864{
2865 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image::DeleteImageError, R>) -> Self {
2866 match err {
2867 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2868 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2869 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2870 source: err.into(),
2871 }),
2872 }
2873 }
2874}
2875impl From<crate::operation::delete_image::DeleteImageError> for Error {
2876 fn from(err: crate::operation::delete_image::DeleteImageError) -> Self {
2877 match err {
2878 crate::operation::delete_image::DeleteImageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2879 crate::operation::delete_image::DeleteImageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2880 crate::operation::delete_image::DeleteImageError::Unhandled(inner) => Error::Unhandled(inner),
2881 }
2882 }
2883}
2884impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_version::DeleteImageVersionError, R>> for Error
2885where
2886 R: Send + Sync + std::fmt::Debug + 'static,
2887{
2888 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_version::DeleteImageVersionError, R>) -> Self {
2889 match err {
2890 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2891 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2892 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2893 source: err.into(),
2894 }),
2895 }
2896 }
2897}
2898impl From<crate::operation::delete_image_version::DeleteImageVersionError> for Error {
2899 fn from(err: crate::operation::delete_image_version::DeleteImageVersionError) -> Self {
2900 match err {
2901 crate::operation::delete_image_version::DeleteImageVersionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2902 crate::operation::delete_image_version::DeleteImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2903 crate::operation::delete_image_version::DeleteImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
2904 }
2905 }
2906}
2907impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_component::DeleteInferenceComponentError, R>>
2908 for Error
2909where
2910 R: Send + Sync + std::fmt::Debug + 'static,
2911{
2912 fn from(
2913 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_component::DeleteInferenceComponentError, R>,
2914 ) -> Self {
2915 match err {
2916 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2917 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2918 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2919 source: err.into(),
2920 }),
2921 }
2922 }
2923}
2924impl From<crate::operation::delete_inference_component::DeleteInferenceComponentError> for Error {
2925 fn from(err: crate::operation::delete_inference_component::DeleteInferenceComponentError) -> Self {
2926 match err {
2927 crate::operation::delete_inference_component::DeleteInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
2928 }
2929 }
2930}
2931impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_experiment::DeleteInferenceExperimentError, R>>
2932 for Error
2933where
2934 R: Send + Sync + std::fmt::Debug + 'static,
2935{
2936 fn from(
2937 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_experiment::DeleteInferenceExperimentError, R>,
2938 ) -> Self {
2939 match err {
2940 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2941 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2942 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2943 source: err.into(),
2944 }),
2945 }
2946 }
2947}
2948impl From<crate::operation::delete_inference_experiment::DeleteInferenceExperimentError> for Error {
2949 fn from(err: crate::operation::delete_inference_experiment::DeleteInferenceExperimentError) -> Self {
2950 match err {
2951 crate::operation::delete_inference_experiment::DeleteInferenceExperimentError::ConflictException(inner) => {
2952 Error::ConflictException(inner)
2953 }
2954 crate::operation::delete_inference_experiment::DeleteInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2955 crate::operation::delete_inference_experiment::DeleteInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
2956 }
2957 }
2958}
2959impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mlflow_app::DeleteMlflowAppError, R>> for Error
2960where
2961 R: Send + Sync + std::fmt::Debug + 'static,
2962{
2963 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mlflow_app::DeleteMlflowAppError, R>) -> Self {
2964 match err {
2965 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2966 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2967 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2968 source: err.into(),
2969 }),
2970 }
2971 }
2972}
2973impl From<crate::operation::delete_mlflow_app::DeleteMlflowAppError> for Error {
2974 fn from(err: crate::operation::delete_mlflow_app::DeleteMlflowAppError) -> Self {
2975 match err {
2976 crate::operation::delete_mlflow_app::DeleteMlflowAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2977 crate::operation::delete_mlflow_app::DeleteMlflowAppError::Unhandled(inner) => Error::Unhandled(inner),
2978 }
2979 }
2980}
2981impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError, R>>
2982 for Error
2983where
2984 R: Send + Sync + std::fmt::Debug + 'static,
2985{
2986 fn from(
2987 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError, R>,
2988 ) -> Self {
2989 match err {
2990 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2991 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2992 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2993 source: err.into(),
2994 }),
2995 }
2996 }
2997}
2998impl From<crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError> for Error {
2999 fn from(err: crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError) -> Self {
3000 match err {
3001 crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError::ResourceNotFound(inner) => {
3002 Error::ResourceNotFound(inner)
3003 }
3004 crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
3005 }
3006 }
3007}
3008impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model::DeleteModelError, R>> for Error
3009where
3010 R: Send + Sync + std::fmt::Debug + 'static,
3011{
3012 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model::DeleteModelError, R>) -> Self {
3013 match err {
3014 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3015 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3016 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3017 source: err.into(),
3018 }),
3019 }
3020 }
3021}
3022impl From<crate::operation::delete_model::DeleteModelError> for Error {
3023 fn from(err: crate::operation::delete_model::DeleteModelError) -> Self {
3024 match err {
3025 crate::operation::delete_model::DeleteModelError::Unhandled(inner) => Error::Unhandled(inner),
3026 }
3027 }
3028}
3029impl<R>
3030 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError, R>>
3031 for Error
3032where
3033 R: Send + Sync + std::fmt::Debug + 'static,
3034{
3035 fn from(
3036 err: ::aws_smithy_runtime_api::client::result::SdkError<
3037 crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError,
3038 R,
3039 >,
3040 ) -> Self {
3041 match err {
3042 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3043 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3044 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3045 source: err.into(),
3046 }),
3047 }
3048 }
3049}
3050impl From<crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError> for Error {
3051 fn from(err: crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError) -> Self {
3052 match err {
3053 crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError::ResourceNotFound(inner) => {
3054 Error::ResourceNotFound(inner)
3055 }
3056 crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
3057 }
3058 }
3059}
3060impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_card::DeleteModelCardError, R>> for Error
3061where
3062 R: Send + Sync + std::fmt::Debug + 'static,
3063{
3064 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_card::DeleteModelCardError, R>) -> Self {
3065 match err {
3066 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3067 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3068 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3069 source: err.into(),
3070 }),
3071 }
3072 }
3073}
3074impl From<crate::operation::delete_model_card::DeleteModelCardError> for Error {
3075 fn from(err: crate::operation::delete_model_card::DeleteModelCardError) -> Self {
3076 match err {
3077 crate::operation::delete_model_card::DeleteModelCardError::ConflictException(inner) => Error::ConflictException(inner),
3078 crate::operation::delete_model_card::DeleteModelCardError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3079 crate::operation::delete_model_card::DeleteModelCardError::Unhandled(inner) => Error::Unhandled(inner),
3080 }
3081 }
3082}
3083impl<R>
3084 From<
3085 ::aws_smithy_runtime_api::client::result::SdkError<
3086 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError,
3087 R,
3088 >,
3089 > for Error
3090where
3091 R: Send + Sync + std::fmt::Debug + 'static,
3092{
3093 fn from(
3094 err: ::aws_smithy_runtime_api::client::result::SdkError<
3095 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError,
3096 R,
3097 >,
3098 ) -> Self {
3099 match err {
3100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3103 source: err.into(),
3104 }),
3105 }
3106 }
3107}
3108impl From<crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError> for Error {
3109 fn from(err: crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError) -> Self {
3110 match err {
3111 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError::ResourceNotFound(inner) => {
3112 Error::ResourceNotFound(inner)
3113 }
3114 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError::Unhandled(inner) => {
3115 Error::Unhandled(inner)
3116 }
3117 }
3118 }
3119}
3120impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package::DeleteModelPackageError, R>> for Error
3121where
3122 R: Send + Sync + std::fmt::Debug + 'static,
3123{
3124 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package::DeleteModelPackageError, R>) -> Self {
3125 match err {
3126 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3127 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3128 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3129 source: err.into(),
3130 }),
3131 }
3132 }
3133}
3134impl From<crate::operation::delete_model_package::DeleteModelPackageError> for Error {
3135 fn from(err: crate::operation::delete_model_package::DeleteModelPackageError) -> Self {
3136 match err {
3137 crate::operation::delete_model_package::DeleteModelPackageError::ConflictException(inner) => Error::ConflictException(inner),
3138 crate::operation::delete_model_package::DeleteModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
3139 }
3140 }
3141}
3142impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package_group::DeleteModelPackageGroupError, R>>
3143 for Error
3144where
3145 R: Send + Sync + std::fmt::Debug + 'static,
3146{
3147 fn from(
3148 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package_group::DeleteModelPackageGroupError, R>,
3149 ) -> Self {
3150 match err {
3151 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3152 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3153 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3154 source: err.into(),
3155 }),
3156 }
3157 }
3158}
3159impl From<crate::operation::delete_model_package_group::DeleteModelPackageGroupError> for Error {
3160 fn from(err: crate::operation::delete_model_package_group::DeleteModelPackageGroupError) -> Self {
3161 match err {
3162 crate::operation::delete_model_package_group::DeleteModelPackageGroupError::ConflictException(inner) => Error::ConflictException(inner),
3163 crate::operation::delete_model_package_group::DeleteModelPackageGroupError::Unhandled(inner) => Error::Unhandled(inner),
3164 }
3165 }
3166}
3167impl<R>
3168 From<
3169 ::aws_smithy_runtime_api::client::result::SdkError<
3170 crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError,
3171 R,
3172 >,
3173 > for Error
3174where
3175 R: Send + Sync + std::fmt::Debug + 'static,
3176{
3177 fn from(
3178 err: ::aws_smithy_runtime_api::client::result::SdkError<
3179 crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError,
3180 R,
3181 >,
3182 ) -> Self {
3183 match err {
3184 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3185 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3186 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3187 source: err.into(),
3188 }),
3189 }
3190 }
3191}
3192impl From<crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError> for Error {
3193 fn from(err: crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError) -> Self {
3194 match err {
3195 crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
3196 }
3197 }
3198}
3199impl<R>
3200 From<
3201 ::aws_smithy_runtime_api::client::result::SdkError<
3202 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError,
3203 R,
3204 >,
3205 > for Error
3206where
3207 R: Send + Sync + std::fmt::Debug + 'static,
3208{
3209 fn from(
3210 err: ::aws_smithy_runtime_api::client::result::SdkError<
3211 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError,
3212 R,
3213 >,
3214 ) -> Self {
3215 match err {
3216 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3217 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3218 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3219 source: err.into(),
3220 }),
3221 }
3222 }
3223}
3224impl From<crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError> for Error {
3225 fn from(err: crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError) -> Self {
3226 match err {
3227 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError::ResourceNotFound(inner) => {
3228 Error::ResourceNotFound(inner)
3229 }
3230 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
3231 }
3232 }
3233}
3234impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError, R>>
3235 for Error
3236where
3237 R: Send + Sync + std::fmt::Debug + 'static,
3238{
3239 fn from(
3240 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError, R>,
3241 ) -> Self {
3242 match err {
3243 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3244 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3245 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3246 source: err.into(),
3247 }),
3248 }
3249 }
3250}
3251impl From<crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError> for Error {
3252 fn from(err: crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError) -> Self {
3253 match err {
3254 crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3255 crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
3256 }
3257 }
3258}
3259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notebook_instance::DeleteNotebookInstanceError, R>> for Error
3260where
3261 R: Send + Sync + std::fmt::Debug + 'static,
3262{
3263 fn from(
3264 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notebook_instance::DeleteNotebookInstanceError, R>,
3265 ) -> 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::delete_notebook_instance::DeleteNotebookInstanceError> for Error {
3276 fn from(err: crate::operation::delete_notebook_instance::DeleteNotebookInstanceError) -> Self {
3277 match err {
3278 crate::operation::delete_notebook_instance::DeleteNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
3279 }
3280 }
3281}
3282impl<R>
3283 From<
3284 ::aws_smithy_runtime_api::client::result::SdkError<
3285 crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError,
3286 R,
3287 >,
3288 > for Error
3289where
3290 R: Send + Sync + std::fmt::Debug + 'static,
3291{
3292 fn from(
3293 err: ::aws_smithy_runtime_api::client::result::SdkError<
3294 crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError,
3295 R,
3296 >,
3297 ) -> Self {
3298 match err {
3299 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3300 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3301 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3302 source: err.into(),
3303 }),
3304 }
3305 }
3306}
3307impl From<crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError> for Error {
3308 fn from(err: crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError) -> Self {
3309 match err {
3310 crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
3311 Error::Unhandled(inner)
3312 }
3313 }
3314 }
3315}
3316impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_optimization_job::DeleteOptimizationJobError, R>> for Error
3317where
3318 R: Send + Sync + std::fmt::Debug + 'static,
3319{
3320 fn from(
3321 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_optimization_job::DeleteOptimizationJobError, R>,
3322 ) -> Self {
3323 match err {
3324 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3325 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3326 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3327 source: err.into(),
3328 }),
3329 }
3330 }
3331}
3332impl From<crate::operation::delete_optimization_job::DeleteOptimizationJobError> for Error {
3333 fn from(err: crate::operation::delete_optimization_job::DeleteOptimizationJobError) -> Self {
3334 match err {
3335 crate::operation::delete_optimization_job::DeleteOptimizationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3336 crate::operation::delete_optimization_job::DeleteOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
3337 }
3338 }
3339}
3340impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_partner_app::DeletePartnerAppError, R>> for Error
3341where
3342 R: Send + Sync + std::fmt::Debug + 'static,
3343{
3344 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_partner_app::DeletePartnerAppError, R>) -> Self {
3345 match err {
3346 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3347 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3348 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3349 source: err.into(),
3350 }),
3351 }
3352 }
3353}
3354impl From<crate::operation::delete_partner_app::DeletePartnerAppError> for Error {
3355 fn from(err: crate::operation::delete_partner_app::DeletePartnerAppError) -> Self {
3356 match err {
3357 crate::operation::delete_partner_app::DeletePartnerAppError::ConflictException(inner) => Error::ConflictException(inner),
3358 crate::operation::delete_partner_app::DeletePartnerAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3359 crate::operation::delete_partner_app::DeletePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
3360 }
3361 }
3362}
3363impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pipeline::DeletePipelineError, R>> for Error
3364where
3365 R: Send + Sync + std::fmt::Debug + 'static,
3366{
3367 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pipeline::DeletePipelineError, R>) -> Self {
3368 match err {
3369 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3370 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3371 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3372 source: err.into(),
3373 }),
3374 }
3375 }
3376}
3377impl From<crate::operation::delete_pipeline::DeletePipelineError> for Error {
3378 fn from(err: crate::operation::delete_pipeline::DeletePipelineError) -> Self {
3379 match err {
3380 crate::operation::delete_pipeline::DeletePipelineError::ConflictException(inner) => Error::ConflictException(inner),
3381 crate::operation::delete_pipeline::DeletePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3382 crate::operation::delete_pipeline::DeletePipelineError::Unhandled(inner) => Error::Unhandled(inner),
3383 }
3384 }
3385}
3386impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_processing_job::DeleteProcessingJobError, R>> for Error
3387where
3388 R: Send + Sync + std::fmt::Debug + 'static,
3389{
3390 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_processing_job::DeleteProcessingJobError, R>) -> Self {
3391 match err {
3392 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3393 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3394 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3395 source: err.into(),
3396 }),
3397 }
3398 }
3399}
3400impl From<crate::operation::delete_processing_job::DeleteProcessingJobError> for Error {
3401 fn from(err: crate::operation::delete_processing_job::DeleteProcessingJobError) -> Self {
3402 match err {
3403 crate::operation::delete_processing_job::DeleteProcessingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3404 crate::operation::delete_processing_job::DeleteProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3405 crate::operation::delete_processing_job::DeleteProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
3406 }
3407 }
3408}
3409impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>> for Error
3410where
3411 R: Send + Sync + std::fmt::Debug + 'static,
3412{
3413 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>) -> Self {
3414 match err {
3415 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3416 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3417 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3418 source: err.into(),
3419 }),
3420 }
3421 }
3422}
3423impl From<crate::operation::delete_project::DeleteProjectError> for Error {
3424 fn from(err: crate::operation::delete_project::DeleteProjectError) -> Self {
3425 match err {
3426 crate::operation::delete_project::DeleteProjectError::ConflictException(inner) => Error::ConflictException(inner),
3427 crate::operation::delete_project::DeleteProjectError::Unhandled(inner) => Error::Unhandled(inner),
3428 }
3429 }
3430}
3431impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_space::DeleteSpaceError, R>> for Error
3432where
3433 R: Send + Sync + std::fmt::Debug + 'static,
3434{
3435 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_space::DeleteSpaceError, R>) -> Self {
3436 match err {
3437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3440 source: err.into(),
3441 }),
3442 }
3443 }
3444}
3445impl From<crate::operation::delete_space::DeleteSpaceError> for Error {
3446 fn from(err: crate::operation::delete_space::DeleteSpaceError) -> Self {
3447 match err {
3448 crate::operation::delete_space::DeleteSpaceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3449 crate::operation::delete_space::DeleteSpaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3450 crate::operation::delete_space::DeleteSpaceError::Unhandled(inner) => Error::Unhandled(inner),
3451 }
3452 }
3453}
3454impl<R>
3455 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError, R>>
3456 for Error
3457where
3458 R: Send + Sync + std::fmt::Debug + 'static,
3459{
3460 fn from(
3461 err: ::aws_smithy_runtime_api::client::result::SdkError<
3462 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError,
3463 R,
3464 >,
3465 ) -> Self {
3466 match err {
3467 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3468 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3469 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3470 source: err.into(),
3471 }),
3472 }
3473 }
3474}
3475impl From<crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError> for Error {
3476 fn from(err: crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError) -> Self {
3477 match err {
3478 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3479 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError::ResourceNotFound(inner) => {
3480 Error::ResourceNotFound(inner)
3481 }
3482 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError::Unhandled(inner) => Error::Unhandled(inner),
3483 }
3484 }
3485}
3486impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>> for Error
3487where
3488 R: Send + Sync + std::fmt::Debug + 'static,
3489{
3490 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>) -> Self {
3491 match err {
3492 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3493 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3494 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3495 source: err.into(),
3496 }),
3497 }
3498 }
3499}
3500impl From<crate::operation::delete_tags::DeleteTagsError> for Error {
3501 fn from(err: crate::operation::delete_tags::DeleteTagsError) -> Self {
3502 match err {
3503 crate::operation::delete_tags::DeleteTagsError::Unhandled(inner) => Error::Unhandled(inner),
3504 }
3505 }
3506}
3507impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_training_job::DeleteTrainingJobError, R>> for Error
3508where
3509 R: Send + Sync + std::fmt::Debug + 'static,
3510{
3511 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_training_job::DeleteTrainingJobError, R>) -> Self {
3512 match err {
3513 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3514 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3515 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3516 source: err.into(),
3517 }),
3518 }
3519 }
3520}
3521impl From<crate::operation::delete_training_job::DeleteTrainingJobError> for Error {
3522 fn from(err: crate::operation::delete_training_job::DeleteTrainingJobError) -> Self {
3523 match err {
3524 crate::operation::delete_training_job::DeleteTrainingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3525 crate::operation::delete_training_job::DeleteTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3526 crate::operation::delete_training_job::DeleteTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
3527 }
3528 }
3529}
3530impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial::DeleteTrialError, R>> for Error
3531where
3532 R: Send + Sync + std::fmt::Debug + 'static,
3533{
3534 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial::DeleteTrialError, R>) -> Self {
3535 match err {
3536 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3537 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3538 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3539 source: err.into(),
3540 }),
3541 }
3542 }
3543}
3544impl From<crate::operation::delete_trial::DeleteTrialError> for Error {
3545 fn from(err: crate::operation::delete_trial::DeleteTrialError) -> Self {
3546 match err {
3547 crate::operation::delete_trial::DeleteTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3548 crate::operation::delete_trial::DeleteTrialError::Unhandled(inner) => Error::Unhandled(inner),
3549 }
3550 }
3551}
3552impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial_component::DeleteTrialComponentError, R>> for Error
3553where
3554 R: Send + Sync + std::fmt::Debug + 'static,
3555{
3556 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial_component::DeleteTrialComponentError, R>) -> Self {
3557 match err {
3558 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3559 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3560 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3561 source: err.into(),
3562 }),
3563 }
3564 }
3565}
3566impl From<crate::operation::delete_trial_component::DeleteTrialComponentError> for Error {
3567 fn from(err: crate::operation::delete_trial_component::DeleteTrialComponentError) -> Self {
3568 match err {
3569 crate::operation::delete_trial_component::DeleteTrialComponentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3570 crate::operation::delete_trial_component::DeleteTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
3571 }
3572 }
3573}
3574impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_profile::DeleteUserProfileError, R>> for Error
3575where
3576 R: Send + Sync + std::fmt::Debug + 'static,
3577{
3578 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_profile::DeleteUserProfileError, R>) -> Self {
3579 match err {
3580 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3581 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3582 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3583 source: err.into(),
3584 }),
3585 }
3586 }
3587}
3588impl From<crate::operation::delete_user_profile::DeleteUserProfileError> for Error {
3589 fn from(err: crate::operation::delete_user_profile::DeleteUserProfileError) -> Self {
3590 match err {
3591 crate::operation::delete_user_profile::DeleteUserProfileError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3592 crate::operation::delete_user_profile::DeleteUserProfileError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3593 crate::operation::delete_user_profile::DeleteUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
3594 }
3595 }
3596}
3597impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workforce::DeleteWorkforceError, R>> for Error
3598where
3599 R: Send + Sync + std::fmt::Debug + 'static,
3600{
3601 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workforce::DeleteWorkforceError, R>) -> Self {
3602 match err {
3603 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3604 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3605 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3606 source: err.into(),
3607 }),
3608 }
3609 }
3610}
3611impl From<crate::operation::delete_workforce::DeleteWorkforceError> for Error {
3612 fn from(err: crate::operation::delete_workforce::DeleteWorkforceError) -> Self {
3613 match err {
3614 crate::operation::delete_workforce::DeleteWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
3615 }
3616 }
3617}
3618impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workteam::DeleteWorkteamError, R>> for Error
3619where
3620 R: Send + Sync + std::fmt::Debug + 'static,
3621{
3622 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workteam::DeleteWorkteamError, R>) -> Self {
3623 match err {
3624 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3625 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3626 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3627 source: err.into(),
3628 }),
3629 }
3630 }
3631}
3632impl From<crate::operation::delete_workteam::DeleteWorkteamError> for Error {
3633 fn from(err: crate::operation::delete_workteam::DeleteWorkteamError) -> Self {
3634 match err {
3635 crate::operation::delete_workteam::DeleteWorkteamError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
3636 crate::operation::delete_workteam::DeleteWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
3637 }
3638 }
3639}
3640impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_devices::DeregisterDevicesError, R>> for Error
3641where
3642 R: Send + Sync + std::fmt::Debug + 'static,
3643{
3644 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_devices::DeregisterDevicesError, R>) -> Self {
3645 match err {
3646 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3647 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3648 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3649 source: err.into(),
3650 }),
3651 }
3652 }
3653}
3654impl From<crate::operation::deregister_devices::DeregisterDevicesError> for Error {
3655 fn from(err: crate::operation::deregister_devices::DeregisterDevicesError) -> Self {
3656 match err {
3657 crate::operation::deregister_devices::DeregisterDevicesError::Unhandled(inner) => Error::Unhandled(inner),
3658 }
3659 }
3660}
3661impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_action::DescribeActionError, R>> for Error
3662where
3663 R: Send + Sync + std::fmt::Debug + 'static,
3664{
3665 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_action::DescribeActionError, R>) -> Self {
3666 match err {
3667 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3668 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3669 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3670 source: err.into(),
3671 }),
3672 }
3673 }
3674}
3675impl From<crate::operation::describe_action::DescribeActionError> for Error {
3676 fn from(err: crate::operation::describe_action::DescribeActionError) -> Self {
3677 match err {
3678 crate::operation::describe_action::DescribeActionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3679 crate::operation::describe_action::DescribeActionError::Unhandled(inner) => Error::Unhandled(inner),
3680 }
3681 }
3682}
3683impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ai_benchmark_job::DescribeAIBenchmarkJobError, R>>
3684 for Error
3685where
3686 R: Send + Sync + std::fmt::Debug + 'static,
3687{
3688 fn from(
3689 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ai_benchmark_job::DescribeAIBenchmarkJobError, R>,
3690 ) -> Self {
3691 match err {
3692 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3693 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3694 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3695 source: err.into(),
3696 }),
3697 }
3698 }
3699}
3700impl From<crate::operation::describe_ai_benchmark_job::DescribeAIBenchmarkJobError> for Error {
3701 fn from(err: crate::operation::describe_ai_benchmark_job::DescribeAIBenchmarkJobError) -> Self {
3702 match err {
3703 crate::operation::describe_ai_benchmark_job::DescribeAIBenchmarkJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3704 crate::operation::describe_ai_benchmark_job::DescribeAIBenchmarkJobError::Unhandled(inner) => Error::Unhandled(inner),
3705 }
3706 }
3707}
3708impl<R>
3709 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ai_recommendation_job::DescribeAIRecommendationJobError, R>>
3710 for Error
3711where
3712 R: Send + Sync + std::fmt::Debug + 'static,
3713{
3714 fn from(
3715 err: ::aws_smithy_runtime_api::client::result::SdkError<
3716 crate::operation::describe_ai_recommendation_job::DescribeAIRecommendationJobError,
3717 R,
3718 >,
3719 ) -> Self {
3720 match err {
3721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3724 source: err.into(),
3725 }),
3726 }
3727 }
3728}
3729impl From<crate::operation::describe_ai_recommendation_job::DescribeAIRecommendationJobError> for Error {
3730 fn from(err: crate::operation::describe_ai_recommendation_job::DescribeAIRecommendationJobError) -> Self {
3731 match err {
3732 crate::operation::describe_ai_recommendation_job::DescribeAIRecommendationJobError::ResourceNotFound(inner) => {
3733 Error::ResourceNotFound(inner)
3734 }
3735 crate::operation::describe_ai_recommendation_job::DescribeAIRecommendationJobError::Unhandled(inner) => Error::Unhandled(inner),
3736 }
3737 }
3738}
3739impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ai_workload_config::DescribeAIWorkloadConfigError, R>>
3740 for Error
3741where
3742 R: Send + Sync + std::fmt::Debug + 'static,
3743{
3744 fn from(
3745 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ai_workload_config::DescribeAIWorkloadConfigError, R>,
3746 ) -> Self {
3747 match err {
3748 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3749 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3750 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3751 source: err.into(),
3752 }),
3753 }
3754 }
3755}
3756impl From<crate::operation::describe_ai_workload_config::DescribeAIWorkloadConfigError> for Error {
3757 fn from(err: crate::operation::describe_ai_workload_config::DescribeAIWorkloadConfigError) -> Self {
3758 match err {
3759 crate::operation::describe_ai_workload_config::DescribeAIWorkloadConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3760 crate::operation::describe_ai_workload_config::DescribeAIWorkloadConfigError::Unhandled(inner) => Error::Unhandled(inner),
3761 }
3762 }
3763}
3764impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_algorithm::DescribeAlgorithmError, R>> for Error
3765where
3766 R: Send + Sync + std::fmt::Debug + 'static,
3767{
3768 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_algorithm::DescribeAlgorithmError, R>) -> Self {
3769 match err {
3770 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3771 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3772 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3773 source: err.into(),
3774 }),
3775 }
3776 }
3777}
3778impl From<crate::operation::describe_algorithm::DescribeAlgorithmError> for Error {
3779 fn from(err: crate::operation::describe_algorithm::DescribeAlgorithmError) -> Self {
3780 match err {
3781 crate::operation::describe_algorithm::DescribeAlgorithmError::Unhandled(inner) => Error::Unhandled(inner),
3782 }
3783 }
3784}
3785impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app::DescribeAppError, R>> for Error
3786where
3787 R: Send + Sync + std::fmt::Debug + 'static,
3788{
3789 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app::DescribeAppError, R>) -> Self {
3790 match err {
3791 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3792 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3793 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3794 source: err.into(),
3795 }),
3796 }
3797 }
3798}
3799impl From<crate::operation::describe_app::DescribeAppError> for Error {
3800 fn from(err: crate::operation::describe_app::DescribeAppError) -> Self {
3801 match err {
3802 crate::operation::describe_app::DescribeAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3803 crate::operation::describe_app::DescribeAppError::Unhandled(inner) => Error::Unhandled(inner),
3804 }
3805 }
3806}
3807impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_image_config::DescribeAppImageConfigError, R>>
3808 for Error
3809where
3810 R: Send + Sync + std::fmt::Debug + 'static,
3811{
3812 fn from(
3813 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_image_config::DescribeAppImageConfigError, R>,
3814 ) -> Self {
3815 match err {
3816 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3817 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3818 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3819 source: err.into(),
3820 }),
3821 }
3822 }
3823}
3824impl From<crate::operation::describe_app_image_config::DescribeAppImageConfigError> for Error {
3825 fn from(err: crate::operation::describe_app_image_config::DescribeAppImageConfigError) -> Self {
3826 match err {
3827 crate::operation::describe_app_image_config::DescribeAppImageConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3828 crate::operation::describe_app_image_config::DescribeAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
3829 }
3830 }
3831}
3832impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_artifact::DescribeArtifactError, R>> for Error
3833where
3834 R: Send + Sync + std::fmt::Debug + 'static,
3835{
3836 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_artifact::DescribeArtifactError, R>) -> Self {
3837 match err {
3838 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3839 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3840 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3841 source: err.into(),
3842 }),
3843 }
3844 }
3845}
3846impl From<crate::operation::describe_artifact::DescribeArtifactError> for Error {
3847 fn from(err: crate::operation::describe_artifact::DescribeArtifactError) -> Self {
3848 match err {
3849 crate::operation::describe_artifact::DescribeArtifactError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3850 crate::operation::describe_artifact::DescribeArtifactError::Unhandled(inner) => Error::Unhandled(inner),
3851 }
3852 }
3853}
3854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job::DescribeAutoMLJobError, R>> for Error
3855where
3856 R: Send + Sync + std::fmt::Debug + 'static,
3857{
3858 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job::DescribeAutoMLJobError, R>) -> 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_auto_ml_job::DescribeAutoMLJobError> for Error {
3869 fn from(err: crate::operation::describe_auto_ml_job::DescribeAutoMLJobError) -> Self {
3870 match err {
3871 crate::operation::describe_auto_ml_job::DescribeAutoMLJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3872 crate::operation::describe_auto_ml_job::DescribeAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
3873 }
3874 }
3875}
3876impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error, R>> for Error
3877where
3878 R: Send + Sync + std::fmt::Debug + 'static,
3879{
3880 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error, R>) -> Self {
3881 match err {
3882 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3883 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3884 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3885 source: err.into(),
3886 }),
3887 }
3888 }
3889}
3890impl From<crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error> for Error {
3891 fn from(err: crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error) -> Self {
3892 match err {
3893 crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3894 crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error::Unhandled(inner) => Error::Unhandled(inner),
3895 }
3896 }
3897}
3898impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster::DescribeClusterError, R>> for Error
3899where
3900 R: Send + Sync + std::fmt::Debug + 'static,
3901{
3902 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster::DescribeClusterError, R>) -> Self {
3903 match err {
3904 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3905 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3906 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3907 source: err.into(),
3908 }),
3909 }
3910 }
3911}
3912impl From<crate::operation::describe_cluster::DescribeClusterError> for Error {
3913 fn from(err: crate::operation::describe_cluster::DescribeClusterError) -> Self {
3914 match err {
3915 crate::operation::describe_cluster::DescribeClusterError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3916 crate::operation::describe_cluster::DescribeClusterError::Unhandled(inner) => Error::Unhandled(inner),
3917 }
3918 }
3919}
3920impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_event::DescribeClusterEventError, R>> for Error
3921where
3922 R: Send + Sync + std::fmt::Debug + 'static,
3923{
3924 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_event::DescribeClusterEventError, R>) -> Self {
3925 match err {
3926 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3927 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3928 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3929 source: err.into(),
3930 }),
3931 }
3932 }
3933}
3934impl From<crate::operation::describe_cluster_event::DescribeClusterEventError> for Error {
3935 fn from(err: crate::operation::describe_cluster_event::DescribeClusterEventError) -> Self {
3936 match err {
3937 crate::operation::describe_cluster_event::DescribeClusterEventError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3938 crate::operation::describe_cluster_event::DescribeClusterEventError::Unhandled(inner) => Error::Unhandled(inner),
3939 }
3940 }
3941}
3942impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_node::DescribeClusterNodeError, R>> for Error
3943where
3944 R: Send + Sync + std::fmt::Debug + 'static,
3945{
3946 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_node::DescribeClusterNodeError, R>) -> Self {
3947 match err {
3948 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3949 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3950 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3951 source: err.into(),
3952 }),
3953 }
3954 }
3955}
3956impl From<crate::operation::describe_cluster_node::DescribeClusterNodeError> for Error {
3957 fn from(err: crate::operation::describe_cluster_node::DescribeClusterNodeError) -> Self {
3958 match err {
3959 crate::operation::describe_cluster_node::DescribeClusterNodeError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3960 crate::operation::describe_cluster_node::DescribeClusterNodeError::Unhandled(inner) => Error::Unhandled(inner),
3961 }
3962 }
3963}
3964impl<R>
3965 From<
3966 ::aws_smithy_runtime_api::client::result::SdkError<
3967 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError,
3968 R,
3969 >,
3970 > for Error
3971where
3972 R: Send + Sync + std::fmt::Debug + 'static,
3973{
3974 fn from(
3975 err: ::aws_smithy_runtime_api::client::result::SdkError<
3976 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError,
3977 R,
3978 >,
3979 ) -> Self {
3980 match err {
3981 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3982 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3983 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3984 source: err.into(),
3985 }),
3986 }
3987 }
3988}
3989impl From<crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError> for Error {
3990 fn from(err: crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError) -> Self {
3991 match err {
3992 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError::ResourceNotFound(inner) => {
3993 Error::ResourceNotFound(inner)
3994 }
3995 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
3996 }
3997 }
3998}
3999impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_code_repository::DescribeCodeRepositoryError, R>> for Error
4000where
4001 R: Send + Sync + std::fmt::Debug + 'static,
4002{
4003 fn from(
4004 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_code_repository::DescribeCodeRepositoryError, R>,
4005 ) -> 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_code_repository::DescribeCodeRepositoryError> for Error {
4016 fn from(err: crate::operation::describe_code_repository::DescribeCodeRepositoryError) -> Self {
4017 match err {
4018 crate::operation::describe_code_repository::DescribeCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
4019 }
4020 }
4021}
4022impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compilation_job::DescribeCompilationJobError, R>> for Error
4023where
4024 R: Send + Sync + std::fmt::Debug + 'static,
4025{
4026 fn from(
4027 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compilation_job::DescribeCompilationJobError, R>,
4028 ) -> Self {
4029 match err {
4030 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4031 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4032 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4033 source: err.into(),
4034 }),
4035 }
4036 }
4037}
4038impl From<crate::operation::describe_compilation_job::DescribeCompilationJobError> for Error {
4039 fn from(err: crate::operation::describe_compilation_job::DescribeCompilationJobError) -> Self {
4040 match err {
4041 crate::operation::describe_compilation_job::DescribeCompilationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4042 crate::operation::describe_compilation_job::DescribeCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
4043 }
4044 }
4045}
4046impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compute_quota::DescribeComputeQuotaError, R>> for Error
4047where
4048 R: Send + Sync + std::fmt::Debug + 'static,
4049{
4050 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compute_quota::DescribeComputeQuotaError, R>) -> Self {
4051 match err {
4052 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4053 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4054 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4055 source: err.into(),
4056 }),
4057 }
4058 }
4059}
4060impl From<crate::operation::describe_compute_quota::DescribeComputeQuotaError> for Error {
4061 fn from(err: crate::operation::describe_compute_quota::DescribeComputeQuotaError) -> Self {
4062 match err {
4063 crate::operation::describe_compute_quota::DescribeComputeQuotaError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4064 crate::operation::describe_compute_quota::DescribeComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
4065 }
4066 }
4067}
4068impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_context::DescribeContextError, R>> for Error
4069where
4070 R: Send + Sync + std::fmt::Debug + 'static,
4071{
4072 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_context::DescribeContextError, R>) -> Self {
4073 match err {
4074 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4075 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4076 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4077 source: err.into(),
4078 }),
4079 }
4080 }
4081}
4082impl From<crate::operation::describe_context::DescribeContextError> for Error {
4083 fn from(err: crate::operation::describe_context::DescribeContextError) -> Self {
4084 match err {
4085 crate::operation::describe_context::DescribeContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4086 crate::operation::describe_context::DescribeContextError::Unhandled(inner) => Error::Unhandled(inner),
4087 }
4088 }
4089}
4090impl<R>
4091 From<
4092 ::aws_smithy_runtime_api::client::result::SdkError<
4093 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError,
4094 R,
4095 >,
4096 > for Error
4097where
4098 R: Send + Sync + std::fmt::Debug + 'static,
4099{
4100 fn from(
4101 err: ::aws_smithy_runtime_api::client::result::SdkError<
4102 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError,
4103 R,
4104 >,
4105 ) -> Self {
4106 match err {
4107 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4108 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4109 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4110 source: err.into(),
4111 }),
4112 }
4113 }
4114}
4115impl From<crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError> for Error {
4116 fn from(err: crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError) -> Self {
4117 match err {
4118 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError::ResourceNotFound(inner) => {
4119 Error::ResourceNotFound(inner)
4120 }
4121 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError::Unhandled(inner) => {
4122 Error::Unhandled(inner)
4123 }
4124 }
4125 }
4126}
4127impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device::DescribeDeviceError, R>> for Error
4128where
4129 R: Send + Sync + std::fmt::Debug + 'static,
4130{
4131 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device::DescribeDeviceError, R>) -> Self {
4132 match err {
4133 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4134 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4135 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4136 source: err.into(),
4137 }),
4138 }
4139 }
4140}
4141impl From<crate::operation::describe_device::DescribeDeviceError> for Error {
4142 fn from(err: crate::operation::describe_device::DescribeDeviceError) -> Self {
4143 match err {
4144 crate::operation::describe_device::DescribeDeviceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4145 crate::operation::describe_device::DescribeDeviceError::Unhandled(inner) => Error::Unhandled(inner),
4146 }
4147 }
4148}
4149impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device_fleet::DescribeDeviceFleetError, R>> for Error
4150where
4151 R: Send + Sync + std::fmt::Debug + 'static,
4152{
4153 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device_fleet::DescribeDeviceFleetError, R>) -> Self {
4154 match err {
4155 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4156 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4157 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4158 source: err.into(),
4159 }),
4160 }
4161 }
4162}
4163impl From<crate::operation::describe_device_fleet::DescribeDeviceFleetError> for Error {
4164 fn from(err: crate::operation::describe_device_fleet::DescribeDeviceFleetError) -> Self {
4165 match err {
4166 crate::operation::describe_device_fleet::DescribeDeviceFleetError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4167 crate::operation::describe_device_fleet::DescribeDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
4168 }
4169 }
4170}
4171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_domain::DescribeDomainError, R>> for Error
4172where
4173 R: Send + Sync + std::fmt::Debug + 'static,
4174{
4175 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_domain::DescribeDomainError, R>) -> Self {
4176 match err {
4177 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4178 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4179 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4180 source: err.into(),
4181 }),
4182 }
4183 }
4184}
4185impl From<crate::operation::describe_domain::DescribeDomainError> for Error {
4186 fn from(err: crate::operation::describe_domain::DescribeDomainError) -> Self {
4187 match err {
4188 crate::operation::describe_domain::DescribeDomainError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4189 crate::operation::describe_domain::DescribeDomainError::Unhandled(inner) => Error::Unhandled(inner),
4190 }
4191 }
4192}
4193impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError, R>>
4194 for Error
4195where
4196 R: Send + Sync + std::fmt::Debug + 'static,
4197{
4198 fn from(
4199 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError, R>,
4200 ) -> Self {
4201 match err {
4202 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4203 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4204 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4205 source: err.into(),
4206 }),
4207 }
4208 }
4209}
4210impl From<crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError> for Error {
4211 fn from(err: crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError) -> Self {
4212 match err {
4213 crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError::ResourceNotFound(inner) => {
4214 Error::ResourceNotFound(inner)
4215 }
4216 crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError::Unhandled(inner) => Error::Unhandled(inner),
4217 }
4218 }
4219}
4220impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError, R>>
4221 for Error
4222where
4223 R: Send + Sync + std::fmt::Debug + 'static,
4224{
4225 fn from(
4226 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError, R>,
4227 ) -> Self {
4228 match err {
4229 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4230 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4231 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4232 source: err.into(),
4233 }),
4234 }
4235 }
4236}
4237impl From<crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError> for Error {
4238 fn from(err: crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError) -> Self {
4239 match err {
4240 crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4241 crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError::Unhandled(inner) => Error::Unhandled(inner),
4242 }
4243 }
4244}
4245impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint::DescribeEndpointError, R>> for Error
4246where
4247 R: Send + Sync + std::fmt::Debug + 'static,
4248{
4249 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint::DescribeEndpointError, R>) -> Self {
4250 match err {
4251 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4252 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4253 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4254 source: err.into(),
4255 }),
4256 }
4257 }
4258}
4259impl From<crate::operation::describe_endpoint::DescribeEndpointError> for Error {
4260 fn from(err: crate::operation::describe_endpoint::DescribeEndpointError) -> Self {
4261 match err {
4262 crate::operation::describe_endpoint::DescribeEndpointError::Unhandled(inner) => Error::Unhandled(inner),
4263 }
4264 }
4265}
4266impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint_config::DescribeEndpointConfigError, R>> for Error
4267where
4268 R: Send + Sync + std::fmt::Debug + 'static,
4269{
4270 fn from(
4271 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint_config::DescribeEndpointConfigError, R>,
4272 ) -> Self {
4273 match err {
4274 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4275 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4276 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4277 source: err.into(),
4278 }),
4279 }
4280 }
4281}
4282impl From<crate::operation::describe_endpoint_config::DescribeEndpointConfigError> for Error {
4283 fn from(err: crate::operation::describe_endpoint_config::DescribeEndpointConfigError) -> Self {
4284 match err {
4285 crate::operation::describe_endpoint_config::DescribeEndpointConfigError::Unhandled(inner) => Error::Unhandled(inner),
4286 }
4287 }
4288}
4289impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_experiment::DescribeExperimentError, R>> for Error
4290where
4291 R: Send + Sync + std::fmt::Debug + 'static,
4292{
4293 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_experiment::DescribeExperimentError, R>) -> 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_experiment::DescribeExperimentError> for Error {
4304 fn from(err: crate::operation::describe_experiment::DescribeExperimentError) -> Self {
4305 match err {
4306 crate::operation::describe_experiment::DescribeExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4307 crate::operation::describe_experiment::DescribeExperimentError::Unhandled(inner) => Error::Unhandled(inner),
4308 }
4309 }
4310}
4311impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_group::DescribeFeatureGroupError, R>> for Error
4312where
4313 R: Send + Sync + std::fmt::Debug + 'static,
4314{
4315 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_group::DescribeFeatureGroupError, R>) -> Self {
4316 match err {
4317 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4318 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4319 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4320 source: err.into(),
4321 }),
4322 }
4323 }
4324}
4325impl From<crate::operation::describe_feature_group::DescribeFeatureGroupError> for Error {
4326 fn from(err: crate::operation::describe_feature_group::DescribeFeatureGroupError) -> Self {
4327 match err {
4328 crate::operation::describe_feature_group::DescribeFeatureGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4329 crate::operation::describe_feature_group::DescribeFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
4330 }
4331 }
4332}
4333impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_metadata::DescribeFeatureMetadataError, R>>
4334 for Error
4335where
4336 R: Send + Sync + std::fmt::Debug + 'static,
4337{
4338 fn from(
4339 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_metadata::DescribeFeatureMetadataError, R>,
4340 ) -> Self {
4341 match err {
4342 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4343 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4344 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4345 source: err.into(),
4346 }),
4347 }
4348 }
4349}
4350impl From<crate::operation::describe_feature_metadata::DescribeFeatureMetadataError> for Error {
4351 fn from(err: crate::operation::describe_feature_metadata::DescribeFeatureMetadataError) -> Self {
4352 match err {
4353 crate::operation::describe_feature_metadata::DescribeFeatureMetadataError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4354 crate::operation::describe_feature_metadata::DescribeFeatureMetadataError::Unhandled(inner) => Error::Unhandled(inner),
4355 }
4356 }
4357}
4358impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_definition::DescribeFlowDefinitionError, R>> for Error
4359where
4360 R: Send + Sync + std::fmt::Debug + 'static,
4361{
4362 fn from(
4363 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_definition::DescribeFlowDefinitionError, R>,
4364 ) -> Self {
4365 match err {
4366 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4367 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4368 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4369 source: err.into(),
4370 }),
4371 }
4372 }
4373}
4374impl From<crate::operation::describe_flow_definition::DescribeFlowDefinitionError> for Error {
4375 fn from(err: crate::operation::describe_flow_definition::DescribeFlowDefinitionError) -> Self {
4376 match err {
4377 crate::operation::describe_flow_definition::DescribeFlowDefinitionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4378 crate::operation::describe_flow_definition::DescribeFlowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
4379 }
4380 }
4381}
4382impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub::DescribeHubError, R>> for Error
4383where
4384 R: Send + Sync + std::fmt::Debug + 'static,
4385{
4386 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub::DescribeHubError, R>) -> Self {
4387 match err {
4388 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4389 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4390 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4391 source: err.into(),
4392 }),
4393 }
4394 }
4395}
4396impl From<crate::operation::describe_hub::DescribeHubError> for Error {
4397 fn from(err: crate::operation::describe_hub::DescribeHubError) -> Self {
4398 match err {
4399 crate::operation::describe_hub::DescribeHubError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4400 crate::operation::describe_hub::DescribeHubError::Unhandled(inner) => Error::Unhandled(inner),
4401 }
4402 }
4403}
4404impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub_content::DescribeHubContentError, R>> for Error
4405where
4406 R: Send + Sync + std::fmt::Debug + 'static,
4407{
4408 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub_content::DescribeHubContentError, R>) -> Self {
4409 match err {
4410 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4411 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4412 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4413 source: err.into(),
4414 }),
4415 }
4416 }
4417}
4418impl From<crate::operation::describe_hub_content::DescribeHubContentError> for Error {
4419 fn from(err: crate::operation::describe_hub_content::DescribeHubContentError) -> Self {
4420 match err {
4421 crate::operation::describe_hub_content::DescribeHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4422 crate::operation::describe_hub_content::DescribeHubContentError::Unhandled(inner) => Error::Unhandled(inner),
4423 }
4424 }
4425}
4426impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_human_task_ui::DescribeHumanTaskUiError, R>> for Error
4427where
4428 R: Send + Sync + std::fmt::Debug + 'static,
4429{
4430 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_human_task_ui::DescribeHumanTaskUiError, R>) -> Self {
4431 match err {
4432 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4433 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4434 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4435 source: err.into(),
4436 }),
4437 }
4438 }
4439}
4440impl From<crate::operation::describe_human_task_ui::DescribeHumanTaskUiError> for Error {
4441 fn from(err: crate::operation::describe_human_task_ui::DescribeHumanTaskUiError) -> Self {
4442 match err {
4443 crate::operation::describe_human_task_ui::DescribeHumanTaskUiError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4444 crate::operation::describe_human_task_ui::DescribeHumanTaskUiError::Unhandled(inner) => Error::Unhandled(inner),
4445 }
4446 }
4447}
4448impl<R>
4449 From<
4450 ::aws_smithy_runtime_api::client::result::SdkError<
4451 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError,
4452 R,
4453 >,
4454 > for Error
4455where
4456 R: Send + Sync + std::fmt::Debug + 'static,
4457{
4458 fn from(
4459 err: ::aws_smithy_runtime_api::client::result::SdkError<
4460 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError,
4461 R,
4462 >,
4463 ) -> Self {
4464 match err {
4465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4468 source: err.into(),
4469 }),
4470 }
4471 }
4472}
4473impl From<crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError> for Error {
4474 fn from(err: crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError) -> Self {
4475 match err {
4476 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError::ResourceNotFound(inner) => {
4477 Error::ResourceNotFound(inner)
4478 }
4479 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
4480 }
4481 }
4482}
4483impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image::DescribeImageError, R>> for Error
4484where
4485 R: Send + Sync + std::fmt::Debug + 'static,
4486{
4487 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image::DescribeImageError, R>) -> Self {
4488 match err {
4489 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4490 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4491 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4492 source: err.into(),
4493 }),
4494 }
4495 }
4496}
4497impl From<crate::operation::describe_image::DescribeImageError> for Error {
4498 fn from(err: crate::operation::describe_image::DescribeImageError) -> Self {
4499 match err {
4500 crate::operation::describe_image::DescribeImageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4501 crate::operation::describe_image::DescribeImageError::Unhandled(inner) => Error::Unhandled(inner),
4502 }
4503 }
4504}
4505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_version::DescribeImageVersionError, R>> for Error
4506where
4507 R: Send + Sync + std::fmt::Debug + 'static,
4508{
4509 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_version::DescribeImageVersionError, R>) -> Self {
4510 match err {
4511 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4512 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4513 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4514 source: err.into(),
4515 }),
4516 }
4517 }
4518}
4519impl From<crate::operation::describe_image_version::DescribeImageVersionError> for Error {
4520 fn from(err: crate::operation::describe_image_version::DescribeImageVersionError) -> Self {
4521 match err {
4522 crate::operation::describe_image_version::DescribeImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4523 crate::operation::describe_image_version::DescribeImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
4524 }
4525 }
4526}
4527impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_component::DescribeInferenceComponentError, R>>
4528 for Error
4529where
4530 R: Send + Sync + std::fmt::Debug + 'static,
4531{
4532 fn from(
4533 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_component::DescribeInferenceComponentError, R>,
4534 ) -> Self {
4535 match err {
4536 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4537 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4538 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4539 source: err.into(),
4540 }),
4541 }
4542 }
4543}
4544impl From<crate::operation::describe_inference_component::DescribeInferenceComponentError> for Error {
4545 fn from(err: crate::operation::describe_inference_component::DescribeInferenceComponentError) -> Self {
4546 match err {
4547 crate::operation::describe_inference_component::DescribeInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
4548 }
4549 }
4550}
4551impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_experiment::DescribeInferenceExperimentError, R>>
4552 for Error
4553where
4554 R: Send + Sync + std::fmt::Debug + 'static,
4555{
4556 fn from(
4557 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_experiment::DescribeInferenceExperimentError, R>,
4558 ) -> Self {
4559 match err {
4560 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4561 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4562 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4563 source: err.into(),
4564 }),
4565 }
4566 }
4567}
4568impl From<crate::operation::describe_inference_experiment::DescribeInferenceExperimentError> for Error {
4569 fn from(err: crate::operation::describe_inference_experiment::DescribeInferenceExperimentError) -> Self {
4570 match err {
4571 crate::operation::describe_inference_experiment::DescribeInferenceExperimentError::ResourceNotFound(inner) => {
4572 Error::ResourceNotFound(inner)
4573 }
4574 crate::operation::describe_inference_experiment::DescribeInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
4575 }
4576 }
4577}
4578impl<R>
4579 From<
4580 ::aws_smithy_runtime_api::client::result::SdkError<
4581 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError,
4582 R,
4583 >,
4584 > for Error
4585where
4586 R: Send + Sync + std::fmt::Debug + 'static,
4587{
4588 fn from(
4589 err: ::aws_smithy_runtime_api::client::result::SdkError<
4590 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError,
4591 R,
4592 >,
4593 ) -> Self {
4594 match err {
4595 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4596 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4597 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4598 source: err.into(),
4599 }),
4600 }
4601 }
4602}
4603impl From<crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError> for Error {
4604 fn from(err: crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError) -> Self {
4605 match err {
4606 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError::ResourceNotFound(inner) => {
4607 Error::ResourceNotFound(inner)
4608 }
4609 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError::Unhandled(inner) => {
4610 Error::Unhandled(inner)
4611 }
4612 }
4613 }
4614}
4615impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_labeling_job::DescribeLabelingJobError, R>> for Error
4616where
4617 R: Send + Sync + std::fmt::Debug + 'static,
4618{
4619 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_labeling_job::DescribeLabelingJobError, R>) -> Self {
4620 match err {
4621 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4622 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4623 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4624 source: err.into(),
4625 }),
4626 }
4627 }
4628}
4629impl From<crate::operation::describe_labeling_job::DescribeLabelingJobError> for Error {
4630 fn from(err: crate::operation::describe_labeling_job::DescribeLabelingJobError) -> Self {
4631 match err {
4632 crate::operation::describe_labeling_job::DescribeLabelingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4633 crate::operation::describe_labeling_job::DescribeLabelingJobError::Unhandled(inner) => Error::Unhandled(inner),
4634 }
4635 }
4636}
4637impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lineage_group::DescribeLineageGroupError, R>> for Error
4638where
4639 R: Send + Sync + std::fmt::Debug + 'static,
4640{
4641 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lineage_group::DescribeLineageGroupError, R>) -> Self {
4642 match err {
4643 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4644 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4645 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4646 source: err.into(),
4647 }),
4648 }
4649 }
4650}
4651impl From<crate::operation::describe_lineage_group::DescribeLineageGroupError> for Error {
4652 fn from(err: crate::operation::describe_lineage_group::DescribeLineageGroupError) -> Self {
4653 match err {
4654 crate::operation::describe_lineage_group::DescribeLineageGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4655 crate::operation::describe_lineage_group::DescribeLineageGroupError::Unhandled(inner) => Error::Unhandled(inner),
4656 }
4657 }
4658}
4659impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mlflow_app::DescribeMlflowAppError, R>> for Error
4660where
4661 R: Send + Sync + std::fmt::Debug + 'static,
4662{
4663 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mlflow_app::DescribeMlflowAppError, R>) -> Self {
4664 match err {
4665 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4666 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4667 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4668 source: err.into(),
4669 }),
4670 }
4671 }
4672}
4673impl From<crate::operation::describe_mlflow_app::DescribeMlflowAppError> for Error {
4674 fn from(err: crate::operation::describe_mlflow_app::DescribeMlflowAppError) -> Self {
4675 match err {
4676 crate::operation::describe_mlflow_app::DescribeMlflowAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4677 crate::operation::describe_mlflow_app::DescribeMlflowAppError::Unhandled(inner) => Error::Unhandled(inner),
4678 }
4679 }
4680}
4681impl<R>
4682 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError, R>>
4683 for Error
4684where
4685 R: Send + Sync + std::fmt::Debug + 'static,
4686{
4687 fn from(
4688 err: ::aws_smithy_runtime_api::client::result::SdkError<
4689 crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError,
4690 R,
4691 >,
4692 ) -> Self {
4693 match err {
4694 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4695 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4696 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4697 source: err.into(),
4698 }),
4699 }
4700 }
4701}
4702impl From<crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError> for Error {
4703 fn from(err: crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError) -> Self {
4704 match err {
4705 crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError::ResourceNotFound(inner) => {
4706 Error::ResourceNotFound(inner)
4707 }
4708 crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
4709 }
4710 }
4711}
4712impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model::DescribeModelError, R>> for Error
4713where
4714 R: Send + Sync + std::fmt::Debug + 'static,
4715{
4716 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model::DescribeModelError, R>) -> Self {
4717 match err {
4718 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4719 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4720 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4721 source: err.into(),
4722 }),
4723 }
4724 }
4725}
4726impl From<crate::operation::describe_model::DescribeModelError> for Error {
4727 fn from(err: crate::operation::describe_model::DescribeModelError) -> Self {
4728 match err {
4729 crate::operation::describe_model::DescribeModelError::Unhandled(inner) => Error::Unhandled(inner),
4730 }
4731 }
4732}
4733impl<R>
4734 From<
4735 ::aws_smithy_runtime_api::client::result::SdkError<
4736 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError,
4737 R,
4738 >,
4739 > for Error
4740where
4741 R: Send + Sync + std::fmt::Debug + 'static,
4742{
4743 fn from(
4744 err: ::aws_smithy_runtime_api::client::result::SdkError<
4745 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError,
4746 R,
4747 >,
4748 ) -> Self {
4749 match err {
4750 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4751 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4752 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4753 source: err.into(),
4754 }),
4755 }
4756 }
4757}
4758impl From<crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError> for Error {
4759 fn from(err: crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError) -> Self {
4760 match err {
4761 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError::ResourceNotFound(inner) => {
4762 Error::ResourceNotFound(inner)
4763 }
4764 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
4765 }
4766 }
4767}
4768impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card::DescribeModelCardError, R>> for Error
4769where
4770 R: Send + Sync + std::fmt::Debug + 'static,
4771{
4772 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card::DescribeModelCardError, R>) -> Self {
4773 match err {
4774 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4775 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4776 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4777 source: err.into(),
4778 }),
4779 }
4780 }
4781}
4782impl From<crate::operation::describe_model_card::DescribeModelCardError> for Error {
4783 fn from(err: crate::operation::describe_model_card::DescribeModelCardError) -> Self {
4784 match err {
4785 crate::operation::describe_model_card::DescribeModelCardError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4786 crate::operation::describe_model_card::DescribeModelCardError::Unhandled(inner) => Error::Unhandled(inner),
4787 }
4788 }
4789}
4790impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError, R>>
4791 for Error
4792where
4793 R: Send + Sync + std::fmt::Debug + 'static,
4794{
4795 fn from(
4796 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError, R>,
4797 ) -> 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_model_card_export_job::DescribeModelCardExportJobError> for Error {
4808 fn from(err: crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError) -> Self {
4809 match err {
4810 crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError::ResourceNotFound(inner) => {
4811 Error::ResourceNotFound(inner)
4812 }
4813 crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError::Unhandled(inner) => Error::Unhandled(inner),
4814 }
4815 }
4816}
4817impl<R>
4818 From<
4819 ::aws_smithy_runtime_api::client::result::SdkError<
4820 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError,
4821 R,
4822 >,
4823 > for Error
4824where
4825 R: Send + Sync + std::fmt::Debug + 'static,
4826{
4827 fn from(
4828 err: ::aws_smithy_runtime_api::client::result::SdkError<
4829 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError,
4830 R,
4831 >,
4832 ) -> Self {
4833 match err {
4834 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4835 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4836 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4837 source: err.into(),
4838 }),
4839 }
4840 }
4841}
4842impl From<crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError> for Error {
4843 fn from(err: crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError) -> Self {
4844 match err {
4845 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError::ResourceNotFound(
4846 inner,
4847 ) => Error::ResourceNotFound(inner),
4848 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError::Unhandled(inner) => {
4849 Error::Unhandled(inner)
4850 }
4851 }
4852 }
4853}
4854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package::DescribeModelPackageError, R>> for Error
4855where
4856 R: Send + Sync + std::fmt::Debug + 'static,
4857{
4858 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package::DescribeModelPackageError, R>) -> Self {
4859 match err {
4860 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4861 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4862 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4863 source: err.into(),
4864 }),
4865 }
4866 }
4867}
4868impl From<crate::operation::describe_model_package::DescribeModelPackageError> for Error {
4869 fn from(err: crate::operation::describe_model_package::DescribeModelPackageError) -> Self {
4870 match err {
4871 crate::operation::describe_model_package::DescribeModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
4872 }
4873 }
4874}
4875impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package_group::DescribeModelPackageGroupError, R>>
4876 for Error
4877where
4878 R: Send + Sync + std::fmt::Debug + 'static,
4879{
4880 fn from(
4881 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package_group::DescribeModelPackageGroupError, R>,
4882 ) -> Self {
4883 match err {
4884 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4885 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4886 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4887 source: err.into(),
4888 }),
4889 }
4890 }
4891}
4892impl From<crate::operation::describe_model_package_group::DescribeModelPackageGroupError> for Error {
4893 fn from(err: crate::operation::describe_model_package_group::DescribeModelPackageGroupError) -> Self {
4894 match err {
4895 crate::operation::describe_model_package_group::DescribeModelPackageGroupError::Unhandled(inner) => Error::Unhandled(inner),
4896 }
4897 }
4898}
4899impl<R>
4900 From<
4901 ::aws_smithy_runtime_api::client::result::SdkError<
4902 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError,
4903 R,
4904 >,
4905 > for Error
4906where
4907 R: Send + Sync + std::fmt::Debug + 'static,
4908{
4909 fn from(
4910 err: ::aws_smithy_runtime_api::client::result::SdkError<
4911 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError,
4912 R,
4913 >,
4914 ) -> Self {
4915 match err {
4916 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4917 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4918 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4919 source: err.into(),
4920 }),
4921 }
4922 }
4923}
4924impl From<crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError> for Error {
4925 fn from(err: crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError) -> Self {
4926 match err {
4927 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError::ResourceNotFound(inner) => {
4928 Error::ResourceNotFound(inner)
4929 }
4930 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError::Unhandled(inner) => {
4931 Error::Unhandled(inner)
4932 }
4933 }
4934 }
4935}
4936impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError, R>>
4937 for Error
4938where
4939 R: Send + Sync + std::fmt::Debug + 'static,
4940{
4941 fn from(
4942 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError, R>,
4943 ) -> Self {
4944 match err {
4945 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4946 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4947 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4948 source: err.into(),
4949 }),
4950 }
4951 }
4952}
4953impl From<crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError> for Error {
4954 fn from(err: crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError) -> Self {
4955 match err {
4956 crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError::ResourceNotFound(inner) => {
4957 Error::ResourceNotFound(inner)
4958 }
4959 crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
4960 }
4961 }
4962}
4963impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_notebook_instance::DescribeNotebookInstanceError, R>>
4964 for Error
4965where
4966 R: Send + Sync + std::fmt::Debug + 'static,
4967{
4968 fn from(
4969 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_notebook_instance::DescribeNotebookInstanceError, R>,
4970 ) -> Self {
4971 match err {
4972 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4973 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4974 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4975 source: err.into(),
4976 }),
4977 }
4978 }
4979}
4980impl From<crate::operation::describe_notebook_instance::DescribeNotebookInstanceError> for Error {
4981 fn from(err: crate::operation::describe_notebook_instance::DescribeNotebookInstanceError) -> Self {
4982 match err {
4983 crate::operation::describe_notebook_instance::DescribeNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
4984 }
4985 }
4986}
4987impl<R>
4988 From<
4989 ::aws_smithy_runtime_api::client::result::SdkError<
4990 crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError,
4991 R,
4992 >,
4993 > for Error
4994where
4995 R: Send + Sync + std::fmt::Debug + 'static,
4996{
4997 fn from(
4998 err: ::aws_smithy_runtime_api::client::result::SdkError<
4999 crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError,
5000 R,
5001 >,
5002 ) -> Self {
5003 match err {
5004 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5005 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5006 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5007 source: err.into(),
5008 }),
5009 }
5010 }
5011}
5012impl From<crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError> for Error {
5013 fn from(err: crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError) -> Self {
5014 match err {
5015 crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
5016 Error::Unhandled(inner)
5017 }
5018 }
5019 }
5020}
5021impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_optimization_job::DescribeOptimizationJobError, R>>
5022 for Error
5023where
5024 R: Send + Sync + std::fmt::Debug + 'static,
5025{
5026 fn from(
5027 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_optimization_job::DescribeOptimizationJobError, R>,
5028 ) -> Self {
5029 match err {
5030 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5031 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5032 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5033 source: err.into(),
5034 }),
5035 }
5036 }
5037}
5038impl From<crate::operation::describe_optimization_job::DescribeOptimizationJobError> for Error {
5039 fn from(err: crate::operation::describe_optimization_job::DescribeOptimizationJobError) -> Self {
5040 match err {
5041 crate::operation::describe_optimization_job::DescribeOptimizationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5042 crate::operation::describe_optimization_job::DescribeOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
5043 }
5044 }
5045}
5046impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_partner_app::DescribePartnerAppError, R>> for Error
5047where
5048 R: Send + Sync + std::fmt::Debug + 'static,
5049{
5050 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_partner_app::DescribePartnerAppError, R>) -> Self {
5051 match err {
5052 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5053 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5054 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5055 source: err.into(),
5056 }),
5057 }
5058 }
5059}
5060impl From<crate::operation::describe_partner_app::DescribePartnerAppError> for Error {
5061 fn from(err: crate::operation::describe_partner_app::DescribePartnerAppError) -> Self {
5062 match err {
5063 crate::operation::describe_partner_app::DescribePartnerAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5064 crate::operation::describe_partner_app::DescribePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
5065 }
5066 }
5067}
5068impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline::DescribePipelineError, R>> for Error
5069where
5070 R: Send + Sync + std::fmt::Debug + 'static,
5071{
5072 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline::DescribePipelineError, R>) -> 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::describe_pipeline::DescribePipelineError> for Error {
5083 fn from(err: crate::operation::describe_pipeline::DescribePipelineError) -> Self {
5084 match err {
5085 crate::operation::describe_pipeline::DescribePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5086 crate::operation::describe_pipeline::DescribePipelineError::Unhandled(inner) => Error::Unhandled(inner),
5087 }
5088 }
5089}
5090impl<R>
5091 From<
5092 ::aws_smithy_runtime_api::client::result::SdkError<
5093 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError,
5094 R,
5095 >,
5096 > for Error
5097where
5098 R: Send + Sync + std::fmt::Debug + 'static,
5099{
5100 fn from(
5101 err: ::aws_smithy_runtime_api::client::result::SdkError<
5102 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError,
5103 R,
5104 >,
5105 ) -> Self {
5106 match err {
5107 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5108 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5109 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5110 source: err.into(),
5111 }),
5112 }
5113 }
5114}
5115impl From<crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError> for Error {
5116 fn from(err: crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError) -> Self {
5117 match err {
5118 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError::ResourceNotFound(inner) => {
5119 Error::ResourceNotFound(inner)
5120 }
5121 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError::Unhandled(inner) => {
5122 Error::Unhandled(inner)
5123 }
5124 }
5125 }
5126}
5127impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline_execution::DescribePipelineExecutionError, R>>
5128 for Error
5129where
5130 R: Send + Sync + std::fmt::Debug + 'static,
5131{
5132 fn from(
5133 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline_execution::DescribePipelineExecutionError, R>,
5134 ) -> Self {
5135 match err {
5136 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5137 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5138 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5139 source: err.into(),
5140 }),
5141 }
5142 }
5143}
5144impl From<crate::operation::describe_pipeline_execution::DescribePipelineExecutionError> for Error {
5145 fn from(err: crate::operation::describe_pipeline_execution::DescribePipelineExecutionError) -> Self {
5146 match err {
5147 crate::operation::describe_pipeline_execution::DescribePipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5148 crate::operation::describe_pipeline_execution::DescribePipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
5149 }
5150 }
5151}
5152impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_processing_job::DescribeProcessingJobError, R>> for Error
5153where
5154 R: Send + Sync + std::fmt::Debug + 'static,
5155{
5156 fn from(
5157 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_processing_job::DescribeProcessingJobError, R>,
5158 ) -> Self {
5159 match err {
5160 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5161 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5162 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5163 source: err.into(),
5164 }),
5165 }
5166 }
5167}
5168impl From<crate::operation::describe_processing_job::DescribeProcessingJobError> for Error {
5169 fn from(err: crate::operation::describe_processing_job::DescribeProcessingJobError) -> Self {
5170 match err {
5171 crate::operation::describe_processing_job::DescribeProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5172 crate::operation::describe_processing_job::DescribeProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
5173 }
5174 }
5175}
5176impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_project::DescribeProjectError, R>> for Error
5177where
5178 R: Send + Sync + std::fmt::Debug + 'static,
5179{
5180 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_project::DescribeProjectError, R>) -> Self {
5181 match err {
5182 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5183 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5184 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5185 source: err.into(),
5186 }),
5187 }
5188 }
5189}
5190impl From<crate::operation::describe_project::DescribeProjectError> for Error {
5191 fn from(err: crate::operation::describe_project::DescribeProjectError) -> Self {
5192 match err {
5193 crate::operation::describe_project::DescribeProjectError::Unhandled(inner) => Error::Unhandled(inner),
5194 }
5195 }
5196}
5197impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_capacity::DescribeReservedCapacityError, R>>
5198 for Error
5199where
5200 R: Send + Sync + std::fmt::Debug + 'static,
5201{
5202 fn from(
5203 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_capacity::DescribeReservedCapacityError, R>,
5204 ) -> Self {
5205 match err {
5206 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5207 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5208 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5209 source: err.into(),
5210 }),
5211 }
5212 }
5213}
5214impl From<crate::operation::describe_reserved_capacity::DescribeReservedCapacityError> for Error {
5215 fn from(err: crate::operation::describe_reserved_capacity::DescribeReservedCapacityError) -> Self {
5216 match err {
5217 crate::operation::describe_reserved_capacity::DescribeReservedCapacityError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5218 crate::operation::describe_reserved_capacity::DescribeReservedCapacityError::Unhandled(inner) => Error::Unhandled(inner),
5219 }
5220 }
5221}
5222impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_space::DescribeSpaceError, R>> for Error
5223where
5224 R: Send + Sync + std::fmt::Debug + 'static,
5225{
5226 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_space::DescribeSpaceError, R>) -> Self {
5227 match err {
5228 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5229 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5230 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5231 source: err.into(),
5232 }),
5233 }
5234 }
5235}
5236impl From<crate::operation::describe_space::DescribeSpaceError> for Error {
5237 fn from(err: crate::operation::describe_space::DescribeSpaceError) -> Self {
5238 match err {
5239 crate::operation::describe_space::DescribeSpaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5240 crate::operation::describe_space::DescribeSpaceError::Unhandled(inner) => Error::Unhandled(inner),
5241 }
5242 }
5243}
5244impl<R>
5245 From<
5246 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError, R>,
5247 > for Error
5248where
5249 R: Send + Sync + std::fmt::Debug + 'static,
5250{
5251 fn from(
5252 err: ::aws_smithy_runtime_api::client::result::SdkError<
5253 crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError,
5254 R,
5255 >,
5256 ) -> 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::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError> for Error {
5267 fn from(err: crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError) -> Self {
5268 match err {
5269 crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError::ResourceNotFound(inner) => {
5270 Error::ResourceNotFound(inner)
5271 }
5272 crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError::Unhandled(inner) => Error::Unhandled(inner),
5273 }
5274 }
5275}
5276impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError, R>>
5277 for Error
5278where
5279 R: Send + Sync + std::fmt::Debug + 'static,
5280{
5281 fn from(
5282 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError, R>,
5283 ) -> Self {
5284 match err {
5285 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5286 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5287 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5288 source: err.into(),
5289 }),
5290 }
5291 }
5292}
5293impl From<crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError> for Error {
5294 fn from(err: crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError) -> Self {
5295 match err {
5296 crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
5297 }
5298 }
5299}
5300impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_job::DescribeTrainingJobError, R>> for Error
5301where
5302 R: Send + Sync + std::fmt::Debug + 'static,
5303{
5304 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_job::DescribeTrainingJobError, R>) -> Self {
5305 match err {
5306 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5307 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5308 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5309 source: err.into(),
5310 }),
5311 }
5312 }
5313}
5314impl From<crate::operation::describe_training_job::DescribeTrainingJobError> for Error {
5315 fn from(err: crate::operation::describe_training_job::DescribeTrainingJobError) -> Self {
5316 match err {
5317 crate::operation::describe_training_job::DescribeTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5318 crate::operation::describe_training_job::DescribeTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
5319 }
5320 }
5321}
5322impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_plan::DescribeTrainingPlanError, R>> for Error
5323where
5324 R: Send + Sync + std::fmt::Debug + 'static,
5325{
5326 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_plan::DescribeTrainingPlanError, R>) -> Self {
5327 match err {
5328 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5329 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5330 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5331 source: err.into(),
5332 }),
5333 }
5334 }
5335}
5336impl From<crate::operation::describe_training_plan::DescribeTrainingPlanError> for Error {
5337 fn from(err: crate::operation::describe_training_plan::DescribeTrainingPlanError) -> Self {
5338 match err {
5339 crate::operation::describe_training_plan::DescribeTrainingPlanError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5340 crate::operation::describe_training_plan::DescribeTrainingPlanError::Unhandled(inner) => Error::Unhandled(inner),
5341 }
5342 }
5343}
5344impl<R>
5345 From<
5346 ::aws_smithy_runtime_api::client::result::SdkError<
5347 crate::operation::describe_training_plan_extension_history::DescribeTrainingPlanExtensionHistoryError,
5348 R,
5349 >,
5350 > for Error
5351where
5352 R: Send + Sync + std::fmt::Debug + 'static,
5353{
5354 fn from(
5355 err: ::aws_smithy_runtime_api::client::result::SdkError<
5356 crate::operation::describe_training_plan_extension_history::DescribeTrainingPlanExtensionHistoryError,
5357 R,
5358 >,
5359 ) -> Self {
5360 match err {
5361 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5362 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5363 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5364 source: err.into(),
5365 }),
5366 }
5367 }
5368}
5369impl From<crate::operation::describe_training_plan_extension_history::DescribeTrainingPlanExtensionHistoryError> for Error {
5370 fn from(err: crate::operation::describe_training_plan_extension_history::DescribeTrainingPlanExtensionHistoryError) -> Self {
5371 match err {
5372 crate::operation::describe_training_plan_extension_history::DescribeTrainingPlanExtensionHistoryError::ResourceNotFound(inner) => {
5373 Error::ResourceNotFound(inner)
5374 }
5375 crate::operation::describe_training_plan_extension_history::DescribeTrainingPlanExtensionHistoryError::Unhandled(inner) => {
5376 Error::Unhandled(inner)
5377 }
5378 }
5379 }
5380}
5381impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transform_job::DescribeTransformJobError, 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::describe_transform_job::DescribeTransformJobError, 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::describe_transform_job::DescribeTransformJobError> for Error {
5396 fn from(err: crate::operation::describe_transform_job::DescribeTransformJobError) -> Self {
5397 match err {
5398 crate::operation::describe_transform_job::DescribeTransformJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5399 crate::operation::describe_transform_job::DescribeTransformJobError::Unhandled(inner) => Error::Unhandled(inner),
5400 }
5401 }
5402}
5403impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial::DescribeTrialError, R>> for Error
5404where
5405 R: Send + Sync + std::fmt::Debug + 'static,
5406{
5407 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial::DescribeTrialError, R>) -> Self {
5408 match err {
5409 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5410 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5411 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5412 source: err.into(),
5413 }),
5414 }
5415 }
5416}
5417impl From<crate::operation::describe_trial::DescribeTrialError> for Error {
5418 fn from(err: crate::operation::describe_trial::DescribeTrialError) -> Self {
5419 match err {
5420 crate::operation::describe_trial::DescribeTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5421 crate::operation::describe_trial::DescribeTrialError::Unhandled(inner) => Error::Unhandled(inner),
5422 }
5423 }
5424}
5425impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial_component::DescribeTrialComponentError, R>> for Error
5426where
5427 R: Send + Sync + std::fmt::Debug + 'static,
5428{
5429 fn from(
5430 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial_component::DescribeTrialComponentError, R>,
5431 ) -> Self {
5432 match err {
5433 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5434 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5435 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5436 source: err.into(),
5437 }),
5438 }
5439 }
5440}
5441impl From<crate::operation::describe_trial_component::DescribeTrialComponentError> for Error {
5442 fn from(err: crate::operation::describe_trial_component::DescribeTrialComponentError) -> Self {
5443 match err {
5444 crate::operation::describe_trial_component::DescribeTrialComponentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5445 crate::operation::describe_trial_component::DescribeTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
5446 }
5447 }
5448}
5449impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_profile::DescribeUserProfileError, R>> for Error
5450where
5451 R: Send + Sync + std::fmt::Debug + 'static,
5452{
5453 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_profile::DescribeUserProfileError, R>) -> Self {
5454 match err {
5455 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5456 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5457 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5458 source: err.into(),
5459 }),
5460 }
5461 }
5462}
5463impl From<crate::operation::describe_user_profile::DescribeUserProfileError> for Error {
5464 fn from(err: crate::operation::describe_user_profile::DescribeUserProfileError) -> Self {
5465 match err {
5466 crate::operation::describe_user_profile::DescribeUserProfileError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
5467 crate::operation::describe_user_profile::DescribeUserProfileError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5468 crate::operation::describe_user_profile::DescribeUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
5469 }
5470 }
5471}
5472impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workforce::DescribeWorkforceError, R>> for Error
5473where
5474 R: Send + Sync + std::fmt::Debug + 'static,
5475{
5476 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workforce::DescribeWorkforceError, R>) -> Self {
5477 match err {
5478 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5479 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5480 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5481 source: err.into(),
5482 }),
5483 }
5484 }
5485}
5486impl From<crate::operation::describe_workforce::DescribeWorkforceError> for Error {
5487 fn from(err: crate::operation::describe_workforce::DescribeWorkforceError) -> Self {
5488 match err {
5489 crate::operation::describe_workforce::DescribeWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
5490 }
5491 }
5492}
5493impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workteam::DescribeWorkteamError, R>> for Error
5494where
5495 R: Send + Sync + std::fmt::Debug + 'static,
5496{
5497 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workteam::DescribeWorkteamError, R>) -> Self {
5498 match err {
5499 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5500 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5501 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5502 source: err.into(),
5503 }),
5504 }
5505 }
5506}
5507impl From<crate::operation::describe_workteam::DescribeWorkteamError> for Error {
5508 fn from(err: crate::operation::describe_workteam::DescribeWorkteamError) -> Self {
5509 match err {
5510 crate::operation::describe_workteam::DescribeWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
5511 }
5512 }
5513}
5514impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError, R>>
5515 for Error
5516where
5517 R: Send + Sync + std::fmt::Debug + 'static,
5518{
5519 fn from(
5520 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError, R>,
5521 ) -> Self {
5522 match err {
5523 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5524 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5525 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5526 source: err.into(),
5527 }),
5528 }
5529 }
5530}
5531impl From<crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError> for Error {
5532 fn from(err: crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError) -> Self {
5533 match err {
5534 crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5535 crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError::Unhandled(inner) => Error::Unhandled(inner),
5536 }
5537 }
5538}
5539impl<R>
5540 From<
5541 ::aws_smithy_runtime_api::client::result::SdkError<
5542 crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError,
5543 R,
5544 >,
5545 > for Error
5546where
5547 R: Send + Sync + std::fmt::Debug + 'static,
5548{
5549 fn from(
5550 err: ::aws_smithy_runtime_api::client::result::SdkError<
5551 crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError,
5552 R,
5553 >,
5554 ) -> Self {
5555 match err {
5556 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5557 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5558 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5559 source: err.into(),
5560 }),
5561 }
5562 }
5563}
5564impl From<crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError> for Error {
5565 fn from(err: crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError) -> Self {
5566 match err {
5567 crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError::Unhandled(inner) => {
5568 Error::Unhandled(inner)
5569 }
5570 }
5571 }
5572}
5573impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trial_component::DisassociateTrialComponentError, R>>
5574 for Error
5575where
5576 R: Send + Sync + std::fmt::Debug + 'static,
5577{
5578 fn from(
5579 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trial_component::DisassociateTrialComponentError, R>,
5580 ) -> Self {
5581 match err {
5582 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5583 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5584 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5585 source: err.into(),
5586 }),
5587 }
5588 }
5589}
5590impl From<crate::operation::disassociate_trial_component::DisassociateTrialComponentError> for Error {
5591 fn from(err: crate::operation::disassociate_trial_component::DisassociateTrialComponentError) -> Self {
5592 match err {
5593 crate::operation::disassociate_trial_component::DisassociateTrialComponentError::ResourceNotFound(inner) => {
5594 Error::ResourceNotFound(inner)
5595 }
5596 crate::operation::disassociate_trial_component::DisassociateTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
5597 }
5598 }
5599}
5600impl<R>
5601 From<
5602 ::aws_smithy_runtime_api::client::result::SdkError<
5603 crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError,
5604 R,
5605 >,
5606 > for Error
5607where
5608 R: Send + Sync + std::fmt::Debug + 'static,
5609{
5610 fn from(
5611 err: ::aws_smithy_runtime_api::client::result::SdkError<
5612 crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError,
5613 R,
5614 >,
5615 ) -> Self {
5616 match err {
5617 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5618 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5619 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5620 source: err.into(),
5621 }),
5622 }
5623 }
5624}
5625impl From<crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError> for Error {
5626 fn from(err: crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError) -> Self {
5627 match err {
5628 crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError::Unhandled(inner) => {
5629 Error::Unhandled(inner)
5630 }
5631 }
5632 }
5633}
5634impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::extend_training_plan::ExtendTrainingPlanError, R>> for Error
5635where
5636 R: Send + Sync + std::fmt::Debug + 'static,
5637{
5638 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::extend_training_plan::ExtendTrainingPlanError, R>) -> Self {
5639 match err {
5640 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5641 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5642 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5643 source: err.into(),
5644 }),
5645 }
5646 }
5647}
5648impl From<crate::operation::extend_training_plan::ExtendTrainingPlanError> for Error {
5649 fn from(err: crate::operation::extend_training_plan::ExtendTrainingPlanError) -> Self {
5650 match err {
5651 crate::operation::extend_training_plan::ExtendTrainingPlanError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5652 crate::operation::extend_training_plan::ExtendTrainingPlanError::Unhandled(inner) => Error::Unhandled(inner),
5653 }
5654 }
5655}
5656impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_fleet_report::GetDeviceFleetReportError, R>> for Error
5657where
5658 R: Send + Sync + std::fmt::Debug + 'static,
5659{
5660 fn from(
5661 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_fleet_report::GetDeviceFleetReportError, R>,
5662 ) -> Self {
5663 match err {
5664 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5665 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5666 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5667 source: err.into(),
5668 }),
5669 }
5670 }
5671}
5672impl From<crate::operation::get_device_fleet_report::GetDeviceFleetReportError> for Error {
5673 fn from(err: crate::operation::get_device_fleet_report::GetDeviceFleetReportError) -> Self {
5674 match err {
5675 crate::operation::get_device_fleet_report::GetDeviceFleetReportError::Unhandled(inner) => Error::Unhandled(inner),
5676 }
5677 }
5678}
5679impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError, R>> for Error
5680where
5681 R: Send + Sync + std::fmt::Debug + 'static,
5682{
5683 fn from(
5684 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError, R>,
5685 ) -> Self {
5686 match err {
5687 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5688 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5689 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5690 source: err.into(),
5691 }),
5692 }
5693 }
5694}
5695impl From<crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError> for Error {
5696 fn from(err: crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError) -> Self {
5697 match err {
5698 crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5699 crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
5700 }
5701 }
5702}
5703impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError, R>>
5704 for Error
5705where
5706 R: Send + Sync + std::fmt::Debug + 'static,
5707{
5708 fn from(
5709 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError, R>,
5710 ) -> Self {
5711 match err {
5712 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5713 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5714 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5715 source: err.into(),
5716 }),
5717 }
5718 }
5719}
5720impl From<crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError> for Error {
5721 fn from(err: crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError) -> Self {
5722 match err {
5723 crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
5724 }
5725 }
5726}
5727impl<R>
5728 From<
5729 ::aws_smithy_runtime_api::client::result::SdkError<
5730 crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError,
5731 R,
5732 >,
5733 > for Error
5734where
5735 R: Send + Sync + std::fmt::Debug + 'static,
5736{
5737 fn from(
5738 err: ::aws_smithy_runtime_api::client::result::SdkError<
5739 crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError,
5740 R,
5741 >,
5742 ) -> Self {
5743 match err {
5744 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5745 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5746 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5747 source: err.into(),
5748 }),
5749 }
5750 }
5751}
5752impl From<crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError> for Error {
5753 fn from(err: crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError) -> Self {
5754 match err {
5755 crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError::Unhandled(inner) => {
5756 Error::Unhandled(inner)
5757 }
5758 }
5759 }
5760}
5761impl<R>
5762 From<
5763 ::aws_smithy_runtime_api::client::result::SdkError<
5764 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError,
5765 R,
5766 >,
5767 > for Error
5768where
5769 R: Send + Sync + std::fmt::Debug + 'static,
5770{
5771 fn from(
5772 err: ::aws_smithy_runtime_api::client::result::SdkError<
5773 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError,
5774 R,
5775 >,
5776 ) -> Self {
5777 match err {
5778 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5779 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5780 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5781 source: err.into(),
5782 }),
5783 }
5784 }
5785}
5786impl From<crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError> for Error {
5787 fn from(err: crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError) -> Self {
5788 match err {
5789 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError::ResourceNotFound(inner) => {
5790 Error::ResourceNotFound(inner)
5791 }
5792 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError::Unhandled(inner) => {
5793 Error::Unhandled(inner)
5794 }
5795 }
5796 }
5797}
5798impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_search_suggestions::GetSearchSuggestionsError, R>> for Error
5799where
5800 R: Send + Sync + std::fmt::Debug + 'static,
5801{
5802 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_search_suggestions::GetSearchSuggestionsError, R>) -> Self {
5803 match err {
5804 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5805 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5806 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5807 source: err.into(),
5808 }),
5809 }
5810 }
5811}
5812impl From<crate::operation::get_search_suggestions::GetSearchSuggestionsError> for Error {
5813 fn from(err: crate::operation::get_search_suggestions::GetSearchSuggestionsError) -> Self {
5814 match err {
5815 crate::operation::get_search_suggestions::GetSearchSuggestionsError::Unhandled(inner) => Error::Unhandled(inner),
5816 }
5817 }
5818}
5819impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_hub_content::ImportHubContentError, R>> for Error
5820where
5821 R: Send + Sync + std::fmt::Debug + 'static,
5822{
5823 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_hub_content::ImportHubContentError, R>) -> Self {
5824 match err {
5825 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5826 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5827 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5828 source: err.into(),
5829 }),
5830 }
5831 }
5832}
5833impl From<crate::operation::import_hub_content::ImportHubContentError> for Error {
5834 fn from(err: crate::operation::import_hub_content::ImportHubContentError) -> Self {
5835 match err {
5836 crate::operation::import_hub_content::ImportHubContentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
5837 crate::operation::import_hub_content::ImportHubContentError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
5838 crate::operation::import_hub_content::ImportHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5839 crate::operation::import_hub_content::ImportHubContentError::Unhandled(inner) => Error::Unhandled(inner),
5840 }
5841 }
5842}
5843impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_actions::ListActionsError, R>> for Error
5844where
5845 R: Send + Sync + std::fmt::Debug + 'static,
5846{
5847 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_actions::ListActionsError, R>) -> Self {
5848 match err {
5849 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5850 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5851 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5852 source: err.into(),
5853 }),
5854 }
5855 }
5856}
5857impl From<crate::operation::list_actions::ListActionsError> for Error {
5858 fn from(err: crate::operation::list_actions::ListActionsError) -> Self {
5859 match err {
5860 crate::operation::list_actions::ListActionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5861 crate::operation::list_actions::ListActionsError::Unhandled(inner) => Error::Unhandled(inner),
5862 }
5863 }
5864}
5865impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ai_benchmark_jobs::ListAIBenchmarkJobsError, R>> for Error
5866where
5867 R: Send + Sync + std::fmt::Debug + 'static,
5868{
5869 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ai_benchmark_jobs::ListAIBenchmarkJobsError, R>) -> Self {
5870 match err {
5871 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5872 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5873 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5874 source: err.into(),
5875 }),
5876 }
5877 }
5878}
5879impl From<crate::operation::list_ai_benchmark_jobs::ListAIBenchmarkJobsError> for Error {
5880 fn from(err: crate::operation::list_ai_benchmark_jobs::ListAIBenchmarkJobsError) -> Self {
5881 match err {
5882 crate::operation::list_ai_benchmark_jobs::ListAIBenchmarkJobsError::Unhandled(inner) => Error::Unhandled(inner),
5883 }
5884 }
5885}
5886impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ai_recommendation_jobs::ListAIRecommendationJobsError, R>>
5887 for Error
5888where
5889 R: Send + Sync + std::fmt::Debug + 'static,
5890{
5891 fn from(
5892 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ai_recommendation_jobs::ListAIRecommendationJobsError, R>,
5893 ) -> Self {
5894 match err {
5895 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5896 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5897 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5898 source: err.into(),
5899 }),
5900 }
5901 }
5902}
5903impl From<crate::operation::list_ai_recommendation_jobs::ListAIRecommendationJobsError> for Error {
5904 fn from(err: crate::operation::list_ai_recommendation_jobs::ListAIRecommendationJobsError) -> Self {
5905 match err {
5906 crate::operation::list_ai_recommendation_jobs::ListAIRecommendationJobsError::Unhandled(inner) => Error::Unhandled(inner),
5907 }
5908 }
5909}
5910impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ai_workload_configs::ListAIWorkloadConfigsError, R>> for Error
5911where
5912 R: Send + Sync + std::fmt::Debug + 'static,
5913{
5914 fn from(
5915 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ai_workload_configs::ListAIWorkloadConfigsError, R>,
5916 ) -> Self {
5917 match err {
5918 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5919 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5920 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5921 source: err.into(),
5922 }),
5923 }
5924 }
5925}
5926impl From<crate::operation::list_ai_workload_configs::ListAIWorkloadConfigsError> for Error {
5927 fn from(err: crate::operation::list_ai_workload_configs::ListAIWorkloadConfigsError) -> Self {
5928 match err {
5929 crate::operation::list_ai_workload_configs::ListAIWorkloadConfigsError::Unhandled(inner) => Error::Unhandled(inner),
5930 }
5931 }
5932}
5933impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_algorithms::ListAlgorithmsError, R>> for Error
5934where
5935 R: Send + Sync + std::fmt::Debug + 'static,
5936{
5937 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_algorithms::ListAlgorithmsError, R>) -> Self {
5938 match err {
5939 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5940 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5941 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5942 source: err.into(),
5943 }),
5944 }
5945 }
5946}
5947impl From<crate::operation::list_algorithms::ListAlgorithmsError> for Error {
5948 fn from(err: crate::operation::list_algorithms::ListAlgorithmsError) -> Self {
5949 match err {
5950 crate::operation::list_algorithms::ListAlgorithmsError::Unhandled(inner) => Error::Unhandled(inner),
5951 }
5952 }
5953}
5954impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aliases::ListAliasesError, R>> for Error
5955where
5956 R: Send + Sync + std::fmt::Debug + 'static,
5957{
5958 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aliases::ListAliasesError, R>) -> Self {
5959 match err {
5960 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5961 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5962 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5963 source: err.into(),
5964 }),
5965 }
5966 }
5967}
5968impl From<crate::operation::list_aliases::ListAliasesError> for Error {
5969 fn from(err: crate::operation::list_aliases::ListAliasesError) -> Self {
5970 match err {
5971 crate::operation::list_aliases::ListAliasesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5972 crate::operation::list_aliases::ListAliasesError::Unhandled(inner) => Error::Unhandled(inner),
5973 }
5974 }
5975}
5976impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_app_image_configs::ListAppImageConfigsError, R>> for Error
5977where
5978 R: Send + Sync + std::fmt::Debug + 'static,
5979{
5980 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_app_image_configs::ListAppImageConfigsError, R>) -> Self {
5981 match err {
5982 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5983 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5984 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5985 source: err.into(),
5986 }),
5987 }
5988 }
5989}
5990impl From<crate::operation::list_app_image_configs::ListAppImageConfigsError> for Error {
5991 fn from(err: crate::operation::list_app_image_configs::ListAppImageConfigsError) -> Self {
5992 match err {
5993 crate::operation::list_app_image_configs::ListAppImageConfigsError::Unhandled(inner) => Error::Unhandled(inner),
5994 }
5995 }
5996}
5997impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_apps::ListAppsError, R>> for Error
5998where
5999 R: Send + Sync + std::fmt::Debug + 'static,
6000{
6001 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_apps::ListAppsError, R>) -> Self {
6002 match err {
6003 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6004 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6005 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6006 source: err.into(),
6007 }),
6008 }
6009 }
6010}
6011impl From<crate::operation::list_apps::ListAppsError> for Error {
6012 fn from(err: crate::operation::list_apps::ListAppsError) -> Self {
6013 match err {
6014 crate::operation::list_apps::ListAppsError::Unhandled(inner) => Error::Unhandled(inner),
6015 }
6016 }
6017}
6018impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_artifacts::ListArtifactsError, R>> for Error
6019where
6020 R: Send + Sync + std::fmt::Debug + 'static,
6021{
6022 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_artifacts::ListArtifactsError, R>) -> Self {
6023 match err {
6024 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6025 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6026 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6027 source: err.into(),
6028 }),
6029 }
6030 }
6031}
6032impl From<crate::operation::list_artifacts::ListArtifactsError> for Error {
6033 fn from(err: crate::operation::list_artifacts::ListArtifactsError) -> Self {
6034 match err {
6035 crate::operation::list_artifacts::ListArtifactsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6036 crate::operation::list_artifacts::ListArtifactsError::Unhandled(inner) => Error::Unhandled(inner),
6037 }
6038 }
6039}
6040impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associations::ListAssociationsError, R>> for Error
6041where
6042 R: Send + Sync + std::fmt::Debug + 'static,
6043{
6044 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associations::ListAssociationsError, R>) -> Self {
6045 match err {
6046 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6047 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6048 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6049 source: err.into(),
6050 }),
6051 }
6052 }
6053}
6054impl From<crate::operation::list_associations::ListAssociationsError> for Error {
6055 fn from(err: crate::operation::list_associations::ListAssociationsError) -> Self {
6056 match err {
6057 crate::operation::list_associations::ListAssociationsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6058 crate::operation::list_associations::ListAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
6059 }
6060 }
6061}
6062impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_auto_ml_jobs::ListAutoMLJobsError, R>> for Error
6063where
6064 R: Send + Sync + std::fmt::Debug + 'static,
6065{
6066 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_auto_ml_jobs::ListAutoMLJobsError, R>) -> Self {
6067 match err {
6068 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6069 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6070 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6071 source: err.into(),
6072 }),
6073 }
6074 }
6075}
6076impl From<crate::operation::list_auto_ml_jobs::ListAutoMLJobsError> for Error {
6077 fn from(err: crate::operation::list_auto_ml_jobs::ListAutoMLJobsError) -> Self {
6078 match err {
6079 crate::operation::list_auto_ml_jobs::ListAutoMLJobsError::Unhandled(inner) => Error::Unhandled(inner),
6080 }
6081 }
6082}
6083impl<R>
6084 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError, R>>
6085 for Error
6086where
6087 R: Send + Sync + std::fmt::Debug + 'static,
6088{
6089 fn from(
6090 err: ::aws_smithy_runtime_api::client::result::SdkError<
6091 crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError,
6092 R,
6093 >,
6094 ) -> Self {
6095 match err {
6096 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6097 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6098 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6099 source: err.into(),
6100 }),
6101 }
6102 }
6103}
6104impl From<crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError> for Error {
6105 fn from(err: crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError) -> Self {
6106 match err {
6107 crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError::ResourceNotFound(inner) => {
6108 Error::ResourceNotFound(inner)
6109 }
6110 crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
6111 }
6112 }
6113}
6114impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_events::ListClusterEventsError, R>> for Error
6115where
6116 R: Send + Sync + std::fmt::Debug + 'static,
6117{
6118 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_events::ListClusterEventsError, R>) -> Self {
6119 match err {
6120 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6121 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6122 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6123 source: err.into(),
6124 }),
6125 }
6126 }
6127}
6128impl From<crate::operation::list_cluster_events::ListClusterEventsError> for Error {
6129 fn from(err: crate::operation::list_cluster_events::ListClusterEventsError) -> Self {
6130 match err {
6131 crate::operation::list_cluster_events::ListClusterEventsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6132 crate::operation::list_cluster_events::ListClusterEventsError::Unhandled(inner) => Error::Unhandled(inner),
6133 }
6134 }
6135}
6136impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_nodes::ListClusterNodesError, R>> for Error
6137where
6138 R: Send + Sync + std::fmt::Debug + 'static,
6139{
6140 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_nodes::ListClusterNodesError, R>) -> Self {
6141 match err {
6142 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6143 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6144 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6145 source: err.into(),
6146 }),
6147 }
6148 }
6149}
6150impl From<crate::operation::list_cluster_nodes::ListClusterNodesError> for Error {
6151 fn from(err: crate::operation::list_cluster_nodes::ListClusterNodesError) -> Self {
6152 match err {
6153 crate::operation::list_cluster_nodes::ListClusterNodesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6154 crate::operation::list_cluster_nodes::ListClusterNodesError::Unhandled(inner) => Error::Unhandled(inner),
6155 }
6156 }
6157}
6158impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_clusters::ListClustersError, R>> for Error
6159where
6160 R: Send + Sync + std::fmt::Debug + 'static,
6161{
6162 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_clusters::ListClustersError, R>) -> Self {
6163 match err {
6164 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6165 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6166 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6167 source: err.into(),
6168 }),
6169 }
6170 }
6171}
6172impl From<crate::operation::list_clusters::ListClustersError> for Error {
6173 fn from(err: crate::operation::list_clusters::ListClustersError) -> Self {
6174 match err {
6175 crate::operation::list_clusters::ListClustersError::Unhandled(inner) => Error::Unhandled(inner),
6176 }
6177 }
6178}
6179impl<R>
6180 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError, R>>
6181 for Error
6182where
6183 R: Send + Sync + std::fmt::Debug + 'static,
6184{
6185 fn from(
6186 err: ::aws_smithy_runtime_api::client::result::SdkError<
6187 crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError,
6188 R,
6189 >,
6190 ) -> Self {
6191 match err {
6192 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6193 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6194 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6195 source: err.into(),
6196 }),
6197 }
6198 }
6199}
6200impl From<crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError> for Error {
6201 fn from(err: crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError) -> Self {
6202 match err {
6203 crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError::Unhandled(inner) => Error::Unhandled(inner),
6204 }
6205 }
6206}
6207impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_repositories::ListCodeRepositoriesError, R>> for Error
6208where
6209 R: Send + Sync + std::fmt::Debug + 'static,
6210{
6211 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_repositories::ListCodeRepositoriesError, R>) -> Self {
6212 match err {
6213 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6214 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6215 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6216 source: err.into(),
6217 }),
6218 }
6219 }
6220}
6221impl From<crate::operation::list_code_repositories::ListCodeRepositoriesError> for Error {
6222 fn from(err: crate::operation::list_code_repositories::ListCodeRepositoriesError) -> Self {
6223 match err {
6224 crate::operation::list_code_repositories::ListCodeRepositoriesError::Unhandled(inner) => Error::Unhandled(inner),
6225 }
6226 }
6227}
6228impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compilation_jobs::ListCompilationJobsError, R>> for Error
6229where
6230 R: Send + Sync + std::fmt::Debug + 'static,
6231{
6232 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compilation_jobs::ListCompilationJobsError, R>) -> Self {
6233 match err {
6234 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6235 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6236 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6237 source: err.into(),
6238 }),
6239 }
6240 }
6241}
6242impl From<crate::operation::list_compilation_jobs::ListCompilationJobsError> for Error {
6243 fn from(err: crate::operation::list_compilation_jobs::ListCompilationJobsError) -> Self {
6244 match err {
6245 crate::operation::list_compilation_jobs::ListCompilationJobsError::Unhandled(inner) => Error::Unhandled(inner),
6246 }
6247 }
6248}
6249impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compute_quotas::ListComputeQuotasError, R>> for Error
6250where
6251 R: Send + Sync + std::fmt::Debug + 'static,
6252{
6253 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compute_quotas::ListComputeQuotasError, R>) -> Self {
6254 match err {
6255 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6256 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6257 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6258 source: err.into(),
6259 }),
6260 }
6261 }
6262}
6263impl From<crate::operation::list_compute_quotas::ListComputeQuotasError> for Error {
6264 fn from(err: crate::operation::list_compute_quotas::ListComputeQuotasError) -> Self {
6265 match err {
6266 crate::operation::list_compute_quotas::ListComputeQuotasError::Unhandled(inner) => Error::Unhandled(inner),
6267 }
6268 }
6269}
6270impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contexts::ListContextsError, R>> for Error
6271where
6272 R: Send + Sync + std::fmt::Debug + 'static,
6273{
6274 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contexts::ListContextsError, R>) -> Self {
6275 match err {
6276 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6277 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6278 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6279 source: err.into(),
6280 }),
6281 }
6282 }
6283}
6284impl From<crate::operation::list_contexts::ListContextsError> for Error {
6285 fn from(err: crate::operation::list_contexts::ListContextsError) -> Self {
6286 match err {
6287 crate::operation::list_contexts::ListContextsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6288 crate::operation::list_contexts::ListContextsError::Unhandled(inner) => Error::Unhandled(inner),
6289 }
6290 }
6291}
6292impl<R>
6293 From<
6294 ::aws_smithy_runtime_api::client::result::SdkError<
6295 crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError,
6296 R,
6297 >,
6298 > for Error
6299where
6300 R: Send + Sync + std::fmt::Debug + 'static,
6301{
6302 fn from(
6303 err: ::aws_smithy_runtime_api::client::result::SdkError<
6304 crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError,
6305 R,
6306 >,
6307 ) -> Self {
6308 match err {
6309 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6310 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6311 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6312 source: err.into(),
6313 }),
6314 }
6315 }
6316}
6317impl From<crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError> for Error {
6318 fn from(err: crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError) -> Self {
6319 match err {
6320 crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
6321 }
6322 }
6323}
6324impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_fleets::ListDeviceFleetsError, R>> for Error
6325where
6326 R: Send + Sync + std::fmt::Debug + 'static,
6327{
6328 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_fleets::ListDeviceFleetsError, R>) -> Self {
6329 match err {
6330 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6331 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6332 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6333 source: err.into(),
6334 }),
6335 }
6336 }
6337}
6338impl From<crate::operation::list_device_fleets::ListDeviceFleetsError> for Error {
6339 fn from(err: crate::operation::list_device_fleets::ListDeviceFleetsError) -> Self {
6340 match err {
6341 crate::operation::list_device_fleets::ListDeviceFleetsError::Unhandled(inner) => Error::Unhandled(inner),
6342 }
6343 }
6344}
6345impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices::ListDevicesError, R>> for Error
6346where
6347 R: Send + Sync + std::fmt::Debug + 'static,
6348{
6349 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices::ListDevicesError, R>) -> Self {
6350 match err {
6351 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6352 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6353 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6354 source: err.into(),
6355 }),
6356 }
6357 }
6358}
6359impl From<crate::operation::list_devices::ListDevicesError> for Error {
6360 fn from(err: crate::operation::list_devices::ListDevicesError) -> Self {
6361 match err {
6362 crate::operation::list_devices::ListDevicesError::Unhandled(inner) => Error::Unhandled(inner),
6363 }
6364 }
6365}
6366impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>> for Error
6367where
6368 R: Send + Sync + std::fmt::Debug + 'static,
6369{
6370 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>) -> Self {
6371 match err {
6372 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6373 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6374 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6375 source: err.into(),
6376 }),
6377 }
6378 }
6379}
6380impl From<crate::operation::list_domains::ListDomainsError> for Error {
6381 fn from(err: crate::operation::list_domains::ListDomainsError) -> Self {
6382 match err {
6383 crate::operation::list_domains::ListDomainsError::Unhandled(inner) => Error::Unhandled(inner),
6384 }
6385 }
6386}
6387impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError, R>>
6388 for Error
6389where
6390 R: Send + Sync + std::fmt::Debug + 'static,
6391{
6392 fn from(
6393 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError, R>,
6394 ) -> Self {
6395 match err {
6396 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6397 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6398 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6399 source: err.into(),
6400 }),
6401 }
6402 }
6403}
6404impl From<crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError> for Error {
6405 fn from(err: crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError) -> Self {
6406 match err {
6407 crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError::Unhandled(inner) => Error::Unhandled(inner),
6408 }
6409 }
6410}
6411impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError, R>> for Error
6412where
6413 R: Send + Sync + std::fmt::Debug + 'static,
6414{
6415 fn from(
6416 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError, R>,
6417 ) -> Self {
6418 match err {
6419 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6420 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6421 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6422 source: err.into(),
6423 }),
6424 }
6425 }
6426}
6427impl From<crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError> for Error {
6428 fn from(err: crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError) -> Self {
6429 match err {
6430 crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError::Unhandled(inner) => Error::Unhandled(inner),
6431 }
6432 }
6433}
6434impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoint_configs::ListEndpointConfigsError, R>> for Error
6435where
6436 R: Send + Sync + std::fmt::Debug + 'static,
6437{
6438 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoint_configs::ListEndpointConfigsError, R>) -> Self {
6439 match err {
6440 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6441 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6442 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6443 source: err.into(),
6444 }),
6445 }
6446 }
6447}
6448impl From<crate::operation::list_endpoint_configs::ListEndpointConfigsError> for Error {
6449 fn from(err: crate::operation::list_endpoint_configs::ListEndpointConfigsError) -> Self {
6450 match err {
6451 crate::operation::list_endpoint_configs::ListEndpointConfigsError::Unhandled(inner) => Error::Unhandled(inner),
6452 }
6453 }
6454}
6455impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoints::ListEndpointsError, R>> for Error
6456where
6457 R: Send + Sync + std::fmt::Debug + 'static,
6458{
6459 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoints::ListEndpointsError, R>) -> Self {
6460 match err {
6461 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6462 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6463 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6464 source: err.into(),
6465 }),
6466 }
6467 }
6468}
6469impl From<crate::operation::list_endpoints::ListEndpointsError> for Error {
6470 fn from(err: crate::operation::list_endpoints::ListEndpointsError) -> Self {
6471 match err {
6472 crate::operation::list_endpoints::ListEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
6473 }
6474 }
6475}
6476impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_experiments::ListExperimentsError, R>> for Error
6477where
6478 R: Send + Sync + std::fmt::Debug + 'static,
6479{
6480 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_experiments::ListExperimentsError, R>) -> Self {
6481 match err {
6482 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6483 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6484 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6485 source: err.into(),
6486 }),
6487 }
6488 }
6489}
6490impl From<crate::operation::list_experiments::ListExperimentsError> for Error {
6491 fn from(err: crate::operation::list_experiments::ListExperimentsError) -> Self {
6492 match err {
6493 crate::operation::list_experiments::ListExperimentsError::Unhandled(inner) => Error::Unhandled(inner),
6494 }
6495 }
6496}
6497impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_feature_groups::ListFeatureGroupsError, R>> for Error
6498where
6499 R: Send + Sync + std::fmt::Debug + 'static,
6500{
6501 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_feature_groups::ListFeatureGroupsError, R>) -> Self {
6502 match err {
6503 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6504 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6505 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6506 source: err.into(),
6507 }),
6508 }
6509 }
6510}
6511impl From<crate::operation::list_feature_groups::ListFeatureGroupsError> for Error {
6512 fn from(err: crate::operation::list_feature_groups::ListFeatureGroupsError) -> Self {
6513 match err {
6514 crate::operation::list_feature_groups::ListFeatureGroupsError::Unhandled(inner) => Error::Unhandled(inner),
6515 }
6516 }
6517}
6518impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_definitions::ListFlowDefinitionsError, R>> for Error
6519where
6520 R: Send + Sync + std::fmt::Debug + 'static,
6521{
6522 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_definitions::ListFlowDefinitionsError, R>) -> Self {
6523 match err {
6524 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6525 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6526 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6527 source: err.into(),
6528 }),
6529 }
6530 }
6531}
6532impl From<crate::operation::list_flow_definitions::ListFlowDefinitionsError> for Error {
6533 fn from(err: crate::operation::list_flow_definitions::ListFlowDefinitionsError) -> Self {
6534 match err {
6535 crate::operation::list_flow_definitions::ListFlowDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
6536 }
6537 }
6538}
6539impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_contents::ListHubContentsError, R>> for Error
6540where
6541 R: Send + Sync + std::fmt::Debug + 'static,
6542{
6543 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_contents::ListHubContentsError, R>) -> Self {
6544 match err {
6545 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6546 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6547 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6548 source: err.into(),
6549 }),
6550 }
6551 }
6552}
6553impl From<crate::operation::list_hub_contents::ListHubContentsError> for Error {
6554 fn from(err: crate::operation::list_hub_contents::ListHubContentsError) -> Self {
6555 match err {
6556 crate::operation::list_hub_contents::ListHubContentsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6557 crate::operation::list_hub_contents::ListHubContentsError::Unhandled(inner) => Error::Unhandled(inner),
6558 }
6559 }
6560}
6561impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_content_versions::ListHubContentVersionsError, R>>
6562 for Error
6563where
6564 R: Send + Sync + std::fmt::Debug + 'static,
6565{
6566 fn from(
6567 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_content_versions::ListHubContentVersionsError, R>,
6568 ) -> Self {
6569 match err {
6570 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6571 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6572 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6573 source: err.into(),
6574 }),
6575 }
6576 }
6577}
6578impl From<crate::operation::list_hub_content_versions::ListHubContentVersionsError> for Error {
6579 fn from(err: crate::operation::list_hub_content_versions::ListHubContentVersionsError) -> Self {
6580 match err {
6581 crate::operation::list_hub_content_versions::ListHubContentVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6582 crate::operation::list_hub_content_versions::ListHubContentVersionsError::Unhandled(inner) => Error::Unhandled(inner),
6583 }
6584 }
6585}
6586impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hubs::ListHubsError, R>> for Error
6587where
6588 R: Send + Sync + std::fmt::Debug + 'static,
6589{
6590 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hubs::ListHubsError, R>) -> Self {
6591 match err {
6592 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6593 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6594 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6595 source: err.into(),
6596 }),
6597 }
6598 }
6599}
6600impl From<crate::operation::list_hubs::ListHubsError> for Error {
6601 fn from(err: crate::operation::list_hubs::ListHubsError) -> Self {
6602 match err {
6603 crate::operation::list_hubs::ListHubsError::Unhandled(inner) => Error::Unhandled(inner),
6604 }
6605 }
6606}
6607impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_human_task_uis::ListHumanTaskUisError, R>> for Error
6608where
6609 R: Send + Sync + std::fmt::Debug + 'static,
6610{
6611 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_human_task_uis::ListHumanTaskUisError, R>) -> Self {
6612 match err {
6613 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6614 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6615 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6616 source: err.into(),
6617 }),
6618 }
6619 }
6620}
6621impl From<crate::operation::list_human_task_uis::ListHumanTaskUisError> for Error {
6622 fn from(err: crate::operation::list_human_task_uis::ListHumanTaskUisError) -> Self {
6623 match err {
6624 crate::operation::list_human_task_uis::ListHumanTaskUisError::Unhandled(inner) => Error::Unhandled(inner),
6625 }
6626 }
6627}
6628impl<R>
6629 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError, R>>
6630 for Error
6631where
6632 R: Send + Sync + std::fmt::Debug + 'static,
6633{
6634 fn from(
6635 err: ::aws_smithy_runtime_api::client::result::SdkError<
6636 crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError,
6637 R,
6638 >,
6639 ) -> 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_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError> for Error {
6650 fn from(err: crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError) -> Self {
6651 match err {
6652 crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError::Unhandled(inner) => Error::Unhandled(inner),
6653 }
6654 }
6655}
6656impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images::ListImagesError, R>> for Error
6657where
6658 R: Send + Sync + std::fmt::Debug + 'static,
6659{
6660 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images::ListImagesError, R>) -> Self {
6661 match err {
6662 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6663 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6664 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6665 source: err.into(),
6666 }),
6667 }
6668 }
6669}
6670impl From<crate::operation::list_images::ListImagesError> for Error {
6671 fn from(err: crate::operation::list_images::ListImagesError) -> Self {
6672 match err {
6673 crate::operation::list_images::ListImagesError::Unhandled(inner) => Error::Unhandled(inner),
6674 }
6675 }
6676}
6677impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_image_versions::ListImageVersionsError, R>> for Error
6678where
6679 R: Send + Sync + std::fmt::Debug + 'static,
6680{
6681 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_image_versions::ListImageVersionsError, R>) -> Self {
6682 match err {
6683 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6684 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6685 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6686 source: err.into(),
6687 }),
6688 }
6689 }
6690}
6691impl From<crate::operation::list_image_versions::ListImageVersionsError> for Error {
6692 fn from(err: crate::operation::list_image_versions::ListImageVersionsError) -> Self {
6693 match err {
6694 crate::operation::list_image_versions::ListImageVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6695 crate::operation::list_image_versions::ListImageVersionsError::Unhandled(inner) => Error::Unhandled(inner),
6696 }
6697 }
6698}
6699impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_components::ListInferenceComponentsError, R>>
6700 for Error
6701where
6702 R: Send + Sync + std::fmt::Debug + 'static,
6703{
6704 fn from(
6705 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_components::ListInferenceComponentsError, R>,
6706 ) -> Self {
6707 match err {
6708 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6709 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6710 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6711 source: err.into(),
6712 }),
6713 }
6714 }
6715}
6716impl From<crate::operation::list_inference_components::ListInferenceComponentsError> for Error {
6717 fn from(err: crate::operation::list_inference_components::ListInferenceComponentsError) -> Self {
6718 match err {
6719 crate::operation::list_inference_components::ListInferenceComponentsError::Unhandled(inner) => Error::Unhandled(inner),
6720 }
6721 }
6722}
6723impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_experiments::ListInferenceExperimentsError, R>>
6724 for Error
6725where
6726 R: Send + Sync + std::fmt::Debug + 'static,
6727{
6728 fn from(
6729 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_experiments::ListInferenceExperimentsError, R>,
6730 ) -> Self {
6731 match err {
6732 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6733 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6734 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6735 source: err.into(),
6736 }),
6737 }
6738 }
6739}
6740impl From<crate::operation::list_inference_experiments::ListInferenceExperimentsError> for Error {
6741 fn from(err: crate::operation::list_inference_experiments::ListInferenceExperimentsError) -> Self {
6742 match err {
6743 crate::operation::list_inference_experiments::ListInferenceExperimentsError::Unhandled(inner) => Error::Unhandled(inner),
6744 }
6745 }
6746}
6747impl<R>
6748 From<
6749 ::aws_smithy_runtime_api::client::result::SdkError<
6750 crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError,
6751 R,
6752 >,
6753 > for Error
6754where
6755 R: Send + Sync + std::fmt::Debug + 'static,
6756{
6757 fn from(
6758 err: ::aws_smithy_runtime_api::client::result::SdkError<
6759 crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError,
6760 R,
6761 >,
6762 ) -> Self {
6763 match err {
6764 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6765 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6766 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6767 source: err.into(),
6768 }),
6769 }
6770 }
6771}
6772impl From<crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError> for Error {
6773 fn from(err: crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError) -> Self {
6774 match err {
6775 crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError::Unhandled(inner) => Error::Unhandled(inner),
6776 }
6777 }
6778}
6779impl<R>
6780 From<
6781 ::aws_smithy_runtime_api::client::result::SdkError<
6782 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError,
6783 R,
6784 >,
6785 > for Error
6786where
6787 R: Send + Sync + std::fmt::Debug + 'static,
6788{
6789 fn from(
6790 err: ::aws_smithy_runtime_api::client::result::SdkError<
6791 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError,
6792 R,
6793 >,
6794 ) -> Self {
6795 match err {
6796 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6797 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6798 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6799 source: err.into(),
6800 }),
6801 }
6802 }
6803}
6804impl From<crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError> for Error {
6805 fn from(err: crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError) -> Self {
6806 match err {
6807 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError::ResourceNotFound(inner) => {
6808 Error::ResourceNotFound(inner)
6809 }
6810 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError::Unhandled(inner) => {
6811 Error::Unhandled(inner)
6812 }
6813 }
6814 }
6815}
6816impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_labeling_jobs::ListLabelingJobsError, R>> for Error
6817where
6818 R: Send + Sync + std::fmt::Debug + 'static,
6819{
6820 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_labeling_jobs::ListLabelingJobsError, R>) -> Self {
6821 match err {
6822 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6823 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6824 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6825 source: err.into(),
6826 }),
6827 }
6828 }
6829}
6830impl From<crate::operation::list_labeling_jobs::ListLabelingJobsError> for Error {
6831 fn from(err: crate::operation::list_labeling_jobs::ListLabelingJobsError) -> Self {
6832 match err {
6833 crate::operation::list_labeling_jobs::ListLabelingJobsError::Unhandled(inner) => Error::Unhandled(inner),
6834 }
6835 }
6836}
6837impl<R>
6838 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError, R>>
6839 for Error
6840where
6841 R: Send + Sync + std::fmt::Debug + 'static,
6842{
6843 fn from(
6844 err: ::aws_smithy_runtime_api::client::result::SdkError<
6845 crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError,
6846 R,
6847 >,
6848 ) -> Self {
6849 match err {
6850 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6851 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6852 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6853 source: err.into(),
6854 }),
6855 }
6856 }
6857}
6858impl From<crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError> for Error {
6859 fn from(err: crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError) -> Self {
6860 match err {
6861 crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError::ResourceNotFound(inner) => {
6862 Error::ResourceNotFound(inner)
6863 }
6864 crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
6865 }
6866 }
6867}
6868impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lineage_groups::ListLineageGroupsError, R>> for Error
6869where
6870 R: Send + Sync + std::fmt::Debug + 'static,
6871{
6872 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lineage_groups::ListLineageGroupsError, R>) -> Self {
6873 match err {
6874 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6875 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6876 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6877 source: err.into(),
6878 }),
6879 }
6880 }
6881}
6882impl From<crate::operation::list_lineage_groups::ListLineageGroupsError> for Error {
6883 fn from(err: crate::operation::list_lineage_groups::ListLineageGroupsError) -> Self {
6884 match err {
6885 crate::operation::list_lineage_groups::ListLineageGroupsError::Unhandled(inner) => Error::Unhandled(inner),
6886 }
6887 }
6888}
6889impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mlflow_apps::ListMlflowAppsError, R>> for Error
6890where
6891 R: Send + Sync + std::fmt::Debug + 'static,
6892{
6893 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mlflow_apps::ListMlflowAppsError, R>) -> Self {
6894 match err {
6895 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6896 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6897 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6898 source: err.into(),
6899 }),
6900 }
6901 }
6902}
6903impl From<crate::operation::list_mlflow_apps::ListMlflowAppsError> for Error {
6904 fn from(err: crate::operation::list_mlflow_apps::ListMlflowAppsError) -> Self {
6905 match err {
6906 crate::operation::list_mlflow_apps::ListMlflowAppsError::Unhandled(inner) => Error::Unhandled(inner),
6907 }
6908 }
6909}
6910impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError, R>>
6911 for Error
6912where
6913 R: Send + Sync + std::fmt::Debug + 'static,
6914{
6915 fn from(
6916 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError, R>,
6917 ) -> Self {
6918 match err {
6919 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6920 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6921 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6922 source: err.into(),
6923 }),
6924 }
6925 }
6926}
6927impl From<crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError> for Error {
6928 fn from(err: crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError) -> Self {
6929 match err {
6930 crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError::Unhandled(inner) => Error::Unhandled(inner),
6931 }
6932 }
6933}
6934impl<R>
6935 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError, R>>
6936 for Error
6937where
6938 R: Send + Sync + std::fmt::Debug + 'static,
6939{
6940 fn from(
6941 err: ::aws_smithy_runtime_api::client::result::SdkError<
6942 crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError,
6943 R,
6944 >,
6945 ) -> Self {
6946 match err {
6947 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6948 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6949 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6950 source: err.into(),
6951 }),
6952 }
6953 }
6954}
6955impl From<crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError> for Error {
6956 fn from(err: crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError) -> Self {
6957 match err {
6958 crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
6959 }
6960 }
6961}
6962impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError, R>>
6963 for Error
6964where
6965 R: Send + Sync + std::fmt::Debug + 'static,
6966{
6967 fn from(
6968 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError, R>,
6969 ) -> Self {
6970 match err {
6971 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6972 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6973 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6974 source: err.into(),
6975 }),
6976 }
6977 }
6978}
6979impl From<crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError> for Error {
6980 fn from(err: crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError) -> Self {
6981 match err {
6982 crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError::Unhandled(inner) => Error::Unhandled(inner),
6983 }
6984 }
6985}
6986impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_cards::ListModelCardsError, R>> for Error
6987where
6988 R: Send + Sync + std::fmt::Debug + 'static,
6989{
6990 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_cards::ListModelCardsError, R>) -> Self {
6991 match err {
6992 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6993 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6994 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6995 source: err.into(),
6996 }),
6997 }
6998 }
6999}
7000impl From<crate::operation::list_model_cards::ListModelCardsError> for Error {
7001 fn from(err: crate::operation::list_model_cards::ListModelCardsError) -> Self {
7002 match err {
7003 crate::operation::list_model_cards::ListModelCardsError::Unhandled(inner) => Error::Unhandled(inner),
7004 }
7005 }
7006}
7007impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_versions::ListModelCardVersionsError, R>> for Error
7008where
7009 R: Send + Sync + std::fmt::Debug + 'static,
7010{
7011 fn from(
7012 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_versions::ListModelCardVersionsError, R>,
7013 ) -> Self {
7014 match err {
7015 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7016 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7017 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7018 source: err.into(),
7019 }),
7020 }
7021 }
7022}
7023impl From<crate::operation::list_model_card_versions::ListModelCardVersionsError> for Error {
7024 fn from(err: crate::operation::list_model_card_versions::ListModelCardVersionsError) -> Self {
7025 match err {
7026 crate::operation::list_model_card_versions::ListModelCardVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7027 crate::operation::list_model_card_versions::ListModelCardVersionsError::Unhandled(inner) => Error::Unhandled(inner),
7028 }
7029 }
7030}
7031impl<R>
7032 From<
7033 ::aws_smithy_runtime_api::client::result::SdkError<
7034 crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError,
7035 R,
7036 >,
7037 > for Error
7038where
7039 R: Send + Sync + std::fmt::Debug + 'static,
7040{
7041 fn from(
7042 err: ::aws_smithy_runtime_api::client::result::SdkError<
7043 crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError,
7044 R,
7045 >,
7046 ) -> Self {
7047 match err {
7048 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7049 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7050 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7051 source: err.into(),
7052 }),
7053 }
7054 }
7055}
7056impl From<crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError> for Error {
7057 fn from(err: crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError) -> Self {
7058 match err {
7059 crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError::Unhandled(inner) => {
7060 Error::Unhandled(inner)
7061 }
7062 }
7063 }
7064}
7065impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_metadata::ListModelMetadataError, R>> for Error
7066where
7067 R: Send + Sync + std::fmt::Debug + 'static,
7068{
7069 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_metadata::ListModelMetadataError, R>) -> Self {
7070 match err {
7071 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7072 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7073 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7074 source: err.into(),
7075 }),
7076 }
7077 }
7078}
7079impl From<crate::operation::list_model_metadata::ListModelMetadataError> for Error {
7080 fn from(err: crate::operation::list_model_metadata::ListModelMetadataError) -> Self {
7081 match err {
7082 crate::operation::list_model_metadata::ListModelMetadataError::Unhandled(inner) => Error::Unhandled(inner),
7083 }
7084 }
7085}
7086impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_package_groups::ListModelPackageGroupsError, R>>
7087 for Error
7088where
7089 R: Send + Sync + std::fmt::Debug + 'static,
7090{
7091 fn from(
7092 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_package_groups::ListModelPackageGroupsError, R>,
7093 ) -> Self {
7094 match err {
7095 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7096 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7097 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7098 source: err.into(),
7099 }),
7100 }
7101 }
7102}
7103impl From<crate::operation::list_model_package_groups::ListModelPackageGroupsError> for Error {
7104 fn from(err: crate::operation::list_model_package_groups::ListModelPackageGroupsError) -> Self {
7105 match err {
7106 crate::operation::list_model_package_groups::ListModelPackageGroupsError::Unhandled(inner) => Error::Unhandled(inner),
7107 }
7108 }
7109}
7110impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_packages::ListModelPackagesError, R>> for Error
7111where
7112 R: Send + Sync + std::fmt::Debug + 'static,
7113{
7114 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_packages::ListModelPackagesError, R>) -> Self {
7115 match err {
7116 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7117 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7118 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7119 source: err.into(),
7120 }),
7121 }
7122 }
7123}
7124impl From<crate::operation::list_model_packages::ListModelPackagesError> for Error {
7125 fn from(err: crate::operation::list_model_packages::ListModelPackagesError) -> Self {
7126 match err {
7127 crate::operation::list_model_packages::ListModelPackagesError::Unhandled(inner) => Error::Unhandled(inner),
7128 }
7129 }
7130}
7131impl<R>
7132 From<
7133 ::aws_smithy_runtime_api::client::result::SdkError<
7134 crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError,
7135 R,
7136 >,
7137 > for Error
7138where
7139 R: Send + Sync + std::fmt::Debug + 'static,
7140{
7141 fn from(
7142 err: ::aws_smithy_runtime_api::client::result::SdkError<
7143 crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError,
7144 R,
7145 >,
7146 ) -> Self {
7147 match err {
7148 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7149 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7150 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7151 source: err.into(),
7152 }),
7153 }
7154 }
7155}
7156impl From<crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError> for Error {
7157 fn from(err: crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError) -> Self {
7158 match err {
7159 crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
7160 }
7161 }
7162}
7163impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_models::ListModelsError, R>> for Error
7164where
7165 R: Send + Sync + std::fmt::Debug + 'static,
7166{
7167 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_models::ListModelsError, R>) -> Self {
7168 match err {
7169 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7170 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7171 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7172 source: err.into(),
7173 }),
7174 }
7175 }
7176}
7177impl From<crate::operation::list_models::ListModelsError> for Error {
7178 fn from(err: crate::operation::list_models::ListModelsError) -> Self {
7179 match err {
7180 crate::operation::list_models::ListModelsError::Unhandled(inner) => Error::Unhandled(inner),
7181 }
7182 }
7183}
7184impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError, R>>
7185 for Error
7186where
7187 R: Send + Sync + std::fmt::Debug + 'static,
7188{
7189 fn from(
7190 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError, R>,
7191 ) -> Self {
7192 match err {
7193 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7194 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7195 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7196 source: err.into(),
7197 }),
7198 }
7199 }
7200}
7201impl From<crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError> for Error {
7202 fn from(err: crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError) -> Self {
7203 match err {
7204 crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError::ResourceNotFound(inner) => {
7205 Error::ResourceNotFound(inner)
7206 }
7207 crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError::Unhandled(inner) => Error::Unhandled(inner),
7208 }
7209 }
7210}
7211impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alerts::ListMonitoringAlertsError, R>> for Error
7212where
7213 R: Send + Sync + std::fmt::Debug + 'static,
7214{
7215 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alerts::ListMonitoringAlertsError, R>) -> Self {
7216 match err {
7217 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7218 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7219 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7220 source: err.into(),
7221 }),
7222 }
7223 }
7224}
7225impl From<crate::operation::list_monitoring_alerts::ListMonitoringAlertsError> for Error {
7226 fn from(err: crate::operation::list_monitoring_alerts::ListMonitoringAlertsError) -> Self {
7227 match err {
7228 crate::operation::list_monitoring_alerts::ListMonitoringAlertsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7229 crate::operation::list_monitoring_alerts::ListMonitoringAlertsError::Unhandled(inner) => Error::Unhandled(inner),
7230 }
7231 }
7232}
7233impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_executions::ListMonitoringExecutionsError, R>>
7234 for Error
7235where
7236 R: Send + Sync + std::fmt::Debug + 'static,
7237{
7238 fn from(
7239 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_executions::ListMonitoringExecutionsError, R>,
7240 ) -> Self {
7241 match err {
7242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7245 source: err.into(),
7246 }),
7247 }
7248 }
7249}
7250impl From<crate::operation::list_monitoring_executions::ListMonitoringExecutionsError> for Error {
7251 fn from(err: crate::operation::list_monitoring_executions::ListMonitoringExecutionsError) -> Self {
7252 match err {
7253 crate::operation::list_monitoring_executions::ListMonitoringExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
7254 }
7255 }
7256}
7257impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError, R>>
7258 for Error
7259where
7260 R: Send + Sync + std::fmt::Debug + 'static,
7261{
7262 fn from(
7263 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError, R>,
7264 ) -> Self {
7265 match err {
7266 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7267 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7268 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7269 source: err.into(),
7270 }),
7271 }
7272 }
7273}
7274impl From<crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError> for Error {
7275 fn from(err: crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError) -> Self {
7276 match err {
7277 crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError::Unhandled(inner) => Error::Unhandled(inner),
7278 }
7279 }
7280}
7281impl<R>
7282 From<
7283 ::aws_smithy_runtime_api::client::result::SdkError<
7284 crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError,
7285 R,
7286 >,
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::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError,
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::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError> for Error {
7307 fn from(err: crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError) -> Self {
7308 match err {
7309 crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError::Unhandled(inner) => {
7310 Error::Unhandled(inner)
7311 }
7312 }
7313 }
7314}
7315impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notebook_instances::ListNotebookInstancesError, R>> for Error
7316where
7317 R: Send + Sync + std::fmt::Debug + 'static,
7318{
7319 fn from(
7320 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notebook_instances::ListNotebookInstancesError, R>,
7321 ) -> Self {
7322 match err {
7323 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7324 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7325 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7326 source: err.into(),
7327 }),
7328 }
7329 }
7330}
7331impl From<crate::operation::list_notebook_instances::ListNotebookInstancesError> for Error {
7332 fn from(err: crate::operation::list_notebook_instances::ListNotebookInstancesError) -> Self {
7333 match err {
7334 crate::operation::list_notebook_instances::ListNotebookInstancesError::Unhandled(inner) => Error::Unhandled(inner),
7335 }
7336 }
7337}
7338impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_optimization_jobs::ListOptimizationJobsError, R>> for Error
7339where
7340 R: Send + Sync + std::fmt::Debug + 'static,
7341{
7342 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_optimization_jobs::ListOptimizationJobsError, R>) -> Self {
7343 match err {
7344 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7345 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7346 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7347 source: err.into(),
7348 }),
7349 }
7350 }
7351}
7352impl From<crate::operation::list_optimization_jobs::ListOptimizationJobsError> for Error {
7353 fn from(err: crate::operation::list_optimization_jobs::ListOptimizationJobsError) -> Self {
7354 match err {
7355 crate::operation::list_optimization_jobs::ListOptimizationJobsError::Unhandled(inner) => Error::Unhandled(inner),
7356 }
7357 }
7358}
7359impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_partner_apps::ListPartnerAppsError, R>> for Error
7360where
7361 R: Send + Sync + std::fmt::Debug + 'static,
7362{
7363 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_partner_apps::ListPartnerAppsError, R>) -> Self {
7364 match err {
7365 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7366 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7367 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7368 source: err.into(),
7369 }),
7370 }
7371 }
7372}
7373impl From<crate::operation::list_partner_apps::ListPartnerAppsError> for Error {
7374 fn from(err: crate::operation::list_partner_apps::ListPartnerAppsError) -> Self {
7375 match err {
7376 crate::operation::list_partner_apps::ListPartnerAppsError::Unhandled(inner) => Error::Unhandled(inner),
7377 }
7378 }
7379}
7380impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_executions::ListPipelineExecutionsError, R>> for Error
7381where
7382 R: Send + Sync + std::fmt::Debug + 'static,
7383{
7384 fn from(
7385 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_executions::ListPipelineExecutionsError, R>,
7386 ) -> Self {
7387 match err {
7388 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7389 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7390 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7391 source: err.into(),
7392 }),
7393 }
7394 }
7395}
7396impl From<crate::operation::list_pipeline_executions::ListPipelineExecutionsError> for Error {
7397 fn from(err: crate::operation::list_pipeline_executions::ListPipelineExecutionsError) -> Self {
7398 match err {
7399 crate::operation::list_pipeline_executions::ListPipelineExecutionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7400 crate::operation::list_pipeline_executions::ListPipelineExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
7401 }
7402 }
7403}
7404impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError, R>>
7405 for Error
7406where
7407 R: Send + Sync + std::fmt::Debug + 'static,
7408{
7409 fn from(
7410 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError, R>,
7411 ) -> Self {
7412 match err {
7413 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7414 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7415 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7416 source: err.into(),
7417 }),
7418 }
7419 }
7420}
7421impl From<crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError> for Error {
7422 fn from(err: crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError) -> Self {
7423 match err {
7424 crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError::ResourceNotFound(inner) => {
7425 Error::ResourceNotFound(inner)
7426 }
7427 crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError::Unhandled(inner) => Error::Unhandled(inner),
7428 }
7429 }
7430}
7431impl<R>
7432 From<
7433 ::aws_smithy_runtime_api::client::result::SdkError<
7434 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError,
7435 R,
7436 >,
7437 > for Error
7438where
7439 R: Send + Sync + std::fmt::Debug + 'static,
7440{
7441 fn from(
7442 err: ::aws_smithy_runtime_api::client::result::SdkError<
7443 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError,
7444 R,
7445 >,
7446 ) -> Self {
7447 match err {
7448 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7449 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7450 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7451 source: err.into(),
7452 }),
7453 }
7454 }
7455}
7456impl From<crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError> for Error {
7457 fn from(err: crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError) -> Self {
7458 match err {
7459 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError::ResourceNotFound(inner) => {
7460 Error::ResourceNotFound(inner)
7461 }
7462 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError::Unhandled(inner) => {
7463 Error::Unhandled(inner)
7464 }
7465 }
7466 }
7467}
7468impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipelines::ListPipelinesError, R>> for Error
7469where
7470 R: Send + Sync + std::fmt::Debug + 'static,
7471{
7472 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipelines::ListPipelinesError, R>) -> Self {
7473 match err {
7474 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7475 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7476 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7477 source: err.into(),
7478 }),
7479 }
7480 }
7481}
7482impl From<crate::operation::list_pipelines::ListPipelinesError> for Error {
7483 fn from(err: crate::operation::list_pipelines::ListPipelinesError) -> Self {
7484 match err {
7485 crate::operation::list_pipelines::ListPipelinesError::Unhandled(inner) => Error::Unhandled(inner),
7486 }
7487 }
7488}
7489impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_versions::ListPipelineVersionsError, R>> for Error
7490where
7491 R: Send + Sync + std::fmt::Debug + 'static,
7492{
7493 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_versions::ListPipelineVersionsError, R>) -> Self {
7494 match err {
7495 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7496 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7497 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7498 source: err.into(),
7499 }),
7500 }
7501 }
7502}
7503impl From<crate::operation::list_pipeline_versions::ListPipelineVersionsError> for Error {
7504 fn from(err: crate::operation::list_pipeline_versions::ListPipelineVersionsError) -> Self {
7505 match err {
7506 crate::operation::list_pipeline_versions::ListPipelineVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7507 crate::operation::list_pipeline_versions::ListPipelineVersionsError::Unhandled(inner) => Error::Unhandled(inner),
7508 }
7509 }
7510}
7511impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_processing_jobs::ListProcessingJobsError, R>> for Error
7512where
7513 R: Send + Sync + std::fmt::Debug + 'static,
7514{
7515 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_processing_jobs::ListProcessingJobsError, R>) -> Self {
7516 match err {
7517 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7518 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7519 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7520 source: err.into(),
7521 }),
7522 }
7523 }
7524}
7525impl From<crate::operation::list_processing_jobs::ListProcessingJobsError> for Error {
7526 fn from(err: crate::operation::list_processing_jobs::ListProcessingJobsError) -> Self {
7527 match err {
7528 crate::operation::list_processing_jobs::ListProcessingJobsError::Unhandled(inner) => Error::Unhandled(inner),
7529 }
7530 }
7531}
7532impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>> for Error
7533where
7534 R: Send + Sync + std::fmt::Debug + 'static,
7535{
7536 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>) -> Self {
7537 match err {
7538 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7539 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7540 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7541 source: err.into(),
7542 }),
7543 }
7544 }
7545}
7546impl From<crate::operation::list_projects::ListProjectsError> for Error {
7547 fn from(err: crate::operation::list_projects::ListProjectsError) -> Self {
7548 match err {
7549 crate::operation::list_projects::ListProjectsError::Unhandled(inner) => Error::Unhandled(inner),
7550 }
7551 }
7552}
7553impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_catalogs::ListResourceCatalogsError, R>> for Error
7554where
7555 R: Send + Sync + std::fmt::Debug + 'static,
7556{
7557 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_catalogs::ListResourceCatalogsError, R>) -> Self {
7558 match err {
7559 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7560 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7561 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7562 source: err.into(),
7563 }),
7564 }
7565 }
7566}
7567impl From<crate::operation::list_resource_catalogs::ListResourceCatalogsError> for Error {
7568 fn from(err: crate::operation::list_resource_catalogs::ListResourceCatalogsError) -> Self {
7569 match err {
7570 crate::operation::list_resource_catalogs::ListResourceCatalogsError::Unhandled(inner) => Error::Unhandled(inner),
7571 }
7572 }
7573}
7574impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces::ListSpacesError, R>> for Error
7575where
7576 R: Send + Sync + std::fmt::Debug + 'static,
7577{
7578 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces::ListSpacesError, R>) -> Self {
7579 match err {
7580 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7581 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7582 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7583 source: err.into(),
7584 }),
7585 }
7586 }
7587}
7588impl From<crate::operation::list_spaces::ListSpacesError> for Error {
7589 fn from(err: crate::operation::list_spaces::ListSpacesError) -> Self {
7590 match err {
7591 crate::operation::list_spaces::ListSpacesError::Unhandled(inner) => Error::Unhandled(inner),
7592 }
7593 }
7594}
7595impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stage_devices::ListStageDevicesError, R>> for Error
7596where
7597 R: Send + Sync + std::fmt::Debug + 'static,
7598{
7599 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stage_devices::ListStageDevicesError, R>) -> Self {
7600 match err {
7601 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7602 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7603 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7604 source: err.into(),
7605 }),
7606 }
7607 }
7608}
7609impl From<crate::operation::list_stage_devices::ListStageDevicesError> for Error {
7610 fn from(err: crate::operation::list_stage_devices::ListStageDevicesError) -> Self {
7611 match err {
7612 crate::operation::list_stage_devices::ListStageDevicesError::Unhandled(inner) => Error::Unhandled(inner),
7613 }
7614 }
7615}
7616impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError, R>>
7617 for Error
7618where
7619 R: Send + Sync + std::fmt::Debug + 'static,
7620{
7621 fn from(
7622 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError, R>,
7623 ) -> Self {
7624 match err {
7625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7628 source: err.into(),
7629 }),
7630 }
7631 }
7632}
7633impl From<crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError> for Error {
7634 fn from(err: crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError) -> Self {
7635 match err {
7636 crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError::ResourceInUse(inner) => Error::ResourceInUse(inner),
7637 crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError::Unhandled(inner) => Error::Unhandled(inner),
7638 }
7639 }
7640}
7641impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError, R>>
7642 for Error
7643where
7644 R: Send + Sync + std::fmt::Debug + 'static,
7645{
7646 fn from(
7647 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError, R>,
7648 ) -> Self {
7649 match err {
7650 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7651 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7652 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7653 source: err.into(),
7654 }),
7655 }
7656 }
7657}
7658impl From<crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError> for Error {
7659 fn from(err: crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError) -> Self {
7660 match err {
7661 crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError::Unhandled(inner) => Error::Unhandled(inner),
7662 }
7663 }
7664}
7665impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags::ListTagsError, R>> for Error
7666where
7667 R: Send + Sync + std::fmt::Debug + 'static,
7668{
7669 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags::ListTagsError, R>) -> Self {
7670 match err {
7671 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7672 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7673 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7674 source: err.into(),
7675 }),
7676 }
7677 }
7678}
7679impl From<crate::operation::list_tags::ListTagsError> for Error {
7680 fn from(err: crate::operation::list_tags::ListTagsError) -> Self {
7681 match err {
7682 crate::operation::list_tags::ListTagsError::Unhandled(inner) => Error::Unhandled(inner),
7683 }
7684 }
7685}
7686impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_jobs::ListTrainingJobsError, R>> for Error
7687where
7688 R: Send + Sync + std::fmt::Debug + 'static,
7689{
7690 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_jobs::ListTrainingJobsError, R>) -> Self {
7691 match err {
7692 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7693 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7694 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7695 source: err.into(),
7696 }),
7697 }
7698 }
7699}
7700impl From<crate::operation::list_training_jobs::ListTrainingJobsError> for Error {
7701 fn from(err: crate::operation::list_training_jobs::ListTrainingJobsError) -> Self {
7702 match err {
7703 crate::operation::list_training_jobs::ListTrainingJobsError::Unhandled(inner) => Error::Unhandled(inner),
7704 }
7705 }
7706}
7707impl<R>
7708 From<
7709 ::aws_smithy_runtime_api::client::result::SdkError<
7710 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError,
7711 R,
7712 >,
7713 > for Error
7714where
7715 R: Send + Sync + std::fmt::Debug + 'static,
7716{
7717 fn from(
7718 err: ::aws_smithy_runtime_api::client::result::SdkError<
7719 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError,
7720 R,
7721 >,
7722 ) -> Self {
7723 match err {
7724 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7725 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7726 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7727 source: err.into(),
7728 }),
7729 }
7730 }
7731}
7732impl From<crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError> for Error {
7733 fn from(err: crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError) -> Self {
7734 match err {
7735 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7736 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
7737 }
7738 }
7739}
7740impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_plans::ListTrainingPlansError, R>> for Error
7741where
7742 R: Send + Sync + std::fmt::Debug + 'static,
7743{
7744 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_plans::ListTrainingPlansError, R>) -> Self {
7745 match err {
7746 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7747 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7748 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7749 source: err.into(),
7750 }),
7751 }
7752 }
7753}
7754impl From<crate::operation::list_training_plans::ListTrainingPlansError> for Error {
7755 fn from(err: crate::operation::list_training_plans::ListTrainingPlansError) -> Self {
7756 match err {
7757 crate::operation::list_training_plans::ListTrainingPlansError::Unhandled(inner) => Error::Unhandled(inner),
7758 }
7759 }
7760}
7761impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_transform_jobs::ListTransformJobsError, R>> for Error
7762where
7763 R: Send + Sync + std::fmt::Debug + 'static,
7764{
7765 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_transform_jobs::ListTransformJobsError, R>) -> Self {
7766 match err {
7767 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7768 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7769 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7770 source: err.into(),
7771 }),
7772 }
7773 }
7774}
7775impl From<crate::operation::list_transform_jobs::ListTransformJobsError> for Error {
7776 fn from(err: crate::operation::list_transform_jobs::ListTransformJobsError) -> Self {
7777 match err {
7778 crate::operation::list_transform_jobs::ListTransformJobsError::Unhandled(inner) => Error::Unhandled(inner),
7779 }
7780 }
7781}
7782impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trial_components::ListTrialComponentsError, R>> for Error
7783where
7784 R: Send + Sync + std::fmt::Debug + 'static,
7785{
7786 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trial_components::ListTrialComponentsError, R>) -> Self {
7787 match err {
7788 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7789 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7790 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7791 source: err.into(),
7792 }),
7793 }
7794 }
7795}
7796impl From<crate::operation::list_trial_components::ListTrialComponentsError> for Error {
7797 fn from(err: crate::operation::list_trial_components::ListTrialComponentsError) -> Self {
7798 match err {
7799 crate::operation::list_trial_components::ListTrialComponentsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7800 crate::operation::list_trial_components::ListTrialComponentsError::Unhandled(inner) => Error::Unhandled(inner),
7801 }
7802 }
7803}
7804impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trials::ListTrialsError, R>> for Error
7805where
7806 R: Send + Sync + std::fmt::Debug + 'static,
7807{
7808 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trials::ListTrialsError, R>) -> Self {
7809 match err {
7810 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7811 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7812 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7813 source: err.into(),
7814 }),
7815 }
7816 }
7817}
7818impl From<crate::operation::list_trials::ListTrialsError> for Error {
7819 fn from(err: crate::operation::list_trials::ListTrialsError) -> Self {
7820 match err {
7821 crate::operation::list_trials::ListTrialsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7822 crate::operation::list_trials::ListTrialsError::Unhandled(inner) => Error::Unhandled(inner),
7823 }
7824 }
7825}
7826impl<R>
7827 From<
7828 ::aws_smithy_runtime_api::client::result::SdkError<
7829 crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError,
7830 R,
7831 >,
7832 > for Error
7833where
7834 R: Send + Sync + std::fmt::Debug + 'static,
7835{
7836 fn from(
7837 err: ::aws_smithy_runtime_api::client::result::SdkError<
7838 crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError,
7839 R,
7840 >,
7841 ) -> 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::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError> for Error {
7852 fn from(err: crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError) -> Self {
7853 match err {
7854 crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError::ResourceNotFound(inner) => {
7855 Error::ResourceNotFound(inner)
7856 }
7857 crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError::Unhandled(inner) => {
7858 Error::Unhandled(inner)
7859 }
7860 }
7861 }
7862}
7863impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_profiles::ListUserProfilesError, R>> for Error
7864where
7865 R: Send + Sync + std::fmt::Debug + 'static,
7866{
7867 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_profiles::ListUserProfilesError, R>) -> Self {
7868 match err {
7869 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7870 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7871 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7872 source: err.into(),
7873 }),
7874 }
7875 }
7876}
7877impl From<crate::operation::list_user_profiles::ListUserProfilesError> for Error {
7878 fn from(err: crate::operation::list_user_profiles::ListUserProfilesError) -> Self {
7879 match err {
7880 crate::operation::list_user_profiles::ListUserProfilesError::Unhandled(inner) => Error::Unhandled(inner),
7881 }
7882 }
7883}
7884impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workforces::ListWorkforcesError, R>> for Error
7885where
7886 R: Send + Sync + std::fmt::Debug + 'static,
7887{
7888 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workforces::ListWorkforcesError, R>) -> Self {
7889 match err {
7890 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7891 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7892 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7893 source: err.into(),
7894 }),
7895 }
7896 }
7897}
7898impl From<crate::operation::list_workforces::ListWorkforcesError> for Error {
7899 fn from(err: crate::operation::list_workforces::ListWorkforcesError) -> Self {
7900 match err {
7901 crate::operation::list_workforces::ListWorkforcesError::Unhandled(inner) => Error::Unhandled(inner),
7902 }
7903 }
7904}
7905impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workteams::ListWorkteamsError, 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::list_workteams::ListWorkteamsError, 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::list_workteams::ListWorkteamsError> for Error {
7920 fn from(err: crate::operation::list_workteams::ListWorkteamsError) -> Self {
7921 match err {
7922 crate::operation::list_workteams::ListWorkteamsError::Unhandled(inner) => Error::Unhandled(inner),
7923 }
7924 }
7925}
7926impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError, R>>
7927 for Error
7928where
7929 R: Send + Sync + std::fmt::Debug + 'static,
7930{
7931 fn from(
7932 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError, R>,
7933 ) -> Self {
7934 match err {
7935 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7936 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7937 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7938 source: err.into(),
7939 }),
7940 }
7941 }
7942}
7943impl From<crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError> for Error {
7944 fn from(err: crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError) -> Self {
7945 match err {
7946 crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError::ConflictException(inner) => {
7947 Error::ConflictException(inner)
7948 }
7949 crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
7950 }
7951 }
7952}
7953impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_lineage::QueryLineageError, R>> for Error
7954where
7955 R: Send + Sync + std::fmt::Debug + 'static,
7956{
7957 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_lineage::QueryLineageError, R>) -> Self {
7958 match err {
7959 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7960 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7961 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7962 source: err.into(),
7963 }),
7964 }
7965 }
7966}
7967impl From<crate::operation::query_lineage::QueryLineageError> for Error {
7968 fn from(err: crate::operation::query_lineage::QueryLineageError) -> Self {
7969 match err {
7970 crate::operation::query_lineage::QueryLineageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7971 crate::operation::query_lineage::QueryLineageError::Unhandled(inner) => Error::Unhandled(inner),
7972 }
7973 }
7974}
7975impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_devices::RegisterDevicesError, R>> for Error
7976where
7977 R: Send + Sync + std::fmt::Debug + 'static,
7978{
7979 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_devices::RegisterDevicesError, R>) -> Self {
7980 match err {
7981 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7982 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7983 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7984 source: err.into(),
7985 }),
7986 }
7987 }
7988}
7989impl From<crate::operation::register_devices::RegisterDevicesError> for Error {
7990 fn from(err: crate::operation::register_devices::RegisterDevicesError) -> Self {
7991 match err {
7992 crate::operation::register_devices::RegisterDevicesError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
7993 crate::operation::register_devices::RegisterDevicesError::Unhandled(inner) => Error::Unhandled(inner),
7994 }
7995 }
7996}
7997impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::render_ui_template::RenderUiTemplateError, R>> for Error
7998where
7999 R: Send + Sync + std::fmt::Debug + 'static,
8000{
8001 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::render_ui_template::RenderUiTemplateError, R>) -> Self {
8002 match err {
8003 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8004 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8005 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8006 source: err.into(),
8007 }),
8008 }
8009 }
8010}
8011impl From<crate::operation::render_ui_template::RenderUiTemplateError> for Error {
8012 fn from(err: crate::operation::render_ui_template::RenderUiTemplateError) -> Self {
8013 match err {
8014 crate::operation::render_ui_template::RenderUiTemplateError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8015 crate::operation::render_ui_template::RenderUiTemplateError::Unhandled(inner) => Error::Unhandled(inner),
8016 }
8017 }
8018}
8019impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_pipeline_execution::RetryPipelineExecutionError, R>> for Error
8020where
8021 R: Send + Sync + std::fmt::Debug + 'static,
8022{
8023 fn from(
8024 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_pipeline_execution::RetryPipelineExecutionError, R>,
8025 ) -> Self {
8026 match err {
8027 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8028 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8029 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8030 source: err.into(),
8031 }),
8032 }
8033 }
8034}
8035impl From<crate::operation::retry_pipeline_execution::RetryPipelineExecutionError> for Error {
8036 fn from(err: crate::operation::retry_pipeline_execution::RetryPipelineExecutionError) -> Self {
8037 match err {
8038 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
8039 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::ResourceLimitExceeded(inner) => {
8040 Error::ResourceLimitExceeded(inner)
8041 }
8042 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8043 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
8044 }
8045 }
8046}
8047impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search::SearchError, R>> for Error
8048where
8049 R: Send + Sync + std::fmt::Debug + 'static,
8050{
8051 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search::SearchError, R>) -> Self {
8052 match err {
8053 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8054 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8055 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8056 source: err.into(),
8057 }),
8058 }
8059 }
8060}
8061impl From<crate::operation::search::SearchError> for Error {
8062 fn from(err: crate::operation::search::SearchError) -> Self {
8063 match err {
8064 crate::operation::search::SearchError::Unhandled(inner) => Error::Unhandled(inner),
8065 }
8066 }
8067}
8068impl<R>
8069 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError, R>>
8070 for Error
8071where
8072 R: Send + Sync + std::fmt::Debug + 'static,
8073{
8074 fn from(
8075 err: ::aws_smithy_runtime_api::client::result::SdkError<
8076 crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError,
8077 R,
8078 >,
8079 ) -> Self {
8080 match err {
8081 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8082 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8083 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8084 source: err.into(),
8085 }),
8086 }
8087 }
8088}
8089impl From<crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError> for Error {
8090 fn from(err: crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError) -> Self {
8091 match err {
8092 crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError::ResourceLimitExceeded(inner) => {
8093 Error::ResourceLimitExceeded(inner)
8094 }
8095 crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
8096 }
8097 }
8098}
8099impl<R>
8100 From<
8101 ::aws_smithy_runtime_api::client::result::SdkError<
8102 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError,
8103 R,
8104 >,
8105 > for Error
8106where
8107 R: Send + Sync + std::fmt::Debug + 'static,
8108{
8109 fn from(
8110 err: ::aws_smithy_runtime_api::client::result::SdkError<
8111 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError,
8112 R,
8113 >,
8114 ) -> Self {
8115 match err {
8116 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8117 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8118 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8119 source: err.into(),
8120 }),
8121 }
8122 }
8123}
8124impl From<crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError> for Error {
8125 fn from(err: crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError) -> Self {
8126 match err {
8127 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::ConflictException(inner) => {
8128 Error::ConflictException(inner)
8129 }
8130 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::ResourceLimitExceeded(inner) => {
8131 Error::ResourceLimitExceeded(inner)
8132 }
8133 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::ResourceNotFound(inner) => {
8134 Error::ResourceNotFound(inner)
8135 }
8136 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::Unhandled(inner) => {
8137 Error::Unhandled(inner)
8138 }
8139 }
8140 }
8141}
8142impl<R>
8143 From<
8144 ::aws_smithy_runtime_api::client::result::SdkError<
8145 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError,
8146 R,
8147 >,
8148 > for Error
8149where
8150 R: Send + Sync + std::fmt::Debug + 'static,
8151{
8152 fn from(
8153 err: ::aws_smithy_runtime_api::client::result::SdkError<
8154 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError,
8155 R,
8156 >,
8157 ) -> Self {
8158 match err {
8159 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8160 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8161 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8162 source: err.into(),
8163 }),
8164 }
8165 }
8166}
8167impl From<crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError> for Error {
8168 fn from(err: crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError) -> Self {
8169 match err {
8170 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::ConflictException(inner) => {
8171 Error::ConflictException(inner)
8172 }
8173 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::ResourceLimitExceeded(inner) => {
8174 Error::ResourceLimitExceeded(inner)
8175 }
8176 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::ResourceNotFound(inner) => {
8177 Error::ResourceNotFound(inner)
8178 }
8179 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::Unhandled(inner) => {
8180 Error::Unhandled(inner)
8181 }
8182 }
8183 }
8184}
8185impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_cluster_health_check::StartClusterHealthCheckError, R>>
8186 for Error
8187where
8188 R: Send + Sync + std::fmt::Debug + 'static,
8189{
8190 fn from(
8191 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_cluster_health_check::StartClusterHealthCheckError, R>,
8192 ) -> Self {
8193 match err {
8194 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8195 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8196 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8197 source: err.into(),
8198 }),
8199 }
8200 }
8201}
8202impl From<crate::operation::start_cluster_health_check::StartClusterHealthCheckError> for Error {
8203 fn from(err: crate::operation::start_cluster_health_check::StartClusterHealthCheckError) -> Self {
8204 match err {
8205 crate::operation::start_cluster_health_check::StartClusterHealthCheckError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8206 crate::operation::start_cluster_health_check::StartClusterHealthCheckError::Unhandled(inner) => Error::Unhandled(inner),
8207 }
8208 }
8209}
8210impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError, R>>
8211 for Error
8212where
8213 R: Send + Sync + std::fmt::Debug + 'static,
8214{
8215 fn from(
8216 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError, R>,
8217 ) -> Self {
8218 match err {
8219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8222 source: err.into(),
8223 }),
8224 }
8225 }
8226}
8227impl From<crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError> for Error {
8228 fn from(err: crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError) -> Self {
8229 match err {
8230 crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
8231 }
8232 }
8233}
8234impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_inference_experiment::StartInferenceExperimentError, R>>
8235 for Error
8236where
8237 R: Send + Sync + std::fmt::Debug + 'static,
8238{
8239 fn from(
8240 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_inference_experiment::StartInferenceExperimentError, R>,
8241 ) -> Self {
8242 match err {
8243 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8244 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8245 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8246 source: err.into(),
8247 }),
8248 }
8249 }
8250}
8251impl From<crate::operation::start_inference_experiment::StartInferenceExperimentError> for Error {
8252 fn from(err: crate::operation::start_inference_experiment::StartInferenceExperimentError) -> Self {
8253 match err {
8254 crate::operation::start_inference_experiment::StartInferenceExperimentError::ConflictException(inner) => Error::ConflictException(inner),
8255 crate::operation::start_inference_experiment::StartInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8256 crate::operation::start_inference_experiment::StartInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
8257 }
8258 }
8259}
8260impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError, R>>
8261 for Error
8262where
8263 R: Send + Sync + std::fmt::Debug + 'static,
8264{
8265 fn from(
8266 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError, R>,
8267 ) -> 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::start_mlflow_tracking_server::StartMlflowTrackingServerError> for Error {
8278 fn from(err: crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError) -> Self {
8279 match err {
8280 crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError::ConflictException(inner) => {
8281 Error::ConflictException(inner)
8282 }
8283 crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8284 crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
8285 }
8286 }
8287}
8288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_monitoring_schedule::StartMonitoringScheduleError, R>>
8289 for Error
8290where
8291 R: Send + Sync + std::fmt::Debug + 'static,
8292{
8293 fn from(
8294 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_monitoring_schedule::StartMonitoringScheduleError, R>,
8295 ) -> Self {
8296 match err {
8297 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8298 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8299 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8300 source: err.into(),
8301 }),
8302 }
8303 }
8304}
8305impl From<crate::operation::start_monitoring_schedule::StartMonitoringScheduleError> for Error {
8306 fn from(err: crate::operation::start_monitoring_schedule::StartMonitoringScheduleError) -> Self {
8307 match err {
8308 crate::operation::start_monitoring_schedule::StartMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8309 crate::operation::start_monitoring_schedule::StartMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
8310 }
8311 }
8312}
8313impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_notebook_instance::StartNotebookInstanceError, R>> for Error
8314where
8315 R: Send + Sync + std::fmt::Debug + 'static,
8316{
8317 fn from(
8318 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_notebook_instance::StartNotebookInstanceError, R>,
8319 ) -> Self {
8320 match err {
8321 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8322 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8323 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8324 source: err.into(),
8325 }),
8326 }
8327 }
8328}
8329impl From<crate::operation::start_notebook_instance::StartNotebookInstanceError> for Error {
8330 fn from(err: crate::operation::start_notebook_instance::StartNotebookInstanceError) -> Self {
8331 match err {
8332 crate::operation::start_notebook_instance::StartNotebookInstanceError::ResourceLimitExceeded(inner) => {
8333 Error::ResourceLimitExceeded(inner)
8334 }
8335 crate::operation::start_notebook_instance::StartNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
8336 }
8337 }
8338}
8339impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pipeline_execution::StartPipelineExecutionError, R>> for Error
8340where
8341 R: Send + Sync + std::fmt::Debug + 'static,
8342{
8343 fn from(
8344 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pipeline_execution::StartPipelineExecutionError, R>,
8345 ) -> Self {
8346 match err {
8347 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8348 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8349 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8350 source: err.into(),
8351 }),
8352 }
8353 }
8354}
8355impl From<crate::operation::start_pipeline_execution::StartPipelineExecutionError> for Error {
8356 fn from(err: crate::operation::start_pipeline_execution::StartPipelineExecutionError) -> Self {
8357 match err {
8358 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
8359 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ResourceLimitExceeded(inner) => {
8360 Error::ResourceLimitExceeded(inner)
8361 }
8362 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8363 crate::operation::start_pipeline_execution::StartPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
8364 }
8365 }
8366}
8367impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_session::StartSessionError, R>> for Error
8368where
8369 R: Send + Sync + std::fmt::Debug + 'static,
8370{
8371 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_session::StartSessionError, R>) -> Self {
8372 match err {
8373 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8374 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8375 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8376 source: err.into(),
8377 }),
8378 }
8379 }
8380}
8381impl From<crate::operation::start_session::StartSessionError> for Error {
8382 fn from(err: crate::operation::start_session::StartSessionError) -> Self {
8383 match err {
8384 crate::operation::start_session::StartSessionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8385 crate::operation::start_session::StartSessionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8386 crate::operation::start_session::StartSessionError::Unhandled(inner) => Error::Unhandled(inner),
8387 }
8388 }
8389}
8390impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_ai_benchmark_job::StopAIBenchmarkJobError, R>> for Error
8391where
8392 R: Send + Sync + std::fmt::Debug + 'static,
8393{
8394 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_ai_benchmark_job::StopAIBenchmarkJobError, R>) -> Self {
8395 match err {
8396 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8397 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8398 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8399 source: err.into(),
8400 }),
8401 }
8402 }
8403}
8404impl From<crate::operation::stop_ai_benchmark_job::StopAIBenchmarkJobError> for Error {
8405 fn from(err: crate::operation::stop_ai_benchmark_job::StopAIBenchmarkJobError) -> Self {
8406 match err {
8407 crate::operation::stop_ai_benchmark_job::StopAIBenchmarkJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8408 crate::operation::stop_ai_benchmark_job::StopAIBenchmarkJobError::Unhandled(inner) => Error::Unhandled(inner),
8409 }
8410 }
8411}
8412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_ai_recommendation_job::StopAIRecommendationJobError, R>>
8413 for Error
8414where
8415 R: Send + Sync + std::fmt::Debug + 'static,
8416{
8417 fn from(
8418 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_ai_recommendation_job::StopAIRecommendationJobError, R>,
8419 ) -> Self {
8420 match err {
8421 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8422 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8423 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8424 source: err.into(),
8425 }),
8426 }
8427 }
8428}
8429impl From<crate::operation::stop_ai_recommendation_job::StopAIRecommendationJobError> for Error {
8430 fn from(err: crate::operation::stop_ai_recommendation_job::StopAIRecommendationJobError) -> Self {
8431 match err {
8432 crate::operation::stop_ai_recommendation_job::StopAIRecommendationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8433 crate::operation::stop_ai_recommendation_job::StopAIRecommendationJobError::Unhandled(inner) => Error::Unhandled(inner),
8434 }
8435 }
8436}
8437impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_auto_ml_job::StopAutoMLJobError, R>> for Error
8438where
8439 R: Send + Sync + std::fmt::Debug + 'static,
8440{
8441 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_auto_ml_job::StopAutoMLJobError, R>) -> Self {
8442 match err {
8443 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8444 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8445 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8446 source: err.into(),
8447 }),
8448 }
8449 }
8450}
8451impl From<crate::operation::stop_auto_ml_job::StopAutoMLJobError> for Error {
8452 fn from(err: crate::operation::stop_auto_ml_job::StopAutoMLJobError) -> Self {
8453 match err {
8454 crate::operation::stop_auto_ml_job::StopAutoMLJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8455 crate::operation::stop_auto_ml_job::StopAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
8456 }
8457 }
8458}
8459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_compilation_job::StopCompilationJobError, R>> for Error
8460where
8461 R: Send + Sync + std::fmt::Debug + 'static,
8462{
8463 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_compilation_job::StopCompilationJobError, R>) -> Self {
8464 match err {
8465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8468 source: err.into(),
8469 }),
8470 }
8471 }
8472}
8473impl From<crate::operation::stop_compilation_job::StopCompilationJobError> for Error {
8474 fn from(err: crate::operation::stop_compilation_job::StopCompilationJobError) -> Self {
8475 match err {
8476 crate::operation::stop_compilation_job::StopCompilationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8477 crate::operation::stop_compilation_job::StopCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
8478 }
8479 }
8480}
8481impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError, R>>
8482 for Error
8483where
8484 R: Send + Sync + std::fmt::Debug + 'static,
8485{
8486 fn from(
8487 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError, R>,
8488 ) -> Self {
8489 match err {
8490 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8491 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8492 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8493 source: err.into(),
8494 }),
8495 }
8496 }
8497}
8498impl From<crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError> for Error {
8499 fn from(err: crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError) -> Self {
8500 match err {
8501 crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
8502 }
8503 }
8504}
8505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError, R>> for Error
8506where
8507 R: Send + Sync + std::fmt::Debug + 'static,
8508{
8509 fn from(
8510 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError, R>,
8511 ) -> Self {
8512 match err {
8513 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8514 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8515 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8516 source: err.into(),
8517 }),
8518 }
8519 }
8520}
8521impl From<crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError> for Error {
8522 fn from(err: crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError) -> Self {
8523 match err {
8524 crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError::Unhandled(inner) => Error::Unhandled(inner),
8525 }
8526 }
8527}
8528impl<R>
8529 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError, R>>
8530 for Error
8531where
8532 R: Send + Sync + std::fmt::Debug + 'static,
8533{
8534 fn from(
8535 err: ::aws_smithy_runtime_api::client::result::SdkError<
8536 crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError,
8537 R,
8538 >,
8539 ) -> Self {
8540 match err {
8541 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8542 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8543 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8544 source: err.into(),
8545 }),
8546 }
8547 }
8548}
8549impl From<crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError> for Error {
8550 fn from(err: crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError) -> Self {
8551 match err {
8552 crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError::ResourceNotFound(inner) => {
8553 Error::ResourceNotFound(inner)
8554 }
8555 crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
8556 }
8557 }
8558}
8559impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_inference_experiment::StopInferenceExperimentError, R>>
8560 for Error
8561where
8562 R: Send + Sync + std::fmt::Debug + 'static,
8563{
8564 fn from(
8565 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_inference_experiment::StopInferenceExperimentError, R>,
8566 ) -> Self {
8567 match err {
8568 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8569 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8570 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8571 source: err.into(),
8572 }),
8573 }
8574 }
8575}
8576impl From<crate::operation::stop_inference_experiment::StopInferenceExperimentError> for Error {
8577 fn from(err: crate::operation::stop_inference_experiment::StopInferenceExperimentError) -> Self {
8578 match err {
8579 crate::operation::stop_inference_experiment::StopInferenceExperimentError::ConflictException(inner) => Error::ConflictException(inner),
8580 crate::operation::stop_inference_experiment::StopInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8581 crate::operation::stop_inference_experiment::StopInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
8582 }
8583 }
8584}
8585impl<R>
8586 From<
8587 ::aws_smithy_runtime_api::client::result::SdkError<
8588 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError,
8589 R,
8590 >,
8591 > for Error
8592where
8593 R: Send + Sync + std::fmt::Debug + 'static,
8594{
8595 fn from(
8596 err: ::aws_smithy_runtime_api::client::result::SdkError<
8597 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError,
8598 R,
8599 >,
8600 ) -> Self {
8601 match err {
8602 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8603 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8604 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8605 source: err.into(),
8606 }),
8607 }
8608 }
8609}
8610impl From<crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError> for Error {
8611 fn from(err: crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError) -> Self {
8612 match err {
8613 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError::ResourceNotFound(inner) => {
8614 Error::ResourceNotFound(inner)
8615 }
8616 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError::Unhandled(inner) => Error::Unhandled(inner),
8617 }
8618 }
8619}
8620impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_labeling_job::StopLabelingJobError, R>> for Error
8621where
8622 R: Send + Sync + std::fmt::Debug + 'static,
8623{
8624 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_labeling_job::StopLabelingJobError, R>) -> Self {
8625 match err {
8626 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8627 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8628 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8629 source: err.into(),
8630 }),
8631 }
8632 }
8633}
8634impl From<crate::operation::stop_labeling_job::StopLabelingJobError> for Error {
8635 fn from(err: crate::operation::stop_labeling_job::StopLabelingJobError) -> Self {
8636 match err {
8637 crate::operation::stop_labeling_job::StopLabelingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8638 crate::operation::stop_labeling_job::StopLabelingJobError::Unhandled(inner) => Error::Unhandled(inner),
8639 }
8640 }
8641}
8642impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError, R>>
8643 for Error
8644where
8645 R: Send + Sync + std::fmt::Debug + 'static,
8646{
8647 fn from(
8648 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError, R>,
8649 ) -> Self {
8650 match err {
8651 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8652 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8653 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8654 source: err.into(),
8655 }),
8656 }
8657 }
8658}
8659impl From<crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError> for Error {
8660 fn from(err: crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError) -> Self {
8661 match err {
8662 crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError::ConflictException(inner) => Error::ConflictException(inner),
8663 crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8664 crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
8665 }
8666 }
8667}
8668impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError, R>> for Error
8669where
8670 R: Send + Sync + std::fmt::Debug + 'static,
8671{
8672 fn from(
8673 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError, R>,
8674 ) -> Self {
8675 match err {
8676 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8677 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8678 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8679 source: err.into(),
8680 }),
8681 }
8682 }
8683}
8684impl From<crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError> for Error {
8685 fn from(err: crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError) -> Self {
8686 match err {
8687 crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8688 crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
8689 }
8690 }
8691}
8692impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_notebook_instance::StopNotebookInstanceError, R>> for Error
8693where
8694 R: Send + Sync + std::fmt::Debug + 'static,
8695{
8696 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_notebook_instance::StopNotebookInstanceError, R>) -> Self {
8697 match err {
8698 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8699 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8700 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8701 source: err.into(),
8702 }),
8703 }
8704 }
8705}
8706impl From<crate::operation::stop_notebook_instance::StopNotebookInstanceError> for Error {
8707 fn from(err: crate::operation::stop_notebook_instance::StopNotebookInstanceError) -> Self {
8708 match err {
8709 crate::operation::stop_notebook_instance::StopNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
8710 }
8711 }
8712}
8713impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_optimization_job::StopOptimizationJobError, R>> for Error
8714where
8715 R: Send + Sync + std::fmt::Debug + 'static,
8716{
8717 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_optimization_job::StopOptimizationJobError, R>) -> Self {
8718 match err {
8719 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8720 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8721 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8722 source: err.into(),
8723 }),
8724 }
8725 }
8726}
8727impl From<crate::operation::stop_optimization_job::StopOptimizationJobError> for Error {
8728 fn from(err: crate::operation::stop_optimization_job::StopOptimizationJobError) -> Self {
8729 match err {
8730 crate::operation::stop_optimization_job::StopOptimizationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8731 crate::operation::stop_optimization_job::StopOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
8732 }
8733 }
8734}
8735impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_pipeline_execution::StopPipelineExecutionError, 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::stop_pipeline_execution::StopPipelineExecutionError, 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::stop_pipeline_execution::StopPipelineExecutionError> for Error {
8752 fn from(err: crate::operation::stop_pipeline_execution::StopPipelineExecutionError) -> Self {
8753 match err {
8754 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
8755 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8756 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
8757 }
8758 }
8759}
8760impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_processing_job::StopProcessingJobError, R>> for Error
8761where
8762 R: Send + Sync + std::fmt::Debug + 'static,
8763{
8764 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_processing_job::StopProcessingJobError, R>) -> Self {
8765 match err {
8766 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8767 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8768 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8769 source: err.into(),
8770 }),
8771 }
8772 }
8773}
8774impl From<crate::operation::stop_processing_job::StopProcessingJobError> for Error {
8775 fn from(err: crate::operation::stop_processing_job::StopProcessingJobError) -> Self {
8776 match err {
8777 crate::operation::stop_processing_job::StopProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8778 crate::operation::stop_processing_job::StopProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
8779 }
8780 }
8781}
8782impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_training_job::StopTrainingJobError, R>> for Error
8783where
8784 R: Send + Sync + std::fmt::Debug + 'static,
8785{
8786 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_training_job::StopTrainingJobError, R>) -> Self {
8787 match err {
8788 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8789 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8790 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8791 source: err.into(),
8792 }),
8793 }
8794 }
8795}
8796impl From<crate::operation::stop_training_job::StopTrainingJobError> for Error {
8797 fn from(err: crate::operation::stop_training_job::StopTrainingJobError) -> Self {
8798 match err {
8799 crate::operation::stop_training_job::StopTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8800 crate::operation::stop_training_job::StopTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
8801 }
8802 }
8803}
8804impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_transform_job::StopTransformJobError, R>> for Error
8805where
8806 R: Send + Sync + std::fmt::Debug + 'static,
8807{
8808 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_transform_job::StopTransformJobError, R>) -> Self {
8809 match err {
8810 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8811 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8812 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8813 source: err.into(),
8814 }),
8815 }
8816 }
8817}
8818impl From<crate::operation::stop_transform_job::StopTransformJobError> for Error {
8819 fn from(err: crate::operation::stop_transform_job::StopTransformJobError) -> Self {
8820 match err {
8821 crate::operation::stop_transform_job::StopTransformJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8822 crate::operation::stop_transform_job::StopTransformJobError::Unhandled(inner) => Error::Unhandled(inner),
8823 }
8824 }
8825}
8826impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_action::UpdateActionError, R>> for Error
8827where
8828 R: Send + Sync + std::fmt::Debug + 'static,
8829{
8830 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_action::UpdateActionError, R>) -> Self {
8831 match err {
8832 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8833 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8834 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8835 source: err.into(),
8836 }),
8837 }
8838 }
8839}
8840impl From<crate::operation::update_action::UpdateActionError> for Error {
8841 fn from(err: crate::operation::update_action::UpdateActionError) -> Self {
8842 match err {
8843 crate::operation::update_action::UpdateActionError::ConflictException(inner) => Error::ConflictException(inner),
8844 crate::operation::update_action::UpdateActionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8845 crate::operation::update_action::UpdateActionError::Unhandled(inner) => Error::Unhandled(inner),
8846 }
8847 }
8848}
8849impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_image_config::UpdateAppImageConfigError, R>> for Error
8850where
8851 R: Send + Sync + std::fmt::Debug + 'static,
8852{
8853 fn from(
8854 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_image_config::UpdateAppImageConfigError, R>,
8855 ) -> Self {
8856 match err {
8857 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8858 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8859 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8860 source: err.into(),
8861 }),
8862 }
8863 }
8864}
8865impl From<crate::operation::update_app_image_config::UpdateAppImageConfigError> for Error {
8866 fn from(err: crate::operation::update_app_image_config::UpdateAppImageConfigError) -> Self {
8867 match err {
8868 crate::operation::update_app_image_config::UpdateAppImageConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8869 crate::operation::update_app_image_config::UpdateAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
8870 }
8871 }
8872}
8873impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_artifact::UpdateArtifactError, R>> for Error
8874where
8875 R: Send + Sync + std::fmt::Debug + 'static,
8876{
8877 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_artifact::UpdateArtifactError, R>) -> Self {
8878 match err {
8879 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8880 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8881 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8882 source: err.into(),
8883 }),
8884 }
8885 }
8886}
8887impl From<crate::operation::update_artifact::UpdateArtifactError> for Error {
8888 fn from(err: crate::operation::update_artifact::UpdateArtifactError) -> Self {
8889 match err {
8890 crate::operation::update_artifact::UpdateArtifactError::ConflictException(inner) => Error::ConflictException(inner),
8891 crate::operation::update_artifact::UpdateArtifactError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8892 crate::operation::update_artifact::UpdateArtifactError::Unhandled(inner) => Error::Unhandled(inner),
8893 }
8894 }
8895}
8896impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster::UpdateClusterError, R>> for Error
8897where
8898 R: Send + Sync + std::fmt::Debug + 'static,
8899{
8900 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster::UpdateClusterError, R>) -> Self {
8901 match err {
8902 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8903 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8904 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8905 source: err.into(),
8906 }),
8907 }
8908 }
8909}
8910impl From<crate::operation::update_cluster::UpdateClusterError> for Error {
8911 fn from(err: crate::operation::update_cluster::UpdateClusterError) -> Self {
8912 match err {
8913 crate::operation::update_cluster::UpdateClusterError::ConflictException(inner) => Error::ConflictException(inner),
8914 crate::operation::update_cluster::UpdateClusterError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8915 crate::operation::update_cluster::UpdateClusterError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8916 crate::operation::update_cluster::UpdateClusterError::Unhandled(inner) => Error::Unhandled(inner),
8917 }
8918 }
8919}
8920impl<R>
8921 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError, R>>
8922 for Error
8923where
8924 R: Send + Sync + std::fmt::Debug + 'static,
8925{
8926 fn from(
8927 err: ::aws_smithy_runtime_api::client::result::SdkError<
8928 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError,
8929 R,
8930 >,
8931 ) -> Self {
8932 match err {
8933 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8934 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8935 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8936 source: err.into(),
8937 }),
8938 }
8939 }
8940}
8941impl From<crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError> for Error {
8942 fn from(err: crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError) -> Self {
8943 match err {
8944 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::ConflictException(inner) => {
8945 Error::ConflictException(inner)
8946 }
8947 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::ResourceLimitExceeded(inner) => {
8948 Error::ResourceLimitExceeded(inner)
8949 }
8950 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::ResourceNotFound(inner) => {
8951 Error::ResourceNotFound(inner)
8952 }
8953 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
8954 }
8955 }
8956}
8957impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_software::UpdateClusterSoftwareError, R>> for Error
8958where
8959 R: Send + Sync + std::fmt::Debug + 'static,
8960{
8961 fn from(
8962 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_software::UpdateClusterSoftwareError, R>,
8963 ) -> Self {
8964 match err {
8965 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8966 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8967 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8968 source: err.into(),
8969 }),
8970 }
8971 }
8972}
8973impl From<crate::operation::update_cluster_software::UpdateClusterSoftwareError> for Error {
8974 fn from(err: crate::operation::update_cluster_software::UpdateClusterSoftwareError) -> Self {
8975 match err {
8976 crate::operation::update_cluster_software::UpdateClusterSoftwareError::ConflictException(inner) => Error::ConflictException(inner),
8977 crate::operation::update_cluster_software::UpdateClusterSoftwareError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8978 crate::operation::update_cluster_software::UpdateClusterSoftwareError::Unhandled(inner) => Error::Unhandled(inner),
8979 }
8980 }
8981}
8982impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_code_repository::UpdateCodeRepositoryError, R>> for Error
8983where
8984 R: Send + Sync + std::fmt::Debug + 'static,
8985{
8986 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_code_repository::UpdateCodeRepositoryError, R>) -> Self {
8987 match err {
8988 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8989 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8990 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8991 source: err.into(),
8992 }),
8993 }
8994 }
8995}
8996impl From<crate::operation::update_code_repository::UpdateCodeRepositoryError> for Error {
8997 fn from(err: crate::operation::update_code_repository::UpdateCodeRepositoryError) -> Self {
8998 match err {
8999 crate::operation::update_code_repository::UpdateCodeRepositoryError::ConflictException(inner) => Error::ConflictException(inner),
9000 crate::operation::update_code_repository::UpdateCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
9001 }
9002 }
9003}
9004impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_compute_quota::UpdateComputeQuotaError, R>> for Error
9005where
9006 R: Send + Sync + std::fmt::Debug + 'static,
9007{
9008 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_compute_quota::UpdateComputeQuotaError, R>) -> Self {
9009 match err {
9010 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9011 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9012 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9013 source: err.into(),
9014 }),
9015 }
9016 }
9017}
9018impl From<crate::operation::update_compute_quota::UpdateComputeQuotaError> for Error {
9019 fn from(err: crate::operation::update_compute_quota::UpdateComputeQuotaError) -> Self {
9020 match err {
9021 crate::operation::update_compute_quota::UpdateComputeQuotaError::ConflictException(inner) => Error::ConflictException(inner),
9022 crate::operation::update_compute_quota::UpdateComputeQuotaError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9023 crate::operation::update_compute_quota::UpdateComputeQuotaError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9024 crate::operation::update_compute_quota::UpdateComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
9025 }
9026 }
9027}
9028impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_context::UpdateContextError, R>> for Error
9029where
9030 R: Send + Sync + std::fmt::Debug + 'static,
9031{
9032 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_context::UpdateContextError, R>) -> Self {
9033 match err {
9034 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9035 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9036 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9037 source: err.into(),
9038 }),
9039 }
9040 }
9041}
9042impl From<crate::operation::update_context::UpdateContextError> for Error {
9043 fn from(err: crate::operation::update_context::UpdateContextError) -> Self {
9044 match err {
9045 crate::operation::update_context::UpdateContextError::ConflictException(inner) => Error::ConflictException(inner),
9046 crate::operation::update_context::UpdateContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9047 crate::operation::update_context::UpdateContextError::Unhandled(inner) => Error::Unhandled(inner),
9048 }
9049 }
9050}
9051impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device_fleet::UpdateDeviceFleetError, R>> for Error
9052where
9053 R: Send + Sync + std::fmt::Debug + 'static,
9054{
9055 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device_fleet::UpdateDeviceFleetError, R>) -> Self {
9056 match err {
9057 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9058 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9059 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9060 source: err.into(),
9061 }),
9062 }
9063 }
9064}
9065impl From<crate::operation::update_device_fleet::UpdateDeviceFleetError> for Error {
9066 fn from(err: crate::operation::update_device_fleet::UpdateDeviceFleetError) -> Self {
9067 match err {
9068 crate::operation::update_device_fleet::UpdateDeviceFleetError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9069 crate::operation::update_device_fleet::UpdateDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
9070 }
9071 }
9072}
9073impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_devices::UpdateDevicesError, R>> for Error
9074where
9075 R: Send + Sync + std::fmt::Debug + 'static,
9076{
9077 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_devices::UpdateDevicesError, R>) -> Self {
9078 match err {
9079 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9080 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9081 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9082 source: err.into(),
9083 }),
9084 }
9085 }
9086}
9087impl From<crate::operation::update_devices::UpdateDevicesError> for Error {
9088 fn from(err: crate::operation::update_devices::UpdateDevicesError) -> Self {
9089 match err {
9090 crate::operation::update_devices::UpdateDevicesError::Unhandled(inner) => Error::Unhandled(inner),
9091 }
9092 }
9093}
9094impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain::UpdateDomainError, R>> for Error
9095where
9096 R: Send + Sync + std::fmt::Debug + 'static,
9097{
9098 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain::UpdateDomainError, R>) -> Self {
9099 match err {
9100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9103 source: err.into(),
9104 }),
9105 }
9106 }
9107}
9108impl From<crate::operation::update_domain::UpdateDomainError> for Error {
9109 fn from(err: crate::operation::update_domain::UpdateDomainError) -> Self {
9110 match err {
9111 crate::operation::update_domain::UpdateDomainError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9112 crate::operation::update_domain::UpdateDomainError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9113 crate::operation::update_domain::UpdateDomainError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9114 crate::operation::update_domain::UpdateDomainError::Unhandled(inner) => Error::Unhandled(inner),
9115 }
9116 }
9117}
9118impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoint::UpdateEndpointError, R>> for Error
9119where
9120 R: Send + Sync + std::fmt::Debug + 'static,
9121{
9122 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoint::UpdateEndpointError, R>) -> Self {
9123 match err {
9124 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9125 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9126 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9127 source: err.into(),
9128 }),
9129 }
9130 }
9131}
9132impl From<crate::operation::update_endpoint::UpdateEndpointError> for Error {
9133 fn from(err: crate::operation::update_endpoint::UpdateEndpointError) -> Self {
9134 match err {
9135 crate::operation::update_endpoint::UpdateEndpointError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9136 crate::operation::update_endpoint::UpdateEndpointError::Unhandled(inner) => Error::Unhandled(inner),
9137 }
9138 }
9139}
9140impl<R>
9141 From<
9142 ::aws_smithy_runtime_api::client::result::SdkError<
9143 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError,
9144 R,
9145 >,
9146 > for Error
9147where
9148 R: Send + Sync + std::fmt::Debug + 'static,
9149{
9150 fn from(
9151 err: ::aws_smithy_runtime_api::client::result::SdkError<
9152 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError,
9153 R,
9154 >,
9155 ) -> Self {
9156 match err {
9157 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9158 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9159 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9160 source: err.into(),
9161 }),
9162 }
9163 }
9164}
9165impl From<crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError> for Error {
9166 fn from(err: crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError) -> Self {
9167 match err {
9168 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError::ResourceLimitExceeded(inner) => {
9169 Error::ResourceLimitExceeded(inner)
9170 }
9171 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError::Unhandled(inner) => {
9172 Error::Unhandled(inner)
9173 }
9174 }
9175 }
9176}
9177impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_experiment::UpdateExperimentError, R>> for Error
9178where
9179 R: Send + Sync + std::fmt::Debug + 'static,
9180{
9181 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_experiment::UpdateExperimentError, R>) -> Self {
9182 match err {
9183 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9184 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9185 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9186 source: err.into(),
9187 }),
9188 }
9189 }
9190}
9191impl From<crate::operation::update_experiment::UpdateExperimentError> for Error {
9192 fn from(err: crate::operation::update_experiment::UpdateExperimentError) -> Self {
9193 match err {
9194 crate::operation::update_experiment::UpdateExperimentError::ConflictException(inner) => Error::ConflictException(inner),
9195 crate::operation::update_experiment::UpdateExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9196 crate::operation::update_experiment::UpdateExperimentError::Unhandled(inner) => Error::Unhandled(inner),
9197 }
9198 }
9199}
9200impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_group::UpdateFeatureGroupError, R>> for Error
9201where
9202 R: Send + Sync + std::fmt::Debug + 'static,
9203{
9204 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_group::UpdateFeatureGroupError, R>) -> Self {
9205 match err {
9206 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9207 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9208 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9209 source: err.into(),
9210 }),
9211 }
9212 }
9213}
9214impl From<crate::operation::update_feature_group::UpdateFeatureGroupError> for Error {
9215 fn from(err: crate::operation::update_feature_group::UpdateFeatureGroupError) -> Self {
9216 match err {
9217 crate::operation::update_feature_group::UpdateFeatureGroupError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9218 crate::operation::update_feature_group::UpdateFeatureGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9219 crate::operation::update_feature_group::UpdateFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
9220 }
9221 }
9222}
9223impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_metadata::UpdateFeatureMetadataError, R>> for Error
9224where
9225 R: Send + Sync + std::fmt::Debug + 'static,
9226{
9227 fn from(
9228 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_metadata::UpdateFeatureMetadataError, R>,
9229 ) -> Self {
9230 match err {
9231 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9232 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9233 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9234 source: err.into(),
9235 }),
9236 }
9237 }
9238}
9239impl From<crate::operation::update_feature_metadata::UpdateFeatureMetadataError> for Error {
9240 fn from(err: crate::operation::update_feature_metadata::UpdateFeatureMetadataError) -> Self {
9241 match err {
9242 crate::operation::update_feature_metadata::UpdateFeatureMetadataError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9243 crate::operation::update_feature_metadata::UpdateFeatureMetadataError::Unhandled(inner) => Error::Unhandled(inner),
9244 }
9245 }
9246}
9247impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub::UpdateHubError, R>> for Error
9248where
9249 R: Send + Sync + std::fmt::Debug + 'static,
9250{
9251 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub::UpdateHubError, R>) -> Self {
9252 match err {
9253 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9254 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9255 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9256 source: err.into(),
9257 }),
9258 }
9259 }
9260}
9261impl From<crate::operation::update_hub::UpdateHubError> for Error {
9262 fn from(err: crate::operation::update_hub::UpdateHubError) -> Self {
9263 match err {
9264 crate::operation::update_hub::UpdateHubError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9265 crate::operation::update_hub::UpdateHubError::Unhandled(inner) => Error::Unhandled(inner),
9266 }
9267 }
9268}
9269impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content::UpdateHubContentError, R>> for Error
9270where
9271 R: Send + Sync + std::fmt::Debug + 'static,
9272{
9273 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content::UpdateHubContentError, R>) -> Self {
9274 match err {
9275 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9276 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9277 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9278 source: err.into(),
9279 }),
9280 }
9281 }
9282}
9283impl From<crate::operation::update_hub_content::UpdateHubContentError> for Error {
9284 fn from(err: crate::operation::update_hub_content::UpdateHubContentError) -> Self {
9285 match err {
9286 crate::operation::update_hub_content::UpdateHubContentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9287 crate::operation::update_hub_content::UpdateHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9288 crate::operation::update_hub_content::UpdateHubContentError::Unhandled(inner) => Error::Unhandled(inner),
9289 }
9290 }
9291}
9292impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content_reference::UpdateHubContentReferenceError, R>>
9293 for Error
9294where
9295 R: Send + Sync + std::fmt::Debug + 'static,
9296{
9297 fn from(
9298 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content_reference::UpdateHubContentReferenceError, R>,
9299 ) -> Self {
9300 match err {
9301 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9302 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9303 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9304 source: err.into(),
9305 }),
9306 }
9307 }
9308}
9309impl From<crate::operation::update_hub_content_reference::UpdateHubContentReferenceError> for Error {
9310 fn from(err: crate::operation::update_hub_content_reference::UpdateHubContentReferenceError) -> Self {
9311 match err {
9312 crate::operation::update_hub_content_reference::UpdateHubContentReferenceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9313 crate::operation::update_hub_content_reference::UpdateHubContentReferenceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9314 crate::operation::update_hub_content_reference::UpdateHubContentReferenceError::Unhandled(inner) => Error::Unhandled(inner),
9315 }
9316 }
9317}
9318impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image::UpdateImageError, R>> for Error
9319where
9320 R: Send + Sync + std::fmt::Debug + 'static,
9321{
9322 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image::UpdateImageError, R>) -> Self {
9323 match err {
9324 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9325 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9326 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9327 source: err.into(),
9328 }),
9329 }
9330 }
9331}
9332impl From<crate::operation::update_image::UpdateImageError> for Error {
9333 fn from(err: crate::operation::update_image::UpdateImageError) -> Self {
9334 match err {
9335 crate::operation::update_image::UpdateImageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9336 crate::operation::update_image::UpdateImageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9337 crate::operation::update_image::UpdateImageError::Unhandled(inner) => Error::Unhandled(inner),
9338 }
9339 }
9340}
9341impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image_version::UpdateImageVersionError, R>> for Error
9342where
9343 R: Send + Sync + std::fmt::Debug + 'static,
9344{
9345 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image_version::UpdateImageVersionError, R>) -> Self {
9346 match err {
9347 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9348 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9349 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9350 source: err.into(),
9351 }),
9352 }
9353 }
9354}
9355impl From<crate::operation::update_image_version::UpdateImageVersionError> for Error {
9356 fn from(err: crate::operation::update_image_version::UpdateImageVersionError) -> Self {
9357 match err {
9358 crate::operation::update_image_version::UpdateImageVersionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9359 crate::operation::update_image_version::UpdateImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9360 crate::operation::update_image_version::UpdateImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
9361 }
9362 }
9363}
9364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_component::UpdateInferenceComponentError, R>>
9365 for Error
9366where
9367 R: Send + Sync + std::fmt::Debug + 'static,
9368{
9369 fn from(
9370 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_component::UpdateInferenceComponentError, R>,
9371 ) -> Self {
9372 match err {
9373 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9374 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9375 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9376 source: err.into(),
9377 }),
9378 }
9379 }
9380}
9381impl From<crate::operation::update_inference_component::UpdateInferenceComponentError> for Error {
9382 fn from(err: crate::operation::update_inference_component::UpdateInferenceComponentError) -> Self {
9383 match err {
9384 crate::operation::update_inference_component::UpdateInferenceComponentError::ResourceLimitExceeded(inner) => {
9385 Error::ResourceLimitExceeded(inner)
9386 }
9387 crate::operation::update_inference_component::UpdateInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
9388 }
9389 }
9390}
9391impl<R>
9392 From<
9393 ::aws_smithy_runtime_api::client::result::SdkError<
9394 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError,
9395 R,
9396 >,
9397 > for Error
9398where
9399 R: Send + Sync + std::fmt::Debug + 'static,
9400{
9401 fn from(
9402 err: ::aws_smithy_runtime_api::client::result::SdkError<
9403 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError,
9404 R,
9405 >,
9406 ) -> Self {
9407 match err {
9408 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9409 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9410 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9411 source: err.into(),
9412 }),
9413 }
9414 }
9415}
9416impl From<crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError> for Error {
9417 fn from(err: crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError) -> Self {
9418 match err {
9419 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError::ResourceLimitExceeded(inner) => {
9420 Error::ResourceLimitExceeded(inner)
9421 }
9422 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError::Unhandled(inner) => {
9423 Error::Unhandled(inner)
9424 }
9425 }
9426 }
9427}
9428impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_experiment::UpdateInferenceExperimentError, R>>
9429 for Error
9430where
9431 R: Send + Sync + std::fmt::Debug + 'static,
9432{
9433 fn from(
9434 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_experiment::UpdateInferenceExperimentError, R>,
9435 ) -> Self {
9436 match err {
9437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9440 source: err.into(),
9441 }),
9442 }
9443 }
9444}
9445impl From<crate::operation::update_inference_experiment::UpdateInferenceExperimentError> for Error {
9446 fn from(err: crate::operation::update_inference_experiment::UpdateInferenceExperimentError) -> Self {
9447 match err {
9448 crate::operation::update_inference_experiment::UpdateInferenceExperimentError::ConflictException(inner) => {
9449 Error::ConflictException(inner)
9450 }
9451 crate::operation::update_inference_experiment::UpdateInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9452 crate::operation::update_inference_experiment::UpdateInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
9453 }
9454 }
9455}
9456impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_mlflow_app::UpdateMlflowAppError, R>> for Error
9457where
9458 R: Send + Sync + std::fmt::Debug + 'static,
9459{
9460 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_mlflow_app::UpdateMlflowAppError, R>) -> Self {
9461 match err {
9462 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9463 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9464 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9465 source: err.into(),
9466 }),
9467 }
9468 }
9469}
9470impl From<crate::operation::update_mlflow_app::UpdateMlflowAppError> for Error {
9471 fn from(err: crate::operation::update_mlflow_app::UpdateMlflowAppError) -> Self {
9472 match err {
9473 crate::operation::update_mlflow_app::UpdateMlflowAppError::ConflictException(inner) => Error::ConflictException(inner),
9474 crate::operation::update_mlflow_app::UpdateMlflowAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9475 crate::operation::update_mlflow_app::UpdateMlflowAppError::Unhandled(inner) => Error::Unhandled(inner),
9476 }
9477 }
9478}
9479impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError, R>>
9480 for Error
9481where
9482 R: Send + Sync + std::fmt::Debug + 'static,
9483{
9484 fn from(
9485 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError, R>,
9486 ) -> Self {
9487 match err {
9488 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9489 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9490 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9491 source: err.into(),
9492 }),
9493 }
9494 }
9495}
9496impl From<crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError> for Error {
9497 fn from(err: crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError) -> Self {
9498 match err {
9499 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::ConflictException(inner) => {
9500 Error::ConflictException(inner)
9501 }
9502 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::ResourceLimitExceeded(inner) => {
9503 Error::ResourceLimitExceeded(inner)
9504 }
9505 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::ResourceNotFound(inner) => {
9506 Error::ResourceNotFound(inner)
9507 }
9508 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
9509 }
9510 }
9511}
9512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_card::UpdateModelCardError, R>> for Error
9513where
9514 R: Send + Sync + std::fmt::Debug + 'static,
9515{
9516 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_card::UpdateModelCardError, R>) -> Self {
9517 match err {
9518 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9519 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9520 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9521 source: err.into(),
9522 }),
9523 }
9524 }
9525}
9526impl From<crate::operation::update_model_card::UpdateModelCardError> for Error {
9527 fn from(err: crate::operation::update_model_card::UpdateModelCardError) -> Self {
9528 match err {
9529 crate::operation::update_model_card::UpdateModelCardError::ConflictException(inner) => Error::ConflictException(inner),
9530 crate::operation::update_model_card::UpdateModelCardError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9531 crate::operation::update_model_card::UpdateModelCardError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9532 crate::operation::update_model_card::UpdateModelCardError::Unhandled(inner) => Error::Unhandled(inner),
9533 }
9534 }
9535}
9536impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_package::UpdateModelPackageError, R>> for Error
9537where
9538 R: Send + Sync + std::fmt::Debug + 'static,
9539{
9540 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_package::UpdateModelPackageError, R>) -> Self {
9541 match err {
9542 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9543 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9544 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9545 source: err.into(),
9546 }),
9547 }
9548 }
9549}
9550impl From<crate::operation::update_model_package::UpdateModelPackageError> for Error {
9551 fn from(err: crate::operation::update_model_package::UpdateModelPackageError) -> Self {
9552 match err {
9553 crate::operation::update_model_package::UpdateModelPackageError::ConflictException(inner) => Error::ConflictException(inner),
9554 crate::operation::update_model_package::UpdateModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
9555 }
9556 }
9557}
9558impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_alert::UpdateMonitoringAlertError, R>> for Error
9559where
9560 R: Send + Sync + std::fmt::Debug + 'static,
9561{
9562 fn from(
9563 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_alert::UpdateMonitoringAlertError, R>,
9564 ) -> Self {
9565 match err {
9566 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9567 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9568 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9569 source: err.into(),
9570 }),
9571 }
9572 }
9573}
9574impl From<crate::operation::update_monitoring_alert::UpdateMonitoringAlertError> for Error {
9575 fn from(err: crate::operation::update_monitoring_alert::UpdateMonitoringAlertError) -> Self {
9576 match err {
9577 crate::operation::update_monitoring_alert::UpdateMonitoringAlertError::ResourceLimitExceeded(inner) => {
9578 Error::ResourceLimitExceeded(inner)
9579 }
9580 crate::operation::update_monitoring_alert::UpdateMonitoringAlertError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9581 crate::operation::update_monitoring_alert::UpdateMonitoringAlertError::Unhandled(inner) => Error::Unhandled(inner),
9582 }
9583 }
9584}
9585impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError, R>>
9586 for Error
9587where
9588 R: Send + Sync + std::fmt::Debug + 'static,
9589{
9590 fn from(
9591 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError, R>,
9592 ) -> Self {
9593 match err {
9594 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9595 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9596 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9597 source: err.into(),
9598 }),
9599 }
9600 }
9601}
9602impl From<crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError> for Error {
9603 fn from(err: crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError) -> Self {
9604 match err {
9605 crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError::ResourceLimitExceeded(inner) => {
9606 Error::ResourceLimitExceeded(inner)
9607 }
9608 crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9609 crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
9610 }
9611 }
9612}
9613impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notebook_instance::UpdateNotebookInstanceError, R>> for Error
9614where
9615 R: Send + Sync + std::fmt::Debug + 'static,
9616{
9617 fn from(
9618 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notebook_instance::UpdateNotebookInstanceError, R>,
9619 ) -> Self {
9620 match err {
9621 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9622 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9623 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9624 source: err.into(),
9625 }),
9626 }
9627 }
9628}
9629impl From<crate::operation::update_notebook_instance::UpdateNotebookInstanceError> for Error {
9630 fn from(err: crate::operation::update_notebook_instance::UpdateNotebookInstanceError) -> Self {
9631 match err {
9632 crate::operation::update_notebook_instance::UpdateNotebookInstanceError::ResourceLimitExceeded(inner) => {
9633 Error::ResourceLimitExceeded(inner)
9634 }
9635 crate::operation::update_notebook_instance::UpdateNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
9636 }
9637 }
9638}
9639impl<R>
9640 From<
9641 ::aws_smithy_runtime_api::client::result::SdkError<
9642 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError,
9643 R,
9644 >,
9645 > for Error
9646where
9647 R: Send + Sync + std::fmt::Debug + 'static,
9648{
9649 fn from(
9650 err: ::aws_smithy_runtime_api::client::result::SdkError<
9651 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError,
9652 R,
9653 >,
9654 ) -> Self {
9655 match err {
9656 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9657 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9658 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9659 source: err.into(),
9660 }),
9661 }
9662 }
9663}
9664impl From<crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError> for Error {
9665 fn from(err: crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError) -> Self {
9666 match err {
9667 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError::ResourceLimitExceeded(inner) => {
9668 Error::ResourceLimitExceeded(inner)
9669 }
9670 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
9671 Error::Unhandled(inner)
9672 }
9673 }
9674 }
9675}
9676impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_partner_app::UpdatePartnerAppError, R>> for Error
9677where
9678 R: Send + Sync + std::fmt::Debug + 'static,
9679{
9680 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_partner_app::UpdatePartnerAppError, R>) -> Self {
9681 match err {
9682 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9683 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9684 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9685 source: err.into(),
9686 }),
9687 }
9688 }
9689}
9690impl From<crate::operation::update_partner_app::UpdatePartnerAppError> for Error {
9691 fn from(err: crate::operation::update_partner_app::UpdatePartnerAppError) -> Self {
9692 match err {
9693 crate::operation::update_partner_app::UpdatePartnerAppError::ConflictException(inner) => Error::ConflictException(inner),
9694 crate::operation::update_partner_app::UpdatePartnerAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9695 crate::operation::update_partner_app::UpdatePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
9696 }
9697 }
9698}
9699impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline::UpdatePipelineError, R>> for Error
9700where
9701 R: Send + Sync + std::fmt::Debug + 'static,
9702{
9703 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline::UpdatePipelineError, R>) -> Self {
9704 match err {
9705 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9706 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9707 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9708 source: err.into(),
9709 }),
9710 }
9711 }
9712}
9713impl From<crate::operation::update_pipeline::UpdatePipelineError> for Error {
9714 fn from(err: crate::operation::update_pipeline::UpdatePipelineError) -> Self {
9715 match err {
9716 crate::operation::update_pipeline::UpdatePipelineError::ConflictException(inner) => Error::ConflictException(inner),
9717 crate::operation::update_pipeline::UpdatePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9718 crate::operation::update_pipeline::UpdatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
9719 }
9720 }
9721}
9722impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_execution::UpdatePipelineExecutionError, R>>
9723 for Error
9724where
9725 R: Send + Sync + std::fmt::Debug + 'static,
9726{
9727 fn from(
9728 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_execution::UpdatePipelineExecutionError, R>,
9729 ) -> Self {
9730 match err {
9731 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9732 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9733 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9734 source: err.into(),
9735 }),
9736 }
9737 }
9738}
9739impl From<crate::operation::update_pipeline_execution::UpdatePipelineExecutionError> for Error {
9740 fn from(err: crate::operation::update_pipeline_execution::UpdatePipelineExecutionError) -> Self {
9741 match err {
9742 crate::operation::update_pipeline_execution::UpdatePipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
9743 crate::operation::update_pipeline_execution::UpdatePipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9744 crate::operation::update_pipeline_execution::UpdatePipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
9745 }
9746 }
9747}
9748impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_version::UpdatePipelineVersionError, R>> for Error
9749where
9750 R: Send + Sync + std::fmt::Debug + 'static,
9751{
9752 fn from(
9753 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_version::UpdatePipelineVersionError, R>,
9754 ) -> Self {
9755 match err {
9756 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9757 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9758 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9759 source: err.into(),
9760 }),
9761 }
9762 }
9763}
9764impl From<crate::operation::update_pipeline_version::UpdatePipelineVersionError> for Error {
9765 fn from(err: crate::operation::update_pipeline_version::UpdatePipelineVersionError) -> Self {
9766 match err {
9767 crate::operation::update_pipeline_version::UpdatePipelineVersionError::ConflictException(inner) => Error::ConflictException(inner),
9768 crate::operation::update_pipeline_version::UpdatePipelineVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9769 crate::operation::update_pipeline_version::UpdatePipelineVersionError::Unhandled(inner) => Error::Unhandled(inner),
9770 }
9771 }
9772}
9773impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>> for Error
9774where
9775 R: Send + Sync + std::fmt::Debug + 'static,
9776{
9777 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>) -> Self {
9778 match err {
9779 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9780 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9781 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9782 source: err.into(),
9783 }),
9784 }
9785 }
9786}
9787impl From<crate::operation::update_project::UpdateProjectError> for Error {
9788 fn from(err: crate::operation::update_project::UpdateProjectError) -> Self {
9789 match err {
9790 crate::operation::update_project::UpdateProjectError::ConflictException(inner) => Error::ConflictException(inner),
9791 crate::operation::update_project::UpdateProjectError::Unhandled(inner) => Error::Unhandled(inner),
9792 }
9793 }
9794}
9795impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_space::UpdateSpaceError, R>> for Error
9796where
9797 R: Send + Sync + std::fmt::Debug + 'static,
9798{
9799 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_space::UpdateSpaceError, R>) -> Self {
9800 match err {
9801 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9802 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9803 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9804 source: err.into(),
9805 }),
9806 }
9807 }
9808}
9809impl From<crate::operation::update_space::UpdateSpaceError> for Error {
9810 fn from(err: crate::operation::update_space::UpdateSpaceError) -> Self {
9811 match err {
9812 crate::operation::update_space::UpdateSpaceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9813 crate::operation::update_space::UpdateSpaceError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9814 crate::operation::update_space::UpdateSpaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9815 crate::operation::update_space::UpdateSpaceError::Unhandled(inner) => Error::Unhandled(inner),
9816 }
9817 }
9818}
9819impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_training_job::UpdateTrainingJobError, R>> for Error
9820where
9821 R: Send + Sync + std::fmt::Debug + 'static,
9822{
9823 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_training_job::UpdateTrainingJobError, R>) -> Self {
9824 match err {
9825 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9826 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9827 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9828 source: err.into(),
9829 }),
9830 }
9831 }
9832}
9833impl From<crate::operation::update_training_job::UpdateTrainingJobError> for Error {
9834 fn from(err: crate::operation::update_training_job::UpdateTrainingJobError) -> Self {
9835 match err {
9836 crate::operation::update_training_job::UpdateTrainingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9837 crate::operation::update_training_job::UpdateTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9838 crate::operation::update_training_job::UpdateTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
9839 }
9840 }
9841}
9842impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial::UpdateTrialError, R>> for Error
9843where
9844 R: Send + Sync + std::fmt::Debug + 'static,
9845{
9846 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial::UpdateTrialError, R>) -> Self {
9847 match err {
9848 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9849 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9850 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9851 source: err.into(),
9852 }),
9853 }
9854 }
9855}
9856impl From<crate::operation::update_trial::UpdateTrialError> for Error {
9857 fn from(err: crate::operation::update_trial::UpdateTrialError) -> Self {
9858 match err {
9859 crate::operation::update_trial::UpdateTrialError::ConflictException(inner) => Error::ConflictException(inner),
9860 crate::operation::update_trial::UpdateTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9861 crate::operation::update_trial::UpdateTrialError::Unhandled(inner) => Error::Unhandled(inner),
9862 }
9863 }
9864}
9865impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial_component::UpdateTrialComponentError, R>> for Error
9866where
9867 R: Send + Sync + std::fmt::Debug + 'static,
9868{
9869 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial_component::UpdateTrialComponentError, R>) -> Self {
9870 match err {
9871 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9872 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9873 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9874 source: err.into(),
9875 }),
9876 }
9877 }
9878}
9879impl From<crate::operation::update_trial_component::UpdateTrialComponentError> for Error {
9880 fn from(err: crate::operation::update_trial_component::UpdateTrialComponentError) -> Self {
9881 match err {
9882 crate::operation::update_trial_component::UpdateTrialComponentError::ConflictException(inner) => Error::ConflictException(inner),
9883 crate::operation::update_trial_component::UpdateTrialComponentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9884 crate::operation::update_trial_component::UpdateTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
9885 }
9886 }
9887}
9888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_profile::UpdateUserProfileError, R>> for Error
9889where
9890 R: Send + Sync + std::fmt::Debug + 'static,
9891{
9892 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_profile::UpdateUserProfileError, R>) -> Self {
9893 match err {
9894 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9895 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9896 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9897 source: err.into(),
9898 }),
9899 }
9900 }
9901}
9902impl From<crate::operation::update_user_profile::UpdateUserProfileError> for Error {
9903 fn from(err: crate::operation::update_user_profile::UpdateUserProfileError) -> Self {
9904 match err {
9905 crate::operation::update_user_profile::UpdateUserProfileError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9906 crate::operation::update_user_profile::UpdateUserProfileError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9907 crate::operation::update_user_profile::UpdateUserProfileError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9908 crate::operation::update_user_profile::UpdateUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
9909 }
9910 }
9911}
9912impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workforce::UpdateWorkforceError, R>> for Error
9913where
9914 R: Send + Sync + std::fmt::Debug + 'static,
9915{
9916 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workforce::UpdateWorkforceError, R>) -> Self {
9917 match err {
9918 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9919 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9920 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9921 source: err.into(),
9922 }),
9923 }
9924 }
9925}
9926impl From<crate::operation::update_workforce::UpdateWorkforceError> for Error {
9927 fn from(err: crate::operation::update_workforce::UpdateWorkforceError) -> Self {
9928 match err {
9929 crate::operation::update_workforce::UpdateWorkforceError::ConflictException(inner) => Error::ConflictException(inner),
9930 crate::operation::update_workforce::UpdateWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
9931 }
9932 }
9933}
9934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workteam::UpdateWorkteamError, R>> for Error
9935where
9936 R: Send + Sync + std::fmt::Debug + 'static,
9937{
9938 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workteam::UpdateWorkteamError, R>) -> Self {
9939 match err {
9940 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9941 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9942 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9943 source: err.into(),
9944 }),
9945 }
9946 }
9947}
9948impl From<crate::operation::update_workteam::UpdateWorkteamError> for Error {
9949 fn from(err: crate::operation::update_workteam::UpdateWorkteamError) -> Self {
9950 match err {
9951 crate::operation::update_workteam::UpdateWorkteamError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9952 crate::operation::update_workteam::UpdateWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
9953 }
9954 }
9955}
9956impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
9957where
9958 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
9959 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
9960{
9961 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
9962 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9963 meta: ::std::default::Default::default(),
9964 source: err.into(),
9965 })
9966 }
9967}
9968impl ::std::error::Error for Error {
9969 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
9970 match self {
9971 Error::ConflictException(inner) => inner.source(),
9972 Error::ResourceInUse(inner) => inner.source(),
9973 Error::ResourceLimitExceeded(inner) => inner.source(),
9974 Error::ResourceNotFound(inner) => inner.source(),
9975 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
9976 }
9977 }
9978}
9979impl ::aws_types::request_id::RequestId for Error {
9980 fn request_id(&self) -> Option<&str> {
9981 match self {
9982 Self::ConflictException(e) => e.request_id(),
9983 Self::ResourceInUse(e) => e.request_id(),
9984 Self::ResourceLimitExceeded(e) => e.request_id(),
9985 Self::ResourceNotFound(e) => e.request_id(),
9986 Self::Unhandled(e) => e.meta.request_id(),
9987 }
9988 }
9989}