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_job::CreateJobError, 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_job::CreateJobError, 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_job::CreateJobError> for Error {
1246 fn from(err: crate::operation::create_job::CreateJobError) -> Self {
1247 match err {
1248 crate::operation::create_job::CreateJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1249 crate::operation::create_job::CreateJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1250 crate::operation::create_job::CreateJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1251 crate::operation::create_job::CreateJobError::Unhandled(inner) => Error::Unhandled(inner),
1252 }
1253 }
1254}
1255impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_labeling_job::CreateLabelingJobError, R>> for Error
1256where
1257 R: Send + Sync + std::fmt::Debug + 'static,
1258{
1259 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_labeling_job::CreateLabelingJobError, R>) -> Self {
1260 match err {
1261 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1262 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1263 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1264 source: err.into(),
1265 }),
1266 }
1267 }
1268}
1269impl From<crate::operation::create_labeling_job::CreateLabelingJobError> for Error {
1270 fn from(err: crate::operation::create_labeling_job::CreateLabelingJobError) -> Self {
1271 match err {
1272 crate::operation::create_labeling_job::CreateLabelingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1273 crate::operation::create_labeling_job::CreateLabelingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1274 crate::operation::create_labeling_job::CreateLabelingJobError::Unhandled(inner) => Error::Unhandled(inner),
1275 }
1276 }
1277}
1278impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mlflow_app::CreateMlflowAppError, R>> for Error
1279where
1280 R: Send + Sync + std::fmt::Debug + 'static,
1281{
1282 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mlflow_app::CreateMlflowAppError, R>) -> Self {
1283 match err {
1284 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1285 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1286 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1287 source: err.into(),
1288 }),
1289 }
1290 }
1291}
1292impl From<crate::operation::create_mlflow_app::CreateMlflowAppError> for Error {
1293 fn from(err: crate::operation::create_mlflow_app::CreateMlflowAppError) -> Self {
1294 match err {
1295 crate::operation::create_mlflow_app::CreateMlflowAppError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1296 crate::operation::create_mlflow_app::CreateMlflowAppError::Unhandled(inner) => Error::Unhandled(inner),
1297 }
1298 }
1299}
1300impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError, R>>
1301 for Error
1302where
1303 R: Send + Sync + std::fmt::Debug + 'static,
1304{
1305 fn from(
1306 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError, R>,
1307 ) -> 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_mlflow_tracking_server::CreateMlflowTrackingServerError> for Error {
1318 fn from(err: crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError) -> Self {
1319 match err {
1320 crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError::ResourceLimitExceeded(inner) => {
1321 Error::ResourceLimitExceeded(inner)
1322 }
1323 crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
1324 }
1325 }
1326}
1327impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model::CreateModelError, R>> for Error
1328where
1329 R: Send + Sync + std::fmt::Debug + 'static,
1330{
1331 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model::CreateModelError, R>) -> Self {
1332 match err {
1333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1336 source: err.into(),
1337 }),
1338 }
1339 }
1340}
1341impl From<crate::operation::create_model::CreateModelError> for Error {
1342 fn from(err: crate::operation::create_model::CreateModelError) -> Self {
1343 match err {
1344 crate::operation::create_model::CreateModelError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1345 crate::operation::create_model::CreateModelError::Unhandled(inner) => Error::Unhandled(inner),
1346 }
1347 }
1348}
1349impl<R>
1350 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError, R>>
1351 for Error
1352where
1353 R: Send + Sync + std::fmt::Debug + 'static,
1354{
1355 fn from(
1356 err: ::aws_smithy_runtime_api::client::result::SdkError<
1357 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError,
1358 R,
1359 >,
1360 ) -> Self {
1361 match err {
1362 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1363 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1364 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1365 source: err.into(),
1366 }),
1367 }
1368 }
1369}
1370impl From<crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError> for Error {
1371 fn from(err: crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError) -> Self {
1372 match err {
1373 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError::ResourceInUse(inner) => {
1374 Error::ResourceInUse(inner)
1375 }
1376 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError::ResourceLimitExceeded(inner) => {
1377 Error::ResourceLimitExceeded(inner)
1378 }
1379 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1380 }
1381 }
1382}
1383impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card::CreateModelCardError, R>> for Error
1384where
1385 R: Send + Sync + std::fmt::Debug + 'static,
1386{
1387 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card::CreateModelCardError, R>) -> Self {
1388 match err {
1389 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1390 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1391 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1392 source: err.into(),
1393 }),
1394 }
1395 }
1396}
1397impl From<crate::operation::create_model_card::CreateModelCardError> for Error {
1398 fn from(err: crate::operation::create_model_card::CreateModelCardError) -> Self {
1399 match err {
1400 crate::operation::create_model_card::CreateModelCardError::ConflictException(inner) => Error::ConflictException(inner),
1401 crate::operation::create_model_card::CreateModelCardError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1402 crate::operation::create_model_card::CreateModelCardError::Unhandled(inner) => Error::Unhandled(inner),
1403 }
1404 }
1405}
1406impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card_export_job::CreateModelCardExportJobError, R>>
1407 for Error
1408where
1409 R: Send + Sync + std::fmt::Debug + 'static,
1410{
1411 fn from(
1412 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card_export_job::CreateModelCardExportJobError, R>,
1413 ) -> Self {
1414 match err {
1415 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1416 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1417 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1418 source: err.into(),
1419 }),
1420 }
1421 }
1422}
1423impl From<crate::operation::create_model_card_export_job::CreateModelCardExportJobError> for Error {
1424 fn from(err: crate::operation::create_model_card_export_job::CreateModelCardExportJobError) -> Self {
1425 match err {
1426 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::ConflictException(inner) => {
1427 Error::ConflictException(inner)
1428 }
1429 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::ResourceLimitExceeded(inner) => {
1430 Error::ResourceLimitExceeded(inner)
1431 }
1432 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1433 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::Unhandled(inner) => Error::Unhandled(inner),
1434 }
1435 }
1436}
1437impl<R>
1438 From<
1439 ::aws_smithy_runtime_api::client::result::SdkError<
1440 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError,
1441 R,
1442 >,
1443 > for Error
1444where
1445 R: Send + Sync + std::fmt::Debug + 'static,
1446{
1447 fn from(
1448 err: ::aws_smithy_runtime_api::client::result::SdkError<
1449 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError,
1450 R,
1451 >,
1452 ) -> Self {
1453 match err {
1454 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1455 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1456 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1457 source: err.into(),
1458 }),
1459 }
1460 }
1461}
1462impl From<crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError> for Error {
1463 fn from(err: crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError) -> Self {
1464 match err {
1465 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError::ResourceInUse(inner) => {
1466 Error::ResourceInUse(inner)
1467 }
1468 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError::ResourceLimitExceeded(
1469 inner,
1470 ) => Error::ResourceLimitExceeded(inner),
1471 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError::Unhandled(inner) => {
1472 Error::Unhandled(inner)
1473 }
1474 }
1475 }
1476}
1477impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package::CreateModelPackageError, R>> for Error
1478where
1479 R: Send + Sync + std::fmt::Debug + 'static,
1480{
1481 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package::CreateModelPackageError, R>) -> Self {
1482 match err {
1483 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1484 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1485 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1486 source: err.into(),
1487 }),
1488 }
1489 }
1490}
1491impl From<crate::operation::create_model_package::CreateModelPackageError> for Error {
1492 fn from(err: crate::operation::create_model_package::CreateModelPackageError) -> Self {
1493 match err {
1494 crate::operation::create_model_package::CreateModelPackageError::ConflictException(inner) => Error::ConflictException(inner),
1495 crate::operation::create_model_package::CreateModelPackageError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1496 crate::operation::create_model_package::CreateModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
1497 }
1498 }
1499}
1500impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package_group::CreateModelPackageGroupError, R>>
1501 for Error
1502where
1503 R: Send + Sync + std::fmt::Debug + 'static,
1504{
1505 fn from(
1506 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package_group::CreateModelPackageGroupError, R>,
1507 ) -> Self {
1508 match err {
1509 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1510 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1511 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1512 source: err.into(),
1513 }),
1514 }
1515 }
1516}
1517impl From<crate::operation::create_model_package_group::CreateModelPackageGroupError> for Error {
1518 fn from(err: crate::operation::create_model_package_group::CreateModelPackageGroupError) -> Self {
1519 match err {
1520 crate::operation::create_model_package_group::CreateModelPackageGroupError::ResourceLimitExceeded(inner) => {
1521 Error::ResourceLimitExceeded(inner)
1522 }
1523 crate::operation::create_model_package_group::CreateModelPackageGroupError::Unhandled(inner) => Error::Unhandled(inner),
1524 }
1525 }
1526}
1527impl<R>
1528 From<
1529 ::aws_smithy_runtime_api::client::result::SdkError<
1530 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError,
1531 R,
1532 >,
1533 > for Error
1534where
1535 R: Send + Sync + std::fmt::Debug + 'static,
1536{
1537 fn from(
1538 err: ::aws_smithy_runtime_api::client::result::SdkError<
1539 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError,
1540 R,
1541 >,
1542 ) -> Self {
1543 match err {
1544 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1545 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1546 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1547 source: err.into(),
1548 }),
1549 }
1550 }
1551}
1552impl From<crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError> for Error {
1553 fn from(err: crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError) -> Self {
1554 match err {
1555 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError::ResourceInUse(inner) => {
1556 Error::ResourceInUse(inner)
1557 }
1558 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError::ResourceLimitExceeded(inner) => {
1559 Error::ResourceLimitExceeded(inner)
1560 }
1561 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1562 }
1563 }
1564}
1565impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError, R>>
1566 for Error
1567where
1568 R: Send + Sync + std::fmt::Debug + 'static,
1569{
1570 fn from(
1571 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError, R>,
1572 ) -> Self {
1573 match err {
1574 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1575 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1576 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1577 source: err.into(),
1578 }),
1579 }
1580 }
1581}
1582impl From<crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError> for Error {
1583 fn from(err: crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError) -> Self {
1584 match err {
1585 crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1586 crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError::ResourceLimitExceeded(inner) => {
1587 Error::ResourceLimitExceeded(inner)
1588 }
1589 crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
1590 }
1591 }
1592}
1593impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notebook_instance::CreateNotebookInstanceError, R>> for Error
1594where
1595 R: Send + Sync + std::fmt::Debug + 'static,
1596{
1597 fn from(
1598 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notebook_instance::CreateNotebookInstanceError, R>,
1599 ) -> Self {
1600 match err {
1601 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1602 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1603 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1604 source: err.into(),
1605 }),
1606 }
1607 }
1608}
1609impl From<crate::operation::create_notebook_instance::CreateNotebookInstanceError> for Error {
1610 fn from(err: crate::operation::create_notebook_instance::CreateNotebookInstanceError) -> Self {
1611 match err {
1612 crate::operation::create_notebook_instance::CreateNotebookInstanceError::ResourceLimitExceeded(inner) => {
1613 Error::ResourceLimitExceeded(inner)
1614 }
1615 crate::operation::create_notebook_instance::CreateNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
1616 }
1617 }
1618}
1619impl<R>
1620 From<
1621 ::aws_smithy_runtime_api::client::result::SdkError<
1622 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError,
1623 R,
1624 >,
1625 > for Error
1626where
1627 R: Send + Sync + std::fmt::Debug + 'static,
1628{
1629 fn from(
1630 err: ::aws_smithy_runtime_api::client::result::SdkError<
1631 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError,
1632 R,
1633 >,
1634 ) -> Self {
1635 match err {
1636 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1637 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1638 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1639 source: err.into(),
1640 }),
1641 }
1642 }
1643}
1644impl From<crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError> for Error {
1645 fn from(err: crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError) -> Self {
1646 match err {
1647 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError::ResourceLimitExceeded(inner) => {
1648 Error::ResourceLimitExceeded(inner)
1649 }
1650 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
1651 Error::Unhandled(inner)
1652 }
1653 }
1654 }
1655}
1656impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_optimization_job::CreateOptimizationJobError, R>> for Error
1657where
1658 R: Send + Sync + std::fmt::Debug + 'static,
1659{
1660 fn from(
1661 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_optimization_job::CreateOptimizationJobError, R>,
1662 ) -> Self {
1663 match err {
1664 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1665 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1666 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1667 source: err.into(),
1668 }),
1669 }
1670 }
1671}
1672impl From<crate::operation::create_optimization_job::CreateOptimizationJobError> for Error {
1673 fn from(err: crate::operation::create_optimization_job::CreateOptimizationJobError) -> Self {
1674 match err {
1675 crate::operation::create_optimization_job::CreateOptimizationJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1676 crate::operation::create_optimization_job::CreateOptimizationJobError::ResourceLimitExceeded(inner) => {
1677 Error::ResourceLimitExceeded(inner)
1678 }
1679 crate::operation::create_optimization_job::CreateOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
1680 }
1681 }
1682}
1683impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_app::CreatePartnerAppError, R>> for Error
1684where
1685 R: Send + Sync + std::fmt::Debug + 'static,
1686{
1687 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_app::CreatePartnerAppError, R>) -> Self {
1688 match err {
1689 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1690 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1691 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1692 source: err.into(),
1693 }),
1694 }
1695 }
1696}
1697impl From<crate::operation::create_partner_app::CreatePartnerAppError> for Error {
1698 fn from(err: crate::operation::create_partner_app::CreatePartnerAppError) -> Self {
1699 match err {
1700 crate::operation::create_partner_app::CreatePartnerAppError::ConflictException(inner) => Error::ConflictException(inner),
1701 crate::operation::create_partner_app::CreatePartnerAppError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1702 crate::operation::create_partner_app::CreatePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
1703 }
1704 }
1705}
1706impl<R>
1707 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError, R>>
1708 for Error
1709where
1710 R: Send + Sync + std::fmt::Debug + 'static,
1711{
1712 fn from(
1713 err: ::aws_smithy_runtime_api::client::result::SdkError<
1714 crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError,
1715 R,
1716 >,
1717 ) -> 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_partner_app_presigned_url::CreatePartnerAppPresignedUrlError> for Error {
1728 fn from(err: crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError) -> Self {
1729 match err {
1730 crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError::ResourceNotFound(inner) => {
1731 Error::ResourceNotFound(inner)
1732 }
1733 crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError::Unhandled(inner) => Error::Unhandled(inner),
1734 }
1735 }
1736}
1737impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pipeline::CreatePipelineError, R>> for Error
1738where
1739 R: Send + Sync + std::fmt::Debug + 'static,
1740{
1741 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pipeline::CreatePipelineError, R>) -> Self {
1742 match err {
1743 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1744 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1745 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1746 source: err.into(),
1747 }),
1748 }
1749 }
1750}
1751impl From<crate::operation::create_pipeline::CreatePipelineError> for Error {
1752 fn from(err: crate::operation::create_pipeline::CreatePipelineError) -> Self {
1753 match err {
1754 crate::operation::create_pipeline::CreatePipelineError::ConflictException(inner) => Error::ConflictException(inner),
1755 crate::operation::create_pipeline::CreatePipelineError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1756 crate::operation::create_pipeline::CreatePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1757 crate::operation::create_pipeline::CreatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
1758 }
1759 }
1760}
1761impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError, R>>
1762 for Error
1763where
1764 R: Send + Sync + std::fmt::Debug + 'static,
1765{
1766 fn from(
1767 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError, R>,
1768 ) -> Self {
1769 match err {
1770 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1771 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1772 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1773 source: err.into(),
1774 }),
1775 }
1776 }
1777}
1778impl From<crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError> for Error {
1779 fn from(err: crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError) -> Self {
1780 match err {
1781 crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1782 crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError::Unhandled(inner) => Error::Unhandled(inner),
1783 }
1784 }
1785}
1786impl<R>
1787 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_presigned_mlflow_app_url::CreatePresignedMlflowAppUrlError, R>>
1788 for Error
1789where
1790 R: Send + Sync + std::fmt::Debug + 'static,
1791{
1792 fn from(
1793 err: ::aws_smithy_runtime_api::client::result::SdkError<
1794 crate::operation::create_presigned_mlflow_app_url::CreatePresignedMlflowAppUrlError,
1795 R,
1796 >,
1797 ) -> Self {
1798 match err {
1799 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1800 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1801 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1802 source: err.into(),
1803 }),
1804 }
1805 }
1806}
1807impl From<crate::operation::create_presigned_mlflow_app_url::CreatePresignedMlflowAppUrlError> for Error {
1808 fn from(err: crate::operation::create_presigned_mlflow_app_url::CreatePresignedMlflowAppUrlError) -> Self {
1809 match err {
1810 crate::operation::create_presigned_mlflow_app_url::CreatePresignedMlflowAppUrlError::ResourceNotFound(inner) => {
1811 Error::ResourceNotFound(inner)
1812 }
1813 crate::operation::create_presigned_mlflow_app_url::CreatePresignedMlflowAppUrlError::Unhandled(inner) => Error::Unhandled(inner),
1814 }
1815 }
1816}
1817impl<R>
1818 From<
1819 ::aws_smithy_runtime_api::client::result::SdkError<
1820 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError,
1821 R,
1822 >,
1823 > for Error
1824where
1825 R: Send + Sync + std::fmt::Debug + 'static,
1826{
1827 fn from(
1828 err: ::aws_smithy_runtime_api::client::result::SdkError<
1829 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError,
1830 R,
1831 >,
1832 ) -> Self {
1833 match err {
1834 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1835 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1836 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1837 source: err.into(),
1838 }),
1839 }
1840 }
1841}
1842impl From<crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError> for Error {
1843 fn from(err: crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError) -> Self {
1844 match err {
1845 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError::ResourceNotFound(inner) => {
1846 Error::ResourceNotFound(inner)
1847 }
1848 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError::Unhandled(inner) => {
1849 Error::Unhandled(inner)
1850 }
1851 }
1852 }
1853}
1854impl<R>
1855 From<
1856 ::aws_smithy_runtime_api::client::result::SdkError<
1857 crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError,
1858 R,
1859 >,
1860 > for Error
1861where
1862 R: Send + Sync + std::fmt::Debug + 'static,
1863{
1864 fn from(
1865 err: ::aws_smithy_runtime_api::client::result::SdkError<
1866 crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError,
1867 R,
1868 >,
1869 ) -> Self {
1870 match err {
1871 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1872 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1873 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1874 source: err.into(),
1875 }),
1876 }
1877 }
1878}
1879impl From<crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError> for Error {
1880 fn from(err: crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError) -> Self {
1881 match err {
1882 crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError::Unhandled(inner) => {
1883 Error::Unhandled(inner)
1884 }
1885 }
1886 }
1887}
1888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_processing_job::CreateProcessingJobError, 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_processing_job::CreateProcessingJobError, 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_processing_job::CreateProcessingJobError> for Error {
1903 fn from(err: crate::operation::create_processing_job::CreateProcessingJobError) -> Self {
1904 match err {
1905 crate::operation::create_processing_job::CreateProcessingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1906 crate::operation::create_processing_job::CreateProcessingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1907 crate::operation::create_processing_job::CreateProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1908 crate::operation::create_processing_job::CreateProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
1909 }
1910 }
1911}
1912impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>> for Error
1913where
1914 R: Send + Sync + std::fmt::Debug + 'static,
1915{
1916 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>) -> Self {
1917 match err {
1918 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1919 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1920 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1921 source: err.into(),
1922 }),
1923 }
1924 }
1925}
1926impl From<crate::operation::create_project::CreateProjectError> for Error {
1927 fn from(err: crate::operation::create_project::CreateProjectError) -> Self {
1928 match err {
1929 crate::operation::create_project::CreateProjectError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1930 crate::operation::create_project::CreateProjectError::Unhandled(inner) => Error::Unhandled(inner),
1931 }
1932 }
1933}
1934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_space::CreateSpaceError, R>> for Error
1935where
1936 R: Send + Sync + std::fmt::Debug + 'static,
1937{
1938 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_space::CreateSpaceError, R>) -> Self {
1939 match err {
1940 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1941 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1942 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1943 source: err.into(),
1944 }),
1945 }
1946 }
1947}
1948impl From<crate::operation::create_space::CreateSpaceError> for Error {
1949 fn from(err: crate::operation::create_space::CreateSpaceError) -> Self {
1950 match err {
1951 crate::operation::create_space::CreateSpaceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1952 crate::operation::create_space::CreateSpaceError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1953 crate::operation::create_space::CreateSpaceError::Unhandled(inner) => Error::Unhandled(inner),
1954 }
1955 }
1956}
1957impl<R>
1958 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError, R>>
1959 for Error
1960where
1961 R: Send + Sync + std::fmt::Debug + 'static,
1962{
1963 fn from(
1964 err: ::aws_smithy_runtime_api::client::result::SdkError<
1965 crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError,
1966 R,
1967 >,
1968 ) -> Self {
1969 match err {
1970 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1971 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1972 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1973 source: err.into(),
1974 }),
1975 }
1976 }
1977}
1978impl From<crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError> for Error {
1979 fn from(err: crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError) -> Self {
1980 match err {
1981 crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1982 crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError::Unhandled(inner) => Error::Unhandled(inner),
1983 }
1984 }
1985}
1986impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_job::CreateTrainingJobError, 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_job::CreateTrainingJobError, 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_job::CreateTrainingJobError> for Error {
2001 fn from(err: crate::operation::create_training_job::CreateTrainingJobError) -> Self {
2002 match err {
2003 crate::operation::create_training_job::CreateTrainingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2004 crate::operation::create_training_job::CreateTrainingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
2005 crate::operation::create_training_job::CreateTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2006 crate::operation::create_training_job::CreateTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
2007 }
2008 }
2009}
2010impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_plan::CreateTrainingPlanError, 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_training_plan::CreateTrainingPlanError, 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_training_plan::CreateTrainingPlanError> for Error {
2025 fn from(err: crate::operation::create_training_plan::CreateTrainingPlanError) -> Self {
2026 match err {
2027 crate::operation::create_training_plan::CreateTrainingPlanError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2028 crate::operation::create_training_plan::CreateTrainingPlanError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
2029 crate::operation::create_training_plan::CreateTrainingPlanError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2030 crate::operation::create_training_plan::CreateTrainingPlanError::Unhandled(inner) => Error::Unhandled(inner),
2031 }
2032 }
2033}
2034impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transform_job::CreateTransformJobError, 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_transform_job::CreateTransformJobError, 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_transform_job::CreateTransformJobError> for Error {
2049 fn from(err: crate::operation::create_transform_job::CreateTransformJobError) -> Self {
2050 match err {
2051 crate::operation::create_transform_job::CreateTransformJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2052 crate::operation::create_transform_job::CreateTransformJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
2053 crate::operation::create_transform_job::CreateTransformJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2054 crate::operation::create_transform_job::CreateTransformJobError::Unhandled(inner) => Error::Unhandled(inner),
2055 }
2056 }
2057}
2058impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial::CreateTrialError, R>> for Error
2059where
2060 R: Send + Sync + std::fmt::Debug + 'static,
2061{
2062 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial::CreateTrialError, R>) -> Self {
2063 match err {
2064 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2065 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2066 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2067 source: err.into(),
2068 }),
2069 }
2070 }
2071}
2072impl From<crate::operation::create_trial::CreateTrialError> for Error {
2073 fn from(err: crate::operation::create_trial::CreateTrialError) -> Self {
2074 match err {
2075 crate::operation::create_trial::CreateTrialError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
2076 crate::operation::create_trial::CreateTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2077 crate::operation::create_trial::CreateTrialError::Unhandled(inner) => Error::Unhandled(inner),
2078 }
2079 }
2080}
2081impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial_component::CreateTrialComponentError, R>> for Error
2082where
2083 R: Send + Sync + std::fmt::Debug + 'static,
2084{
2085 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial_component::CreateTrialComponentError, R>) -> Self {
2086 match err {
2087 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2088 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2089 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2090 source: err.into(),
2091 }),
2092 }
2093 }
2094}
2095impl From<crate::operation::create_trial_component::CreateTrialComponentError> for Error {
2096 fn from(err: crate::operation::create_trial_component::CreateTrialComponentError) -> Self {
2097 match err {
2098 crate::operation::create_trial_component::CreateTrialComponentError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
2099 crate::operation::create_trial_component::CreateTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
2100 }
2101 }
2102}
2103impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_profile::CreateUserProfileError, R>> for Error
2104where
2105 R: Send + Sync + std::fmt::Debug + 'static,
2106{
2107 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_profile::CreateUserProfileError, R>) -> Self {
2108 match err {
2109 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2110 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2111 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2112 source: err.into(),
2113 }),
2114 }
2115 }
2116}
2117impl From<crate::operation::create_user_profile::CreateUserProfileError> for Error {
2118 fn from(err: crate::operation::create_user_profile::CreateUserProfileError) -> Self {
2119 match err {
2120 crate::operation::create_user_profile::CreateUserProfileError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2121 crate::operation::create_user_profile::CreateUserProfileError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
2122 crate::operation::create_user_profile::CreateUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
2123 }
2124 }
2125}
2126impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workforce::CreateWorkforceError, R>> for Error
2127where
2128 R: Send + Sync + std::fmt::Debug + 'static,
2129{
2130 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workforce::CreateWorkforceError, R>) -> Self {
2131 match err {
2132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2135 source: err.into(),
2136 }),
2137 }
2138 }
2139}
2140impl From<crate::operation::create_workforce::CreateWorkforceError> for Error {
2141 fn from(err: crate::operation::create_workforce::CreateWorkforceError) -> Self {
2142 match err {
2143 crate::operation::create_workforce::CreateWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
2144 }
2145 }
2146}
2147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workteam::CreateWorkteamError, R>> for Error
2148where
2149 R: Send + Sync + std::fmt::Debug + 'static,
2150{
2151 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workteam::CreateWorkteamError, R>) -> Self {
2152 match err {
2153 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2154 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2155 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2156 source: err.into(),
2157 }),
2158 }
2159 }
2160}
2161impl From<crate::operation::create_workteam::CreateWorkteamError> for Error {
2162 fn from(err: crate::operation::create_workteam::CreateWorkteamError) -> Self {
2163 match err {
2164 crate::operation::create_workteam::CreateWorkteamError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2165 crate::operation::create_workteam::CreateWorkteamError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
2166 crate::operation::create_workteam::CreateWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
2167 }
2168 }
2169}
2170impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_action::DeleteActionError, R>> for Error
2171where
2172 R: Send + Sync + std::fmt::Debug + 'static,
2173{
2174 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_action::DeleteActionError, R>) -> 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_action::DeleteActionError> for Error {
2185 fn from(err: crate::operation::delete_action::DeleteActionError) -> Self {
2186 match err {
2187 crate::operation::delete_action::DeleteActionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2188 crate::operation::delete_action::DeleteActionError::Unhandled(inner) => Error::Unhandled(inner),
2189 }
2190 }
2191}
2192impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ai_benchmark_job::DeleteAIBenchmarkJobError, R>> for Error
2193where
2194 R: Send + Sync + std::fmt::Debug + 'static,
2195{
2196 fn from(
2197 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ai_benchmark_job::DeleteAIBenchmarkJobError, R>,
2198 ) -> Self {
2199 match err {
2200 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2201 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2202 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2203 source: err.into(),
2204 }),
2205 }
2206 }
2207}
2208impl From<crate::operation::delete_ai_benchmark_job::DeleteAIBenchmarkJobError> for Error {
2209 fn from(err: crate::operation::delete_ai_benchmark_job::DeleteAIBenchmarkJobError) -> Self {
2210 match err {
2211 crate::operation::delete_ai_benchmark_job::DeleteAIBenchmarkJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2212 crate::operation::delete_ai_benchmark_job::DeleteAIBenchmarkJobError::Unhandled(inner) => Error::Unhandled(inner),
2213 }
2214 }
2215}
2216impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ai_recommendation_job::DeleteAIRecommendationJobError, R>>
2217 for Error
2218where
2219 R: Send + Sync + std::fmt::Debug + 'static,
2220{
2221 fn from(
2222 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ai_recommendation_job::DeleteAIRecommendationJobError, R>,
2223 ) -> Self {
2224 match err {
2225 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2226 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2227 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2228 source: err.into(),
2229 }),
2230 }
2231 }
2232}
2233impl From<crate::operation::delete_ai_recommendation_job::DeleteAIRecommendationJobError> for Error {
2234 fn from(err: crate::operation::delete_ai_recommendation_job::DeleteAIRecommendationJobError) -> Self {
2235 match err {
2236 crate::operation::delete_ai_recommendation_job::DeleteAIRecommendationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2237 crate::operation::delete_ai_recommendation_job::DeleteAIRecommendationJobError::Unhandled(inner) => Error::Unhandled(inner),
2238 }
2239 }
2240}
2241impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ai_workload_config::DeleteAIWorkloadConfigError, R>>
2242 for Error
2243where
2244 R: Send + Sync + std::fmt::Debug + 'static,
2245{
2246 fn from(
2247 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ai_workload_config::DeleteAIWorkloadConfigError, R>,
2248 ) -> Self {
2249 match err {
2250 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2251 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2252 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2253 source: err.into(),
2254 }),
2255 }
2256 }
2257}
2258impl From<crate::operation::delete_ai_workload_config::DeleteAIWorkloadConfigError> for Error {
2259 fn from(err: crate::operation::delete_ai_workload_config::DeleteAIWorkloadConfigError) -> Self {
2260 match err {
2261 crate::operation::delete_ai_workload_config::DeleteAIWorkloadConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2262 crate::operation::delete_ai_workload_config::DeleteAIWorkloadConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2263 crate::operation::delete_ai_workload_config::DeleteAIWorkloadConfigError::Unhandled(inner) => Error::Unhandled(inner),
2264 }
2265 }
2266}
2267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_algorithm::DeleteAlgorithmError, R>> for Error
2268where
2269 R: Send + Sync + std::fmt::Debug + 'static,
2270{
2271 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_algorithm::DeleteAlgorithmError, R>) -> Self {
2272 match err {
2273 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2274 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2275 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2276 source: err.into(),
2277 }),
2278 }
2279 }
2280}
2281impl From<crate::operation::delete_algorithm::DeleteAlgorithmError> for Error {
2282 fn from(err: crate::operation::delete_algorithm::DeleteAlgorithmError) -> Self {
2283 match err {
2284 crate::operation::delete_algorithm::DeleteAlgorithmError::ConflictException(inner) => Error::ConflictException(inner),
2285 crate::operation::delete_algorithm::DeleteAlgorithmError::Unhandled(inner) => Error::Unhandled(inner),
2286 }
2287 }
2288}
2289impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app::DeleteAppError, R>> for Error
2290where
2291 R: Send + Sync + std::fmt::Debug + 'static,
2292{
2293 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app::DeleteAppError, R>) -> Self {
2294 match err {
2295 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2296 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2297 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2298 source: err.into(),
2299 }),
2300 }
2301 }
2302}
2303impl From<crate::operation::delete_app::DeleteAppError> for Error {
2304 fn from(err: crate::operation::delete_app::DeleteAppError) -> Self {
2305 match err {
2306 crate::operation::delete_app::DeleteAppError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2307 crate::operation::delete_app::DeleteAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2308 crate::operation::delete_app::DeleteAppError::Unhandled(inner) => Error::Unhandled(inner),
2309 }
2310 }
2311}
2312impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_image_config::DeleteAppImageConfigError, R>> for Error
2313where
2314 R: Send + Sync + std::fmt::Debug + 'static,
2315{
2316 fn from(
2317 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_image_config::DeleteAppImageConfigError, R>,
2318 ) -> Self {
2319 match err {
2320 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2321 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2322 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2323 source: err.into(),
2324 }),
2325 }
2326 }
2327}
2328impl From<crate::operation::delete_app_image_config::DeleteAppImageConfigError> for Error {
2329 fn from(err: crate::operation::delete_app_image_config::DeleteAppImageConfigError) -> Self {
2330 match err {
2331 crate::operation::delete_app_image_config::DeleteAppImageConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2332 crate::operation::delete_app_image_config::DeleteAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
2333 }
2334 }
2335}
2336impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_artifact::DeleteArtifactError, R>> for Error
2337where
2338 R: Send + Sync + std::fmt::Debug + 'static,
2339{
2340 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_artifact::DeleteArtifactError, R>) -> Self {
2341 match err {
2342 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2343 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2344 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2345 source: err.into(),
2346 }),
2347 }
2348 }
2349}
2350impl From<crate::operation::delete_artifact::DeleteArtifactError> for Error {
2351 fn from(err: crate::operation::delete_artifact::DeleteArtifactError) -> Self {
2352 match err {
2353 crate::operation::delete_artifact::DeleteArtifactError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2354 crate::operation::delete_artifact::DeleteArtifactError::Unhandled(inner) => Error::Unhandled(inner),
2355 }
2356 }
2357}
2358impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_association::DeleteAssociationError, R>> for Error
2359where
2360 R: Send + Sync + std::fmt::Debug + 'static,
2361{
2362 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_association::DeleteAssociationError, R>) -> Self {
2363 match err {
2364 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2365 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2366 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2367 source: err.into(),
2368 }),
2369 }
2370 }
2371}
2372impl From<crate::operation::delete_association::DeleteAssociationError> for Error {
2373 fn from(err: crate::operation::delete_association::DeleteAssociationError) -> Self {
2374 match err {
2375 crate::operation::delete_association::DeleteAssociationError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2376 crate::operation::delete_association::DeleteAssociationError::Unhandled(inner) => Error::Unhandled(inner),
2377 }
2378 }
2379}
2380impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster::DeleteClusterError, R>> for Error
2381where
2382 R: Send + Sync + std::fmt::Debug + 'static,
2383{
2384 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster::DeleteClusterError, R>) -> Self {
2385 match err {
2386 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2387 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2388 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2389 source: err.into(),
2390 }),
2391 }
2392 }
2393}
2394impl From<crate::operation::delete_cluster::DeleteClusterError> for Error {
2395 fn from(err: crate::operation::delete_cluster::DeleteClusterError) -> Self {
2396 match err {
2397 crate::operation::delete_cluster::DeleteClusterError::ConflictException(inner) => Error::ConflictException(inner),
2398 crate::operation::delete_cluster::DeleteClusterError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2399 crate::operation::delete_cluster::DeleteClusterError::Unhandled(inner) => Error::Unhandled(inner),
2400 }
2401 }
2402}
2403impl<R>
2404 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError, R>>
2405 for Error
2406where
2407 R: Send + Sync + std::fmt::Debug + 'static,
2408{
2409 fn from(
2410 err: ::aws_smithy_runtime_api::client::result::SdkError<
2411 crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError,
2412 R,
2413 >,
2414 ) -> 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_cluster_scheduler_config::DeleteClusterSchedulerConfigError> for Error {
2425 fn from(err: crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError) -> Self {
2426 match err {
2427 crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError::ResourceNotFound(inner) => {
2428 Error::ResourceNotFound(inner)
2429 }
2430 crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
2431 }
2432 }
2433}
2434impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_code_repository::DeleteCodeRepositoryError, R>> for Error
2435where
2436 R: Send + Sync + std::fmt::Debug + 'static,
2437{
2438 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_code_repository::DeleteCodeRepositoryError, R>) -> Self {
2439 match err {
2440 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2441 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2442 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2443 source: err.into(),
2444 }),
2445 }
2446 }
2447}
2448impl From<crate::operation::delete_code_repository::DeleteCodeRepositoryError> for Error {
2449 fn from(err: crate::operation::delete_code_repository::DeleteCodeRepositoryError) -> Self {
2450 match err {
2451 crate::operation::delete_code_repository::DeleteCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
2452 }
2453 }
2454}
2455impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compilation_job::DeleteCompilationJobError, R>> for Error
2456where
2457 R: Send + Sync + std::fmt::Debug + 'static,
2458{
2459 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compilation_job::DeleteCompilationJobError, R>) -> Self {
2460 match err {
2461 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2462 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2463 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2464 source: err.into(),
2465 }),
2466 }
2467 }
2468}
2469impl From<crate::operation::delete_compilation_job::DeleteCompilationJobError> for Error {
2470 fn from(err: crate::operation::delete_compilation_job::DeleteCompilationJobError) -> Self {
2471 match err {
2472 crate::operation::delete_compilation_job::DeleteCompilationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2473 crate::operation::delete_compilation_job::DeleteCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
2474 }
2475 }
2476}
2477impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compute_quota::DeleteComputeQuotaError, R>> for Error
2478where
2479 R: Send + Sync + std::fmt::Debug + 'static,
2480{
2481 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compute_quota::DeleteComputeQuotaError, R>) -> Self {
2482 match err {
2483 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2484 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2485 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2486 source: err.into(),
2487 }),
2488 }
2489 }
2490}
2491impl From<crate::operation::delete_compute_quota::DeleteComputeQuotaError> for Error {
2492 fn from(err: crate::operation::delete_compute_quota::DeleteComputeQuotaError) -> Self {
2493 match err {
2494 crate::operation::delete_compute_quota::DeleteComputeQuotaError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2495 crate::operation::delete_compute_quota::DeleteComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
2496 }
2497 }
2498}
2499impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_context::DeleteContextError, R>> for Error
2500where
2501 R: Send + Sync + std::fmt::Debug + 'static,
2502{
2503 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_context::DeleteContextError, R>) -> Self {
2504 match err {
2505 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2506 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2507 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2508 source: err.into(),
2509 }),
2510 }
2511 }
2512}
2513impl From<crate::operation::delete_context::DeleteContextError> for Error {
2514 fn from(err: crate::operation::delete_context::DeleteContextError) -> Self {
2515 match err {
2516 crate::operation::delete_context::DeleteContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2517 crate::operation::delete_context::DeleteContextError::Unhandled(inner) => Error::Unhandled(inner),
2518 }
2519 }
2520}
2521impl<R>
2522 From<
2523 ::aws_smithy_runtime_api::client::result::SdkError<
2524 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError,
2525 R,
2526 >,
2527 > for Error
2528where
2529 R: Send + Sync + std::fmt::Debug + 'static,
2530{
2531 fn from(
2532 err: ::aws_smithy_runtime_api::client::result::SdkError<
2533 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError,
2534 R,
2535 >,
2536 ) -> 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_data_quality_job_definition::DeleteDataQualityJobDefinitionError> for Error {
2547 fn from(err: crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError) -> Self {
2548 match err {
2549 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError::ResourceNotFound(inner) => {
2550 Error::ResourceNotFound(inner)
2551 }
2552 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2553 }
2554 }
2555}
2556impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device_fleet::DeleteDeviceFleetError, R>> for Error
2557where
2558 R: Send + Sync + std::fmt::Debug + 'static,
2559{
2560 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device_fleet::DeleteDeviceFleetError, R>) -> Self {
2561 match err {
2562 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2563 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2564 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2565 source: err.into(),
2566 }),
2567 }
2568 }
2569}
2570impl From<crate::operation::delete_device_fleet::DeleteDeviceFleetError> for Error {
2571 fn from(err: crate::operation::delete_device_fleet::DeleteDeviceFleetError) -> Self {
2572 match err {
2573 crate::operation::delete_device_fleet::DeleteDeviceFleetError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2574 crate::operation::delete_device_fleet::DeleteDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
2575 }
2576 }
2577}
2578impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>> for Error
2579where
2580 R: Send + Sync + std::fmt::Debug + 'static,
2581{
2582 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>) -> Self {
2583 match err {
2584 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2585 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2586 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2587 source: err.into(),
2588 }),
2589 }
2590 }
2591}
2592impl From<crate::operation::delete_domain::DeleteDomainError> for Error {
2593 fn from(err: crate::operation::delete_domain::DeleteDomainError) -> Self {
2594 match err {
2595 crate::operation::delete_domain::DeleteDomainError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2596 crate::operation::delete_domain::DeleteDomainError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2597 crate::operation::delete_domain::DeleteDomainError::Unhandled(inner) => Error::Unhandled(inner),
2598 }
2599 }
2600}
2601impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError, R>>
2602 for Error
2603where
2604 R: Send + Sync + std::fmt::Debug + 'static,
2605{
2606 fn from(
2607 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError, R>,
2608 ) -> Self {
2609 match err {
2610 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2611 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2612 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2613 source: err.into(),
2614 }),
2615 }
2616 }
2617}
2618impl From<crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError> for Error {
2619 fn from(err: crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError) -> Self {
2620 match err {
2621 crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2622 crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError::Unhandled(inner) => Error::Unhandled(inner),
2623 }
2624 }
2625}
2626impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError, R>>
2627 for Error
2628where
2629 R: Send + Sync + std::fmt::Debug + 'static,
2630{
2631 fn from(
2632 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError, R>,
2633 ) -> Self {
2634 match err {
2635 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2636 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2637 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2638 source: err.into(),
2639 }),
2640 }
2641 }
2642}
2643impl From<crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError> for Error {
2644 fn from(err: crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError) -> Self {
2645 match err {
2646 crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2647 crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
2648 }
2649 }
2650}
2651impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint::DeleteEndpointError, R>> for Error
2652where
2653 R: Send + Sync + std::fmt::Debug + 'static,
2654{
2655 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint::DeleteEndpointError, R>) -> Self {
2656 match err {
2657 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2658 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2659 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2660 source: err.into(),
2661 }),
2662 }
2663 }
2664}
2665impl From<crate::operation::delete_endpoint::DeleteEndpointError> for Error {
2666 fn from(err: crate::operation::delete_endpoint::DeleteEndpointError) -> Self {
2667 match err {
2668 crate::operation::delete_endpoint::DeleteEndpointError::Unhandled(inner) => Error::Unhandled(inner),
2669 }
2670 }
2671}
2672impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint_config::DeleteEndpointConfigError, R>> for Error
2673where
2674 R: Send + Sync + std::fmt::Debug + 'static,
2675{
2676 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint_config::DeleteEndpointConfigError, R>) -> Self {
2677 match err {
2678 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2679 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2680 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2681 source: err.into(),
2682 }),
2683 }
2684 }
2685}
2686impl From<crate::operation::delete_endpoint_config::DeleteEndpointConfigError> for Error {
2687 fn from(err: crate::operation::delete_endpoint_config::DeleteEndpointConfigError) -> Self {
2688 match err {
2689 crate::operation::delete_endpoint_config::DeleteEndpointConfigError::Unhandled(inner) => Error::Unhandled(inner),
2690 }
2691 }
2692}
2693impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_experiment::DeleteExperimentError, R>> for Error
2694where
2695 R: Send + Sync + std::fmt::Debug + 'static,
2696{
2697 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_experiment::DeleteExperimentError, R>) -> Self {
2698 match err {
2699 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2700 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2701 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2702 source: err.into(),
2703 }),
2704 }
2705 }
2706}
2707impl From<crate::operation::delete_experiment::DeleteExperimentError> for Error {
2708 fn from(err: crate::operation::delete_experiment::DeleteExperimentError) -> Self {
2709 match err {
2710 crate::operation::delete_experiment::DeleteExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2711 crate::operation::delete_experiment::DeleteExperimentError::Unhandled(inner) => Error::Unhandled(inner),
2712 }
2713 }
2714}
2715impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feature_group::DeleteFeatureGroupError, R>> for Error
2716where
2717 R: Send + Sync + std::fmt::Debug + 'static,
2718{
2719 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feature_group::DeleteFeatureGroupError, R>) -> Self {
2720 match err {
2721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2724 source: err.into(),
2725 }),
2726 }
2727 }
2728}
2729impl From<crate::operation::delete_feature_group::DeleteFeatureGroupError> for Error {
2730 fn from(err: crate::operation::delete_feature_group::DeleteFeatureGroupError) -> Self {
2731 match err {
2732 crate::operation::delete_feature_group::DeleteFeatureGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2733 crate::operation::delete_feature_group::DeleteFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
2734 }
2735 }
2736}
2737impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_definition::DeleteFlowDefinitionError, R>> for Error
2738where
2739 R: Send + Sync + std::fmt::Debug + 'static,
2740{
2741 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_definition::DeleteFlowDefinitionError, R>) -> Self {
2742 match err {
2743 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2744 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2745 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2746 source: err.into(),
2747 }),
2748 }
2749 }
2750}
2751impl From<crate::operation::delete_flow_definition::DeleteFlowDefinitionError> for Error {
2752 fn from(err: crate::operation::delete_flow_definition::DeleteFlowDefinitionError) -> Self {
2753 match err {
2754 crate::operation::delete_flow_definition::DeleteFlowDefinitionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2755 crate::operation::delete_flow_definition::DeleteFlowDefinitionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2756 crate::operation::delete_flow_definition::DeleteFlowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2757 }
2758 }
2759}
2760impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub::DeleteHubError, R>> for Error
2761where
2762 R: Send + Sync + std::fmt::Debug + 'static,
2763{
2764 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub::DeleteHubError, R>) -> Self {
2765 match err {
2766 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2767 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2768 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2769 source: err.into(),
2770 }),
2771 }
2772 }
2773}
2774impl From<crate::operation::delete_hub::DeleteHubError> for Error {
2775 fn from(err: crate::operation::delete_hub::DeleteHubError) -> Self {
2776 match err {
2777 crate::operation::delete_hub::DeleteHubError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2778 crate::operation::delete_hub::DeleteHubError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2779 crate::operation::delete_hub::DeleteHubError::Unhandled(inner) => Error::Unhandled(inner),
2780 }
2781 }
2782}
2783impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content::DeleteHubContentError, R>> for Error
2784where
2785 R: Send + Sync + std::fmt::Debug + 'static,
2786{
2787 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content::DeleteHubContentError, R>) -> Self {
2788 match err {
2789 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2790 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2791 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2792 source: err.into(),
2793 }),
2794 }
2795 }
2796}
2797impl From<crate::operation::delete_hub_content::DeleteHubContentError> for Error {
2798 fn from(err: crate::operation::delete_hub_content::DeleteHubContentError) -> Self {
2799 match err {
2800 crate::operation::delete_hub_content::DeleteHubContentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2801 crate::operation::delete_hub_content::DeleteHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2802 crate::operation::delete_hub_content::DeleteHubContentError::Unhandled(inner) => Error::Unhandled(inner),
2803 }
2804 }
2805}
2806impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError, R>>
2807 for Error
2808where
2809 R: Send + Sync + std::fmt::Debug + 'static,
2810{
2811 fn from(
2812 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError, R>,
2813 ) -> Self {
2814 match err {
2815 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2816 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2817 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2818 source: err.into(),
2819 }),
2820 }
2821 }
2822}
2823impl From<crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError> for Error {
2824 fn from(err: crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError) -> Self {
2825 match err {
2826 crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2827 crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError::Unhandled(inner) => Error::Unhandled(inner),
2828 }
2829 }
2830}
2831impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_human_task_ui::DeleteHumanTaskUiError, R>> for Error
2832where
2833 R: Send + Sync + std::fmt::Debug + 'static,
2834{
2835 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_human_task_ui::DeleteHumanTaskUiError, R>) -> Self {
2836 match err {
2837 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2838 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2839 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2840 source: err.into(),
2841 }),
2842 }
2843 }
2844}
2845impl From<crate::operation::delete_human_task_ui::DeleteHumanTaskUiError> for Error {
2846 fn from(err: crate::operation::delete_human_task_ui::DeleteHumanTaskUiError) -> Self {
2847 match err {
2848 crate::operation::delete_human_task_ui::DeleteHumanTaskUiError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2849 crate::operation::delete_human_task_ui::DeleteHumanTaskUiError::Unhandled(inner) => Error::Unhandled(inner),
2850 }
2851 }
2852}
2853impl<R>
2854 From<
2855 ::aws_smithy_runtime_api::client::result::SdkError<
2856 crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError,
2857 R,
2858 >,
2859 > for Error
2860where
2861 R: Send + Sync + std::fmt::Debug + 'static,
2862{
2863 fn from(
2864 err: ::aws_smithy_runtime_api::client::result::SdkError<
2865 crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError,
2866 R,
2867 >,
2868 ) -> Self {
2869 match err {
2870 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2871 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2872 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2873 source: err.into(),
2874 }),
2875 }
2876 }
2877}
2878impl From<crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError> for Error {
2879 fn from(err: crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError) -> Self {
2880 match err {
2881 crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
2882 }
2883 }
2884}
2885impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image::DeleteImageError, R>> for Error
2886where
2887 R: Send + Sync + std::fmt::Debug + 'static,
2888{
2889 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image::DeleteImageError, R>) -> Self {
2890 match err {
2891 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2892 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2893 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2894 source: err.into(),
2895 }),
2896 }
2897 }
2898}
2899impl From<crate::operation::delete_image::DeleteImageError> for Error {
2900 fn from(err: crate::operation::delete_image::DeleteImageError) -> Self {
2901 match err {
2902 crate::operation::delete_image::DeleteImageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2903 crate::operation::delete_image::DeleteImageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2904 crate::operation::delete_image::DeleteImageError::Unhandled(inner) => Error::Unhandled(inner),
2905 }
2906 }
2907}
2908impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_version::DeleteImageVersionError, R>> for Error
2909where
2910 R: Send + Sync + std::fmt::Debug + 'static,
2911{
2912 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_version::DeleteImageVersionError, R>) -> Self {
2913 match err {
2914 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2915 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2916 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2917 source: err.into(),
2918 }),
2919 }
2920 }
2921}
2922impl From<crate::operation::delete_image_version::DeleteImageVersionError> for Error {
2923 fn from(err: crate::operation::delete_image_version::DeleteImageVersionError) -> Self {
2924 match err {
2925 crate::operation::delete_image_version::DeleteImageVersionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2926 crate::operation::delete_image_version::DeleteImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2927 crate::operation::delete_image_version::DeleteImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
2928 }
2929 }
2930}
2931impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_component::DeleteInferenceComponentError, 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_component::DeleteInferenceComponentError, 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_component::DeleteInferenceComponentError> for Error {
2949 fn from(err: crate::operation::delete_inference_component::DeleteInferenceComponentError) -> Self {
2950 match err {
2951 crate::operation::delete_inference_component::DeleteInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
2952 }
2953 }
2954}
2955impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_experiment::DeleteInferenceExperimentError, R>>
2956 for Error
2957where
2958 R: Send + Sync + std::fmt::Debug + 'static,
2959{
2960 fn from(
2961 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_experiment::DeleteInferenceExperimentError, R>,
2962 ) -> Self {
2963 match err {
2964 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2965 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2966 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2967 source: err.into(),
2968 }),
2969 }
2970 }
2971}
2972impl From<crate::operation::delete_inference_experiment::DeleteInferenceExperimentError> for Error {
2973 fn from(err: crate::operation::delete_inference_experiment::DeleteInferenceExperimentError) -> Self {
2974 match err {
2975 crate::operation::delete_inference_experiment::DeleteInferenceExperimentError::ConflictException(inner) => {
2976 Error::ConflictException(inner)
2977 }
2978 crate::operation::delete_inference_experiment::DeleteInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2979 crate::operation::delete_inference_experiment::DeleteInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
2980 }
2981 }
2982}
2983impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_job::DeleteJobError, R>> for Error
2984where
2985 R: Send + Sync + std::fmt::Debug + 'static,
2986{
2987 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_job::DeleteJobError, R>) -> Self {
2988 match err {
2989 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2990 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2991 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2992 source: err.into(),
2993 }),
2994 }
2995 }
2996}
2997impl From<crate::operation::delete_job::DeleteJobError> for Error {
2998 fn from(err: crate::operation::delete_job::DeleteJobError) -> Self {
2999 match err {
3000 crate::operation::delete_job::DeleteJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3001 crate::operation::delete_job::DeleteJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3002 crate::operation::delete_job::DeleteJobError::Unhandled(inner) => Error::Unhandled(inner),
3003 }
3004 }
3005}
3006impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mlflow_app::DeleteMlflowAppError, R>> for Error
3007where
3008 R: Send + Sync + std::fmt::Debug + 'static,
3009{
3010 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mlflow_app::DeleteMlflowAppError, R>) -> Self {
3011 match err {
3012 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3013 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3014 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3015 source: err.into(),
3016 }),
3017 }
3018 }
3019}
3020impl From<crate::operation::delete_mlflow_app::DeleteMlflowAppError> for Error {
3021 fn from(err: crate::operation::delete_mlflow_app::DeleteMlflowAppError) -> Self {
3022 match err {
3023 crate::operation::delete_mlflow_app::DeleteMlflowAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3024 crate::operation::delete_mlflow_app::DeleteMlflowAppError::Unhandled(inner) => Error::Unhandled(inner),
3025 }
3026 }
3027}
3028impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError, R>>
3029 for Error
3030where
3031 R: Send + Sync + std::fmt::Debug + 'static,
3032{
3033 fn from(
3034 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError, R>,
3035 ) -> Self {
3036 match err {
3037 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3038 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3039 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3040 source: err.into(),
3041 }),
3042 }
3043 }
3044}
3045impl From<crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError> for Error {
3046 fn from(err: crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError) -> Self {
3047 match err {
3048 crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError::ResourceNotFound(inner) => {
3049 Error::ResourceNotFound(inner)
3050 }
3051 crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
3052 }
3053 }
3054}
3055impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model::DeleteModelError, R>> for Error
3056where
3057 R: Send + Sync + std::fmt::Debug + 'static,
3058{
3059 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model::DeleteModelError, R>) -> Self {
3060 match err {
3061 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3062 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3063 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3064 source: err.into(),
3065 }),
3066 }
3067 }
3068}
3069impl From<crate::operation::delete_model::DeleteModelError> for Error {
3070 fn from(err: crate::operation::delete_model::DeleteModelError) -> Self {
3071 match err {
3072 crate::operation::delete_model::DeleteModelError::Unhandled(inner) => Error::Unhandled(inner),
3073 }
3074 }
3075}
3076impl<R>
3077 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError, R>>
3078 for Error
3079where
3080 R: Send + Sync + std::fmt::Debug + 'static,
3081{
3082 fn from(
3083 err: ::aws_smithy_runtime_api::client::result::SdkError<
3084 crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError,
3085 R,
3086 >,
3087 ) -> Self {
3088 match err {
3089 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3090 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3091 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3092 source: err.into(),
3093 }),
3094 }
3095 }
3096}
3097impl From<crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError> for Error {
3098 fn from(err: crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError) -> Self {
3099 match err {
3100 crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError::ResourceNotFound(inner) => {
3101 Error::ResourceNotFound(inner)
3102 }
3103 crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
3104 }
3105 }
3106}
3107impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_card::DeleteModelCardError, R>> for Error
3108where
3109 R: Send + Sync + std::fmt::Debug + 'static,
3110{
3111 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_card::DeleteModelCardError, R>) -> Self {
3112 match err {
3113 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3114 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3115 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3116 source: err.into(),
3117 }),
3118 }
3119 }
3120}
3121impl From<crate::operation::delete_model_card::DeleteModelCardError> for Error {
3122 fn from(err: crate::operation::delete_model_card::DeleteModelCardError) -> Self {
3123 match err {
3124 crate::operation::delete_model_card::DeleteModelCardError::ConflictException(inner) => Error::ConflictException(inner),
3125 crate::operation::delete_model_card::DeleteModelCardError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3126 crate::operation::delete_model_card::DeleteModelCardError::Unhandled(inner) => Error::Unhandled(inner),
3127 }
3128 }
3129}
3130impl<R>
3131 From<
3132 ::aws_smithy_runtime_api::client::result::SdkError<
3133 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError,
3134 R,
3135 >,
3136 > for Error
3137where
3138 R: Send + Sync + std::fmt::Debug + 'static,
3139{
3140 fn from(
3141 err: ::aws_smithy_runtime_api::client::result::SdkError<
3142 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError,
3143 R,
3144 >,
3145 ) -> Self {
3146 match err {
3147 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3148 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3149 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3150 source: err.into(),
3151 }),
3152 }
3153 }
3154}
3155impl From<crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError> for Error {
3156 fn from(err: crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError) -> Self {
3157 match err {
3158 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError::ResourceNotFound(inner) => {
3159 Error::ResourceNotFound(inner)
3160 }
3161 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError::Unhandled(inner) => {
3162 Error::Unhandled(inner)
3163 }
3164 }
3165 }
3166}
3167impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package::DeleteModelPackageError, R>> for Error
3168where
3169 R: Send + Sync + std::fmt::Debug + 'static,
3170{
3171 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package::DeleteModelPackageError, R>) -> Self {
3172 match err {
3173 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3174 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3175 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3176 source: err.into(),
3177 }),
3178 }
3179 }
3180}
3181impl From<crate::operation::delete_model_package::DeleteModelPackageError> for Error {
3182 fn from(err: crate::operation::delete_model_package::DeleteModelPackageError) -> Self {
3183 match err {
3184 crate::operation::delete_model_package::DeleteModelPackageError::ConflictException(inner) => Error::ConflictException(inner),
3185 crate::operation::delete_model_package::DeleteModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
3186 }
3187 }
3188}
3189impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package_group::DeleteModelPackageGroupError, R>>
3190 for Error
3191where
3192 R: Send + Sync + std::fmt::Debug + 'static,
3193{
3194 fn from(
3195 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package_group::DeleteModelPackageGroupError, R>,
3196 ) -> Self {
3197 match err {
3198 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3199 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3200 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3201 source: err.into(),
3202 }),
3203 }
3204 }
3205}
3206impl From<crate::operation::delete_model_package_group::DeleteModelPackageGroupError> for Error {
3207 fn from(err: crate::operation::delete_model_package_group::DeleteModelPackageGroupError) -> Self {
3208 match err {
3209 crate::operation::delete_model_package_group::DeleteModelPackageGroupError::ConflictException(inner) => Error::ConflictException(inner),
3210 crate::operation::delete_model_package_group::DeleteModelPackageGroupError::Unhandled(inner) => Error::Unhandled(inner),
3211 }
3212 }
3213}
3214impl<R>
3215 From<
3216 ::aws_smithy_runtime_api::client::result::SdkError<
3217 crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError,
3218 R,
3219 >,
3220 > for Error
3221where
3222 R: Send + Sync + std::fmt::Debug + 'static,
3223{
3224 fn from(
3225 err: ::aws_smithy_runtime_api::client::result::SdkError<
3226 crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError,
3227 R,
3228 >,
3229 ) -> Self {
3230 match err {
3231 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3232 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3233 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3234 source: err.into(),
3235 }),
3236 }
3237 }
3238}
3239impl From<crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError> for Error {
3240 fn from(err: crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError) -> Self {
3241 match err {
3242 crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
3243 }
3244 }
3245}
3246impl<R>
3247 From<
3248 ::aws_smithy_runtime_api::client::result::SdkError<
3249 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError,
3250 R,
3251 >,
3252 > for Error
3253where
3254 R: Send + Sync + std::fmt::Debug + 'static,
3255{
3256 fn from(
3257 err: ::aws_smithy_runtime_api::client::result::SdkError<
3258 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError,
3259 R,
3260 >,
3261 ) -> Self {
3262 match err {
3263 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3264 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3265 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3266 source: err.into(),
3267 }),
3268 }
3269 }
3270}
3271impl From<crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError> for Error {
3272 fn from(err: crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError) -> Self {
3273 match err {
3274 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError::ResourceNotFound(inner) => {
3275 Error::ResourceNotFound(inner)
3276 }
3277 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
3278 }
3279 }
3280}
3281impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError, R>>
3282 for Error
3283where
3284 R: Send + Sync + std::fmt::Debug + 'static,
3285{
3286 fn from(
3287 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError, R>,
3288 ) -> Self {
3289 match err {
3290 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3291 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3292 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3293 source: err.into(),
3294 }),
3295 }
3296 }
3297}
3298impl From<crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError> for Error {
3299 fn from(err: crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError) -> Self {
3300 match err {
3301 crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3302 crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
3303 }
3304 }
3305}
3306impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notebook_instance::DeleteNotebookInstanceError, R>> for Error
3307where
3308 R: Send + Sync + std::fmt::Debug + 'static,
3309{
3310 fn from(
3311 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notebook_instance::DeleteNotebookInstanceError, R>,
3312 ) -> Self {
3313 match err {
3314 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3315 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3316 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3317 source: err.into(),
3318 }),
3319 }
3320 }
3321}
3322impl From<crate::operation::delete_notebook_instance::DeleteNotebookInstanceError> for Error {
3323 fn from(err: crate::operation::delete_notebook_instance::DeleteNotebookInstanceError) -> Self {
3324 match err {
3325 crate::operation::delete_notebook_instance::DeleteNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
3326 }
3327 }
3328}
3329impl<R>
3330 From<
3331 ::aws_smithy_runtime_api::client::result::SdkError<
3332 crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError,
3333 R,
3334 >,
3335 > for Error
3336where
3337 R: Send + Sync + std::fmt::Debug + 'static,
3338{
3339 fn from(
3340 err: ::aws_smithy_runtime_api::client::result::SdkError<
3341 crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError,
3342 R,
3343 >,
3344 ) -> 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_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError> for Error {
3355 fn from(err: crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError) -> Self {
3356 match err {
3357 crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
3358 Error::Unhandled(inner)
3359 }
3360 }
3361 }
3362}
3363impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_optimization_job::DeleteOptimizationJobError, R>> for Error
3364where
3365 R: Send + Sync + std::fmt::Debug + 'static,
3366{
3367 fn from(
3368 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_optimization_job::DeleteOptimizationJobError, R>,
3369 ) -> Self {
3370 match err {
3371 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3372 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3373 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3374 source: err.into(),
3375 }),
3376 }
3377 }
3378}
3379impl From<crate::operation::delete_optimization_job::DeleteOptimizationJobError> for Error {
3380 fn from(err: crate::operation::delete_optimization_job::DeleteOptimizationJobError) -> Self {
3381 match err {
3382 crate::operation::delete_optimization_job::DeleteOptimizationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3383 crate::operation::delete_optimization_job::DeleteOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
3384 }
3385 }
3386}
3387impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_partner_app::DeletePartnerAppError, R>> for Error
3388where
3389 R: Send + Sync + std::fmt::Debug + 'static,
3390{
3391 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_partner_app::DeletePartnerAppError, R>) -> Self {
3392 match err {
3393 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3394 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3395 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3396 source: err.into(),
3397 }),
3398 }
3399 }
3400}
3401impl From<crate::operation::delete_partner_app::DeletePartnerAppError> for Error {
3402 fn from(err: crate::operation::delete_partner_app::DeletePartnerAppError) -> Self {
3403 match err {
3404 crate::operation::delete_partner_app::DeletePartnerAppError::ConflictException(inner) => Error::ConflictException(inner),
3405 crate::operation::delete_partner_app::DeletePartnerAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3406 crate::operation::delete_partner_app::DeletePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
3407 }
3408 }
3409}
3410impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pipeline::DeletePipelineError, R>> for Error
3411where
3412 R: Send + Sync + std::fmt::Debug + 'static,
3413{
3414 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pipeline::DeletePipelineError, R>) -> Self {
3415 match err {
3416 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3417 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3418 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3419 source: err.into(),
3420 }),
3421 }
3422 }
3423}
3424impl From<crate::operation::delete_pipeline::DeletePipelineError> for Error {
3425 fn from(err: crate::operation::delete_pipeline::DeletePipelineError) -> Self {
3426 match err {
3427 crate::operation::delete_pipeline::DeletePipelineError::ConflictException(inner) => Error::ConflictException(inner),
3428 crate::operation::delete_pipeline::DeletePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3429 crate::operation::delete_pipeline::DeletePipelineError::Unhandled(inner) => Error::Unhandled(inner),
3430 }
3431 }
3432}
3433impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_processing_job::DeleteProcessingJobError, R>> for Error
3434where
3435 R: Send + Sync + std::fmt::Debug + 'static,
3436{
3437 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_processing_job::DeleteProcessingJobError, R>) -> Self {
3438 match err {
3439 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3440 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3441 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3442 source: err.into(),
3443 }),
3444 }
3445 }
3446}
3447impl From<crate::operation::delete_processing_job::DeleteProcessingJobError> for Error {
3448 fn from(err: crate::operation::delete_processing_job::DeleteProcessingJobError) -> Self {
3449 match err {
3450 crate::operation::delete_processing_job::DeleteProcessingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3451 crate::operation::delete_processing_job::DeleteProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3452 crate::operation::delete_processing_job::DeleteProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
3453 }
3454 }
3455}
3456impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>> for Error
3457where
3458 R: Send + Sync + std::fmt::Debug + 'static,
3459{
3460 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>) -> Self {
3461 match err {
3462 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3463 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3464 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3465 source: err.into(),
3466 }),
3467 }
3468 }
3469}
3470impl From<crate::operation::delete_project::DeleteProjectError> for Error {
3471 fn from(err: crate::operation::delete_project::DeleteProjectError) -> Self {
3472 match err {
3473 crate::operation::delete_project::DeleteProjectError::ConflictException(inner) => Error::ConflictException(inner),
3474 crate::operation::delete_project::DeleteProjectError::Unhandled(inner) => Error::Unhandled(inner),
3475 }
3476 }
3477}
3478impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_space::DeleteSpaceError, R>> for Error
3479where
3480 R: Send + Sync + std::fmt::Debug + 'static,
3481{
3482 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_space::DeleteSpaceError, R>) -> Self {
3483 match err {
3484 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3485 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3486 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3487 source: err.into(),
3488 }),
3489 }
3490 }
3491}
3492impl From<crate::operation::delete_space::DeleteSpaceError> for Error {
3493 fn from(err: crate::operation::delete_space::DeleteSpaceError) -> Self {
3494 match err {
3495 crate::operation::delete_space::DeleteSpaceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3496 crate::operation::delete_space::DeleteSpaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3497 crate::operation::delete_space::DeleteSpaceError::Unhandled(inner) => Error::Unhandled(inner),
3498 }
3499 }
3500}
3501impl<R>
3502 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError, R>>
3503 for Error
3504where
3505 R: Send + Sync + std::fmt::Debug + 'static,
3506{
3507 fn from(
3508 err: ::aws_smithy_runtime_api::client::result::SdkError<
3509 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError,
3510 R,
3511 >,
3512 ) -> Self {
3513 match err {
3514 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3515 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3516 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3517 source: err.into(),
3518 }),
3519 }
3520 }
3521}
3522impl From<crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError> for Error {
3523 fn from(err: crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError) -> Self {
3524 match err {
3525 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3526 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError::ResourceNotFound(inner) => {
3527 Error::ResourceNotFound(inner)
3528 }
3529 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError::Unhandled(inner) => Error::Unhandled(inner),
3530 }
3531 }
3532}
3533impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>> for Error
3534where
3535 R: Send + Sync + std::fmt::Debug + 'static,
3536{
3537 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>) -> Self {
3538 match err {
3539 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3540 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3541 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3542 source: err.into(),
3543 }),
3544 }
3545 }
3546}
3547impl From<crate::operation::delete_tags::DeleteTagsError> for Error {
3548 fn from(err: crate::operation::delete_tags::DeleteTagsError) -> Self {
3549 match err {
3550 crate::operation::delete_tags::DeleteTagsError::Unhandled(inner) => Error::Unhandled(inner),
3551 }
3552 }
3553}
3554impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_training_job::DeleteTrainingJobError, R>> for Error
3555where
3556 R: Send + Sync + std::fmt::Debug + 'static,
3557{
3558 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_training_job::DeleteTrainingJobError, R>) -> Self {
3559 match err {
3560 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3561 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3562 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3563 source: err.into(),
3564 }),
3565 }
3566 }
3567}
3568impl From<crate::operation::delete_training_job::DeleteTrainingJobError> for Error {
3569 fn from(err: crate::operation::delete_training_job::DeleteTrainingJobError) -> Self {
3570 match err {
3571 crate::operation::delete_training_job::DeleteTrainingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3572 crate::operation::delete_training_job::DeleteTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3573 crate::operation::delete_training_job::DeleteTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
3574 }
3575 }
3576}
3577impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial::DeleteTrialError, R>> for Error
3578where
3579 R: Send + Sync + std::fmt::Debug + 'static,
3580{
3581 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial::DeleteTrialError, R>) -> Self {
3582 match err {
3583 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3584 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3585 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3586 source: err.into(),
3587 }),
3588 }
3589 }
3590}
3591impl From<crate::operation::delete_trial::DeleteTrialError> for Error {
3592 fn from(err: crate::operation::delete_trial::DeleteTrialError) -> Self {
3593 match err {
3594 crate::operation::delete_trial::DeleteTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3595 crate::operation::delete_trial::DeleteTrialError::Unhandled(inner) => Error::Unhandled(inner),
3596 }
3597 }
3598}
3599impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial_component::DeleteTrialComponentError, R>> for Error
3600where
3601 R: Send + Sync + std::fmt::Debug + 'static,
3602{
3603 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial_component::DeleteTrialComponentError, R>) -> Self {
3604 match err {
3605 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3606 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3607 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3608 source: err.into(),
3609 }),
3610 }
3611 }
3612}
3613impl From<crate::operation::delete_trial_component::DeleteTrialComponentError> for Error {
3614 fn from(err: crate::operation::delete_trial_component::DeleteTrialComponentError) -> Self {
3615 match err {
3616 crate::operation::delete_trial_component::DeleteTrialComponentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3617 crate::operation::delete_trial_component::DeleteTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
3618 }
3619 }
3620}
3621impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_profile::DeleteUserProfileError, R>> for Error
3622where
3623 R: Send + Sync + std::fmt::Debug + 'static,
3624{
3625 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_profile::DeleteUserProfileError, R>) -> Self {
3626 match err {
3627 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3628 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3629 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3630 source: err.into(),
3631 }),
3632 }
3633 }
3634}
3635impl From<crate::operation::delete_user_profile::DeleteUserProfileError> for Error {
3636 fn from(err: crate::operation::delete_user_profile::DeleteUserProfileError) -> Self {
3637 match err {
3638 crate::operation::delete_user_profile::DeleteUserProfileError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3639 crate::operation::delete_user_profile::DeleteUserProfileError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3640 crate::operation::delete_user_profile::DeleteUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
3641 }
3642 }
3643}
3644impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workforce::DeleteWorkforceError, R>> for Error
3645where
3646 R: Send + Sync + std::fmt::Debug + 'static,
3647{
3648 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workforce::DeleteWorkforceError, R>) -> Self {
3649 match err {
3650 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3651 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3652 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3653 source: err.into(),
3654 }),
3655 }
3656 }
3657}
3658impl From<crate::operation::delete_workforce::DeleteWorkforceError> for Error {
3659 fn from(err: crate::operation::delete_workforce::DeleteWorkforceError) -> Self {
3660 match err {
3661 crate::operation::delete_workforce::DeleteWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
3662 }
3663 }
3664}
3665impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workteam::DeleteWorkteamError, R>> for Error
3666where
3667 R: Send + Sync + std::fmt::Debug + 'static,
3668{
3669 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workteam::DeleteWorkteamError, R>) -> Self {
3670 match err {
3671 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3672 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3673 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3674 source: err.into(),
3675 }),
3676 }
3677 }
3678}
3679impl From<crate::operation::delete_workteam::DeleteWorkteamError> for Error {
3680 fn from(err: crate::operation::delete_workteam::DeleteWorkteamError) -> Self {
3681 match err {
3682 crate::operation::delete_workteam::DeleteWorkteamError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
3683 crate::operation::delete_workteam::DeleteWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
3684 }
3685 }
3686}
3687impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_devices::DeregisterDevicesError, R>> for Error
3688where
3689 R: Send + Sync + std::fmt::Debug + 'static,
3690{
3691 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_devices::DeregisterDevicesError, R>) -> Self {
3692 match err {
3693 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3694 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3695 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3696 source: err.into(),
3697 }),
3698 }
3699 }
3700}
3701impl From<crate::operation::deregister_devices::DeregisterDevicesError> for Error {
3702 fn from(err: crate::operation::deregister_devices::DeregisterDevicesError) -> Self {
3703 match err {
3704 crate::operation::deregister_devices::DeregisterDevicesError::Unhandled(inner) => Error::Unhandled(inner),
3705 }
3706 }
3707}
3708impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_action::DescribeActionError, R>> for Error
3709where
3710 R: Send + Sync + std::fmt::Debug + 'static,
3711{
3712 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_action::DescribeActionError, R>) -> Self {
3713 match err {
3714 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3715 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3716 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3717 source: err.into(),
3718 }),
3719 }
3720 }
3721}
3722impl From<crate::operation::describe_action::DescribeActionError> for Error {
3723 fn from(err: crate::operation::describe_action::DescribeActionError) -> Self {
3724 match err {
3725 crate::operation::describe_action::DescribeActionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3726 crate::operation::describe_action::DescribeActionError::Unhandled(inner) => Error::Unhandled(inner),
3727 }
3728 }
3729}
3730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ai_benchmark_job::DescribeAIBenchmarkJobError, R>>
3731 for Error
3732where
3733 R: Send + Sync + std::fmt::Debug + 'static,
3734{
3735 fn from(
3736 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ai_benchmark_job::DescribeAIBenchmarkJobError, R>,
3737 ) -> Self {
3738 match err {
3739 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3740 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3741 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3742 source: err.into(),
3743 }),
3744 }
3745 }
3746}
3747impl From<crate::operation::describe_ai_benchmark_job::DescribeAIBenchmarkJobError> for Error {
3748 fn from(err: crate::operation::describe_ai_benchmark_job::DescribeAIBenchmarkJobError) -> Self {
3749 match err {
3750 crate::operation::describe_ai_benchmark_job::DescribeAIBenchmarkJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3751 crate::operation::describe_ai_benchmark_job::DescribeAIBenchmarkJobError::Unhandled(inner) => Error::Unhandled(inner),
3752 }
3753 }
3754}
3755impl<R>
3756 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ai_recommendation_job::DescribeAIRecommendationJobError, R>>
3757 for Error
3758where
3759 R: Send + Sync + std::fmt::Debug + 'static,
3760{
3761 fn from(
3762 err: ::aws_smithy_runtime_api::client::result::SdkError<
3763 crate::operation::describe_ai_recommendation_job::DescribeAIRecommendationJobError,
3764 R,
3765 >,
3766 ) -> Self {
3767 match err {
3768 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3769 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3770 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3771 source: err.into(),
3772 }),
3773 }
3774 }
3775}
3776impl From<crate::operation::describe_ai_recommendation_job::DescribeAIRecommendationJobError> for Error {
3777 fn from(err: crate::operation::describe_ai_recommendation_job::DescribeAIRecommendationJobError) -> Self {
3778 match err {
3779 crate::operation::describe_ai_recommendation_job::DescribeAIRecommendationJobError::ResourceNotFound(inner) => {
3780 Error::ResourceNotFound(inner)
3781 }
3782 crate::operation::describe_ai_recommendation_job::DescribeAIRecommendationJobError::Unhandled(inner) => Error::Unhandled(inner),
3783 }
3784 }
3785}
3786impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ai_workload_config::DescribeAIWorkloadConfigError, R>>
3787 for Error
3788where
3789 R: Send + Sync + std::fmt::Debug + 'static,
3790{
3791 fn from(
3792 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ai_workload_config::DescribeAIWorkloadConfigError, R>,
3793 ) -> Self {
3794 match err {
3795 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3796 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3797 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3798 source: err.into(),
3799 }),
3800 }
3801 }
3802}
3803impl From<crate::operation::describe_ai_workload_config::DescribeAIWorkloadConfigError> for Error {
3804 fn from(err: crate::operation::describe_ai_workload_config::DescribeAIWorkloadConfigError) -> Self {
3805 match err {
3806 crate::operation::describe_ai_workload_config::DescribeAIWorkloadConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3807 crate::operation::describe_ai_workload_config::DescribeAIWorkloadConfigError::Unhandled(inner) => Error::Unhandled(inner),
3808 }
3809 }
3810}
3811impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_algorithm::DescribeAlgorithmError, R>> for Error
3812where
3813 R: Send + Sync + std::fmt::Debug + 'static,
3814{
3815 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_algorithm::DescribeAlgorithmError, R>) -> Self {
3816 match err {
3817 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3818 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3819 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3820 source: err.into(),
3821 }),
3822 }
3823 }
3824}
3825impl From<crate::operation::describe_algorithm::DescribeAlgorithmError> for Error {
3826 fn from(err: crate::operation::describe_algorithm::DescribeAlgorithmError) -> Self {
3827 match err {
3828 crate::operation::describe_algorithm::DescribeAlgorithmError::Unhandled(inner) => Error::Unhandled(inner),
3829 }
3830 }
3831}
3832impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app::DescribeAppError, 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_app::DescribeAppError, 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_app::DescribeAppError> for Error {
3847 fn from(err: crate::operation::describe_app::DescribeAppError) -> Self {
3848 match err {
3849 crate::operation::describe_app::DescribeAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3850 crate::operation::describe_app::DescribeAppError::Unhandled(inner) => Error::Unhandled(inner),
3851 }
3852 }
3853}
3854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_image_config::DescribeAppImageConfigError, R>>
3855 for Error
3856where
3857 R: Send + Sync + std::fmt::Debug + 'static,
3858{
3859 fn from(
3860 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_image_config::DescribeAppImageConfigError, R>,
3861 ) -> Self {
3862 match err {
3863 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3864 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3865 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3866 source: err.into(),
3867 }),
3868 }
3869 }
3870}
3871impl From<crate::operation::describe_app_image_config::DescribeAppImageConfigError> for Error {
3872 fn from(err: crate::operation::describe_app_image_config::DescribeAppImageConfigError) -> Self {
3873 match err {
3874 crate::operation::describe_app_image_config::DescribeAppImageConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3875 crate::operation::describe_app_image_config::DescribeAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
3876 }
3877 }
3878}
3879impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_artifact::DescribeArtifactError, R>> for Error
3880where
3881 R: Send + Sync + std::fmt::Debug + 'static,
3882{
3883 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_artifact::DescribeArtifactError, R>) -> Self {
3884 match err {
3885 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3886 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3887 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3888 source: err.into(),
3889 }),
3890 }
3891 }
3892}
3893impl From<crate::operation::describe_artifact::DescribeArtifactError> for Error {
3894 fn from(err: crate::operation::describe_artifact::DescribeArtifactError) -> Self {
3895 match err {
3896 crate::operation::describe_artifact::DescribeArtifactError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3897 crate::operation::describe_artifact::DescribeArtifactError::Unhandled(inner) => Error::Unhandled(inner),
3898 }
3899 }
3900}
3901impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job::DescribeAutoMLJobError, R>> for Error
3902where
3903 R: Send + Sync + std::fmt::Debug + 'static,
3904{
3905 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job::DescribeAutoMLJobError, R>) -> Self {
3906 match err {
3907 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3908 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3909 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3910 source: err.into(),
3911 }),
3912 }
3913 }
3914}
3915impl From<crate::operation::describe_auto_ml_job::DescribeAutoMLJobError> for Error {
3916 fn from(err: crate::operation::describe_auto_ml_job::DescribeAutoMLJobError) -> Self {
3917 match err {
3918 crate::operation::describe_auto_ml_job::DescribeAutoMLJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3919 crate::operation::describe_auto_ml_job::DescribeAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
3920 }
3921 }
3922}
3923impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error, R>> for Error
3924where
3925 R: Send + Sync + std::fmt::Debug + 'static,
3926{
3927 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error, R>) -> Self {
3928 match err {
3929 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3930 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3931 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3932 source: err.into(),
3933 }),
3934 }
3935 }
3936}
3937impl From<crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error> for Error {
3938 fn from(err: crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error) -> Self {
3939 match err {
3940 crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3941 crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error::Unhandled(inner) => Error::Unhandled(inner),
3942 }
3943 }
3944}
3945impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster::DescribeClusterError, R>> for Error
3946where
3947 R: Send + Sync + std::fmt::Debug + 'static,
3948{
3949 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster::DescribeClusterError, R>) -> Self {
3950 match err {
3951 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3952 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3953 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3954 source: err.into(),
3955 }),
3956 }
3957 }
3958}
3959impl From<crate::operation::describe_cluster::DescribeClusterError> for Error {
3960 fn from(err: crate::operation::describe_cluster::DescribeClusterError) -> Self {
3961 match err {
3962 crate::operation::describe_cluster::DescribeClusterError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3963 crate::operation::describe_cluster::DescribeClusterError::Unhandled(inner) => Error::Unhandled(inner),
3964 }
3965 }
3966}
3967impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_event::DescribeClusterEventError, R>> for Error
3968where
3969 R: Send + Sync + std::fmt::Debug + 'static,
3970{
3971 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_event::DescribeClusterEventError, R>) -> Self {
3972 match err {
3973 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3974 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3975 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3976 source: err.into(),
3977 }),
3978 }
3979 }
3980}
3981impl From<crate::operation::describe_cluster_event::DescribeClusterEventError> for Error {
3982 fn from(err: crate::operation::describe_cluster_event::DescribeClusterEventError) -> Self {
3983 match err {
3984 crate::operation::describe_cluster_event::DescribeClusterEventError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3985 crate::operation::describe_cluster_event::DescribeClusterEventError::Unhandled(inner) => Error::Unhandled(inner),
3986 }
3987 }
3988}
3989impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_node::DescribeClusterNodeError, R>> for Error
3990where
3991 R: Send + Sync + std::fmt::Debug + 'static,
3992{
3993 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_node::DescribeClusterNodeError, R>) -> Self {
3994 match err {
3995 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3996 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3997 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3998 source: err.into(),
3999 }),
4000 }
4001 }
4002}
4003impl From<crate::operation::describe_cluster_node::DescribeClusterNodeError> for Error {
4004 fn from(err: crate::operation::describe_cluster_node::DescribeClusterNodeError) -> Self {
4005 match err {
4006 crate::operation::describe_cluster_node::DescribeClusterNodeError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4007 crate::operation::describe_cluster_node::DescribeClusterNodeError::Unhandled(inner) => Error::Unhandled(inner),
4008 }
4009 }
4010}
4011impl<R>
4012 From<
4013 ::aws_smithy_runtime_api::client::result::SdkError<
4014 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError,
4015 R,
4016 >,
4017 > for Error
4018where
4019 R: Send + Sync + std::fmt::Debug + 'static,
4020{
4021 fn from(
4022 err: ::aws_smithy_runtime_api::client::result::SdkError<
4023 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError,
4024 R,
4025 >,
4026 ) -> Self {
4027 match err {
4028 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4029 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4030 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4031 source: err.into(),
4032 }),
4033 }
4034 }
4035}
4036impl From<crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError> for Error {
4037 fn from(err: crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError) -> Self {
4038 match err {
4039 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError::ResourceNotFound(inner) => {
4040 Error::ResourceNotFound(inner)
4041 }
4042 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
4043 }
4044 }
4045}
4046impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_code_repository::DescribeCodeRepositoryError, R>> for Error
4047where
4048 R: Send + Sync + std::fmt::Debug + 'static,
4049{
4050 fn from(
4051 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_code_repository::DescribeCodeRepositoryError, R>,
4052 ) -> Self {
4053 match err {
4054 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4055 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4056 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4057 source: err.into(),
4058 }),
4059 }
4060 }
4061}
4062impl From<crate::operation::describe_code_repository::DescribeCodeRepositoryError> for Error {
4063 fn from(err: crate::operation::describe_code_repository::DescribeCodeRepositoryError) -> Self {
4064 match err {
4065 crate::operation::describe_code_repository::DescribeCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
4066 }
4067 }
4068}
4069impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compilation_job::DescribeCompilationJobError, R>> for Error
4070where
4071 R: Send + Sync + std::fmt::Debug + 'static,
4072{
4073 fn from(
4074 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compilation_job::DescribeCompilationJobError, R>,
4075 ) -> Self {
4076 match err {
4077 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4078 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4079 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4080 source: err.into(),
4081 }),
4082 }
4083 }
4084}
4085impl From<crate::operation::describe_compilation_job::DescribeCompilationJobError> for Error {
4086 fn from(err: crate::operation::describe_compilation_job::DescribeCompilationJobError) -> Self {
4087 match err {
4088 crate::operation::describe_compilation_job::DescribeCompilationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4089 crate::operation::describe_compilation_job::DescribeCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
4090 }
4091 }
4092}
4093impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compute_quota::DescribeComputeQuotaError, R>> for Error
4094where
4095 R: Send + Sync + std::fmt::Debug + 'static,
4096{
4097 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compute_quota::DescribeComputeQuotaError, R>) -> Self {
4098 match err {
4099 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4100 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4101 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4102 source: err.into(),
4103 }),
4104 }
4105 }
4106}
4107impl From<crate::operation::describe_compute_quota::DescribeComputeQuotaError> for Error {
4108 fn from(err: crate::operation::describe_compute_quota::DescribeComputeQuotaError) -> Self {
4109 match err {
4110 crate::operation::describe_compute_quota::DescribeComputeQuotaError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4111 crate::operation::describe_compute_quota::DescribeComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
4112 }
4113 }
4114}
4115impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_context::DescribeContextError, R>> for Error
4116where
4117 R: Send + Sync + std::fmt::Debug + 'static,
4118{
4119 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_context::DescribeContextError, R>) -> Self {
4120 match err {
4121 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4122 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4123 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4124 source: err.into(),
4125 }),
4126 }
4127 }
4128}
4129impl From<crate::operation::describe_context::DescribeContextError> for Error {
4130 fn from(err: crate::operation::describe_context::DescribeContextError) -> Self {
4131 match err {
4132 crate::operation::describe_context::DescribeContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4133 crate::operation::describe_context::DescribeContextError::Unhandled(inner) => Error::Unhandled(inner),
4134 }
4135 }
4136}
4137impl<R>
4138 From<
4139 ::aws_smithy_runtime_api::client::result::SdkError<
4140 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError,
4141 R,
4142 >,
4143 > for Error
4144where
4145 R: Send + Sync + std::fmt::Debug + 'static,
4146{
4147 fn from(
4148 err: ::aws_smithy_runtime_api::client::result::SdkError<
4149 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError,
4150 R,
4151 >,
4152 ) -> Self {
4153 match err {
4154 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4155 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4156 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4157 source: err.into(),
4158 }),
4159 }
4160 }
4161}
4162impl From<crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError> for Error {
4163 fn from(err: crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError) -> Self {
4164 match err {
4165 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError::ResourceNotFound(inner) => {
4166 Error::ResourceNotFound(inner)
4167 }
4168 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError::Unhandled(inner) => {
4169 Error::Unhandled(inner)
4170 }
4171 }
4172 }
4173}
4174impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device::DescribeDeviceError, R>> for Error
4175where
4176 R: Send + Sync + std::fmt::Debug + 'static,
4177{
4178 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device::DescribeDeviceError, R>) -> Self {
4179 match err {
4180 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4181 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4182 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4183 source: err.into(),
4184 }),
4185 }
4186 }
4187}
4188impl From<crate::operation::describe_device::DescribeDeviceError> for Error {
4189 fn from(err: crate::operation::describe_device::DescribeDeviceError) -> Self {
4190 match err {
4191 crate::operation::describe_device::DescribeDeviceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4192 crate::operation::describe_device::DescribeDeviceError::Unhandled(inner) => Error::Unhandled(inner),
4193 }
4194 }
4195}
4196impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device_fleet::DescribeDeviceFleetError, R>> for Error
4197where
4198 R: Send + Sync + std::fmt::Debug + 'static,
4199{
4200 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device_fleet::DescribeDeviceFleetError, R>) -> 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_device_fleet::DescribeDeviceFleetError> for Error {
4211 fn from(err: crate::operation::describe_device_fleet::DescribeDeviceFleetError) -> Self {
4212 match err {
4213 crate::operation::describe_device_fleet::DescribeDeviceFleetError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4214 crate::operation::describe_device_fleet::DescribeDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
4215 }
4216 }
4217}
4218impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_domain::DescribeDomainError, R>> for Error
4219where
4220 R: Send + Sync + std::fmt::Debug + 'static,
4221{
4222 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_domain::DescribeDomainError, R>) -> Self {
4223 match err {
4224 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4225 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4226 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4227 source: err.into(),
4228 }),
4229 }
4230 }
4231}
4232impl From<crate::operation::describe_domain::DescribeDomainError> for Error {
4233 fn from(err: crate::operation::describe_domain::DescribeDomainError) -> Self {
4234 match err {
4235 crate::operation::describe_domain::DescribeDomainError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4236 crate::operation::describe_domain::DescribeDomainError::Unhandled(inner) => Error::Unhandled(inner),
4237 }
4238 }
4239}
4240impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError, R>>
4241 for Error
4242where
4243 R: Send + Sync + std::fmt::Debug + 'static,
4244{
4245 fn from(
4246 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError, R>,
4247 ) -> Self {
4248 match err {
4249 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4250 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4251 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4252 source: err.into(),
4253 }),
4254 }
4255 }
4256}
4257impl From<crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError> for Error {
4258 fn from(err: crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError) -> Self {
4259 match err {
4260 crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError::ResourceNotFound(inner) => {
4261 Error::ResourceNotFound(inner)
4262 }
4263 crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError::Unhandled(inner) => Error::Unhandled(inner),
4264 }
4265 }
4266}
4267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError, R>>
4268 for Error
4269where
4270 R: Send + Sync + std::fmt::Debug + 'static,
4271{
4272 fn from(
4273 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError, R>,
4274 ) -> Self {
4275 match err {
4276 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4277 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4278 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4279 source: err.into(),
4280 }),
4281 }
4282 }
4283}
4284impl From<crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError> for Error {
4285 fn from(err: crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError) -> Self {
4286 match err {
4287 crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4288 crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError::Unhandled(inner) => Error::Unhandled(inner),
4289 }
4290 }
4291}
4292impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint::DescribeEndpointError, R>> for Error
4293where
4294 R: Send + Sync + std::fmt::Debug + 'static,
4295{
4296 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint::DescribeEndpointError, R>) -> Self {
4297 match err {
4298 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4299 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4300 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4301 source: err.into(),
4302 }),
4303 }
4304 }
4305}
4306impl From<crate::operation::describe_endpoint::DescribeEndpointError> for Error {
4307 fn from(err: crate::operation::describe_endpoint::DescribeEndpointError) -> Self {
4308 match err {
4309 crate::operation::describe_endpoint::DescribeEndpointError::Unhandled(inner) => Error::Unhandled(inner),
4310 }
4311 }
4312}
4313impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint_config::DescribeEndpointConfigError, R>> for Error
4314where
4315 R: Send + Sync + std::fmt::Debug + 'static,
4316{
4317 fn from(
4318 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint_config::DescribeEndpointConfigError, R>,
4319 ) -> Self {
4320 match err {
4321 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4322 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4323 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4324 source: err.into(),
4325 }),
4326 }
4327 }
4328}
4329impl From<crate::operation::describe_endpoint_config::DescribeEndpointConfigError> for Error {
4330 fn from(err: crate::operation::describe_endpoint_config::DescribeEndpointConfigError) -> Self {
4331 match err {
4332 crate::operation::describe_endpoint_config::DescribeEndpointConfigError::Unhandled(inner) => Error::Unhandled(inner),
4333 }
4334 }
4335}
4336impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_experiment::DescribeExperimentError, R>> for Error
4337where
4338 R: Send + Sync + std::fmt::Debug + 'static,
4339{
4340 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_experiment::DescribeExperimentError, R>) -> 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_experiment::DescribeExperimentError> for Error {
4351 fn from(err: crate::operation::describe_experiment::DescribeExperimentError) -> Self {
4352 match err {
4353 crate::operation::describe_experiment::DescribeExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4354 crate::operation::describe_experiment::DescribeExperimentError::Unhandled(inner) => Error::Unhandled(inner),
4355 }
4356 }
4357}
4358impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_group::DescribeFeatureGroupError, R>> for Error
4359where
4360 R: Send + Sync + std::fmt::Debug + 'static,
4361{
4362 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_group::DescribeFeatureGroupError, R>) -> Self {
4363 match err {
4364 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4365 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4366 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4367 source: err.into(),
4368 }),
4369 }
4370 }
4371}
4372impl From<crate::operation::describe_feature_group::DescribeFeatureGroupError> for Error {
4373 fn from(err: crate::operation::describe_feature_group::DescribeFeatureGroupError) -> Self {
4374 match err {
4375 crate::operation::describe_feature_group::DescribeFeatureGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4376 crate::operation::describe_feature_group::DescribeFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
4377 }
4378 }
4379}
4380impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_metadata::DescribeFeatureMetadataError, R>>
4381 for Error
4382where
4383 R: Send + Sync + std::fmt::Debug + 'static,
4384{
4385 fn from(
4386 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_metadata::DescribeFeatureMetadataError, R>,
4387 ) -> Self {
4388 match err {
4389 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4390 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4391 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4392 source: err.into(),
4393 }),
4394 }
4395 }
4396}
4397impl From<crate::operation::describe_feature_metadata::DescribeFeatureMetadataError> for Error {
4398 fn from(err: crate::operation::describe_feature_metadata::DescribeFeatureMetadataError) -> Self {
4399 match err {
4400 crate::operation::describe_feature_metadata::DescribeFeatureMetadataError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4401 crate::operation::describe_feature_metadata::DescribeFeatureMetadataError::Unhandled(inner) => Error::Unhandled(inner),
4402 }
4403 }
4404}
4405impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_definition::DescribeFlowDefinitionError, R>> for Error
4406where
4407 R: Send + Sync + std::fmt::Debug + 'static,
4408{
4409 fn from(
4410 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_definition::DescribeFlowDefinitionError, R>,
4411 ) -> Self {
4412 match err {
4413 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4414 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4415 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4416 source: err.into(),
4417 }),
4418 }
4419 }
4420}
4421impl From<crate::operation::describe_flow_definition::DescribeFlowDefinitionError> for Error {
4422 fn from(err: crate::operation::describe_flow_definition::DescribeFlowDefinitionError) -> Self {
4423 match err {
4424 crate::operation::describe_flow_definition::DescribeFlowDefinitionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4425 crate::operation::describe_flow_definition::DescribeFlowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
4426 }
4427 }
4428}
4429impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub::DescribeHubError, R>> for Error
4430where
4431 R: Send + Sync + std::fmt::Debug + 'static,
4432{
4433 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub::DescribeHubError, R>) -> Self {
4434 match err {
4435 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4436 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4437 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4438 source: err.into(),
4439 }),
4440 }
4441 }
4442}
4443impl From<crate::operation::describe_hub::DescribeHubError> for Error {
4444 fn from(err: crate::operation::describe_hub::DescribeHubError) -> Self {
4445 match err {
4446 crate::operation::describe_hub::DescribeHubError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4447 crate::operation::describe_hub::DescribeHubError::Unhandled(inner) => Error::Unhandled(inner),
4448 }
4449 }
4450}
4451impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub_content::DescribeHubContentError, R>> for Error
4452where
4453 R: Send + Sync + std::fmt::Debug + 'static,
4454{
4455 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub_content::DescribeHubContentError, R>) -> Self {
4456 match err {
4457 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4458 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4459 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4460 source: err.into(),
4461 }),
4462 }
4463 }
4464}
4465impl From<crate::operation::describe_hub_content::DescribeHubContentError> for Error {
4466 fn from(err: crate::operation::describe_hub_content::DescribeHubContentError) -> Self {
4467 match err {
4468 crate::operation::describe_hub_content::DescribeHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4469 crate::operation::describe_hub_content::DescribeHubContentError::Unhandled(inner) => Error::Unhandled(inner),
4470 }
4471 }
4472}
4473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_human_task_ui::DescribeHumanTaskUiError, R>> for Error
4474where
4475 R: Send + Sync + std::fmt::Debug + 'static,
4476{
4477 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_human_task_ui::DescribeHumanTaskUiError, R>) -> Self {
4478 match err {
4479 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4480 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4481 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4482 source: err.into(),
4483 }),
4484 }
4485 }
4486}
4487impl From<crate::operation::describe_human_task_ui::DescribeHumanTaskUiError> for Error {
4488 fn from(err: crate::operation::describe_human_task_ui::DescribeHumanTaskUiError) -> Self {
4489 match err {
4490 crate::operation::describe_human_task_ui::DescribeHumanTaskUiError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4491 crate::operation::describe_human_task_ui::DescribeHumanTaskUiError::Unhandled(inner) => Error::Unhandled(inner),
4492 }
4493 }
4494}
4495impl<R>
4496 From<
4497 ::aws_smithy_runtime_api::client::result::SdkError<
4498 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError,
4499 R,
4500 >,
4501 > for Error
4502where
4503 R: Send + Sync + std::fmt::Debug + 'static,
4504{
4505 fn from(
4506 err: ::aws_smithy_runtime_api::client::result::SdkError<
4507 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError,
4508 R,
4509 >,
4510 ) -> Self {
4511 match err {
4512 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4513 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4514 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4515 source: err.into(),
4516 }),
4517 }
4518 }
4519}
4520impl From<crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError> for Error {
4521 fn from(err: crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError) -> Self {
4522 match err {
4523 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError::ResourceNotFound(inner) => {
4524 Error::ResourceNotFound(inner)
4525 }
4526 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
4527 }
4528 }
4529}
4530impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image::DescribeImageError, R>> for Error
4531where
4532 R: Send + Sync + std::fmt::Debug + 'static,
4533{
4534 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image::DescribeImageError, R>) -> 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_image::DescribeImageError> for Error {
4545 fn from(err: crate::operation::describe_image::DescribeImageError) -> Self {
4546 match err {
4547 crate::operation::describe_image::DescribeImageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4548 crate::operation::describe_image::DescribeImageError::Unhandled(inner) => Error::Unhandled(inner),
4549 }
4550 }
4551}
4552impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_version::DescribeImageVersionError, R>> for Error
4553where
4554 R: Send + Sync + std::fmt::Debug + 'static,
4555{
4556 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_version::DescribeImageVersionError, R>) -> Self {
4557 match err {
4558 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4559 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4560 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4561 source: err.into(),
4562 }),
4563 }
4564 }
4565}
4566impl From<crate::operation::describe_image_version::DescribeImageVersionError> for Error {
4567 fn from(err: crate::operation::describe_image_version::DescribeImageVersionError) -> Self {
4568 match err {
4569 crate::operation::describe_image_version::DescribeImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4570 crate::operation::describe_image_version::DescribeImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
4571 }
4572 }
4573}
4574impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_component::DescribeInferenceComponentError, R>>
4575 for Error
4576where
4577 R: Send + Sync + std::fmt::Debug + 'static,
4578{
4579 fn from(
4580 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_component::DescribeInferenceComponentError, R>,
4581 ) -> Self {
4582 match err {
4583 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4584 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4585 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4586 source: err.into(),
4587 }),
4588 }
4589 }
4590}
4591impl From<crate::operation::describe_inference_component::DescribeInferenceComponentError> for Error {
4592 fn from(err: crate::operation::describe_inference_component::DescribeInferenceComponentError) -> Self {
4593 match err {
4594 crate::operation::describe_inference_component::DescribeInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
4595 }
4596 }
4597}
4598impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_experiment::DescribeInferenceExperimentError, R>>
4599 for Error
4600where
4601 R: Send + Sync + std::fmt::Debug + 'static,
4602{
4603 fn from(
4604 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_experiment::DescribeInferenceExperimentError, R>,
4605 ) -> Self {
4606 match err {
4607 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4608 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4609 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4610 source: err.into(),
4611 }),
4612 }
4613 }
4614}
4615impl From<crate::operation::describe_inference_experiment::DescribeInferenceExperimentError> for Error {
4616 fn from(err: crate::operation::describe_inference_experiment::DescribeInferenceExperimentError) -> Self {
4617 match err {
4618 crate::operation::describe_inference_experiment::DescribeInferenceExperimentError::ResourceNotFound(inner) => {
4619 Error::ResourceNotFound(inner)
4620 }
4621 crate::operation::describe_inference_experiment::DescribeInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
4622 }
4623 }
4624}
4625impl<R>
4626 From<
4627 ::aws_smithy_runtime_api::client::result::SdkError<
4628 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError,
4629 R,
4630 >,
4631 > for Error
4632where
4633 R: Send + Sync + std::fmt::Debug + 'static,
4634{
4635 fn from(
4636 err: ::aws_smithy_runtime_api::client::result::SdkError<
4637 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError,
4638 R,
4639 >,
4640 ) -> Self {
4641 match err {
4642 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4643 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4644 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4645 source: err.into(),
4646 }),
4647 }
4648 }
4649}
4650impl From<crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError> for Error {
4651 fn from(err: crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError) -> Self {
4652 match err {
4653 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError::ResourceNotFound(inner) => {
4654 Error::ResourceNotFound(inner)
4655 }
4656 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError::Unhandled(inner) => {
4657 Error::Unhandled(inner)
4658 }
4659 }
4660 }
4661}
4662impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_job::DescribeJobError, R>> for Error
4663where
4664 R: Send + Sync + std::fmt::Debug + 'static,
4665{
4666 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_job::DescribeJobError, R>) -> Self {
4667 match err {
4668 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4669 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4670 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4671 source: err.into(),
4672 }),
4673 }
4674 }
4675}
4676impl From<crate::operation::describe_job::DescribeJobError> for Error {
4677 fn from(err: crate::operation::describe_job::DescribeJobError) -> Self {
4678 match err {
4679 crate::operation::describe_job::DescribeJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4680 crate::operation::describe_job::DescribeJobError::Unhandled(inner) => Error::Unhandled(inner),
4681 }
4682 }
4683}
4684impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_job_schema_version::DescribeJobSchemaVersionError, R>>
4685 for Error
4686where
4687 R: Send + Sync + std::fmt::Debug + 'static,
4688{
4689 fn from(
4690 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_job_schema_version::DescribeJobSchemaVersionError, R>,
4691 ) -> Self {
4692 match err {
4693 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4694 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4695 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4696 source: err.into(),
4697 }),
4698 }
4699 }
4700}
4701impl From<crate::operation::describe_job_schema_version::DescribeJobSchemaVersionError> for Error {
4702 fn from(err: crate::operation::describe_job_schema_version::DescribeJobSchemaVersionError) -> Self {
4703 match err {
4704 crate::operation::describe_job_schema_version::DescribeJobSchemaVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4705 crate::operation::describe_job_schema_version::DescribeJobSchemaVersionError::Unhandled(inner) => Error::Unhandled(inner),
4706 }
4707 }
4708}
4709impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_labeling_job::DescribeLabelingJobError, R>> for Error
4710where
4711 R: Send + Sync + std::fmt::Debug + 'static,
4712{
4713 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_labeling_job::DescribeLabelingJobError, R>) -> Self {
4714 match err {
4715 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4716 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4717 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4718 source: err.into(),
4719 }),
4720 }
4721 }
4722}
4723impl From<crate::operation::describe_labeling_job::DescribeLabelingJobError> for Error {
4724 fn from(err: crate::operation::describe_labeling_job::DescribeLabelingJobError) -> Self {
4725 match err {
4726 crate::operation::describe_labeling_job::DescribeLabelingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4727 crate::operation::describe_labeling_job::DescribeLabelingJobError::Unhandled(inner) => Error::Unhandled(inner),
4728 }
4729 }
4730}
4731impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lineage_group::DescribeLineageGroupError, R>> for Error
4732where
4733 R: Send + Sync + std::fmt::Debug + 'static,
4734{
4735 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lineage_group::DescribeLineageGroupError, R>) -> Self {
4736 match err {
4737 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4738 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4739 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4740 source: err.into(),
4741 }),
4742 }
4743 }
4744}
4745impl From<crate::operation::describe_lineage_group::DescribeLineageGroupError> for Error {
4746 fn from(err: crate::operation::describe_lineage_group::DescribeLineageGroupError) -> Self {
4747 match err {
4748 crate::operation::describe_lineage_group::DescribeLineageGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4749 crate::operation::describe_lineage_group::DescribeLineageGroupError::Unhandled(inner) => Error::Unhandled(inner),
4750 }
4751 }
4752}
4753impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mlflow_app::DescribeMlflowAppError, R>> for Error
4754where
4755 R: Send + Sync + std::fmt::Debug + 'static,
4756{
4757 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mlflow_app::DescribeMlflowAppError, R>) -> Self {
4758 match err {
4759 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4760 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4761 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4762 source: err.into(),
4763 }),
4764 }
4765 }
4766}
4767impl From<crate::operation::describe_mlflow_app::DescribeMlflowAppError> for Error {
4768 fn from(err: crate::operation::describe_mlflow_app::DescribeMlflowAppError) -> Self {
4769 match err {
4770 crate::operation::describe_mlflow_app::DescribeMlflowAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4771 crate::operation::describe_mlflow_app::DescribeMlflowAppError::Unhandled(inner) => Error::Unhandled(inner),
4772 }
4773 }
4774}
4775impl<R>
4776 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError, R>>
4777 for Error
4778where
4779 R: Send + Sync + std::fmt::Debug + 'static,
4780{
4781 fn from(
4782 err: ::aws_smithy_runtime_api::client::result::SdkError<
4783 crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError,
4784 R,
4785 >,
4786 ) -> Self {
4787 match err {
4788 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4789 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4790 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4791 source: err.into(),
4792 }),
4793 }
4794 }
4795}
4796impl From<crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError> for Error {
4797 fn from(err: crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError) -> Self {
4798 match err {
4799 crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError::ResourceNotFound(inner) => {
4800 Error::ResourceNotFound(inner)
4801 }
4802 crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
4803 }
4804 }
4805}
4806impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model::DescribeModelError, R>> for Error
4807where
4808 R: Send + Sync + std::fmt::Debug + 'static,
4809{
4810 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model::DescribeModelError, R>) -> Self {
4811 match err {
4812 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4813 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4814 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4815 source: err.into(),
4816 }),
4817 }
4818 }
4819}
4820impl From<crate::operation::describe_model::DescribeModelError> for Error {
4821 fn from(err: crate::operation::describe_model::DescribeModelError) -> Self {
4822 match err {
4823 crate::operation::describe_model::DescribeModelError::Unhandled(inner) => Error::Unhandled(inner),
4824 }
4825 }
4826}
4827impl<R>
4828 From<
4829 ::aws_smithy_runtime_api::client::result::SdkError<
4830 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError,
4831 R,
4832 >,
4833 > for Error
4834where
4835 R: Send + Sync + std::fmt::Debug + 'static,
4836{
4837 fn from(
4838 err: ::aws_smithy_runtime_api::client::result::SdkError<
4839 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError,
4840 R,
4841 >,
4842 ) -> Self {
4843 match err {
4844 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4845 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4846 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4847 source: err.into(),
4848 }),
4849 }
4850 }
4851}
4852impl From<crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError> for Error {
4853 fn from(err: crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError) -> Self {
4854 match err {
4855 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError::ResourceNotFound(inner) => {
4856 Error::ResourceNotFound(inner)
4857 }
4858 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
4859 }
4860 }
4861}
4862impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card::DescribeModelCardError, R>> for Error
4863where
4864 R: Send + Sync + std::fmt::Debug + 'static,
4865{
4866 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card::DescribeModelCardError, R>) -> Self {
4867 match err {
4868 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4869 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4870 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4871 source: err.into(),
4872 }),
4873 }
4874 }
4875}
4876impl From<crate::operation::describe_model_card::DescribeModelCardError> for Error {
4877 fn from(err: crate::operation::describe_model_card::DescribeModelCardError) -> Self {
4878 match err {
4879 crate::operation::describe_model_card::DescribeModelCardError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4880 crate::operation::describe_model_card::DescribeModelCardError::Unhandled(inner) => Error::Unhandled(inner),
4881 }
4882 }
4883}
4884impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError, R>>
4885 for Error
4886where
4887 R: Send + Sync + std::fmt::Debug + 'static,
4888{
4889 fn from(
4890 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError, R>,
4891 ) -> Self {
4892 match err {
4893 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4894 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4895 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4896 source: err.into(),
4897 }),
4898 }
4899 }
4900}
4901impl From<crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError> for Error {
4902 fn from(err: crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError) -> Self {
4903 match err {
4904 crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError::ResourceNotFound(inner) => {
4905 Error::ResourceNotFound(inner)
4906 }
4907 crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError::Unhandled(inner) => Error::Unhandled(inner),
4908 }
4909 }
4910}
4911impl<R>
4912 From<
4913 ::aws_smithy_runtime_api::client::result::SdkError<
4914 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError,
4915 R,
4916 >,
4917 > for Error
4918where
4919 R: Send + Sync + std::fmt::Debug + 'static,
4920{
4921 fn from(
4922 err: ::aws_smithy_runtime_api::client::result::SdkError<
4923 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError,
4924 R,
4925 >,
4926 ) -> Self {
4927 match err {
4928 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4929 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4930 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4931 source: err.into(),
4932 }),
4933 }
4934 }
4935}
4936impl From<crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError> for Error {
4937 fn from(err: crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError) -> Self {
4938 match err {
4939 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError::ResourceNotFound(
4940 inner,
4941 ) => Error::ResourceNotFound(inner),
4942 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError::Unhandled(inner) => {
4943 Error::Unhandled(inner)
4944 }
4945 }
4946 }
4947}
4948impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package::DescribeModelPackageError, R>> for Error
4949where
4950 R: Send + Sync + std::fmt::Debug + 'static,
4951{
4952 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package::DescribeModelPackageError, R>) -> Self {
4953 match err {
4954 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4955 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4956 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4957 source: err.into(),
4958 }),
4959 }
4960 }
4961}
4962impl From<crate::operation::describe_model_package::DescribeModelPackageError> for Error {
4963 fn from(err: crate::operation::describe_model_package::DescribeModelPackageError) -> Self {
4964 match err {
4965 crate::operation::describe_model_package::DescribeModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
4966 }
4967 }
4968}
4969impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package_group::DescribeModelPackageGroupError, R>>
4970 for Error
4971where
4972 R: Send + Sync + std::fmt::Debug + 'static,
4973{
4974 fn from(
4975 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package_group::DescribeModelPackageGroupError, R>,
4976 ) -> Self {
4977 match err {
4978 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4979 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4980 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4981 source: err.into(),
4982 }),
4983 }
4984 }
4985}
4986impl From<crate::operation::describe_model_package_group::DescribeModelPackageGroupError> for Error {
4987 fn from(err: crate::operation::describe_model_package_group::DescribeModelPackageGroupError) -> Self {
4988 match err {
4989 crate::operation::describe_model_package_group::DescribeModelPackageGroupError::Unhandled(inner) => Error::Unhandled(inner),
4990 }
4991 }
4992}
4993impl<R>
4994 From<
4995 ::aws_smithy_runtime_api::client::result::SdkError<
4996 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError,
4997 R,
4998 >,
4999 > for Error
5000where
5001 R: Send + Sync + std::fmt::Debug + 'static,
5002{
5003 fn from(
5004 err: ::aws_smithy_runtime_api::client::result::SdkError<
5005 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError,
5006 R,
5007 >,
5008 ) -> Self {
5009 match err {
5010 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5011 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5012 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5013 source: err.into(),
5014 }),
5015 }
5016 }
5017}
5018impl From<crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError> for Error {
5019 fn from(err: crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError) -> Self {
5020 match err {
5021 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError::ResourceNotFound(inner) => {
5022 Error::ResourceNotFound(inner)
5023 }
5024 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError::Unhandled(inner) => {
5025 Error::Unhandled(inner)
5026 }
5027 }
5028 }
5029}
5030impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError, R>>
5031 for Error
5032where
5033 R: Send + Sync + std::fmt::Debug + 'static,
5034{
5035 fn from(
5036 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError, R>,
5037 ) -> Self {
5038 match err {
5039 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5040 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5041 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5042 source: err.into(),
5043 }),
5044 }
5045 }
5046}
5047impl From<crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError> for Error {
5048 fn from(err: crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError) -> Self {
5049 match err {
5050 crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError::ResourceNotFound(inner) => {
5051 Error::ResourceNotFound(inner)
5052 }
5053 crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
5054 }
5055 }
5056}
5057impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_notebook_instance::DescribeNotebookInstanceError, R>>
5058 for Error
5059where
5060 R: Send + Sync + std::fmt::Debug + 'static,
5061{
5062 fn from(
5063 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_notebook_instance::DescribeNotebookInstanceError, R>,
5064 ) -> Self {
5065 match err {
5066 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5067 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5068 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5069 source: err.into(),
5070 }),
5071 }
5072 }
5073}
5074impl From<crate::operation::describe_notebook_instance::DescribeNotebookInstanceError> for Error {
5075 fn from(err: crate::operation::describe_notebook_instance::DescribeNotebookInstanceError) -> Self {
5076 match err {
5077 crate::operation::describe_notebook_instance::DescribeNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
5078 }
5079 }
5080}
5081impl<R>
5082 From<
5083 ::aws_smithy_runtime_api::client::result::SdkError<
5084 crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError,
5085 R,
5086 >,
5087 > for Error
5088where
5089 R: Send + Sync + std::fmt::Debug + 'static,
5090{
5091 fn from(
5092 err: ::aws_smithy_runtime_api::client::result::SdkError<
5093 crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError,
5094 R,
5095 >,
5096 ) -> Self {
5097 match err {
5098 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5099 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5100 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5101 source: err.into(),
5102 }),
5103 }
5104 }
5105}
5106impl From<crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError> for Error {
5107 fn from(err: crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError) -> Self {
5108 match err {
5109 crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
5110 Error::Unhandled(inner)
5111 }
5112 }
5113 }
5114}
5115impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_optimization_job::DescribeOptimizationJobError, R>>
5116 for Error
5117where
5118 R: Send + Sync + std::fmt::Debug + 'static,
5119{
5120 fn from(
5121 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_optimization_job::DescribeOptimizationJobError, R>,
5122 ) -> Self {
5123 match err {
5124 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5125 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5126 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5127 source: err.into(),
5128 }),
5129 }
5130 }
5131}
5132impl From<crate::operation::describe_optimization_job::DescribeOptimizationJobError> for Error {
5133 fn from(err: crate::operation::describe_optimization_job::DescribeOptimizationJobError) -> Self {
5134 match err {
5135 crate::operation::describe_optimization_job::DescribeOptimizationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5136 crate::operation::describe_optimization_job::DescribeOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
5137 }
5138 }
5139}
5140impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_partner_app::DescribePartnerAppError, R>> for Error
5141where
5142 R: Send + Sync + std::fmt::Debug + 'static,
5143{
5144 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_partner_app::DescribePartnerAppError, R>) -> Self {
5145 match err {
5146 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5147 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5148 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5149 source: err.into(),
5150 }),
5151 }
5152 }
5153}
5154impl From<crate::operation::describe_partner_app::DescribePartnerAppError> for Error {
5155 fn from(err: crate::operation::describe_partner_app::DescribePartnerAppError) -> Self {
5156 match err {
5157 crate::operation::describe_partner_app::DescribePartnerAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5158 crate::operation::describe_partner_app::DescribePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
5159 }
5160 }
5161}
5162impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline::DescribePipelineError, R>> for Error
5163where
5164 R: Send + Sync + std::fmt::Debug + 'static,
5165{
5166 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline::DescribePipelineError, R>) -> Self {
5167 match err {
5168 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5169 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5170 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5171 source: err.into(),
5172 }),
5173 }
5174 }
5175}
5176impl From<crate::operation::describe_pipeline::DescribePipelineError> for Error {
5177 fn from(err: crate::operation::describe_pipeline::DescribePipelineError) -> Self {
5178 match err {
5179 crate::operation::describe_pipeline::DescribePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5180 crate::operation::describe_pipeline::DescribePipelineError::Unhandled(inner) => Error::Unhandled(inner),
5181 }
5182 }
5183}
5184impl<R>
5185 From<
5186 ::aws_smithy_runtime_api::client::result::SdkError<
5187 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError,
5188 R,
5189 >,
5190 > for Error
5191where
5192 R: Send + Sync + std::fmt::Debug + 'static,
5193{
5194 fn from(
5195 err: ::aws_smithy_runtime_api::client::result::SdkError<
5196 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError,
5197 R,
5198 >,
5199 ) -> Self {
5200 match err {
5201 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5202 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5203 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5204 source: err.into(),
5205 }),
5206 }
5207 }
5208}
5209impl From<crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError> for Error {
5210 fn from(err: crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError) -> Self {
5211 match err {
5212 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError::ResourceNotFound(inner) => {
5213 Error::ResourceNotFound(inner)
5214 }
5215 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError::Unhandled(inner) => {
5216 Error::Unhandled(inner)
5217 }
5218 }
5219 }
5220}
5221impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline_execution::DescribePipelineExecutionError, R>>
5222 for Error
5223where
5224 R: Send + Sync + std::fmt::Debug + 'static,
5225{
5226 fn from(
5227 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline_execution::DescribePipelineExecutionError, R>,
5228 ) -> Self {
5229 match err {
5230 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5231 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5232 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5233 source: err.into(),
5234 }),
5235 }
5236 }
5237}
5238impl From<crate::operation::describe_pipeline_execution::DescribePipelineExecutionError> for Error {
5239 fn from(err: crate::operation::describe_pipeline_execution::DescribePipelineExecutionError) -> Self {
5240 match err {
5241 crate::operation::describe_pipeline_execution::DescribePipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5242 crate::operation::describe_pipeline_execution::DescribePipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
5243 }
5244 }
5245}
5246impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_processing_job::DescribeProcessingJobError, R>> for Error
5247where
5248 R: Send + Sync + std::fmt::Debug + 'static,
5249{
5250 fn from(
5251 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_processing_job::DescribeProcessingJobError, R>,
5252 ) -> Self {
5253 match err {
5254 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5255 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5256 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5257 source: err.into(),
5258 }),
5259 }
5260 }
5261}
5262impl From<crate::operation::describe_processing_job::DescribeProcessingJobError> for Error {
5263 fn from(err: crate::operation::describe_processing_job::DescribeProcessingJobError) -> Self {
5264 match err {
5265 crate::operation::describe_processing_job::DescribeProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5266 crate::operation::describe_processing_job::DescribeProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
5267 }
5268 }
5269}
5270impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_project::DescribeProjectError, R>> for Error
5271where
5272 R: Send + Sync + std::fmt::Debug + 'static,
5273{
5274 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_project::DescribeProjectError, R>) -> Self {
5275 match err {
5276 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5277 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5278 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5279 source: err.into(),
5280 }),
5281 }
5282 }
5283}
5284impl From<crate::operation::describe_project::DescribeProjectError> for Error {
5285 fn from(err: crate::operation::describe_project::DescribeProjectError) -> Self {
5286 match err {
5287 crate::operation::describe_project::DescribeProjectError::Unhandled(inner) => Error::Unhandled(inner),
5288 }
5289 }
5290}
5291impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_capacity::DescribeReservedCapacityError, R>>
5292 for Error
5293where
5294 R: Send + Sync + std::fmt::Debug + 'static,
5295{
5296 fn from(
5297 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_capacity::DescribeReservedCapacityError, R>,
5298 ) -> Self {
5299 match err {
5300 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5301 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5302 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5303 source: err.into(),
5304 }),
5305 }
5306 }
5307}
5308impl From<crate::operation::describe_reserved_capacity::DescribeReservedCapacityError> for Error {
5309 fn from(err: crate::operation::describe_reserved_capacity::DescribeReservedCapacityError) -> Self {
5310 match err {
5311 crate::operation::describe_reserved_capacity::DescribeReservedCapacityError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5312 crate::operation::describe_reserved_capacity::DescribeReservedCapacityError::Unhandled(inner) => Error::Unhandled(inner),
5313 }
5314 }
5315}
5316impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_space::DescribeSpaceError, R>> for Error
5317where
5318 R: Send + Sync + std::fmt::Debug + 'static,
5319{
5320 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_space::DescribeSpaceError, R>) -> Self {
5321 match err {
5322 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5323 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5324 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5325 source: err.into(),
5326 }),
5327 }
5328 }
5329}
5330impl From<crate::operation::describe_space::DescribeSpaceError> for Error {
5331 fn from(err: crate::operation::describe_space::DescribeSpaceError) -> Self {
5332 match err {
5333 crate::operation::describe_space::DescribeSpaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5334 crate::operation::describe_space::DescribeSpaceError::Unhandled(inner) => Error::Unhandled(inner),
5335 }
5336 }
5337}
5338impl<R>
5339 From<
5340 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError, R>,
5341 > for Error
5342where
5343 R: Send + Sync + std::fmt::Debug + 'static,
5344{
5345 fn from(
5346 err: ::aws_smithy_runtime_api::client::result::SdkError<
5347 crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError,
5348 R,
5349 >,
5350 ) -> Self {
5351 match err {
5352 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5353 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5354 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5355 source: err.into(),
5356 }),
5357 }
5358 }
5359}
5360impl From<crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError> for Error {
5361 fn from(err: crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError) -> Self {
5362 match err {
5363 crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError::ResourceNotFound(inner) => {
5364 Error::ResourceNotFound(inner)
5365 }
5366 crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError::Unhandled(inner) => Error::Unhandled(inner),
5367 }
5368 }
5369}
5370impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError, R>>
5371 for Error
5372where
5373 R: Send + Sync + std::fmt::Debug + 'static,
5374{
5375 fn from(
5376 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError, R>,
5377 ) -> Self {
5378 match err {
5379 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5380 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5381 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5382 source: err.into(),
5383 }),
5384 }
5385 }
5386}
5387impl From<crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError> for Error {
5388 fn from(err: crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError) -> Self {
5389 match err {
5390 crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
5391 }
5392 }
5393}
5394impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_job::DescribeTrainingJobError, R>> for Error
5395where
5396 R: Send + Sync + std::fmt::Debug + 'static,
5397{
5398 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_job::DescribeTrainingJobError, R>) -> Self {
5399 match err {
5400 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5401 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5402 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5403 source: err.into(),
5404 }),
5405 }
5406 }
5407}
5408impl From<crate::operation::describe_training_job::DescribeTrainingJobError> for Error {
5409 fn from(err: crate::operation::describe_training_job::DescribeTrainingJobError) -> Self {
5410 match err {
5411 crate::operation::describe_training_job::DescribeTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5412 crate::operation::describe_training_job::DescribeTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
5413 }
5414 }
5415}
5416impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_plan::DescribeTrainingPlanError, R>> for Error
5417where
5418 R: Send + Sync + std::fmt::Debug + 'static,
5419{
5420 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_plan::DescribeTrainingPlanError, R>) -> Self {
5421 match err {
5422 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5423 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5424 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5425 source: err.into(),
5426 }),
5427 }
5428 }
5429}
5430impl From<crate::operation::describe_training_plan::DescribeTrainingPlanError> for Error {
5431 fn from(err: crate::operation::describe_training_plan::DescribeTrainingPlanError) -> Self {
5432 match err {
5433 crate::operation::describe_training_plan::DescribeTrainingPlanError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5434 crate::operation::describe_training_plan::DescribeTrainingPlanError::Unhandled(inner) => Error::Unhandled(inner),
5435 }
5436 }
5437}
5438impl<R>
5439 From<
5440 ::aws_smithy_runtime_api::client::result::SdkError<
5441 crate::operation::describe_training_plan_extension_history::DescribeTrainingPlanExtensionHistoryError,
5442 R,
5443 >,
5444 > for Error
5445where
5446 R: Send + Sync + std::fmt::Debug + 'static,
5447{
5448 fn from(
5449 err: ::aws_smithy_runtime_api::client::result::SdkError<
5450 crate::operation::describe_training_plan_extension_history::DescribeTrainingPlanExtensionHistoryError,
5451 R,
5452 >,
5453 ) -> 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_training_plan_extension_history::DescribeTrainingPlanExtensionHistoryError> for Error {
5464 fn from(err: crate::operation::describe_training_plan_extension_history::DescribeTrainingPlanExtensionHistoryError) -> Self {
5465 match err {
5466 crate::operation::describe_training_plan_extension_history::DescribeTrainingPlanExtensionHistoryError::ResourceNotFound(inner) => {
5467 Error::ResourceNotFound(inner)
5468 }
5469 crate::operation::describe_training_plan_extension_history::DescribeTrainingPlanExtensionHistoryError::Unhandled(inner) => {
5470 Error::Unhandled(inner)
5471 }
5472 }
5473 }
5474}
5475impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transform_job::DescribeTransformJobError, R>> for Error
5476where
5477 R: Send + Sync + std::fmt::Debug + 'static,
5478{
5479 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transform_job::DescribeTransformJobError, R>) -> Self {
5480 match err {
5481 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5482 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5483 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5484 source: err.into(),
5485 }),
5486 }
5487 }
5488}
5489impl From<crate::operation::describe_transform_job::DescribeTransformJobError> for Error {
5490 fn from(err: crate::operation::describe_transform_job::DescribeTransformJobError) -> Self {
5491 match err {
5492 crate::operation::describe_transform_job::DescribeTransformJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5493 crate::operation::describe_transform_job::DescribeTransformJobError::Unhandled(inner) => Error::Unhandled(inner),
5494 }
5495 }
5496}
5497impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial::DescribeTrialError, R>> for Error
5498where
5499 R: Send + Sync + std::fmt::Debug + 'static,
5500{
5501 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial::DescribeTrialError, R>) -> Self {
5502 match err {
5503 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5504 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5505 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5506 source: err.into(),
5507 }),
5508 }
5509 }
5510}
5511impl From<crate::operation::describe_trial::DescribeTrialError> for Error {
5512 fn from(err: crate::operation::describe_trial::DescribeTrialError) -> Self {
5513 match err {
5514 crate::operation::describe_trial::DescribeTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5515 crate::operation::describe_trial::DescribeTrialError::Unhandled(inner) => Error::Unhandled(inner),
5516 }
5517 }
5518}
5519impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial_component::DescribeTrialComponentError, R>> for Error
5520where
5521 R: Send + Sync + std::fmt::Debug + 'static,
5522{
5523 fn from(
5524 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial_component::DescribeTrialComponentError, R>,
5525 ) -> Self {
5526 match err {
5527 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5528 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5529 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5530 source: err.into(),
5531 }),
5532 }
5533 }
5534}
5535impl From<crate::operation::describe_trial_component::DescribeTrialComponentError> for Error {
5536 fn from(err: crate::operation::describe_trial_component::DescribeTrialComponentError) -> Self {
5537 match err {
5538 crate::operation::describe_trial_component::DescribeTrialComponentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5539 crate::operation::describe_trial_component::DescribeTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
5540 }
5541 }
5542}
5543impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_profile::DescribeUserProfileError, R>> for Error
5544where
5545 R: Send + Sync + std::fmt::Debug + 'static,
5546{
5547 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_profile::DescribeUserProfileError, R>) -> Self {
5548 match err {
5549 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5550 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5551 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5552 source: err.into(),
5553 }),
5554 }
5555 }
5556}
5557impl From<crate::operation::describe_user_profile::DescribeUserProfileError> for Error {
5558 fn from(err: crate::operation::describe_user_profile::DescribeUserProfileError) -> Self {
5559 match err {
5560 crate::operation::describe_user_profile::DescribeUserProfileError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
5561 crate::operation::describe_user_profile::DescribeUserProfileError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5562 crate::operation::describe_user_profile::DescribeUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
5563 }
5564 }
5565}
5566impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workforce::DescribeWorkforceError, R>> for Error
5567where
5568 R: Send + Sync + std::fmt::Debug + 'static,
5569{
5570 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workforce::DescribeWorkforceError, R>) -> Self {
5571 match err {
5572 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5573 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5574 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5575 source: err.into(),
5576 }),
5577 }
5578 }
5579}
5580impl From<crate::operation::describe_workforce::DescribeWorkforceError> for Error {
5581 fn from(err: crate::operation::describe_workforce::DescribeWorkforceError) -> Self {
5582 match err {
5583 crate::operation::describe_workforce::DescribeWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
5584 }
5585 }
5586}
5587impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workteam::DescribeWorkteamError, R>> for Error
5588where
5589 R: Send + Sync + std::fmt::Debug + 'static,
5590{
5591 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workteam::DescribeWorkteamError, R>) -> Self {
5592 match err {
5593 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5594 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5595 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5596 source: err.into(),
5597 }),
5598 }
5599 }
5600}
5601impl From<crate::operation::describe_workteam::DescribeWorkteamError> for Error {
5602 fn from(err: crate::operation::describe_workteam::DescribeWorkteamError) -> Self {
5603 match err {
5604 crate::operation::describe_workteam::DescribeWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
5605 }
5606 }
5607}
5608impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError, R>>
5609 for Error
5610where
5611 R: Send + Sync + std::fmt::Debug + 'static,
5612{
5613 fn from(
5614 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError, R>,
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::detach_cluster_node_volume::DetachClusterNodeVolumeError> for Error {
5626 fn from(err: crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError) -> Self {
5627 match err {
5628 crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5629 crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError::Unhandled(inner) => Error::Unhandled(inner),
5630 }
5631 }
5632}
5633impl<R>
5634 From<
5635 ::aws_smithy_runtime_api::client::result::SdkError<
5636 crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError,
5637 R,
5638 >,
5639 > for Error
5640where
5641 R: Send + Sync + std::fmt::Debug + 'static,
5642{
5643 fn from(
5644 err: ::aws_smithy_runtime_api::client::result::SdkError<
5645 crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError,
5646 R,
5647 >,
5648 ) -> Self {
5649 match err {
5650 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5651 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5652 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5653 source: err.into(),
5654 }),
5655 }
5656 }
5657}
5658impl From<crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError> for Error {
5659 fn from(err: crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError) -> Self {
5660 match err {
5661 crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError::Unhandled(inner) => {
5662 Error::Unhandled(inner)
5663 }
5664 }
5665 }
5666}
5667impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trial_component::DisassociateTrialComponentError, R>>
5668 for Error
5669where
5670 R: Send + Sync + std::fmt::Debug + 'static,
5671{
5672 fn from(
5673 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trial_component::DisassociateTrialComponentError, R>,
5674 ) -> Self {
5675 match err {
5676 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5677 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5678 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5679 source: err.into(),
5680 }),
5681 }
5682 }
5683}
5684impl From<crate::operation::disassociate_trial_component::DisassociateTrialComponentError> for Error {
5685 fn from(err: crate::operation::disassociate_trial_component::DisassociateTrialComponentError) -> Self {
5686 match err {
5687 crate::operation::disassociate_trial_component::DisassociateTrialComponentError::ResourceNotFound(inner) => {
5688 Error::ResourceNotFound(inner)
5689 }
5690 crate::operation::disassociate_trial_component::DisassociateTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
5691 }
5692 }
5693}
5694impl<R>
5695 From<
5696 ::aws_smithy_runtime_api::client::result::SdkError<
5697 crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError,
5698 R,
5699 >,
5700 > for Error
5701where
5702 R: Send + Sync + std::fmt::Debug + 'static,
5703{
5704 fn from(
5705 err: ::aws_smithy_runtime_api::client::result::SdkError<
5706 crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError,
5707 R,
5708 >,
5709 ) -> Self {
5710 match err {
5711 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5712 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5713 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5714 source: err.into(),
5715 }),
5716 }
5717 }
5718}
5719impl From<crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError> for Error {
5720 fn from(err: crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError) -> Self {
5721 match err {
5722 crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError::Unhandled(inner) => {
5723 Error::Unhandled(inner)
5724 }
5725 }
5726 }
5727}
5728impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::extend_training_plan::ExtendTrainingPlanError, R>> for Error
5729where
5730 R: Send + Sync + std::fmt::Debug + 'static,
5731{
5732 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::extend_training_plan::ExtendTrainingPlanError, R>) -> Self {
5733 match err {
5734 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5735 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5736 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5737 source: err.into(),
5738 }),
5739 }
5740 }
5741}
5742impl From<crate::operation::extend_training_plan::ExtendTrainingPlanError> for Error {
5743 fn from(err: crate::operation::extend_training_plan::ExtendTrainingPlanError) -> Self {
5744 match err {
5745 crate::operation::extend_training_plan::ExtendTrainingPlanError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5746 crate::operation::extend_training_plan::ExtendTrainingPlanError::Unhandled(inner) => Error::Unhandled(inner),
5747 }
5748 }
5749}
5750impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_fleet_report::GetDeviceFleetReportError, R>> for Error
5751where
5752 R: Send + Sync + std::fmt::Debug + 'static,
5753{
5754 fn from(
5755 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_fleet_report::GetDeviceFleetReportError, R>,
5756 ) -> Self {
5757 match err {
5758 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5759 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5760 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5761 source: err.into(),
5762 }),
5763 }
5764 }
5765}
5766impl From<crate::operation::get_device_fleet_report::GetDeviceFleetReportError> for Error {
5767 fn from(err: crate::operation::get_device_fleet_report::GetDeviceFleetReportError) -> Self {
5768 match err {
5769 crate::operation::get_device_fleet_report::GetDeviceFleetReportError::Unhandled(inner) => Error::Unhandled(inner),
5770 }
5771 }
5772}
5773impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError, R>> for Error
5774where
5775 R: Send + Sync + std::fmt::Debug + 'static,
5776{
5777 fn from(
5778 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError, R>,
5779 ) -> Self {
5780 match err {
5781 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5782 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5783 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5784 source: err.into(),
5785 }),
5786 }
5787 }
5788}
5789impl From<crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError> for Error {
5790 fn from(err: crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError) -> Self {
5791 match err {
5792 crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5793 crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
5794 }
5795 }
5796}
5797impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError, R>>
5798 for Error
5799where
5800 R: Send + Sync + std::fmt::Debug + 'static,
5801{
5802 fn from(
5803 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError, R>,
5804 ) -> Self {
5805 match err {
5806 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5807 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5808 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5809 source: err.into(),
5810 }),
5811 }
5812 }
5813}
5814impl From<crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError> for Error {
5815 fn from(err: crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError) -> Self {
5816 match err {
5817 crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
5818 }
5819 }
5820}
5821impl<R>
5822 From<
5823 ::aws_smithy_runtime_api::client::result::SdkError<
5824 crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError,
5825 R,
5826 >,
5827 > for Error
5828where
5829 R: Send + Sync + std::fmt::Debug + 'static,
5830{
5831 fn from(
5832 err: ::aws_smithy_runtime_api::client::result::SdkError<
5833 crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError,
5834 R,
5835 >,
5836 ) -> Self {
5837 match err {
5838 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5839 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5840 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5841 source: err.into(),
5842 }),
5843 }
5844 }
5845}
5846impl From<crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError> for Error {
5847 fn from(err: crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError) -> Self {
5848 match err {
5849 crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError::Unhandled(inner) => {
5850 Error::Unhandled(inner)
5851 }
5852 }
5853 }
5854}
5855impl<R>
5856 From<
5857 ::aws_smithy_runtime_api::client::result::SdkError<
5858 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError,
5859 R,
5860 >,
5861 > for Error
5862where
5863 R: Send + Sync + std::fmt::Debug + 'static,
5864{
5865 fn from(
5866 err: ::aws_smithy_runtime_api::client::result::SdkError<
5867 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError,
5868 R,
5869 >,
5870 ) -> Self {
5871 match err {
5872 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5873 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5874 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5875 source: err.into(),
5876 }),
5877 }
5878 }
5879}
5880impl From<crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError> for Error {
5881 fn from(err: crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError) -> Self {
5882 match err {
5883 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError::ResourceNotFound(inner) => {
5884 Error::ResourceNotFound(inner)
5885 }
5886 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError::Unhandled(inner) => {
5887 Error::Unhandled(inner)
5888 }
5889 }
5890 }
5891}
5892impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_search_suggestions::GetSearchSuggestionsError, R>> for Error
5893where
5894 R: Send + Sync + std::fmt::Debug + 'static,
5895{
5896 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_search_suggestions::GetSearchSuggestionsError, R>) -> Self {
5897 match err {
5898 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5899 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5900 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5901 source: err.into(),
5902 }),
5903 }
5904 }
5905}
5906impl From<crate::operation::get_search_suggestions::GetSearchSuggestionsError> for Error {
5907 fn from(err: crate::operation::get_search_suggestions::GetSearchSuggestionsError) -> Self {
5908 match err {
5909 crate::operation::get_search_suggestions::GetSearchSuggestionsError::Unhandled(inner) => Error::Unhandled(inner),
5910 }
5911 }
5912}
5913impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_hub_content::ImportHubContentError, R>> for Error
5914where
5915 R: Send + Sync + std::fmt::Debug + 'static,
5916{
5917 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_hub_content::ImportHubContentError, R>) -> Self {
5918 match err {
5919 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5920 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5921 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5922 source: err.into(),
5923 }),
5924 }
5925 }
5926}
5927impl From<crate::operation::import_hub_content::ImportHubContentError> for Error {
5928 fn from(err: crate::operation::import_hub_content::ImportHubContentError) -> Self {
5929 match err {
5930 crate::operation::import_hub_content::ImportHubContentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
5931 crate::operation::import_hub_content::ImportHubContentError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
5932 crate::operation::import_hub_content::ImportHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5933 crate::operation::import_hub_content::ImportHubContentError::Unhandled(inner) => Error::Unhandled(inner),
5934 }
5935 }
5936}
5937impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_actions::ListActionsError, R>> for Error
5938where
5939 R: Send + Sync + std::fmt::Debug + 'static,
5940{
5941 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_actions::ListActionsError, R>) -> Self {
5942 match err {
5943 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5944 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5945 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5946 source: err.into(),
5947 }),
5948 }
5949 }
5950}
5951impl From<crate::operation::list_actions::ListActionsError> for Error {
5952 fn from(err: crate::operation::list_actions::ListActionsError) -> Self {
5953 match err {
5954 crate::operation::list_actions::ListActionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5955 crate::operation::list_actions::ListActionsError::Unhandled(inner) => Error::Unhandled(inner),
5956 }
5957 }
5958}
5959impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ai_benchmark_jobs::ListAIBenchmarkJobsError, R>> for Error
5960where
5961 R: Send + Sync + std::fmt::Debug + 'static,
5962{
5963 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ai_benchmark_jobs::ListAIBenchmarkJobsError, R>) -> Self {
5964 match err {
5965 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5966 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5967 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5968 source: err.into(),
5969 }),
5970 }
5971 }
5972}
5973impl From<crate::operation::list_ai_benchmark_jobs::ListAIBenchmarkJobsError> for Error {
5974 fn from(err: crate::operation::list_ai_benchmark_jobs::ListAIBenchmarkJobsError) -> Self {
5975 match err {
5976 crate::operation::list_ai_benchmark_jobs::ListAIBenchmarkJobsError::Unhandled(inner) => Error::Unhandled(inner),
5977 }
5978 }
5979}
5980impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ai_recommendation_jobs::ListAIRecommendationJobsError, R>>
5981 for Error
5982where
5983 R: Send + Sync + std::fmt::Debug + 'static,
5984{
5985 fn from(
5986 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ai_recommendation_jobs::ListAIRecommendationJobsError, R>,
5987 ) -> Self {
5988 match err {
5989 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5990 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5991 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5992 source: err.into(),
5993 }),
5994 }
5995 }
5996}
5997impl From<crate::operation::list_ai_recommendation_jobs::ListAIRecommendationJobsError> for Error {
5998 fn from(err: crate::operation::list_ai_recommendation_jobs::ListAIRecommendationJobsError) -> Self {
5999 match err {
6000 crate::operation::list_ai_recommendation_jobs::ListAIRecommendationJobsError::Unhandled(inner) => Error::Unhandled(inner),
6001 }
6002 }
6003}
6004impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ai_workload_configs::ListAIWorkloadConfigsError, R>> for Error
6005where
6006 R: Send + Sync + std::fmt::Debug + 'static,
6007{
6008 fn from(
6009 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_ai_workload_configs::ListAIWorkloadConfigsError, R>,
6010 ) -> Self {
6011 match err {
6012 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6013 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6014 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6015 source: err.into(),
6016 }),
6017 }
6018 }
6019}
6020impl From<crate::operation::list_ai_workload_configs::ListAIWorkloadConfigsError> for Error {
6021 fn from(err: crate::operation::list_ai_workload_configs::ListAIWorkloadConfigsError) -> Self {
6022 match err {
6023 crate::operation::list_ai_workload_configs::ListAIWorkloadConfigsError::Unhandled(inner) => Error::Unhandled(inner),
6024 }
6025 }
6026}
6027impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_algorithms::ListAlgorithmsError, R>> for Error
6028where
6029 R: Send + Sync + std::fmt::Debug + 'static,
6030{
6031 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_algorithms::ListAlgorithmsError, R>) -> Self {
6032 match err {
6033 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6034 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6035 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6036 source: err.into(),
6037 }),
6038 }
6039 }
6040}
6041impl From<crate::operation::list_algorithms::ListAlgorithmsError> for Error {
6042 fn from(err: crate::operation::list_algorithms::ListAlgorithmsError) -> Self {
6043 match err {
6044 crate::operation::list_algorithms::ListAlgorithmsError::Unhandled(inner) => Error::Unhandled(inner),
6045 }
6046 }
6047}
6048impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aliases::ListAliasesError, R>> for Error
6049where
6050 R: Send + Sync + std::fmt::Debug + 'static,
6051{
6052 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aliases::ListAliasesError, R>) -> Self {
6053 match err {
6054 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6055 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6056 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6057 source: err.into(),
6058 }),
6059 }
6060 }
6061}
6062impl From<crate::operation::list_aliases::ListAliasesError> for Error {
6063 fn from(err: crate::operation::list_aliases::ListAliasesError) -> Self {
6064 match err {
6065 crate::operation::list_aliases::ListAliasesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6066 crate::operation::list_aliases::ListAliasesError::Unhandled(inner) => Error::Unhandled(inner),
6067 }
6068 }
6069}
6070impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_app_image_configs::ListAppImageConfigsError, R>> for Error
6071where
6072 R: Send + Sync + std::fmt::Debug + 'static,
6073{
6074 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_app_image_configs::ListAppImageConfigsError, R>) -> Self {
6075 match err {
6076 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6077 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6078 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6079 source: err.into(),
6080 }),
6081 }
6082 }
6083}
6084impl From<crate::operation::list_app_image_configs::ListAppImageConfigsError> for Error {
6085 fn from(err: crate::operation::list_app_image_configs::ListAppImageConfigsError) -> Self {
6086 match err {
6087 crate::operation::list_app_image_configs::ListAppImageConfigsError::Unhandled(inner) => Error::Unhandled(inner),
6088 }
6089 }
6090}
6091impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_apps::ListAppsError, R>> for Error
6092where
6093 R: Send + Sync + std::fmt::Debug + 'static,
6094{
6095 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_apps::ListAppsError, R>) -> Self {
6096 match err {
6097 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6098 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6099 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6100 source: err.into(),
6101 }),
6102 }
6103 }
6104}
6105impl From<crate::operation::list_apps::ListAppsError> for Error {
6106 fn from(err: crate::operation::list_apps::ListAppsError) -> Self {
6107 match err {
6108 crate::operation::list_apps::ListAppsError::Unhandled(inner) => Error::Unhandled(inner),
6109 }
6110 }
6111}
6112impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_artifacts::ListArtifactsError, R>> for Error
6113where
6114 R: Send + Sync + std::fmt::Debug + 'static,
6115{
6116 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_artifacts::ListArtifactsError, R>) -> Self {
6117 match err {
6118 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6119 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6120 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6121 source: err.into(),
6122 }),
6123 }
6124 }
6125}
6126impl From<crate::operation::list_artifacts::ListArtifactsError> for Error {
6127 fn from(err: crate::operation::list_artifacts::ListArtifactsError) -> Self {
6128 match err {
6129 crate::operation::list_artifacts::ListArtifactsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6130 crate::operation::list_artifacts::ListArtifactsError::Unhandled(inner) => Error::Unhandled(inner),
6131 }
6132 }
6133}
6134impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associations::ListAssociationsError, R>> for Error
6135where
6136 R: Send + Sync + std::fmt::Debug + 'static,
6137{
6138 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associations::ListAssociationsError, R>) -> Self {
6139 match err {
6140 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6141 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6142 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6143 source: err.into(),
6144 }),
6145 }
6146 }
6147}
6148impl From<crate::operation::list_associations::ListAssociationsError> for Error {
6149 fn from(err: crate::operation::list_associations::ListAssociationsError) -> Self {
6150 match err {
6151 crate::operation::list_associations::ListAssociationsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6152 crate::operation::list_associations::ListAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
6153 }
6154 }
6155}
6156impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_auto_ml_jobs::ListAutoMLJobsError, R>> for Error
6157where
6158 R: Send + Sync + std::fmt::Debug + 'static,
6159{
6160 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_auto_ml_jobs::ListAutoMLJobsError, R>) -> Self {
6161 match err {
6162 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6163 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6164 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6165 source: err.into(),
6166 }),
6167 }
6168 }
6169}
6170impl From<crate::operation::list_auto_ml_jobs::ListAutoMLJobsError> for Error {
6171 fn from(err: crate::operation::list_auto_ml_jobs::ListAutoMLJobsError) -> Self {
6172 match err {
6173 crate::operation::list_auto_ml_jobs::ListAutoMLJobsError::Unhandled(inner) => Error::Unhandled(inner),
6174 }
6175 }
6176}
6177impl<R>
6178 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError, R>>
6179 for Error
6180where
6181 R: Send + Sync + std::fmt::Debug + 'static,
6182{
6183 fn from(
6184 err: ::aws_smithy_runtime_api::client::result::SdkError<
6185 crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError,
6186 R,
6187 >,
6188 ) -> Self {
6189 match err {
6190 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6191 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6192 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6193 source: err.into(),
6194 }),
6195 }
6196 }
6197}
6198impl From<crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError> for Error {
6199 fn from(err: crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError) -> Self {
6200 match err {
6201 crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError::ResourceNotFound(inner) => {
6202 Error::ResourceNotFound(inner)
6203 }
6204 crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
6205 }
6206 }
6207}
6208impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_events::ListClusterEventsError, R>> for Error
6209where
6210 R: Send + Sync + std::fmt::Debug + 'static,
6211{
6212 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_events::ListClusterEventsError, R>) -> Self {
6213 match err {
6214 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6215 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6216 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6217 source: err.into(),
6218 }),
6219 }
6220 }
6221}
6222impl From<crate::operation::list_cluster_events::ListClusterEventsError> for Error {
6223 fn from(err: crate::operation::list_cluster_events::ListClusterEventsError) -> Self {
6224 match err {
6225 crate::operation::list_cluster_events::ListClusterEventsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6226 crate::operation::list_cluster_events::ListClusterEventsError::Unhandled(inner) => Error::Unhandled(inner),
6227 }
6228 }
6229}
6230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_nodes::ListClusterNodesError, R>> for Error
6231where
6232 R: Send + Sync + std::fmt::Debug + 'static,
6233{
6234 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_nodes::ListClusterNodesError, R>) -> Self {
6235 match err {
6236 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6237 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6238 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6239 source: err.into(),
6240 }),
6241 }
6242 }
6243}
6244impl From<crate::operation::list_cluster_nodes::ListClusterNodesError> for Error {
6245 fn from(err: crate::operation::list_cluster_nodes::ListClusterNodesError) -> Self {
6246 match err {
6247 crate::operation::list_cluster_nodes::ListClusterNodesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6248 crate::operation::list_cluster_nodes::ListClusterNodesError::Unhandled(inner) => Error::Unhandled(inner),
6249 }
6250 }
6251}
6252impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_clusters::ListClustersError, R>> for Error
6253where
6254 R: Send + Sync + std::fmt::Debug + 'static,
6255{
6256 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_clusters::ListClustersError, R>) -> Self {
6257 match err {
6258 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6259 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6260 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6261 source: err.into(),
6262 }),
6263 }
6264 }
6265}
6266impl From<crate::operation::list_clusters::ListClustersError> for Error {
6267 fn from(err: crate::operation::list_clusters::ListClustersError) -> Self {
6268 match err {
6269 crate::operation::list_clusters::ListClustersError::Unhandled(inner) => Error::Unhandled(inner),
6270 }
6271 }
6272}
6273impl<R>
6274 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError, R>>
6275 for Error
6276where
6277 R: Send + Sync + std::fmt::Debug + 'static,
6278{
6279 fn from(
6280 err: ::aws_smithy_runtime_api::client::result::SdkError<
6281 crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError,
6282 R,
6283 >,
6284 ) -> Self {
6285 match err {
6286 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6287 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6288 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6289 source: err.into(),
6290 }),
6291 }
6292 }
6293}
6294impl From<crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError> for Error {
6295 fn from(err: crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError) -> Self {
6296 match err {
6297 crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError::Unhandled(inner) => Error::Unhandled(inner),
6298 }
6299 }
6300}
6301impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_repositories::ListCodeRepositoriesError, R>> for Error
6302where
6303 R: Send + Sync + std::fmt::Debug + 'static,
6304{
6305 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_repositories::ListCodeRepositoriesError, R>) -> Self {
6306 match err {
6307 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6308 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6309 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6310 source: err.into(),
6311 }),
6312 }
6313 }
6314}
6315impl From<crate::operation::list_code_repositories::ListCodeRepositoriesError> for Error {
6316 fn from(err: crate::operation::list_code_repositories::ListCodeRepositoriesError) -> Self {
6317 match err {
6318 crate::operation::list_code_repositories::ListCodeRepositoriesError::Unhandled(inner) => Error::Unhandled(inner),
6319 }
6320 }
6321}
6322impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compilation_jobs::ListCompilationJobsError, R>> for Error
6323where
6324 R: Send + Sync + std::fmt::Debug + 'static,
6325{
6326 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compilation_jobs::ListCompilationJobsError, R>) -> Self {
6327 match err {
6328 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6329 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6330 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6331 source: err.into(),
6332 }),
6333 }
6334 }
6335}
6336impl From<crate::operation::list_compilation_jobs::ListCompilationJobsError> for Error {
6337 fn from(err: crate::operation::list_compilation_jobs::ListCompilationJobsError) -> Self {
6338 match err {
6339 crate::operation::list_compilation_jobs::ListCompilationJobsError::Unhandled(inner) => Error::Unhandled(inner),
6340 }
6341 }
6342}
6343impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compute_quotas::ListComputeQuotasError, R>> for Error
6344where
6345 R: Send + Sync + std::fmt::Debug + 'static,
6346{
6347 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compute_quotas::ListComputeQuotasError, R>) -> Self {
6348 match err {
6349 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6350 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6351 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6352 source: err.into(),
6353 }),
6354 }
6355 }
6356}
6357impl From<crate::operation::list_compute_quotas::ListComputeQuotasError> for Error {
6358 fn from(err: crate::operation::list_compute_quotas::ListComputeQuotasError) -> Self {
6359 match err {
6360 crate::operation::list_compute_quotas::ListComputeQuotasError::Unhandled(inner) => Error::Unhandled(inner),
6361 }
6362 }
6363}
6364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contexts::ListContextsError, R>> for Error
6365where
6366 R: Send + Sync + std::fmt::Debug + 'static,
6367{
6368 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contexts::ListContextsError, R>) -> Self {
6369 match err {
6370 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6371 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6372 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6373 source: err.into(),
6374 }),
6375 }
6376 }
6377}
6378impl From<crate::operation::list_contexts::ListContextsError> for Error {
6379 fn from(err: crate::operation::list_contexts::ListContextsError) -> Self {
6380 match err {
6381 crate::operation::list_contexts::ListContextsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6382 crate::operation::list_contexts::ListContextsError::Unhandled(inner) => Error::Unhandled(inner),
6383 }
6384 }
6385}
6386impl<R>
6387 From<
6388 ::aws_smithy_runtime_api::client::result::SdkError<
6389 crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError,
6390 R,
6391 >,
6392 > for Error
6393where
6394 R: Send + Sync + std::fmt::Debug + 'static,
6395{
6396 fn from(
6397 err: ::aws_smithy_runtime_api::client::result::SdkError<
6398 crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError,
6399 R,
6400 >,
6401 ) -> Self {
6402 match err {
6403 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6404 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6405 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6406 source: err.into(),
6407 }),
6408 }
6409 }
6410}
6411impl From<crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError> for Error {
6412 fn from(err: crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError) -> Self {
6413 match err {
6414 crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
6415 }
6416 }
6417}
6418impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_fleets::ListDeviceFleetsError, R>> for Error
6419where
6420 R: Send + Sync + std::fmt::Debug + 'static,
6421{
6422 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_fleets::ListDeviceFleetsError, R>) -> Self {
6423 match err {
6424 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6425 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6426 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6427 source: err.into(),
6428 }),
6429 }
6430 }
6431}
6432impl From<crate::operation::list_device_fleets::ListDeviceFleetsError> for Error {
6433 fn from(err: crate::operation::list_device_fleets::ListDeviceFleetsError) -> Self {
6434 match err {
6435 crate::operation::list_device_fleets::ListDeviceFleetsError::Unhandled(inner) => Error::Unhandled(inner),
6436 }
6437 }
6438}
6439impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices::ListDevicesError, R>> for Error
6440where
6441 R: Send + Sync + std::fmt::Debug + 'static,
6442{
6443 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices::ListDevicesError, R>) -> Self {
6444 match err {
6445 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6446 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6447 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6448 source: err.into(),
6449 }),
6450 }
6451 }
6452}
6453impl From<crate::operation::list_devices::ListDevicesError> for Error {
6454 fn from(err: crate::operation::list_devices::ListDevicesError) -> Self {
6455 match err {
6456 crate::operation::list_devices::ListDevicesError::Unhandled(inner) => Error::Unhandled(inner),
6457 }
6458 }
6459}
6460impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>> for Error
6461where
6462 R: Send + Sync + std::fmt::Debug + 'static,
6463{
6464 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>) -> Self {
6465 match err {
6466 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6467 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6468 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6469 source: err.into(),
6470 }),
6471 }
6472 }
6473}
6474impl From<crate::operation::list_domains::ListDomainsError> for Error {
6475 fn from(err: crate::operation::list_domains::ListDomainsError) -> Self {
6476 match err {
6477 crate::operation::list_domains::ListDomainsError::Unhandled(inner) => Error::Unhandled(inner),
6478 }
6479 }
6480}
6481impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError, R>>
6482 for Error
6483where
6484 R: Send + Sync + std::fmt::Debug + 'static,
6485{
6486 fn from(
6487 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError, R>,
6488 ) -> Self {
6489 match err {
6490 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6491 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6492 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6493 source: err.into(),
6494 }),
6495 }
6496 }
6497}
6498impl From<crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError> for Error {
6499 fn from(err: crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError) -> Self {
6500 match err {
6501 crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError::Unhandled(inner) => Error::Unhandled(inner),
6502 }
6503 }
6504}
6505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError, R>> for Error
6506where
6507 R: Send + Sync + std::fmt::Debug + 'static,
6508{
6509 fn from(
6510 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError, R>,
6511 ) -> Self {
6512 match err {
6513 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6514 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6515 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6516 source: err.into(),
6517 }),
6518 }
6519 }
6520}
6521impl From<crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError> for Error {
6522 fn from(err: crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError) -> Self {
6523 match err {
6524 crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError::Unhandled(inner) => Error::Unhandled(inner),
6525 }
6526 }
6527}
6528impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoint_configs::ListEndpointConfigsError, R>> for Error
6529where
6530 R: Send + Sync + std::fmt::Debug + 'static,
6531{
6532 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoint_configs::ListEndpointConfigsError, R>) -> Self {
6533 match err {
6534 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6535 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6536 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6537 source: err.into(),
6538 }),
6539 }
6540 }
6541}
6542impl From<crate::operation::list_endpoint_configs::ListEndpointConfigsError> for Error {
6543 fn from(err: crate::operation::list_endpoint_configs::ListEndpointConfigsError) -> Self {
6544 match err {
6545 crate::operation::list_endpoint_configs::ListEndpointConfigsError::Unhandled(inner) => Error::Unhandled(inner),
6546 }
6547 }
6548}
6549impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoints::ListEndpointsError, R>> for Error
6550where
6551 R: Send + Sync + std::fmt::Debug + 'static,
6552{
6553 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoints::ListEndpointsError, R>) -> Self {
6554 match err {
6555 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6556 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6557 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6558 source: err.into(),
6559 }),
6560 }
6561 }
6562}
6563impl From<crate::operation::list_endpoints::ListEndpointsError> for Error {
6564 fn from(err: crate::operation::list_endpoints::ListEndpointsError) -> Self {
6565 match err {
6566 crate::operation::list_endpoints::ListEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
6567 }
6568 }
6569}
6570impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_experiments::ListExperimentsError, R>> for Error
6571where
6572 R: Send + Sync + std::fmt::Debug + 'static,
6573{
6574 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_experiments::ListExperimentsError, R>) -> Self {
6575 match err {
6576 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6577 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6578 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6579 source: err.into(),
6580 }),
6581 }
6582 }
6583}
6584impl From<crate::operation::list_experiments::ListExperimentsError> for Error {
6585 fn from(err: crate::operation::list_experiments::ListExperimentsError) -> Self {
6586 match err {
6587 crate::operation::list_experiments::ListExperimentsError::Unhandled(inner) => Error::Unhandled(inner),
6588 }
6589 }
6590}
6591impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_feature_groups::ListFeatureGroupsError, R>> for Error
6592where
6593 R: Send + Sync + std::fmt::Debug + 'static,
6594{
6595 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_feature_groups::ListFeatureGroupsError, R>) -> Self {
6596 match err {
6597 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6598 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6599 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6600 source: err.into(),
6601 }),
6602 }
6603 }
6604}
6605impl From<crate::operation::list_feature_groups::ListFeatureGroupsError> for Error {
6606 fn from(err: crate::operation::list_feature_groups::ListFeatureGroupsError) -> Self {
6607 match err {
6608 crate::operation::list_feature_groups::ListFeatureGroupsError::Unhandled(inner) => Error::Unhandled(inner),
6609 }
6610 }
6611}
6612impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_definitions::ListFlowDefinitionsError, R>> for Error
6613where
6614 R: Send + Sync + std::fmt::Debug + 'static,
6615{
6616 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_definitions::ListFlowDefinitionsError, R>) -> Self {
6617 match err {
6618 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6619 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6620 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6621 source: err.into(),
6622 }),
6623 }
6624 }
6625}
6626impl From<crate::operation::list_flow_definitions::ListFlowDefinitionsError> for Error {
6627 fn from(err: crate::operation::list_flow_definitions::ListFlowDefinitionsError) -> Self {
6628 match err {
6629 crate::operation::list_flow_definitions::ListFlowDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
6630 }
6631 }
6632}
6633impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_contents::ListHubContentsError, R>> for Error
6634where
6635 R: Send + Sync + std::fmt::Debug + 'static,
6636{
6637 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_contents::ListHubContentsError, R>) -> Self {
6638 match err {
6639 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6640 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6641 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6642 source: err.into(),
6643 }),
6644 }
6645 }
6646}
6647impl From<crate::operation::list_hub_contents::ListHubContentsError> for Error {
6648 fn from(err: crate::operation::list_hub_contents::ListHubContentsError) -> Self {
6649 match err {
6650 crate::operation::list_hub_contents::ListHubContentsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6651 crate::operation::list_hub_contents::ListHubContentsError::Unhandled(inner) => Error::Unhandled(inner),
6652 }
6653 }
6654}
6655impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_content_versions::ListHubContentVersionsError, R>>
6656 for Error
6657where
6658 R: Send + Sync + std::fmt::Debug + 'static,
6659{
6660 fn from(
6661 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_content_versions::ListHubContentVersionsError, R>,
6662 ) -> Self {
6663 match err {
6664 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6665 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6666 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6667 source: err.into(),
6668 }),
6669 }
6670 }
6671}
6672impl From<crate::operation::list_hub_content_versions::ListHubContentVersionsError> for Error {
6673 fn from(err: crate::operation::list_hub_content_versions::ListHubContentVersionsError) -> Self {
6674 match err {
6675 crate::operation::list_hub_content_versions::ListHubContentVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6676 crate::operation::list_hub_content_versions::ListHubContentVersionsError::Unhandled(inner) => Error::Unhandled(inner),
6677 }
6678 }
6679}
6680impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hubs::ListHubsError, R>> for Error
6681where
6682 R: Send + Sync + std::fmt::Debug + 'static,
6683{
6684 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hubs::ListHubsError, R>) -> Self {
6685 match err {
6686 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6687 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6688 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6689 source: err.into(),
6690 }),
6691 }
6692 }
6693}
6694impl From<crate::operation::list_hubs::ListHubsError> for Error {
6695 fn from(err: crate::operation::list_hubs::ListHubsError) -> Self {
6696 match err {
6697 crate::operation::list_hubs::ListHubsError::Unhandled(inner) => Error::Unhandled(inner),
6698 }
6699 }
6700}
6701impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_human_task_uis::ListHumanTaskUisError, R>> for Error
6702where
6703 R: Send + Sync + std::fmt::Debug + 'static,
6704{
6705 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_human_task_uis::ListHumanTaskUisError, R>) -> Self {
6706 match err {
6707 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6708 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6709 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6710 source: err.into(),
6711 }),
6712 }
6713 }
6714}
6715impl From<crate::operation::list_human_task_uis::ListHumanTaskUisError> for Error {
6716 fn from(err: crate::operation::list_human_task_uis::ListHumanTaskUisError) -> Self {
6717 match err {
6718 crate::operation::list_human_task_uis::ListHumanTaskUisError::Unhandled(inner) => Error::Unhandled(inner),
6719 }
6720 }
6721}
6722impl<R>
6723 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError, 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<
6730 crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError,
6731 R,
6732 >,
6733 ) -> Self {
6734 match err {
6735 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6736 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6737 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6738 source: err.into(),
6739 }),
6740 }
6741 }
6742}
6743impl From<crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError> for Error {
6744 fn from(err: crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError) -> Self {
6745 match err {
6746 crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError::Unhandled(inner) => Error::Unhandled(inner),
6747 }
6748 }
6749}
6750impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images::ListImagesError, R>> for Error
6751where
6752 R: Send + Sync + std::fmt::Debug + 'static,
6753{
6754 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images::ListImagesError, R>) -> Self {
6755 match err {
6756 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6757 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6758 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6759 source: err.into(),
6760 }),
6761 }
6762 }
6763}
6764impl From<crate::operation::list_images::ListImagesError> for Error {
6765 fn from(err: crate::operation::list_images::ListImagesError) -> Self {
6766 match err {
6767 crate::operation::list_images::ListImagesError::Unhandled(inner) => Error::Unhandled(inner),
6768 }
6769 }
6770}
6771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_image_versions::ListImageVersionsError, R>> for Error
6772where
6773 R: Send + Sync + std::fmt::Debug + 'static,
6774{
6775 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_image_versions::ListImageVersionsError, R>) -> Self {
6776 match err {
6777 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6778 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6779 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6780 source: err.into(),
6781 }),
6782 }
6783 }
6784}
6785impl From<crate::operation::list_image_versions::ListImageVersionsError> for Error {
6786 fn from(err: crate::operation::list_image_versions::ListImageVersionsError) -> Self {
6787 match err {
6788 crate::operation::list_image_versions::ListImageVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6789 crate::operation::list_image_versions::ListImageVersionsError::Unhandled(inner) => Error::Unhandled(inner),
6790 }
6791 }
6792}
6793impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_components::ListInferenceComponentsError, R>>
6794 for Error
6795where
6796 R: Send + Sync + std::fmt::Debug + 'static,
6797{
6798 fn from(
6799 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_components::ListInferenceComponentsError, R>,
6800 ) -> Self {
6801 match err {
6802 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6803 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6804 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6805 source: err.into(),
6806 }),
6807 }
6808 }
6809}
6810impl From<crate::operation::list_inference_components::ListInferenceComponentsError> for Error {
6811 fn from(err: crate::operation::list_inference_components::ListInferenceComponentsError) -> Self {
6812 match err {
6813 crate::operation::list_inference_components::ListInferenceComponentsError::Unhandled(inner) => Error::Unhandled(inner),
6814 }
6815 }
6816}
6817impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_experiments::ListInferenceExperimentsError, R>>
6818 for Error
6819where
6820 R: Send + Sync + std::fmt::Debug + 'static,
6821{
6822 fn from(
6823 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_experiments::ListInferenceExperimentsError, R>,
6824 ) -> Self {
6825 match err {
6826 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6827 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6828 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6829 source: err.into(),
6830 }),
6831 }
6832 }
6833}
6834impl From<crate::operation::list_inference_experiments::ListInferenceExperimentsError> for Error {
6835 fn from(err: crate::operation::list_inference_experiments::ListInferenceExperimentsError) -> Self {
6836 match err {
6837 crate::operation::list_inference_experiments::ListInferenceExperimentsError::Unhandled(inner) => Error::Unhandled(inner),
6838 }
6839 }
6840}
6841impl<R>
6842 From<
6843 ::aws_smithy_runtime_api::client::result::SdkError<
6844 crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError,
6845 R,
6846 >,
6847 > for Error
6848where
6849 R: Send + Sync + std::fmt::Debug + 'static,
6850{
6851 fn from(
6852 err: ::aws_smithy_runtime_api::client::result::SdkError<
6853 crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError,
6854 R,
6855 >,
6856 ) -> Self {
6857 match err {
6858 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6859 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6860 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6861 source: err.into(),
6862 }),
6863 }
6864 }
6865}
6866impl From<crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError> for Error {
6867 fn from(err: crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError) -> Self {
6868 match err {
6869 crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError::Unhandled(inner) => Error::Unhandled(inner),
6870 }
6871 }
6872}
6873impl<R>
6874 From<
6875 ::aws_smithy_runtime_api::client::result::SdkError<
6876 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError,
6877 R,
6878 >,
6879 > for Error
6880where
6881 R: Send + Sync + std::fmt::Debug + 'static,
6882{
6883 fn from(
6884 err: ::aws_smithy_runtime_api::client::result::SdkError<
6885 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError,
6886 R,
6887 >,
6888 ) -> Self {
6889 match err {
6890 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6891 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6892 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6893 source: err.into(),
6894 }),
6895 }
6896 }
6897}
6898impl From<crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError> for Error {
6899 fn from(err: crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError) -> Self {
6900 match err {
6901 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError::ResourceNotFound(inner) => {
6902 Error::ResourceNotFound(inner)
6903 }
6904 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError::Unhandled(inner) => {
6905 Error::Unhandled(inner)
6906 }
6907 }
6908 }
6909}
6910impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>> for Error
6911where
6912 R: Send + Sync + std::fmt::Debug + 'static,
6913{
6914 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>) -> Self {
6915 match err {
6916 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6917 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6918 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6919 source: err.into(),
6920 }),
6921 }
6922 }
6923}
6924impl From<crate::operation::list_jobs::ListJobsError> for Error {
6925 fn from(err: crate::operation::list_jobs::ListJobsError) -> Self {
6926 match err {
6927 crate::operation::list_jobs::ListJobsError::Unhandled(inner) => Error::Unhandled(inner),
6928 }
6929 }
6930}
6931impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_schema_versions::ListJobSchemaVersionsError, R>> for Error
6932where
6933 R: Send + Sync + std::fmt::Debug + 'static,
6934{
6935 fn from(
6936 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_schema_versions::ListJobSchemaVersionsError, R>,
6937 ) -> Self {
6938 match err {
6939 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6940 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6941 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6942 source: err.into(),
6943 }),
6944 }
6945 }
6946}
6947impl From<crate::operation::list_job_schema_versions::ListJobSchemaVersionsError> for Error {
6948 fn from(err: crate::operation::list_job_schema_versions::ListJobSchemaVersionsError) -> Self {
6949 match err {
6950 crate::operation::list_job_schema_versions::ListJobSchemaVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6951 crate::operation::list_job_schema_versions::ListJobSchemaVersionsError::Unhandled(inner) => Error::Unhandled(inner),
6952 }
6953 }
6954}
6955impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_labeling_jobs::ListLabelingJobsError, R>> for Error
6956where
6957 R: Send + Sync + std::fmt::Debug + 'static,
6958{
6959 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_labeling_jobs::ListLabelingJobsError, R>) -> Self {
6960 match err {
6961 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6962 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6963 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6964 source: err.into(),
6965 }),
6966 }
6967 }
6968}
6969impl From<crate::operation::list_labeling_jobs::ListLabelingJobsError> for Error {
6970 fn from(err: crate::operation::list_labeling_jobs::ListLabelingJobsError) -> Self {
6971 match err {
6972 crate::operation::list_labeling_jobs::ListLabelingJobsError::Unhandled(inner) => Error::Unhandled(inner),
6973 }
6974 }
6975}
6976impl<R>
6977 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError, R>>
6978 for Error
6979where
6980 R: Send + Sync + std::fmt::Debug + 'static,
6981{
6982 fn from(
6983 err: ::aws_smithy_runtime_api::client::result::SdkError<
6984 crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError,
6985 R,
6986 >,
6987 ) -> Self {
6988 match err {
6989 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6990 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6991 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6992 source: err.into(),
6993 }),
6994 }
6995 }
6996}
6997impl From<crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError> for Error {
6998 fn from(err: crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError) -> Self {
6999 match err {
7000 crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError::ResourceNotFound(inner) => {
7001 Error::ResourceNotFound(inner)
7002 }
7003 crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
7004 }
7005 }
7006}
7007impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lineage_groups::ListLineageGroupsError, R>> for Error
7008where
7009 R: Send + Sync + std::fmt::Debug + 'static,
7010{
7011 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lineage_groups::ListLineageGroupsError, R>) -> Self {
7012 match err {
7013 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7014 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7015 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7016 source: err.into(),
7017 }),
7018 }
7019 }
7020}
7021impl From<crate::operation::list_lineage_groups::ListLineageGroupsError> for Error {
7022 fn from(err: crate::operation::list_lineage_groups::ListLineageGroupsError) -> Self {
7023 match err {
7024 crate::operation::list_lineage_groups::ListLineageGroupsError::Unhandled(inner) => Error::Unhandled(inner),
7025 }
7026 }
7027}
7028impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mlflow_apps::ListMlflowAppsError, R>> for Error
7029where
7030 R: Send + Sync + std::fmt::Debug + 'static,
7031{
7032 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mlflow_apps::ListMlflowAppsError, R>) -> Self {
7033 match err {
7034 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7035 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7036 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7037 source: err.into(),
7038 }),
7039 }
7040 }
7041}
7042impl From<crate::operation::list_mlflow_apps::ListMlflowAppsError> for Error {
7043 fn from(err: crate::operation::list_mlflow_apps::ListMlflowAppsError) -> Self {
7044 match err {
7045 crate::operation::list_mlflow_apps::ListMlflowAppsError::Unhandled(inner) => Error::Unhandled(inner),
7046 }
7047 }
7048}
7049impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError, R>>
7050 for Error
7051where
7052 R: Send + Sync + std::fmt::Debug + 'static,
7053{
7054 fn from(
7055 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError, R>,
7056 ) -> Self {
7057 match err {
7058 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7059 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7060 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7061 source: err.into(),
7062 }),
7063 }
7064 }
7065}
7066impl From<crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError> for Error {
7067 fn from(err: crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError) -> Self {
7068 match err {
7069 crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError::Unhandled(inner) => Error::Unhandled(inner),
7070 }
7071 }
7072}
7073impl<R>
7074 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError, R>>
7075 for Error
7076where
7077 R: Send + Sync + std::fmt::Debug + 'static,
7078{
7079 fn from(
7080 err: ::aws_smithy_runtime_api::client::result::SdkError<
7081 crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError,
7082 R,
7083 >,
7084 ) -> Self {
7085 match err {
7086 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7087 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7088 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7089 source: err.into(),
7090 }),
7091 }
7092 }
7093}
7094impl From<crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError> for Error {
7095 fn from(err: crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError) -> Self {
7096 match err {
7097 crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
7098 }
7099 }
7100}
7101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError, R>>
7102 for Error
7103where
7104 R: Send + Sync + std::fmt::Debug + 'static,
7105{
7106 fn from(
7107 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError, R>,
7108 ) -> Self {
7109 match err {
7110 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7111 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7112 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7113 source: err.into(),
7114 }),
7115 }
7116 }
7117}
7118impl From<crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError> for Error {
7119 fn from(err: crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError) -> Self {
7120 match err {
7121 crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError::Unhandled(inner) => Error::Unhandled(inner),
7122 }
7123 }
7124}
7125impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_cards::ListModelCardsError, R>> for Error
7126where
7127 R: Send + Sync + std::fmt::Debug + 'static,
7128{
7129 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_cards::ListModelCardsError, R>) -> Self {
7130 match err {
7131 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7132 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7133 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7134 source: err.into(),
7135 }),
7136 }
7137 }
7138}
7139impl From<crate::operation::list_model_cards::ListModelCardsError> for Error {
7140 fn from(err: crate::operation::list_model_cards::ListModelCardsError) -> Self {
7141 match err {
7142 crate::operation::list_model_cards::ListModelCardsError::Unhandled(inner) => Error::Unhandled(inner),
7143 }
7144 }
7145}
7146impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_versions::ListModelCardVersionsError, R>> for Error
7147where
7148 R: Send + Sync + std::fmt::Debug + 'static,
7149{
7150 fn from(
7151 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_versions::ListModelCardVersionsError, R>,
7152 ) -> Self {
7153 match err {
7154 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7155 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7156 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7157 source: err.into(),
7158 }),
7159 }
7160 }
7161}
7162impl From<crate::operation::list_model_card_versions::ListModelCardVersionsError> for Error {
7163 fn from(err: crate::operation::list_model_card_versions::ListModelCardVersionsError) -> Self {
7164 match err {
7165 crate::operation::list_model_card_versions::ListModelCardVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7166 crate::operation::list_model_card_versions::ListModelCardVersionsError::Unhandled(inner) => Error::Unhandled(inner),
7167 }
7168 }
7169}
7170impl<R>
7171 From<
7172 ::aws_smithy_runtime_api::client::result::SdkError<
7173 crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError,
7174 R,
7175 >,
7176 > for Error
7177where
7178 R: Send + Sync + std::fmt::Debug + 'static,
7179{
7180 fn from(
7181 err: ::aws_smithy_runtime_api::client::result::SdkError<
7182 crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError,
7183 R,
7184 >,
7185 ) -> Self {
7186 match err {
7187 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7188 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7189 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7190 source: err.into(),
7191 }),
7192 }
7193 }
7194}
7195impl From<crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError> for Error {
7196 fn from(err: crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError) -> Self {
7197 match err {
7198 crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError::Unhandled(inner) => {
7199 Error::Unhandled(inner)
7200 }
7201 }
7202 }
7203}
7204impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_metadata::ListModelMetadataError, R>> for Error
7205where
7206 R: Send + Sync + std::fmt::Debug + 'static,
7207{
7208 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_metadata::ListModelMetadataError, R>) -> Self {
7209 match err {
7210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7213 source: err.into(),
7214 }),
7215 }
7216 }
7217}
7218impl From<crate::operation::list_model_metadata::ListModelMetadataError> for Error {
7219 fn from(err: crate::operation::list_model_metadata::ListModelMetadataError) -> Self {
7220 match err {
7221 crate::operation::list_model_metadata::ListModelMetadataError::Unhandled(inner) => Error::Unhandled(inner),
7222 }
7223 }
7224}
7225impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_package_groups::ListModelPackageGroupsError, R>>
7226 for Error
7227where
7228 R: Send + Sync + std::fmt::Debug + 'static,
7229{
7230 fn from(
7231 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_package_groups::ListModelPackageGroupsError, R>,
7232 ) -> Self {
7233 match err {
7234 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7235 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7236 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7237 source: err.into(),
7238 }),
7239 }
7240 }
7241}
7242impl From<crate::operation::list_model_package_groups::ListModelPackageGroupsError> for Error {
7243 fn from(err: crate::operation::list_model_package_groups::ListModelPackageGroupsError) -> Self {
7244 match err {
7245 crate::operation::list_model_package_groups::ListModelPackageGroupsError::Unhandled(inner) => Error::Unhandled(inner),
7246 }
7247 }
7248}
7249impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_packages::ListModelPackagesError, R>> for Error
7250where
7251 R: Send + Sync + std::fmt::Debug + 'static,
7252{
7253 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_packages::ListModelPackagesError, R>) -> Self {
7254 match err {
7255 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7256 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7257 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7258 source: err.into(),
7259 }),
7260 }
7261 }
7262}
7263impl From<crate::operation::list_model_packages::ListModelPackagesError> for Error {
7264 fn from(err: crate::operation::list_model_packages::ListModelPackagesError) -> Self {
7265 match err {
7266 crate::operation::list_model_packages::ListModelPackagesError::Unhandled(inner) => Error::Unhandled(inner),
7267 }
7268 }
7269}
7270impl<R>
7271 From<
7272 ::aws_smithy_runtime_api::client::result::SdkError<
7273 crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError,
7274 R,
7275 >,
7276 > for Error
7277where
7278 R: Send + Sync + std::fmt::Debug + 'static,
7279{
7280 fn from(
7281 err: ::aws_smithy_runtime_api::client::result::SdkError<
7282 crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError,
7283 R,
7284 >,
7285 ) -> Self {
7286 match err {
7287 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7288 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7289 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7290 source: err.into(),
7291 }),
7292 }
7293 }
7294}
7295impl From<crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError> for Error {
7296 fn from(err: crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError) -> Self {
7297 match err {
7298 crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
7299 }
7300 }
7301}
7302impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_models::ListModelsError, R>> for Error
7303where
7304 R: Send + Sync + std::fmt::Debug + 'static,
7305{
7306 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_models::ListModelsError, R>) -> Self {
7307 match err {
7308 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7309 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7310 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7311 source: err.into(),
7312 }),
7313 }
7314 }
7315}
7316impl From<crate::operation::list_models::ListModelsError> for Error {
7317 fn from(err: crate::operation::list_models::ListModelsError) -> Self {
7318 match err {
7319 crate::operation::list_models::ListModelsError::Unhandled(inner) => Error::Unhandled(inner),
7320 }
7321 }
7322}
7323impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError, R>>
7324 for Error
7325where
7326 R: Send + Sync + std::fmt::Debug + 'static,
7327{
7328 fn from(
7329 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError, R>,
7330 ) -> Self {
7331 match err {
7332 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7333 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7334 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7335 source: err.into(),
7336 }),
7337 }
7338 }
7339}
7340impl From<crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError> for Error {
7341 fn from(err: crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError) -> Self {
7342 match err {
7343 crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError::ResourceNotFound(inner) => {
7344 Error::ResourceNotFound(inner)
7345 }
7346 crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError::Unhandled(inner) => Error::Unhandled(inner),
7347 }
7348 }
7349}
7350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alerts::ListMonitoringAlertsError, R>> for Error
7351where
7352 R: Send + Sync + std::fmt::Debug + 'static,
7353{
7354 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alerts::ListMonitoringAlertsError, R>) -> Self {
7355 match err {
7356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7359 source: err.into(),
7360 }),
7361 }
7362 }
7363}
7364impl From<crate::operation::list_monitoring_alerts::ListMonitoringAlertsError> for Error {
7365 fn from(err: crate::operation::list_monitoring_alerts::ListMonitoringAlertsError) -> Self {
7366 match err {
7367 crate::operation::list_monitoring_alerts::ListMonitoringAlertsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7368 crate::operation::list_monitoring_alerts::ListMonitoringAlertsError::Unhandled(inner) => Error::Unhandled(inner),
7369 }
7370 }
7371}
7372impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_executions::ListMonitoringExecutionsError, R>>
7373 for Error
7374where
7375 R: Send + Sync + std::fmt::Debug + 'static,
7376{
7377 fn from(
7378 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_executions::ListMonitoringExecutionsError, R>,
7379 ) -> Self {
7380 match err {
7381 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7382 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7383 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7384 source: err.into(),
7385 }),
7386 }
7387 }
7388}
7389impl From<crate::operation::list_monitoring_executions::ListMonitoringExecutionsError> for Error {
7390 fn from(err: crate::operation::list_monitoring_executions::ListMonitoringExecutionsError) -> Self {
7391 match err {
7392 crate::operation::list_monitoring_executions::ListMonitoringExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
7393 }
7394 }
7395}
7396impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError, R>>
7397 for Error
7398where
7399 R: Send + Sync + std::fmt::Debug + 'static,
7400{
7401 fn from(
7402 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError, R>,
7403 ) -> Self {
7404 match err {
7405 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7406 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7407 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7408 source: err.into(),
7409 }),
7410 }
7411 }
7412}
7413impl From<crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError> for Error {
7414 fn from(err: crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError) -> Self {
7415 match err {
7416 crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError::Unhandled(inner) => Error::Unhandled(inner),
7417 }
7418 }
7419}
7420impl<R>
7421 From<
7422 ::aws_smithy_runtime_api::client::result::SdkError<
7423 crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError,
7424 R,
7425 >,
7426 > for Error
7427where
7428 R: Send + Sync + std::fmt::Debug + 'static,
7429{
7430 fn from(
7431 err: ::aws_smithy_runtime_api::client::result::SdkError<
7432 crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError,
7433 R,
7434 >,
7435 ) -> Self {
7436 match err {
7437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7440 source: err.into(),
7441 }),
7442 }
7443 }
7444}
7445impl From<crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError> for Error {
7446 fn from(err: crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError) -> Self {
7447 match err {
7448 crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError::Unhandled(inner) => {
7449 Error::Unhandled(inner)
7450 }
7451 }
7452 }
7453}
7454impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notebook_instances::ListNotebookInstancesError, R>> for Error
7455where
7456 R: Send + Sync + std::fmt::Debug + 'static,
7457{
7458 fn from(
7459 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notebook_instances::ListNotebookInstancesError, R>,
7460 ) -> Self {
7461 match err {
7462 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7463 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7464 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7465 source: err.into(),
7466 }),
7467 }
7468 }
7469}
7470impl From<crate::operation::list_notebook_instances::ListNotebookInstancesError> for Error {
7471 fn from(err: crate::operation::list_notebook_instances::ListNotebookInstancesError) -> Self {
7472 match err {
7473 crate::operation::list_notebook_instances::ListNotebookInstancesError::Unhandled(inner) => Error::Unhandled(inner),
7474 }
7475 }
7476}
7477impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_optimization_jobs::ListOptimizationJobsError, R>> for Error
7478where
7479 R: Send + Sync + std::fmt::Debug + 'static,
7480{
7481 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_optimization_jobs::ListOptimizationJobsError, R>) -> Self {
7482 match err {
7483 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7484 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7485 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7486 source: err.into(),
7487 }),
7488 }
7489 }
7490}
7491impl From<crate::operation::list_optimization_jobs::ListOptimizationJobsError> for Error {
7492 fn from(err: crate::operation::list_optimization_jobs::ListOptimizationJobsError) -> Self {
7493 match err {
7494 crate::operation::list_optimization_jobs::ListOptimizationJobsError::Unhandled(inner) => Error::Unhandled(inner),
7495 }
7496 }
7497}
7498impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_partner_apps::ListPartnerAppsError, R>> for Error
7499where
7500 R: Send + Sync + std::fmt::Debug + 'static,
7501{
7502 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_partner_apps::ListPartnerAppsError, R>) -> Self {
7503 match err {
7504 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7505 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7506 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7507 source: err.into(),
7508 }),
7509 }
7510 }
7511}
7512impl From<crate::operation::list_partner_apps::ListPartnerAppsError> for Error {
7513 fn from(err: crate::operation::list_partner_apps::ListPartnerAppsError) -> Self {
7514 match err {
7515 crate::operation::list_partner_apps::ListPartnerAppsError::Unhandled(inner) => Error::Unhandled(inner),
7516 }
7517 }
7518}
7519impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_executions::ListPipelineExecutionsError, R>> for Error
7520where
7521 R: Send + Sync + std::fmt::Debug + 'static,
7522{
7523 fn from(
7524 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_executions::ListPipelineExecutionsError, R>,
7525 ) -> Self {
7526 match err {
7527 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7528 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7529 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7530 source: err.into(),
7531 }),
7532 }
7533 }
7534}
7535impl From<crate::operation::list_pipeline_executions::ListPipelineExecutionsError> for Error {
7536 fn from(err: crate::operation::list_pipeline_executions::ListPipelineExecutionsError) -> Self {
7537 match err {
7538 crate::operation::list_pipeline_executions::ListPipelineExecutionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7539 crate::operation::list_pipeline_executions::ListPipelineExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
7540 }
7541 }
7542}
7543impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError, R>>
7544 for Error
7545where
7546 R: Send + Sync + std::fmt::Debug + 'static,
7547{
7548 fn from(
7549 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError, R>,
7550 ) -> Self {
7551 match err {
7552 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7553 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7554 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7555 source: err.into(),
7556 }),
7557 }
7558 }
7559}
7560impl From<crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError> for Error {
7561 fn from(err: crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError) -> Self {
7562 match err {
7563 crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError::ResourceNotFound(inner) => {
7564 Error::ResourceNotFound(inner)
7565 }
7566 crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError::Unhandled(inner) => Error::Unhandled(inner),
7567 }
7568 }
7569}
7570impl<R>
7571 From<
7572 ::aws_smithy_runtime_api::client::result::SdkError<
7573 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError,
7574 R,
7575 >,
7576 > for Error
7577where
7578 R: Send + Sync + std::fmt::Debug + 'static,
7579{
7580 fn from(
7581 err: ::aws_smithy_runtime_api::client::result::SdkError<
7582 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError,
7583 R,
7584 >,
7585 ) -> Self {
7586 match err {
7587 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7588 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7589 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7590 source: err.into(),
7591 }),
7592 }
7593 }
7594}
7595impl From<crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError> for Error {
7596 fn from(err: crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError) -> Self {
7597 match err {
7598 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError::ResourceNotFound(inner) => {
7599 Error::ResourceNotFound(inner)
7600 }
7601 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError::Unhandled(inner) => {
7602 Error::Unhandled(inner)
7603 }
7604 }
7605 }
7606}
7607impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipelines::ListPipelinesError, R>> for Error
7608where
7609 R: Send + Sync + std::fmt::Debug + 'static,
7610{
7611 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipelines::ListPipelinesError, R>) -> Self {
7612 match err {
7613 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7614 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7615 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7616 source: err.into(),
7617 }),
7618 }
7619 }
7620}
7621impl From<crate::operation::list_pipelines::ListPipelinesError> for Error {
7622 fn from(err: crate::operation::list_pipelines::ListPipelinesError) -> Self {
7623 match err {
7624 crate::operation::list_pipelines::ListPipelinesError::Unhandled(inner) => Error::Unhandled(inner),
7625 }
7626 }
7627}
7628impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_versions::ListPipelineVersionsError, R>> for Error
7629where
7630 R: Send + Sync + std::fmt::Debug + 'static,
7631{
7632 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_versions::ListPipelineVersionsError, R>) -> Self {
7633 match err {
7634 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7635 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7636 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7637 source: err.into(),
7638 }),
7639 }
7640 }
7641}
7642impl From<crate::operation::list_pipeline_versions::ListPipelineVersionsError> for Error {
7643 fn from(err: crate::operation::list_pipeline_versions::ListPipelineVersionsError) -> Self {
7644 match err {
7645 crate::operation::list_pipeline_versions::ListPipelineVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7646 crate::operation::list_pipeline_versions::ListPipelineVersionsError::Unhandled(inner) => Error::Unhandled(inner),
7647 }
7648 }
7649}
7650impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_processing_jobs::ListProcessingJobsError, R>> for Error
7651where
7652 R: Send + Sync + std::fmt::Debug + 'static,
7653{
7654 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_processing_jobs::ListProcessingJobsError, R>) -> Self {
7655 match err {
7656 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7657 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7658 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7659 source: err.into(),
7660 }),
7661 }
7662 }
7663}
7664impl From<crate::operation::list_processing_jobs::ListProcessingJobsError> for Error {
7665 fn from(err: crate::operation::list_processing_jobs::ListProcessingJobsError) -> Self {
7666 match err {
7667 crate::operation::list_processing_jobs::ListProcessingJobsError::Unhandled(inner) => Error::Unhandled(inner),
7668 }
7669 }
7670}
7671impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>> for Error
7672where
7673 R: Send + Sync + std::fmt::Debug + 'static,
7674{
7675 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>) -> Self {
7676 match err {
7677 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7678 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7679 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7680 source: err.into(),
7681 }),
7682 }
7683 }
7684}
7685impl From<crate::operation::list_projects::ListProjectsError> for Error {
7686 fn from(err: crate::operation::list_projects::ListProjectsError) -> Self {
7687 match err {
7688 crate::operation::list_projects::ListProjectsError::Unhandled(inner) => Error::Unhandled(inner),
7689 }
7690 }
7691}
7692impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_catalogs::ListResourceCatalogsError, R>> for Error
7693where
7694 R: Send + Sync + std::fmt::Debug + 'static,
7695{
7696 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_catalogs::ListResourceCatalogsError, R>) -> Self {
7697 match err {
7698 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7699 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7700 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7701 source: err.into(),
7702 }),
7703 }
7704 }
7705}
7706impl From<crate::operation::list_resource_catalogs::ListResourceCatalogsError> for Error {
7707 fn from(err: crate::operation::list_resource_catalogs::ListResourceCatalogsError) -> Self {
7708 match err {
7709 crate::operation::list_resource_catalogs::ListResourceCatalogsError::Unhandled(inner) => Error::Unhandled(inner),
7710 }
7711 }
7712}
7713impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces::ListSpacesError, R>> for Error
7714where
7715 R: Send + Sync + std::fmt::Debug + 'static,
7716{
7717 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces::ListSpacesError, R>) -> Self {
7718 match err {
7719 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7720 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7721 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7722 source: err.into(),
7723 }),
7724 }
7725 }
7726}
7727impl From<crate::operation::list_spaces::ListSpacesError> for Error {
7728 fn from(err: crate::operation::list_spaces::ListSpacesError) -> Self {
7729 match err {
7730 crate::operation::list_spaces::ListSpacesError::Unhandled(inner) => Error::Unhandled(inner),
7731 }
7732 }
7733}
7734impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stage_devices::ListStageDevicesError, R>> for Error
7735where
7736 R: Send + Sync + std::fmt::Debug + 'static,
7737{
7738 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stage_devices::ListStageDevicesError, R>) -> Self {
7739 match err {
7740 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7741 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7742 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7743 source: err.into(),
7744 }),
7745 }
7746 }
7747}
7748impl From<crate::operation::list_stage_devices::ListStageDevicesError> for Error {
7749 fn from(err: crate::operation::list_stage_devices::ListStageDevicesError) -> Self {
7750 match err {
7751 crate::operation::list_stage_devices::ListStageDevicesError::Unhandled(inner) => Error::Unhandled(inner),
7752 }
7753 }
7754}
7755impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError, R>>
7756 for Error
7757where
7758 R: Send + Sync + std::fmt::Debug + 'static,
7759{
7760 fn from(
7761 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError, R>,
7762 ) -> Self {
7763 match err {
7764 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7765 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7766 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7767 source: err.into(),
7768 }),
7769 }
7770 }
7771}
7772impl From<crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError> for Error {
7773 fn from(err: crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError) -> Self {
7774 match err {
7775 crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError::ResourceInUse(inner) => Error::ResourceInUse(inner),
7776 crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError::Unhandled(inner) => Error::Unhandled(inner),
7777 }
7778 }
7779}
7780impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError, R>>
7781 for Error
7782where
7783 R: Send + Sync + std::fmt::Debug + 'static,
7784{
7785 fn from(
7786 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError, R>,
7787 ) -> Self {
7788 match err {
7789 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7790 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7791 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7792 source: err.into(),
7793 }),
7794 }
7795 }
7796}
7797impl From<crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError> for Error {
7798 fn from(err: crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError) -> Self {
7799 match err {
7800 crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError::Unhandled(inner) => Error::Unhandled(inner),
7801 }
7802 }
7803}
7804impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags::ListTagsError, 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_tags::ListTagsError, 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_tags::ListTagsError> for Error {
7819 fn from(err: crate::operation::list_tags::ListTagsError) -> Self {
7820 match err {
7821 crate::operation::list_tags::ListTagsError::Unhandled(inner) => Error::Unhandled(inner),
7822 }
7823 }
7824}
7825impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_jobs::ListTrainingJobsError, R>> for Error
7826where
7827 R: Send + Sync + std::fmt::Debug + 'static,
7828{
7829 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_jobs::ListTrainingJobsError, R>) -> Self {
7830 match err {
7831 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7832 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7833 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7834 source: err.into(),
7835 }),
7836 }
7837 }
7838}
7839impl From<crate::operation::list_training_jobs::ListTrainingJobsError> for Error {
7840 fn from(err: crate::operation::list_training_jobs::ListTrainingJobsError) -> Self {
7841 match err {
7842 crate::operation::list_training_jobs::ListTrainingJobsError::Unhandled(inner) => Error::Unhandled(inner),
7843 }
7844 }
7845}
7846impl<R>
7847 From<
7848 ::aws_smithy_runtime_api::client::result::SdkError<
7849 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError,
7850 R,
7851 >,
7852 > for Error
7853where
7854 R: Send + Sync + std::fmt::Debug + 'static,
7855{
7856 fn from(
7857 err: ::aws_smithy_runtime_api::client::result::SdkError<
7858 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError,
7859 R,
7860 >,
7861 ) -> Self {
7862 match err {
7863 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7864 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7865 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7866 source: err.into(),
7867 }),
7868 }
7869 }
7870}
7871impl From<crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError> for Error {
7872 fn from(err: crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError) -> Self {
7873 match err {
7874 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7875 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
7876 }
7877 }
7878}
7879impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_plans::ListTrainingPlansError, R>> for Error
7880where
7881 R: Send + Sync + std::fmt::Debug + 'static,
7882{
7883 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_plans::ListTrainingPlansError, R>) -> Self {
7884 match err {
7885 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7886 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7887 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7888 source: err.into(),
7889 }),
7890 }
7891 }
7892}
7893impl From<crate::operation::list_training_plans::ListTrainingPlansError> for Error {
7894 fn from(err: crate::operation::list_training_plans::ListTrainingPlansError) -> Self {
7895 match err {
7896 crate::operation::list_training_plans::ListTrainingPlansError::Unhandled(inner) => Error::Unhandled(inner),
7897 }
7898 }
7899}
7900impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_transform_jobs::ListTransformJobsError, R>> for Error
7901where
7902 R: Send + Sync + std::fmt::Debug + 'static,
7903{
7904 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_transform_jobs::ListTransformJobsError, R>) -> Self {
7905 match err {
7906 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7907 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7908 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7909 source: err.into(),
7910 }),
7911 }
7912 }
7913}
7914impl From<crate::operation::list_transform_jobs::ListTransformJobsError> for Error {
7915 fn from(err: crate::operation::list_transform_jobs::ListTransformJobsError) -> Self {
7916 match err {
7917 crate::operation::list_transform_jobs::ListTransformJobsError::Unhandled(inner) => Error::Unhandled(inner),
7918 }
7919 }
7920}
7921impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trial_components::ListTrialComponentsError, R>> for Error
7922where
7923 R: Send + Sync + std::fmt::Debug + 'static,
7924{
7925 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trial_components::ListTrialComponentsError, R>) -> Self {
7926 match err {
7927 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7928 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7929 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7930 source: err.into(),
7931 }),
7932 }
7933 }
7934}
7935impl From<crate::operation::list_trial_components::ListTrialComponentsError> for Error {
7936 fn from(err: crate::operation::list_trial_components::ListTrialComponentsError) -> Self {
7937 match err {
7938 crate::operation::list_trial_components::ListTrialComponentsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7939 crate::operation::list_trial_components::ListTrialComponentsError::Unhandled(inner) => Error::Unhandled(inner),
7940 }
7941 }
7942}
7943impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trials::ListTrialsError, R>> for Error
7944where
7945 R: Send + Sync + std::fmt::Debug + 'static,
7946{
7947 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trials::ListTrialsError, R>) -> Self {
7948 match err {
7949 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7950 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7951 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7952 source: err.into(),
7953 }),
7954 }
7955 }
7956}
7957impl From<crate::operation::list_trials::ListTrialsError> for Error {
7958 fn from(err: crate::operation::list_trials::ListTrialsError) -> Self {
7959 match err {
7960 crate::operation::list_trials::ListTrialsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7961 crate::operation::list_trials::ListTrialsError::Unhandled(inner) => Error::Unhandled(inner),
7962 }
7963 }
7964}
7965impl<R>
7966 From<
7967 ::aws_smithy_runtime_api::client::result::SdkError<
7968 crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError,
7969 R,
7970 >,
7971 > for Error
7972where
7973 R: Send + Sync + std::fmt::Debug + 'static,
7974{
7975 fn from(
7976 err: ::aws_smithy_runtime_api::client::result::SdkError<
7977 crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError,
7978 R,
7979 >,
7980 ) -> Self {
7981 match err {
7982 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7983 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7984 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7985 source: err.into(),
7986 }),
7987 }
7988 }
7989}
7990impl From<crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError> for Error {
7991 fn from(err: crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError) -> Self {
7992 match err {
7993 crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError::ResourceNotFound(inner) => {
7994 Error::ResourceNotFound(inner)
7995 }
7996 crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError::Unhandled(inner) => {
7997 Error::Unhandled(inner)
7998 }
7999 }
8000 }
8001}
8002impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_profiles::ListUserProfilesError, R>> for Error
8003where
8004 R: Send + Sync + std::fmt::Debug + 'static,
8005{
8006 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_profiles::ListUserProfilesError, R>) -> Self {
8007 match err {
8008 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8009 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8010 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8011 source: err.into(),
8012 }),
8013 }
8014 }
8015}
8016impl From<crate::operation::list_user_profiles::ListUserProfilesError> for Error {
8017 fn from(err: crate::operation::list_user_profiles::ListUserProfilesError) -> Self {
8018 match err {
8019 crate::operation::list_user_profiles::ListUserProfilesError::Unhandled(inner) => Error::Unhandled(inner),
8020 }
8021 }
8022}
8023impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workforces::ListWorkforcesError, R>> for Error
8024where
8025 R: Send + Sync + std::fmt::Debug + 'static,
8026{
8027 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workforces::ListWorkforcesError, R>) -> Self {
8028 match err {
8029 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8030 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8031 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8032 source: err.into(),
8033 }),
8034 }
8035 }
8036}
8037impl From<crate::operation::list_workforces::ListWorkforcesError> for Error {
8038 fn from(err: crate::operation::list_workforces::ListWorkforcesError) -> Self {
8039 match err {
8040 crate::operation::list_workforces::ListWorkforcesError::Unhandled(inner) => Error::Unhandled(inner),
8041 }
8042 }
8043}
8044impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workteams::ListWorkteamsError, R>> for Error
8045where
8046 R: Send + Sync + std::fmt::Debug + 'static,
8047{
8048 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workteams::ListWorkteamsError, R>) -> Self {
8049 match err {
8050 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8051 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8052 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8053 source: err.into(),
8054 }),
8055 }
8056 }
8057}
8058impl From<crate::operation::list_workteams::ListWorkteamsError> for Error {
8059 fn from(err: crate::operation::list_workteams::ListWorkteamsError) -> Self {
8060 match err {
8061 crate::operation::list_workteams::ListWorkteamsError::Unhandled(inner) => Error::Unhandled(inner),
8062 }
8063 }
8064}
8065impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError, R>>
8066 for Error
8067where
8068 R: Send + Sync + std::fmt::Debug + 'static,
8069{
8070 fn from(
8071 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError, R>,
8072 ) -> Self {
8073 match err {
8074 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8075 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8076 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8077 source: err.into(),
8078 }),
8079 }
8080 }
8081}
8082impl From<crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError> for Error {
8083 fn from(err: crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError) -> Self {
8084 match err {
8085 crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError::ConflictException(inner) => {
8086 Error::ConflictException(inner)
8087 }
8088 crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
8089 }
8090 }
8091}
8092impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_lineage::QueryLineageError, R>> for Error
8093where
8094 R: Send + Sync + std::fmt::Debug + 'static,
8095{
8096 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_lineage::QueryLineageError, R>) -> Self {
8097 match err {
8098 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8099 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8100 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8101 source: err.into(),
8102 }),
8103 }
8104 }
8105}
8106impl From<crate::operation::query_lineage::QueryLineageError> for Error {
8107 fn from(err: crate::operation::query_lineage::QueryLineageError) -> Self {
8108 match err {
8109 crate::operation::query_lineage::QueryLineageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8110 crate::operation::query_lineage::QueryLineageError::Unhandled(inner) => Error::Unhandled(inner),
8111 }
8112 }
8113}
8114impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_devices::RegisterDevicesError, R>> for Error
8115where
8116 R: Send + Sync + std::fmt::Debug + 'static,
8117{
8118 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_devices::RegisterDevicesError, R>) -> Self {
8119 match err {
8120 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8121 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8122 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8123 source: err.into(),
8124 }),
8125 }
8126 }
8127}
8128impl From<crate::operation::register_devices::RegisterDevicesError> for Error {
8129 fn from(err: crate::operation::register_devices::RegisterDevicesError) -> Self {
8130 match err {
8131 crate::operation::register_devices::RegisterDevicesError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8132 crate::operation::register_devices::RegisterDevicesError::Unhandled(inner) => Error::Unhandled(inner),
8133 }
8134 }
8135}
8136impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::render_ui_template::RenderUiTemplateError, R>> for Error
8137where
8138 R: Send + Sync + std::fmt::Debug + 'static,
8139{
8140 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::render_ui_template::RenderUiTemplateError, R>) -> Self {
8141 match err {
8142 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8143 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8144 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8145 source: err.into(),
8146 }),
8147 }
8148 }
8149}
8150impl From<crate::operation::render_ui_template::RenderUiTemplateError> for Error {
8151 fn from(err: crate::operation::render_ui_template::RenderUiTemplateError) -> Self {
8152 match err {
8153 crate::operation::render_ui_template::RenderUiTemplateError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8154 crate::operation::render_ui_template::RenderUiTemplateError::Unhandled(inner) => Error::Unhandled(inner),
8155 }
8156 }
8157}
8158impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_pipeline_execution::RetryPipelineExecutionError, R>> for Error
8159where
8160 R: Send + Sync + std::fmt::Debug + 'static,
8161{
8162 fn from(
8163 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_pipeline_execution::RetryPipelineExecutionError, R>,
8164 ) -> Self {
8165 match err {
8166 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8167 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8168 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8169 source: err.into(),
8170 }),
8171 }
8172 }
8173}
8174impl From<crate::operation::retry_pipeline_execution::RetryPipelineExecutionError> for Error {
8175 fn from(err: crate::operation::retry_pipeline_execution::RetryPipelineExecutionError) -> Self {
8176 match err {
8177 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
8178 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::ResourceLimitExceeded(inner) => {
8179 Error::ResourceLimitExceeded(inner)
8180 }
8181 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8182 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
8183 }
8184 }
8185}
8186impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search::SearchError, R>> for Error
8187where
8188 R: Send + Sync + std::fmt::Debug + 'static,
8189{
8190 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search::SearchError, R>) -> Self {
8191 match err {
8192 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8193 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8194 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8195 source: err.into(),
8196 }),
8197 }
8198 }
8199}
8200impl From<crate::operation::search::SearchError> for Error {
8201 fn from(err: crate::operation::search::SearchError) -> Self {
8202 match err {
8203 crate::operation::search::SearchError::Unhandled(inner) => Error::Unhandled(inner),
8204 }
8205 }
8206}
8207impl<R>
8208 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError, R>>
8209 for Error
8210where
8211 R: Send + Sync + std::fmt::Debug + 'static,
8212{
8213 fn from(
8214 err: ::aws_smithy_runtime_api::client::result::SdkError<
8215 crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError,
8216 R,
8217 >,
8218 ) -> Self {
8219 match err {
8220 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8221 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8222 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8223 source: err.into(),
8224 }),
8225 }
8226 }
8227}
8228impl From<crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError> for Error {
8229 fn from(err: crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError) -> Self {
8230 match err {
8231 crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError::ResourceLimitExceeded(inner) => {
8232 Error::ResourceLimitExceeded(inner)
8233 }
8234 crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
8235 }
8236 }
8237}
8238impl<R>
8239 From<
8240 ::aws_smithy_runtime_api::client::result::SdkError<
8241 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError,
8242 R,
8243 >,
8244 > for Error
8245where
8246 R: Send + Sync + std::fmt::Debug + 'static,
8247{
8248 fn from(
8249 err: ::aws_smithy_runtime_api::client::result::SdkError<
8250 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError,
8251 R,
8252 >,
8253 ) -> Self {
8254 match err {
8255 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8256 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8257 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8258 source: err.into(),
8259 }),
8260 }
8261 }
8262}
8263impl From<crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError> for Error {
8264 fn from(err: crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError) -> Self {
8265 match err {
8266 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::ConflictException(inner) => {
8267 Error::ConflictException(inner)
8268 }
8269 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::ResourceLimitExceeded(inner) => {
8270 Error::ResourceLimitExceeded(inner)
8271 }
8272 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::ResourceNotFound(inner) => {
8273 Error::ResourceNotFound(inner)
8274 }
8275 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::Unhandled(inner) => {
8276 Error::Unhandled(inner)
8277 }
8278 }
8279 }
8280}
8281impl<R>
8282 From<
8283 ::aws_smithy_runtime_api::client::result::SdkError<
8284 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError,
8285 R,
8286 >,
8287 > for Error
8288where
8289 R: Send + Sync + std::fmt::Debug + 'static,
8290{
8291 fn from(
8292 err: ::aws_smithy_runtime_api::client::result::SdkError<
8293 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError,
8294 R,
8295 >,
8296 ) -> Self {
8297 match err {
8298 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8299 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8300 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8301 source: err.into(),
8302 }),
8303 }
8304 }
8305}
8306impl From<crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError> for Error {
8307 fn from(err: crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError) -> Self {
8308 match err {
8309 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::ConflictException(inner) => {
8310 Error::ConflictException(inner)
8311 }
8312 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::ResourceLimitExceeded(inner) => {
8313 Error::ResourceLimitExceeded(inner)
8314 }
8315 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::ResourceNotFound(inner) => {
8316 Error::ResourceNotFound(inner)
8317 }
8318 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::Unhandled(inner) => {
8319 Error::Unhandled(inner)
8320 }
8321 }
8322 }
8323}
8324impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_cluster_health_check::StartClusterHealthCheckError, R>>
8325 for Error
8326where
8327 R: Send + Sync + std::fmt::Debug + 'static,
8328{
8329 fn from(
8330 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_cluster_health_check::StartClusterHealthCheckError, R>,
8331 ) -> Self {
8332 match err {
8333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8336 source: err.into(),
8337 }),
8338 }
8339 }
8340}
8341impl From<crate::operation::start_cluster_health_check::StartClusterHealthCheckError> for Error {
8342 fn from(err: crate::operation::start_cluster_health_check::StartClusterHealthCheckError) -> Self {
8343 match err {
8344 crate::operation::start_cluster_health_check::StartClusterHealthCheckError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8345 crate::operation::start_cluster_health_check::StartClusterHealthCheckError::Unhandled(inner) => Error::Unhandled(inner),
8346 }
8347 }
8348}
8349impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError, R>>
8350 for Error
8351where
8352 R: Send + Sync + std::fmt::Debug + 'static,
8353{
8354 fn from(
8355 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError, R>,
8356 ) -> Self {
8357 match err {
8358 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8359 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8360 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8361 source: err.into(),
8362 }),
8363 }
8364 }
8365}
8366impl From<crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError> for Error {
8367 fn from(err: crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError) -> Self {
8368 match err {
8369 crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
8370 }
8371 }
8372}
8373impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_inference_experiment::StartInferenceExperimentError, R>>
8374 for Error
8375where
8376 R: Send + Sync + std::fmt::Debug + 'static,
8377{
8378 fn from(
8379 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_inference_experiment::StartInferenceExperimentError, R>,
8380 ) -> Self {
8381 match err {
8382 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8383 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8384 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8385 source: err.into(),
8386 }),
8387 }
8388 }
8389}
8390impl From<crate::operation::start_inference_experiment::StartInferenceExperimentError> for Error {
8391 fn from(err: crate::operation::start_inference_experiment::StartInferenceExperimentError) -> Self {
8392 match err {
8393 crate::operation::start_inference_experiment::StartInferenceExperimentError::ConflictException(inner) => Error::ConflictException(inner),
8394 crate::operation::start_inference_experiment::StartInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8395 crate::operation::start_inference_experiment::StartInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
8396 }
8397 }
8398}
8399impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError, R>>
8400 for Error
8401where
8402 R: Send + Sync + std::fmt::Debug + 'static,
8403{
8404 fn from(
8405 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError, R>,
8406 ) -> Self {
8407 match err {
8408 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8409 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8410 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8411 source: err.into(),
8412 }),
8413 }
8414 }
8415}
8416impl From<crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError> for Error {
8417 fn from(err: crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError) -> Self {
8418 match err {
8419 crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError::ConflictException(inner) => {
8420 Error::ConflictException(inner)
8421 }
8422 crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8423 crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
8424 }
8425 }
8426}
8427impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_monitoring_schedule::StartMonitoringScheduleError, R>>
8428 for Error
8429where
8430 R: Send + Sync + std::fmt::Debug + 'static,
8431{
8432 fn from(
8433 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_monitoring_schedule::StartMonitoringScheduleError, R>,
8434 ) -> Self {
8435 match err {
8436 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8437 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8438 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8439 source: err.into(),
8440 }),
8441 }
8442 }
8443}
8444impl From<crate::operation::start_monitoring_schedule::StartMonitoringScheduleError> for Error {
8445 fn from(err: crate::operation::start_monitoring_schedule::StartMonitoringScheduleError) -> Self {
8446 match err {
8447 crate::operation::start_monitoring_schedule::StartMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8448 crate::operation::start_monitoring_schedule::StartMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
8449 }
8450 }
8451}
8452impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_notebook_instance::StartNotebookInstanceError, R>> for Error
8453where
8454 R: Send + Sync + std::fmt::Debug + 'static,
8455{
8456 fn from(
8457 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_notebook_instance::StartNotebookInstanceError, R>,
8458 ) -> Self {
8459 match err {
8460 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8461 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8462 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8463 source: err.into(),
8464 }),
8465 }
8466 }
8467}
8468impl From<crate::operation::start_notebook_instance::StartNotebookInstanceError> for Error {
8469 fn from(err: crate::operation::start_notebook_instance::StartNotebookInstanceError) -> Self {
8470 match err {
8471 crate::operation::start_notebook_instance::StartNotebookInstanceError::ResourceLimitExceeded(inner) => {
8472 Error::ResourceLimitExceeded(inner)
8473 }
8474 crate::operation::start_notebook_instance::StartNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
8475 }
8476 }
8477}
8478impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pipeline_execution::StartPipelineExecutionError, R>> for Error
8479where
8480 R: Send + Sync + std::fmt::Debug + 'static,
8481{
8482 fn from(
8483 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pipeline_execution::StartPipelineExecutionError, R>,
8484 ) -> Self {
8485 match err {
8486 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8487 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8488 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8489 source: err.into(),
8490 }),
8491 }
8492 }
8493}
8494impl From<crate::operation::start_pipeline_execution::StartPipelineExecutionError> for Error {
8495 fn from(err: crate::operation::start_pipeline_execution::StartPipelineExecutionError) -> Self {
8496 match err {
8497 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
8498 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ResourceLimitExceeded(inner) => {
8499 Error::ResourceLimitExceeded(inner)
8500 }
8501 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8502 crate::operation::start_pipeline_execution::StartPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
8503 }
8504 }
8505}
8506impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_session::StartSessionError, R>> for Error
8507where
8508 R: Send + Sync + std::fmt::Debug + 'static,
8509{
8510 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_session::StartSessionError, R>) -> Self {
8511 match err {
8512 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8513 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8514 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8515 source: err.into(),
8516 }),
8517 }
8518 }
8519}
8520impl From<crate::operation::start_session::StartSessionError> for Error {
8521 fn from(err: crate::operation::start_session::StartSessionError) -> Self {
8522 match err {
8523 crate::operation::start_session::StartSessionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8524 crate::operation::start_session::StartSessionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8525 crate::operation::start_session::StartSessionError::Unhandled(inner) => Error::Unhandled(inner),
8526 }
8527 }
8528}
8529impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_ai_benchmark_job::StopAIBenchmarkJobError, R>> for Error
8530where
8531 R: Send + Sync + std::fmt::Debug + 'static,
8532{
8533 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_ai_benchmark_job::StopAIBenchmarkJobError, R>) -> Self {
8534 match err {
8535 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8536 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8537 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8538 source: err.into(),
8539 }),
8540 }
8541 }
8542}
8543impl From<crate::operation::stop_ai_benchmark_job::StopAIBenchmarkJobError> for Error {
8544 fn from(err: crate::operation::stop_ai_benchmark_job::StopAIBenchmarkJobError) -> Self {
8545 match err {
8546 crate::operation::stop_ai_benchmark_job::StopAIBenchmarkJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8547 crate::operation::stop_ai_benchmark_job::StopAIBenchmarkJobError::Unhandled(inner) => Error::Unhandled(inner),
8548 }
8549 }
8550}
8551impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_ai_recommendation_job::StopAIRecommendationJobError, R>>
8552 for Error
8553where
8554 R: Send + Sync + std::fmt::Debug + 'static,
8555{
8556 fn from(
8557 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_ai_recommendation_job::StopAIRecommendationJobError, R>,
8558 ) -> Self {
8559 match err {
8560 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8561 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8562 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8563 source: err.into(),
8564 }),
8565 }
8566 }
8567}
8568impl From<crate::operation::stop_ai_recommendation_job::StopAIRecommendationJobError> for Error {
8569 fn from(err: crate::operation::stop_ai_recommendation_job::StopAIRecommendationJobError) -> Self {
8570 match err {
8571 crate::operation::stop_ai_recommendation_job::StopAIRecommendationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8572 crate::operation::stop_ai_recommendation_job::StopAIRecommendationJobError::Unhandled(inner) => Error::Unhandled(inner),
8573 }
8574 }
8575}
8576impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_auto_ml_job::StopAutoMLJobError, R>> for Error
8577where
8578 R: Send + Sync + std::fmt::Debug + 'static,
8579{
8580 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_auto_ml_job::StopAutoMLJobError, R>) -> Self {
8581 match err {
8582 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8583 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8584 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8585 source: err.into(),
8586 }),
8587 }
8588 }
8589}
8590impl From<crate::operation::stop_auto_ml_job::StopAutoMLJobError> for Error {
8591 fn from(err: crate::operation::stop_auto_ml_job::StopAutoMLJobError) -> Self {
8592 match err {
8593 crate::operation::stop_auto_ml_job::StopAutoMLJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8594 crate::operation::stop_auto_ml_job::StopAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
8595 }
8596 }
8597}
8598impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_compilation_job::StopCompilationJobError, R>> for Error
8599where
8600 R: Send + Sync + std::fmt::Debug + 'static,
8601{
8602 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_compilation_job::StopCompilationJobError, R>) -> Self {
8603 match err {
8604 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8605 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8606 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8607 source: err.into(),
8608 }),
8609 }
8610 }
8611}
8612impl From<crate::operation::stop_compilation_job::StopCompilationJobError> for Error {
8613 fn from(err: crate::operation::stop_compilation_job::StopCompilationJobError) -> Self {
8614 match err {
8615 crate::operation::stop_compilation_job::StopCompilationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8616 crate::operation::stop_compilation_job::StopCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
8617 }
8618 }
8619}
8620impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError, R>>
8621 for Error
8622where
8623 R: Send + Sync + std::fmt::Debug + 'static,
8624{
8625 fn from(
8626 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError, R>,
8627 ) -> Self {
8628 match err {
8629 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8630 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8631 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8632 source: err.into(),
8633 }),
8634 }
8635 }
8636}
8637impl From<crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError> for Error {
8638 fn from(err: crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError) -> Self {
8639 match err {
8640 crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
8641 }
8642 }
8643}
8644impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError, R>> for Error
8645where
8646 R: Send + Sync + std::fmt::Debug + 'static,
8647{
8648 fn from(
8649 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError, R>,
8650 ) -> Self {
8651 match err {
8652 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8653 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8654 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8655 source: err.into(),
8656 }),
8657 }
8658 }
8659}
8660impl From<crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError> for Error {
8661 fn from(err: crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError) -> Self {
8662 match err {
8663 crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError::Unhandled(inner) => Error::Unhandled(inner),
8664 }
8665 }
8666}
8667impl<R>
8668 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError, R>>
8669 for Error
8670where
8671 R: Send + Sync + std::fmt::Debug + 'static,
8672{
8673 fn from(
8674 err: ::aws_smithy_runtime_api::client::result::SdkError<
8675 crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError,
8676 R,
8677 >,
8678 ) -> Self {
8679 match err {
8680 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8681 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8682 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8683 source: err.into(),
8684 }),
8685 }
8686 }
8687}
8688impl From<crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError> for Error {
8689 fn from(err: crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError) -> Self {
8690 match err {
8691 crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError::ResourceNotFound(inner) => {
8692 Error::ResourceNotFound(inner)
8693 }
8694 crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
8695 }
8696 }
8697}
8698impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_inference_experiment::StopInferenceExperimentError, R>>
8699 for Error
8700where
8701 R: Send + Sync + std::fmt::Debug + 'static,
8702{
8703 fn from(
8704 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_inference_experiment::StopInferenceExperimentError, R>,
8705 ) -> Self {
8706 match err {
8707 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8708 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8709 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8710 source: err.into(),
8711 }),
8712 }
8713 }
8714}
8715impl From<crate::operation::stop_inference_experiment::StopInferenceExperimentError> for Error {
8716 fn from(err: crate::operation::stop_inference_experiment::StopInferenceExperimentError) -> Self {
8717 match err {
8718 crate::operation::stop_inference_experiment::StopInferenceExperimentError::ConflictException(inner) => Error::ConflictException(inner),
8719 crate::operation::stop_inference_experiment::StopInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8720 crate::operation::stop_inference_experiment::StopInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
8721 }
8722 }
8723}
8724impl<R>
8725 From<
8726 ::aws_smithy_runtime_api::client::result::SdkError<
8727 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError,
8728 R,
8729 >,
8730 > for Error
8731where
8732 R: Send + Sync + std::fmt::Debug + 'static,
8733{
8734 fn from(
8735 err: ::aws_smithy_runtime_api::client::result::SdkError<
8736 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError,
8737 R,
8738 >,
8739 ) -> Self {
8740 match err {
8741 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8742 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8743 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8744 source: err.into(),
8745 }),
8746 }
8747 }
8748}
8749impl From<crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError> for Error {
8750 fn from(err: crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError) -> Self {
8751 match err {
8752 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError::ResourceNotFound(inner) => {
8753 Error::ResourceNotFound(inner)
8754 }
8755 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError::Unhandled(inner) => Error::Unhandled(inner),
8756 }
8757 }
8758}
8759impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_job::StopJobError, R>> for Error
8760where
8761 R: Send + Sync + std::fmt::Debug + 'static,
8762{
8763 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_job::StopJobError, R>) -> Self {
8764 match err {
8765 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8766 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8767 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8768 source: err.into(),
8769 }),
8770 }
8771 }
8772}
8773impl From<crate::operation::stop_job::StopJobError> for Error {
8774 fn from(err: crate::operation::stop_job::StopJobError) -> Self {
8775 match err {
8776 crate::operation::stop_job::StopJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8777 crate::operation::stop_job::StopJobError::Unhandled(inner) => Error::Unhandled(inner),
8778 }
8779 }
8780}
8781impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_labeling_job::StopLabelingJobError, R>> for Error
8782where
8783 R: Send + Sync + std::fmt::Debug + 'static,
8784{
8785 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_labeling_job::StopLabelingJobError, R>) -> Self {
8786 match err {
8787 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8788 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8789 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8790 source: err.into(),
8791 }),
8792 }
8793 }
8794}
8795impl From<crate::operation::stop_labeling_job::StopLabelingJobError> for Error {
8796 fn from(err: crate::operation::stop_labeling_job::StopLabelingJobError) -> Self {
8797 match err {
8798 crate::operation::stop_labeling_job::StopLabelingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8799 crate::operation::stop_labeling_job::StopLabelingJobError::Unhandled(inner) => Error::Unhandled(inner),
8800 }
8801 }
8802}
8803impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError, R>>
8804 for Error
8805where
8806 R: Send + Sync + std::fmt::Debug + 'static,
8807{
8808 fn from(
8809 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError, R>,
8810 ) -> Self {
8811 match err {
8812 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8813 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8814 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8815 source: err.into(),
8816 }),
8817 }
8818 }
8819}
8820impl From<crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError> for Error {
8821 fn from(err: crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError) -> Self {
8822 match err {
8823 crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError::ConflictException(inner) => Error::ConflictException(inner),
8824 crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8825 crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
8826 }
8827 }
8828}
8829impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError, R>> for Error
8830where
8831 R: Send + Sync + std::fmt::Debug + 'static,
8832{
8833 fn from(
8834 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError, R>,
8835 ) -> Self {
8836 match err {
8837 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8838 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8839 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8840 source: err.into(),
8841 }),
8842 }
8843 }
8844}
8845impl From<crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError> for Error {
8846 fn from(err: crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError) -> Self {
8847 match err {
8848 crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8849 crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
8850 }
8851 }
8852}
8853impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_notebook_instance::StopNotebookInstanceError, R>> for Error
8854where
8855 R: Send + Sync + std::fmt::Debug + 'static,
8856{
8857 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_notebook_instance::StopNotebookInstanceError, R>) -> Self {
8858 match err {
8859 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8860 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8861 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8862 source: err.into(),
8863 }),
8864 }
8865 }
8866}
8867impl From<crate::operation::stop_notebook_instance::StopNotebookInstanceError> for Error {
8868 fn from(err: crate::operation::stop_notebook_instance::StopNotebookInstanceError) -> Self {
8869 match err {
8870 crate::operation::stop_notebook_instance::StopNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
8871 }
8872 }
8873}
8874impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_optimization_job::StopOptimizationJobError, R>> for Error
8875where
8876 R: Send + Sync + std::fmt::Debug + 'static,
8877{
8878 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_optimization_job::StopOptimizationJobError, R>) -> Self {
8879 match err {
8880 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8881 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8882 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8883 source: err.into(),
8884 }),
8885 }
8886 }
8887}
8888impl From<crate::operation::stop_optimization_job::StopOptimizationJobError> for Error {
8889 fn from(err: crate::operation::stop_optimization_job::StopOptimizationJobError) -> Self {
8890 match err {
8891 crate::operation::stop_optimization_job::StopOptimizationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8892 crate::operation::stop_optimization_job::StopOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
8893 }
8894 }
8895}
8896impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_pipeline_execution::StopPipelineExecutionError, R>> for Error
8897where
8898 R: Send + Sync + std::fmt::Debug + 'static,
8899{
8900 fn from(
8901 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_pipeline_execution::StopPipelineExecutionError, R>,
8902 ) -> Self {
8903 match err {
8904 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8905 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8906 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8907 source: err.into(),
8908 }),
8909 }
8910 }
8911}
8912impl From<crate::operation::stop_pipeline_execution::StopPipelineExecutionError> for Error {
8913 fn from(err: crate::operation::stop_pipeline_execution::StopPipelineExecutionError) -> Self {
8914 match err {
8915 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
8916 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8917 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
8918 }
8919 }
8920}
8921impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_processing_job::StopProcessingJobError, R>> for Error
8922where
8923 R: Send + Sync + std::fmt::Debug + 'static,
8924{
8925 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_processing_job::StopProcessingJobError, R>) -> Self {
8926 match err {
8927 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8928 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8929 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8930 source: err.into(),
8931 }),
8932 }
8933 }
8934}
8935impl From<crate::operation::stop_processing_job::StopProcessingJobError> for Error {
8936 fn from(err: crate::operation::stop_processing_job::StopProcessingJobError) -> Self {
8937 match err {
8938 crate::operation::stop_processing_job::StopProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8939 crate::operation::stop_processing_job::StopProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
8940 }
8941 }
8942}
8943impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_training_job::StopTrainingJobError, R>> for Error
8944where
8945 R: Send + Sync + std::fmt::Debug + 'static,
8946{
8947 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_training_job::StopTrainingJobError, R>) -> Self {
8948 match err {
8949 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8950 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8951 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8952 source: err.into(),
8953 }),
8954 }
8955 }
8956}
8957impl From<crate::operation::stop_training_job::StopTrainingJobError> for Error {
8958 fn from(err: crate::operation::stop_training_job::StopTrainingJobError) -> Self {
8959 match err {
8960 crate::operation::stop_training_job::StopTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8961 crate::operation::stop_training_job::StopTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
8962 }
8963 }
8964}
8965impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_transform_job::StopTransformJobError, R>> for Error
8966where
8967 R: Send + Sync + std::fmt::Debug + 'static,
8968{
8969 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_transform_job::StopTransformJobError, R>) -> Self {
8970 match err {
8971 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8972 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8973 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8974 source: err.into(),
8975 }),
8976 }
8977 }
8978}
8979impl From<crate::operation::stop_transform_job::StopTransformJobError> for Error {
8980 fn from(err: crate::operation::stop_transform_job::StopTransformJobError) -> Self {
8981 match err {
8982 crate::operation::stop_transform_job::StopTransformJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8983 crate::operation::stop_transform_job::StopTransformJobError::Unhandled(inner) => Error::Unhandled(inner),
8984 }
8985 }
8986}
8987impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_action::UpdateActionError, R>> for Error
8988where
8989 R: Send + Sync + std::fmt::Debug + 'static,
8990{
8991 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_action::UpdateActionError, R>) -> Self {
8992 match err {
8993 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8994 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8995 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8996 source: err.into(),
8997 }),
8998 }
8999 }
9000}
9001impl From<crate::operation::update_action::UpdateActionError> for Error {
9002 fn from(err: crate::operation::update_action::UpdateActionError) -> Self {
9003 match err {
9004 crate::operation::update_action::UpdateActionError::ConflictException(inner) => Error::ConflictException(inner),
9005 crate::operation::update_action::UpdateActionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9006 crate::operation::update_action::UpdateActionError::Unhandled(inner) => Error::Unhandled(inner),
9007 }
9008 }
9009}
9010impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_image_config::UpdateAppImageConfigError, R>> for Error
9011where
9012 R: Send + Sync + std::fmt::Debug + 'static,
9013{
9014 fn from(
9015 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_image_config::UpdateAppImageConfigError, R>,
9016 ) -> Self {
9017 match err {
9018 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9019 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9020 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9021 source: err.into(),
9022 }),
9023 }
9024 }
9025}
9026impl From<crate::operation::update_app_image_config::UpdateAppImageConfigError> for Error {
9027 fn from(err: crate::operation::update_app_image_config::UpdateAppImageConfigError) -> Self {
9028 match err {
9029 crate::operation::update_app_image_config::UpdateAppImageConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9030 crate::operation::update_app_image_config::UpdateAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
9031 }
9032 }
9033}
9034impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_artifact::UpdateArtifactError, R>> for Error
9035where
9036 R: Send + Sync + std::fmt::Debug + 'static,
9037{
9038 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_artifact::UpdateArtifactError, R>) -> Self {
9039 match err {
9040 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9041 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9042 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9043 source: err.into(),
9044 }),
9045 }
9046 }
9047}
9048impl From<crate::operation::update_artifact::UpdateArtifactError> for Error {
9049 fn from(err: crate::operation::update_artifact::UpdateArtifactError) -> Self {
9050 match err {
9051 crate::operation::update_artifact::UpdateArtifactError::ConflictException(inner) => Error::ConflictException(inner),
9052 crate::operation::update_artifact::UpdateArtifactError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9053 crate::operation::update_artifact::UpdateArtifactError::Unhandled(inner) => Error::Unhandled(inner),
9054 }
9055 }
9056}
9057impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster::UpdateClusterError, R>> for Error
9058where
9059 R: Send + Sync + std::fmt::Debug + 'static,
9060{
9061 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster::UpdateClusterError, R>) -> Self {
9062 match err {
9063 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9064 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9065 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9066 source: err.into(),
9067 }),
9068 }
9069 }
9070}
9071impl From<crate::operation::update_cluster::UpdateClusterError> for Error {
9072 fn from(err: crate::operation::update_cluster::UpdateClusterError) -> Self {
9073 match err {
9074 crate::operation::update_cluster::UpdateClusterError::ConflictException(inner) => Error::ConflictException(inner),
9075 crate::operation::update_cluster::UpdateClusterError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9076 crate::operation::update_cluster::UpdateClusterError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9077 crate::operation::update_cluster::UpdateClusterError::Unhandled(inner) => Error::Unhandled(inner),
9078 }
9079 }
9080}
9081impl<R>
9082 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError, R>>
9083 for Error
9084where
9085 R: Send + Sync + std::fmt::Debug + 'static,
9086{
9087 fn from(
9088 err: ::aws_smithy_runtime_api::client::result::SdkError<
9089 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError,
9090 R,
9091 >,
9092 ) -> Self {
9093 match err {
9094 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9095 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9096 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9097 source: err.into(),
9098 }),
9099 }
9100 }
9101}
9102impl From<crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError> for Error {
9103 fn from(err: crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError) -> Self {
9104 match err {
9105 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::ConflictException(inner) => {
9106 Error::ConflictException(inner)
9107 }
9108 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::ResourceLimitExceeded(inner) => {
9109 Error::ResourceLimitExceeded(inner)
9110 }
9111 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::ResourceNotFound(inner) => {
9112 Error::ResourceNotFound(inner)
9113 }
9114 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
9115 }
9116 }
9117}
9118impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_software::UpdateClusterSoftwareError, R>> for Error
9119where
9120 R: Send + Sync + std::fmt::Debug + 'static,
9121{
9122 fn from(
9123 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_software::UpdateClusterSoftwareError, R>,
9124 ) -> Self {
9125 match err {
9126 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9127 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9128 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9129 source: err.into(),
9130 }),
9131 }
9132 }
9133}
9134impl From<crate::operation::update_cluster_software::UpdateClusterSoftwareError> for Error {
9135 fn from(err: crate::operation::update_cluster_software::UpdateClusterSoftwareError) -> Self {
9136 match err {
9137 crate::operation::update_cluster_software::UpdateClusterSoftwareError::ConflictException(inner) => Error::ConflictException(inner),
9138 crate::operation::update_cluster_software::UpdateClusterSoftwareError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9139 crate::operation::update_cluster_software::UpdateClusterSoftwareError::Unhandled(inner) => Error::Unhandled(inner),
9140 }
9141 }
9142}
9143impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_code_repository::UpdateCodeRepositoryError, R>> for Error
9144where
9145 R: Send + Sync + std::fmt::Debug + 'static,
9146{
9147 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_code_repository::UpdateCodeRepositoryError, R>) -> Self {
9148 match err {
9149 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9150 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9151 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9152 source: err.into(),
9153 }),
9154 }
9155 }
9156}
9157impl From<crate::operation::update_code_repository::UpdateCodeRepositoryError> for Error {
9158 fn from(err: crate::operation::update_code_repository::UpdateCodeRepositoryError) -> Self {
9159 match err {
9160 crate::operation::update_code_repository::UpdateCodeRepositoryError::ConflictException(inner) => Error::ConflictException(inner),
9161 crate::operation::update_code_repository::UpdateCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
9162 }
9163 }
9164}
9165impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_compute_quota::UpdateComputeQuotaError, R>> for Error
9166where
9167 R: Send + Sync + std::fmt::Debug + 'static,
9168{
9169 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_compute_quota::UpdateComputeQuotaError, R>) -> Self {
9170 match err {
9171 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9172 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9173 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9174 source: err.into(),
9175 }),
9176 }
9177 }
9178}
9179impl From<crate::operation::update_compute_quota::UpdateComputeQuotaError> for Error {
9180 fn from(err: crate::operation::update_compute_quota::UpdateComputeQuotaError) -> Self {
9181 match err {
9182 crate::operation::update_compute_quota::UpdateComputeQuotaError::ConflictException(inner) => Error::ConflictException(inner),
9183 crate::operation::update_compute_quota::UpdateComputeQuotaError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9184 crate::operation::update_compute_quota::UpdateComputeQuotaError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9185 crate::operation::update_compute_quota::UpdateComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
9186 }
9187 }
9188}
9189impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_context::UpdateContextError, R>> for Error
9190where
9191 R: Send + Sync + std::fmt::Debug + 'static,
9192{
9193 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_context::UpdateContextError, R>) -> Self {
9194 match err {
9195 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9196 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9197 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9198 source: err.into(),
9199 }),
9200 }
9201 }
9202}
9203impl From<crate::operation::update_context::UpdateContextError> for Error {
9204 fn from(err: crate::operation::update_context::UpdateContextError) -> Self {
9205 match err {
9206 crate::operation::update_context::UpdateContextError::ConflictException(inner) => Error::ConflictException(inner),
9207 crate::operation::update_context::UpdateContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9208 crate::operation::update_context::UpdateContextError::Unhandled(inner) => Error::Unhandled(inner),
9209 }
9210 }
9211}
9212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device_fleet::UpdateDeviceFleetError, R>> for Error
9213where
9214 R: Send + Sync + std::fmt::Debug + 'static,
9215{
9216 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device_fleet::UpdateDeviceFleetError, R>) -> Self {
9217 match err {
9218 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9219 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9220 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9221 source: err.into(),
9222 }),
9223 }
9224 }
9225}
9226impl From<crate::operation::update_device_fleet::UpdateDeviceFleetError> for Error {
9227 fn from(err: crate::operation::update_device_fleet::UpdateDeviceFleetError) -> Self {
9228 match err {
9229 crate::operation::update_device_fleet::UpdateDeviceFleetError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9230 crate::operation::update_device_fleet::UpdateDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
9231 }
9232 }
9233}
9234impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_devices::UpdateDevicesError, R>> for Error
9235where
9236 R: Send + Sync + std::fmt::Debug + 'static,
9237{
9238 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_devices::UpdateDevicesError, R>) -> Self {
9239 match err {
9240 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9241 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9242 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9243 source: err.into(),
9244 }),
9245 }
9246 }
9247}
9248impl From<crate::operation::update_devices::UpdateDevicesError> for Error {
9249 fn from(err: crate::operation::update_devices::UpdateDevicesError) -> Self {
9250 match err {
9251 crate::operation::update_devices::UpdateDevicesError::Unhandled(inner) => Error::Unhandled(inner),
9252 }
9253 }
9254}
9255impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain::UpdateDomainError, R>> for Error
9256where
9257 R: Send + Sync + std::fmt::Debug + 'static,
9258{
9259 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain::UpdateDomainError, R>) -> Self {
9260 match err {
9261 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9262 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9263 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9264 source: err.into(),
9265 }),
9266 }
9267 }
9268}
9269impl From<crate::operation::update_domain::UpdateDomainError> for Error {
9270 fn from(err: crate::operation::update_domain::UpdateDomainError) -> Self {
9271 match err {
9272 crate::operation::update_domain::UpdateDomainError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9273 crate::operation::update_domain::UpdateDomainError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9274 crate::operation::update_domain::UpdateDomainError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9275 crate::operation::update_domain::UpdateDomainError::Unhandled(inner) => Error::Unhandled(inner),
9276 }
9277 }
9278}
9279impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoint::UpdateEndpointError, R>> for Error
9280where
9281 R: Send + Sync + std::fmt::Debug + 'static,
9282{
9283 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoint::UpdateEndpointError, R>) -> Self {
9284 match err {
9285 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9286 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9287 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9288 source: err.into(),
9289 }),
9290 }
9291 }
9292}
9293impl From<crate::operation::update_endpoint::UpdateEndpointError> for Error {
9294 fn from(err: crate::operation::update_endpoint::UpdateEndpointError) -> Self {
9295 match err {
9296 crate::operation::update_endpoint::UpdateEndpointError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9297 crate::operation::update_endpoint::UpdateEndpointError::Unhandled(inner) => Error::Unhandled(inner),
9298 }
9299 }
9300}
9301impl<R>
9302 From<
9303 ::aws_smithy_runtime_api::client::result::SdkError<
9304 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError,
9305 R,
9306 >,
9307 > for Error
9308where
9309 R: Send + Sync + std::fmt::Debug + 'static,
9310{
9311 fn from(
9312 err: ::aws_smithy_runtime_api::client::result::SdkError<
9313 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError,
9314 R,
9315 >,
9316 ) -> Self {
9317 match err {
9318 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9319 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9320 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9321 source: err.into(),
9322 }),
9323 }
9324 }
9325}
9326impl From<crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError> for Error {
9327 fn from(err: crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError) -> Self {
9328 match err {
9329 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError::ResourceLimitExceeded(inner) => {
9330 Error::ResourceLimitExceeded(inner)
9331 }
9332 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError::Unhandled(inner) => {
9333 Error::Unhandled(inner)
9334 }
9335 }
9336 }
9337}
9338impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_experiment::UpdateExperimentError, R>> for Error
9339where
9340 R: Send + Sync + std::fmt::Debug + 'static,
9341{
9342 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_experiment::UpdateExperimentError, R>) -> Self {
9343 match err {
9344 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9345 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9346 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9347 source: err.into(),
9348 }),
9349 }
9350 }
9351}
9352impl From<crate::operation::update_experiment::UpdateExperimentError> for Error {
9353 fn from(err: crate::operation::update_experiment::UpdateExperimentError) -> Self {
9354 match err {
9355 crate::operation::update_experiment::UpdateExperimentError::ConflictException(inner) => Error::ConflictException(inner),
9356 crate::operation::update_experiment::UpdateExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9357 crate::operation::update_experiment::UpdateExperimentError::Unhandled(inner) => Error::Unhandled(inner),
9358 }
9359 }
9360}
9361impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_group::UpdateFeatureGroupError, R>> for Error
9362where
9363 R: Send + Sync + std::fmt::Debug + 'static,
9364{
9365 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_group::UpdateFeatureGroupError, R>) -> Self {
9366 match err {
9367 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9368 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9369 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9370 source: err.into(),
9371 }),
9372 }
9373 }
9374}
9375impl From<crate::operation::update_feature_group::UpdateFeatureGroupError> for Error {
9376 fn from(err: crate::operation::update_feature_group::UpdateFeatureGroupError) -> Self {
9377 match err {
9378 crate::operation::update_feature_group::UpdateFeatureGroupError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9379 crate::operation::update_feature_group::UpdateFeatureGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9380 crate::operation::update_feature_group::UpdateFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
9381 }
9382 }
9383}
9384impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_metadata::UpdateFeatureMetadataError, R>> for Error
9385where
9386 R: Send + Sync + std::fmt::Debug + 'static,
9387{
9388 fn from(
9389 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_metadata::UpdateFeatureMetadataError, R>,
9390 ) -> Self {
9391 match err {
9392 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9393 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9394 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9395 source: err.into(),
9396 }),
9397 }
9398 }
9399}
9400impl From<crate::operation::update_feature_metadata::UpdateFeatureMetadataError> for Error {
9401 fn from(err: crate::operation::update_feature_metadata::UpdateFeatureMetadataError) -> Self {
9402 match err {
9403 crate::operation::update_feature_metadata::UpdateFeatureMetadataError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9404 crate::operation::update_feature_metadata::UpdateFeatureMetadataError::Unhandled(inner) => Error::Unhandled(inner),
9405 }
9406 }
9407}
9408impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub::UpdateHubError, R>> for Error
9409where
9410 R: Send + Sync + std::fmt::Debug + 'static,
9411{
9412 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub::UpdateHubError, R>) -> Self {
9413 match err {
9414 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9415 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9416 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9417 source: err.into(),
9418 }),
9419 }
9420 }
9421}
9422impl From<crate::operation::update_hub::UpdateHubError> for Error {
9423 fn from(err: crate::operation::update_hub::UpdateHubError) -> Self {
9424 match err {
9425 crate::operation::update_hub::UpdateHubError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9426 crate::operation::update_hub::UpdateHubError::Unhandled(inner) => Error::Unhandled(inner),
9427 }
9428 }
9429}
9430impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content::UpdateHubContentError, R>> for Error
9431where
9432 R: Send + Sync + std::fmt::Debug + 'static,
9433{
9434 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content::UpdateHubContentError, R>) -> Self {
9435 match err {
9436 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9437 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9438 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9439 source: err.into(),
9440 }),
9441 }
9442 }
9443}
9444impl From<crate::operation::update_hub_content::UpdateHubContentError> for Error {
9445 fn from(err: crate::operation::update_hub_content::UpdateHubContentError) -> Self {
9446 match err {
9447 crate::operation::update_hub_content::UpdateHubContentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9448 crate::operation::update_hub_content::UpdateHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9449 crate::operation::update_hub_content::UpdateHubContentError::Unhandled(inner) => Error::Unhandled(inner),
9450 }
9451 }
9452}
9453impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content_reference::UpdateHubContentReferenceError, R>>
9454 for Error
9455where
9456 R: Send + Sync + std::fmt::Debug + 'static,
9457{
9458 fn from(
9459 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content_reference::UpdateHubContentReferenceError, R>,
9460 ) -> 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_hub_content_reference::UpdateHubContentReferenceError> for Error {
9471 fn from(err: crate::operation::update_hub_content_reference::UpdateHubContentReferenceError) -> Self {
9472 match err {
9473 crate::operation::update_hub_content_reference::UpdateHubContentReferenceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9474 crate::operation::update_hub_content_reference::UpdateHubContentReferenceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9475 crate::operation::update_hub_content_reference::UpdateHubContentReferenceError::Unhandled(inner) => Error::Unhandled(inner),
9476 }
9477 }
9478}
9479impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image::UpdateImageError, R>> for Error
9480where
9481 R: Send + Sync + std::fmt::Debug + 'static,
9482{
9483 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image::UpdateImageError, R>) -> Self {
9484 match err {
9485 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9486 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9487 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9488 source: err.into(),
9489 }),
9490 }
9491 }
9492}
9493impl From<crate::operation::update_image::UpdateImageError> for Error {
9494 fn from(err: crate::operation::update_image::UpdateImageError) -> Self {
9495 match err {
9496 crate::operation::update_image::UpdateImageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9497 crate::operation::update_image::UpdateImageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9498 crate::operation::update_image::UpdateImageError::Unhandled(inner) => Error::Unhandled(inner),
9499 }
9500 }
9501}
9502impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image_version::UpdateImageVersionError, R>> for Error
9503where
9504 R: Send + Sync + std::fmt::Debug + 'static,
9505{
9506 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image_version::UpdateImageVersionError, R>) -> Self {
9507 match err {
9508 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9509 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9510 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9511 source: err.into(),
9512 }),
9513 }
9514 }
9515}
9516impl From<crate::operation::update_image_version::UpdateImageVersionError> for Error {
9517 fn from(err: crate::operation::update_image_version::UpdateImageVersionError) -> Self {
9518 match err {
9519 crate::operation::update_image_version::UpdateImageVersionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9520 crate::operation::update_image_version::UpdateImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9521 crate::operation::update_image_version::UpdateImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
9522 }
9523 }
9524}
9525impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_component::UpdateInferenceComponentError, R>>
9526 for Error
9527where
9528 R: Send + Sync + std::fmt::Debug + 'static,
9529{
9530 fn from(
9531 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_component::UpdateInferenceComponentError, R>,
9532 ) -> Self {
9533 match err {
9534 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9535 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9536 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9537 source: err.into(),
9538 }),
9539 }
9540 }
9541}
9542impl From<crate::operation::update_inference_component::UpdateInferenceComponentError> for Error {
9543 fn from(err: crate::operation::update_inference_component::UpdateInferenceComponentError) -> Self {
9544 match err {
9545 crate::operation::update_inference_component::UpdateInferenceComponentError::ResourceLimitExceeded(inner) => {
9546 Error::ResourceLimitExceeded(inner)
9547 }
9548 crate::operation::update_inference_component::UpdateInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
9549 }
9550 }
9551}
9552impl<R>
9553 From<
9554 ::aws_smithy_runtime_api::client::result::SdkError<
9555 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError,
9556 R,
9557 >,
9558 > for Error
9559where
9560 R: Send + Sync + std::fmt::Debug + 'static,
9561{
9562 fn from(
9563 err: ::aws_smithy_runtime_api::client::result::SdkError<
9564 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError,
9565 R,
9566 >,
9567 ) -> Self {
9568 match err {
9569 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9570 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9571 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9572 source: err.into(),
9573 }),
9574 }
9575 }
9576}
9577impl From<crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError> for Error {
9578 fn from(err: crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError) -> Self {
9579 match err {
9580 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError::ResourceLimitExceeded(inner) => {
9581 Error::ResourceLimitExceeded(inner)
9582 }
9583 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError::Unhandled(inner) => {
9584 Error::Unhandled(inner)
9585 }
9586 }
9587 }
9588}
9589impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_experiment::UpdateInferenceExperimentError, R>>
9590 for Error
9591where
9592 R: Send + Sync + std::fmt::Debug + 'static,
9593{
9594 fn from(
9595 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_experiment::UpdateInferenceExperimentError, R>,
9596 ) -> Self {
9597 match err {
9598 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9599 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9600 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9601 source: err.into(),
9602 }),
9603 }
9604 }
9605}
9606impl From<crate::operation::update_inference_experiment::UpdateInferenceExperimentError> for Error {
9607 fn from(err: crate::operation::update_inference_experiment::UpdateInferenceExperimentError) -> Self {
9608 match err {
9609 crate::operation::update_inference_experiment::UpdateInferenceExperimentError::ConflictException(inner) => {
9610 Error::ConflictException(inner)
9611 }
9612 crate::operation::update_inference_experiment::UpdateInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9613 crate::operation::update_inference_experiment::UpdateInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
9614 }
9615 }
9616}
9617impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_mlflow_app::UpdateMlflowAppError, R>> for Error
9618where
9619 R: Send + Sync + std::fmt::Debug + 'static,
9620{
9621 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_mlflow_app::UpdateMlflowAppError, R>) -> Self {
9622 match err {
9623 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9624 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9625 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9626 source: err.into(),
9627 }),
9628 }
9629 }
9630}
9631impl From<crate::operation::update_mlflow_app::UpdateMlflowAppError> for Error {
9632 fn from(err: crate::operation::update_mlflow_app::UpdateMlflowAppError) -> Self {
9633 match err {
9634 crate::operation::update_mlflow_app::UpdateMlflowAppError::ConflictException(inner) => Error::ConflictException(inner),
9635 crate::operation::update_mlflow_app::UpdateMlflowAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9636 crate::operation::update_mlflow_app::UpdateMlflowAppError::Unhandled(inner) => Error::Unhandled(inner),
9637 }
9638 }
9639}
9640impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError, R>>
9641 for Error
9642where
9643 R: Send + Sync + std::fmt::Debug + 'static,
9644{
9645 fn from(
9646 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError, R>,
9647 ) -> Self {
9648 match err {
9649 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9650 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9651 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9652 source: err.into(),
9653 }),
9654 }
9655 }
9656}
9657impl From<crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError> for Error {
9658 fn from(err: crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError) -> Self {
9659 match err {
9660 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::ConflictException(inner) => {
9661 Error::ConflictException(inner)
9662 }
9663 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::ResourceLimitExceeded(inner) => {
9664 Error::ResourceLimitExceeded(inner)
9665 }
9666 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::ResourceNotFound(inner) => {
9667 Error::ResourceNotFound(inner)
9668 }
9669 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
9670 }
9671 }
9672}
9673impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_card::UpdateModelCardError, R>> for Error
9674where
9675 R: Send + Sync + std::fmt::Debug + 'static,
9676{
9677 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_card::UpdateModelCardError, R>) -> Self {
9678 match err {
9679 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9680 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9681 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9682 source: err.into(),
9683 }),
9684 }
9685 }
9686}
9687impl From<crate::operation::update_model_card::UpdateModelCardError> for Error {
9688 fn from(err: crate::operation::update_model_card::UpdateModelCardError) -> Self {
9689 match err {
9690 crate::operation::update_model_card::UpdateModelCardError::ConflictException(inner) => Error::ConflictException(inner),
9691 crate::operation::update_model_card::UpdateModelCardError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9692 crate::operation::update_model_card::UpdateModelCardError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9693 crate::operation::update_model_card::UpdateModelCardError::Unhandled(inner) => Error::Unhandled(inner),
9694 }
9695 }
9696}
9697impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_package::UpdateModelPackageError, R>> for Error
9698where
9699 R: Send + Sync + std::fmt::Debug + 'static,
9700{
9701 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_package::UpdateModelPackageError, R>) -> Self {
9702 match err {
9703 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9704 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9705 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9706 source: err.into(),
9707 }),
9708 }
9709 }
9710}
9711impl From<crate::operation::update_model_package::UpdateModelPackageError> for Error {
9712 fn from(err: crate::operation::update_model_package::UpdateModelPackageError) -> Self {
9713 match err {
9714 crate::operation::update_model_package::UpdateModelPackageError::ConflictException(inner) => Error::ConflictException(inner),
9715 crate::operation::update_model_package::UpdateModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
9716 }
9717 }
9718}
9719impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_alert::UpdateMonitoringAlertError, R>> for Error
9720where
9721 R: Send + Sync + std::fmt::Debug + 'static,
9722{
9723 fn from(
9724 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_alert::UpdateMonitoringAlertError, R>,
9725 ) -> Self {
9726 match err {
9727 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9728 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9729 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9730 source: err.into(),
9731 }),
9732 }
9733 }
9734}
9735impl From<crate::operation::update_monitoring_alert::UpdateMonitoringAlertError> for Error {
9736 fn from(err: crate::operation::update_monitoring_alert::UpdateMonitoringAlertError) -> Self {
9737 match err {
9738 crate::operation::update_monitoring_alert::UpdateMonitoringAlertError::ResourceLimitExceeded(inner) => {
9739 Error::ResourceLimitExceeded(inner)
9740 }
9741 crate::operation::update_monitoring_alert::UpdateMonitoringAlertError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9742 crate::operation::update_monitoring_alert::UpdateMonitoringAlertError::Unhandled(inner) => Error::Unhandled(inner),
9743 }
9744 }
9745}
9746impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError, R>>
9747 for Error
9748where
9749 R: Send + Sync + std::fmt::Debug + 'static,
9750{
9751 fn from(
9752 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError, R>,
9753 ) -> Self {
9754 match err {
9755 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9756 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9757 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9758 source: err.into(),
9759 }),
9760 }
9761 }
9762}
9763impl From<crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError> for Error {
9764 fn from(err: crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError) -> Self {
9765 match err {
9766 crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError::ResourceLimitExceeded(inner) => {
9767 Error::ResourceLimitExceeded(inner)
9768 }
9769 crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9770 crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
9771 }
9772 }
9773}
9774impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notebook_instance::UpdateNotebookInstanceError, R>> for Error
9775where
9776 R: Send + Sync + std::fmt::Debug + 'static,
9777{
9778 fn from(
9779 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notebook_instance::UpdateNotebookInstanceError, R>,
9780 ) -> Self {
9781 match err {
9782 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9783 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9784 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9785 source: err.into(),
9786 }),
9787 }
9788 }
9789}
9790impl From<crate::operation::update_notebook_instance::UpdateNotebookInstanceError> for Error {
9791 fn from(err: crate::operation::update_notebook_instance::UpdateNotebookInstanceError) -> Self {
9792 match err {
9793 crate::operation::update_notebook_instance::UpdateNotebookInstanceError::ResourceLimitExceeded(inner) => {
9794 Error::ResourceLimitExceeded(inner)
9795 }
9796 crate::operation::update_notebook_instance::UpdateNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
9797 }
9798 }
9799}
9800impl<R>
9801 From<
9802 ::aws_smithy_runtime_api::client::result::SdkError<
9803 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError,
9804 R,
9805 >,
9806 > for Error
9807where
9808 R: Send + Sync + std::fmt::Debug + 'static,
9809{
9810 fn from(
9811 err: ::aws_smithy_runtime_api::client::result::SdkError<
9812 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError,
9813 R,
9814 >,
9815 ) -> Self {
9816 match err {
9817 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9818 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9819 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9820 source: err.into(),
9821 }),
9822 }
9823 }
9824}
9825impl From<crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError> for Error {
9826 fn from(err: crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError) -> Self {
9827 match err {
9828 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError::ResourceLimitExceeded(inner) => {
9829 Error::ResourceLimitExceeded(inner)
9830 }
9831 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
9832 Error::Unhandled(inner)
9833 }
9834 }
9835 }
9836}
9837impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_partner_app::UpdatePartnerAppError, R>> for Error
9838where
9839 R: Send + Sync + std::fmt::Debug + 'static,
9840{
9841 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_partner_app::UpdatePartnerAppError, R>) -> Self {
9842 match err {
9843 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9844 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9845 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9846 source: err.into(),
9847 }),
9848 }
9849 }
9850}
9851impl From<crate::operation::update_partner_app::UpdatePartnerAppError> for Error {
9852 fn from(err: crate::operation::update_partner_app::UpdatePartnerAppError) -> Self {
9853 match err {
9854 crate::operation::update_partner_app::UpdatePartnerAppError::ConflictException(inner) => Error::ConflictException(inner),
9855 crate::operation::update_partner_app::UpdatePartnerAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9856 crate::operation::update_partner_app::UpdatePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
9857 }
9858 }
9859}
9860impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline::UpdatePipelineError, R>> for Error
9861where
9862 R: Send + Sync + std::fmt::Debug + 'static,
9863{
9864 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline::UpdatePipelineError, R>) -> Self {
9865 match err {
9866 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9867 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9868 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9869 source: err.into(),
9870 }),
9871 }
9872 }
9873}
9874impl From<crate::operation::update_pipeline::UpdatePipelineError> for Error {
9875 fn from(err: crate::operation::update_pipeline::UpdatePipelineError) -> Self {
9876 match err {
9877 crate::operation::update_pipeline::UpdatePipelineError::ConflictException(inner) => Error::ConflictException(inner),
9878 crate::operation::update_pipeline::UpdatePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9879 crate::operation::update_pipeline::UpdatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
9880 }
9881 }
9882}
9883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_execution::UpdatePipelineExecutionError, R>>
9884 for Error
9885where
9886 R: Send + Sync + std::fmt::Debug + 'static,
9887{
9888 fn from(
9889 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_execution::UpdatePipelineExecutionError, R>,
9890 ) -> Self {
9891 match err {
9892 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9893 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9894 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9895 source: err.into(),
9896 }),
9897 }
9898 }
9899}
9900impl From<crate::operation::update_pipeline_execution::UpdatePipelineExecutionError> for Error {
9901 fn from(err: crate::operation::update_pipeline_execution::UpdatePipelineExecutionError) -> Self {
9902 match err {
9903 crate::operation::update_pipeline_execution::UpdatePipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
9904 crate::operation::update_pipeline_execution::UpdatePipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9905 crate::operation::update_pipeline_execution::UpdatePipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
9906 }
9907 }
9908}
9909impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_version::UpdatePipelineVersionError, R>> for Error
9910where
9911 R: Send + Sync + std::fmt::Debug + 'static,
9912{
9913 fn from(
9914 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_version::UpdatePipelineVersionError, R>,
9915 ) -> Self {
9916 match err {
9917 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9918 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9919 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9920 source: err.into(),
9921 }),
9922 }
9923 }
9924}
9925impl From<crate::operation::update_pipeline_version::UpdatePipelineVersionError> for Error {
9926 fn from(err: crate::operation::update_pipeline_version::UpdatePipelineVersionError) -> Self {
9927 match err {
9928 crate::operation::update_pipeline_version::UpdatePipelineVersionError::ConflictException(inner) => Error::ConflictException(inner),
9929 crate::operation::update_pipeline_version::UpdatePipelineVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9930 crate::operation::update_pipeline_version::UpdatePipelineVersionError::Unhandled(inner) => Error::Unhandled(inner),
9931 }
9932 }
9933}
9934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, 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_project::UpdateProjectError, 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_project::UpdateProjectError> for Error {
9949 fn from(err: crate::operation::update_project::UpdateProjectError) -> Self {
9950 match err {
9951 crate::operation::update_project::UpdateProjectError::ConflictException(inner) => Error::ConflictException(inner),
9952 crate::operation::update_project::UpdateProjectError::Unhandled(inner) => Error::Unhandled(inner),
9953 }
9954 }
9955}
9956impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_space::UpdateSpaceError, R>> for Error
9957where
9958 R: Send + Sync + std::fmt::Debug + 'static,
9959{
9960 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_space::UpdateSpaceError, R>) -> Self {
9961 match err {
9962 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9963 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9964 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9965 source: err.into(),
9966 }),
9967 }
9968 }
9969}
9970impl From<crate::operation::update_space::UpdateSpaceError> for Error {
9971 fn from(err: crate::operation::update_space::UpdateSpaceError) -> Self {
9972 match err {
9973 crate::operation::update_space::UpdateSpaceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9974 crate::operation::update_space::UpdateSpaceError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9975 crate::operation::update_space::UpdateSpaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9976 crate::operation::update_space::UpdateSpaceError::Unhandled(inner) => Error::Unhandled(inner),
9977 }
9978 }
9979}
9980impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_training_job::UpdateTrainingJobError, R>> for Error
9981where
9982 R: Send + Sync + std::fmt::Debug + 'static,
9983{
9984 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_training_job::UpdateTrainingJobError, R>) -> Self {
9985 match err {
9986 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9987 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9988 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9989 source: err.into(),
9990 }),
9991 }
9992 }
9993}
9994impl From<crate::operation::update_training_job::UpdateTrainingJobError> for Error {
9995 fn from(err: crate::operation::update_training_job::UpdateTrainingJobError) -> Self {
9996 match err {
9997 crate::operation::update_training_job::UpdateTrainingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9998 crate::operation::update_training_job::UpdateTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9999 crate::operation::update_training_job::UpdateTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
10000 }
10001 }
10002}
10003impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial::UpdateTrialError, R>> for Error
10004where
10005 R: Send + Sync + std::fmt::Debug + 'static,
10006{
10007 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial::UpdateTrialError, R>) -> Self {
10008 match err {
10009 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10010 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10011 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10012 source: err.into(),
10013 }),
10014 }
10015 }
10016}
10017impl From<crate::operation::update_trial::UpdateTrialError> for Error {
10018 fn from(err: crate::operation::update_trial::UpdateTrialError) -> Self {
10019 match err {
10020 crate::operation::update_trial::UpdateTrialError::ConflictException(inner) => Error::ConflictException(inner),
10021 crate::operation::update_trial::UpdateTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
10022 crate::operation::update_trial::UpdateTrialError::Unhandled(inner) => Error::Unhandled(inner),
10023 }
10024 }
10025}
10026impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial_component::UpdateTrialComponentError, R>> for Error
10027where
10028 R: Send + Sync + std::fmt::Debug + 'static,
10029{
10030 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial_component::UpdateTrialComponentError, R>) -> Self {
10031 match err {
10032 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10033 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10034 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10035 source: err.into(),
10036 }),
10037 }
10038 }
10039}
10040impl From<crate::operation::update_trial_component::UpdateTrialComponentError> for Error {
10041 fn from(err: crate::operation::update_trial_component::UpdateTrialComponentError) -> Self {
10042 match err {
10043 crate::operation::update_trial_component::UpdateTrialComponentError::ConflictException(inner) => Error::ConflictException(inner),
10044 crate::operation::update_trial_component::UpdateTrialComponentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
10045 crate::operation::update_trial_component::UpdateTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
10046 }
10047 }
10048}
10049impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_profile::UpdateUserProfileError, R>> for Error
10050where
10051 R: Send + Sync + std::fmt::Debug + 'static,
10052{
10053 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_profile::UpdateUserProfileError, R>) -> Self {
10054 match err {
10055 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10056 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10057 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10058 source: err.into(),
10059 }),
10060 }
10061 }
10062}
10063impl From<crate::operation::update_user_profile::UpdateUserProfileError> for Error {
10064 fn from(err: crate::operation::update_user_profile::UpdateUserProfileError) -> Self {
10065 match err {
10066 crate::operation::update_user_profile::UpdateUserProfileError::ResourceInUse(inner) => Error::ResourceInUse(inner),
10067 crate::operation::update_user_profile::UpdateUserProfileError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
10068 crate::operation::update_user_profile::UpdateUserProfileError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
10069 crate::operation::update_user_profile::UpdateUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
10070 }
10071 }
10072}
10073impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workforce::UpdateWorkforceError, R>> for Error
10074where
10075 R: Send + Sync + std::fmt::Debug + 'static,
10076{
10077 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workforce::UpdateWorkforceError, R>) -> Self {
10078 match err {
10079 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10080 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10081 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10082 source: err.into(),
10083 }),
10084 }
10085 }
10086}
10087impl From<crate::operation::update_workforce::UpdateWorkforceError> for Error {
10088 fn from(err: crate::operation::update_workforce::UpdateWorkforceError) -> Self {
10089 match err {
10090 crate::operation::update_workforce::UpdateWorkforceError::ConflictException(inner) => Error::ConflictException(inner),
10091 crate::operation::update_workforce::UpdateWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
10092 }
10093 }
10094}
10095impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workteam::UpdateWorkteamError, R>> for Error
10096where
10097 R: Send + Sync + std::fmt::Debug + 'static,
10098{
10099 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workteam::UpdateWorkteamError, R>) -> Self {
10100 match err {
10101 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
10102 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10103 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
10104 source: err.into(),
10105 }),
10106 }
10107 }
10108}
10109impl From<crate::operation::update_workteam::UpdateWorkteamError> for Error {
10110 fn from(err: crate::operation::update_workteam::UpdateWorkteamError) -> Self {
10111 match err {
10112 crate::operation::update_workteam::UpdateWorkteamError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
10113 crate::operation::update_workteam::UpdateWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
10114 }
10115 }
10116}
10117impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
10118where
10119 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
10120 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
10121{
10122 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
10123 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
10124 meta: ::std::default::Default::default(),
10125 source: err.into(),
10126 })
10127 }
10128}
10129impl ::std::error::Error for Error {
10130 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
10131 match self {
10132 Error::ConflictException(inner) => inner.source(),
10133 Error::ResourceInUse(inner) => inner.source(),
10134 Error::ResourceLimitExceeded(inner) => inner.source(),
10135 Error::ResourceNotFound(inner) => inner.source(),
10136 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
10137 }
10138 }
10139}
10140impl ::aws_types::request_id::RequestId for Error {
10141 fn request_id(&self) -> Option<&str> {
10142 match self {
10143 Self::ConflictException(e) => e.request_id(),
10144 Self::ResourceInUse(e) => e.request_id(),
10145 Self::ResourceLimitExceeded(e) => e.request_id(),
10146 Self::ResourceNotFound(e) => e.request_id(),
10147 Self::Unhandled(e) => e.meta.request_id(),
10148 }
10149 }
10150}