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::create_action::CreateActionError, R>> for Error
231where
232 R: Send + Sync + std::fmt::Debug + 'static,
233{
234 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_action::CreateActionError, R>) -> Self {
235 match err {
236 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
237 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
238 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
239 source: err.into(),
240 }),
241 }
242 }
243}
244impl From<crate::operation::create_action::CreateActionError> for Error {
245 fn from(err: crate::operation::create_action::CreateActionError) -> Self {
246 match err {
247 crate::operation::create_action::CreateActionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
248 crate::operation::create_action::CreateActionError::Unhandled(inner) => Error::Unhandled(inner),
249 }
250 }
251}
252impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_algorithm::CreateAlgorithmError, R>> for Error
253where
254 R: Send + Sync + std::fmt::Debug + 'static,
255{
256 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_algorithm::CreateAlgorithmError, R>) -> Self {
257 match err {
258 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
259 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
260 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
261 source: err.into(),
262 }),
263 }
264 }
265}
266impl From<crate::operation::create_algorithm::CreateAlgorithmError> for Error {
267 fn from(err: crate::operation::create_algorithm::CreateAlgorithmError) -> Self {
268 match err {
269 crate::operation::create_algorithm::CreateAlgorithmError::Unhandled(inner) => Error::Unhandled(inner),
270 }
271 }
272}
273impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app::CreateAppError, R>> for Error
274where
275 R: Send + Sync + std::fmt::Debug + 'static,
276{
277 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app::CreateAppError, R>) -> Self {
278 match err {
279 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
280 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
281 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
282 source: err.into(),
283 }),
284 }
285 }
286}
287impl From<crate::operation::create_app::CreateAppError> for Error {
288 fn from(err: crate::operation::create_app::CreateAppError) -> Self {
289 match err {
290 crate::operation::create_app::CreateAppError::ResourceInUse(inner) => Error::ResourceInUse(inner),
291 crate::operation::create_app::CreateAppError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
292 crate::operation::create_app::CreateAppError::Unhandled(inner) => Error::Unhandled(inner),
293 }
294 }
295}
296impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_image_config::CreateAppImageConfigError, R>> for Error
297where
298 R: Send + Sync + std::fmt::Debug + 'static,
299{
300 fn from(
301 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_image_config::CreateAppImageConfigError, R>,
302 ) -> Self {
303 match err {
304 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
305 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
306 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
307 source: err.into(),
308 }),
309 }
310 }
311}
312impl From<crate::operation::create_app_image_config::CreateAppImageConfigError> for Error {
313 fn from(err: crate::operation::create_app_image_config::CreateAppImageConfigError) -> Self {
314 match err {
315 crate::operation::create_app_image_config::CreateAppImageConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
316 crate::operation::create_app_image_config::CreateAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
317 }
318 }
319}
320impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_artifact::CreateArtifactError, R>> for Error
321where
322 R: Send + Sync + std::fmt::Debug + 'static,
323{
324 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_artifact::CreateArtifactError, R>) -> Self {
325 match err {
326 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
327 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
328 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
329 source: err.into(),
330 }),
331 }
332 }
333}
334impl From<crate::operation::create_artifact::CreateArtifactError> for Error {
335 fn from(err: crate::operation::create_artifact::CreateArtifactError) -> Self {
336 match err {
337 crate::operation::create_artifact::CreateArtifactError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
338 crate::operation::create_artifact::CreateArtifactError::Unhandled(inner) => Error::Unhandled(inner),
339 }
340 }
341}
342impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_ml_job::CreateAutoMLJobError, R>> for Error
343where
344 R: Send + Sync + std::fmt::Debug + 'static,
345{
346 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_ml_job::CreateAutoMLJobError, R>) -> Self {
347 match err {
348 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
349 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
350 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
351 source: err.into(),
352 }),
353 }
354 }
355}
356impl From<crate::operation::create_auto_ml_job::CreateAutoMLJobError> for Error {
357 fn from(err: crate::operation::create_auto_ml_job::CreateAutoMLJobError) -> Self {
358 match err {
359 crate::operation::create_auto_ml_job::CreateAutoMLJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
360 crate::operation::create_auto_ml_job::CreateAutoMLJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
361 crate::operation::create_auto_ml_job::CreateAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
362 }
363 }
364}
365impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error, R>> for Error
366where
367 R: Send + Sync + std::fmt::Debug + 'static,
368{
369 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error, R>) -> Self {
370 match err {
371 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
372 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
373 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
374 source: err.into(),
375 }),
376 }
377 }
378}
379impl From<crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error> for Error {
380 fn from(err: crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error) -> Self {
381 match err {
382 crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error::ResourceInUse(inner) => Error::ResourceInUse(inner),
383 crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
384 crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error::Unhandled(inner) => Error::Unhandled(inner),
385 }
386 }
387}
388impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster::CreateClusterError, R>> for Error
389where
390 R: Send + Sync + std::fmt::Debug + 'static,
391{
392 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster::CreateClusterError, R>) -> Self {
393 match err {
394 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
395 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
396 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
397 source: err.into(),
398 }),
399 }
400 }
401}
402impl From<crate::operation::create_cluster::CreateClusterError> for Error {
403 fn from(err: crate::operation::create_cluster::CreateClusterError) -> Self {
404 match err {
405 crate::operation::create_cluster::CreateClusterError::ResourceInUse(inner) => Error::ResourceInUse(inner),
406 crate::operation::create_cluster::CreateClusterError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
407 crate::operation::create_cluster::CreateClusterError::Unhandled(inner) => Error::Unhandled(inner),
408 }
409 }
410}
411impl<R>
412 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError, R>>
413 for Error
414where
415 R: Send + Sync + std::fmt::Debug + 'static,
416{
417 fn from(
418 err: ::aws_smithy_runtime_api::client::result::SdkError<
419 crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError,
420 R,
421 >,
422 ) -> Self {
423 match err {
424 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
425 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
426 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
427 source: err.into(),
428 }),
429 }
430 }
431}
432impl From<crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError> for Error {
433 fn from(err: crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError) -> Self {
434 match err {
435 crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError::ConflictException(inner) => {
436 Error::ConflictException(inner)
437 }
438 crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError::ResourceLimitExceeded(inner) => {
439 Error::ResourceLimitExceeded(inner)
440 }
441 crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
442 }
443 }
444}
445impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_code_repository::CreateCodeRepositoryError, R>> for Error
446where
447 R: Send + Sync + std::fmt::Debug + 'static,
448{
449 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_code_repository::CreateCodeRepositoryError, R>) -> Self {
450 match err {
451 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
452 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
453 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
454 source: err.into(),
455 }),
456 }
457 }
458}
459impl From<crate::operation::create_code_repository::CreateCodeRepositoryError> for Error {
460 fn from(err: crate::operation::create_code_repository::CreateCodeRepositoryError) -> Self {
461 match err {
462 crate::operation::create_code_repository::CreateCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
463 }
464 }
465}
466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_compilation_job::CreateCompilationJobError, R>> for Error
467where
468 R: Send + Sync + std::fmt::Debug + 'static,
469{
470 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_compilation_job::CreateCompilationJobError, R>) -> Self {
471 match err {
472 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
473 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
474 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
475 source: err.into(),
476 }),
477 }
478 }
479}
480impl From<crate::operation::create_compilation_job::CreateCompilationJobError> for Error {
481 fn from(err: crate::operation::create_compilation_job::CreateCompilationJobError) -> Self {
482 match err {
483 crate::operation::create_compilation_job::CreateCompilationJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
484 crate::operation::create_compilation_job::CreateCompilationJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
485 crate::operation::create_compilation_job::CreateCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
486 }
487 }
488}
489impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_compute_quota::CreateComputeQuotaError, R>> for Error
490where
491 R: Send + Sync + std::fmt::Debug + 'static,
492{
493 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_compute_quota::CreateComputeQuotaError, R>) -> Self {
494 match err {
495 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
496 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
497 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
498 source: err.into(),
499 }),
500 }
501 }
502}
503impl From<crate::operation::create_compute_quota::CreateComputeQuotaError> for Error {
504 fn from(err: crate::operation::create_compute_quota::CreateComputeQuotaError) -> Self {
505 match err {
506 crate::operation::create_compute_quota::CreateComputeQuotaError::ConflictException(inner) => Error::ConflictException(inner),
507 crate::operation::create_compute_quota::CreateComputeQuotaError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
508 crate::operation::create_compute_quota::CreateComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
509 }
510 }
511}
512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_context::CreateContextError, R>> for Error
513where
514 R: Send + Sync + std::fmt::Debug + 'static,
515{
516 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_context::CreateContextError, R>) -> Self {
517 match err {
518 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
519 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
520 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
521 source: err.into(),
522 }),
523 }
524 }
525}
526impl From<crate::operation::create_context::CreateContextError> for Error {
527 fn from(err: crate::operation::create_context::CreateContextError) -> Self {
528 match err {
529 crate::operation::create_context::CreateContextError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
530 crate::operation::create_context::CreateContextError::Unhandled(inner) => Error::Unhandled(inner),
531 }
532 }
533}
534impl<R>
535 From<
536 ::aws_smithy_runtime_api::client::result::SdkError<
537 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError,
538 R,
539 >,
540 > for Error
541where
542 R: Send + Sync + std::fmt::Debug + 'static,
543{
544 fn from(
545 err: ::aws_smithy_runtime_api::client::result::SdkError<
546 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError,
547 R,
548 >,
549 ) -> Self {
550 match err {
551 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
552 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
553 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
554 source: err.into(),
555 }),
556 }
557 }
558}
559impl From<crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError> for Error {
560 fn from(err: crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError) -> Self {
561 match err {
562 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError::ResourceInUse(inner) => {
563 Error::ResourceInUse(inner)
564 }
565 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError::ResourceLimitExceeded(inner) => {
566 Error::ResourceLimitExceeded(inner)
567 }
568 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
569 }
570 }
571}
572impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_device_fleet::CreateDeviceFleetError, R>> for Error
573where
574 R: Send + Sync + std::fmt::Debug + 'static,
575{
576 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_device_fleet::CreateDeviceFleetError, R>) -> Self {
577 match err {
578 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
579 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
580 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
581 source: err.into(),
582 }),
583 }
584 }
585}
586impl From<crate::operation::create_device_fleet::CreateDeviceFleetError> for Error {
587 fn from(err: crate::operation::create_device_fleet::CreateDeviceFleetError) -> Self {
588 match err {
589 crate::operation::create_device_fleet::CreateDeviceFleetError::ResourceInUse(inner) => Error::ResourceInUse(inner),
590 crate::operation::create_device_fleet::CreateDeviceFleetError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
591 crate::operation::create_device_fleet::CreateDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
592 }
593 }
594}
595impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain::CreateDomainError, R>> for Error
596where
597 R: Send + Sync + std::fmt::Debug + 'static,
598{
599 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain::CreateDomainError, R>) -> Self {
600 match err {
601 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
602 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
603 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
604 source: err.into(),
605 }),
606 }
607 }
608}
609impl From<crate::operation::create_domain::CreateDomainError> for Error {
610 fn from(err: crate::operation::create_domain::CreateDomainError) -> Self {
611 match err {
612 crate::operation::create_domain::CreateDomainError::ResourceInUse(inner) => Error::ResourceInUse(inner),
613 crate::operation::create_domain::CreateDomainError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
614 crate::operation::create_domain::CreateDomainError::Unhandled(inner) => Error::Unhandled(inner),
615 }
616 }
617}
618impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError, R>>
619 for Error
620where
621 R: Send + Sync + std::fmt::Debug + 'static,
622{
623 fn from(
624 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError, R>,
625 ) -> Self {
626 match err {
627 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
628 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
629 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
630 source: err.into(),
631 }),
632 }
633 }
634}
635impl From<crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError> for Error {
636 fn from(err: crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError) -> Self {
637 match err {
638 crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError::ResourceLimitExceeded(inner) => {
639 Error::ResourceLimitExceeded(inner)
640 }
641 crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError::Unhandled(inner) => Error::Unhandled(inner),
642 }
643 }
644}
645impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError, R>>
646 for Error
647where
648 R: Send + Sync + std::fmt::Debug + 'static,
649{
650 fn from(
651 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError, R>,
652 ) -> Self {
653 match err {
654 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
655 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
656 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
657 source: err.into(),
658 }),
659 }
660 }
661}
662impl From<crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError> for Error {
663 fn from(err: crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError) -> Self {
664 match err {
665 crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError::ResourceLimitExceeded(inner) => {
666 Error::ResourceLimitExceeded(inner)
667 }
668 crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
669 }
670 }
671}
672impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError, R>>
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<crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError, R>,
679 ) -> Self {
680 match err {
681 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
682 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
683 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
684 source: err.into(),
685 }),
686 }
687 }
688}
689impl From<crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError> for Error {
690 fn from(err: crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError) -> Self {
691 match err {
692 crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError::ResourceLimitExceeded(inner) => {
693 Error::ResourceLimitExceeded(inner)
694 }
695 crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError::Unhandled(inner) => Error::Unhandled(inner),
696 }
697 }
698}
699impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint::CreateEndpointError, R>> for Error
700where
701 R: Send + Sync + std::fmt::Debug + 'static,
702{
703 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint::CreateEndpointError, R>) -> Self {
704 match err {
705 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
706 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
707 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
708 source: err.into(),
709 }),
710 }
711 }
712}
713impl From<crate::operation::create_endpoint::CreateEndpointError> for Error {
714 fn from(err: crate::operation::create_endpoint::CreateEndpointError) -> Self {
715 match err {
716 crate::operation::create_endpoint::CreateEndpointError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
717 crate::operation::create_endpoint::CreateEndpointError::Unhandled(inner) => Error::Unhandled(inner),
718 }
719 }
720}
721impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint_config::CreateEndpointConfigError, R>> for Error
722where
723 R: Send + Sync + std::fmt::Debug + 'static,
724{
725 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint_config::CreateEndpointConfigError, R>) -> Self {
726 match err {
727 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
728 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
729 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
730 source: err.into(),
731 }),
732 }
733 }
734}
735impl From<crate::operation::create_endpoint_config::CreateEndpointConfigError> for Error {
736 fn from(err: crate::operation::create_endpoint_config::CreateEndpointConfigError) -> Self {
737 match err {
738 crate::operation::create_endpoint_config::CreateEndpointConfigError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
739 crate::operation::create_endpoint_config::CreateEndpointConfigError::Unhandled(inner) => Error::Unhandled(inner),
740 }
741 }
742}
743impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_experiment::CreateExperimentError, R>> for Error
744where
745 R: Send + Sync + std::fmt::Debug + 'static,
746{
747 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_experiment::CreateExperimentError, R>) -> Self {
748 match err {
749 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
750 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
751 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
752 source: err.into(),
753 }),
754 }
755 }
756}
757impl From<crate::operation::create_experiment::CreateExperimentError> for Error {
758 fn from(err: crate::operation::create_experiment::CreateExperimentError) -> Self {
759 match err {
760 crate::operation::create_experiment::CreateExperimentError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
761 crate::operation::create_experiment::CreateExperimentError::Unhandled(inner) => Error::Unhandled(inner),
762 }
763 }
764}
765impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_feature_group::CreateFeatureGroupError, R>> for Error
766where
767 R: Send + Sync + std::fmt::Debug + 'static,
768{
769 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_feature_group::CreateFeatureGroupError, R>) -> Self {
770 match err {
771 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
772 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
773 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
774 source: err.into(),
775 }),
776 }
777 }
778}
779impl From<crate::operation::create_feature_group::CreateFeatureGroupError> for Error {
780 fn from(err: crate::operation::create_feature_group::CreateFeatureGroupError) -> Self {
781 match err {
782 crate::operation::create_feature_group::CreateFeatureGroupError::ResourceInUse(inner) => Error::ResourceInUse(inner),
783 crate::operation::create_feature_group::CreateFeatureGroupError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
784 crate::operation::create_feature_group::CreateFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
785 }
786 }
787}
788impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_flow_definition::CreateFlowDefinitionError, R>> for Error
789where
790 R: Send + Sync + std::fmt::Debug + 'static,
791{
792 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_flow_definition::CreateFlowDefinitionError, R>) -> Self {
793 match err {
794 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
795 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
796 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
797 source: err.into(),
798 }),
799 }
800 }
801}
802impl From<crate::operation::create_flow_definition::CreateFlowDefinitionError> for Error {
803 fn from(err: crate::operation::create_flow_definition::CreateFlowDefinitionError) -> Self {
804 match err {
805 crate::operation::create_flow_definition::CreateFlowDefinitionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
806 crate::operation::create_flow_definition::CreateFlowDefinitionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
807 crate::operation::create_flow_definition::CreateFlowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
808 }
809 }
810}
811impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hub::CreateHubError, R>> for Error
812where
813 R: Send + Sync + std::fmt::Debug + 'static,
814{
815 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hub::CreateHubError, R>) -> Self {
816 match err {
817 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
818 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
819 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
820 source: err.into(),
821 }),
822 }
823 }
824}
825impl From<crate::operation::create_hub::CreateHubError> for Error {
826 fn from(err: crate::operation::create_hub::CreateHubError) -> Self {
827 match err {
828 crate::operation::create_hub::CreateHubError::ResourceInUse(inner) => Error::ResourceInUse(inner),
829 crate::operation::create_hub::CreateHubError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
830 crate::operation::create_hub::CreateHubError::Unhandled(inner) => Error::Unhandled(inner),
831 }
832 }
833}
834impl<R>
835 From<
836 ::aws_smithy_runtime_api::client::result::SdkError<
837 crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError,
838 R,
839 >,
840 > for Error
841where
842 R: Send + Sync + std::fmt::Debug + 'static,
843{
844 fn from(
845 err: ::aws_smithy_runtime_api::client::result::SdkError<
846 crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError,
847 R,
848 >,
849 ) -> Self {
850 match err {
851 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
852 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
853 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
854 source: err.into(),
855 }),
856 }
857 }
858}
859impl From<crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError> for Error {
860 fn from(err: crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError) -> Self {
861 match err {
862 crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError::Unhandled(inner) => Error::Unhandled(inner),
863 }
864 }
865}
866impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hub_content_reference::CreateHubContentReferenceError, R>>
867 for Error
868where
869 R: Send + Sync + std::fmt::Debug + 'static,
870{
871 fn from(
872 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hub_content_reference::CreateHubContentReferenceError, R>,
873 ) -> Self {
874 match err {
875 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
876 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
877 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
878 source: err.into(),
879 }),
880 }
881 }
882}
883impl From<crate::operation::create_hub_content_reference::CreateHubContentReferenceError> for Error {
884 fn from(err: crate::operation::create_hub_content_reference::CreateHubContentReferenceError) -> Self {
885 match err {
886 crate::operation::create_hub_content_reference::CreateHubContentReferenceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
887 crate::operation::create_hub_content_reference::CreateHubContentReferenceError::ResourceLimitExceeded(inner) => {
888 Error::ResourceLimitExceeded(inner)
889 }
890 crate::operation::create_hub_content_reference::CreateHubContentReferenceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
891 crate::operation::create_hub_content_reference::CreateHubContentReferenceError::Unhandled(inner) => Error::Unhandled(inner),
892 }
893 }
894}
895impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_human_task_ui::CreateHumanTaskUiError, R>> for Error
896where
897 R: Send + Sync + std::fmt::Debug + 'static,
898{
899 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_human_task_ui::CreateHumanTaskUiError, R>) -> Self {
900 match err {
901 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
902 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
903 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
904 source: err.into(),
905 }),
906 }
907 }
908}
909impl From<crate::operation::create_human_task_ui::CreateHumanTaskUiError> for Error {
910 fn from(err: crate::operation::create_human_task_ui::CreateHumanTaskUiError) -> Self {
911 match err {
912 crate::operation::create_human_task_ui::CreateHumanTaskUiError::ResourceInUse(inner) => Error::ResourceInUse(inner),
913 crate::operation::create_human_task_ui::CreateHumanTaskUiError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
914 crate::operation::create_human_task_ui::CreateHumanTaskUiError::Unhandled(inner) => Error::Unhandled(inner),
915 }
916 }
917}
918impl<R>
919 From<
920 ::aws_smithy_runtime_api::client::result::SdkError<
921 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError,
922 R,
923 >,
924 > for Error
925where
926 R: Send + Sync + std::fmt::Debug + 'static,
927{
928 fn from(
929 err: ::aws_smithy_runtime_api::client::result::SdkError<
930 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError,
931 R,
932 >,
933 ) -> Self {
934 match err {
935 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
936 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
937 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
938 source: err.into(),
939 }),
940 }
941 }
942}
943impl From<crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError> for Error {
944 fn from(err: crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError) -> Self {
945 match err {
946 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError::ResourceInUse(inner) => {
947 Error::ResourceInUse(inner)
948 }
949 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError::ResourceLimitExceeded(inner) => {
950 Error::ResourceLimitExceeded(inner)
951 }
952 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
953 }
954 }
955}
956impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image::CreateImageError, R>> for Error
957where
958 R: Send + Sync + std::fmt::Debug + 'static,
959{
960 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image::CreateImageError, R>) -> Self {
961 match err {
962 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
963 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
964 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
965 source: err.into(),
966 }),
967 }
968 }
969}
970impl From<crate::operation::create_image::CreateImageError> for Error {
971 fn from(err: crate::operation::create_image::CreateImageError) -> Self {
972 match err {
973 crate::operation::create_image::CreateImageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
974 crate::operation::create_image::CreateImageError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
975 crate::operation::create_image::CreateImageError::Unhandled(inner) => Error::Unhandled(inner),
976 }
977 }
978}
979impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_version::CreateImageVersionError, R>> for Error
980where
981 R: Send + Sync + std::fmt::Debug + 'static,
982{
983 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_version::CreateImageVersionError, R>) -> Self {
984 match err {
985 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
986 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
987 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
988 source: err.into(),
989 }),
990 }
991 }
992}
993impl From<crate::operation::create_image_version::CreateImageVersionError> for Error {
994 fn from(err: crate::operation::create_image_version::CreateImageVersionError) -> Self {
995 match err {
996 crate::operation::create_image_version::CreateImageVersionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
997 crate::operation::create_image_version::CreateImageVersionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
998 crate::operation::create_image_version::CreateImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
999 crate::operation::create_image_version::CreateImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
1000 }
1001 }
1002}
1003impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inference_component::CreateInferenceComponentError, R>>
1004 for Error
1005where
1006 R: Send + Sync + std::fmt::Debug + 'static,
1007{
1008 fn from(
1009 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inference_component::CreateInferenceComponentError, R>,
1010 ) -> Self {
1011 match err {
1012 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1013 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1014 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1015 source: err.into(),
1016 }),
1017 }
1018 }
1019}
1020impl From<crate::operation::create_inference_component::CreateInferenceComponentError> for Error {
1021 fn from(err: crate::operation::create_inference_component::CreateInferenceComponentError) -> Self {
1022 match err {
1023 crate::operation::create_inference_component::CreateInferenceComponentError::ResourceLimitExceeded(inner) => {
1024 Error::ResourceLimitExceeded(inner)
1025 }
1026 crate::operation::create_inference_component::CreateInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
1027 }
1028 }
1029}
1030impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inference_experiment::CreateInferenceExperimentError, R>>
1031 for Error
1032where
1033 R: Send + Sync + std::fmt::Debug + 'static,
1034{
1035 fn from(
1036 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inference_experiment::CreateInferenceExperimentError, R>,
1037 ) -> Self {
1038 match err {
1039 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1040 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1041 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1042 source: err.into(),
1043 }),
1044 }
1045 }
1046}
1047impl From<crate::operation::create_inference_experiment::CreateInferenceExperimentError> for Error {
1048 fn from(err: crate::operation::create_inference_experiment::CreateInferenceExperimentError) -> Self {
1049 match err {
1050 crate::operation::create_inference_experiment::CreateInferenceExperimentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1051 crate::operation::create_inference_experiment::CreateInferenceExperimentError::ResourceLimitExceeded(inner) => {
1052 Error::ResourceLimitExceeded(inner)
1053 }
1054 crate::operation::create_inference_experiment::CreateInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
1055 }
1056 }
1057}
1058impl<R>
1059 From<
1060 ::aws_smithy_runtime_api::client::result::SdkError<
1061 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError,
1062 R,
1063 >,
1064 > for Error
1065where
1066 R: Send + Sync + std::fmt::Debug + 'static,
1067{
1068 fn from(
1069 err: ::aws_smithy_runtime_api::client::result::SdkError<
1070 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError,
1071 R,
1072 >,
1073 ) -> Self {
1074 match err {
1075 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1076 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1077 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1078 source: err.into(),
1079 }),
1080 }
1081 }
1082}
1083impl From<crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError> for Error {
1084 fn from(err: crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError) -> Self {
1085 match err {
1086 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError::ResourceInUse(inner) => {
1087 Error::ResourceInUse(inner)
1088 }
1089 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError::ResourceLimitExceeded(inner) => {
1090 Error::ResourceLimitExceeded(inner)
1091 }
1092 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError::Unhandled(inner) => {
1093 Error::Unhandled(inner)
1094 }
1095 }
1096 }
1097}
1098impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_labeling_job::CreateLabelingJobError, R>> for Error
1099where
1100 R: Send + Sync + std::fmt::Debug + 'static,
1101{
1102 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_labeling_job::CreateLabelingJobError, R>) -> Self {
1103 match err {
1104 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1105 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1106 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1107 source: err.into(),
1108 }),
1109 }
1110 }
1111}
1112impl From<crate::operation::create_labeling_job::CreateLabelingJobError> for Error {
1113 fn from(err: crate::operation::create_labeling_job::CreateLabelingJobError) -> Self {
1114 match err {
1115 crate::operation::create_labeling_job::CreateLabelingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1116 crate::operation::create_labeling_job::CreateLabelingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1117 crate::operation::create_labeling_job::CreateLabelingJobError::Unhandled(inner) => Error::Unhandled(inner),
1118 }
1119 }
1120}
1121impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError, R>>
1122 for Error
1123where
1124 R: Send + Sync + std::fmt::Debug + 'static,
1125{
1126 fn from(
1127 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError, R>,
1128 ) -> Self {
1129 match err {
1130 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1131 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1132 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1133 source: err.into(),
1134 }),
1135 }
1136 }
1137}
1138impl From<crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError> for Error {
1139 fn from(err: crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError) -> Self {
1140 match err {
1141 crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError::ResourceLimitExceeded(inner) => {
1142 Error::ResourceLimitExceeded(inner)
1143 }
1144 crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
1145 }
1146 }
1147}
1148impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model::CreateModelError, R>> for Error
1149where
1150 R: Send + Sync + std::fmt::Debug + 'static,
1151{
1152 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model::CreateModelError, R>) -> Self {
1153 match err {
1154 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1155 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1156 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1157 source: err.into(),
1158 }),
1159 }
1160 }
1161}
1162impl From<crate::operation::create_model::CreateModelError> for Error {
1163 fn from(err: crate::operation::create_model::CreateModelError) -> Self {
1164 match err {
1165 crate::operation::create_model::CreateModelError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1166 crate::operation::create_model::CreateModelError::Unhandled(inner) => Error::Unhandled(inner),
1167 }
1168 }
1169}
1170impl<R>
1171 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError, R>>
1172 for Error
1173where
1174 R: Send + Sync + std::fmt::Debug + 'static,
1175{
1176 fn from(
1177 err: ::aws_smithy_runtime_api::client::result::SdkError<
1178 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError,
1179 R,
1180 >,
1181 ) -> Self {
1182 match err {
1183 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1184 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1185 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1186 source: err.into(),
1187 }),
1188 }
1189 }
1190}
1191impl From<crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError> for Error {
1192 fn from(err: crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError) -> Self {
1193 match err {
1194 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError::ResourceInUse(inner) => {
1195 Error::ResourceInUse(inner)
1196 }
1197 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError::ResourceLimitExceeded(inner) => {
1198 Error::ResourceLimitExceeded(inner)
1199 }
1200 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1201 }
1202 }
1203}
1204impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card::CreateModelCardError, R>> for Error
1205where
1206 R: Send + Sync + std::fmt::Debug + 'static,
1207{
1208 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card::CreateModelCardError, R>) -> Self {
1209 match err {
1210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1213 source: err.into(),
1214 }),
1215 }
1216 }
1217}
1218impl From<crate::operation::create_model_card::CreateModelCardError> for Error {
1219 fn from(err: crate::operation::create_model_card::CreateModelCardError) -> Self {
1220 match err {
1221 crate::operation::create_model_card::CreateModelCardError::ConflictException(inner) => Error::ConflictException(inner),
1222 crate::operation::create_model_card::CreateModelCardError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1223 crate::operation::create_model_card::CreateModelCardError::Unhandled(inner) => Error::Unhandled(inner),
1224 }
1225 }
1226}
1227impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card_export_job::CreateModelCardExportJobError, R>>
1228 for Error
1229where
1230 R: Send + Sync + std::fmt::Debug + 'static,
1231{
1232 fn from(
1233 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card_export_job::CreateModelCardExportJobError, R>,
1234 ) -> Self {
1235 match err {
1236 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1237 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1238 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1239 source: err.into(),
1240 }),
1241 }
1242 }
1243}
1244impl From<crate::operation::create_model_card_export_job::CreateModelCardExportJobError> for Error {
1245 fn from(err: crate::operation::create_model_card_export_job::CreateModelCardExportJobError) -> Self {
1246 match err {
1247 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::ConflictException(inner) => {
1248 Error::ConflictException(inner)
1249 }
1250 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::ResourceLimitExceeded(inner) => {
1251 Error::ResourceLimitExceeded(inner)
1252 }
1253 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1254 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::Unhandled(inner) => Error::Unhandled(inner),
1255 }
1256 }
1257}
1258impl<R>
1259 From<
1260 ::aws_smithy_runtime_api::client::result::SdkError<
1261 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError,
1262 R,
1263 >,
1264 > for Error
1265where
1266 R: Send + Sync + std::fmt::Debug + 'static,
1267{
1268 fn from(
1269 err: ::aws_smithy_runtime_api::client::result::SdkError<
1270 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError,
1271 R,
1272 >,
1273 ) -> Self {
1274 match err {
1275 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1276 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1277 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1278 source: err.into(),
1279 }),
1280 }
1281 }
1282}
1283impl From<crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError> for Error {
1284 fn from(err: crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError) -> Self {
1285 match err {
1286 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError::ResourceInUse(inner) => {
1287 Error::ResourceInUse(inner)
1288 }
1289 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError::ResourceLimitExceeded(
1290 inner,
1291 ) => Error::ResourceLimitExceeded(inner),
1292 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError::Unhandled(inner) => {
1293 Error::Unhandled(inner)
1294 }
1295 }
1296 }
1297}
1298impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package::CreateModelPackageError, R>> for Error
1299where
1300 R: Send + Sync + std::fmt::Debug + 'static,
1301{
1302 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package::CreateModelPackageError, R>) -> Self {
1303 match err {
1304 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1305 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1306 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1307 source: err.into(),
1308 }),
1309 }
1310 }
1311}
1312impl From<crate::operation::create_model_package::CreateModelPackageError> for Error {
1313 fn from(err: crate::operation::create_model_package::CreateModelPackageError) -> Self {
1314 match err {
1315 crate::operation::create_model_package::CreateModelPackageError::ConflictException(inner) => Error::ConflictException(inner),
1316 crate::operation::create_model_package::CreateModelPackageError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1317 crate::operation::create_model_package::CreateModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
1318 }
1319 }
1320}
1321impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package_group::CreateModelPackageGroupError, R>>
1322 for Error
1323where
1324 R: Send + Sync + std::fmt::Debug + 'static,
1325{
1326 fn from(
1327 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package_group::CreateModelPackageGroupError, R>,
1328 ) -> Self {
1329 match err {
1330 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1331 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1332 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1333 source: err.into(),
1334 }),
1335 }
1336 }
1337}
1338impl From<crate::operation::create_model_package_group::CreateModelPackageGroupError> for Error {
1339 fn from(err: crate::operation::create_model_package_group::CreateModelPackageGroupError) -> Self {
1340 match err {
1341 crate::operation::create_model_package_group::CreateModelPackageGroupError::ResourceLimitExceeded(inner) => {
1342 Error::ResourceLimitExceeded(inner)
1343 }
1344 crate::operation::create_model_package_group::CreateModelPackageGroupError::Unhandled(inner) => Error::Unhandled(inner),
1345 }
1346 }
1347}
1348impl<R>
1349 From<
1350 ::aws_smithy_runtime_api::client::result::SdkError<
1351 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError,
1352 R,
1353 >,
1354 > for Error
1355where
1356 R: Send + Sync + std::fmt::Debug + 'static,
1357{
1358 fn from(
1359 err: ::aws_smithy_runtime_api::client::result::SdkError<
1360 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError,
1361 R,
1362 >,
1363 ) -> Self {
1364 match err {
1365 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1366 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1367 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1368 source: err.into(),
1369 }),
1370 }
1371 }
1372}
1373impl From<crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError> for Error {
1374 fn from(err: crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError) -> Self {
1375 match err {
1376 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError::ResourceInUse(inner) => {
1377 Error::ResourceInUse(inner)
1378 }
1379 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError::ResourceLimitExceeded(inner) => {
1380 Error::ResourceLimitExceeded(inner)
1381 }
1382 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1383 }
1384 }
1385}
1386impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError, R>>
1387 for Error
1388where
1389 R: Send + Sync + std::fmt::Debug + 'static,
1390{
1391 fn from(
1392 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError, R>,
1393 ) -> Self {
1394 match err {
1395 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1396 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1397 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1398 source: err.into(),
1399 }),
1400 }
1401 }
1402}
1403impl From<crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError> for Error {
1404 fn from(err: crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError) -> Self {
1405 match err {
1406 crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1407 crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError::ResourceLimitExceeded(inner) => {
1408 Error::ResourceLimitExceeded(inner)
1409 }
1410 crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
1411 }
1412 }
1413}
1414impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notebook_instance::CreateNotebookInstanceError, R>> for Error
1415where
1416 R: Send + Sync + std::fmt::Debug + 'static,
1417{
1418 fn from(
1419 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notebook_instance::CreateNotebookInstanceError, R>,
1420 ) -> Self {
1421 match err {
1422 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1423 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1424 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1425 source: err.into(),
1426 }),
1427 }
1428 }
1429}
1430impl From<crate::operation::create_notebook_instance::CreateNotebookInstanceError> for Error {
1431 fn from(err: crate::operation::create_notebook_instance::CreateNotebookInstanceError) -> Self {
1432 match err {
1433 crate::operation::create_notebook_instance::CreateNotebookInstanceError::ResourceLimitExceeded(inner) => {
1434 Error::ResourceLimitExceeded(inner)
1435 }
1436 crate::operation::create_notebook_instance::CreateNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
1437 }
1438 }
1439}
1440impl<R>
1441 From<
1442 ::aws_smithy_runtime_api::client::result::SdkError<
1443 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError,
1444 R,
1445 >,
1446 > for Error
1447where
1448 R: Send + Sync + std::fmt::Debug + 'static,
1449{
1450 fn from(
1451 err: ::aws_smithy_runtime_api::client::result::SdkError<
1452 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError,
1453 R,
1454 >,
1455 ) -> Self {
1456 match err {
1457 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1458 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1459 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1460 source: err.into(),
1461 }),
1462 }
1463 }
1464}
1465impl From<crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError> for Error {
1466 fn from(err: crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError) -> Self {
1467 match err {
1468 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError::ResourceLimitExceeded(inner) => {
1469 Error::ResourceLimitExceeded(inner)
1470 }
1471 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
1472 Error::Unhandled(inner)
1473 }
1474 }
1475 }
1476}
1477impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_optimization_job::CreateOptimizationJobError, R>> for Error
1478where
1479 R: Send + Sync + std::fmt::Debug + 'static,
1480{
1481 fn from(
1482 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_optimization_job::CreateOptimizationJobError, R>,
1483 ) -> Self {
1484 match err {
1485 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1486 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1487 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1488 source: err.into(),
1489 }),
1490 }
1491 }
1492}
1493impl From<crate::operation::create_optimization_job::CreateOptimizationJobError> for Error {
1494 fn from(err: crate::operation::create_optimization_job::CreateOptimizationJobError) -> Self {
1495 match err {
1496 crate::operation::create_optimization_job::CreateOptimizationJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1497 crate::operation::create_optimization_job::CreateOptimizationJobError::ResourceLimitExceeded(inner) => {
1498 Error::ResourceLimitExceeded(inner)
1499 }
1500 crate::operation::create_optimization_job::CreateOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
1501 }
1502 }
1503}
1504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_app::CreatePartnerAppError, R>> for Error
1505where
1506 R: Send + Sync + std::fmt::Debug + 'static,
1507{
1508 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_app::CreatePartnerAppError, R>) -> Self {
1509 match err {
1510 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1511 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1512 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1513 source: err.into(),
1514 }),
1515 }
1516 }
1517}
1518impl From<crate::operation::create_partner_app::CreatePartnerAppError> for Error {
1519 fn from(err: crate::operation::create_partner_app::CreatePartnerAppError) -> Self {
1520 match err {
1521 crate::operation::create_partner_app::CreatePartnerAppError::ConflictException(inner) => Error::ConflictException(inner),
1522 crate::operation::create_partner_app::CreatePartnerAppError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1523 crate::operation::create_partner_app::CreatePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
1524 }
1525 }
1526}
1527impl<R>
1528 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError, R>>
1529 for Error
1530where
1531 R: Send + Sync + std::fmt::Debug + 'static,
1532{
1533 fn from(
1534 err: ::aws_smithy_runtime_api::client::result::SdkError<
1535 crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError,
1536 R,
1537 >,
1538 ) -> Self {
1539 match err {
1540 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1541 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1542 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1543 source: err.into(),
1544 }),
1545 }
1546 }
1547}
1548impl From<crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError> for Error {
1549 fn from(err: crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError) -> Self {
1550 match err {
1551 crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError::ResourceNotFound(inner) => {
1552 Error::ResourceNotFound(inner)
1553 }
1554 crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError::Unhandled(inner) => Error::Unhandled(inner),
1555 }
1556 }
1557}
1558impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pipeline::CreatePipelineError, R>> for Error
1559where
1560 R: Send + Sync + std::fmt::Debug + 'static,
1561{
1562 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pipeline::CreatePipelineError, R>) -> Self {
1563 match err {
1564 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1565 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1566 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1567 source: err.into(),
1568 }),
1569 }
1570 }
1571}
1572impl From<crate::operation::create_pipeline::CreatePipelineError> for Error {
1573 fn from(err: crate::operation::create_pipeline::CreatePipelineError) -> Self {
1574 match err {
1575 crate::operation::create_pipeline::CreatePipelineError::ConflictException(inner) => Error::ConflictException(inner),
1576 crate::operation::create_pipeline::CreatePipelineError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1577 crate::operation::create_pipeline::CreatePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1578 crate::operation::create_pipeline::CreatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
1579 }
1580 }
1581}
1582impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError, R>>
1583 for Error
1584where
1585 R: Send + Sync + std::fmt::Debug + 'static,
1586{
1587 fn from(
1588 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError, R>,
1589 ) -> Self {
1590 match err {
1591 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1592 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1593 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1594 source: err.into(),
1595 }),
1596 }
1597 }
1598}
1599impl From<crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError> for Error {
1600 fn from(err: crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError) -> Self {
1601 match err {
1602 crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1603 crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError::Unhandled(inner) => Error::Unhandled(inner),
1604 }
1605 }
1606}
1607impl<R>
1608 From<
1609 ::aws_smithy_runtime_api::client::result::SdkError<
1610 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError,
1611 R,
1612 >,
1613 > for Error
1614where
1615 R: Send + Sync + std::fmt::Debug + 'static,
1616{
1617 fn from(
1618 err: ::aws_smithy_runtime_api::client::result::SdkError<
1619 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError,
1620 R,
1621 >,
1622 ) -> Self {
1623 match err {
1624 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1625 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1626 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1627 source: err.into(),
1628 }),
1629 }
1630 }
1631}
1632impl From<crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError> for Error {
1633 fn from(err: crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError) -> Self {
1634 match err {
1635 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError::ResourceNotFound(inner) => {
1636 Error::ResourceNotFound(inner)
1637 }
1638 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError::Unhandled(inner) => {
1639 Error::Unhandled(inner)
1640 }
1641 }
1642 }
1643}
1644impl<R>
1645 From<
1646 ::aws_smithy_runtime_api::client::result::SdkError<
1647 crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError,
1648 R,
1649 >,
1650 > for Error
1651where
1652 R: Send + Sync + std::fmt::Debug + 'static,
1653{
1654 fn from(
1655 err: ::aws_smithy_runtime_api::client::result::SdkError<
1656 crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError,
1657 R,
1658 >,
1659 ) -> Self {
1660 match err {
1661 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1662 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1663 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1664 source: err.into(),
1665 }),
1666 }
1667 }
1668}
1669impl From<crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError> for Error {
1670 fn from(err: crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError) -> Self {
1671 match err {
1672 crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError::Unhandled(inner) => {
1673 Error::Unhandled(inner)
1674 }
1675 }
1676 }
1677}
1678impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_processing_job::CreateProcessingJobError, R>> for Error
1679where
1680 R: Send + Sync + std::fmt::Debug + 'static,
1681{
1682 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_processing_job::CreateProcessingJobError, R>) -> Self {
1683 match err {
1684 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1685 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1686 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1687 source: err.into(),
1688 }),
1689 }
1690 }
1691}
1692impl From<crate::operation::create_processing_job::CreateProcessingJobError> for Error {
1693 fn from(err: crate::operation::create_processing_job::CreateProcessingJobError) -> Self {
1694 match err {
1695 crate::operation::create_processing_job::CreateProcessingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1696 crate::operation::create_processing_job::CreateProcessingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1697 crate::operation::create_processing_job::CreateProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1698 crate::operation::create_processing_job::CreateProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
1699 }
1700 }
1701}
1702impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>> for Error
1703where
1704 R: Send + Sync + std::fmt::Debug + 'static,
1705{
1706 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>) -> Self {
1707 match err {
1708 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1709 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1710 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1711 source: err.into(),
1712 }),
1713 }
1714 }
1715}
1716impl From<crate::operation::create_project::CreateProjectError> for Error {
1717 fn from(err: crate::operation::create_project::CreateProjectError) -> Self {
1718 match err {
1719 crate::operation::create_project::CreateProjectError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1720 crate::operation::create_project::CreateProjectError::Unhandled(inner) => Error::Unhandled(inner),
1721 }
1722 }
1723}
1724impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_space::CreateSpaceError, R>> for Error
1725where
1726 R: Send + Sync + std::fmt::Debug + 'static,
1727{
1728 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_space::CreateSpaceError, R>) -> Self {
1729 match err {
1730 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1731 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1732 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1733 source: err.into(),
1734 }),
1735 }
1736 }
1737}
1738impl From<crate::operation::create_space::CreateSpaceError> for Error {
1739 fn from(err: crate::operation::create_space::CreateSpaceError) -> Self {
1740 match err {
1741 crate::operation::create_space::CreateSpaceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1742 crate::operation::create_space::CreateSpaceError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1743 crate::operation::create_space::CreateSpaceError::Unhandled(inner) => Error::Unhandled(inner),
1744 }
1745 }
1746}
1747impl<R>
1748 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError, R>>
1749 for Error
1750where
1751 R: Send + Sync + std::fmt::Debug + 'static,
1752{
1753 fn from(
1754 err: ::aws_smithy_runtime_api::client::result::SdkError<
1755 crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError,
1756 R,
1757 >,
1758 ) -> Self {
1759 match err {
1760 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1761 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1762 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1763 source: err.into(),
1764 }),
1765 }
1766 }
1767}
1768impl From<crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError> for Error {
1769 fn from(err: crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError) -> Self {
1770 match err {
1771 crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1772 crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError::Unhandled(inner) => Error::Unhandled(inner),
1773 }
1774 }
1775}
1776impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_job::CreateTrainingJobError, R>> for Error
1777where
1778 R: Send + Sync + std::fmt::Debug + 'static,
1779{
1780 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_job::CreateTrainingJobError, R>) -> Self {
1781 match err {
1782 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1783 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1784 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1785 source: err.into(),
1786 }),
1787 }
1788 }
1789}
1790impl From<crate::operation::create_training_job::CreateTrainingJobError> for Error {
1791 fn from(err: crate::operation::create_training_job::CreateTrainingJobError) -> Self {
1792 match err {
1793 crate::operation::create_training_job::CreateTrainingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1794 crate::operation::create_training_job::CreateTrainingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1795 crate::operation::create_training_job::CreateTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1796 crate::operation::create_training_job::CreateTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
1797 }
1798 }
1799}
1800impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_plan::CreateTrainingPlanError, R>> for Error
1801where
1802 R: Send + Sync + std::fmt::Debug + 'static,
1803{
1804 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_plan::CreateTrainingPlanError, R>) -> Self {
1805 match err {
1806 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1807 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1808 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1809 source: err.into(),
1810 }),
1811 }
1812 }
1813}
1814impl From<crate::operation::create_training_plan::CreateTrainingPlanError> for Error {
1815 fn from(err: crate::operation::create_training_plan::CreateTrainingPlanError) -> Self {
1816 match err {
1817 crate::operation::create_training_plan::CreateTrainingPlanError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1818 crate::operation::create_training_plan::CreateTrainingPlanError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1819 crate::operation::create_training_plan::CreateTrainingPlanError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1820 crate::operation::create_training_plan::CreateTrainingPlanError::Unhandled(inner) => Error::Unhandled(inner),
1821 }
1822 }
1823}
1824impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transform_job::CreateTransformJobError, R>> for Error
1825where
1826 R: Send + Sync + std::fmt::Debug + 'static,
1827{
1828 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transform_job::CreateTransformJobError, R>) -> Self {
1829 match err {
1830 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1831 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1832 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1833 source: err.into(),
1834 }),
1835 }
1836 }
1837}
1838impl From<crate::operation::create_transform_job::CreateTransformJobError> for Error {
1839 fn from(err: crate::operation::create_transform_job::CreateTransformJobError) -> Self {
1840 match err {
1841 crate::operation::create_transform_job::CreateTransformJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1842 crate::operation::create_transform_job::CreateTransformJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1843 crate::operation::create_transform_job::CreateTransformJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1844 crate::operation::create_transform_job::CreateTransformJobError::Unhandled(inner) => Error::Unhandled(inner),
1845 }
1846 }
1847}
1848impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial::CreateTrialError, R>> for Error
1849where
1850 R: Send + Sync + std::fmt::Debug + 'static,
1851{
1852 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial::CreateTrialError, R>) -> Self {
1853 match err {
1854 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1855 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1856 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1857 source: err.into(),
1858 }),
1859 }
1860 }
1861}
1862impl From<crate::operation::create_trial::CreateTrialError> for Error {
1863 fn from(err: crate::operation::create_trial::CreateTrialError) -> Self {
1864 match err {
1865 crate::operation::create_trial::CreateTrialError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1866 crate::operation::create_trial::CreateTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1867 crate::operation::create_trial::CreateTrialError::Unhandled(inner) => Error::Unhandled(inner),
1868 }
1869 }
1870}
1871impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial_component::CreateTrialComponentError, R>> for Error
1872where
1873 R: Send + Sync + std::fmt::Debug + 'static,
1874{
1875 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial_component::CreateTrialComponentError, R>) -> Self {
1876 match err {
1877 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1878 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1879 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1880 source: err.into(),
1881 }),
1882 }
1883 }
1884}
1885impl From<crate::operation::create_trial_component::CreateTrialComponentError> for Error {
1886 fn from(err: crate::operation::create_trial_component::CreateTrialComponentError) -> Self {
1887 match err {
1888 crate::operation::create_trial_component::CreateTrialComponentError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1889 crate::operation::create_trial_component::CreateTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
1890 }
1891 }
1892}
1893impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_profile::CreateUserProfileError, R>> for Error
1894where
1895 R: Send + Sync + std::fmt::Debug + 'static,
1896{
1897 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_profile::CreateUserProfileError, R>) -> Self {
1898 match err {
1899 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1900 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1901 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1902 source: err.into(),
1903 }),
1904 }
1905 }
1906}
1907impl From<crate::operation::create_user_profile::CreateUserProfileError> for Error {
1908 fn from(err: crate::operation::create_user_profile::CreateUserProfileError) -> Self {
1909 match err {
1910 crate::operation::create_user_profile::CreateUserProfileError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1911 crate::operation::create_user_profile::CreateUserProfileError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1912 crate::operation::create_user_profile::CreateUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
1913 }
1914 }
1915}
1916impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workforce::CreateWorkforceError, R>> for Error
1917where
1918 R: Send + Sync + std::fmt::Debug + 'static,
1919{
1920 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workforce::CreateWorkforceError, R>) -> Self {
1921 match err {
1922 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1923 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1924 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1925 source: err.into(),
1926 }),
1927 }
1928 }
1929}
1930impl From<crate::operation::create_workforce::CreateWorkforceError> for Error {
1931 fn from(err: crate::operation::create_workforce::CreateWorkforceError) -> Self {
1932 match err {
1933 crate::operation::create_workforce::CreateWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
1934 }
1935 }
1936}
1937impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workteam::CreateWorkteamError, R>> for Error
1938where
1939 R: Send + Sync + std::fmt::Debug + 'static,
1940{
1941 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workteam::CreateWorkteamError, R>) -> Self {
1942 match err {
1943 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1944 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1945 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1946 source: err.into(),
1947 }),
1948 }
1949 }
1950}
1951impl From<crate::operation::create_workteam::CreateWorkteamError> for Error {
1952 fn from(err: crate::operation::create_workteam::CreateWorkteamError) -> Self {
1953 match err {
1954 crate::operation::create_workteam::CreateWorkteamError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1955 crate::operation::create_workteam::CreateWorkteamError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1956 crate::operation::create_workteam::CreateWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
1957 }
1958 }
1959}
1960impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_action::DeleteActionError, R>> for Error
1961where
1962 R: Send + Sync + std::fmt::Debug + 'static,
1963{
1964 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_action::DeleteActionError, R>) -> Self {
1965 match err {
1966 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1967 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1968 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1969 source: err.into(),
1970 }),
1971 }
1972 }
1973}
1974impl From<crate::operation::delete_action::DeleteActionError> for Error {
1975 fn from(err: crate::operation::delete_action::DeleteActionError) -> Self {
1976 match err {
1977 crate::operation::delete_action::DeleteActionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1978 crate::operation::delete_action::DeleteActionError::Unhandled(inner) => Error::Unhandled(inner),
1979 }
1980 }
1981}
1982impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_algorithm::DeleteAlgorithmError, R>> for Error
1983where
1984 R: Send + Sync + std::fmt::Debug + 'static,
1985{
1986 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_algorithm::DeleteAlgorithmError, R>) -> Self {
1987 match err {
1988 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1989 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1990 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1991 source: err.into(),
1992 }),
1993 }
1994 }
1995}
1996impl From<crate::operation::delete_algorithm::DeleteAlgorithmError> for Error {
1997 fn from(err: crate::operation::delete_algorithm::DeleteAlgorithmError) -> Self {
1998 match err {
1999 crate::operation::delete_algorithm::DeleteAlgorithmError::ConflictException(inner) => Error::ConflictException(inner),
2000 crate::operation::delete_algorithm::DeleteAlgorithmError::Unhandled(inner) => Error::Unhandled(inner),
2001 }
2002 }
2003}
2004impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app::DeleteAppError, R>> for Error
2005where
2006 R: Send + Sync + std::fmt::Debug + 'static,
2007{
2008 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app::DeleteAppError, R>) -> Self {
2009 match err {
2010 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2011 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2012 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2013 source: err.into(),
2014 }),
2015 }
2016 }
2017}
2018impl From<crate::operation::delete_app::DeleteAppError> for Error {
2019 fn from(err: crate::operation::delete_app::DeleteAppError) -> Self {
2020 match err {
2021 crate::operation::delete_app::DeleteAppError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2022 crate::operation::delete_app::DeleteAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2023 crate::operation::delete_app::DeleteAppError::Unhandled(inner) => Error::Unhandled(inner),
2024 }
2025 }
2026}
2027impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_image_config::DeleteAppImageConfigError, R>> for Error
2028where
2029 R: Send + Sync + std::fmt::Debug + 'static,
2030{
2031 fn from(
2032 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_image_config::DeleteAppImageConfigError, R>,
2033 ) -> Self {
2034 match err {
2035 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2036 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2037 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2038 source: err.into(),
2039 }),
2040 }
2041 }
2042}
2043impl From<crate::operation::delete_app_image_config::DeleteAppImageConfigError> for Error {
2044 fn from(err: crate::operation::delete_app_image_config::DeleteAppImageConfigError) -> Self {
2045 match err {
2046 crate::operation::delete_app_image_config::DeleteAppImageConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2047 crate::operation::delete_app_image_config::DeleteAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
2048 }
2049 }
2050}
2051impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_artifact::DeleteArtifactError, R>> for Error
2052where
2053 R: Send + Sync + std::fmt::Debug + 'static,
2054{
2055 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_artifact::DeleteArtifactError, R>) -> Self {
2056 match err {
2057 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2058 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2059 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2060 source: err.into(),
2061 }),
2062 }
2063 }
2064}
2065impl From<crate::operation::delete_artifact::DeleteArtifactError> for Error {
2066 fn from(err: crate::operation::delete_artifact::DeleteArtifactError) -> Self {
2067 match err {
2068 crate::operation::delete_artifact::DeleteArtifactError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2069 crate::operation::delete_artifact::DeleteArtifactError::Unhandled(inner) => Error::Unhandled(inner),
2070 }
2071 }
2072}
2073impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_association::DeleteAssociationError, R>> for Error
2074where
2075 R: Send + Sync + std::fmt::Debug + 'static,
2076{
2077 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_association::DeleteAssociationError, R>) -> Self {
2078 match err {
2079 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2080 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2081 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2082 source: err.into(),
2083 }),
2084 }
2085 }
2086}
2087impl From<crate::operation::delete_association::DeleteAssociationError> for Error {
2088 fn from(err: crate::operation::delete_association::DeleteAssociationError) -> Self {
2089 match err {
2090 crate::operation::delete_association::DeleteAssociationError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2091 crate::operation::delete_association::DeleteAssociationError::Unhandled(inner) => Error::Unhandled(inner),
2092 }
2093 }
2094}
2095impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster::DeleteClusterError, R>> for Error
2096where
2097 R: Send + Sync + std::fmt::Debug + 'static,
2098{
2099 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster::DeleteClusterError, R>) -> Self {
2100 match err {
2101 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2102 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2103 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2104 source: err.into(),
2105 }),
2106 }
2107 }
2108}
2109impl From<crate::operation::delete_cluster::DeleteClusterError> for Error {
2110 fn from(err: crate::operation::delete_cluster::DeleteClusterError) -> Self {
2111 match err {
2112 crate::operation::delete_cluster::DeleteClusterError::ConflictException(inner) => Error::ConflictException(inner),
2113 crate::operation::delete_cluster::DeleteClusterError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2114 crate::operation::delete_cluster::DeleteClusterError::Unhandled(inner) => Error::Unhandled(inner),
2115 }
2116 }
2117}
2118impl<R>
2119 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError, R>>
2120 for Error
2121where
2122 R: Send + Sync + std::fmt::Debug + 'static,
2123{
2124 fn from(
2125 err: ::aws_smithy_runtime_api::client::result::SdkError<
2126 crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError,
2127 R,
2128 >,
2129 ) -> Self {
2130 match err {
2131 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2132 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2133 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2134 source: err.into(),
2135 }),
2136 }
2137 }
2138}
2139impl From<crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError> for Error {
2140 fn from(err: crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError) -> Self {
2141 match err {
2142 crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError::ResourceNotFound(inner) => {
2143 Error::ResourceNotFound(inner)
2144 }
2145 crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
2146 }
2147 }
2148}
2149impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_code_repository::DeleteCodeRepositoryError, R>> for Error
2150where
2151 R: Send + Sync + std::fmt::Debug + 'static,
2152{
2153 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_code_repository::DeleteCodeRepositoryError, R>) -> Self {
2154 match err {
2155 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2156 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2157 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2158 source: err.into(),
2159 }),
2160 }
2161 }
2162}
2163impl From<crate::operation::delete_code_repository::DeleteCodeRepositoryError> for Error {
2164 fn from(err: crate::operation::delete_code_repository::DeleteCodeRepositoryError) -> Self {
2165 match err {
2166 crate::operation::delete_code_repository::DeleteCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
2167 }
2168 }
2169}
2170impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compilation_job::DeleteCompilationJobError, 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_compilation_job::DeleteCompilationJobError, 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_compilation_job::DeleteCompilationJobError> for Error {
2185 fn from(err: crate::operation::delete_compilation_job::DeleteCompilationJobError) -> Self {
2186 match err {
2187 crate::operation::delete_compilation_job::DeleteCompilationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2188 crate::operation::delete_compilation_job::DeleteCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
2189 }
2190 }
2191}
2192impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compute_quota::DeleteComputeQuotaError, R>> for Error
2193where
2194 R: Send + Sync + std::fmt::Debug + 'static,
2195{
2196 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compute_quota::DeleteComputeQuotaError, R>) -> Self {
2197 match err {
2198 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2199 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2200 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2201 source: err.into(),
2202 }),
2203 }
2204 }
2205}
2206impl From<crate::operation::delete_compute_quota::DeleteComputeQuotaError> for Error {
2207 fn from(err: crate::operation::delete_compute_quota::DeleteComputeQuotaError) -> Self {
2208 match err {
2209 crate::operation::delete_compute_quota::DeleteComputeQuotaError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2210 crate::operation::delete_compute_quota::DeleteComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
2211 }
2212 }
2213}
2214impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_context::DeleteContextError, R>> for Error
2215where
2216 R: Send + Sync + std::fmt::Debug + 'static,
2217{
2218 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_context::DeleteContextError, R>) -> Self {
2219 match err {
2220 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2221 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2222 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2223 source: err.into(),
2224 }),
2225 }
2226 }
2227}
2228impl From<crate::operation::delete_context::DeleteContextError> for Error {
2229 fn from(err: crate::operation::delete_context::DeleteContextError) -> Self {
2230 match err {
2231 crate::operation::delete_context::DeleteContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2232 crate::operation::delete_context::DeleteContextError::Unhandled(inner) => Error::Unhandled(inner),
2233 }
2234 }
2235}
2236impl<R>
2237 From<
2238 ::aws_smithy_runtime_api::client::result::SdkError<
2239 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError,
2240 R,
2241 >,
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<
2248 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError,
2249 R,
2250 >,
2251 ) -> Self {
2252 match err {
2253 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2254 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2255 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2256 source: err.into(),
2257 }),
2258 }
2259 }
2260}
2261impl From<crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError> for Error {
2262 fn from(err: crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError) -> Self {
2263 match err {
2264 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError::ResourceNotFound(inner) => {
2265 Error::ResourceNotFound(inner)
2266 }
2267 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2268 }
2269 }
2270}
2271impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device_fleet::DeleteDeviceFleetError, R>> for Error
2272where
2273 R: Send + Sync + std::fmt::Debug + 'static,
2274{
2275 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device_fleet::DeleteDeviceFleetError, R>) -> Self {
2276 match err {
2277 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2278 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2279 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2280 source: err.into(),
2281 }),
2282 }
2283 }
2284}
2285impl From<crate::operation::delete_device_fleet::DeleteDeviceFleetError> for Error {
2286 fn from(err: crate::operation::delete_device_fleet::DeleteDeviceFleetError) -> Self {
2287 match err {
2288 crate::operation::delete_device_fleet::DeleteDeviceFleetError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2289 crate::operation::delete_device_fleet::DeleteDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
2290 }
2291 }
2292}
2293impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>> for Error
2294where
2295 R: Send + Sync + std::fmt::Debug + 'static,
2296{
2297 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>) -> Self {
2298 match err {
2299 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2300 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2301 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2302 source: err.into(),
2303 }),
2304 }
2305 }
2306}
2307impl From<crate::operation::delete_domain::DeleteDomainError> for Error {
2308 fn from(err: crate::operation::delete_domain::DeleteDomainError) -> Self {
2309 match err {
2310 crate::operation::delete_domain::DeleteDomainError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2311 crate::operation::delete_domain::DeleteDomainError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2312 crate::operation::delete_domain::DeleteDomainError::Unhandled(inner) => Error::Unhandled(inner),
2313 }
2314 }
2315}
2316impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError, R>>
2317 for Error
2318where
2319 R: Send + Sync + std::fmt::Debug + 'static,
2320{
2321 fn from(
2322 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError, R>,
2323 ) -> Self {
2324 match err {
2325 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2326 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2327 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2328 source: err.into(),
2329 }),
2330 }
2331 }
2332}
2333impl From<crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError> for Error {
2334 fn from(err: crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError) -> Self {
2335 match err {
2336 crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2337 crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError::Unhandled(inner) => Error::Unhandled(inner),
2338 }
2339 }
2340}
2341impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError, R>>
2342 for Error
2343where
2344 R: Send + Sync + std::fmt::Debug + 'static,
2345{
2346 fn from(
2347 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError, R>,
2348 ) -> Self {
2349 match err {
2350 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2351 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2352 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2353 source: err.into(),
2354 }),
2355 }
2356 }
2357}
2358impl From<crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError> for Error {
2359 fn from(err: crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError) -> Self {
2360 match err {
2361 crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2362 crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
2363 }
2364 }
2365}
2366impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint::DeleteEndpointError, R>> for Error
2367where
2368 R: Send + Sync + std::fmt::Debug + 'static,
2369{
2370 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint::DeleteEndpointError, R>) -> Self {
2371 match err {
2372 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2373 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2374 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2375 source: err.into(),
2376 }),
2377 }
2378 }
2379}
2380impl From<crate::operation::delete_endpoint::DeleteEndpointError> for Error {
2381 fn from(err: crate::operation::delete_endpoint::DeleteEndpointError) -> Self {
2382 match err {
2383 crate::operation::delete_endpoint::DeleteEndpointError::Unhandled(inner) => Error::Unhandled(inner),
2384 }
2385 }
2386}
2387impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint_config::DeleteEndpointConfigError, R>> for Error
2388where
2389 R: Send + Sync + std::fmt::Debug + 'static,
2390{
2391 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint_config::DeleteEndpointConfigError, R>) -> Self {
2392 match err {
2393 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2394 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2395 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2396 source: err.into(),
2397 }),
2398 }
2399 }
2400}
2401impl From<crate::operation::delete_endpoint_config::DeleteEndpointConfigError> for Error {
2402 fn from(err: crate::operation::delete_endpoint_config::DeleteEndpointConfigError) -> Self {
2403 match err {
2404 crate::operation::delete_endpoint_config::DeleteEndpointConfigError::Unhandled(inner) => Error::Unhandled(inner),
2405 }
2406 }
2407}
2408impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_experiment::DeleteExperimentError, R>> for Error
2409where
2410 R: Send + Sync + std::fmt::Debug + 'static,
2411{
2412 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_experiment::DeleteExperimentError, R>) -> Self {
2413 match err {
2414 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2415 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2416 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2417 source: err.into(),
2418 }),
2419 }
2420 }
2421}
2422impl From<crate::operation::delete_experiment::DeleteExperimentError> for Error {
2423 fn from(err: crate::operation::delete_experiment::DeleteExperimentError) -> Self {
2424 match err {
2425 crate::operation::delete_experiment::DeleteExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2426 crate::operation::delete_experiment::DeleteExperimentError::Unhandled(inner) => Error::Unhandled(inner),
2427 }
2428 }
2429}
2430impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feature_group::DeleteFeatureGroupError, R>> for Error
2431where
2432 R: Send + Sync + std::fmt::Debug + 'static,
2433{
2434 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feature_group::DeleteFeatureGroupError, R>) -> Self {
2435 match err {
2436 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2437 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2438 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2439 source: err.into(),
2440 }),
2441 }
2442 }
2443}
2444impl From<crate::operation::delete_feature_group::DeleteFeatureGroupError> for Error {
2445 fn from(err: crate::operation::delete_feature_group::DeleteFeatureGroupError) -> Self {
2446 match err {
2447 crate::operation::delete_feature_group::DeleteFeatureGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2448 crate::operation::delete_feature_group::DeleteFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
2449 }
2450 }
2451}
2452impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_definition::DeleteFlowDefinitionError, R>> for Error
2453where
2454 R: Send + Sync + std::fmt::Debug + 'static,
2455{
2456 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_definition::DeleteFlowDefinitionError, R>) -> Self {
2457 match err {
2458 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2459 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2460 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2461 source: err.into(),
2462 }),
2463 }
2464 }
2465}
2466impl From<crate::operation::delete_flow_definition::DeleteFlowDefinitionError> for Error {
2467 fn from(err: crate::operation::delete_flow_definition::DeleteFlowDefinitionError) -> Self {
2468 match err {
2469 crate::operation::delete_flow_definition::DeleteFlowDefinitionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2470 crate::operation::delete_flow_definition::DeleteFlowDefinitionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2471 crate::operation::delete_flow_definition::DeleteFlowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2472 }
2473 }
2474}
2475impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub::DeleteHubError, R>> for Error
2476where
2477 R: Send + Sync + std::fmt::Debug + 'static,
2478{
2479 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub::DeleteHubError, R>) -> Self {
2480 match err {
2481 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2482 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2483 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2484 source: err.into(),
2485 }),
2486 }
2487 }
2488}
2489impl From<crate::operation::delete_hub::DeleteHubError> for Error {
2490 fn from(err: crate::operation::delete_hub::DeleteHubError) -> Self {
2491 match err {
2492 crate::operation::delete_hub::DeleteHubError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2493 crate::operation::delete_hub::DeleteHubError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2494 crate::operation::delete_hub::DeleteHubError::Unhandled(inner) => Error::Unhandled(inner),
2495 }
2496 }
2497}
2498impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content::DeleteHubContentError, R>> for Error
2499where
2500 R: Send + Sync + std::fmt::Debug + 'static,
2501{
2502 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content::DeleteHubContentError, R>) -> Self {
2503 match err {
2504 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2505 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2506 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2507 source: err.into(),
2508 }),
2509 }
2510 }
2511}
2512impl From<crate::operation::delete_hub_content::DeleteHubContentError> for Error {
2513 fn from(err: crate::operation::delete_hub_content::DeleteHubContentError) -> Self {
2514 match err {
2515 crate::operation::delete_hub_content::DeleteHubContentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2516 crate::operation::delete_hub_content::DeleteHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2517 crate::operation::delete_hub_content::DeleteHubContentError::Unhandled(inner) => Error::Unhandled(inner),
2518 }
2519 }
2520}
2521impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError, R>>
2522 for Error
2523where
2524 R: Send + Sync + std::fmt::Debug + 'static,
2525{
2526 fn from(
2527 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError, R>,
2528 ) -> Self {
2529 match err {
2530 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2531 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2532 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2533 source: err.into(),
2534 }),
2535 }
2536 }
2537}
2538impl From<crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError> for Error {
2539 fn from(err: crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError) -> Self {
2540 match err {
2541 crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2542 crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError::Unhandled(inner) => Error::Unhandled(inner),
2543 }
2544 }
2545}
2546impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_human_task_ui::DeleteHumanTaskUiError, R>> for Error
2547where
2548 R: Send + Sync + std::fmt::Debug + 'static,
2549{
2550 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_human_task_ui::DeleteHumanTaskUiError, R>) -> Self {
2551 match err {
2552 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2553 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2554 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2555 source: err.into(),
2556 }),
2557 }
2558 }
2559}
2560impl From<crate::operation::delete_human_task_ui::DeleteHumanTaskUiError> for Error {
2561 fn from(err: crate::operation::delete_human_task_ui::DeleteHumanTaskUiError) -> Self {
2562 match err {
2563 crate::operation::delete_human_task_ui::DeleteHumanTaskUiError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2564 crate::operation::delete_human_task_ui::DeleteHumanTaskUiError::Unhandled(inner) => Error::Unhandled(inner),
2565 }
2566 }
2567}
2568impl<R>
2569 From<
2570 ::aws_smithy_runtime_api::client::result::SdkError<
2571 crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError,
2572 R,
2573 >,
2574 > for Error
2575where
2576 R: Send + Sync + std::fmt::Debug + 'static,
2577{
2578 fn from(
2579 err: ::aws_smithy_runtime_api::client::result::SdkError<
2580 crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError,
2581 R,
2582 >,
2583 ) -> Self {
2584 match err {
2585 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2586 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2587 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2588 source: err.into(),
2589 }),
2590 }
2591 }
2592}
2593impl From<crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError> for Error {
2594 fn from(err: crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError) -> Self {
2595 match err {
2596 crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
2597 }
2598 }
2599}
2600impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image::DeleteImageError, R>> for Error
2601where
2602 R: Send + Sync + std::fmt::Debug + 'static,
2603{
2604 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image::DeleteImageError, R>) -> Self {
2605 match err {
2606 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2607 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2608 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2609 source: err.into(),
2610 }),
2611 }
2612 }
2613}
2614impl From<crate::operation::delete_image::DeleteImageError> for Error {
2615 fn from(err: crate::operation::delete_image::DeleteImageError) -> Self {
2616 match err {
2617 crate::operation::delete_image::DeleteImageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2618 crate::operation::delete_image::DeleteImageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2619 crate::operation::delete_image::DeleteImageError::Unhandled(inner) => Error::Unhandled(inner),
2620 }
2621 }
2622}
2623impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_version::DeleteImageVersionError, R>> for Error
2624where
2625 R: Send + Sync + std::fmt::Debug + 'static,
2626{
2627 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_version::DeleteImageVersionError, R>) -> Self {
2628 match err {
2629 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2630 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2631 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2632 source: err.into(),
2633 }),
2634 }
2635 }
2636}
2637impl From<crate::operation::delete_image_version::DeleteImageVersionError> for Error {
2638 fn from(err: crate::operation::delete_image_version::DeleteImageVersionError) -> Self {
2639 match err {
2640 crate::operation::delete_image_version::DeleteImageVersionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2641 crate::operation::delete_image_version::DeleteImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2642 crate::operation::delete_image_version::DeleteImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
2643 }
2644 }
2645}
2646impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_component::DeleteInferenceComponentError, R>>
2647 for Error
2648where
2649 R: Send + Sync + std::fmt::Debug + 'static,
2650{
2651 fn from(
2652 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_component::DeleteInferenceComponentError, R>,
2653 ) -> Self {
2654 match err {
2655 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2656 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2657 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2658 source: err.into(),
2659 }),
2660 }
2661 }
2662}
2663impl From<crate::operation::delete_inference_component::DeleteInferenceComponentError> for Error {
2664 fn from(err: crate::operation::delete_inference_component::DeleteInferenceComponentError) -> Self {
2665 match err {
2666 crate::operation::delete_inference_component::DeleteInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
2667 }
2668 }
2669}
2670impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_experiment::DeleteInferenceExperimentError, R>>
2671 for Error
2672where
2673 R: Send + Sync + std::fmt::Debug + 'static,
2674{
2675 fn from(
2676 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_experiment::DeleteInferenceExperimentError, R>,
2677 ) -> Self {
2678 match err {
2679 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2680 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2681 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2682 source: err.into(),
2683 }),
2684 }
2685 }
2686}
2687impl From<crate::operation::delete_inference_experiment::DeleteInferenceExperimentError> for Error {
2688 fn from(err: crate::operation::delete_inference_experiment::DeleteInferenceExperimentError) -> Self {
2689 match err {
2690 crate::operation::delete_inference_experiment::DeleteInferenceExperimentError::ConflictException(inner) => {
2691 Error::ConflictException(inner)
2692 }
2693 crate::operation::delete_inference_experiment::DeleteInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2694 crate::operation::delete_inference_experiment::DeleteInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
2695 }
2696 }
2697}
2698impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError, R>>
2699 for Error
2700where
2701 R: Send + Sync + std::fmt::Debug + 'static,
2702{
2703 fn from(
2704 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError, R>,
2705 ) -> Self {
2706 match err {
2707 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2708 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2709 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2710 source: err.into(),
2711 }),
2712 }
2713 }
2714}
2715impl From<crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError> for Error {
2716 fn from(err: crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError) -> Self {
2717 match err {
2718 crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError::ResourceNotFound(inner) => {
2719 Error::ResourceNotFound(inner)
2720 }
2721 crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
2722 }
2723 }
2724}
2725impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model::DeleteModelError, R>> for Error
2726where
2727 R: Send + Sync + std::fmt::Debug + 'static,
2728{
2729 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model::DeleteModelError, R>) -> Self {
2730 match err {
2731 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2732 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2733 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2734 source: err.into(),
2735 }),
2736 }
2737 }
2738}
2739impl From<crate::operation::delete_model::DeleteModelError> for Error {
2740 fn from(err: crate::operation::delete_model::DeleteModelError) -> Self {
2741 match err {
2742 crate::operation::delete_model::DeleteModelError::Unhandled(inner) => Error::Unhandled(inner),
2743 }
2744 }
2745}
2746impl<R>
2747 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError, R>>
2748 for Error
2749where
2750 R: Send + Sync + std::fmt::Debug + 'static,
2751{
2752 fn from(
2753 err: ::aws_smithy_runtime_api::client::result::SdkError<
2754 crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError,
2755 R,
2756 >,
2757 ) -> Self {
2758 match err {
2759 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2760 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2761 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2762 source: err.into(),
2763 }),
2764 }
2765 }
2766}
2767impl From<crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError> for Error {
2768 fn from(err: crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError) -> Self {
2769 match err {
2770 crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError::ResourceNotFound(inner) => {
2771 Error::ResourceNotFound(inner)
2772 }
2773 crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2774 }
2775 }
2776}
2777impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_card::DeleteModelCardError, R>> for Error
2778where
2779 R: Send + Sync + std::fmt::Debug + 'static,
2780{
2781 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_card::DeleteModelCardError, R>) -> Self {
2782 match err {
2783 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2784 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2785 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2786 source: err.into(),
2787 }),
2788 }
2789 }
2790}
2791impl From<crate::operation::delete_model_card::DeleteModelCardError> for Error {
2792 fn from(err: crate::operation::delete_model_card::DeleteModelCardError) -> Self {
2793 match err {
2794 crate::operation::delete_model_card::DeleteModelCardError::ConflictException(inner) => Error::ConflictException(inner),
2795 crate::operation::delete_model_card::DeleteModelCardError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2796 crate::operation::delete_model_card::DeleteModelCardError::Unhandled(inner) => Error::Unhandled(inner),
2797 }
2798 }
2799}
2800impl<R>
2801 From<
2802 ::aws_smithy_runtime_api::client::result::SdkError<
2803 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError,
2804 R,
2805 >,
2806 > for Error
2807where
2808 R: Send + Sync + std::fmt::Debug + 'static,
2809{
2810 fn from(
2811 err: ::aws_smithy_runtime_api::client::result::SdkError<
2812 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError,
2813 R,
2814 >,
2815 ) -> Self {
2816 match err {
2817 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2818 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2819 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2820 source: err.into(),
2821 }),
2822 }
2823 }
2824}
2825impl From<crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError> for Error {
2826 fn from(err: crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError) -> Self {
2827 match err {
2828 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError::ResourceNotFound(inner) => {
2829 Error::ResourceNotFound(inner)
2830 }
2831 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError::Unhandled(inner) => {
2832 Error::Unhandled(inner)
2833 }
2834 }
2835 }
2836}
2837impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package::DeleteModelPackageError, R>> for Error
2838where
2839 R: Send + Sync + std::fmt::Debug + 'static,
2840{
2841 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package::DeleteModelPackageError, R>) -> Self {
2842 match err {
2843 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2844 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2845 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2846 source: err.into(),
2847 }),
2848 }
2849 }
2850}
2851impl From<crate::operation::delete_model_package::DeleteModelPackageError> for Error {
2852 fn from(err: crate::operation::delete_model_package::DeleteModelPackageError) -> Self {
2853 match err {
2854 crate::operation::delete_model_package::DeleteModelPackageError::ConflictException(inner) => Error::ConflictException(inner),
2855 crate::operation::delete_model_package::DeleteModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
2856 }
2857 }
2858}
2859impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package_group::DeleteModelPackageGroupError, R>>
2860 for Error
2861where
2862 R: Send + Sync + std::fmt::Debug + 'static,
2863{
2864 fn from(
2865 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package_group::DeleteModelPackageGroupError, R>,
2866 ) -> Self {
2867 match err {
2868 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2869 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2870 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2871 source: err.into(),
2872 }),
2873 }
2874 }
2875}
2876impl From<crate::operation::delete_model_package_group::DeleteModelPackageGroupError> for Error {
2877 fn from(err: crate::operation::delete_model_package_group::DeleteModelPackageGroupError) -> Self {
2878 match err {
2879 crate::operation::delete_model_package_group::DeleteModelPackageGroupError::ConflictException(inner) => Error::ConflictException(inner),
2880 crate::operation::delete_model_package_group::DeleteModelPackageGroupError::Unhandled(inner) => Error::Unhandled(inner),
2881 }
2882 }
2883}
2884impl<R>
2885 From<
2886 ::aws_smithy_runtime_api::client::result::SdkError<
2887 crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError,
2888 R,
2889 >,
2890 > for Error
2891where
2892 R: Send + Sync + std::fmt::Debug + 'static,
2893{
2894 fn from(
2895 err: ::aws_smithy_runtime_api::client::result::SdkError<
2896 crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError,
2897 R,
2898 >,
2899 ) -> Self {
2900 match err {
2901 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2902 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2903 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2904 source: err.into(),
2905 }),
2906 }
2907 }
2908}
2909impl From<crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError> for Error {
2910 fn from(err: crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError) -> Self {
2911 match err {
2912 crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2913 }
2914 }
2915}
2916impl<R>
2917 From<
2918 ::aws_smithy_runtime_api::client::result::SdkError<
2919 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError,
2920 R,
2921 >,
2922 > for Error
2923where
2924 R: Send + Sync + std::fmt::Debug + 'static,
2925{
2926 fn from(
2927 err: ::aws_smithy_runtime_api::client::result::SdkError<
2928 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError,
2929 R,
2930 >,
2931 ) -> Self {
2932 match err {
2933 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2934 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2935 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2936 source: err.into(),
2937 }),
2938 }
2939 }
2940}
2941impl From<crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError> for Error {
2942 fn from(err: crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError) -> Self {
2943 match err {
2944 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError::ResourceNotFound(inner) => {
2945 Error::ResourceNotFound(inner)
2946 }
2947 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2948 }
2949 }
2950}
2951impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError, R>>
2952 for Error
2953where
2954 R: Send + Sync + std::fmt::Debug + 'static,
2955{
2956 fn from(
2957 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError, R>,
2958 ) -> Self {
2959 match err {
2960 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2961 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2962 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2963 source: err.into(),
2964 }),
2965 }
2966 }
2967}
2968impl From<crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError> for Error {
2969 fn from(err: crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError) -> Self {
2970 match err {
2971 crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2972 crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
2973 }
2974 }
2975}
2976impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notebook_instance::DeleteNotebookInstanceError, R>> for Error
2977where
2978 R: Send + Sync + std::fmt::Debug + 'static,
2979{
2980 fn from(
2981 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notebook_instance::DeleteNotebookInstanceError, R>,
2982 ) -> Self {
2983 match err {
2984 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2985 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2986 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2987 source: err.into(),
2988 }),
2989 }
2990 }
2991}
2992impl From<crate::operation::delete_notebook_instance::DeleteNotebookInstanceError> for Error {
2993 fn from(err: crate::operation::delete_notebook_instance::DeleteNotebookInstanceError) -> Self {
2994 match err {
2995 crate::operation::delete_notebook_instance::DeleteNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
2996 }
2997 }
2998}
2999impl<R>
3000 From<
3001 ::aws_smithy_runtime_api::client::result::SdkError<
3002 crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError,
3003 R,
3004 >,
3005 > for Error
3006where
3007 R: Send + Sync + std::fmt::Debug + 'static,
3008{
3009 fn from(
3010 err: ::aws_smithy_runtime_api::client::result::SdkError<
3011 crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError,
3012 R,
3013 >,
3014 ) -> Self {
3015 match err {
3016 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3017 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3018 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3019 source: err.into(),
3020 }),
3021 }
3022 }
3023}
3024impl From<crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError> for Error {
3025 fn from(err: crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError) -> Self {
3026 match err {
3027 crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
3028 Error::Unhandled(inner)
3029 }
3030 }
3031 }
3032}
3033impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_optimization_job::DeleteOptimizationJobError, R>> for Error
3034where
3035 R: Send + Sync + std::fmt::Debug + 'static,
3036{
3037 fn from(
3038 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_optimization_job::DeleteOptimizationJobError, R>,
3039 ) -> Self {
3040 match err {
3041 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3042 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3043 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3044 source: err.into(),
3045 }),
3046 }
3047 }
3048}
3049impl From<crate::operation::delete_optimization_job::DeleteOptimizationJobError> for Error {
3050 fn from(err: crate::operation::delete_optimization_job::DeleteOptimizationJobError) -> Self {
3051 match err {
3052 crate::operation::delete_optimization_job::DeleteOptimizationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3053 crate::operation::delete_optimization_job::DeleteOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
3054 }
3055 }
3056}
3057impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_partner_app::DeletePartnerAppError, R>> for Error
3058where
3059 R: Send + Sync + std::fmt::Debug + 'static,
3060{
3061 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_partner_app::DeletePartnerAppError, R>) -> Self {
3062 match err {
3063 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3064 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3065 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3066 source: err.into(),
3067 }),
3068 }
3069 }
3070}
3071impl From<crate::operation::delete_partner_app::DeletePartnerAppError> for Error {
3072 fn from(err: crate::operation::delete_partner_app::DeletePartnerAppError) -> Self {
3073 match err {
3074 crate::operation::delete_partner_app::DeletePartnerAppError::ConflictException(inner) => Error::ConflictException(inner),
3075 crate::operation::delete_partner_app::DeletePartnerAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3076 crate::operation::delete_partner_app::DeletePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
3077 }
3078 }
3079}
3080impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pipeline::DeletePipelineError, R>> for Error
3081where
3082 R: Send + Sync + std::fmt::Debug + 'static,
3083{
3084 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pipeline::DeletePipelineError, R>) -> Self {
3085 match err {
3086 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3087 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3088 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3089 source: err.into(),
3090 }),
3091 }
3092 }
3093}
3094impl From<crate::operation::delete_pipeline::DeletePipelineError> for Error {
3095 fn from(err: crate::operation::delete_pipeline::DeletePipelineError) -> Self {
3096 match err {
3097 crate::operation::delete_pipeline::DeletePipelineError::ConflictException(inner) => Error::ConflictException(inner),
3098 crate::operation::delete_pipeline::DeletePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3099 crate::operation::delete_pipeline::DeletePipelineError::Unhandled(inner) => Error::Unhandled(inner),
3100 }
3101 }
3102}
3103impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_processing_job::DeleteProcessingJobError, R>> for Error
3104where
3105 R: Send + Sync + std::fmt::Debug + 'static,
3106{
3107 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_processing_job::DeleteProcessingJobError, R>) -> Self {
3108 match err {
3109 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3110 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3111 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3112 source: err.into(),
3113 }),
3114 }
3115 }
3116}
3117impl From<crate::operation::delete_processing_job::DeleteProcessingJobError> for Error {
3118 fn from(err: crate::operation::delete_processing_job::DeleteProcessingJobError) -> Self {
3119 match err {
3120 crate::operation::delete_processing_job::DeleteProcessingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3121 crate::operation::delete_processing_job::DeleteProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3122 crate::operation::delete_processing_job::DeleteProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
3123 }
3124 }
3125}
3126impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>> for Error
3127where
3128 R: Send + Sync + std::fmt::Debug + 'static,
3129{
3130 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>) -> Self {
3131 match err {
3132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3135 source: err.into(),
3136 }),
3137 }
3138 }
3139}
3140impl From<crate::operation::delete_project::DeleteProjectError> for Error {
3141 fn from(err: crate::operation::delete_project::DeleteProjectError) -> Self {
3142 match err {
3143 crate::operation::delete_project::DeleteProjectError::ConflictException(inner) => Error::ConflictException(inner),
3144 crate::operation::delete_project::DeleteProjectError::Unhandled(inner) => Error::Unhandled(inner),
3145 }
3146 }
3147}
3148impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_space::DeleteSpaceError, R>> for Error
3149where
3150 R: Send + Sync + std::fmt::Debug + 'static,
3151{
3152 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_space::DeleteSpaceError, R>) -> Self {
3153 match err {
3154 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3155 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3156 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3157 source: err.into(),
3158 }),
3159 }
3160 }
3161}
3162impl From<crate::operation::delete_space::DeleteSpaceError> for Error {
3163 fn from(err: crate::operation::delete_space::DeleteSpaceError) -> Self {
3164 match err {
3165 crate::operation::delete_space::DeleteSpaceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3166 crate::operation::delete_space::DeleteSpaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3167 crate::operation::delete_space::DeleteSpaceError::Unhandled(inner) => Error::Unhandled(inner),
3168 }
3169 }
3170}
3171impl<R>
3172 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError, R>>
3173 for Error
3174where
3175 R: Send + Sync + std::fmt::Debug + 'static,
3176{
3177 fn from(
3178 err: ::aws_smithy_runtime_api::client::result::SdkError<
3179 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError,
3180 R,
3181 >,
3182 ) -> Self {
3183 match err {
3184 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3185 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3186 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3187 source: err.into(),
3188 }),
3189 }
3190 }
3191}
3192impl From<crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError> for Error {
3193 fn from(err: crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError) -> Self {
3194 match err {
3195 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3196 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError::ResourceNotFound(inner) => {
3197 Error::ResourceNotFound(inner)
3198 }
3199 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError::Unhandled(inner) => Error::Unhandled(inner),
3200 }
3201 }
3202}
3203impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>> for Error
3204where
3205 R: Send + Sync + std::fmt::Debug + 'static,
3206{
3207 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>) -> Self {
3208 match err {
3209 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3210 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3211 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3212 source: err.into(),
3213 }),
3214 }
3215 }
3216}
3217impl From<crate::operation::delete_tags::DeleteTagsError> for Error {
3218 fn from(err: crate::operation::delete_tags::DeleteTagsError) -> Self {
3219 match err {
3220 crate::operation::delete_tags::DeleteTagsError::Unhandled(inner) => Error::Unhandled(inner),
3221 }
3222 }
3223}
3224impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_training_job::DeleteTrainingJobError, R>> for Error
3225where
3226 R: Send + Sync + std::fmt::Debug + 'static,
3227{
3228 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_training_job::DeleteTrainingJobError, R>) -> Self {
3229 match err {
3230 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3231 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3232 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3233 source: err.into(),
3234 }),
3235 }
3236 }
3237}
3238impl From<crate::operation::delete_training_job::DeleteTrainingJobError> for Error {
3239 fn from(err: crate::operation::delete_training_job::DeleteTrainingJobError) -> Self {
3240 match err {
3241 crate::operation::delete_training_job::DeleteTrainingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3242 crate::operation::delete_training_job::DeleteTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3243 crate::operation::delete_training_job::DeleteTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
3244 }
3245 }
3246}
3247impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial::DeleteTrialError, R>> for Error
3248where
3249 R: Send + Sync + std::fmt::Debug + 'static,
3250{
3251 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial::DeleteTrialError, R>) -> Self {
3252 match err {
3253 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3254 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3255 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3256 source: err.into(),
3257 }),
3258 }
3259 }
3260}
3261impl From<crate::operation::delete_trial::DeleteTrialError> for Error {
3262 fn from(err: crate::operation::delete_trial::DeleteTrialError) -> Self {
3263 match err {
3264 crate::operation::delete_trial::DeleteTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3265 crate::operation::delete_trial::DeleteTrialError::Unhandled(inner) => Error::Unhandled(inner),
3266 }
3267 }
3268}
3269impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial_component::DeleteTrialComponentError, R>> for Error
3270where
3271 R: Send + Sync + std::fmt::Debug + 'static,
3272{
3273 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial_component::DeleteTrialComponentError, R>) -> Self {
3274 match err {
3275 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3276 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3277 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3278 source: err.into(),
3279 }),
3280 }
3281 }
3282}
3283impl From<crate::operation::delete_trial_component::DeleteTrialComponentError> for Error {
3284 fn from(err: crate::operation::delete_trial_component::DeleteTrialComponentError) -> Self {
3285 match err {
3286 crate::operation::delete_trial_component::DeleteTrialComponentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3287 crate::operation::delete_trial_component::DeleteTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
3288 }
3289 }
3290}
3291impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_profile::DeleteUserProfileError, R>> for Error
3292where
3293 R: Send + Sync + std::fmt::Debug + 'static,
3294{
3295 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_profile::DeleteUserProfileError, R>) -> Self {
3296 match err {
3297 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3298 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3299 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3300 source: err.into(),
3301 }),
3302 }
3303 }
3304}
3305impl From<crate::operation::delete_user_profile::DeleteUserProfileError> for Error {
3306 fn from(err: crate::operation::delete_user_profile::DeleteUserProfileError) -> Self {
3307 match err {
3308 crate::operation::delete_user_profile::DeleteUserProfileError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3309 crate::operation::delete_user_profile::DeleteUserProfileError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3310 crate::operation::delete_user_profile::DeleteUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
3311 }
3312 }
3313}
3314impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workforce::DeleteWorkforceError, R>> for Error
3315where
3316 R: Send + Sync + std::fmt::Debug + 'static,
3317{
3318 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workforce::DeleteWorkforceError, R>) -> Self {
3319 match err {
3320 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3321 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3322 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3323 source: err.into(),
3324 }),
3325 }
3326 }
3327}
3328impl From<crate::operation::delete_workforce::DeleteWorkforceError> for Error {
3329 fn from(err: crate::operation::delete_workforce::DeleteWorkforceError) -> Self {
3330 match err {
3331 crate::operation::delete_workforce::DeleteWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
3332 }
3333 }
3334}
3335impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workteam::DeleteWorkteamError, R>> for Error
3336where
3337 R: Send + Sync + std::fmt::Debug + 'static,
3338{
3339 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workteam::DeleteWorkteamError, R>) -> Self {
3340 match err {
3341 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3342 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3343 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3344 source: err.into(),
3345 }),
3346 }
3347 }
3348}
3349impl From<crate::operation::delete_workteam::DeleteWorkteamError> for Error {
3350 fn from(err: crate::operation::delete_workteam::DeleteWorkteamError) -> Self {
3351 match err {
3352 crate::operation::delete_workteam::DeleteWorkteamError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
3353 crate::operation::delete_workteam::DeleteWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
3354 }
3355 }
3356}
3357impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_devices::DeregisterDevicesError, R>> for Error
3358where
3359 R: Send + Sync + std::fmt::Debug + 'static,
3360{
3361 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_devices::DeregisterDevicesError, R>) -> Self {
3362 match err {
3363 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3364 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3365 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3366 source: err.into(),
3367 }),
3368 }
3369 }
3370}
3371impl From<crate::operation::deregister_devices::DeregisterDevicesError> for Error {
3372 fn from(err: crate::operation::deregister_devices::DeregisterDevicesError) -> Self {
3373 match err {
3374 crate::operation::deregister_devices::DeregisterDevicesError::Unhandled(inner) => Error::Unhandled(inner),
3375 }
3376 }
3377}
3378impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_action::DescribeActionError, R>> for Error
3379where
3380 R: Send + Sync + std::fmt::Debug + 'static,
3381{
3382 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_action::DescribeActionError, R>) -> Self {
3383 match err {
3384 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3385 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3386 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3387 source: err.into(),
3388 }),
3389 }
3390 }
3391}
3392impl From<crate::operation::describe_action::DescribeActionError> for Error {
3393 fn from(err: crate::operation::describe_action::DescribeActionError) -> Self {
3394 match err {
3395 crate::operation::describe_action::DescribeActionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3396 crate::operation::describe_action::DescribeActionError::Unhandled(inner) => Error::Unhandled(inner),
3397 }
3398 }
3399}
3400impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_algorithm::DescribeAlgorithmError, R>> for Error
3401where
3402 R: Send + Sync + std::fmt::Debug + 'static,
3403{
3404 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_algorithm::DescribeAlgorithmError, R>) -> Self {
3405 match err {
3406 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3407 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3408 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3409 source: err.into(),
3410 }),
3411 }
3412 }
3413}
3414impl From<crate::operation::describe_algorithm::DescribeAlgorithmError> for Error {
3415 fn from(err: crate::operation::describe_algorithm::DescribeAlgorithmError) -> Self {
3416 match err {
3417 crate::operation::describe_algorithm::DescribeAlgorithmError::Unhandled(inner) => Error::Unhandled(inner),
3418 }
3419 }
3420}
3421impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app::DescribeAppError, R>> for Error
3422where
3423 R: Send + Sync + std::fmt::Debug + 'static,
3424{
3425 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app::DescribeAppError, R>) -> Self {
3426 match err {
3427 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3428 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3429 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3430 source: err.into(),
3431 }),
3432 }
3433 }
3434}
3435impl From<crate::operation::describe_app::DescribeAppError> for Error {
3436 fn from(err: crate::operation::describe_app::DescribeAppError) -> Self {
3437 match err {
3438 crate::operation::describe_app::DescribeAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3439 crate::operation::describe_app::DescribeAppError::Unhandled(inner) => Error::Unhandled(inner),
3440 }
3441 }
3442}
3443impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_image_config::DescribeAppImageConfigError, R>>
3444 for Error
3445where
3446 R: Send + Sync + std::fmt::Debug + 'static,
3447{
3448 fn from(
3449 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_image_config::DescribeAppImageConfigError, R>,
3450 ) -> Self {
3451 match err {
3452 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3453 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3454 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3455 source: err.into(),
3456 }),
3457 }
3458 }
3459}
3460impl From<crate::operation::describe_app_image_config::DescribeAppImageConfigError> for Error {
3461 fn from(err: crate::operation::describe_app_image_config::DescribeAppImageConfigError) -> Self {
3462 match err {
3463 crate::operation::describe_app_image_config::DescribeAppImageConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3464 crate::operation::describe_app_image_config::DescribeAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
3465 }
3466 }
3467}
3468impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_artifact::DescribeArtifactError, R>> for Error
3469where
3470 R: Send + Sync + std::fmt::Debug + 'static,
3471{
3472 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_artifact::DescribeArtifactError, R>) -> Self {
3473 match err {
3474 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3475 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3476 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3477 source: err.into(),
3478 }),
3479 }
3480 }
3481}
3482impl From<crate::operation::describe_artifact::DescribeArtifactError> for Error {
3483 fn from(err: crate::operation::describe_artifact::DescribeArtifactError) -> Self {
3484 match err {
3485 crate::operation::describe_artifact::DescribeArtifactError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3486 crate::operation::describe_artifact::DescribeArtifactError::Unhandled(inner) => Error::Unhandled(inner),
3487 }
3488 }
3489}
3490impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job::DescribeAutoMLJobError, R>> for Error
3491where
3492 R: Send + Sync + std::fmt::Debug + 'static,
3493{
3494 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job::DescribeAutoMLJobError, R>) -> Self {
3495 match err {
3496 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3497 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3498 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3499 source: err.into(),
3500 }),
3501 }
3502 }
3503}
3504impl From<crate::operation::describe_auto_ml_job::DescribeAutoMLJobError> for Error {
3505 fn from(err: crate::operation::describe_auto_ml_job::DescribeAutoMLJobError) -> Self {
3506 match err {
3507 crate::operation::describe_auto_ml_job::DescribeAutoMLJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3508 crate::operation::describe_auto_ml_job::DescribeAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
3509 }
3510 }
3511}
3512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error, R>> for Error
3513where
3514 R: Send + Sync + std::fmt::Debug + 'static,
3515{
3516 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error, R>) -> Self {
3517 match err {
3518 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3519 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3520 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3521 source: err.into(),
3522 }),
3523 }
3524 }
3525}
3526impl From<crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error> for Error {
3527 fn from(err: crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error) -> Self {
3528 match err {
3529 crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3530 crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error::Unhandled(inner) => Error::Unhandled(inner),
3531 }
3532 }
3533}
3534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster::DescribeClusterError, R>> for Error
3535where
3536 R: Send + Sync + std::fmt::Debug + 'static,
3537{
3538 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster::DescribeClusterError, R>) -> Self {
3539 match err {
3540 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3541 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3542 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3543 source: err.into(),
3544 }),
3545 }
3546 }
3547}
3548impl From<crate::operation::describe_cluster::DescribeClusterError> for Error {
3549 fn from(err: crate::operation::describe_cluster::DescribeClusterError) -> Self {
3550 match err {
3551 crate::operation::describe_cluster::DescribeClusterError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3552 crate::operation::describe_cluster::DescribeClusterError::Unhandled(inner) => Error::Unhandled(inner),
3553 }
3554 }
3555}
3556impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_event::DescribeClusterEventError, R>> for Error
3557where
3558 R: Send + Sync + std::fmt::Debug + 'static,
3559{
3560 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_event::DescribeClusterEventError, R>) -> Self {
3561 match err {
3562 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3563 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3564 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3565 source: err.into(),
3566 }),
3567 }
3568 }
3569}
3570impl From<crate::operation::describe_cluster_event::DescribeClusterEventError> for Error {
3571 fn from(err: crate::operation::describe_cluster_event::DescribeClusterEventError) -> Self {
3572 match err {
3573 crate::operation::describe_cluster_event::DescribeClusterEventError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3574 crate::operation::describe_cluster_event::DescribeClusterEventError::Unhandled(inner) => Error::Unhandled(inner),
3575 }
3576 }
3577}
3578impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_node::DescribeClusterNodeError, R>> for Error
3579where
3580 R: Send + Sync + std::fmt::Debug + 'static,
3581{
3582 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_node::DescribeClusterNodeError, R>) -> Self {
3583 match err {
3584 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3585 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3586 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3587 source: err.into(),
3588 }),
3589 }
3590 }
3591}
3592impl From<crate::operation::describe_cluster_node::DescribeClusterNodeError> for Error {
3593 fn from(err: crate::operation::describe_cluster_node::DescribeClusterNodeError) -> Self {
3594 match err {
3595 crate::operation::describe_cluster_node::DescribeClusterNodeError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3596 crate::operation::describe_cluster_node::DescribeClusterNodeError::Unhandled(inner) => Error::Unhandled(inner),
3597 }
3598 }
3599}
3600impl<R>
3601 From<
3602 ::aws_smithy_runtime_api::client::result::SdkError<
3603 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError,
3604 R,
3605 >,
3606 > for Error
3607where
3608 R: Send + Sync + std::fmt::Debug + 'static,
3609{
3610 fn from(
3611 err: ::aws_smithy_runtime_api::client::result::SdkError<
3612 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError,
3613 R,
3614 >,
3615 ) -> Self {
3616 match err {
3617 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3618 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3619 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3620 source: err.into(),
3621 }),
3622 }
3623 }
3624}
3625impl From<crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError> for Error {
3626 fn from(err: crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError) -> Self {
3627 match err {
3628 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError::ResourceNotFound(inner) => {
3629 Error::ResourceNotFound(inner)
3630 }
3631 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
3632 }
3633 }
3634}
3635impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_code_repository::DescribeCodeRepositoryError, R>> for Error
3636where
3637 R: Send + Sync + std::fmt::Debug + 'static,
3638{
3639 fn from(
3640 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_code_repository::DescribeCodeRepositoryError, R>,
3641 ) -> Self {
3642 match err {
3643 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3644 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3645 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3646 source: err.into(),
3647 }),
3648 }
3649 }
3650}
3651impl From<crate::operation::describe_code_repository::DescribeCodeRepositoryError> for Error {
3652 fn from(err: crate::operation::describe_code_repository::DescribeCodeRepositoryError) -> Self {
3653 match err {
3654 crate::operation::describe_code_repository::DescribeCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
3655 }
3656 }
3657}
3658impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compilation_job::DescribeCompilationJobError, R>> for Error
3659where
3660 R: Send + Sync + std::fmt::Debug + 'static,
3661{
3662 fn from(
3663 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compilation_job::DescribeCompilationJobError, R>,
3664 ) -> Self {
3665 match err {
3666 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3667 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3668 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3669 source: err.into(),
3670 }),
3671 }
3672 }
3673}
3674impl From<crate::operation::describe_compilation_job::DescribeCompilationJobError> for Error {
3675 fn from(err: crate::operation::describe_compilation_job::DescribeCompilationJobError) -> Self {
3676 match err {
3677 crate::operation::describe_compilation_job::DescribeCompilationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3678 crate::operation::describe_compilation_job::DescribeCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
3679 }
3680 }
3681}
3682impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compute_quota::DescribeComputeQuotaError, R>> for Error
3683where
3684 R: Send + Sync + std::fmt::Debug + 'static,
3685{
3686 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compute_quota::DescribeComputeQuotaError, R>) -> Self {
3687 match err {
3688 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3689 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3690 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3691 source: err.into(),
3692 }),
3693 }
3694 }
3695}
3696impl From<crate::operation::describe_compute_quota::DescribeComputeQuotaError> for Error {
3697 fn from(err: crate::operation::describe_compute_quota::DescribeComputeQuotaError) -> Self {
3698 match err {
3699 crate::operation::describe_compute_quota::DescribeComputeQuotaError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3700 crate::operation::describe_compute_quota::DescribeComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
3701 }
3702 }
3703}
3704impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_context::DescribeContextError, R>> for Error
3705where
3706 R: Send + Sync + std::fmt::Debug + 'static,
3707{
3708 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_context::DescribeContextError, R>) -> Self {
3709 match err {
3710 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3711 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3712 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3713 source: err.into(),
3714 }),
3715 }
3716 }
3717}
3718impl From<crate::operation::describe_context::DescribeContextError> for Error {
3719 fn from(err: crate::operation::describe_context::DescribeContextError) -> Self {
3720 match err {
3721 crate::operation::describe_context::DescribeContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3722 crate::operation::describe_context::DescribeContextError::Unhandled(inner) => Error::Unhandled(inner),
3723 }
3724 }
3725}
3726impl<R>
3727 From<
3728 ::aws_smithy_runtime_api::client::result::SdkError<
3729 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError,
3730 R,
3731 >,
3732 > for Error
3733where
3734 R: Send + Sync + std::fmt::Debug + 'static,
3735{
3736 fn from(
3737 err: ::aws_smithy_runtime_api::client::result::SdkError<
3738 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError,
3739 R,
3740 >,
3741 ) -> Self {
3742 match err {
3743 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3744 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3745 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3746 source: err.into(),
3747 }),
3748 }
3749 }
3750}
3751impl From<crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError> for Error {
3752 fn from(err: crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError) -> Self {
3753 match err {
3754 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError::ResourceNotFound(inner) => {
3755 Error::ResourceNotFound(inner)
3756 }
3757 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError::Unhandled(inner) => {
3758 Error::Unhandled(inner)
3759 }
3760 }
3761 }
3762}
3763impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device::DescribeDeviceError, R>> for Error
3764where
3765 R: Send + Sync + std::fmt::Debug + 'static,
3766{
3767 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device::DescribeDeviceError, R>) -> Self {
3768 match err {
3769 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3770 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3771 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3772 source: err.into(),
3773 }),
3774 }
3775 }
3776}
3777impl From<crate::operation::describe_device::DescribeDeviceError> for Error {
3778 fn from(err: crate::operation::describe_device::DescribeDeviceError) -> Self {
3779 match err {
3780 crate::operation::describe_device::DescribeDeviceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3781 crate::operation::describe_device::DescribeDeviceError::Unhandled(inner) => Error::Unhandled(inner),
3782 }
3783 }
3784}
3785impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device_fleet::DescribeDeviceFleetError, R>> for Error
3786where
3787 R: Send + Sync + std::fmt::Debug + 'static,
3788{
3789 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device_fleet::DescribeDeviceFleetError, R>) -> Self {
3790 match err {
3791 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3792 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3793 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3794 source: err.into(),
3795 }),
3796 }
3797 }
3798}
3799impl From<crate::operation::describe_device_fleet::DescribeDeviceFleetError> for Error {
3800 fn from(err: crate::operation::describe_device_fleet::DescribeDeviceFleetError) -> Self {
3801 match err {
3802 crate::operation::describe_device_fleet::DescribeDeviceFleetError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3803 crate::operation::describe_device_fleet::DescribeDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
3804 }
3805 }
3806}
3807impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_domain::DescribeDomainError, R>> for Error
3808where
3809 R: Send + Sync + std::fmt::Debug + 'static,
3810{
3811 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_domain::DescribeDomainError, R>) -> Self {
3812 match err {
3813 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3814 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3815 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3816 source: err.into(),
3817 }),
3818 }
3819 }
3820}
3821impl From<crate::operation::describe_domain::DescribeDomainError> for Error {
3822 fn from(err: crate::operation::describe_domain::DescribeDomainError) -> Self {
3823 match err {
3824 crate::operation::describe_domain::DescribeDomainError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3825 crate::operation::describe_domain::DescribeDomainError::Unhandled(inner) => Error::Unhandled(inner),
3826 }
3827 }
3828}
3829impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError, R>>
3830 for Error
3831where
3832 R: Send + Sync + std::fmt::Debug + 'static,
3833{
3834 fn from(
3835 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError, R>,
3836 ) -> 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_edge_deployment_plan::DescribeEdgeDeploymentPlanError> for Error {
3847 fn from(err: crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError) -> Self {
3848 match err {
3849 crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError::ResourceNotFound(inner) => {
3850 Error::ResourceNotFound(inner)
3851 }
3852 crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError::Unhandled(inner) => Error::Unhandled(inner),
3853 }
3854 }
3855}
3856impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError, R>>
3857 for Error
3858where
3859 R: Send + Sync + std::fmt::Debug + 'static,
3860{
3861 fn from(
3862 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError, R>,
3863 ) -> Self {
3864 match err {
3865 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3866 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3867 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3868 source: err.into(),
3869 }),
3870 }
3871 }
3872}
3873impl From<crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError> for Error {
3874 fn from(err: crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError) -> Self {
3875 match err {
3876 crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3877 crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError::Unhandled(inner) => Error::Unhandled(inner),
3878 }
3879 }
3880}
3881impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint::DescribeEndpointError, R>> for Error
3882where
3883 R: Send + Sync + std::fmt::Debug + 'static,
3884{
3885 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint::DescribeEndpointError, R>) -> Self {
3886 match err {
3887 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3888 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3889 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3890 source: err.into(),
3891 }),
3892 }
3893 }
3894}
3895impl From<crate::operation::describe_endpoint::DescribeEndpointError> for Error {
3896 fn from(err: crate::operation::describe_endpoint::DescribeEndpointError) -> Self {
3897 match err {
3898 crate::operation::describe_endpoint::DescribeEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3899 }
3900 }
3901}
3902impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint_config::DescribeEndpointConfigError, R>> for Error
3903where
3904 R: Send + Sync + std::fmt::Debug + 'static,
3905{
3906 fn from(
3907 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint_config::DescribeEndpointConfigError, R>,
3908 ) -> Self {
3909 match err {
3910 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3911 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3912 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3913 source: err.into(),
3914 }),
3915 }
3916 }
3917}
3918impl From<crate::operation::describe_endpoint_config::DescribeEndpointConfigError> for Error {
3919 fn from(err: crate::operation::describe_endpoint_config::DescribeEndpointConfigError) -> Self {
3920 match err {
3921 crate::operation::describe_endpoint_config::DescribeEndpointConfigError::Unhandled(inner) => Error::Unhandled(inner),
3922 }
3923 }
3924}
3925impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_experiment::DescribeExperimentError, R>> for Error
3926where
3927 R: Send + Sync + std::fmt::Debug + 'static,
3928{
3929 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_experiment::DescribeExperimentError, R>) -> Self {
3930 match err {
3931 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3932 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3933 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3934 source: err.into(),
3935 }),
3936 }
3937 }
3938}
3939impl From<crate::operation::describe_experiment::DescribeExperimentError> for Error {
3940 fn from(err: crate::operation::describe_experiment::DescribeExperimentError) -> Self {
3941 match err {
3942 crate::operation::describe_experiment::DescribeExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3943 crate::operation::describe_experiment::DescribeExperimentError::Unhandled(inner) => Error::Unhandled(inner),
3944 }
3945 }
3946}
3947impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_group::DescribeFeatureGroupError, R>> for Error
3948where
3949 R: Send + Sync + std::fmt::Debug + 'static,
3950{
3951 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_group::DescribeFeatureGroupError, R>) -> Self {
3952 match err {
3953 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3954 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3955 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3956 source: err.into(),
3957 }),
3958 }
3959 }
3960}
3961impl From<crate::operation::describe_feature_group::DescribeFeatureGroupError> for Error {
3962 fn from(err: crate::operation::describe_feature_group::DescribeFeatureGroupError) -> Self {
3963 match err {
3964 crate::operation::describe_feature_group::DescribeFeatureGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3965 crate::operation::describe_feature_group::DescribeFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
3966 }
3967 }
3968}
3969impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_metadata::DescribeFeatureMetadataError, R>>
3970 for Error
3971where
3972 R: Send + Sync + std::fmt::Debug + 'static,
3973{
3974 fn from(
3975 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_metadata::DescribeFeatureMetadataError, R>,
3976 ) -> Self {
3977 match err {
3978 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3979 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3980 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3981 source: err.into(),
3982 }),
3983 }
3984 }
3985}
3986impl From<crate::operation::describe_feature_metadata::DescribeFeatureMetadataError> for Error {
3987 fn from(err: crate::operation::describe_feature_metadata::DescribeFeatureMetadataError) -> Self {
3988 match err {
3989 crate::operation::describe_feature_metadata::DescribeFeatureMetadataError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3990 crate::operation::describe_feature_metadata::DescribeFeatureMetadataError::Unhandled(inner) => Error::Unhandled(inner),
3991 }
3992 }
3993}
3994impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_definition::DescribeFlowDefinitionError, R>> for Error
3995where
3996 R: Send + Sync + std::fmt::Debug + 'static,
3997{
3998 fn from(
3999 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_definition::DescribeFlowDefinitionError, R>,
4000 ) -> Self {
4001 match err {
4002 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4003 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4004 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4005 source: err.into(),
4006 }),
4007 }
4008 }
4009}
4010impl From<crate::operation::describe_flow_definition::DescribeFlowDefinitionError> for Error {
4011 fn from(err: crate::operation::describe_flow_definition::DescribeFlowDefinitionError) -> Self {
4012 match err {
4013 crate::operation::describe_flow_definition::DescribeFlowDefinitionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4014 crate::operation::describe_flow_definition::DescribeFlowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
4015 }
4016 }
4017}
4018impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub::DescribeHubError, R>> for Error
4019where
4020 R: Send + Sync + std::fmt::Debug + 'static,
4021{
4022 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub::DescribeHubError, R>) -> Self {
4023 match err {
4024 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4025 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4026 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4027 source: err.into(),
4028 }),
4029 }
4030 }
4031}
4032impl From<crate::operation::describe_hub::DescribeHubError> for Error {
4033 fn from(err: crate::operation::describe_hub::DescribeHubError) -> Self {
4034 match err {
4035 crate::operation::describe_hub::DescribeHubError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4036 crate::operation::describe_hub::DescribeHubError::Unhandled(inner) => Error::Unhandled(inner),
4037 }
4038 }
4039}
4040impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub_content::DescribeHubContentError, R>> for Error
4041where
4042 R: Send + Sync + std::fmt::Debug + 'static,
4043{
4044 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub_content::DescribeHubContentError, R>) -> Self {
4045 match err {
4046 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4047 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4048 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4049 source: err.into(),
4050 }),
4051 }
4052 }
4053}
4054impl From<crate::operation::describe_hub_content::DescribeHubContentError> for Error {
4055 fn from(err: crate::operation::describe_hub_content::DescribeHubContentError) -> Self {
4056 match err {
4057 crate::operation::describe_hub_content::DescribeHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4058 crate::operation::describe_hub_content::DescribeHubContentError::Unhandled(inner) => Error::Unhandled(inner),
4059 }
4060 }
4061}
4062impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_human_task_ui::DescribeHumanTaskUiError, R>> for Error
4063where
4064 R: Send + Sync + std::fmt::Debug + 'static,
4065{
4066 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_human_task_ui::DescribeHumanTaskUiError, R>) -> Self {
4067 match err {
4068 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4069 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4070 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4071 source: err.into(),
4072 }),
4073 }
4074 }
4075}
4076impl From<crate::operation::describe_human_task_ui::DescribeHumanTaskUiError> for Error {
4077 fn from(err: crate::operation::describe_human_task_ui::DescribeHumanTaskUiError) -> Self {
4078 match err {
4079 crate::operation::describe_human_task_ui::DescribeHumanTaskUiError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4080 crate::operation::describe_human_task_ui::DescribeHumanTaskUiError::Unhandled(inner) => Error::Unhandled(inner),
4081 }
4082 }
4083}
4084impl<R>
4085 From<
4086 ::aws_smithy_runtime_api::client::result::SdkError<
4087 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError,
4088 R,
4089 >,
4090 > for Error
4091where
4092 R: Send + Sync + std::fmt::Debug + 'static,
4093{
4094 fn from(
4095 err: ::aws_smithy_runtime_api::client::result::SdkError<
4096 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError,
4097 R,
4098 >,
4099 ) -> Self {
4100 match err {
4101 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4102 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4103 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4104 source: err.into(),
4105 }),
4106 }
4107 }
4108}
4109impl From<crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError> for Error {
4110 fn from(err: crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError) -> Self {
4111 match err {
4112 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError::ResourceNotFound(inner) => {
4113 Error::ResourceNotFound(inner)
4114 }
4115 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
4116 }
4117 }
4118}
4119impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image::DescribeImageError, R>> for Error
4120where
4121 R: Send + Sync + std::fmt::Debug + 'static,
4122{
4123 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image::DescribeImageError, R>) -> Self {
4124 match err {
4125 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4126 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4127 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4128 source: err.into(),
4129 }),
4130 }
4131 }
4132}
4133impl From<crate::operation::describe_image::DescribeImageError> for Error {
4134 fn from(err: crate::operation::describe_image::DescribeImageError) -> Self {
4135 match err {
4136 crate::operation::describe_image::DescribeImageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4137 crate::operation::describe_image::DescribeImageError::Unhandled(inner) => Error::Unhandled(inner),
4138 }
4139 }
4140}
4141impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_version::DescribeImageVersionError, R>> for Error
4142where
4143 R: Send + Sync + std::fmt::Debug + 'static,
4144{
4145 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_version::DescribeImageVersionError, R>) -> Self {
4146 match err {
4147 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4148 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4149 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4150 source: err.into(),
4151 }),
4152 }
4153 }
4154}
4155impl From<crate::operation::describe_image_version::DescribeImageVersionError> for Error {
4156 fn from(err: crate::operation::describe_image_version::DescribeImageVersionError) -> Self {
4157 match err {
4158 crate::operation::describe_image_version::DescribeImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4159 crate::operation::describe_image_version::DescribeImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
4160 }
4161 }
4162}
4163impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_component::DescribeInferenceComponentError, R>>
4164 for Error
4165where
4166 R: Send + Sync + std::fmt::Debug + 'static,
4167{
4168 fn from(
4169 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_component::DescribeInferenceComponentError, R>,
4170 ) -> Self {
4171 match err {
4172 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4173 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4174 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4175 source: err.into(),
4176 }),
4177 }
4178 }
4179}
4180impl From<crate::operation::describe_inference_component::DescribeInferenceComponentError> for Error {
4181 fn from(err: crate::operation::describe_inference_component::DescribeInferenceComponentError) -> Self {
4182 match err {
4183 crate::operation::describe_inference_component::DescribeInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
4184 }
4185 }
4186}
4187impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_experiment::DescribeInferenceExperimentError, R>>
4188 for Error
4189where
4190 R: Send + Sync + std::fmt::Debug + 'static,
4191{
4192 fn from(
4193 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_experiment::DescribeInferenceExperimentError, R>,
4194 ) -> Self {
4195 match err {
4196 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4197 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4198 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4199 source: err.into(),
4200 }),
4201 }
4202 }
4203}
4204impl From<crate::operation::describe_inference_experiment::DescribeInferenceExperimentError> for Error {
4205 fn from(err: crate::operation::describe_inference_experiment::DescribeInferenceExperimentError) -> Self {
4206 match err {
4207 crate::operation::describe_inference_experiment::DescribeInferenceExperimentError::ResourceNotFound(inner) => {
4208 Error::ResourceNotFound(inner)
4209 }
4210 crate::operation::describe_inference_experiment::DescribeInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
4211 }
4212 }
4213}
4214impl<R>
4215 From<
4216 ::aws_smithy_runtime_api::client::result::SdkError<
4217 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError,
4218 R,
4219 >,
4220 > for Error
4221where
4222 R: Send + Sync + std::fmt::Debug + 'static,
4223{
4224 fn from(
4225 err: ::aws_smithy_runtime_api::client::result::SdkError<
4226 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError,
4227 R,
4228 >,
4229 ) -> Self {
4230 match err {
4231 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4232 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4233 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4234 source: err.into(),
4235 }),
4236 }
4237 }
4238}
4239impl From<crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError> for Error {
4240 fn from(err: crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError) -> Self {
4241 match err {
4242 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError::ResourceNotFound(inner) => {
4243 Error::ResourceNotFound(inner)
4244 }
4245 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError::Unhandled(inner) => {
4246 Error::Unhandled(inner)
4247 }
4248 }
4249 }
4250}
4251impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_labeling_job::DescribeLabelingJobError, R>> for Error
4252where
4253 R: Send + Sync + std::fmt::Debug + 'static,
4254{
4255 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_labeling_job::DescribeLabelingJobError, R>) -> Self {
4256 match err {
4257 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4258 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4259 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4260 source: err.into(),
4261 }),
4262 }
4263 }
4264}
4265impl From<crate::operation::describe_labeling_job::DescribeLabelingJobError> for Error {
4266 fn from(err: crate::operation::describe_labeling_job::DescribeLabelingJobError) -> Self {
4267 match err {
4268 crate::operation::describe_labeling_job::DescribeLabelingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4269 crate::operation::describe_labeling_job::DescribeLabelingJobError::Unhandled(inner) => Error::Unhandled(inner),
4270 }
4271 }
4272}
4273impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lineage_group::DescribeLineageGroupError, R>> for Error
4274where
4275 R: Send + Sync + std::fmt::Debug + 'static,
4276{
4277 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lineage_group::DescribeLineageGroupError, R>) -> Self {
4278 match err {
4279 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4280 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4281 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4282 source: err.into(),
4283 }),
4284 }
4285 }
4286}
4287impl From<crate::operation::describe_lineage_group::DescribeLineageGroupError> for Error {
4288 fn from(err: crate::operation::describe_lineage_group::DescribeLineageGroupError) -> Self {
4289 match err {
4290 crate::operation::describe_lineage_group::DescribeLineageGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4291 crate::operation::describe_lineage_group::DescribeLineageGroupError::Unhandled(inner) => Error::Unhandled(inner),
4292 }
4293 }
4294}
4295impl<R>
4296 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError, R>>
4297 for Error
4298where
4299 R: Send + Sync + std::fmt::Debug + 'static,
4300{
4301 fn from(
4302 err: ::aws_smithy_runtime_api::client::result::SdkError<
4303 crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError,
4304 R,
4305 >,
4306 ) -> Self {
4307 match err {
4308 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4309 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4310 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4311 source: err.into(),
4312 }),
4313 }
4314 }
4315}
4316impl From<crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError> for Error {
4317 fn from(err: crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError) -> Self {
4318 match err {
4319 crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError::ResourceNotFound(inner) => {
4320 Error::ResourceNotFound(inner)
4321 }
4322 crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
4323 }
4324 }
4325}
4326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model::DescribeModelError, R>> for Error
4327where
4328 R: Send + Sync + std::fmt::Debug + 'static,
4329{
4330 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model::DescribeModelError, R>) -> Self {
4331 match err {
4332 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4333 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4334 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4335 source: err.into(),
4336 }),
4337 }
4338 }
4339}
4340impl From<crate::operation::describe_model::DescribeModelError> for Error {
4341 fn from(err: crate::operation::describe_model::DescribeModelError) -> Self {
4342 match err {
4343 crate::operation::describe_model::DescribeModelError::Unhandled(inner) => Error::Unhandled(inner),
4344 }
4345 }
4346}
4347impl<R>
4348 From<
4349 ::aws_smithy_runtime_api::client::result::SdkError<
4350 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError,
4351 R,
4352 >,
4353 > for Error
4354where
4355 R: Send + Sync + std::fmt::Debug + 'static,
4356{
4357 fn from(
4358 err: ::aws_smithy_runtime_api::client::result::SdkError<
4359 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError,
4360 R,
4361 >,
4362 ) -> 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_model_bias_job_definition::DescribeModelBiasJobDefinitionError> for Error {
4373 fn from(err: crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError) -> Self {
4374 match err {
4375 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError::ResourceNotFound(inner) => {
4376 Error::ResourceNotFound(inner)
4377 }
4378 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
4379 }
4380 }
4381}
4382impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card::DescribeModelCardError, R>> for Error
4383where
4384 R: Send + Sync + std::fmt::Debug + 'static,
4385{
4386 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card::DescribeModelCardError, R>) -> Self {
4387 match err {
4388 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4389 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4390 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4391 source: err.into(),
4392 }),
4393 }
4394 }
4395}
4396impl From<crate::operation::describe_model_card::DescribeModelCardError> for Error {
4397 fn from(err: crate::operation::describe_model_card::DescribeModelCardError) -> Self {
4398 match err {
4399 crate::operation::describe_model_card::DescribeModelCardError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4400 crate::operation::describe_model_card::DescribeModelCardError::Unhandled(inner) => Error::Unhandled(inner),
4401 }
4402 }
4403}
4404impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError, R>>
4405 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_model_card_export_job::DescribeModelCardExportJobError, 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_model_card_export_job::DescribeModelCardExportJobError> for Error {
4422 fn from(err: crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError) -> Self {
4423 match err {
4424 crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError::ResourceNotFound(inner) => {
4425 Error::ResourceNotFound(inner)
4426 }
4427 crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError::Unhandled(inner) => Error::Unhandled(inner),
4428 }
4429 }
4430}
4431impl<R>
4432 From<
4433 ::aws_smithy_runtime_api::client::result::SdkError<
4434 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError,
4435 R,
4436 >,
4437 > for Error
4438where
4439 R: Send + Sync + std::fmt::Debug + 'static,
4440{
4441 fn from(
4442 err: ::aws_smithy_runtime_api::client::result::SdkError<
4443 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError,
4444 R,
4445 >,
4446 ) -> Self {
4447 match err {
4448 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4449 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4450 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4451 source: err.into(),
4452 }),
4453 }
4454 }
4455}
4456impl From<crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError> for Error {
4457 fn from(err: crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError) -> Self {
4458 match err {
4459 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError::ResourceNotFound(
4460 inner,
4461 ) => Error::ResourceNotFound(inner),
4462 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError::Unhandled(inner) => {
4463 Error::Unhandled(inner)
4464 }
4465 }
4466 }
4467}
4468impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package::DescribeModelPackageError, R>> for Error
4469where
4470 R: Send + Sync + std::fmt::Debug + 'static,
4471{
4472 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package::DescribeModelPackageError, R>) -> Self {
4473 match err {
4474 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4475 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4476 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4477 source: err.into(),
4478 }),
4479 }
4480 }
4481}
4482impl From<crate::operation::describe_model_package::DescribeModelPackageError> for Error {
4483 fn from(err: crate::operation::describe_model_package::DescribeModelPackageError) -> Self {
4484 match err {
4485 crate::operation::describe_model_package::DescribeModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
4486 }
4487 }
4488}
4489impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package_group::DescribeModelPackageGroupError, R>>
4490 for Error
4491where
4492 R: Send + Sync + std::fmt::Debug + 'static,
4493{
4494 fn from(
4495 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package_group::DescribeModelPackageGroupError, R>,
4496 ) -> Self {
4497 match err {
4498 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4499 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4500 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4501 source: err.into(),
4502 }),
4503 }
4504 }
4505}
4506impl From<crate::operation::describe_model_package_group::DescribeModelPackageGroupError> for Error {
4507 fn from(err: crate::operation::describe_model_package_group::DescribeModelPackageGroupError) -> Self {
4508 match err {
4509 crate::operation::describe_model_package_group::DescribeModelPackageGroupError::Unhandled(inner) => Error::Unhandled(inner),
4510 }
4511 }
4512}
4513impl<R>
4514 From<
4515 ::aws_smithy_runtime_api::client::result::SdkError<
4516 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError,
4517 R,
4518 >,
4519 > for Error
4520where
4521 R: Send + Sync + std::fmt::Debug + 'static,
4522{
4523 fn from(
4524 err: ::aws_smithy_runtime_api::client::result::SdkError<
4525 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError,
4526 R,
4527 >,
4528 ) -> Self {
4529 match err {
4530 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4531 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4532 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4533 source: err.into(),
4534 }),
4535 }
4536 }
4537}
4538impl From<crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError> for Error {
4539 fn from(err: crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError) -> Self {
4540 match err {
4541 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError::ResourceNotFound(inner) => {
4542 Error::ResourceNotFound(inner)
4543 }
4544 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError::Unhandled(inner) => {
4545 Error::Unhandled(inner)
4546 }
4547 }
4548 }
4549}
4550impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError, R>>
4551 for Error
4552where
4553 R: Send + Sync + std::fmt::Debug + 'static,
4554{
4555 fn from(
4556 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError, R>,
4557 ) -> Self {
4558 match err {
4559 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4560 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4561 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4562 source: err.into(),
4563 }),
4564 }
4565 }
4566}
4567impl From<crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError> for Error {
4568 fn from(err: crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError) -> Self {
4569 match err {
4570 crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError::ResourceNotFound(inner) => {
4571 Error::ResourceNotFound(inner)
4572 }
4573 crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
4574 }
4575 }
4576}
4577impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_notebook_instance::DescribeNotebookInstanceError, R>>
4578 for Error
4579where
4580 R: Send + Sync + std::fmt::Debug + 'static,
4581{
4582 fn from(
4583 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_notebook_instance::DescribeNotebookInstanceError, R>,
4584 ) -> Self {
4585 match err {
4586 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4587 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4588 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4589 source: err.into(),
4590 }),
4591 }
4592 }
4593}
4594impl From<crate::operation::describe_notebook_instance::DescribeNotebookInstanceError> for Error {
4595 fn from(err: crate::operation::describe_notebook_instance::DescribeNotebookInstanceError) -> Self {
4596 match err {
4597 crate::operation::describe_notebook_instance::DescribeNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
4598 }
4599 }
4600}
4601impl<R>
4602 From<
4603 ::aws_smithy_runtime_api::client::result::SdkError<
4604 crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError,
4605 R,
4606 >,
4607 > for Error
4608where
4609 R: Send + Sync + std::fmt::Debug + 'static,
4610{
4611 fn from(
4612 err: ::aws_smithy_runtime_api::client::result::SdkError<
4613 crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError,
4614 R,
4615 >,
4616 ) -> Self {
4617 match err {
4618 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4619 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4620 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4621 source: err.into(),
4622 }),
4623 }
4624 }
4625}
4626impl From<crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError> for Error {
4627 fn from(err: crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError) -> Self {
4628 match err {
4629 crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
4630 Error::Unhandled(inner)
4631 }
4632 }
4633 }
4634}
4635impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_optimization_job::DescribeOptimizationJobError, R>>
4636 for Error
4637where
4638 R: Send + Sync + std::fmt::Debug + 'static,
4639{
4640 fn from(
4641 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_optimization_job::DescribeOptimizationJobError, R>,
4642 ) -> Self {
4643 match err {
4644 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4645 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4646 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4647 source: err.into(),
4648 }),
4649 }
4650 }
4651}
4652impl From<crate::operation::describe_optimization_job::DescribeOptimizationJobError> for Error {
4653 fn from(err: crate::operation::describe_optimization_job::DescribeOptimizationJobError) -> Self {
4654 match err {
4655 crate::operation::describe_optimization_job::DescribeOptimizationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4656 crate::operation::describe_optimization_job::DescribeOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
4657 }
4658 }
4659}
4660impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_partner_app::DescribePartnerAppError, R>> for Error
4661where
4662 R: Send + Sync + std::fmt::Debug + 'static,
4663{
4664 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_partner_app::DescribePartnerAppError, R>) -> Self {
4665 match err {
4666 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4667 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4668 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4669 source: err.into(),
4670 }),
4671 }
4672 }
4673}
4674impl From<crate::operation::describe_partner_app::DescribePartnerAppError> for Error {
4675 fn from(err: crate::operation::describe_partner_app::DescribePartnerAppError) -> Self {
4676 match err {
4677 crate::operation::describe_partner_app::DescribePartnerAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4678 crate::operation::describe_partner_app::DescribePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
4679 }
4680 }
4681}
4682impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline::DescribePipelineError, R>> for Error
4683where
4684 R: Send + Sync + std::fmt::Debug + 'static,
4685{
4686 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline::DescribePipelineError, R>) -> Self {
4687 match err {
4688 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4689 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4690 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4691 source: err.into(),
4692 }),
4693 }
4694 }
4695}
4696impl From<crate::operation::describe_pipeline::DescribePipelineError> for Error {
4697 fn from(err: crate::operation::describe_pipeline::DescribePipelineError) -> Self {
4698 match err {
4699 crate::operation::describe_pipeline::DescribePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4700 crate::operation::describe_pipeline::DescribePipelineError::Unhandled(inner) => Error::Unhandled(inner),
4701 }
4702 }
4703}
4704impl<R>
4705 From<
4706 ::aws_smithy_runtime_api::client::result::SdkError<
4707 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError,
4708 R,
4709 >,
4710 > for Error
4711where
4712 R: Send + Sync + std::fmt::Debug + 'static,
4713{
4714 fn from(
4715 err: ::aws_smithy_runtime_api::client::result::SdkError<
4716 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError,
4717 R,
4718 >,
4719 ) -> Self {
4720 match err {
4721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4724 source: err.into(),
4725 }),
4726 }
4727 }
4728}
4729impl From<crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError> for Error {
4730 fn from(err: crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError) -> Self {
4731 match err {
4732 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError::ResourceNotFound(inner) => {
4733 Error::ResourceNotFound(inner)
4734 }
4735 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError::Unhandled(inner) => {
4736 Error::Unhandled(inner)
4737 }
4738 }
4739 }
4740}
4741impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline_execution::DescribePipelineExecutionError, R>>
4742 for Error
4743where
4744 R: Send + Sync + std::fmt::Debug + 'static,
4745{
4746 fn from(
4747 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline_execution::DescribePipelineExecutionError, R>,
4748 ) -> Self {
4749 match err {
4750 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4751 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4752 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4753 source: err.into(),
4754 }),
4755 }
4756 }
4757}
4758impl From<crate::operation::describe_pipeline_execution::DescribePipelineExecutionError> for Error {
4759 fn from(err: crate::operation::describe_pipeline_execution::DescribePipelineExecutionError) -> Self {
4760 match err {
4761 crate::operation::describe_pipeline_execution::DescribePipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4762 crate::operation::describe_pipeline_execution::DescribePipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
4763 }
4764 }
4765}
4766impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_processing_job::DescribeProcessingJobError, R>> for Error
4767where
4768 R: Send + Sync + std::fmt::Debug + 'static,
4769{
4770 fn from(
4771 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_processing_job::DescribeProcessingJobError, R>,
4772 ) -> Self {
4773 match err {
4774 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4775 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4776 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4777 source: err.into(),
4778 }),
4779 }
4780 }
4781}
4782impl From<crate::operation::describe_processing_job::DescribeProcessingJobError> for Error {
4783 fn from(err: crate::operation::describe_processing_job::DescribeProcessingJobError) -> Self {
4784 match err {
4785 crate::operation::describe_processing_job::DescribeProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4786 crate::operation::describe_processing_job::DescribeProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
4787 }
4788 }
4789}
4790impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_project::DescribeProjectError, R>> for Error
4791where
4792 R: Send + Sync + std::fmt::Debug + 'static,
4793{
4794 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_project::DescribeProjectError, R>) -> Self {
4795 match err {
4796 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4797 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4798 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4799 source: err.into(),
4800 }),
4801 }
4802 }
4803}
4804impl From<crate::operation::describe_project::DescribeProjectError> for Error {
4805 fn from(err: crate::operation::describe_project::DescribeProjectError) -> Self {
4806 match err {
4807 crate::operation::describe_project::DescribeProjectError::Unhandled(inner) => Error::Unhandled(inner),
4808 }
4809 }
4810}
4811impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_capacity::DescribeReservedCapacityError, R>>
4812 for Error
4813where
4814 R: Send + Sync + std::fmt::Debug + 'static,
4815{
4816 fn from(
4817 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_capacity::DescribeReservedCapacityError, R>,
4818 ) -> Self {
4819 match err {
4820 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4821 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4822 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4823 source: err.into(),
4824 }),
4825 }
4826 }
4827}
4828impl From<crate::operation::describe_reserved_capacity::DescribeReservedCapacityError> for Error {
4829 fn from(err: crate::operation::describe_reserved_capacity::DescribeReservedCapacityError) -> Self {
4830 match err {
4831 crate::operation::describe_reserved_capacity::DescribeReservedCapacityError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4832 crate::operation::describe_reserved_capacity::DescribeReservedCapacityError::Unhandled(inner) => Error::Unhandled(inner),
4833 }
4834 }
4835}
4836impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_space::DescribeSpaceError, R>> for Error
4837where
4838 R: Send + Sync + std::fmt::Debug + 'static,
4839{
4840 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_space::DescribeSpaceError, R>) -> Self {
4841 match err {
4842 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4843 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4844 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4845 source: err.into(),
4846 }),
4847 }
4848 }
4849}
4850impl From<crate::operation::describe_space::DescribeSpaceError> for Error {
4851 fn from(err: crate::operation::describe_space::DescribeSpaceError) -> Self {
4852 match err {
4853 crate::operation::describe_space::DescribeSpaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4854 crate::operation::describe_space::DescribeSpaceError::Unhandled(inner) => Error::Unhandled(inner),
4855 }
4856 }
4857}
4858impl<R>
4859 From<
4860 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError, R>,
4861 > for Error
4862where
4863 R: Send + Sync + std::fmt::Debug + 'static,
4864{
4865 fn from(
4866 err: ::aws_smithy_runtime_api::client::result::SdkError<
4867 crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError,
4868 R,
4869 >,
4870 ) -> Self {
4871 match err {
4872 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4873 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4874 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4875 source: err.into(),
4876 }),
4877 }
4878 }
4879}
4880impl From<crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError> for Error {
4881 fn from(err: crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError) -> Self {
4882 match err {
4883 crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError::ResourceNotFound(inner) => {
4884 Error::ResourceNotFound(inner)
4885 }
4886 crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError::Unhandled(inner) => Error::Unhandled(inner),
4887 }
4888 }
4889}
4890impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError, R>>
4891 for Error
4892where
4893 R: Send + Sync + std::fmt::Debug + 'static,
4894{
4895 fn from(
4896 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError, R>,
4897 ) -> Self {
4898 match err {
4899 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4900 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4901 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4902 source: err.into(),
4903 }),
4904 }
4905 }
4906}
4907impl From<crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError> for Error {
4908 fn from(err: crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError) -> Self {
4909 match err {
4910 crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
4911 }
4912 }
4913}
4914impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_job::DescribeTrainingJobError, R>> for Error
4915where
4916 R: Send + Sync + std::fmt::Debug + 'static,
4917{
4918 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_job::DescribeTrainingJobError, R>) -> Self {
4919 match err {
4920 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4921 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4922 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4923 source: err.into(),
4924 }),
4925 }
4926 }
4927}
4928impl From<crate::operation::describe_training_job::DescribeTrainingJobError> for Error {
4929 fn from(err: crate::operation::describe_training_job::DescribeTrainingJobError) -> Self {
4930 match err {
4931 crate::operation::describe_training_job::DescribeTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4932 crate::operation::describe_training_job::DescribeTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
4933 }
4934 }
4935}
4936impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_plan::DescribeTrainingPlanError, R>> for Error
4937where
4938 R: Send + Sync + std::fmt::Debug + 'static,
4939{
4940 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_plan::DescribeTrainingPlanError, R>) -> Self {
4941 match err {
4942 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4943 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4944 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4945 source: err.into(),
4946 }),
4947 }
4948 }
4949}
4950impl From<crate::operation::describe_training_plan::DescribeTrainingPlanError> for Error {
4951 fn from(err: crate::operation::describe_training_plan::DescribeTrainingPlanError) -> Self {
4952 match err {
4953 crate::operation::describe_training_plan::DescribeTrainingPlanError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4954 crate::operation::describe_training_plan::DescribeTrainingPlanError::Unhandled(inner) => Error::Unhandled(inner),
4955 }
4956 }
4957}
4958impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transform_job::DescribeTransformJobError, R>> for Error
4959where
4960 R: Send + Sync + std::fmt::Debug + 'static,
4961{
4962 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transform_job::DescribeTransformJobError, R>) -> Self {
4963 match err {
4964 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4965 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4966 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4967 source: err.into(),
4968 }),
4969 }
4970 }
4971}
4972impl From<crate::operation::describe_transform_job::DescribeTransformJobError> for Error {
4973 fn from(err: crate::operation::describe_transform_job::DescribeTransformJobError) -> Self {
4974 match err {
4975 crate::operation::describe_transform_job::DescribeTransformJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4976 crate::operation::describe_transform_job::DescribeTransformJobError::Unhandled(inner) => Error::Unhandled(inner),
4977 }
4978 }
4979}
4980impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial::DescribeTrialError, R>> for Error
4981where
4982 R: Send + Sync + std::fmt::Debug + 'static,
4983{
4984 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial::DescribeTrialError, R>) -> Self {
4985 match err {
4986 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4987 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4988 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4989 source: err.into(),
4990 }),
4991 }
4992 }
4993}
4994impl From<crate::operation::describe_trial::DescribeTrialError> for Error {
4995 fn from(err: crate::operation::describe_trial::DescribeTrialError) -> Self {
4996 match err {
4997 crate::operation::describe_trial::DescribeTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4998 crate::operation::describe_trial::DescribeTrialError::Unhandled(inner) => Error::Unhandled(inner),
4999 }
5000 }
5001}
5002impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial_component::DescribeTrialComponentError, R>> for Error
5003where
5004 R: Send + Sync + std::fmt::Debug + 'static,
5005{
5006 fn from(
5007 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial_component::DescribeTrialComponentError, R>,
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_trial_component::DescribeTrialComponentError> for Error {
5019 fn from(err: crate::operation::describe_trial_component::DescribeTrialComponentError) -> Self {
5020 match err {
5021 crate::operation::describe_trial_component::DescribeTrialComponentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5022 crate::operation::describe_trial_component::DescribeTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
5023 }
5024 }
5025}
5026impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_profile::DescribeUserProfileError, R>> for Error
5027where
5028 R: Send + Sync + std::fmt::Debug + 'static,
5029{
5030 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_profile::DescribeUserProfileError, R>) -> Self {
5031 match err {
5032 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5033 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5034 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5035 source: err.into(),
5036 }),
5037 }
5038 }
5039}
5040impl From<crate::operation::describe_user_profile::DescribeUserProfileError> for Error {
5041 fn from(err: crate::operation::describe_user_profile::DescribeUserProfileError) -> Self {
5042 match err {
5043 crate::operation::describe_user_profile::DescribeUserProfileError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
5044 crate::operation::describe_user_profile::DescribeUserProfileError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5045 crate::operation::describe_user_profile::DescribeUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
5046 }
5047 }
5048}
5049impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workforce::DescribeWorkforceError, R>> for Error
5050where
5051 R: Send + Sync + std::fmt::Debug + 'static,
5052{
5053 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workforce::DescribeWorkforceError, R>) -> Self {
5054 match err {
5055 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5056 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5057 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5058 source: err.into(),
5059 }),
5060 }
5061 }
5062}
5063impl From<crate::operation::describe_workforce::DescribeWorkforceError> for Error {
5064 fn from(err: crate::operation::describe_workforce::DescribeWorkforceError) -> Self {
5065 match err {
5066 crate::operation::describe_workforce::DescribeWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
5067 }
5068 }
5069}
5070impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workteam::DescribeWorkteamError, R>> for Error
5071where
5072 R: Send + Sync + std::fmt::Debug + 'static,
5073{
5074 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workteam::DescribeWorkteamError, R>) -> Self {
5075 match err {
5076 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5077 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5078 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5079 source: err.into(),
5080 }),
5081 }
5082 }
5083}
5084impl From<crate::operation::describe_workteam::DescribeWorkteamError> for Error {
5085 fn from(err: crate::operation::describe_workteam::DescribeWorkteamError) -> Self {
5086 match err {
5087 crate::operation::describe_workteam::DescribeWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
5088 }
5089 }
5090}
5091impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError, R>>
5092 for Error
5093where
5094 R: Send + Sync + std::fmt::Debug + 'static,
5095{
5096 fn from(
5097 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError, R>,
5098 ) -> Self {
5099 match err {
5100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5103 source: err.into(),
5104 }),
5105 }
5106 }
5107}
5108impl From<crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError> for Error {
5109 fn from(err: crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError) -> Self {
5110 match err {
5111 crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5112 crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError::Unhandled(inner) => Error::Unhandled(inner),
5113 }
5114 }
5115}
5116impl<R>
5117 From<
5118 ::aws_smithy_runtime_api::client::result::SdkError<
5119 crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError,
5120 R,
5121 >,
5122 > for Error
5123where
5124 R: Send + Sync + std::fmt::Debug + 'static,
5125{
5126 fn from(
5127 err: ::aws_smithy_runtime_api::client::result::SdkError<
5128 crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError,
5129 R,
5130 >,
5131 ) -> Self {
5132 match err {
5133 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5134 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5135 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5136 source: err.into(),
5137 }),
5138 }
5139 }
5140}
5141impl From<crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError> for Error {
5142 fn from(err: crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError) -> Self {
5143 match err {
5144 crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError::Unhandled(inner) => {
5145 Error::Unhandled(inner)
5146 }
5147 }
5148 }
5149}
5150impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trial_component::DisassociateTrialComponentError, R>>
5151 for Error
5152where
5153 R: Send + Sync + std::fmt::Debug + 'static,
5154{
5155 fn from(
5156 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trial_component::DisassociateTrialComponentError, R>,
5157 ) -> Self {
5158 match err {
5159 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5160 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5161 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5162 source: err.into(),
5163 }),
5164 }
5165 }
5166}
5167impl From<crate::operation::disassociate_trial_component::DisassociateTrialComponentError> for Error {
5168 fn from(err: crate::operation::disassociate_trial_component::DisassociateTrialComponentError) -> Self {
5169 match err {
5170 crate::operation::disassociate_trial_component::DisassociateTrialComponentError::ResourceNotFound(inner) => {
5171 Error::ResourceNotFound(inner)
5172 }
5173 crate::operation::disassociate_trial_component::DisassociateTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
5174 }
5175 }
5176}
5177impl<R>
5178 From<
5179 ::aws_smithy_runtime_api::client::result::SdkError<
5180 crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError,
5181 R,
5182 >,
5183 > for Error
5184where
5185 R: Send + Sync + std::fmt::Debug + 'static,
5186{
5187 fn from(
5188 err: ::aws_smithy_runtime_api::client::result::SdkError<
5189 crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError,
5190 R,
5191 >,
5192 ) -> Self {
5193 match err {
5194 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5195 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5196 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5197 source: err.into(),
5198 }),
5199 }
5200 }
5201}
5202impl From<crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError> for Error {
5203 fn from(err: crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError) -> Self {
5204 match err {
5205 crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError::Unhandled(inner) => {
5206 Error::Unhandled(inner)
5207 }
5208 }
5209 }
5210}
5211impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_fleet_report::GetDeviceFleetReportError, R>> for Error
5212where
5213 R: Send + Sync + std::fmt::Debug + 'static,
5214{
5215 fn from(
5216 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_fleet_report::GetDeviceFleetReportError, R>,
5217 ) -> Self {
5218 match err {
5219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5222 source: err.into(),
5223 }),
5224 }
5225 }
5226}
5227impl From<crate::operation::get_device_fleet_report::GetDeviceFleetReportError> for Error {
5228 fn from(err: crate::operation::get_device_fleet_report::GetDeviceFleetReportError) -> Self {
5229 match err {
5230 crate::operation::get_device_fleet_report::GetDeviceFleetReportError::Unhandled(inner) => Error::Unhandled(inner),
5231 }
5232 }
5233}
5234impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError, R>> for Error
5235where
5236 R: Send + Sync + std::fmt::Debug + 'static,
5237{
5238 fn from(
5239 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError, R>,
5240 ) -> Self {
5241 match err {
5242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5245 source: err.into(),
5246 }),
5247 }
5248 }
5249}
5250impl From<crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError> for Error {
5251 fn from(err: crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError) -> Self {
5252 match err {
5253 crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5254 crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
5255 }
5256 }
5257}
5258impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError, R>>
5259 for Error
5260where
5261 R: Send + Sync + std::fmt::Debug + 'static,
5262{
5263 fn from(
5264 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError, R>,
5265 ) -> Self {
5266 match err {
5267 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5268 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5269 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5270 source: err.into(),
5271 }),
5272 }
5273 }
5274}
5275impl From<crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError> for Error {
5276 fn from(err: crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError) -> Self {
5277 match err {
5278 crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
5279 }
5280 }
5281}
5282impl<R>
5283 From<
5284 ::aws_smithy_runtime_api::client::result::SdkError<
5285 crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError,
5286 R,
5287 >,
5288 > for Error
5289where
5290 R: Send + Sync + std::fmt::Debug + 'static,
5291{
5292 fn from(
5293 err: ::aws_smithy_runtime_api::client::result::SdkError<
5294 crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError,
5295 R,
5296 >,
5297 ) -> Self {
5298 match err {
5299 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5300 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5301 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5302 source: err.into(),
5303 }),
5304 }
5305 }
5306}
5307impl From<crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError> for Error {
5308 fn from(err: crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError) -> Self {
5309 match err {
5310 crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError::Unhandled(inner) => {
5311 Error::Unhandled(inner)
5312 }
5313 }
5314 }
5315}
5316impl<R>
5317 From<
5318 ::aws_smithy_runtime_api::client::result::SdkError<
5319 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError,
5320 R,
5321 >,
5322 > for Error
5323where
5324 R: Send + Sync + std::fmt::Debug + 'static,
5325{
5326 fn from(
5327 err: ::aws_smithy_runtime_api::client::result::SdkError<
5328 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError,
5329 R,
5330 >,
5331 ) -> Self {
5332 match err {
5333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5336 source: err.into(),
5337 }),
5338 }
5339 }
5340}
5341impl From<crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError> for Error {
5342 fn from(err: crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError) -> Self {
5343 match err {
5344 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError::ResourceNotFound(inner) => {
5345 Error::ResourceNotFound(inner)
5346 }
5347 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError::Unhandled(inner) => {
5348 Error::Unhandled(inner)
5349 }
5350 }
5351 }
5352}
5353impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_search_suggestions::GetSearchSuggestionsError, R>> for Error
5354where
5355 R: Send + Sync + std::fmt::Debug + 'static,
5356{
5357 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_search_suggestions::GetSearchSuggestionsError, R>) -> Self {
5358 match err {
5359 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5360 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5361 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5362 source: err.into(),
5363 }),
5364 }
5365 }
5366}
5367impl From<crate::operation::get_search_suggestions::GetSearchSuggestionsError> for Error {
5368 fn from(err: crate::operation::get_search_suggestions::GetSearchSuggestionsError) -> Self {
5369 match err {
5370 crate::operation::get_search_suggestions::GetSearchSuggestionsError::Unhandled(inner) => Error::Unhandled(inner),
5371 }
5372 }
5373}
5374impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_hub_content::ImportHubContentError, R>> for Error
5375where
5376 R: Send + Sync + std::fmt::Debug + 'static,
5377{
5378 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_hub_content::ImportHubContentError, R>) -> Self {
5379 match err {
5380 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5381 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5382 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5383 source: err.into(),
5384 }),
5385 }
5386 }
5387}
5388impl From<crate::operation::import_hub_content::ImportHubContentError> for Error {
5389 fn from(err: crate::operation::import_hub_content::ImportHubContentError) -> Self {
5390 match err {
5391 crate::operation::import_hub_content::ImportHubContentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
5392 crate::operation::import_hub_content::ImportHubContentError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
5393 crate::operation::import_hub_content::ImportHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5394 crate::operation::import_hub_content::ImportHubContentError::Unhandled(inner) => Error::Unhandled(inner),
5395 }
5396 }
5397}
5398impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_actions::ListActionsError, R>> for Error
5399where
5400 R: Send + Sync + std::fmt::Debug + 'static,
5401{
5402 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_actions::ListActionsError, R>) -> Self {
5403 match err {
5404 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5405 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5406 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5407 source: err.into(),
5408 }),
5409 }
5410 }
5411}
5412impl From<crate::operation::list_actions::ListActionsError> for Error {
5413 fn from(err: crate::operation::list_actions::ListActionsError) -> Self {
5414 match err {
5415 crate::operation::list_actions::ListActionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5416 crate::operation::list_actions::ListActionsError::Unhandled(inner) => Error::Unhandled(inner),
5417 }
5418 }
5419}
5420impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_algorithms::ListAlgorithmsError, R>> for Error
5421where
5422 R: Send + Sync + std::fmt::Debug + 'static,
5423{
5424 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_algorithms::ListAlgorithmsError, R>) -> Self {
5425 match err {
5426 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5427 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5428 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5429 source: err.into(),
5430 }),
5431 }
5432 }
5433}
5434impl From<crate::operation::list_algorithms::ListAlgorithmsError> for Error {
5435 fn from(err: crate::operation::list_algorithms::ListAlgorithmsError) -> Self {
5436 match err {
5437 crate::operation::list_algorithms::ListAlgorithmsError::Unhandled(inner) => Error::Unhandled(inner),
5438 }
5439 }
5440}
5441impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aliases::ListAliasesError, R>> for Error
5442where
5443 R: Send + Sync + std::fmt::Debug + 'static,
5444{
5445 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aliases::ListAliasesError, R>) -> Self {
5446 match err {
5447 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5448 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5449 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5450 source: err.into(),
5451 }),
5452 }
5453 }
5454}
5455impl From<crate::operation::list_aliases::ListAliasesError> for Error {
5456 fn from(err: crate::operation::list_aliases::ListAliasesError) -> Self {
5457 match err {
5458 crate::operation::list_aliases::ListAliasesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5459 crate::operation::list_aliases::ListAliasesError::Unhandled(inner) => Error::Unhandled(inner),
5460 }
5461 }
5462}
5463impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_app_image_configs::ListAppImageConfigsError, R>> for Error
5464where
5465 R: Send + Sync + std::fmt::Debug + 'static,
5466{
5467 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_app_image_configs::ListAppImageConfigsError, R>) -> Self {
5468 match err {
5469 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5470 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5471 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5472 source: err.into(),
5473 }),
5474 }
5475 }
5476}
5477impl From<crate::operation::list_app_image_configs::ListAppImageConfigsError> for Error {
5478 fn from(err: crate::operation::list_app_image_configs::ListAppImageConfigsError) -> Self {
5479 match err {
5480 crate::operation::list_app_image_configs::ListAppImageConfigsError::Unhandled(inner) => Error::Unhandled(inner),
5481 }
5482 }
5483}
5484impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_apps::ListAppsError, R>> for Error
5485where
5486 R: Send + Sync + std::fmt::Debug + 'static,
5487{
5488 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_apps::ListAppsError, R>) -> Self {
5489 match err {
5490 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5491 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5492 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5493 source: err.into(),
5494 }),
5495 }
5496 }
5497}
5498impl From<crate::operation::list_apps::ListAppsError> for Error {
5499 fn from(err: crate::operation::list_apps::ListAppsError) -> Self {
5500 match err {
5501 crate::operation::list_apps::ListAppsError::Unhandled(inner) => Error::Unhandled(inner),
5502 }
5503 }
5504}
5505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_artifacts::ListArtifactsError, R>> for Error
5506where
5507 R: Send + Sync + std::fmt::Debug + 'static,
5508{
5509 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_artifacts::ListArtifactsError, R>) -> Self {
5510 match err {
5511 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5512 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5513 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5514 source: err.into(),
5515 }),
5516 }
5517 }
5518}
5519impl From<crate::operation::list_artifacts::ListArtifactsError> for Error {
5520 fn from(err: crate::operation::list_artifacts::ListArtifactsError) -> Self {
5521 match err {
5522 crate::operation::list_artifacts::ListArtifactsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5523 crate::operation::list_artifacts::ListArtifactsError::Unhandled(inner) => Error::Unhandled(inner),
5524 }
5525 }
5526}
5527impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associations::ListAssociationsError, R>> for Error
5528where
5529 R: Send + Sync + std::fmt::Debug + 'static,
5530{
5531 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associations::ListAssociationsError, R>) -> Self {
5532 match err {
5533 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5534 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5535 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5536 source: err.into(),
5537 }),
5538 }
5539 }
5540}
5541impl From<crate::operation::list_associations::ListAssociationsError> for Error {
5542 fn from(err: crate::operation::list_associations::ListAssociationsError) -> Self {
5543 match err {
5544 crate::operation::list_associations::ListAssociationsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5545 crate::operation::list_associations::ListAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
5546 }
5547 }
5548}
5549impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_auto_ml_jobs::ListAutoMLJobsError, R>> for Error
5550where
5551 R: Send + Sync + std::fmt::Debug + 'static,
5552{
5553 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_auto_ml_jobs::ListAutoMLJobsError, R>) -> Self {
5554 match err {
5555 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5556 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5557 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5558 source: err.into(),
5559 }),
5560 }
5561 }
5562}
5563impl From<crate::operation::list_auto_ml_jobs::ListAutoMLJobsError> for Error {
5564 fn from(err: crate::operation::list_auto_ml_jobs::ListAutoMLJobsError) -> Self {
5565 match err {
5566 crate::operation::list_auto_ml_jobs::ListAutoMLJobsError::Unhandled(inner) => Error::Unhandled(inner),
5567 }
5568 }
5569}
5570impl<R>
5571 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError, R>>
5572 for Error
5573where
5574 R: Send + Sync + std::fmt::Debug + 'static,
5575{
5576 fn from(
5577 err: ::aws_smithy_runtime_api::client::result::SdkError<
5578 crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError,
5579 R,
5580 >,
5581 ) -> Self {
5582 match err {
5583 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5584 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5585 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5586 source: err.into(),
5587 }),
5588 }
5589 }
5590}
5591impl From<crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError> for Error {
5592 fn from(err: crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError) -> Self {
5593 match err {
5594 crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError::ResourceNotFound(inner) => {
5595 Error::ResourceNotFound(inner)
5596 }
5597 crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
5598 }
5599 }
5600}
5601impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_events::ListClusterEventsError, R>> for Error
5602where
5603 R: Send + Sync + std::fmt::Debug + 'static,
5604{
5605 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_events::ListClusterEventsError, R>) -> Self {
5606 match err {
5607 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5608 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5609 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5610 source: err.into(),
5611 }),
5612 }
5613 }
5614}
5615impl From<crate::operation::list_cluster_events::ListClusterEventsError> for Error {
5616 fn from(err: crate::operation::list_cluster_events::ListClusterEventsError) -> Self {
5617 match err {
5618 crate::operation::list_cluster_events::ListClusterEventsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5619 crate::operation::list_cluster_events::ListClusterEventsError::Unhandled(inner) => Error::Unhandled(inner),
5620 }
5621 }
5622}
5623impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_nodes::ListClusterNodesError, R>> for Error
5624where
5625 R: Send + Sync + std::fmt::Debug + 'static,
5626{
5627 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_nodes::ListClusterNodesError, R>) -> Self {
5628 match err {
5629 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5630 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5631 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5632 source: err.into(),
5633 }),
5634 }
5635 }
5636}
5637impl From<crate::operation::list_cluster_nodes::ListClusterNodesError> for Error {
5638 fn from(err: crate::operation::list_cluster_nodes::ListClusterNodesError) -> Self {
5639 match err {
5640 crate::operation::list_cluster_nodes::ListClusterNodesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5641 crate::operation::list_cluster_nodes::ListClusterNodesError::Unhandled(inner) => Error::Unhandled(inner),
5642 }
5643 }
5644}
5645impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_clusters::ListClustersError, R>> for Error
5646where
5647 R: Send + Sync + std::fmt::Debug + 'static,
5648{
5649 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_clusters::ListClustersError, R>) -> Self {
5650 match err {
5651 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5652 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5653 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5654 source: err.into(),
5655 }),
5656 }
5657 }
5658}
5659impl From<crate::operation::list_clusters::ListClustersError> for Error {
5660 fn from(err: crate::operation::list_clusters::ListClustersError) -> Self {
5661 match err {
5662 crate::operation::list_clusters::ListClustersError::Unhandled(inner) => Error::Unhandled(inner),
5663 }
5664 }
5665}
5666impl<R>
5667 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError, 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<
5674 crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError,
5675 R,
5676 >,
5677 ) -> Self {
5678 match err {
5679 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5680 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5681 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5682 source: err.into(),
5683 }),
5684 }
5685 }
5686}
5687impl From<crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError> for Error {
5688 fn from(err: crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError) -> Self {
5689 match err {
5690 crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError::Unhandled(inner) => Error::Unhandled(inner),
5691 }
5692 }
5693}
5694impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_repositories::ListCodeRepositoriesError, R>> for Error
5695where
5696 R: Send + Sync + std::fmt::Debug + 'static,
5697{
5698 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_repositories::ListCodeRepositoriesError, R>) -> Self {
5699 match err {
5700 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5701 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5702 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5703 source: err.into(),
5704 }),
5705 }
5706 }
5707}
5708impl From<crate::operation::list_code_repositories::ListCodeRepositoriesError> for Error {
5709 fn from(err: crate::operation::list_code_repositories::ListCodeRepositoriesError) -> Self {
5710 match err {
5711 crate::operation::list_code_repositories::ListCodeRepositoriesError::Unhandled(inner) => Error::Unhandled(inner),
5712 }
5713 }
5714}
5715impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compilation_jobs::ListCompilationJobsError, R>> for Error
5716where
5717 R: Send + Sync + std::fmt::Debug + 'static,
5718{
5719 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compilation_jobs::ListCompilationJobsError, R>) -> Self {
5720 match err {
5721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5724 source: err.into(),
5725 }),
5726 }
5727 }
5728}
5729impl From<crate::operation::list_compilation_jobs::ListCompilationJobsError> for Error {
5730 fn from(err: crate::operation::list_compilation_jobs::ListCompilationJobsError) -> Self {
5731 match err {
5732 crate::operation::list_compilation_jobs::ListCompilationJobsError::Unhandled(inner) => Error::Unhandled(inner),
5733 }
5734 }
5735}
5736impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compute_quotas::ListComputeQuotasError, R>> for Error
5737where
5738 R: Send + Sync + std::fmt::Debug + 'static,
5739{
5740 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compute_quotas::ListComputeQuotasError, R>) -> Self {
5741 match err {
5742 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5743 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5744 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5745 source: err.into(),
5746 }),
5747 }
5748 }
5749}
5750impl From<crate::operation::list_compute_quotas::ListComputeQuotasError> for Error {
5751 fn from(err: crate::operation::list_compute_quotas::ListComputeQuotasError) -> Self {
5752 match err {
5753 crate::operation::list_compute_quotas::ListComputeQuotasError::Unhandled(inner) => Error::Unhandled(inner),
5754 }
5755 }
5756}
5757impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contexts::ListContextsError, R>> for Error
5758where
5759 R: Send + Sync + std::fmt::Debug + 'static,
5760{
5761 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contexts::ListContextsError, R>) -> Self {
5762 match err {
5763 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5764 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5765 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5766 source: err.into(),
5767 }),
5768 }
5769 }
5770}
5771impl From<crate::operation::list_contexts::ListContextsError> for Error {
5772 fn from(err: crate::operation::list_contexts::ListContextsError) -> Self {
5773 match err {
5774 crate::operation::list_contexts::ListContextsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5775 crate::operation::list_contexts::ListContextsError::Unhandled(inner) => Error::Unhandled(inner),
5776 }
5777 }
5778}
5779impl<R>
5780 From<
5781 ::aws_smithy_runtime_api::client::result::SdkError<
5782 crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError,
5783 R,
5784 >,
5785 > for Error
5786where
5787 R: Send + Sync + std::fmt::Debug + 'static,
5788{
5789 fn from(
5790 err: ::aws_smithy_runtime_api::client::result::SdkError<
5791 crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError,
5792 R,
5793 >,
5794 ) -> Self {
5795 match err {
5796 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5797 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5798 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5799 source: err.into(),
5800 }),
5801 }
5802 }
5803}
5804impl From<crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError> for Error {
5805 fn from(err: crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError) -> Self {
5806 match err {
5807 crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
5808 }
5809 }
5810}
5811impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_fleets::ListDeviceFleetsError, R>> for Error
5812where
5813 R: Send + Sync + std::fmt::Debug + 'static,
5814{
5815 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_fleets::ListDeviceFleetsError, R>) -> Self {
5816 match err {
5817 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5818 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5819 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5820 source: err.into(),
5821 }),
5822 }
5823 }
5824}
5825impl From<crate::operation::list_device_fleets::ListDeviceFleetsError> for Error {
5826 fn from(err: crate::operation::list_device_fleets::ListDeviceFleetsError) -> Self {
5827 match err {
5828 crate::operation::list_device_fleets::ListDeviceFleetsError::Unhandled(inner) => Error::Unhandled(inner),
5829 }
5830 }
5831}
5832impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices::ListDevicesError, R>> for Error
5833where
5834 R: Send + Sync + std::fmt::Debug + 'static,
5835{
5836 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices::ListDevicesError, R>) -> 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::list_devices::ListDevicesError> for Error {
5847 fn from(err: crate::operation::list_devices::ListDevicesError) -> Self {
5848 match err {
5849 crate::operation::list_devices::ListDevicesError::Unhandled(inner) => Error::Unhandled(inner),
5850 }
5851 }
5852}
5853impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>> for Error
5854where
5855 R: Send + Sync + std::fmt::Debug + 'static,
5856{
5857 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>) -> Self {
5858 match err {
5859 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5860 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5861 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5862 source: err.into(),
5863 }),
5864 }
5865 }
5866}
5867impl From<crate::operation::list_domains::ListDomainsError> for Error {
5868 fn from(err: crate::operation::list_domains::ListDomainsError) -> Self {
5869 match err {
5870 crate::operation::list_domains::ListDomainsError::Unhandled(inner) => Error::Unhandled(inner),
5871 }
5872 }
5873}
5874impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError, R>>
5875 for Error
5876where
5877 R: Send + Sync + std::fmt::Debug + 'static,
5878{
5879 fn from(
5880 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError, R>,
5881 ) -> Self {
5882 match err {
5883 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5884 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5885 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5886 source: err.into(),
5887 }),
5888 }
5889 }
5890}
5891impl From<crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError> for Error {
5892 fn from(err: crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError) -> Self {
5893 match err {
5894 crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError::Unhandled(inner) => Error::Unhandled(inner),
5895 }
5896 }
5897}
5898impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError, R>> for Error
5899where
5900 R: Send + Sync + std::fmt::Debug + 'static,
5901{
5902 fn from(
5903 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError, R>,
5904 ) -> Self {
5905 match err {
5906 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5907 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5908 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5909 source: err.into(),
5910 }),
5911 }
5912 }
5913}
5914impl From<crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError> for Error {
5915 fn from(err: crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError) -> Self {
5916 match err {
5917 crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError::Unhandled(inner) => Error::Unhandled(inner),
5918 }
5919 }
5920}
5921impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoint_configs::ListEndpointConfigsError, R>> for Error
5922where
5923 R: Send + Sync + std::fmt::Debug + 'static,
5924{
5925 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoint_configs::ListEndpointConfigsError, R>) -> Self {
5926 match err {
5927 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5928 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5929 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5930 source: err.into(),
5931 }),
5932 }
5933 }
5934}
5935impl From<crate::operation::list_endpoint_configs::ListEndpointConfigsError> for Error {
5936 fn from(err: crate::operation::list_endpoint_configs::ListEndpointConfigsError) -> Self {
5937 match err {
5938 crate::operation::list_endpoint_configs::ListEndpointConfigsError::Unhandled(inner) => Error::Unhandled(inner),
5939 }
5940 }
5941}
5942impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoints::ListEndpointsError, R>> for Error
5943where
5944 R: Send + Sync + std::fmt::Debug + 'static,
5945{
5946 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoints::ListEndpointsError, R>) -> Self {
5947 match err {
5948 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5949 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5950 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5951 source: err.into(),
5952 }),
5953 }
5954 }
5955}
5956impl From<crate::operation::list_endpoints::ListEndpointsError> for Error {
5957 fn from(err: crate::operation::list_endpoints::ListEndpointsError) -> Self {
5958 match err {
5959 crate::operation::list_endpoints::ListEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
5960 }
5961 }
5962}
5963impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_experiments::ListExperimentsError, R>> for Error
5964where
5965 R: Send + Sync + std::fmt::Debug + 'static,
5966{
5967 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_experiments::ListExperimentsError, R>) -> Self {
5968 match err {
5969 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5970 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5971 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5972 source: err.into(),
5973 }),
5974 }
5975 }
5976}
5977impl From<crate::operation::list_experiments::ListExperimentsError> for Error {
5978 fn from(err: crate::operation::list_experiments::ListExperimentsError) -> Self {
5979 match err {
5980 crate::operation::list_experiments::ListExperimentsError::Unhandled(inner) => Error::Unhandled(inner),
5981 }
5982 }
5983}
5984impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_feature_groups::ListFeatureGroupsError, R>> for Error
5985where
5986 R: Send + Sync + std::fmt::Debug + 'static,
5987{
5988 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_feature_groups::ListFeatureGroupsError, R>) -> Self {
5989 match err {
5990 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5991 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5992 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5993 source: err.into(),
5994 }),
5995 }
5996 }
5997}
5998impl From<crate::operation::list_feature_groups::ListFeatureGroupsError> for Error {
5999 fn from(err: crate::operation::list_feature_groups::ListFeatureGroupsError) -> Self {
6000 match err {
6001 crate::operation::list_feature_groups::ListFeatureGroupsError::Unhandled(inner) => Error::Unhandled(inner),
6002 }
6003 }
6004}
6005impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_definitions::ListFlowDefinitionsError, R>> for Error
6006where
6007 R: Send + Sync + std::fmt::Debug + 'static,
6008{
6009 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_definitions::ListFlowDefinitionsError, R>) -> Self {
6010 match err {
6011 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6012 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6013 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6014 source: err.into(),
6015 }),
6016 }
6017 }
6018}
6019impl From<crate::operation::list_flow_definitions::ListFlowDefinitionsError> for Error {
6020 fn from(err: crate::operation::list_flow_definitions::ListFlowDefinitionsError) -> Self {
6021 match err {
6022 crate::operation::list_flow_definitions::ListFlowDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
6023 }
6024 }
6025}
6026impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_contents::ListHubContentsError, R>> for Error
6027where
6028 R: Send + Sync + std::fmt::Debug + 'static,
6029{
6030 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_contents::ListHubContentsError, R>) -> Self {
6031 match err {
6032 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6033 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6034 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6035 source: err.into(),
6036 }),
6037 }
6038 }
6039}
6040impl From<crate::operation::list_hub_contents::ListHubContentsError> for Error {
6041 fn from(err: crate::operation::list_hub_contents::ListHubContentsError) -> Self {
6042 match err {
6043 crate::operation::list_hub_contents::ListHubContentsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6044 crate::operation::list_hub_contents::ListHubContentsError::Unhandled(inner) => Error::Unhandled(inner),
6045 }
6046 }
6047}
6048impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_content_versions::ListHubContentVersionsError, R>>
6049 for Error
6050where
6051 R: Send + Sync + std::fmt::Debug + 'static,
6052{
6053 fn from(
6054 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_content_versions::ListHubContentVersionsError, R>,
6055 ) -> Self {
6056 match err {
6057 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6058 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6059 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6060 source: err.into(),
6061 }),
6062 }
6063 }
6064}
6065impl From<crate::operation::list_hub_content_versions::ListHubContentVersionsError> for Error {
6066 fn from(err: crate::operation::list_hub_content_versions::ListHubContentVersionsError) -> Self {
6067 match err {
6068 crate::operation::list_hub_content_versions::ListHubContentVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6069 crate::operation::list_hub_content_versions::ListHubContentVersionsError::Unhandled(inner) => Error::Unhandled(inner),
6070 }
6071 }
6072}
6073impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hubs::ListHubsError, R>> for Error
6074where
6075 R: Send + Sync + std::fmt::Debug + 'static,
6076{
6077 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hubs::ListHubsError, R>) -> Self {
6078 match err {
6079 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6080 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6081 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6082 source: err.into(),
6083 }),
6084 }
6085 }
6086}
6087impl From<crate::operation::list_hubs::ListHubsError> for Error {
6088 fn from(err: crate::operation::list_hubs::ListHubsError) -> Self {
6089 match err {
6090 crate::operation::list_hubs::ListHubsError::Unhandled(inner) => Error::Unhandled(inner),
6091 }
6092 }
6093}
6094impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_human_task_uis::ListHumanTaskUisError, R>> for Error
6095where
6096 R: Send + Sync + std::fmt::Debug + 'static,
6097{
6098 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_human_task_uis::ListHumanTaskUisError, R>) -> Self {
6099 match err {
6100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6103 source: err.into(),
6104 }),
6105 }
6106 }
6107}
6108impl From<crate::operation::list_human_task_uis::ListHumanTaskUisError> for Error {
6109 fn from(err: crate::operation::list_human_task_uis::ListHumanTaskUisError) -> Self {
6110 match err {
6111 crate::operation::list_human_task_uis::ListHumanTaskUisError::Unhandled(inner) => Error::Unhandled(inner),
6112 }
6113 }
6114}
6115impl<R>
6116 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError, R>>
6117 for Error
6118where
6119 R: Send + Sync + std::fmt::Debug + 'static,
6120{
6121 fn from(
6122 err: ::aws_smithy_runtime_api::client::result::SdkError<
6123 crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError,
6124 R,
6125 >,
6126 ) -> Self {
6127 match err {
6128 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6129 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6130 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6131 source: err.into(),
6132 }),
6133 }
6134 }
6135}
6136impl From<crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError> for Error {
6137 fn from(err: crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError) -> Self {
6138 match err {
6139 crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError::Unhandled(inner) => Error::Unhandled(inner),
6140 }
6141 }
6142}
6143impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images::ListImagesError, R>> for Error
6144where
6145 R: Send + Sync + std::fmt::Debug + 'static,
6146{
6147 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images::ListImagesError, R>) -> Self {
6148 match err {
6149 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6150 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6151 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6152 source: err.into(),
6153 }),
6154 }
6155 }
6156}
6157impl From<crate::operation::list_images::ListImagesError> for Error {
6158 fn from(err: crate::operation::list_images::ListImagesError) -> Self {
6159 match err {
6160 crate::operation::list_images::ListImagesError::Unhandled(inner) => Error::Unhandled(inner),
6161 }
6162 }
6163}
6164impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_image_versions::ListImageVersionsError, R>> for Error
6165where
6166 R: Send + Sync + std::fmt::Debug + 'static,
6167{
6168 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_image_versions::ListImageVersionsError, R>) -> Self {
6169 match err {
6170 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6171 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6172 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6173 source: err.into(),
6174 }),
6175 }
6176 }
6177}
6178impl From<crate::operation::list_image_versions::ListImageVersionsError> for Error {
6179 fn from(err: crate::operation::list_image_versions::ListImageVersionsError) -> Self {
6180 match err {
6181 crate::operation::list_image_versions::ListImageVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6182 crate::operation::list_image_versions::ListImageVersionsError::Unhandled(inner) => Error::Unhandled(inner),
6183 }
6184 }
6185}
6186impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_components::ListInferenceComponentsError, R>>
6187 for Error
6188where
6189 R: Send + Sync + std::fmt::Debug + 'static,
6190{
6191 fn from(
6192 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_components::ListInferenceComponentsError, R>,
6193 ) -> Self {
6194 match err {
6195 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6196 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6197 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6198 source: err.into(),
6199 }),
6200 }
6201 }
6202}
6203impl From<crate::operation::list_inference_components::ListInferenceComponentsError> for Error {
6204 fn from(err: crate::operation::list_inference_components::ListInferenceComponentsError) -> Self {
6205 match err {
6206 crate::operation::list_inference_components::ListInferenceComponentsError::Unhandled(inner) => Error::Unhandled(inner),
6207 }
6208 }
6209}
6210impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_experiments::ListInferenceExperimentsError, R>>
6211 for Error
6212where
6213 R: Send + Sync + std::fmt::Debug + 'static,
6214{
6215 fn from(
6216 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_experiments::ListInferenceExperimentsError, R>,
6217 ) -> Self {
6218 match err {
6219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6222 source: err.into(),
6223 }),
6224 }
6225 }
6226}
6227impl From<crate::operation::list_inference_experiments::ListInferenceExperimentsError> for Error {
6228 fn from(err: crate::operation::list_inference_experiments::ListInferenceExperimentsError) -> Self {
6229 match err {
6230 crate::operation::list_inference_experiments::ListInferenceExperimentsError::Unhandled(inner) => Error::Unhandled(inner),
6231 }
6232 }
6233}
6234impl<R>
6235 From<
6236 ::aws_smithy_runtime_api::client::result::SdkError<
6237 crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError,
6238 R,
6239 >,
6240 > for Error
6241where
6242 R: Send + Sync + std::fmt::Debug + 'static,
6243{
6244 fn from(
6245 err: ::aws_smithy_runtime_api::client::result::SdkError<
6246 crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError,
6247 R,
6248 >,
6249 ) -> Self {
6250 match err {
6251 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6252 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6253 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6254 source: err.into(),
6255 }),
6256 }
6257 }
6258}
6259impl From<crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError> for Error {
6260 fn from(err: crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError) -> Self {
6261 match err {
6262 crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError::Unhandled(inner) => Error::Unhandled(inner),
6263 }
6264 }
6265}
6266impl<R>
6267 From<
6268 ::aws_smithy_runtime_api::client::result::SdkError<
6269 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError,
6270 R,
6271 >,
6272 > for Error
6273where
6274 R: Send + Sync + std::fmt::Debug + 'static,
6275{
6276 fn from(
6277 err: ::aws_smithy_runtime_api::client::result::SdkError<
6278 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError,
6279 R,
6280 >,
6281 ) -> Self {
6282 match err {
6283 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6284 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6285 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6286 source: err.into(),
6287 }),
6288 }
6289 }
6290}
6291impl From<crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError> for Error {
6292 fn from(err: crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError) -> Self {
6293 match err {
6294 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError::ResourceNotFound(inner) => {
6295 Error::ResourceNotFound(inner)
6296 }
6297 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError::Unhandled(inner) => {
6298 Error::Unhandled(inner)
6299 }
6300 }
6301 }
6302}
6303impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_labeling_jobs::ListLabelingJobsError, R>> for Error
6304where
6305 R: Send + Sync + std::fmt::Debug + 'static,
6306{
6307 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_labeling_jobs::ListLabelingJobsError, R>) -> Self {
6308 match err {
6309 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6310 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6311 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6312 source: err.into(),
6313 }),
6314 }
6315 }
6316}
6317impl From<crate::operation::list_labeling_jobs::ListLabelingJobsError> for Error {
6318 fn from(err: crate::operation::list_labeling_jobs::ListLabelingJobsError) -> Self {
6319 match err {
6320 crate::operation::list_labeling_jobs::ListLabelingJobsError::Unhandled(inner) => Error::Unhandled(inner),
6321 }
6322 }
6323}
6324impl<R>
6325 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError, R>>
6326 for Error
6327where
6328 R: Send + Sync + std::fmt::Debug + 'static,
6329{
6330 fn from(
6331 err: ::aws_smithy_runtime_api::client::result::SdkError<
6332 crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError,
6333 R,
6334 >,
6335 ) -> Self {
6336 match err {
6337 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6338 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6339 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6340 source: err.into(),
6341 }),
6342 }
6343 }
6344}
6345impl From<crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError> for Error {
6346 fn from(err: crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError) -> Self {
6347 match err {
6348 crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError::ResourceNotFound(inner) => {
6349 Error::ResourceNotFound(inner)
6350 }
6351 crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
6352 }
6353 }
6354}
6355impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lineage_groups::ListLineageGroupsError, R>> for Error
6356where
6357 R: Send + Sync + std::fmt::Debug + 'static,
6358{
6359 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lineage_groups::ListLineageGroupsError, R>) -> Self {
6360 match err {
6361 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6362 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6363 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6364 source: err.into(),
6365 }),
6366 }
6367 }
6368}
6369impl From<crate::operation::list_lineage_groups::ListLineageGroupsError> for Error {
6370 fn from(err: crate::operation::list_lineage_groups::ListLineageGroupsError) -> Self {
6371 match err {
6372 crate::operation::list_lineage_groups::ListLineageGroupsError::Unhandled(inner) => Error::Unhandled(inner),
6373 }
6374 }
6375}
6376impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError, R>>
6377 for Error
6378where
6379 R: Send + Sync + std::fmt::Debug + 'static,
6380{
6381 fn from(
6382 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError, R>,
6383 ) -> Self {
6384 match err {
6385 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6386 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6387 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6388 source: err.into(),
6389 }),
6390 }
6391 }
6392}
6393impl From<crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError> for Error {
6394 fn from(err: crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError) -> Self {
6395 match err {
6396 crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError::Unhandled(inner) => Error::Unhandled(inner),
6397 }
6398 }
6399}
6400impl<R>
6401 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError, R>>
6402 for Error
6403where
6404 R: Send + Sync + std::fmt::Debug + 'static,
6405{
6406 fn from(
6407 err: ::aws_smithy_runtime_api::client::result::SdkError<
6408 crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError,
6409 R,
6410 >,
6411 ) -> Self {
6412 match err {
6413 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6414 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6415 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6416 source: err.into(),
6417 }),
6418 }
6419 }
6420}
6421impl From<crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError> for Error {
6422 fn from(err: crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError) -> Self {
6423 match err {
6424 crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
6425 }
6426 }
6427}
6428impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError, R>>
6429 for Error
6430where
6431 R: Send + Sync + std::fmt::Debug + 'static,
6432{
6433 fn from(
6434 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError, R>,
6435 ) -> Self {
6436 match err {
6437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6440 source: err.into(),
6441 }),
6442 }
6443 }
6444}
6445impl From<crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError> for Error {
6446 fn from(err: crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError) -> Self {
6447 match err {
6448 crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError::Unhandled(inner) => Error::Unhandled(inner),
6449 }
6450 }
6451}
6452impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_cards::ListModelCardsError, R>> for Error
6453where
6454 R: Send + Sync + std::fmt::Debug + 'static,
6455{
6456 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_cards::ListModelCardsError, R>) -> Self {
6457 match err {
6458 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6459 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6460 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6461 source: err.into(),
6462 }),
6463 }
6464 }
6465}
6466impl From<crate::operation::list_model_cards::ListModelCardsError> for Error {
6467 fn from(err: crate::operation::list_model_cards::ListModelCardsError) -> Self {
6468 match err {
6469 crate::operation::list_model_cards::ListModelCardsError::Unhandled(inner) => Error::Unhandled(inner),
6470 }
6471 }
6472}
6473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_versions::ListModelCardVersionsError, R>> for Error
6474where
6475 R: Send + Sync + std::fmt::Debug + 'static,
6476{
6477 fn from(
6478 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_versions::ListModelCardVersionsError, R>,
6479 ) -> Self {
6480 match err {
6481 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6482 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6483 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6484 source: err.into(),
6485 }),
6486 }
6487 }
6488}
6489impl From<crate::operation::list_model_card_versions::ListModelCardVersionsError> for Error {
6490 fn from(err: crate::operation::list_model_card_versions::ListModelCardVersionsError) -> Self {
6491 match err {
6492 crate::operation::list_model_card_versions::ListModelCardVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6493 crate::operation::list_model_card_versions::ListModelCardVersionsError::Unhandled(inner) => Error::Unhandled(inner),
6494 }
6495 }
6496}
6497impl<R>
6498 From<
6499 ::aws_smithy_runtime_api::client::result::SdkError<
6500 crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError,
6501 R,
6502 >,
6503 > for Error
6504where
6505 R: Send + Sync + std::fmt::Debug + 'static,
6506{
6507 fn from(
6508 err: ::aws_smithy_runtime_api::client::result::SdkError<
6509 crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError,
6510 R,
6511 >,
6512 ) -> Self {
6513 match err {
6514 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6515 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6516 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6517 source: err.into(),
6518 }),
6519 }
6520 }
6521}
6522impl From<crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError> for Error {
6523 fn from(err: crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError) -> Self {
6524 match err {
6525 crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError::Unhandled(inner) => {
6526 Error::Unhandled(inner)
6527 }
6528 }
6529 }
6530}
6531impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_metadata::ListModelMetadataError, R>> for Error
6532where
6533 R: Send + Sync + std::fmt::Debug + 'static,
6534{
6535 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_metadata::ListModelMetadataError, R>) -> Self {
6536 match err {
6537 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6538 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6539 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6540 source: err.into(),
6541 }),
6542 }
6543 }
6544}
6545impl From<crate::operation::list_model_metadata::ListModelMetadataError> for Error {
6546 fn from(err: crate::operation::list_model_metadata::ListModelMetadataError) -> Self {
6547 match err {
6548 crate::operation::list_model_metadata::ListModelMetadataError::Unhandled(inner) => Error::Unhandled(inner),
6549 }
6550 }
6551}
6552impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_package_groups::ListModelPackageGroupsError, R>>
6553 for Error
6554where
6555 R: Send + Sync + std::fmt::Debug + 'static,
6556{
6557 fn from(
6558 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_package_groups::ListModelPackageGroupsError, R>,
6559 ) -> Self {
6560 match err {
6561 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6562 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6563 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6564 source: err.into(),
6565 }),
6566 }
6567 }
6568}
6569impl From<crate::operation::list_model_package_groups::ListModelPackageGroupsError> for Error {
6570 fn from(err: crate::operation::list_model_package_groups::ListModelPackageGroupsError) -> Self {
6571 match err {
6572 crate::operation::list_model_package_groups::ListModelPackageGroupsError::Unhandled(inner) => Error::Unhandled(inner),
6573 }
6574 }
6575}
6576impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_packages::ListModelPackagesError, R>> for Error
6577where
6578 R: Send + Sync + std::fmt::Debug + 'static,
6579{
6580 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_packages::ListModelPackagesError, R>) -> Self {
6581 match err {
6582 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6583 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6584 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6585 source: err.into(),
6586 }),
6587 }
6588 }
6589}
6590impl From<crate::operation::list_model_packages::ListModelPackagesError> for Error {
6591 fn from(err: crate::operation::list_model_packages::ListModelPackagesError) -> Self {
6592 match err {
6593 crate::operation::list_model_packages::ListModelPackagesError::Unhandled(inner) => Error::Unhandled(inner),
6594 }
6595 }
6596}
6597impl<R>
6598 From<
6599 ::aws_smithy_runtime_api::client::result::SdkError<
6600 crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError,
6601 R,
6602 >,
6603 > for Error
6604where
6605 R: Send + Sync + std::fmt::Debug + 'static,
6606{
6607 fn from(
6608 err: ::aws_smithy_runtime_api::client::result::SdkError<
6609 crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError,
6610 R,
6611 >,
6612 ) -> Self {
6613 match err {
6614 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6615 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6616 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6617 source: err.into(),
6618 }),
6619 }
6620 }
6621}
6622impl From<crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError> for Error {
6623 fn from(err: crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError) -> Self {
6624 match err {
6625 crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
6626 }
6627 }
6628}
6629impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_models::ListModelsError, R>> for Error
6630where
6631 R: Send + Sync + std::fmt::Debug + 'static,
6632{
6633 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_models::ListModelsError, R>) -> Self {
6634 match err {
6635 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6636 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6637 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6638 source: err.into(),
6639 }),
6640 }
6641 }
6642}
6643impl From<crate::operation::list_models::ListModelsError> for Error {
6644 fn from(err: crate::operation::list_models::ListModelsError) -> Self {
6645 match err {
6646 crate::operation::list_models::ListModelsError::Unhandled(inner) => Error::Unhandled(inner),
6647 }
6648 }
6649}
6650impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError, R>>
6651 for Error
6652where
6653 R: Send + Sync + std::fmt::Debug + 'static,
6654{
6655 fn from(
6656 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError, R>,
6657 ) -> Self {
6658 match err {
6659 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6660 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6661 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6662 source: err.into(),
6663 }),
6664 }
6665 }
6666}
6667impl From<crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError> for Error {
6668 fn from(err: crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError) -> Self {
6669 match err {
6670 crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError::ResourceNotFound(inner) => {
6671 Error::ResourceNotFound(inner)
6672 }
6673 crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError::Unhandled(inner) => Error::Unhandled(inner),
6674 }
6675 }
6676}
6677impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alerts::ListMonitoringAlertsError, R>> for Error
6678where
6679 R: Send + Sync + std::fmt::Debug + 'static,
6680{
6681 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alerts::ListMonitoringAlertsError, R>) -> Self {
6682 match err {
6683 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6684 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6685 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6686 source: err.into(),
6687 }),
6688 }
6689 }
6690}
6691impl From<crate::operation::list_monitoring_alerts::ListMonitoringAlertsError> for Error {
6692 fn from(err: crate::operation::list_monitoring_alerts::ListMonitoringAlertsError) -> Self {
6693 match err {
6694 crate::operation::list_monitoring_alerts::ListMonitoringAlertsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6695 crate::operation::list_monitoring_alerts::ListMonitoringAlertsError::Unhandled(inner) => Error::Unhandled(inner),
6696 }
6697 }
6698}
6699impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_executions::ListMonitoringExecutionsError, R>>
6700 for Error
6701where
6702 R: Send + Sync + std::fmt::Debug + 'static,
6703{
6704 fn from(
6705 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_executions::ListMonitoringExecutionsError, R>,
6706 ) -> Self {
6707 match err {
6708 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6709 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6710 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6711 source: err.into(),
6712 }),
6713 }
6714 }
6715}
6716impl From<crate::operation::list_monitoring_executions::ListMonitoringExecutionsError> for Error {
6717 fn from(err: crate::operation::list_monitoring_executions::ListMonitoringExecutionsError) -> Self {
6718 match err {
6719 crate::operation::list_monitoring_executions::ListMonitoringExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
6720 }
6721 }
6722}
6723impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError, R>>
6724 for Error
6725where
6726 R: Send + Sync + std::fmt::Debug + 'static,
6727{
6728 fn from(
6729 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError, R>,
6730 ) -> Self {
6731 match err {
6732 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6733 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6734 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6735 source: err.into(),
6736 }),
6737 }
6738 }
6739}
6740impl From<crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError> for Error {
6741 fn from(err: crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError) -> Self {
6742 match err {
6743 crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError::Unhandled(inner) => Error::Unhandled(inner),
6744 }
6745 }
6746}
6747impl<R>
6748 From<
6749 ::aws_smithy_runtime_api::client::result::SdkError<
6750 crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError,
6751 R,
6752 >,
6753 > for Error
6754where
6755 R: Send + Sync + std::fmt::Debug + 'static,
6756{
6757 fn from(
6758 err: ::aws_smithy_runtime_api::client::result::SdkError<
6759 crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError,
6760 R,
6761 >,
6762 ) -> Self {
6763 match err {
6764 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6765 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6766 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6767 source: err.into(),
6768 }),
6769 }
6770 }
6771}
6772impl From<crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError> for Error {
6773 fn from(err: crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError) -> Self {
6774 match err {
6775 crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError::Unhandled(inner) => {
6776 Error::Unhandled(inner)
6777 }
6778 }
6779 }
6780}
6781impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notebook_instances::ListNotebookInstancesError, R>> for Error
6782where
6783 R: Send + Sync + std::fmt::Debug + 'static,
6784{
6785 fn from(
6786 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notebook_instances::ListNotebookInstancesError, R>,
6787 ) -> Self {
6788 match err {
6789 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6790 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6791 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6792 source: err.into(),
6793 }),
6794 }
6795 }
6796}
6797impl From<crate::operation::list_notebook_instances::ListNotebookInstancesError> for Error {
6798 fn from(err: crate::operation::list_notebook_instances::ListNotebookInstancesError) -> Self {
6799 match err {
6800 crate::operation::list_notebook_instances::ListNotebookInstancesError::Unhandled(inner) => Error::Unhandled(inner),
6801 }
6802 }
6803}
6804impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_optimization_jobs::ListOptimizationJobsError, R>> for Error
6805where
6806 R: Send + Sync + std::fmt::Debug + 'static,
6807{
6808 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_optimization_jobs::ListOptimizationJobsError, R>) -> Self {
6809 match err {
6810 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6811 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6812 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6813 source: err.into(),
6814 }),
6815 }
6816 }
6817}
6818impl From<crate::operation::list_optimization_jobs::ListOptimizationJobsError> for Error {
6819 fn from(err: crate::operation::list_optimization_jobs::ListOptimizationJobsError) -> Self {
6820 match err {
6821 crate::operation::list_optimization_jobs::ListOptimizationJobsError::Unhandled(inner) => Error::Unhandled(inner),
6822 }
6823 }
6824}
6825impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_partner_apps::ListPartnerAppsError, R>> for Error
6826where
6827 R: Send + Sync + std::fmt::Debug + 'static,
6828{
6829 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_partner_apps::ListPartnerAppsError, R>) -> Self {
6830 match err {
6831 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6832 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6833 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6834 source: err.into(),
6835 }),
6836 }
6837 }
6838}
6839impl From<crate::operation::list_partner_apps::ListPartnerAppsError> for Error {
6840 fn from(err: crate::operation::list_partner_apps::ListPartnerAppsError) -> Self {
6841 match err {
6842 crate::operation::list_partner_apps::ListPartnerAppsError::Unhandled(inner) => Error::Unhandled(inner),
6843 }
6844 }
6845}
6846impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_executions::ListPipelineExecutionsError, R>> for Error
6847where
6848 R: Send + Sync + std::fmt::Debug + 'static,
6849{
6850 fn from(
6851 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_executions::ListPipelineExecutionsError, R>,
6852 ) -> Self {
6853 match err {
6854 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6855 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6856 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6857 source: err.into(),
6858 }),
6859 }
6860 }
6861}
6862impl From<crate::operation::list_pipeline_executions::ListPipelineExecutionsError> for Error {
6863 fn from(err: crate::operation::list_pipeline_executions::ListPipelineExecutionsError) -> Self {
6864 match err {
6865 crate::operation::list_pipeline_executions::ListPipelineExecutionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6866 crate::operation::list_pipeline_executions::ListPipelineExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
6867 }
6868 }
6869}
6870impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError, R>>
6871 for Error
6872where
6873 R: Send + Sync + std::fmt::Debug + 'static,
6874{
6875 fn from(
6876 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError, R>,
6877 ) -> Self {
6878 match err {
6879 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6880 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6881 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6882 source: err.into(),
6883 }),
6884 }
6885 }
6886}
6887impl From<crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError> for Error {
6888 fn from(err: crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError) -> Self {
6889 match err {
6890 crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError::ResourceNotFound(inner) => {
6891 Error::ResourceNotFound(inner)
6892 }
6893 crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError::Unhandled(inner) => Error::Unhandled(inner),
6894 }
6895 }
6896}
6897impl<R>
6898 From<
6899 ::aws_smithy_runtime_api::client::result::SdkError<
6900 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError,
6901 R,
6902 >,
6903 > for Error
6904where
6905 R: Send + Sync + std::fmt::Debug + 'static,
6906{
6907 fn from(
6908 err: ::aws_smithy_runtime_api::client::result::SdkError<
6909 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError,
6910 R,
6911 >,
6912 ) -> Self {
6913 match err {
6914 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6915 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6916 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6917 source: err.into(),
6918 }),
6919 }
6920 }
6921}
6922impl From<crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError> for Error {
6923 fn from(err: crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError) -> Self {
6924 match err {
6925 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError::ResourceNotFound(inner) => {
6926 Error::ResourceNotFound(inner)
6927 }
6928 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError::Unhandled(inner) => {
6929 Error::Unhandled(inner)
6930 }
6931 }
6932 }
6933}
6934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipelines::ListPipelinesError, R>> for Error
6935where
6936 R: Send + Sync + std::fmt::Debug + 'static,
6937{
6938 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipelines::ListPipelinesError, R>) -> Self {
6939 match err {
6940 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6941 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6942 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6943 source: err.into(),
6944 }),
6945 }
6946 }
6947}
6948impl From<crate::operation::list_pipelines::ListPipelinesError> for Error {
6949 fn from(err: crate::operation::list_pipelines::ListPipelinesError) -> Self {
6950 match err {
6951 crate::operation::list_pipelines::ListPipelinesError::Unhandled(inner) => Error::Unhandled(inner),
6952 }
6953 }
6954}
6955impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_versions::ListPipelineVersionsError, 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_pipeline_versions::ListPipelineVersionsError, 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_pipeline_versions::ListPipelineVersionsError> for Error {
6970 fn from(err: crate::operation::list_pipeline_versions::ListPipelineVersionsError) -> Self {
6971 match err {
6972 crate::operation::list_pipeline_versions::ListPipelineVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6973 crate::operation::list_pipeline_versions::ListPipelineVersionsError::Unhandled(inner) => Error::Unhandled(inner),
6974 }
6975 }
6976}
6977impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_processing_jobs::ListProcessingJobsError, R>> for Error
6978where
6979 R: Send + Sync + std::fmt::Debug + 'static,
6980{
6981 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_processing_jobs::ListProcessingJobsError, R>) -> Self {
6982 match err {
6983 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6984 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6985 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6986 source: err.into(),
6987 }),
6988 }
6989 }
6990}
6991impl From<crate::operation::list_processing_jobs::ListProcessingJobsError> for Error {
6992 fn from(err: crate::operation::list_processing_jobs::ListProcessingJobsError) -> Self {
6993 match err {
6994 crate::operation::list_processing_jobs::ListProcessingJobsError::Unhandled(inner) => Error::Unhandled(inner),
6995 }
6996 }
6997}
6998impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>> for Error
6999where
7000 R: Send + Sync + std::fmt::Debug + 'static,
7001{
7002 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>) -> Self {
7003 match err {
7004 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7005 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7006 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7007 source: err.into(),
7008 }),
7009 }
7010 }
7011}
7012impl From<crate::operation::list_projects::ListProjectsError> for Error {
7013 fn from(err: crate::operation::list_projects::ListProjectsError) -> Self {
7014 match err {
7015 crate::operation::list_projects::ListProjectsError::Unhandled(inner) => Error::Unhandled(inner),
7016 }
7017 }
7018}
7019impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_catalogs::ListResourceCatalogsError, R>> for Error
7020where
7021 R: Send + Sync + std::fmt::Debug + 'static,
7022{
7023 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_catalogs::ListResourceCatalogsError, R>) -> Self {
7024 match err {
7025 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7026 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7027 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7028 source: err.into(),
7029 }),
7030 }
7031 }
7032}
7033impl From<crate::operation::list_resource_catalogs::ListResourceCatalogsError> for Error {
7034 fn from(err: crate::operation::list_resource_catalogs::ListResourceCatalogsError) -> Self {
7035 match err {
7036 crate::operation::list_resource_catalogs::ListResourceCatalogsError::Unhandled(inner) => Error::Unhandled(inner),
7037 }
7038 }
7039}
7040impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces::ListSpacesError, R>> for Error
7041where
7042 R: Send + Sync + std::fmt::Debug + 'static,
7043{
7044 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces::ListSpacesError, R>) -> Self {
7045 match err {
7046 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7047 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7048 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7049 source: err.into(),
7050 }),
7051 }
7052 }
7053}
7054impl From<crate::operation::list_spaces::ListSpacesError> for Error {
7055 fn from(err: crate::operation::list_spaces::ListSpacesError) -> Self {
7056 match err {
7057 crate::operation::list_spaces::ListSpacesError::Unhandled(inner) => Error::Unhandled(inner),
7058 }
7059 }
7060}
7061impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stage_devices::ListStageDevicesError, R>> for Error
7062where
7063 R: Send + Sync + std::fmt::Debug + 'static,
7064{
7065 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stage_devices::ListStageDevicesError, R>) -> Self {
7066 match err {
7067 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7068 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7069 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7070 source: err.into(),
7071 }),
7072 }
7073 }
7074}
7075impl From<crate::operation::list_stage_devices::ListStageDevicesError> for Error {
7076 fn from(err: crate::operation::list_stage_devices::ListStageDevicesError) -> Self {
7077 match err {
7078 crate::operation::list_stage_devices::ListStageDevicesError::Unhandled(inner) => Error::Unhandled(inner),
7079 }
7080 }
7081}
7082impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError, R>>
7083 for Error
7084where
7085 R: Send + Sync + std::fmt::Debug + 'static,
7086{
7087 fn from(
7088 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError, R>,
7089 ) -> Self {
7090 match err {
7091 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7092 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7093 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7094 source: err.into(),
7095 }),
7096 }
7097 }
7098}
7099impl From<crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError> for Error {
7100 fn from(err: crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError) -> Self {
7101 match err {
7102 crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError::ResourceInUse(inner) => Error::ResourceInUse(inner),
7103 crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError::Unhandled(inner) => Error::Unhandled(inner),
7104 }
7105 }
7106}
7107impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError, R>>
7108 for Error
7109where
7110 R: Send + Sync + std::fmt::Debug + 'static,
7111{
7112 fn from(
7113 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError, R>,
7114 ) -> Self {
7115 match err {
7116 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7117 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7118 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7119 source: err.into(),
7120 }),
7121 }
7122 }
7123}
7124impl From<crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError> for Error {
7125 fn from(err: crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError) -> Self {
7126 match err {
7127 crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError::Unhandled(inner) => Error::Unhandled(inner),
7128 }
7129 }
7130}
7131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags::ListTagsError, R>> for Error
7132where
7133 R: Send + Sync + std::fmt::Debug + 'static,
7134{
7135 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags::ListTagsError, R>) -> Self {
7136 match err {
7137 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7138 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7139 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7140 source: err.into(),
7141 }),
7142 }
7143 }
7144}
7145impl From<crate::operation::list_tags::ListTagsError> for Error {
7146 fn from(err: crate::operation::list_tags::ListTagsError) -> Self {
7147 match err {
7148 crate::operation::list_tags::ListTagsError::Unhandled(inner) => Error::Unhandled(inner),
7149 }
7150 }
7151}
7152impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_jobs::ListTrainingJobsError, R>> for Error
7153where
7154 R: Send + Sync + std::fmt::Debug + 'static,
7155{
7156 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_jobs::ListTrainingJobsError, R>) -> Self {
7157 match err {
7158 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7159 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7160 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7161 source: err.into(),
7162 }),
7163 }
7164 }
7165}
7166impl From<crate::operation::list_training_jobs::ListTrainingJobsError> for Error {
7167 fn from(err: crate::operation::list_training_jobs::ListTrainingJobsError) -> Self {
7168 match err {
7169 crate::operation::list_training_jobs::ListTrainingJobsError::Unhandled(inner) => Error::Unhandled(inner),
7170 }
7171 }
7172}
7173impl<R>
7174 From<
7175 ::aws_smithy_runtime_api::client::result::SdkError<
7176 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError,
7177 R,
7178 >,
7179 > for Error
7180where
7181 R: Send + Sync + std::fmt::Debug + 'static,
7182{
7183 fn from(
7184 err: ::aws_smithy_runtime_api::client::result::SdkError<
7185 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError,
7186 R,
7187 >,
7188 ) -> Self {
7189 match err {
7190 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7191 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7192 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7193 source: err.into(),
7194 }),
7195 }
7196 }
7197}
7198impl From<crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError> for Error {
7199 fn from(err: crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError) -> Self {
7200 match err {
7201 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7202 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
7203 }
7204 }
7205}
7206impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_plans::ListTrainingPlansError, R>> for Error
7207where
7208 R: Send + Sync + std::fmt::Debug + 'static,
7209{
7210 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_plans::ListTrainingPlansError, R>) -> Self {
7211 match err {
7212 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7213 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7214 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7215 source: err.into(),
7216 }),
7217 }
7218 }
7219}
7220impl From<crate::operation::list_training_plans::ListTrainingPlansError> for Error {
7221 fn from(err: crate::operation::list_training_plans::ListTrainingPlansError) -> Self {
7222 match err {
7223 crate::operation::list_training_plans::ListTrainingPlansError::Unhandled(inner) => Error::Unhandled(inner),
7224 }
7225 }
7226}
7227impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_transform_jobs::ListTransformJobsError, R>> for Error
7228where
7229 R: Send + Sync + std::fmt::Debug + 'static,
7230{
7231 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_transform_jobs::ListTransformJobsError, R>) -> Self {
7232 match err {
7233 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7234 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7235 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7236 source: err.into(),
7237 }),
7238 }
7239 }
7240}
7241impl From<crate::operation::list_transform_jobs::ListTransformJobsError> for Error {
7242 fn from(err: crate::operation::list_transform_jobs::ListTransformJobsError) -> Self {
7243 match err {
7244 crate::operation::list_transform_jobs::ListTransformJobsError::Unhandled(inner) => Error::Unhandled(inner),
7245 }
7246 }
7247}
7248impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trial_components::ListTrialComponentsError, R>> for Error
7249where
7250 R: Send + Sync + std::fmt::Debug + 'static,
7251{
7252 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trial_components::ListTrialComponentsError, R>) -> Self {
7253 match err {
7254 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7255 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7256 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7257 source: err.into(),
7258 }),
7259 }
7260 }
7261}
7262impl From<crate::operation::list_trial_components::ListTrialComponentsError> for Error {
7263 fn from(err: crate::operation::list_trial_components::ListTrialComponentsError) -> Self {
7264 match err {
7265 crate::operation::list_trial_components::ListTrialComponentsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7266 crate::operation::list_trial_components::ListTrialComponentsError::Unhandled(inner) => Error::Unhandled(inner),
7267 }
7268 }
7269}
7270impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trials::ListTrialsError, R>> for Error
7271where
7272 R: Send + Sync + std::fmt::Debug + 'static,
7273{
7274 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trials::ListTrialsError, R>) -> Self {
7275 match err {
7276 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7277 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7278 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7279 source: err.into(),
7280 }),
7281 }
7282 }
7283}
7284impl From<crate::operation::list_trials::ListTrialsError> for Error {
7285 fn from(err: crate::operation::list_trials::ListTrialsError) -> Self {
7286 match err {
7287 crate::operation::list_trials::ListTrialsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7288 crate::operation::list_trials::ListTrialsError::Unhandled(inner) => Error::Unhandled(inner),
7289 }
7290 }
7291}
7292impl<R>
7293 From<
7294 ::aws_smithy_runtime_api::client::result::SdkError<
7295 crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError,
7296 R,
7297 >,
7298 > for Error
7299where
7300 R: Send + Sync + std::fmt::Debug + 'static,
7301{
7302 fn from(
7303 err: ::aws_smithy_runtime_api::client::result::SdkError<
7304 crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError,
7305 R,
7306 >,
7307 ) -> Self {
7308 match err {
7309 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7310 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7311 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7312 source: err.into(),
7313 }),
7314 }
7315 }
7316}
7317impl From<crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError> for Error {
7318 fn from(err: crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError) -> Self {
7319 match err {
7320 crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError::ResourceNotFound(inner) => {
7321 Error::ResourceNotFound(inner)
7322 }
7323 crate::operation::list_ultra_servers_by_reserved_capacity::ListUltraServersByReservedCapacityError::Unhandled(inner) => {
7324 Error::Unhandled(inner)
7325 }
7326 }
7327 }
7328}
7329impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_profiles::ListUserProfilesError, R>> for Error
7330where
7331 R: Send + Sync + std::fmt::Debug + 'static,
7332{
7333 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_profiles::ListUserProfilesError, R>) -> Self {
7334 match err {
7335 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7336 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7337 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7338 source: err.into(),
7339 }),
7340 }
7341 }
7342}
7343impl From<crate::operation::list_user_profiles::ListUserProfilesError> for Error {
7344 fn from(err: crate::operation::list_user_profiles::ListUserProfilesError) -> Self {
7345 match err {
7346 crate::operation::list_user_profiles::ListUserProfilesError::Unhandled(inner) => Error::Unhandled(inner),
7347 }
7348 }
7349}
7350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workforces::ListWorkforcesError, 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_workforces::ListWorkforcesError, 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_workforces::ListWorkforcesError> for Error {
7365 fn from(err: crate::operation::list_workforces::ListWorkforcesError) -> Self {
7366 match err {
7367 crate::operation::list_workforces::ListWorkforcesError::Unhandled(inner) => Error::Unhandled(inner),
7368 }
7369 }
7370}
7371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workteams::ListWorkteamsError, R>> for Error
7372where
7373 R: Send + Sync + std::fmt::Debug + 'static,
7374{
7375 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workteams::ListWorkteamsError, R>) -> Self {
7376 match err {
7377 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7378 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7379 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7380 source: err.into(),
7381 }),
7382 }
7383 }
7384}
7385impl From<crate::operation::list_workteams::ListWorkteamsError> for Error {
7386 fn from(err: crate::operation::list_workteams::ListWorkteamsError) -> Self {
7387 match err {
7388 crate::operation::list_workteams::ListWorkteamsError::Unhandled(inner) => Error::Unhandled(inner),
7389 }
7390 }
7391}
7392impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError, R>>
7393 for Error
7394where
7395 R: Send + Sync + std::fmt::Debug + 'static,
7396{
7397 fn from(
7398 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError, R>,
7399 ) -> Self {
7400 match err {
7401 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7402 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7403 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7404 source: err.into(),
7405 }),
7406 }
7407 }
7408}
7409impl From<crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError> for Error {
7410 fn from(err: crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError) -> Self {
7411 match err {
7412 crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError::ConflictException(inner) => {
7413 Error::ConflictException(inner)
7414 }
7415 crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
7416 }
7417 }
7418}
7419impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_lineage::QueryLineageError, R>> for Error
7420where
7421 R: Send + Sync + std::fmt::Debug + 'static,
7422{
7423 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_lineage::QueryLineageError, R>) -> Self {
7424 match err {
7425 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7426 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7427 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7428 source: err.into(),
7429 }),
7430 }
7431 }
7432}
7433impl From<crate::operation::query_lineage::QueryLineageError> for Error {
7434 fn from(err: crate::operation::query_lineage::QueryLineageError) -> Self {
7435 match err {
7436 crate::operation::query_lineage::QueryLineageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7437 crate::operation::query_lineage::QueryLineageError::Unhandled(inner) => Error::Unhandled(inner),
7438 }
7439 }
7440}
7441impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_devices::RegisterDevicesError, R>> for Error
7442where
7443 R: Send + Sync + std::fmt::Debug + 'static,
7444{
7445 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_devices::RegisterDevicesError, R>) -> Self {
7446 match err {
7447 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7448 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7449 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7450 source: err.into(),
7451 }),
7452 }
7453 }
7454}
7455impl From<crate::operation::register_devices::RegisterDevicesError> for Error {
7456 fn from(err: crate::operation::register_devices::RegisterDevicesError) -> Self {
7457 match err {
7458 crate::operation::register_devices::RegisterDevicesError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
7459 crate::operation::register_devices::RegisterDevicesError::Unhandled(inner) => Error::Unhandled(inner),
7460 }
7461 }
7462}
7463impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::render_ui_template::RenderUiTemplateError, R>> for Error
7464where
7465 R: Send + Sync + std::fmt::Debug + 'static,
7466{
7467 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::render_ui_template::RenderUiTemplateError, R>) -> Self {
7468 match err {
7469 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7470 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7471 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7472 source: err.into(),
7473 }),
7474 }
7475 }
7476}
7477impl From<crate::operation::render_ui_template::RenderUiTemplateError> for Error {
7478 fn from(err: crate::operation::render_ui_template::RenderUiTemplateError) -> Self {
7479 match err {
7480 crate::operation::render_ui_template::RenderUiTemplateError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7481 crate::operation::render_ui_template::RenderUiTemplateError::Unhandled(inner) => Error::Unhandled(inner),
7482 }
7483 }
7484}
7485impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_pipeline_execution::RetryPipelineExecutionError, R>> for Error
7486where
7487 R: Send + Sync + std::fmt::Debug + 'static,
7488{
7489 fn from(
7490 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_pipeline_execution::RetryPipelineExecutionError, R>,
7491 ) -> Self {
7492 match err {
7493 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7494 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7495 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7496 source: err.into(),
7497 }),
7498 }
7499 }
7500}
7501impl From<crate::operation::retry_pipeline_execution::RetryPipelineExecutionError> for Error {
7502 fn from(err: crate::operation::retry_pipeline_execution::RetryPipelineExecutionError) -> Self {
7503 match err {
7504 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
7505 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::ResourceLimitExceeded(inner) => {
7506 Error::ResourceLimitExceeded(inner)
7507 }
7508 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7509 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
7510 }
7511 }
7512}
7513impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search::SearchError, R>> for Error
7514where
7515 R: Send + Sync + std::fmt::Debug + 'static,
7516{
7517 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search::SearchError, R>) -> Self {
7518 match err {
7519 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7520 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7521 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7522 source: err.into(),
7523 }),
7524 }
7525 }
7526}
7527impl From<crate::operation::search::SearchError> for Error {
7528 fn from(err: crate::operation::search::SearchError) -> Self {
7529 match err {
7530 crate::operation::search::SearchError::Unhandled(inner) => Error::Unhandled(inner),
7531 }
7532 }
7533}
7534impl<R>
7535 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError, R>>
7536 for Error
7537where
7538 R: Send + Sync + std::fmt::Debug + 'static,
7539{
7540 fn from(
7541 err: ::aws_smithy_runtime_api::client::result::SdkError<
7542 crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError,
7543 R,
7544 >,
7545 ) -> Self {
7546 match err {
7547 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7548 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7549 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7550 source: err.into(),
7551 }),
7552 }
7553 }
7554}
7555impl From<crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError> for Error {
7556 fn from(err: crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError) -> Self {
7557 match err {
7558 crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError::ResourceLimitExceeded(inner) => {
7559 Error::ResourceLimitExceeded(inner)
7560 }
7561 crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
7562 }
7563 }
7564}
7565impl<R>
7566 From<
7567 ::aws_smithy_runtime_api::client::result::SdkError<
7568 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError,
7569 R,
7570 >,
7571 > for Error
7572where
7573 R: Send + Sync + std::fmt::Debug + 'static,
7574{
7575 fn from(
7576 err: ::aws_smithy_runtime_api::client::result::SdkError<
7577 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError,
7578 R,
7579 >,
7580 ) -> Self {
7581 match err {
7582 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7583 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7584 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7585 source: err.into(),
7586 }),
7587 }
7588 }
7589}
7590impl From<crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError> for Error {
7591 fn from(err: crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError) -> Self {
7592 match err {
7593 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::ConflictException(inner) => {
7594 Error::ConflictException(inner)
7595 }
7596 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::ResourceLimitExceeded(inner) => {
7597 Error::ResourceLimitExceeded(inner)
7598 }
7599 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::ResourceNotFound(inner) => {
7600 Error::ResourceNotFound(inner)
7601 }
7602 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::Unhandled(inner) => {
7603 Error::Unhandled(inner)
7604 }
7605 }
7606 }
7607}
7608impl<R>
7609 From<
7610 ::aws_smithy_runtime_api::client::result::SdkError<
7611 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError,
7612 R,
7613 >,
7614 > for Error
7615where
7616 R: Send + Sync + std::fmt::Debug + 'static,
7617{
7618 fn from(
7619 err: ::aws_smithy_runtime_api::client::result::SdkError<
7620 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError,
7621 R,
7622 >,
7623 ) -> Self {
7624 match err {
7625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7628 source: err.into(),
7629 }),
7630 }
7631 }
7632}
7633impl From<crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError> for Error {
7634 fn from(err: crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError) -> Self {
7635 match err {
7636 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::ConflictException(inner) => {
7637 Error::ConflictException(inner)
7638 }
7639 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::ResourceLimitExceeded(inner) => {
7640 Error::ResourceLimitExceeded(inner)
7641 }
7642 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::ResourceNotFound(inner) => {
7643 Error::ResourceNotFound(inner)
7644 }
7645 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::Unhandled(inner) => {
7646 Error::Unhandled(inner)
7647 }
7648 }
7649 }
7650}
7651impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError, R>>
7652 for Error
7653where
7654 R: Send + Sync + std::fmt::Debug + 'static,
7655{
7656 fn from(
7657 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError, R>,
7658 ) -> Self {
7659 match err {
7660 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7661 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7662 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7663 source: err.into(),
7664 }),
7665 }
7666 }
7667}
7668impl From<crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError> for Error {
7669 fn from(err: crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError) -> Self {
7670 match err {
7671 crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
7672 }
7673 }
7674}
7675impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_inference_experiment::StartInferenceExperimentError, R>>
7676 for Error
7677where
7678 R: Send + Sync + std::fmt::Debug + 'static,
7679{
7680 fn from(
7681 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_inference_experiment::StartInferenceExperimentError, R>,
7682 ) -> Self {
7683 match err {
7684 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7685 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7686 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7687 source: err.into(),
7688 }),
7689 }
7690 }
7691}
7692impl From<crate::operation::start_inference_experiment::StartInferenceExperimentError> for Error {
7693 fn from(err: crate::operation::start_inference_experiment::StartInferenceExperimentError) -> Self {
7694 match err {
7695 crate::operation::start_inference_experiment::StartInferenceExperimentError::ConflictException(inner) => Error::ConflictException(inner),
7696 crate::operation::start_inference_experiment::StartInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7697 crate::operation::start_inference_experiment::StartInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
7698 }
7699 }
7700}
7701impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError, R>>
7702 for Error
7703where
7704 R: Send + Sync + std::fmt::Debug + 'static,
7705{
7706 fn from(
7707 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError, R>,
7708 ) -> Self {
7709 match err {
7710 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7711 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7712 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7713 source: err.into(),
7714 }),
7715 }
7716 }
7717}
7718impl From<crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError> for Error {
7719 fn from(err: crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError) -> Self {
7720 match err {
7721 crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError::ConflictException(inner) => {
7722 Error::ConflictException(inner)
7723 }
7724 crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7725 crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
7726 }
7727 }
7728}
7729impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_monitoring_schedule::StartMonitoringScheduleError, R>>
7730 for Error
7731where
7732 R: Send + Sync + std::fmt::Debug + 'static,
7733{
7734 fn from(
7735 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_monitoring_schedule::StartMonitoringScheduleError, R>,
7736 ) -> Self {
7737 match err {
7738 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7739 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7740 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7741 source: err.into(),
7742 }),
7743 }
7744 }
7745}
7746impl From<crate::operation::start_monitoring_schedule::StartMonitoringScheduleError> for Error {
7747 fn from(err: crate::operation::start_monitoring_schedule::StartMonitoringScheduleError) -> Self {
7748 match err {
7749 crate::operation::start_monitoring_schedule::StartMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7750 crate::operation::start_monitoring_schedule::StartMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
7751 }
7752 }
7753}
7754impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_notebook_instance::StartNotebookInstanceError, R>> for Error
7755where
7756 R: Send + Sync + std::fmt::Debug + 'static,
7757{
7758 fn from(
7759 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_notebook_instance::StartNotebookInstanceError, R>,
7760 ) -> Self {
7761 match err {
7762 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7763 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7764 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7765 source: err.into(),
7766 }),
7767 }
7768 }
7769}
7770impl From<crate::operation::start_notebook_instance::StartNotebookInstanceError> for Error {
7771 fn from(err: crate::operation::start_notebook_instance::StartNotebookInstanceError) -> Self {
7772 match err {
7773 crate::operation::start_notebook_instance::StartNotebookInstanceError::ResourceLimitExceeded(inner) => {
7774 Error::ResourceLimitExceeded(inner)
7775 }
7776 crate::operation::start_notebook_instance::StartNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
7777 }
7778 }
7779}
7780impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pipeline_execution::StartPipelineExecutionError, R>> for Error
7781where
7782 R: Send + Sync + std::fmt::Debug + 'static,
7783{
7784 fn from(
7785 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pipeline_execution::StartPipelineExecutionError, R>,
7786 ) -> Self {
7787 match err {
7788 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7789 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7790 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7791 source: err.into(),
7792 }),
7793 }
7794 }
7795}
7796impl From<crate::operation::start_pipeline_execution::StartPipelineExecutionError> for Error {
7797 fn from(err: crate::operation::start_pipeline_execution::StartPipelineExecutionError) -> Self {
7798 match err {
7799 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
7800 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ResourceLimitExceeded(inner) => {
7801 Error::ResourceLimitExceeded(inner)
7802 }
7803 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7804 crate::operation::start_pipeline_execution::StartPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
7805 }
7806 }
7807}
7808impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_session::StartSessionError, R>> for Error
7809where
7810 R: Send + Sync + std::fmt::Debug + 'static,
7811{
7812 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_session::StartSessionError, R>) -> Self {
7813 match err {
7814 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7815 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7816 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7817 source: err.into(),
7818 }),
7819 }
7820 }
7821}
7822impl From<crate::operation::start_session::StartSessionError> for Error {
7823 fn from(err: crate::operation::start_session::StartSessionError) -> Self {
7824 match err {
7825 crate::operation::start_session::StartSessionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
7826 crate::operation::start_session::StartSessionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7827 crate::operation::start_session::StartSessionError::Unhandled(inner) => Error::Unhandled(inner),
7828 }
7829 }
7830}
7831impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_auto_ml_job::StopAutoMLJobError, R>> for Error
7832where
7833 R: Send + Sync + std::fmt::Debug + 'static,
7834{
7835 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_auto_ml_job::StopAutoMLJobError, R>) -> Self {
7836 match err {
7837 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7838 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7839 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7840 source: err.into(),
7841 }),
7842 }
7843 }
7844}
7845impl From<crate::operation::stop_auto_ml_job::StopAutoMLJobError> for Error {
7846 fn from(err: crate::operation::stop_auto_ml_job::StopAutoMLJobError) -> Self {
7847 match err {
7848 crate::operation::stop_auto_ml_job::StopAutoMLJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7849 crate::operation::stop_auto_ml_job::StopAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
7850 }
7851 }
7852}
7853impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_compilation_job::StopCompilationJobError, R>> for Error
7854where
7855 R: Send + Sync + std::fmt::Debug + 'static,
7856{
7857 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_compilation_job::StopCompilationJobError, R>) -> Self {
7858 match err {
7859 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7860 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7861 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7862 source: err.into(),
7863 }),
7864 }
7865 }
7866}
7867impl From<crate::operation::stop_compilation_job::StopCompilationJobError> for Error {
7868 fn from(err: crate::operation::stop_compilation_job::StopCompilationJobError) -> Self {
7869 match err {
7870 crate::operation::stop_compilation_job::StopCompilationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7871 crate::operation::stop_compilation_job::StopCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
7872 }
7873 }
7874}
7875impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError, R>>
7876 for Error
7877where
7878 R: Send + Sync + std::fmt::Debug + 'static,
7879{
7880 fn from(
7881 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError, R>,
7882 ) -> Self {
7883 match err {
7884 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7885 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7886 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7887 source: err.into(),
7888 }),
7889 }
7890 }
7891}
7892impl From<crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError> for Error {
7893 fn from(err: crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError) -> Self {
7894 match err {
7895 crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
7896 }
7897 }
7898}
7899impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError, R>> for Error
7900where
7901 R: Send + Sync + std::fmt::Debug + 'static,
7902{
7903 fn from(
7904 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError, R>,
7905 ) -> Self {
7906 match err {
7907 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7908 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7909 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7910 source: err.into(),
7911 }),
7912 }
7913 }
7914}
7915impl From<crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError> for Error {
7916 fn from(err: crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError) -> Self {
7917 match err {
7918 crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError::Unhandled(inner) => Error::Unhandled(inner),
7919 }
7920 }
7921}
7922impl<R>
7923 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError, R>>
7924 for Error
7925where
7926 R: Send + Sync + std::fmt::Debug + 'static,
7927{
7928 fn from(
7929 err: ::aws_smithy_runtime_api::client::result::SdkError<
7930 crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError,
7931 R,
7932 >,
7933 ) -> Self {
7934 match err {
7935 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7936 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7937 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7938 source: err.into(),
7939 }),
7940 }
7941 }
7942}
7943impl From<crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError> for Error {
7944 fn from(err: crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError) -> Self {
7945 match err {
7946 crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError::ResourceNotFound(inner) => {
7947 Error::ResourceNotFound(inner)
7948 }
7949 crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
7950 }
7951 }
7952}
7953impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_inference_experiment::StopInferenceExperimentError, R>>
7954 for Error
7955where
7956 R: Send + Sync + std::fmt::Debug + 'static,
7957{
7958 fn from(
7959 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_inference_experiment::StopInferenceExperimentError, R>,
7960 ) -> Self {
7961 match err {
7962 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7963 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7964 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7965 source: err.into(),
7966 }),
7967 }
7968 }
7969}
7970impl From<crate::operation::stop_inference_experiment::StopInferenceExperimentError> for Error {
7971 fn from(err: crate::operation::stop_inference_experiment::StopInferenceExperimentError) -> Self {
7972 match err {
7973 crate::operation::stop_inference_experiment::StopInferenceExperimentError::ConflictException(inner) => Error::ConflictException(inner),
7974 crate::operation::stop_inference_experiment::StopInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7975 crate::operation::stop_inference_experiment::StopInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
7976 }
7977 }
7978}
7979impl<R>
7980 From<
7981 ::aws_smithy_runtime_api::client::result::SdkError<
7982 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError,
7983 R,
7984 >,
7985 > for Error
7986where
7987 R: Send + Sync + std::fmt::Debug + 'static,
7988{
7989 fn from(
7990 err: ::aws_smithy_runtime_api::client::result::SdkError<
7991 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError,
7992 R,
7993 >,
7994 ) -> Self {
7995 match err {
7996 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7997 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7998 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7999 source: err.into(),
8000 }),
8001 }
8002 }
8003}
8004impl From<crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError> for Error {
8005 fn from(err: crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError) -> Self {
8006 match err {
8007 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError::ResourceNotFound(inner) => {
8008 Error::ResourceNotFound(inner)
8009 }
8010 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError::Unhandled(inner) => Error::Unhandled(inner),
8011 }
8012 }
8013}
8014impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_labeling_job::StopLabelingJobError, R>> for Error
8015where
8016 R: Send + Sync + std::fmt::Debug + 'static,
8017{
8018 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_labeling_job::StopLabelingJobError, R>) -> Self {
8019 match err {
8020 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8021 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8022 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8023 source: err.into(),
8024 }),
8025 }
8026 }
8027}
8028impl From<crate::operation::stop_labeling_job::StopLabelingJobError> for Error {
8029 fn from(err: crate::operation::stop_labeling_job::StopLabelingJobError) -> Self {
8030 match err {
8031 crate::operation::stop_labeling_job::StopLabelingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8032 crate::operation::stop_labeling_job::StopLabelingJobError::Unhandled(inner) => Error::Unhandled(inner),
8033 }
8034 }
8035}
8036impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError, R>>
8037 for Error
8038where
8039 R: Send + Sync + std::fmt::Debug + 'static,
8040{
8041 fn from(
8042 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError, R>,
8043 ) -> Self {
8044 match err {
8045 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8046 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8047 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8048 source: err.into(),
8049 }),
8050 }
8051 }
8052}
8053impl From<crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError> for Error {
8054 fn from(err: crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError) -> Self {
8055 match err {
8056 crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError::ConflictException(inner) => Error::ConflictException(inner),
8057 crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8058 crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
8059 }
8060 }
8061}
8062impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError, R>> for Error
8063where
8064 R: Send + Sync + std::fmt::Debug + 'static,
8065{
8066 fn from(
8067 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError, R>,
8068 ) -> Self {
8069 match err {
8070 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8071 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8072 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8073 source: err.into(),
8074 }),
8075 }
8076 }
8077}
8078impl From<crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError> for Error {
8079 fn from(err: crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError) -> Self {
8080 match err {
8081 crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8082 crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
8083 }
8084 }
8085}
8086impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_notebook_instance::StopNotebookInstanceError, R>> for Error
8087where
8088 R: Send + Sync + std::fmt::Debug + 'static,
8089{
8090 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_notebook_instance::StopNotebookInstanceError, R>) -> Self {
8091 match err {
8092 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8093 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8094 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8095 source: err.into(),
8096 }),
8097 }
8098 }
8099}
8100impl From<crate::operation::stop_notebook_instance::StopNotebookInstanceError> for Error {
8101 fn from(err: crate::operation::stop_notebook_instance::StopNotebookInstanceError) -> Self {
8102 match err {
8103 crate::operation::stop_notebook_instance::StopNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
8104 }
8105 }
8106}
8107impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_optimization_job::StopOptimizationJobError, R>> for Error
8108where
8109 R: Send + Sync + std::fmt::Debug + 'static,
8110{
8111 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_optimization_job::StopOptimizationJobError, R>) -> Self {
8112 match err {
8113 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8114 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8115 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8116 source: err.into(),
8117 }),
8118 }
8119 }
8120}
8121impl From<crate::operation::stop_optimization_job::StopOptimizationJobError> for Error {
8122 fn from(err: crate::operation::stop_optimization_job::StopOptimizationJobError) -> Self {
8123 match err {
8124 crate::operation::stop_optimization_job::StopOptimizationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8125 crate::operation::stop_optimization_job::StopOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
8126 }
8127 }
8128}
8129impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_pipeline_execution::StopPipelineExecutionError, R>> for Error
8130where
8131 R: Send + Sync + std::fmt::Debug + 'static,
8132{
8133 fn from(
8134 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_pipeline_execution::StopPipelineExecutionError, R>,
8135 ) -> Self {
8136 match err {
8137 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8138 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8139 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8140 source: err.into(),
8141 }),
8142 }
8143 }
8144}
8145impl From<crate::operation::stop_pipeline_execution::StopPipelineExecutionError> for Error {
8146 fn from(err: crate::operation::stop_pipeline_execution::StopPipelineExecutionError) -> Self {
8147 match err {
8148 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
8149 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8150 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
8151 }
8152 }
8153}
8154impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_processing_job::StopProcessingJobError, R>> for Error
8155where
8156 R: Send + Sync + std::fmt::Debug + 'static,
8157{
8158 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_processing_job::StopProcessingJobError, R>) -> Self {
8159 match err {
8160 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8161 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8162 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8163 source: err.into(),
8164 }),
8165 }
8166 }
8167}
8168impl From<crate::operation::stop_processing_job::StopProcessingJobError> for Error {
8169 fn from(err: crate::operation::stop_processing_job::StopProcessingJobError) -> Self {
8170 match err {
8171 crate::operation::stop_processing_job::StopProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8172 crate::operation::stop_processing_job::StopProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
8173 }
8174 }
8175}
8176impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_training_job::StopTrainingJobError, R>> for Error
8177where
8178 R: Send + Sync + std::fmt::Debug + 'static,
8179{
8180 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_training_job::StopTrainingJobError, R>) -> Self {
8181 match err {
8182 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8183 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8184 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8185 source: err.into(),
8186 }),
8187 }
8188 }
8189}
8190impl From<crate::operation::stop_training_job::StopTrainingJobError> for Error {
8191 fn from(err: crate::operation::stop_training_job::StopTrainingJobError) -> Self {
8192 match err {
8193 crate::operation::stop_training_job::StopTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8194 crate::operation::stop_training_job::StopTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
8195 }
8196 }
8197}
8198impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_transform_job::StopTransformJobError, R>> for Error
8199where
8200 R: Send + Sync + std::fmt::Debug + 'static,
8201{
8202 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_transform_job::StopTransformJobError, R>) -> Self {
8203 match err {
8204 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8205 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8206 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8207 source: err.into(),
8208 }),
8209 }
8210 }
8211}
8212impl From<crate::operation::stop_transform_job::StopTransformJobError> for Error {
8213 fn from(err: crate::operation::stop_transform_job::StopTransformJobError) -> Self {
8214 match err {
8215 crate::operation::stop_transform_job::StopTransformJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8216 crate::operation::stop_transform_job::StopTransformJobError::Unhandled(inner) => Error::Unhandled(inner),
8217 }
8218 }
8219}
8220impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_action::UpdateActionError, R>> for Error
8221where
8222 R: Send + Sync + std::fmt::Debug + 'static,
8223{
8224 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_action::UpdateActionError, R>) -> Self {
8225 match err {
8226 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8227 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8228 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8229 source: err.into(),
8230 }),
8231 }
8232 }
8233}
8234impl From<crate::operation::update_action::UpdateActionError> for Error {
8235 fn from(err: crate::operation::update_action::UpdateActionError) -> Self {
8236 match err {
8237 crate::operation::update_action::UpdateActionError::ConflictException(inner) => Error::ConflictException(inner),
8238 crate::operation::update_action::UpdateActionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8239 crate::operation::update_action::UpdateActionError::Unhandled(inner) => Error::Unhandled(inner),
8240 }
8241 }
8242}
8243impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_image_config::UpdateAppImageConfigError, R>> for Error
8244where
8245 R: Send + Sync + std::fmt::Debug + 'static,
8246{
8247 fn from(
8248 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_image_config::UpdateAppImageConfigError, R>,
8249 ) -> Self {
8250 match err {
8251 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8252 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8253 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8254 source: err.into(),
8255 }),
8256 }
8257 }
8258}
8259impl From<crate::operation::update_app_image_config::UpdateAppImageConfigError> for Error {
8260 fn from(err: crate::operation::update_app_image_config::UpdateAppImageConfigError) -> Self {
8261 match err {
8262 crate::operation::update_app_image_config::UpdateAppImageConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8263 crate::operation::update_app_image_config::UpdateAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
8264 }
8265 }
8266}
8267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_artifact::UpdateArtifactError, R>> for Error
8268where
8269 R: Send + Sync + std::fmt::Debug + 'static,
8270{
8271 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_artifact::UpdateArtifactError, R>) -> Self {
8272 match err {
8273 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8274 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8275 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8276 source: err.into(),
8277 }),
8278 }
8279 }
8280}
8281impl From<crate::operation::update_artifact::UpdateArtifactError> for Error {
8282 fn from(err: crate::operation::update_artifact::UpdateArtifactError) -> Self {
8283 match err {
8284 crate::operation::update_artifact::UpdateArtifactError::ConflictException(inner) => Error::ConflictException(inner),
8285 crate::operation::update_artifact::UpdateArtifactError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8286 crate::operation::update_artifact::UpdateArtifactError::Unhandled(inner) => Error::Unhandled(inner),
8287 }
8288 }
8289}
8290impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster::UpdateClusterError, R>> for Error
8291where
8292 R: Send + Sync + std::fmt::Debug + 'static,
8293{
8294 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster::UpdateClusterError, R>) -> Self {
8295 match err {
8296 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8297 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8298 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8299 source: err.into(),
8300 }),
8301 }
8302 }
8303}
8304impl From<crate::operation::update_cluster::UpdateClusterError> for Error {
8305 fn from(err: crate::operation::update_cluster::UpdateClusterError) -> Self {
8306 match err {
8307 crate::operation::update_cluster::UpdateClusterError::ConflictException(inner) => Error::ConflictException(inner),
8308 crate::operation::update_cluster::UpdateClusterError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8309 crate::operation::update_cluster::UpdateClusterError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8310 crate::operation::update_cluster::UpdateClusterError::Unhandled(inner) => Error::Unhandled(inner),
8311 }
8312 }
8313}
8314impl<R>
8315 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError, R>>
8316 for Error
8317where
8318 R: Send + Sync + std::fmt::Debug + 'static,
8319{
8320 fn from(
8321 err: ::aws_smithy_runtime_api::client::result::SdkError<
8322 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError,
8323 R,
8324 >,
8325 ) -> Self {
8326 match err {
8327 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8328 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8329 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8330 source: err.into(),
8331 }),
8332 }
8333 }
8334}
8335impl From<crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError> for Error {
8336 fn from(err: crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError) -> Self {
8337 match err {
8338 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::ConflictException(inner) => {
8339 Error::ConflictException(inner)
8340 }
8341 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::ResourceLimitExceeded(inner) => {
8342 Error::ResourceLimitExceeded(inner)
8343 }
8344 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::ResourceNotFound(inner) => {
8345 Error::ResourceNotFound(inner)
8346 }
8347 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
8348 }
8349 }
8350}
8351impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_software::UpdateClusterSoftwareError, R>> for Error
8352where
8353 R: Send + Sync + std::fmt::Debug + 'static,
8354{
8355 fn from(
8356 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_software::UpdateClusterSoftwareError, R>,
8357 ) -> Self {
8358 match err {
8359 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8360 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8361 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8362 source: err.into(),
8363 }),
8364 }
8365 }
8366}
8367impl From<crate::operation::update_cluster_software::UpdateClusterSoftwareError> for Error {
8368 fn from(err: crate::operation::update_cluster_software::UpdateClusterSoftwareError) -> Self {
8369 match err {
8370 crate::operation::update_cluster_software::UpdateClusterSoftwareError::ConflictException(inner) => Error::ConflictException(inner),
8371 crate::operation::update_cluster_software::UpdateClusterSoftwareError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8372 crate::operation::update_cluster_software::UpdateClusterSoftwareError::Unhandled(inner) => Error::Unhandled(inner),
8373 }
8374 }
8375}
8376impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_code_repository::UpdateCodeRepositoryError, R>> for Error
8377where
8378 R: Send + Sync + std::fmt::Debug + 'static,
8379{
8380 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_code_repository::UpdateCodeRepositoryError, R>) -> 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::update_code_repository::UpdateCodeRepositoryError> for Error {
8391 fn from(err: crate::operation::update_code_repository::UpdateCodeRepositoryError) -> Self {
8392 match err {
8393 crate::operation::update_code_repository::UpdateCodeRepositoryError::ConflictException(inner) => Error::ConflictException(inner),
8394 crate::operation::update_code_repository::UpdateCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
8395 }
8396 }
8397}
8398impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_compute_quota::UpdateComputeQuotaError, R>> for Error
8399where
8400 R: Send + Sync + std::fmt::Debug + 'static,
8401{
8402 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_compute_quota::UpdateComputeQuotaError, R>) -> Self {
8403 match err {
8404 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8405 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8406 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8407 source: err.into(),
8408 }),
8409 }
8410 }
8411}
8412impl From<crate::operation::update_compute_quota::UpdateComputeQuotaError> for Error {
8413 fn from(err: crate::operation::update_compute_quota::UpdateComputeQuotaError) -> Self {
8414 match err {
8415 crate::operation::update_compute_quota::UpdateComputeQuotaError::ConflictException(inner) => Error::ConflictException(inner),
8416 crate::operation::update_compute_quota::UpdateComputeQuotaError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8417 crate::operation::update_compute_quota::UpdateComputeQuotaError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8418 crate::operation::update_compute_quota::UpdateComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
8419 }
8420 }
8421}
8422impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_context::UpdateContextError, R>> for Error
8423where
8424 R: Send + Sync + std::fmt::Debug + 'static,
8425{
8426 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_context::UpdateContextError, R>) -> Self {
8427 match err {
8428 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8429 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8430 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8431 source: err.into(),
8432 }),
8433 }
8434 }
8435}
8436impl From<crate::operation::update_context::UpdateContextError> for Error {
8437 fn from(err: crate::operation::update_context::UpdateContextError) -> Self {
8438 match err {
8439 crate::operation::update_context::UpdateContextError::ConflictException(inner) => Error::ConflictException(inner),
8440 crate::operation::update_context::UpdateContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8441 crate::operation::update_context::UpdateContextError::Unhandled(inner) => Error::Unhandled(inner),
8442 }
8443 }
8444}
8445impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device_fleet::UpdateDeviceFleetError, R>> for Error
8446where
8447 R: Send + Sync + std::fmt::Debug + 'static,
8448{
8449 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device_fleet::UpdateDeviceFleetError, R>) -> Self {
8450 match err {
8451 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8452 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8453 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8454 source: err.into(),
8455 }),
8456 }
8457 }
8458}
8459impl From<crate::operation::update_device_fleet::UpdateDeviceFleetError> for Error {
8460 fn from(err: crate::operation::update_device_fleet::UpdateDeviceFleetError) -> Self {
8461 match err {
8462 crate::operation::update_device_fleet::UpdateDeviceFleetError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8463 crate::operation::update_device_fleet::UpdateDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
8464 }
8465 }
8466}
8467impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_devices::UpdateDevicesError, R>> for Error
8468where
8469 R: Send + Sync + std::fmt::Debug + 'static,
8470{
8471 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_devices::UpdateDevicesError, R>) -> Self {
8472 match err {
8473 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8474 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8475 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8476 source: err.into(),
8477 }),
8478 }
8479 }
8480}
8481impl From<crate::operation::update_devices::UpdateDevicesError> for Error {
8482 fn from(err: crate::operation::update_devices::UpdateDevicesError) -> Self {
8483 match err {
8484 crate::operation::update_devices::UpdateDevicesError::Unhandled(inner) => Error::Unhandled(inner),
8485 }
8486 }
8487}
8488impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain::UpdateDomainError, R>> for Error
8489where
8490 R: Send + Sync + std::fmt::Debug + 'static,
8491{
8492 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain::UpdateDomainError, R>) -> Self {
8493 match err {
8494 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8495 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8496 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8497 source: err.into(),
8498 }),
8499 }
8500 }
8501}
8502impl From<crate::operation::update_domain::UpdateDomainError> for Error {
8503 fn from(err: crate::operation::update_domain::UpdateDomainError) -> Self {
8504 match err {
8505 crate::operation::update_domain::UpdateDomainError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8506 crate::operation::update_domain::UpdateDomainError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8507 crate::operation::update_domain::UpdateDomainError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8508 crate::operation::update_domain::UpdateDomainError::Unhandled(inner) => Error::Unhandled(inner),
8509 }
8510 }
8511}
8512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoint::UpdateEndpointError, R>> for Error
8513where
8514 R: Send + Sync + std::fmt::Debug + 'static,
8515{
8516 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoint::UpdateEndpointError, R>) -> Self {
8517 match err {
8518 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8519 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8520 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8521 source: err.into(),
8522 }),
8523 }
8524 }
8525}
8526impl From<crate::operation::update_endpoint::UpdateEndpointError> for Error {
8527 fn from(err: crate::operation::update_endpoint::UpdateEndpointError) -> Self {
8528 match err {
8529 crate::operation::update_endpoint::UpdateEndpointError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8530 crate::operation::update_endpoint::UpdateEndpointError::Unhandled(inner) => Error::Unhandled(inner),
8531 }
8532 }
8533}
8534impl<R>
8535 From<
8536 ::aws_smithy_runtime_api::client::result::SdkError<
8537 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError,
8538 R,
8539 >,
8540 > for Error
8541where
8542 R: Send + Sync + std::fmt::Debug + 'static,
8543{
8544 fn from(
8545 err: ::aws_smithy_runtime_api::client::result::SdkError<
8546 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError,
8547 R,
8548 >,
8549 ) -> Self {
8550 match err {
8551 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8552 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8553 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8554 source: err.into(),
8555 }),
8556 }
8557 }
8558}
8559impl From<crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError> for Error {
8560 fn from(err: crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError) -> Self {
8561 match err {
8562 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError::ResourceLimitExceeded(inner) => {
8563 Error::ResourceLimitExceeded(inner)
8564 }
8565 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError::Unhandled(inner) => {
8566 Error::Unhandled(inner)
8567 }
8568 }
8569 }
8570}
8571impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_experiment::UpdateExperimentError, R>> for Error
8572where
8573 R: Send + Sync + std::fmt::Debug + 'static,
8574{
8575 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_experiment::UpdateExperimentError, R>) -> Self {
8576 match err {
8577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8580 source: err.into(),
8581 }),
8582 }
8583 }
8584}
8585impl From<crate::operation::update_experiment::UpdateExperimentError> for Error {
8586 fn from(err: crate::operation::update_experiment::UpdateExperimentError) -> Self {
8587 match err {
8588 crate::operation::update_experiment::UpdateExperimentError::ConflictException(inner) => Error::ConflictException(inner),
8589 crate::operation::update_experiment::UpdateExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8590 crate::operation::update_experiment::UpdateExperimentError::Unhandled(inner) => Error::Unhandled(inner),
8591 }
8592 }
8593}
8594impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_group::UpdateFeatureGroupError, R>> for Error
8595where
8596 R: Send + Sync + std::fmt::Debug + 'static,
8597{
8598 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_group::UpdateFeatureGroupError, R>) -> Self {
8599 match err {
8600 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8601 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8602 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8603 source: err.into(),
8604 }),
8605 }
8606 }
8607}
8608impl From<crate::operation::update_feature_group::UpdateFeatureGroupError> for Error {
8609 fn from(err: crate::operation::update_feature_group::UpdateFeatureGroupError) -> Self {
8610 match err {
8611 crate::operation::update_feature_group::UpdateFeatureGroupError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8612 crate::operation::update_feature_group::UpdateFeatureGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8613 crate::operation::update_feature_group::UpdateFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
8614 }
8615 }
8616}
8617impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_metadata::UpdateFeatureMetadataError, R>> for Error
8618where
8619 R: Send + Sync + std::fmt::Debug + 'static,
8620{
8621 fn from(
8622 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_metadata::UpdateFeatureMetadataError, R>,
8623 ) -> Self {
8624 match err {
8625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8628 source: err.into(),
8629 }),
8630 }
8631 }
8632}
8633impl From<crate::operation::update_feature_metadata::UpdateFeatureMetadataError> for Error {
8634 fn from(err: crate::operation::update_feature_metadata::UpdateFeatureMetadataError) -> Self {
8635 match err {
8636 crate::operation::update_feature_metadata::UpdateFeatureMetadataError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8637 crate::operation::update_feature_metadata::UpdateFeatureMetadataError::Unhandled(inner) => Error::Unhandled(inner),
8638 }
8639 }
8640}
8641impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub::UpdateHubError, R>> for Error
8642where
8643 R: Send + Sync + std::fmt::Debug + 'static,
8644{
8645 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub::UpdateHubError, R>) -> Self {
8646 match err {
8647 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8648 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8649 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8650 source: err.into(),
8651 }),
8652 }
8653 }
8654}
8655impl From<crate::operation::update_hub::UpdateHubError> for Error {
8656 fn from(err: crate::operation::update_hub::UpdateHubError) -> Self {
8657 match err {
8658 crate::operation::update_hub::UpdateHubError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8659 crate::operation::update_hub::UpdateHubError::Unhandled(inner) => Error::Unhandled(inner),
8660 }
8661 }
8662}
8663impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content::UpdateHubContentError, R>> for Error
8664where
8665 R: Send + Sync + std::fmt::Debug + 'static,
8666{
8667 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content::UpdateHubContentError, R>) -> Self {
8668 match err {
8669 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8670 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8671 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8672 source: err.into(),
8673 }),
8674 }
8675 }
8676}
8677impl From<crate::operation::update_hub_content::UpdateHubContentError> for Error {
8678 fn from(err: crate::operation::update_hub_content::UpdateHubContentError) -> Self {
8679 match err {
8680 crate::operation::update_hub_content::UpdateHubContentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8681 crate::operation::update_hub_content::UpdateHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8682 crate::operation::update_hub_content::UpdateHubContentError::Unhandled(inner) => Error::Unhandled(inner),
8683 }
8684 }
8685}
8686impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content_reference::UpdateHubContentReferenceError, R>>
8687 for Error
8688where
8689 R: Send + Sync + std::fmt::Debug + 'static,
8690{
8691 fn from(
8692 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content_reference::UpdateHubContentReferenceError, R>,
8693 ) -> Self {
8694 match err {
8695 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8696 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8697 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8698 source: err.into(),
8699 }),
8700 }
8701 }
8702}
8703impl From<crate::operation::update_hub_content_reference::UpdateHubContentReferenceError> for Error {
8704 fn from(err: crate::operation::update_hub_content_reference::UpdateHubContentReferenceError) -> Self {
8705 match err {
8706 crate::operation::update_hub_content_reference::UpdateHubContentReferenceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8707 crate::operation::update_hub_content_reference::UpdateHubContentReferenceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8708 crate::operation::update_hub_content_reference::UpdateHubContentReferenceError::Unhandled(inner) => Error::Unhandled(inner),
8709 }
8710 }
8711}
8712impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image::UpdateImageError, R>> for Error
8713where
8714 R: Send + Sync + std::fmt::Debug + 'static,
8715{
8716 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image::UpdateImageError, R>) -> Self {
8717 match err {
8718 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8719 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8720 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8721 source: err.into(),
8722 }),
8723 }
8724 }
8725}
8726impl From<crate::operation::update_image::UpdateImageError> for Error {
8727 fn from(err: crate::operation::update_image::UpdateImageError) -> Self {
8728 match err {
8729 crate::operation::update_image::UpdateImageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8730 crate::operation::update_image::UpdateImageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8731 crate::operation::update_image::UpdateImageError::Unhandled(inner) => Error::Unhandled(inner),
8732 }
8733 }
8734}
8735impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image_version::UpdateImageVersionError, R>> for Error
8736where
8737 R: Send + Sync + std::fmt::Debug + 'static,
8738{
8739 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image_version::UpdateImageVersionError, R>) -> 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::update_image_version::UpdateImageVersionError> for Error {
8750 fn from(err: crate::operation::update_image_version::UpdateImageVersionError) -> Self {
8751 match err {
8752 crate::operation::update_image_version::UpdateImageVersionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8753 crate::operation::update_image_version::UpdateImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8754 crate::operation::update_image_version::UpdateImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
8755 }
8756 }
8757}
8758impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_component::UpdateInferenceComponentError, R>>
8759 for Error
8760where
8761 R: Send + Sync + std::fmt::Debug + 'static,
8762{
8763 fn from(
8764 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_component::UpdateInferenceComponentError, R>,
8765 ) -> Self {
8766 match err {
8767 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8768 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8769 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8770 source: err.into(),
8771 }),
8772 }
8773 }
8774}
8775impl From<crate::operation::update_inference_component::UpdateInferenceComponentError> for Error {
8776 fn from(err: crate::operation::update_inference_component::UpdateInferenceComponentError) -> Self {
8777 match err {
8778 crate::operation::update_inference_component::UpdateInferenceComponentError::ResourceLimitExceeded(inner) => {
8779 Error::ResourceLimitExceeded(inner)
8780 }
8781 crate::operation::update_inference_component::UpdateInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
8782 }
8783 }
8784}
8785impl<R>
8786 From<
8787 ::aws_smithy_runtime_api::client::result::SdkError<
8788 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError,
8789 R,
8790 >,
8791 > for Error
8792where
8793 R: Send + Sync + std::fmt::Debug + 'static,
8794{
8795 fn from(
8796 err: ::aws_smithy_runtime_api::client::result::SdkError<
8797 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError,
8798 R,
8799 >,
8800 ) -> Self {
8801 match err {
8802 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8803 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8804 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8805 source: err.into(),
8806 }),
8807 }
8808 }
8809}
8810impl From<crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError> for Error {
8811 fn from(err: crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError) -> Self {
8812 match err {
8813 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError::ResourceLimitExceeded(inner) => {
8814 Error::ResourceLimitExceeded(inner)
8815 }
8816 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError::Unhandled(inner) => {
8817 Error::Unhandled(inner)
8818 }
8819 }
8820 }
8821}
8822impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_experiment::UpdateInferenceExperimentError, R>>
8823 for Error
8824where
8825 R: Send + Sync + std::fmt::Debug + 'static,
8826{
8827 fn from(
8828 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_experiment::UpdateInferenceExperimentError, R>,
8829 ) -> Self {
8830 match err {
8831 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8832 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8833 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8834 source: err.into(),
8835 }),
8836 }
8837 }
8838}
8839impl From<crate::operation::update_inference_experiment::UpdateInferenceExperimentError> for Error {
8840 fn from(err: crate::operation::update_inference_experiment::UpdateInferenceExperimentError) -> Self {
8841 match err {
8842 crate::operation::update_inference_experiment::UpdateInferenceExperimentError::ConflictException(inner) => {
8843 Error::ConflictException(inner)
8844 }
8845 crate::operation::update_inference_experiment::UpdateInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8846 crate::operation::update_inference_experiment::UpdateInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
8847 }
8848 }
8849}
8850impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError, R>>
8851 for Error
8852where
8853 R: Send + Sync + std::fmt::Debug + 'static,
8854{
8855 fn from(
8856 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError, R>,
8857 ) -> 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::update_mlflow_tracking_server::UpdateMlflowTrackingServerError> for Error {
8868 fn from(err: crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError) -> Self {
8869 match err {
8870 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::ConflictException(inner) => {
8871 Error::ConflictException(inner)
8872 }
8873 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::ResourceLimitExceeded(inner) => {
8874 Error::ResourceLimitExceeded(inner)
8875 }
8876 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::ResourceNotFound(inner) => {
8877 Error::ResourceNotFound(inner)
8878 }
8879 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
8880 }
8881 }
8882}
8883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_card::UpdateModelCardError, R>> for Error
8884where
8885 R: Send + Sync + std::fmt::Debug + 'static,
8886{
8887 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_card::UpdateModelCardError, R>) -> Self {
8888 match err {
8889 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8890 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8891 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8892 source: err.into(),
8893 }),
8894 }
8895 }
8896}
8897impl From<crate::operation::update_model_card::UpdateModelCardError> for Error {
8898 fn from(err: crate::operation::update_model_card::UpdateModelCardError) -> Self {
8899 match err {
8900 crate::operation::update_model_card::UpdateModelCardError::ConflictException(inner) => Error::ConflictException(inner),
8901 crate::operation::update_model_card::UpdateModelCardError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8902 crate::operation::update_model_card::UpdateModelCardError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8903 crate::operation::update_model_card::UpdateModelCardError::Unhandled(inner) => Error::Unhandled(inner),
8904 }
8905 }
8906}
8907impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_package::UpdateModelPackageError, R>> for Error
8908where
8909 R: Send + Sync + std::fmt::Debug + 'static,
8910{
8911 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_package::UpdateModelPackageError, R>) -> Self {
8912 match err {
8913 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8914 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8915 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8916 source: err.into(),
8917 }),
8918 }
8919 }
8920}
8921impl From<crate::operation::update_model_package::UpdateModelPackageError> for Error {
8922 fn from(err: crate::operation::update_model_package::UpdateModelPackageError) -> Self {
8923 match err {
8924 crate::operation::update_model_package::UpdateModelPackageError::ConflictException(inner) => Error::ConflictException(inner),
8925 crate::operation::update_model_package::UpdateModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
8926 }
8927 }
8928}
8929impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_alert::UpdateMonitoringAlertError, R>> for Error
8930where
8931 R: Send + Sync + std::fmt::Debug + 'static,
8932{
8933 fn from(
8934 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_alert::UpdateMonitoringAlertError, R>,
8935 ) -> Self {
8936 match err {
8937 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8938 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8939 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8940 source: err.into(),
8941 }),
8942 }
8943 }
8944}
8945impl From<crate::operation::update_monitoring_alert::UpdateMonitoringAlertError> for Error {
8946 fn from(err: crate::operation::update_monitoring_alert::UpdateMonitoringAlertError) -> Self {
8947 match err {
8948 crate::operation::update_monitoring_alert::UpdateMonitoringAlertError::ResourceLimitExceeded(inner) => {
8949 Error::ResourceLimitExceeded(inner)
8950 }
8951 crate::operation::update_monitoring_alert::UpdateMonitoringAlertError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8952 crate::operation::update_monitoring_alert::UpdateMonitoringAlertError::Unhandled(inner) => Error::Unhandled(inner),
8953 }
8954 }
8955}
8956impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError, R>>
8957 for Error
8958where
8959 R: Send + Sync + std::fmt::Debug + 'static,
8960{
8961 fn from(
8962 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError, R>,
8963 ) -> Self {
8964 match err {
8965 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8966 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8967 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8968 source: err.into(),
8969 }),
8970 }
8971 }
8972}
8973impl From<crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError> for Error {
8974 fn from(err: crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError) -> Self {
8975 match err {
8976 crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError::ResourceLimitExceeded(inner) => {
8977 Error::ResourceLimitExceeded(inner)
8978 }
8979 crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8980 crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
8981 }
8982 }
8983}
8984impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notebook_instance::UpdateNotebookInstanceError, R>> for Error
8985where
8986 R: Send + Sync + std::fmt::Debug + 'static,
8987{
8988 fn from(
8989 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notebook_instance::UpdateNotebookInstanceError, R>,
8990 ) -> Self {
8991 match err {
8992 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8993 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8994 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8995 source: err.into(),
8996 }),
8997 }
8998 }
8999}
9000impl From<crate::operation::update_notebook_instance::UpdateNotebookInstanceError> for Error {
9001 fn from(err: crate::operation::update_notebook_instance::UpdateNotebookInstanceError) -> Self {
9002 match err {
9003 crate::operation::update_notebook_instance::UpdateNotebookInstanceError::ResourceLimitExceeded(inner) => {
9004 Error::ResourceLimitExceeded(inner)
9005 }
9006 crate::operation::update_notebook_instance::UpdateNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
9007 }
9008 }
9009}
9010impl<R>
9011 From<
9012 ::aws_smithy_runtime_api::client::result::SdkError<
9013 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError,
9014 R,
9015 >,
9016 > for Error
9017where
9018 R: Send + Sync + std::fmt::Debug + 'static,
9019{
9020 fn from(
9021 err: ::aws_smithy_runtime_api::client::result::SdkError<
9022 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError,
9023 R,
9024 >,
9025 ) -> Self {
9026 match err {
9027 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9028 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9029 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9030 source: err.into(),
9031 }),
9032 }
9033 }
9034}
9035impl From<crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError> for Error {
9036 fn from(err: crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError) -> Self {
9037 match err {
9038 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError::ResourceLimitExceeded(inner) => {
9039 Error::ResourceLimitExceeded(inner)
9040 }
9041 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
9042 Error::Unhandled(inner)
9043 }
9044 }
9045 }
9046}
9047impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_partner_app::UpdatePartnerAppError, R>> for Error
9048where
9049 R: Send + Sync + std::fmt::Debug + 'static,
9050{
9051 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_partner_app::UpdatePartnerAppError, R>) -> Self {
9052 match err {
9053 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9054 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9055 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9056 source: err.into(),
9057 }),
9058 }
9059 }
9060}
9061impl From<crate::operation::update_partner_app::UpdatePartnerAppError> for Error {
9062 fn from(err: crate::operation::update_partner_app::UpdatePartnerAppError) -> Self {
9063 match err {
9064 crate::operation::update_partner_app::UpdatePartnerAppError::ConflictException(inner) => Error::ConflictException(inner),
9065 crate::operation::update_partner_app::UpdatePartnerAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9066 crate::operation::update_partner_app::UpdatePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
9067 }
9068 }
9069}
9070impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline::UpdatePipelineError, R>> for Error
9071where
9072 R: Send + Sync + std::fmt::Debug + 'static,
9073{
9074 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline::UpdatePipelineError, R>) -> Self {
9075 match err {
9076 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9077 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9078 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9079 source: err.into(),
9080 }),
9081 }
9082 }
9083}
9084impl From<crate::operation::update_pipeline::UpdatePipelineError> for Error {
9085 fn from(err: crate::operation::update_pipeline::UpdatePipelineError) -> Self {
9086 match err {
9087 crate::operation::update_pipeline::UpdatePipelineError::ConflictException(inner) => Error::ConflictException(inner),
9088 crate::operation::update_pipeline::UpdatePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9089 crate::operation::update_pipeline::UpdatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
9090 }
9091 }
9092}
9093impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_execution::UpdatePipelineExecutionError, R>>
9094 for Error
9095where
9096 R: Send + Sync + std::fmt::Debug + 'static,
9097{
9098 fn from(
9099 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_execution::UpdatePipelineExecutionError, R>,
9100 ) -> Self {
9101 match err {
9102 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9103 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9104 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9105 source: err.into(),
9106 }),
9107 }
9108 }
9109}
9110impl From<crate::operation::update_pipeline_execution::UpdatePipelineExecutionError> for Error {
9111 fn from(err: crate::operation::update_pipeline_execution::UpdatePipelineExecutionError) -> Self {
9112 match err {
9113 crate::operation::update_pipeline_execution::UpdatePipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
9114 crate::operation::update_pipeline_execution::UpdatePipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9115 crate::operation::update_pipeline_execution::UpdatePipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
9116 }
9117 }
9118}
9119impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_version::UpdatePipelineVersionError, R>> for Error
9120where
9121 R: Send + Sync + std::fmt::Debug + 'static,
9122{
9123 fn from(
9124 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_version::UpdatePipelineVersionError, R>,
9125 ) -> Self {
9126 match err {
9127 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9128 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9129 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9130 source: err.into(),
9131 }),
9132 }
9133 }
9134}
9135impl From<crate::operation::update_pipeline_version::UpdatePipelineVersionError> for Error {
9136 fn from(err: crate::operation::update_pipeline_version::UpdatePipelineVersionError) -> Self {
9137 match err {
9138 crate::operation::update_pipeline_version::UpdatePipelineVersionError::ConflictException(inner) => Error::ConflictException(inner),
9139 crate::operation::update_pipeline_version::UpdatePipelineVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9140 crate::operation::update_pipeline_version::UpdatePipelineVersionError::Unhandled(inner) => Error::Unhandled(inner),
9141 }
9142 }
9143}
9144impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>> for Error
9145where
9146 R: Send + Sync + std::fmt::Debug + 'static,
9147{
9148 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>) -> Self {
9149 match err {
9150 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9151 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9152 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9153 source: err.into(),
9154 }),
9155 }
9156 }
9157}
9158impl From<crate::operation::update_project::UpdateProjectError> for Error {
9159 fn from(err: crate::operation::update_project::UpdateProjectError) -> Self {
9160 match err {
9161 crate::operation::update_project::UpdateProjectError::ConflictException(inner) => Error::ConflictException(inner),
9162 crate::operation::update_project::UpdateProjectError::Unhandled(inner) => Error::Unhandled(inner),
9163 }
9164 }
9165}
9166impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_space::UpdateSpaceError, R>> for Error
9167where
9168 R: Send + Sync + std::fmt::Debug + 'static,
9169{
9170 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_space::UpdateSpaceError, R>) -> Self {
9171 match err {
9172 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9173 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9174 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9175 source: err.into(),
9176 }),
9177 }
9178 }
9179}
9180impl From<crate::operation::update_space::UpdateSpaceError> for Error {
9181 fn from(err: crate::operation::update_space::UpdateSpaceError) -> Self {
9182 match err {
9183 crate::operation::update_space::UpdateSpaceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9184 crate::operation::update_space::UpdateSpaceError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9185 crate::operation::update_space::UpdateSpaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9186 crate::operation::update_space::UpdateSpaceError::Unhandled(inner) => Error::Unhandled(inner),
9187 }
9188 }
9189}
9190impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_training_job::UpdateTrainingJobError, R>> for Error
9191where
9192 R: Send + Sync + std::fmt::Debug + 'static,
9193{
9194 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_training_job::UpdateTrainingJobError, R>) -> Self {
9195 match err {
9196 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9197 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9198 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9199 source: err.into(),
9200 }),
9201 }
9202 }
9203}
9204impl From<crate::operation::update_training_job::UpdateTrainingJobError> for Error {
9205 fn from(err: crate::operation::update_training_job::UpdateTrainingJobError) -> Self {
9206 match err {
9207 crate::operation::update_training_job::UpdateTrainingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9208 crate::operation::update_training_job::UpdateTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9209 crate::operation::update_training_job::UpdateTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
9210 }
9211 }
9212}
9213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial::UpdateTrialError, R>> for Error
9214where
9215 R: Send + Sync + std::fmt::Debug + 'static,
9216{
9217 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial::UpdateTrialError, R>) -> Self {
9218 match err {
9219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9222 source: err.into(),
9223 }),
9224 }
9225 }
9226}
9227impl From<crate::operation::update_trial::UpdateTrialError> for Error {
9228 fn from(err: crate::operation::update_trial::UpdateTrialError) -> Self {
9229 match err {
9230 crate::operation::update_trial::UpdateTrialError::ConflictException(inner) => Error::ConflictException(inner),
9231 crate::operation::update_trial::UpdateTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9232 crate::operation::update_trial::UpdateTrialError::Unhandled(inner) => Error::Unhandled(inner),
9233 }
9234 }
9235}
9236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial_component::UpdateTrialComponentError, R>> for Error
9237where
9238 R: Send + Sync + std::fmt::Debug + 'static,
9239{
9240 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial_component::UpdateTrialComponentError, R>) -> Self {
9241 match err {
9242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9245 source: err.into(),
9246 }),
9247 }
9248 }
9249}
9250impl From<crate::operation::update_trial_component::UpdateTrialComponentError> for Error {
9251 fn from(err: crate::operation::update_trial_component::UpdateTrialComponentError) -> Self {
9252 match err {
9253 crate::operation::update_trial_component::UpdateTrialComponentError::ConflictException(inner) => Error::ConflictException(inner),
9254 crate::operation::update_trial_component::UpdateTrialComponentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9255 crate::operation::update_trial_component::UpdateTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
9256 }
9257 }
9258}
9259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_profile::UpdateUserProfileError, R>> for Error
9260where
9261 R: Send + Sync + std::fmt::Debug + 'static,
9262{
9263 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_profile::UpdateUserProfileError, R>) -> Self {
9264 match err {
9265 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9266 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9267 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9268 source: err.into(),
9269 }),
9270 }
9271 }
9272}
9273impl From<crate::operation::update_user_profile::UpdateUserProfileError> for Error {
9274 fn from(err: crate::operation::update_user_profile::UpdateUserProfileError) -> Self {
9275 match err {
9276 crate::operation::update_user_profile::UpdateUserProfileError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9277 crate::operation::update_user_profile::UpdateUserProfileError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9278 crate::operation::update_user_profile::UpdateUserProfileError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9279 crate::operation::update_user_profile::UpdateUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
9280 }
9281 }
9282}
9283impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workforce::UpdateWorkforceError, R>> for Error
9284where
9285 R: Send + Sync + std::fmt::Debug + 'static,
9286{
9287 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workforce::UpdateWorkforceError, R>) -> Self {
9288 match err {
9289 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9290 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9291 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9292 source: err.into(),
9293 }),
9294 }
9295 }
9296}
9297impl From<crate::operation::update_workforce::UpdateWorkforceError> for Error {
9298 fn from(err: crate::operation::update_workforce::UpdateWorkforceError) -> Self {
9299 match err {
9300 crate::operation::update_workforce::UpdateWorkforceError::ConflictException(inner) => Error::ConflictException(inner),
9301 crate::operation::update_workforce::UpdateWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
9302 }
9303 }
9304}
9305impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workteam::UpdateWorkteamError, R>> for Error
9306where
9307 R: Send + Sync + std::fmt::Debug + 'static,
9308{
9309 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workteam::UpdateWorkteamError, R>) -> Self {
9310 match err {
9311 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9312 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9313 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9314 source: err.into(),
9315 }),
9316 }
9317 }
9318}
9319impl From<crate::operation::update_workteam::UpdateWorkteamError> for Error {
9320 fn from(err: crate::operation::update_workteam::UpdateWorkteamError) -> Self {
9321 match err {
9322 crate::operation::update_workteam::UpdateWorkteamError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9323 crate::operation::update_workteam::UpdateWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
9324 }
9325 }
9326}
9327impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
9328where
9329 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
9330 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
9331{
9332 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
9333 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9334 meta: ::std::default::Default::default(),
9335 source: err.into(),
9336 })
9337 }
9338}
9339impl ::std::error::Error for Error {
9340 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
9341 match self {
9342 Error::ConflictException(inner) => inner.source(),
9343 Error::ResourceInUse(inner) => inner.source(),
9344 Error::ResourceLimitExceeded(inner) => inner.source(),
9345 Error::ResourceNotFound(inner) => inner.source(),
9346 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
9347 }
9348 }
9349}
9350impl ::aws_types::request_id::RequestId for Error {
9351 fn request_id(&self) -> Option<&str> {
9352 match self {
9353 Self::ConflictException(e) => e.request_id(),
9354 Self::ResourceInUse(e) => e.request_id(),
9355 Self::ResourceLimitExceeded(e) => e.request_id(),
9356 Self::ResourceNotFound(e) => e.request_id(),
9357 Self::Unhandled(e) => e.meta.request_id(),
9358 }
9359 }
9360}