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_delete_cluster_nodes::BatchDeleteClusterNodesError, R>>
157 for Error
158where
159 R: Send + Sync + std::fmt::Debug + 'static,
160{
161 fn from(
162 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError, R>,
163 ) -> Self {
164 match err {
165 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
166 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
167 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
168 source: err.into(),
169 }),
170 }
171 }
172}
173impl From<crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError> for Error {
174 fn from(err: crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError) -> Self {
175 match err {
176 crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
177 crate::operation::batch_delete_cluster_nodes::BatchDeleteClusterNodesError::Unhandled(inner) => Error::Unhandled(inner),
178 }
179 }
180}
181impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_describe_model_package::BatchDescribeModelPackageError, 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_describe_model_package::BatchDescribeModelPackageError, 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_describe_model_package::BatchDescribeModelPackageError> for Error {
199 fn from(err: crate::operation::batch_describe_model_package::BatchDescribeModelPackageError) -> Self {
200 match err {
201 crate::operation::batch_describe_model_package::BatchDescribeModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
202 }
203 }
204}
205impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_action::CreateActionError, R>> for Error
206where
207 R: Send + Sync + std::fmt::Debug + 'static,
208{
209 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_action::CreateActionError, R>) -> Self {
210 match err {
211 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
212 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
213 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
214 source: err.into(),
215 }),
216 }
217 }
218}
219impl From<crate::operation::create_action::CreateActionError> for Error {
220 fn from(err: crate::operation::create_action::CreateActionError) -> Self {
221 match err {
222 crate::operation::create_action::CreateActionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
223 crate::operation::create_action::CreateActionError::Unhandled(inner) => Error::Unhandled(inner),
224 }
225 }
226}
227impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_algorithm::CreateAlgorithmError, R>> for Error
228where
229 R: Send + Sync + std::fmt::Debug + 'static,
230{
231 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_algorithm::CreateAlgorithmError, R>) -> Self {
232 match err {
233 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
234 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
235 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
236 source: err.into(),
237 }),
238 }
239 }
240}
241impl From<crate::operation::create_algorithm::CreateAlgorithmError> for Error {
242 fn from(err: crate::operation::create_algorithm::CreateAlgorithmError) -> Self {
243 match err {
244 crate::operation::create_algorithm::CreateAlgorithmError::Unhandled(inner) => Error::Unhandled(inner),
245 }
246 }
247}
248impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app::CreateAppError, R>> for Error
249where
250 R: Send + Sync + std::fmt::Debug + 'static,
251{
252 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app::CreateAppError, R>) -> Self {
253 match err {
254 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
255 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
256 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
257 source: err.into(),
258 }),
259 }
260 }
261}
262impl From<crate::operation::create_app::CreateAppError> for Error {
263 fn from(err: crate::operation::create_app::CreateAppError) -> Self {
264 match err {
265 crate::operation::create_app::CreateAppError::ResourceInUse(inner) => Error::ResourceInUse(inner),
266 crate::operation::create_app::CreateAppError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
267 crate::operation::create_app::CreateAppError::Unhandled(inner) => Error::Unhandled(inner),
268 }
269 }
270}
271impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_image_config::CreateAppImageConfigError, R>> for Error
272where
273 R: Send + Sync + std::fmt::Debug + 'static,
274{
275 fn from(
276 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_image_config::CreateAppImageConfigError, R>,
277 ) -> 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_image_config::CreateAppImageConfigError> for Error {
288 fn from(err: crate::operation::create_app_image_config::CreateAppImageConfigError) -> Self {
289 match err {
290 crate::operation::create_app_image_config::CreateAppImageConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
291 crate::operation::create_app_image_config::CreateAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
292 }
293 }
294}
295impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_artifact::CreateArtifactError, R>> for Error
296where
297 R: Send + Sync + std::fmt::Debug + 'static,
298{
299 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_artifact::CreateArtifactError, R>) -> Self {
300 match err {
301 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
302 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
303 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
304 source: err.into(),
305 }),
306 }
307 }
308}
309impl From<crate::operation::create_artifact::CreateArtifactError> for Error {
310 fn from(err: crate::operation::create_artifact::CreateArtifactError) -> Self {
311 match err {
312 crate::operation::create_artifact::CreateArtifactError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
313 crate::operation::create_artifact::CreateArtifactError::Unhandled(inner) => Error::Unhandled(inner),
314 }
315 }
316}
317impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_ml_job::CreateAutoMLJobError, R>> for Error
318where
319 R: Send + Sync + std::fmt::Debug + 'static,
320{
321 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_ml_job::CreateAutoMLJobError, R>) -> Self {
322 match err {
323 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
324 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
325 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
326 source: err.into(),
327 }),
328 }
329 }
330}
331impl From<crate::operation::create_auto_ml_job::CreateAutoMLJobError> for Error {
332 fn from(err: crate::operation::create_auto_ml_job::CreateAutoMLJobError) -> Self {
333 match err {
334 crate::operation::create_auto_ml_job::CreateAutoMLJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
335 crate::operation::create_auto_ml_job::CreateAutoMLJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
336 crate::operation::create_auto_ml_job::CreateAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
337 }
338 }
339}
340impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error, R>> for Error
341where
342 R: Send + Sync + std::fmt::Debug + 'static,
343{
344 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error, R>) -> Self {
345 match err {
346 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
347 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
348 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
349 source: err.into(),
350 }),
351 }
352 }
353}
354impl From<crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error> for Error {
355 fn from(err: crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error) -> Self {
356 match err {
357 crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error::ResourceInUse(inner) => Error::ResourceInUse(inner),
358 crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
359 crate::operation::create_auto_ml_job_v2::CreateAutoMLJobV2Error::Unhandled(inner) => Error::Unhandled(inner),
360 }
361 }
362}
363impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster::CreateClusterError, R>> for Error
364where
365 R: Send + Sync + std::fmt::Debug + 'static,
366{
367 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster::CreateClusterError, R>) -> Self {
368 match err {
369 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
370 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
371 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
372 source: err.into(),
373 }),
374 }
375 }
376}
377impl From<crate::operation::create_cluster::CreateClusterError> for Error {
378 fn from(err: crate::operation::create_cluster::CreateClusterError) -> Self {
379 match err {
380 crate::operation::create_cluster::CreateClusterError::ResourceInUse(inner) => Error::ResourceInUse(inner),
381 crate::operation::create_cluster::CreateClusterError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
382 crate::operation::create_cluster::CreateClusterError::Unhandled(inner) => Error::Unhandled(inner),
383 }
384 }
385}
386impl<R>
387 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError, R>>
388 for Error
389where
390 R: Send + Sync + std::fmt::Debug + 'static,
391{
392 fn from(
393 err: ::aws_smithy_runtime_api::client::result::SdkError<
394 crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError,
395 R,
396 >,
397 ) -> Self {
398 match err {
399 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
400 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
401 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
402 source: err.into(),
403 }),
404 }
405 }
406}
407impl From<crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError> for Error {
408 fn from(err: crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError) -> Self {
409 match err {
410 crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError::ConflictException(inner) => {
411 Error::ConflictException(inner)
412 }
413 crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError::ResourceLimitExceeded(inner) => {
414 Error::ResourceLimitExceeded(inner)
415 }
416 crate::operation::create_cluster_scheduler_config::CreateClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
417 }
418 }
419}
420impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_code_repository::CreateCodeRepositoryError, R>> for Error
421where
422 R: Send + Sync + std::fmt::Debug + 'static,
423{
424 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_code_repository::CreateCodeRepositoryError, R>) -> Self {
425 match err {
426 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
427 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
428 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
429 source: err.into(),
430 }),
431 }
432 }
433}
434impl From<crate::operation::create_code_repository::CreateCodeRepositoryError> for Error {
435 fn from(err: crate::operation::create_code_repository::CreateCodeRepositoryError) -> Self {
436 match err {
437 crate::operation::create_code_repository::CreateCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
438 }
439 }
440}
441impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_compilation_job::CreateCompilationJobError, R>> for Error
442where
443 R: Send + Sync + std::fmt::Debug + 'static,
444{
445 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_compilation_job::CreateCompilationJobError, R>) -> Self {
446 match err {
447 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
448 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
449 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
450 source: err.into(),
451 }),
452 }
453 }
454}
455impl From<crate::operation::create_compilation_job::CreateCompilationJobError> for Error {
456 fn from(err: crate::operation::create_compilation_job::CreateCompilationJobError) -> Self {
457 match err {
458 crate::operation::create_compilation_job::CreateCompilationJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
459 crate::operation::create_compilation_job::CreateCompilationJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
460 crate::operation::create_compilation_job::CreateCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
461 }
462 }
463}
464impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_compute_quota::CreateComputeQuotaError, R>> for Error
465where
466 R: Send + Sync + std::fmt::Debug + 'static,
467{
468 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_compute_quota::CreateComputeQuotaError, R>) -> Self {
469 match err {
470 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
471 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
472 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
473 source: err.into(),
474 }),
475 }
476 }
477}
478impl From<crate::operation::create_compute_quota::CreateComputeQuotaError> for Error {
479 fn from(err: crate::operation::create_compute_quota::CreateComputeQuotaError) -> Self {
480 match err {
481 crate::operation::create_compute_quota::CreateComputeQuotaError::ConflictException(inner) => Error::ConflictException(inner),
482 crate::operation::create_compute_quota::CreateComputeQuotaError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
483 crate::operation::create_compute_quota::CreateComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
484 }
485 }
486}
487impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_context::CreateContextError, R>> for Error
488where
489 R: Send + Sync + std::fmt::Debug + 'static,
490{
491 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_context::CreateContextError, R>) -> Self {
492 match err {
493 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
494 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
495 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
496 source: err.into(),
497 }),
498 }
499 }
500}
501impl From<crate::operation::create_context::CreateContextError> for Error {
502 fn from(err: crate::operation::create_context::CreateContextError) -> Self {
503 match err {
504 crate::operation::create_context::CreateContextError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
505 crate::operation::create_context::CreateContextError::Unhandled(inner) => Error::Unhandled(inner),
506 }
507 }
508}
509impl<R>
510 From<
511 ::aws_smithy_runtime_api::client::result::SdkError<
512 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError,
513 R,
514 >,
515 > for Error
516where
517 R: Send + Sync + std::fmt::Debug + 'static,
518{
519 fn from(
520 err: ::aws_smithy_runtime_api::client::result::SdkError<
521 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError,
522 R,
523 >,
524 ) -> Self {
525 match err {
526 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
527 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
528 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
529 source: err.into(),
530 }),
531 }
532 }
533}
534impl From<crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError> for Error {
535 fn from(err: crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError) -> Self {
536 match err {
537 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError::ResourceInUse(inner) => {
538 Error::ResourceInUse(inner)
539 }
540 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError::ResourceLimitExceeded(inner) => {
541 Error::ResourceLimitExceeded(inner)
542 }
543 crate::operation::create_data_quality_job_definition::CreateDataQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
544 }
545 }
546}
547impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_device_fleet::CreateDeviceFleetError, R>> for Error
548where
549 R: Send + Sync + std::fmt::Debug + 'static,
550{
551 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_device_fleet::CreateDeviceFleetError, R>) -> Self {
552 match err {
553 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
554 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
555 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
556 source: err.into(),
557 }),
558 }
559 }
560}
561impl From<crate::operation::create_device_fleet::CreateDeviceFleetError> for Error {
562 fn from(err: crate::operation::create_device_fleet::CreateDeviceFleetError) -> Self {
563 match err {
564 crate::operation::create_device_fleet::CreateDeviceFleetError::ResourceInUse(inner) => Error::ResourceInUse(inner),
565 crate::operation::create_device_fleet::CreateDeviceFleetError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
566 crate::operation::create_device_fleet::CreateDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
567 }
568 }
569}
570impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain::CreateDomainError, R>> for Error
571where
572 R: Send + Sync + std::fmt::Debug + 'static,
573{
574 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain::CreateDomainError, R>) -> Self {
575 match err {
576 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
577 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
578 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
579 source: err.into(),
580 }),
581 }
582 }
583}
584impl From<crate::operation::create_domain::CreateDomainError> for Error {
585 fn from(err: crate::operation::create_domain::CreateDomainError) -> Self {
586 match err {
587 crate::operation::create_domain::CreateDomainError::ResourceInUse(inner) => Error::ResourceInUse(inner),
588 crate::operation::create_domain::CreateDomainError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
589 crate::operation::create_domain::CreateDomainError::Unhandled(inner) => Error::Unhandled(inner),
590 }
591 }
592}
593impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError, R>>
594 for Error
595where
596 R: Send + Sync + std::fmt::Debug + 'static,
597{
598 fn from(
599 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError, R>,
600 ) -> Self {
601 match err {
602 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
603 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
604 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
605 source: err.into(),
606 }),
607 }
608 }
609}
610impl From<crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError> for Error {
611 fn from(err: crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError) -> Self {
612 match err {
613 crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError::ResourceLimitExceeded(inner) => {
614 Error::ResourceLimitExceeded(inner)
615 }
616 crate::operation::create_edge_deployment_plan::CreateEdgeDeploymentPlanError::Unhandled(inner) => Error::Unhandled(inner),
617 }
618 }
619}
620impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError, R>>
621 for Error
622where
623 R: Send + Sync + std::fmt::Debug + 'static,
624{
625 fn from(
626 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError, R>,
627 ) -> Self {
628 match err {
629 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
630 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
631 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
632 source: err.into(),
633 }),
634 }
635 }
636}
637impl From<crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError> for Error {
638 fn from(err: crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError) -> Self {
639 match err {
640 crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError::ResourceLimitExceeded(inner) => {
641 Error::ResourceLimitExceeded(inner)
642 }
643 crate::operation::create_edge_deployment_stage::CreateEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
644 }
645 }
646}
647impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError, R>>
648 for Error
649where
650 R: Send + Sync + std::fmt::Debug + 'static,
651{
652 fn from(
653 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError, R>,
654 ) -> Self {
655 match err {
656 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
657 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
658 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
659 source: err.into(),
660 }),
661 }
662 }
663}
664impl From<crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError> for Error {
665 fn from(err: crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError) -> Self {
666 match err {
667 crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError::ResourceLimitExceeded(inner) => {
668 Error::ResourceLimitExceeded(inner)
669 }
670 crate::operation::create_edge_packaging_job::CreateEdgePackagingJobError::Unhandled(inner) => Error::Unhandled(inner),
671 }
672 }
673}
674impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint::CreateEndpointError, R>> for Error
675where
676 R: Send + Sync + std::fmt::Debug + 'static,
677{
678 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint::CreateEndpointError, R>) -> Self {
679 match err {
680 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
681 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
682 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
683 source: err.into(),
684 }),
685 }
686 }
687}
688impl From<crate::operation::create_endpoint::CreateEndpointError> for Error {
689 fn from(err: crate::operation::create_endpoint::CreateEndpointError) -> Self {
690 match err {
691 crate::operation::create_endpoint::CreateEndpointError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
692 crate::operation::create_endpoint::CreateEndpointError::Unhandled(inner) => Error::Unhandled(inner),
693 }
694 }
695}
696impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint_config::CreateEndpointConfigError, R>> for Error
697where
698 R: Send + Sync + std::fmt::Debug + 'static,
699{
700 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint_config::CreateEndpointConfigError, R>) -> Self {
701 match err {
702 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
703 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
704 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
705 source: err.into(),
706 }),
707 }
708 }
709}
710impl From<crate::operation::create_endpoint_config::CreateEndpointConfigError> for Error {
711 fn from(err: crate::operation::create_endpoint_config::CreateEndpointConfigError) -> Self {
712 match err {
713 crate::operation::create_endpoint_config::CreateEndpointConfigError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
714 crate::operation::create_endpoint_config::CreateEndpointConfigError::Unhandled(inner) => Error::Unhandled(inner),
715 }
716 }
717}
718impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_experiment::CreateExperimentError, R>> for Error
719where
720 R: Send + Sync + std::fmt::Debug + 'static,
721{
722 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_experiment::CreateExperimentError, R>) -> Self {
723 match err {
724 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
725 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
726 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
727 source: err.into(),
728 }),
729 }
730 }
731}
732impl From<crate::operation::create_experiment::CreateExperimentError> for Error {
733 fn from(err: crate::operation::create_experiment::CreateExperimentError) -> Self {
734 match err {
735 crate::operation::create_experiment::CreateExperimentError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
736 crate::operation::create_experiment::CreateExperimentError::Unhandled(inner) => Error::Unhandled(inner),
737 }
738 }
739}
740impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_feature_group::CreateFeatureGroupError, R>> for Error
741where
742 R: Send + Sync + std::fmt::Debug + 'static,
743{
744 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_feature_group::CreateFeatureGroupError, R>) -> Self {
745 match err {
746 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
747 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
748 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
749 source: err.into(),
750 }),
751 }
752 }
753}
754impl From<crate::operation::create_feature_group::CreateFeatureGroupError> for Error {
755 fn from(err: crate::operation::create_feature_group::CreateFeatureGroupError) -> Self {
756 match err {
757 crate::operation::create_feature_group::CreateFeatureGroupError::ResourceInUse(inner) => Error::ResourceInUse(inner),
758 crate::operation::create_feature_group::CreateFeatureGroupError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
759 crate::operation::create_feature_group::CreateFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
760 }
761 }
762}
763impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_flow_definition::CreateFlowDefinitionError, R>> for Error
764where
765 R: Send + Sync + std::fmt::Debug + 'static,
766{
767 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_flow_definition::CreateFlowDefinitionError, R>) -> Self {
768 match err {
769 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
770 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
771 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
772 source: err.into(),
773 }),
774 }
775 }
776}
777impl From<crate::operation::create_flow_definition::CreateFlowDefinitionError> for Error {
778 fn from(err: crate::operation::create_flow_definition::CreateFlowDefinitionError) -> Self {
779 match err {
780 crate::operation::create_flow_definition::CreateFlowDefinitionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
781 crate::operation::create_flow_definition::CreateFlowDefinitionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
782 crate::operation::create_flow_definition::CreateFlowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
783 }
784 }
785}
786impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hub::CreateHubError, R>> for Error
787where
788 R: Send + Sync + std::fmt::Debug + 'static,
789{
790 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hub::CreateHubError, R>) -> Self {
791 match err {
792 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
793 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
794 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
795 source: err.into(),
796 }),
797 }
798 }
799}
800impl From<crate::operation::create_hub::CreateHubError> for Error {
801 fn from(err: crate::operation::create_hub::CreateHubError) -> Self {
802 match err {
803 crate::operation::create_hub::CreateHubError::ResourceInUse(inner) => Error::ResourceInUse(inner),
804 crate::operation::create_hub::CreateHubError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
805 crate::operation::create_hub::CreateHubError::Unhandled(inner) => Error::Unhandled(inner),
806 }
807 }
808}
809impl<R>
810 From<
811 ::aws_smithy_runtime_api::client::result::SdkError<
812 crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError,
813 R,
814 >,
815 > for Error
816where
817 R: Send + Sync + std::fmt::Debug + 'static,
818{
819 fn from(
820 err: ::aws_smithy_runtime_api::client::result::SdkError<
821 crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError,
822 R,
823 >,
824 ) -> Self {
825 match err {
826 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
827 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
828 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
829 source: err.into(),
830 }),
831 }
832 }
833}
834impl From<crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError> for Error {
835 fn from(err: crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError) -> Self {
836 match err {
837 crate::operation::create_hub_content_presigned_urls::CreateHubContentPresignedUrlsError::Unhandled(inner) => Error::Unhandled(inner),
838 }
839 }
840}
841impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hub_content_reference::CreateHubContentReferenceError, R>>
842 for Error
843where
844 R: Send + Sync + std::fmt::Debug + 'static,
845{
846 fn from(
847 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hub_content_reference::CreateHubContentReferenceError, R>,
848 ) -> Self {
849 match err {
850 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
851 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
852 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
853 source: err.into(),
854 }),
855 }
856 }
857}
858impl From<crate::operation::create_hub_content_reference::CreateHubContentReferenceError> for Error {
859 fn from(err: crate::operation::create_hub_content_reference::CreateHubContentReferenceError) -> Self {
860 match err {
861 crate::operation::create_hub_content_reference::CreateHubContentReferenceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
862 crate::operation::create_hub_content_reference::CreateHubContentReferenceError::ResourceLimitExceeded(inner) => {
863 Error::ResourceLimitExceeded(inner)
864 }
865 crate::operation::create_hub_content_reference::CreateHubContentReferenceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
866 crate::operation::create_hub_content_reference::CreateHubContentReferenceError::Unhandled(inner) => Error::Unhandled(inner),
867 }
868 }
869}
870impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_human_task_ui::CreateHumanTaskUiError, R>> for Error
871where
872 R: Send + Sync + std::fmt::Debug + 'static,
873{
874 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_human_task_ui::CreateHumanTaskUiError, R>) -> Self {
875 match err {
876 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
877 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
878 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
879 source: err.into(),
880 }),
881 }
882 }
883}
884impl From<crate::operation::create_human_task_ui::CreateHumanTaskUiError> for Error {
885 fn from(err: crate::operation::create_human_task_ui::CreateHumanTaskUiError) -> Self {
886 match err {
887 crate::operation::create_human_task_ui::CreateHumanTaskUiError::ResourceInUse(inner) => Error::ResourceInUse(inner),
888 crate::operation::create_human_task_ui::CreateHumanTaskUiError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
889 crate::operation::create_human_task_ui::CreateHumanTaskUiError::Unhandled(inner) => Error::Unhandled(inner),
890 }
891 }
892}
893impl<R>
894 From<
895 ::aws_smithy_runtime_api::client::result::SdkError<
896 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError,
897 R,
898 >,
899 > for Error
900where
901 R: Send + Sync + std::fmt::Debug + 'static,
902{
903 fn from(
904 err: ::aws_smithy_runtime_api::client::result::SdkError<
905 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError,
906 R,
907 >,
908 ) -> Self {
909 match err {
910 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
911 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
912 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
913 source: err.into(),
914 }),
915 }
916 }
917}
918impl From<crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError> for Error {
919 fn from(err: crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError) -> Self {
920 match err {
921 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError::ResourceInUse(inner) => {
922 Error::ResourceInUse(inner)
923 }
924 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError::ResourceLimitExceeded(inner) => {
925 Error::ResourceLimitExceeded(inner)
926 }
927 crate::operation::create_hyper_parameter_tuning_job::CreateHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
928 }
929 }
930}
931impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image::CreateImageError, R>> for Error
932where
933 R: Send + Sync + std::fmt::Debug + 'static,
934{
935 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image::CreateImageError, R>) -> Self {
936 match err {
937 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
938 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
939 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
940 source: err.into(),
941 }),
942 }
943 }
944}
945impl From<crate::operation::create_image::CreateImageError> for Error {
946 fn from(err: crate::operation::create_image::CreateImageError) -> Self {
947 match err {
948 crate::operation::create_image::CreateImageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
949 crate::operation::create_image::CreateImageError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
950 crate::operation::create_image::CreateImageError::Unhandled(inner) => Error::Unhandled(inner),
951 }
952 }
953}
954impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_version::CreateImageVersionError, R>> for Error
955where
956 R: Send + Sync + std::fmt::Debug + 'static,
957{
958 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_version::CreateImageVersionError, R>) -> Self {
959 match err {
960 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
961 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
962 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
963 source: err.into(),
964 }),
965 }
966 }
967}
968impl From<crate::operation::create_image_version::CreateImageVersionError> for Error {
969 fn from(err: crate::operation::create_image_version::CreateImageVersionError) -> Self {
970 match err {
971 crate::operation::create_image_version::CreateImageVersionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
972 crate::operation::create_image_version::CreateImageVersionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
973 crate::operation::create_image_version::CreateImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
974 crate::operation::create_image_version::CreateImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
975 }
976 }
977}
978impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inference_component::CreateInferenceComponentError, R>>
979 for Error
980where
981 R: Send + Sync + std::fmt::Debug + 'static,
982{
983 fn from(
984 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inference_component::CreateInferenceComponentError, R>,
985 ) -> Self {
986 match err {
987 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
988 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
989 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
990 source: err.into(),
991 }),
992 }
993 }
994}
995impl From<crate::operation::create_inference_component::CreateInferenceComponentError> for Error {
996 fn from(err: crate::operation::create_inference_component::CreateInferenceComponentError) -> Self {
997 match err {
998 crate::operation::create_inference_component::CreateInferenceComponentError::ResourceLimitExceeded(inner) => {
999 Error::ResourceLimitExceeded(inner)
1000 }
1001 crate::operation::create_inference_component::CreateInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
1002 }
1003 }
1004}
1005impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inference_experiment::CreateInferenceExperimentError, R>>
1006 for Error
1007where
1008 R: Send + Sync + std::fmt::Debug + 'static,
1009{
1010 fn from(
1011 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_inference_experiment::CreateInferenceExperimentError, R>,
1012 ) -> Self {
1013 match err {
1014 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1015 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1016 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1017 source: err.into(),
1018 }),
1019 }
1020 }
1021}
1022impl From<crate::operation::create_inference_experiment::CreateInferenceExperimentError> for Error {
1023 fn from(err: crate::operation::create_inference_experiment::CreateInferenceExperimentError) -> Self {
1024 match err {
1025 crate::operation::create_inference_experiment::CreateInferenceExperimentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1026 crate::operation::create_inference_experiment::CreateInferenceExperimentError::ResourceLimitExceeded(inner) => {
1027 Error::ResourceLimitExceeded(inner)
1028 }
1029 crate::operation::create_inference_experiment::CreateInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
1030 }
1031 }
1032}
1033impl<R>
1034 From<
1035 ::aws_smithy_runtime_api::client::result::SdkError<
1036 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError,
1037 R,
1038 >,
1039 > for Error
1040where
1041 R: Send + Sync + std::fmt::Debug + 'static,
1042{
1043 fn from(
1044 err: ::aws_smithy_runtime_api::client::result::SdkError<
1045 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError,
1046 R,
1047 >,
1048 ) -> Self {
1049 match err {
1050 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1051 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1052 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1053 source: err.into(),
1054 }),
1055 }
1056 }
1057}
1058impl From<crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError> for Error {
1059 fn from(err: crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError) -> Self {
1060 match err {
1061 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError::ResourceInUse(inner) => {
1062 Error::ResourceInUse(inner)
1063 }
1064 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError::ResourceLimitExceeded(inner) => {
1065 Error::ResourceLimitExceeded(inner)
1066 }
1067 crate::operation::create_inference_recommendations_job::CreateInferenceRecommendationsJobError::Unhandled(inner) => {
1068 Error::Unhandled(inner)
1069 }
1070 }
1071 }
1072}
1073impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_labeling_job::CreateLabelingJobError, R>> for Error
1074where
1075 R: Send + Sync + std::fmt::Debug + 'static,
1076{
1077 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_labeling_job::CreateLabelingJobError, R>) -> Self {
1078 match err {
1079 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1080 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1081 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1082 source: err.into(),
1083 }),
1084 }
1085 }
1086}
1087impl From<crate::operation::create_labeling_job::CreateLabelingJobError> for Error {
1088 fn from(err: crate::operation::create_labeling_job::CreateLabelingJobError) -> Self {
1089 match err {
1090 crate::operation::create_labeling_job::CreateLabelingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1091 crate::operation::create_labeling_job::CreateLabelingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1092 crate::operation::create_labeling_job::CreateLabelingJobError::Unhandled(inner) => Error::Unhandled(inner),
1093 }
1094 }
1095}
1096impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError, R>>
1097 for Error
1098where
1099 R: Send + Sync + std::fmt::Debug + 'static,
1100{
1101 fn from(
1102 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError, R>,
1103 ) -> Self {
1104 match err {
1105 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1106 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1107 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1108 source: err.into(),
1109 }),
1110 }
1111 }
1112}
1113impl From<crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError> for Error {
1114 fn from(err: crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError) -> Self {
1115 match err {
1116 crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError::ResourceLimitExceeded(inner) => {
1117 Error::ResourceLimitExceeded(inner)
1118 }
1119 crate::operation::create_mlflow_tracking_server::CreateMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
1120 }
1121 }
1122}
1123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model::CreateModelError, R>> for Error
1124where
1125 R: Send + Sync + std::fmt::Debug + 'static,
1126{
1127 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model::CreateModelError, R>) -> Self {
1128 match err {
1129 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1130 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1131 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1132 source: err.into(),
1133 }),
1134 }
1135 }
1136}
1137impl From<crate::operation::create_model::CreateModelError> for Error {
1138 fn from(err: crate::operation::create_model::CreateModelError) -> Self {
1139 match err {
1140 crate::operation::create_model::CreateModelError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1141 crate::operation::create_model::CreateModelError::Unhandled(inner) => Error::Unhandled(inner),
1142 }
1143 }
1144}
1145impl<R>
1146 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError, R>>
1147 for Error
1148where
1149 R: Send + Sync + std::fmt::Debug + 'static,
1150{
1151 fn from(
1152 err: ::aws_smithy_runtime_api::client::result::SdkError<
1153 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError,
1154 R,
1155 >,
1156 ) -> Self {
1157 match err {
1158 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1159 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1160 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1161 source: err.into(),
1162 }),
1163 }
1164 }
1165}
1166impl From<crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError> for Error {
1167 fn from(err: crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError) -> Self {
1168 match err {
1169 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError::ResourceInUse(inner) => {
1170 Error::ResourceInUse(inner)
1171 }
1172 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError::ResourceLimitExceeded(inner) => {
1173 Error::ResourceLimitExceeded(inner)
1174 }
1175 crate::operation::create_model_bias_job_definition::CreateModelBiasJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1176 }
1177 }
1178}
1179impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card::CreateModelCardError, R>> for Error
1180where
1181 R: Send + Sync + std::fmt::Debug + 'static,
1182{
1183 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card::CreateModelCardError, R>) -> Self {
1184 match err {
1185 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1186 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1187 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1188 source: err.into(),
1189 }),
1190 }
1191 }
1192}
1193impl From<crate::operation::create_model_card::CreateModelCardError> for Error {
1194 fn from(err: crate::operation::create_model_card::CreateModelCardError) -> Self {
1195 match err {
1196 crate::operation::create_model_card::CreateModelCardError::ConflictException(inner) => Error::ConflictException(inner),
1197 crate::operation::create_model_card::CreateModelCardError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1198 crate::operation::create_model_card::CreateModelCardError::Unhandled(inner) => Error::Unhandled(inner),
1199 }
1200 }
1201}
1202impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card_export_job::CreateModelCardExportJobError, R>>
1203 for Error
1204where
1205 R: Send + Sync + std::fmt::Debug + 'static,
1206{
1207 fn from(
1208 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_card_export_job::CreateModelCardExportJobError, R>,
1209 ) -> Self {
1210 match err {
1211 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1212 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1213 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1214 source: err.into(),
1215 }),
1216 }
1217 }
1218}
1219impl From<crate::operation::create_model_card_export_job::CreateModelCardExportJobError> for Error {
1220 fn from(err: crate::operation::create_model_card_export_job::CreateModelCardExportJobError) -> Self {
1221 match err {
1222 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::ConflictException(inner) => {
1223 Error::ConflictException(inner)
1224 }
1225 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::ResourceLimitExceeded(inner) => {
1226 Error::ResourceLimitExceeded(inner)
1227 }
1228 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1229 crate::operation::create_model_card_export_job::CreateModelCardExportJobError::Unhandled(inner) => Error::Unhandled(inner),
1230 }
1231 }
1232}
1233impl<R>
1234 From<
1235 ::aws_smithy_runtime_api::client::result::SdkError<
1236 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError,
1237 R,
1238 >,
1239 > for Error
1240where
1241 R: Send + Sync + std::fmt::Debug + 'static,
1242{
1243 fn from(
1244 err: ::aws_smithy_runtime_api::client::result::SdkError<
1245 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError,
1246 R,
1247 >,
1248 ) -> Self {
1249 match err {
1250 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1251 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1252 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1253 source: err.into(),
1254 }),
1255 }
1256 }
1257}
1258impl From<crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError> for Error {
1259 fn from(err: crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError) -> Self {
1260 match err {
1261 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError::ResourceInUse(inner) => {
1262 Error::ResourceInUse(inner)
1263 }
1264 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError::ResourceLimitExceeded(
1265 inner,
1266 ) => Error::ResourceLimitExceeded(inner),
1267 crate::operation::create_model_explainability_job_definition::CreateModelExplainabilityJobDefinitionError::Unhandled(inner) => {
1268 Error::Unhandled(inner)
1269 }
1270 }
1271 }
1272}
1273impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package::CreateModelPackageError, R>> for Error
1274where
1275 R: Send + Sync + std::fmt::Debug + 'static,
1276{
1277 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package::CreateModelPackageError, R>) -> Self {
1278 match err {
1279 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1280 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1281 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1282 source: err.into(),
1283 }),
1284 }
1285 }
1286}
1287impl From<crate::operation::create_model_package::CreateModelPackageError> for Error {
1288 fn from(err: crate::operation::create_model_package::CreateModelPackageError) -> Self {
1289 match err {
1290 crate::operation::create_model_package::CreateModelPackageError::ConflictException(inner) => Error::ConflictException(inner),
1291 crate::operation::create_model_package::CreateModelPackageError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1292 crate::operation::create_model_package::CreateModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
1293 }
1294 }
1295}
1296impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package_group::CreateModelPackageGroupError, R>>
1297 for Error
1298where
1299 R: Send + Sync + std::fmt::Debug + 'static,
1300{
1301 fn from(
1302 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model_package_group::CreateModelPackageGroupError, R>,
1303 ) -> Self {
1304 match err {
1305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1308 source: err.into(),
1309 }),
1310 }
1311 }
1312}
1313impl From<crate::operation::create_model_package_group::CreateModelPackageGroupError> for Error {
1314 fn from(err: crate::operation::create_model_package_group::CreateModelPackageGroupError) -> Self {
1315 match err {
1316 crate::operation::create_model_package_group::CreateModelPackageGroupError::ResourceLimitExceeded(inner) => {
1317 Error::ResourceLimitExceeded(inner)
1318 }
1319 crate::operation::create_model_package_group::CreateModelPackageGroupError::Unhandled(inner) => Error::Unhandled(inner),
1320 }
1321 }
1322}
1323impl<R>
1324 From<
1325 ::aws_smithy_runtime_api::client::result::SdkError<
1326 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError,
1327 R,
1328 >,
1329 > for Error
1330where
1331 R: Send + Sync + std::fmt::Debug + 'static,
1332{
1333 fn from(
1334 err: ::aws_smithy_runtime_api::client::result::SdkError<
1335 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError,
1336 R,
1337 >,
1338 ) -> Self {
1339 match err {
1340 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1341 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1342 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1343 source: err.into(),
1344 }),
1345 }
1346 }
1347}
1348impl From<crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError> for Error {
1349 fn from(err: crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError) -> Self {
1350 match err {
1351 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError::ResourceInUse(inner) => {
1352 Error::ResourceInUse(inner)
1353 }
1354 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError::ResourceLimitExceeded(inner) => {
1355 Error::ResourceLimitExceeded(inner)
1356 }
1357 crate::operation::create_model_quality_job_definition::CreateModelQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1358 }
1359 }
1360}
1361impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError, R>>
1362 for Error
1363where
1364 R: Send + Sync + std::fmt::Debug + 'static,
1365{
1366 fn from(
1367 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError, R>,
1368 ) -> Self {
1369 match err {
1370 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1371 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1372 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1373 source: err.into(),
1374 }),
1375 }
1376 }
1377}
1378impl From<crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError> for Error {
1379 fn from(err: crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError) -> Self {
1380 match err {
1381 crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1382 crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError::ResourceLimitExceeded(inner) => {
1383 Error::ResourceLimitExceeded(inner)
1384 }
1385 crate::operation::create_monitoring_schedule::CreateMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
1386 }
1387 }
1388}
1389impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notebook_instance::CreateNotebookInstanceError, R>> for Error
1390where
1391 R: Send + Sync + std::fmt::Debug + 'static,
1392{
1393 fn from(
1394 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notebook_instance::CreateNotebookInstanceError, R>,
1395 ) -> Self {
1396 match err {
1397 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1398 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1399 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1400 source: err.into(),
1401 }),
1402 }
1403 }
1404}
1405impl From<crate::operation::create_notebook_instance::CreateNotebookInstanceError> for Error {
1406 fn from(err: crate::operation::create_notebook_instance::CreateNotebookInstanceError) -> Self {
1407 match err {
1408 crate::operation::create_notebook_instance::CreateNotebookInstanceError::ResourceLimitExceeded(inner) => {
1409 Error::ResourceLimitExceeded(inner)
1410 }
1411 crate::operation::create_notebook_instance::CreateNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
1412 }
1413 }
1414}
1415impl<R>
1416 From<
1417 ::aws_smithy_runtime_api::client::result::SdkError<
1418 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError,
1419 R,
1420 >,
1421 > for Error
1422where
1423 R: Send + Sync + std::fmt::Debug + 'static,
1424{
1425 fn from(
1426 err: ::aws_smithy_runtime_api::client::result::SdkError<
1427 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError,
1428 R,
1429 >,
1430 ) -> Self {
1431 match err {
1432 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1433 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1434 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1435 source: err.into(),
1436 }),
1437 }
1438 }
1439}
1440impl From<crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError> for Error {
1441 fn from(err: crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError) -> Self {
1442 match err {
1443 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError::ResourceLimitExceeded(inner) => {
1444 Error::ResourceLimitExceeded(inner)
1445 }
1446 crate::operation::create_notebook_instance_lifecycle_config::CreateNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
1447 Error::Unhandled(inner)
1448 }
1449 }
1450 }
1451}
1452impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_optimization_job::CreateOptimizationJobError, R>> for Error
1453where
1454 R: Send + Sync + std::fmt::Debug + 'static,
1455{
1456 fn from(
1457 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_optimization_job::CreateOptimizationJobError, R>,
1458 ) -> Self {
1459 match err {
1460 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1461 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1462 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1463 source: err.into(),
1464 }),
1465 }
1466 }
1467}
1468impl From<crate::operation::create_optimization_job::CreateOptimizationJobError> for Error {
1469 fn from(err: crate::operation::create_optimization_job::CreateOptimizationJobError) -> Self {
1470 match err {
1471 crate::operation::create_optimization_job::CreateOptimizationJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1472 crate::operation::create_optimization_job::CreateOptimizationJobError::ResourceLimitExceeded(inner) => {
1473 Error::ResourceLimitExceeded(inner)
1474 }
1475 crate::operation::create_optimization_job::CreateOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
1476 }
1477 }
1478}
1479impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_app::CreatePartnerAppError, R>> for Error
1480where
1481 R: Send + Sync + std::fmt::Debug + 'static,
1482{
1483 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_app::CreatePartnerAppError, R>) -> 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_partner_app::CreatePartnerAppError> for Error {
1494 fn from(err: crate::operation::create_partner_app::CreatePartnerAppError) -> Self {
1495 match err {
1496 crate::operation::create_partner_app::CreatePartnerAppError::ConflictException(inner) => Error::ConflictException(inner),
1497 crate::operation::create_partner_app::CreatePartnerAppError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1498 crate::operation::create_partner_app::CreatePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
1499 }
1500 }
1501}
1502impl<R>
1503 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError, R>>
1504 for Error
1505where
1506 R: Send + Sync + std::fmt::Debug + 'static,
1507{
1508 fn from(
1509 err: ::aws_smithy_runtime_api::client::result::SdkError<
1510 crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError,
1511 R,
1512 >,
1513 ) -> Self {
1514 match err {
1515 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1516 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1517 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1518 source: err.into(),
1519 }),
1520 }
1521 }
1522}
1523impl From<crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError> for Error {
1524 fn from(err: crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError) -> Self {
1525 match err {
1526 crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError::ResourceNotFound(inner) => {
1527 Error::ResourceNotFound(inner)
1528 }
1529 crate::operation::create_partner_app_presigned_url::CreatePartnerAppPresignedUrlError::Unhandled(inner) => Error::Unhandled(inner),
1530 }
1531 }
1532}
1533impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pipeline::CreatePipelineError, R>> for Error
1534where
1535 R: Send + Sync + std::fmt::Debug + 'static,
1536{
1537 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pipeline::CreatePipelineError, R>) -> Self {
1538 match err {
1539 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1540 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1541 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1542 source: err.into(),
1543 }),
1544 }
1545 }
1546}
1547impl From<crate::operation::create_pipeline::CreatePipelineError> for Error {
1548 fn from(err: crate::operation::create_pipeline::CreatePipelineError) -> Self {
1549 match err {
1550 crate::operation::create_pipeline::CreatePipelineError::ConflictException(inner) => Error::ConflictException(inner),
1551 crate::operation::create_pipeline::CreatePipelineError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1552 crate::operation::create_pipeline::CreatePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1553 crate::operation::create_pipeline::CreatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
1554 }
1555 }
1556}
1557impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError, R>>
1558 for Error
1559where
1560 R: Send + Sync + std::fmt::Debug + 'static,
1561{
1562 fn from(
1563 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError, R>,
1564 ) -> Self {
1565 match err {
1566 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1567 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1568 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1569 source: err.into(),
1570 }),
1571 }
1572 }
1573}
1574impl From<crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError> for Error {
1575 fn from(err: crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError) -> Self {
1576 match err {
1577 crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1578 crate::operation::create_presigned_domain_url::CreatePresignedDomainUrlError::Unhandled(inner) => Error::Unhandled(inner),
1579 }
1580 }
1581}
1582impl<R>
1583 From<
1584 ::aws_smithy_runtime_api::client::result::SdkError<
1585 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError,
1586 R,
1587 >,
1588 > for Error
1589where
1590 R: Send + Sync + std::fmt::Debug + 'static,
1591{
1592 fn from(
1593 err: ::aws_smithy_runtime_api::client::result::SdkError<
1594 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError,
1595 R,
1596 >,
1597 ) -> Self {
1598 match err {
1599 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1600 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1601 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1602 source: err.into(),
1603 }),
1604 }
1605 }
1606}
1607impl From<crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError> for Error {
1608 fn from(err: crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError) -> Self {
1609 match err {
1610 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError::ResourceNotFound(inner) => {
1611 Error::ResourceNotFound(inner)
1612 }
1613 crate::operation::create_presigned_mlflow_tracking_server_url::CreatePresignedMlflowTrackingServerUrlError::Unhandled(inner) => {
1614 Error::Unhandled(inner)
1615 }
1616 }
1617 }
1618}
1619impl<R>
1620 From<
1621 ::aws_smithy_runtime_api::client::result::SdkError<
1622 crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError,
1623 R,
1624 >,
1625 > for Error
1626where
1627 R: Send + Sync + std::fmt::Debug + 'static,
1628{
1629 fn from(
1630 err: ::aws_smithy_runtime_api::client::result::SdkError<
1631 crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError,
1632 R,
1633 >,
1634 ) -> Self {
1635 match err {
1636 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1637 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1638 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1639 source: err.into(),
1640 }),
1641 }
1642 }
1643}
1644impl From<crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError> for Error {
1645 fn from(err: crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError) -> Self {
1646 match err {
1647 crate::operation::create_presigned_notebook_instance_url::CreatePresignedNotebookInstanceUrlError::Unhandled(inner) => {
1648 Error::Unhandled(inner)
1649 }
1650 }
1651 }
1652}
1653impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_processing_job::CreateProcessingJobError, R>> for Error
1654where
1655 R: Send + Sync + std::fmt::Debug + 'static,
1656{
1657 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_processing_job::CreateProcessingJobError, R>) -> Self {
1658 match err {
1659 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1660 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1661 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1662 source: err.into(),
1663 }),
1664 }
1665 }
1666}
1667impl From<crate::operation::create_processing_job::CreateProcessingJobError> for Error {
1668 fn from(err: crate::operation::create_processing_job::CreateProcessingJobError) -> Self {
1669 match err {
1670 crate::operation::create_processing_job::CreateProcessingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1671 crate::operation::create_processing_job::CreateProcessingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1672 crate::operation::create_processing_job::CreateProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1673 crate::operation::create_processing_job::CreateProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
1674 }
1675 }
1676}
1677impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>> for Error
1678where
1679 R: Send + Sync + std::fmt::Debug + 'static,
1680{
1681 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>) -> Self {
1682 match err {
1683 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1684 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1685 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1686 source: err.into(),
1687 }),
1688 }
1689 }
1690}
1691impl From<crate::operation::create_project::CreateProjectError> for Error {
1692 fn from(err: crate::operation::create_project::CreateProjectError) -> Self {
1693 match err {
1694 crate::operation::create_project::CreateProjectError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1695 crate::operation::create_project::CreateProjectError::Unhandled(inner) => Error::Unhandled(inner),
1696 }
1697 }
1698}
1699impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_space::CreateSpaceError, R>> for Error
1700where
1701 R: Send + Sync + std::fmt::Debug + 'static,
1702{
1703 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_space::CreateSpaceError, R>) -> Self {
1704 match err {
1705 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1706 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1707 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1708 source: err.into(),
1709 }),
1710 }
1711 }
1712}
1713impl From<crate::operation::create_space::CreateSpaceError> for Error {
1714 fn from(err: crate::operation::create_space::CreateSpaceError) -> Self {
1715 match err {
1716 crate::operation::create_space::CreateSpaceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1717 crate::operation::create_space::CreateSpaceError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1718 crate::operation::create_space::CreateSpaceError::Unhandled(inner) => Error::Unhandled(inner),
1719 }
1720 }
1721}
1722impl<R>
1723 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError, R>>
1724 for Error
1725where
1726 R: Send + Sync + std::fmt::Debug + 'static,
1727{
1728 fn from(
1729 err: ::aws_smithy_runtime_api::client::result::SdkError<
1730 crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError,
1731 R,
1732 >,
1733 ) -> Self {
1734 match err {
1735 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1736 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1737 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1738 source: err.into(),
1739 }),
1740 }
1741 }
1742}
1743impl From<crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError> for Error {
1744 fn from(err: crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError) -> Self {
1745 match err {
1746 crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1747 crate::operation::create_studio_lifecycle_config::CreateStudioLifecycleConfigError::Unhandled(inner) => Error::Unhandled(inner),
1748 }
1749 }
1750}
1751impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_job::CreateTrainingJobError, R>> for Error
1752where
1753 R: Send + Sync + std::fmt::Debug + 'static,
1754{
1755 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_job::CreateTrainingJobError, R>) -> Self {
1756 match err {
1757 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1758 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1759 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1760 source: err.into(),
1761 }),
1762 }
1763 }
1764}
1765impl From<crate::operation::create_training_job::CreateTrainingJobError> for Error {
1766 fn from(err: crate::operation::create_training_job::CreateTrainingJobError) -> Self {
1767 match err {
1768 crate::operation::create_training_job::CreateTrainingJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1769 crate::operation::create_training_job::CreateTrainingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1770 crate::operation::create_training_job::CreateTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1771 crate::operation::create_training_job::CreateTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
1772 }
1773 }
1774}
1775impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_plan::CreateTrainingPlanError, R>> for Error
1776where
1777 R: Send + Sync + std::fmt::Debug + 'static,
1778{
1779 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_training_plan::CreateTrainingPlanError, R>) -> Self {
1780 match err {
1781 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1782 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1783 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1784 source: err.into(),
1785 }),
1786 }
1787 }
1788}
1789impl From<crate::operation::create_training_plan::CreateTrainingPlanError> for Error {
1790 fn from(err: crate::operation::create_training_plan::CreateTrainingPlanError) -> Self {
1791 match err {
1792 crate::operation::create_training_plan::CreateTrainingPlanError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1793 crate::operation::create_training_plan::CreateTrainingPlanError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1794 crate::operation::create_training_plan::CreateTrainingPlanError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1795 crate::operation::create_training_plan::CreateTrainingPlanError::Unhandled(inner) => Error::Unhandled(inner),
1796 }
1797 }
1798}
1799impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transform_job::CreateTransformJobError, R>> for Error
1800where
1801 R: Send + Sync + std::fmt::Debug + 'static,
1802{
1803 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transform_job::CreateTransformJobError, R>) -> Self {
1804 match err {
1805 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1806 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1807 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1808 source: err.into(),
1809 }),
1810 }
1811 }
1812}
1813impl From<crate::operation::create_transform_job::CreateTransformJobError> for Error {
1814 fn from(err: crate::operation::create_transform_job::CreateTransformJobError) -> Self {
1815 match err {
1816 crate::operation::create_transform_job::CreateTransformJobError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1817 crate::operation::create_transform_job::CreateTransformJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1818 crate::operation::create_transform_job::CreateTransformJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1819 crate::operation::create_transform_job::CreateTransformJobError::Unhandled(inner) => Error::Unhandled(inner),
1820 }
1821 }
1822}
1823impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial::CreateTrialError, R>> for Error
1824where
1825 R: Send + Sync + std::fmt::Debug + 'static,
1826{
1827 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial::CreateTrialError, R>) -> Self {
1828 match err {
1829 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1830 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1831 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1832 source: err.into(),
1833 }),
1834 }
1835 }
1836}
1837impl From<crate::operation::create_trial::CreateTrialError> for Error {
1838 fn from(err: crate::operation::create_trial::CreateTrialError) -> Self {
1839 match err {
1840 crate::operation::create_trial::CreateTrialError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1841 crate::operation::create_trial::CreateTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1842 crate::operation::create_trial::CreateTrialError::Unhandled(inner) => Error::Unhandled(inner),
1843 }
1844 }
1845}
1846impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial_component::CreateTrialComponentError, R>> for Error
1847where
1848 R: Send + Sync + std::fmt::Debug + 'static,
1849{
1850 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trial_component::CreateTrialComponentError, R>) -> Self {
1851 match err {
1852 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1853 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1854 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1855 source: err.into(),
1856 }),
1857 }
1858 }
1859}
1860impl From<crate::operation::create_trial_component::CreateTrialComponentError> for Error {
1861 fn from(err: crate::operation::create_trial_component::CreateTrialComponentError) -> Self {
1862 match err {
1863 crate::operation::create_trial_component::CreateTrialComponentError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1864 crate::operation::create_trial_component::CreateTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
1865 }
1866 }
1867}
1868impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_profile::CreateUserProfileError, R>> for Error
1869where
1870 R: Send + Sync + std::fmt::Debug + 'static,
1871{
1872 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_profile::CreateUserProfileError, R>) -> Self {
1873 match err {
1874 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1875 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1876 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1877 source: err.into(),
1878 }),
1879 }
1880 }
1881}
1882impl From<crate::operation::create_user_profile::CreateUserProfileError> for Error {
1883 fn from(err: crate::operation::create_user_profile::CreateUserProfileError) -> Self {
1884 match err {
1885 crate::operation::create_user_profile::CreateUserProfileError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1886 crate::operation::create_user_profile::CreateUserProfileError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1887 crate::operation::create_user_profile::CreateUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
1888 }
1889 }
1890}
1891impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workforce::CreateWorkforceError, R>> for Error
1892where
1893 R: Send + Sync + std::fmt::Debug + 'static,
1894{
1895 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workforce::CreateWorkforceError, R>) -> Self {
1896 match err {
1897 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1898 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1899 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1900 source: err.into(),
1901 }),
1902 }
1903 }
1904}
1905impl From<crate::operation::create_workforce::CreateWorkforceError> for Error {
1906 fn from(err: crate::operation::create_workforce::CreateWorkforceError) -> Self {
1907 match err {
1908 crate::operation::create_workforce::CreateWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
1909 }
1910 }
1911}
1912impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workteam::CreateWorkteamError, R>> for Error
1913where
1914 R: Send + Sync + std::fmt::Debug + 'static,
1915{
1916 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workteam::CreateWorkteamError, R>) -> Self {
1917 match err {
1918 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1919 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1920 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1921 source: err.into(),
1922 }),
1923 }
1924 }
1925}
1926impl From<crate::operation::create_workteam::CreateWorkteamError> for Error {
1927 fn from(err: crate::operation::create_workteam::CreateWorkteamError) -> Self {
1928 match err {
1929 crate::operation::create_workteam::CreateWorkteamError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1930 crate::operation::create_workteam::CreateWorkteamError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
1931 crate::operation::create_workteam::CreateWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
1932 }
1933 }
1934}
1935impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_action::DeleteActionError, R>> for Error
1936where
1937 R: Send + Sync + std::fmt::Debug + 'static,
1938{
1939 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_action::DeleteActionError, R>) -> Self {
1940 match err {
1941 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1942 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1943 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1944 source: err.into(),
1945 }),
1946 }
1947 }
1948}
1949impl From<crate::operation::delete_action::DeleteActionError> for Error {
1950 fn from(err: crate::operation::delete_action::DeleteActionError) -> Self {
1951 match err {
1952 crate::operation::delete_action::DeleteActionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1953 crate::operation::delete_action::DeleteActionError::Unhandled(inner) => Error::Unhandled(inner),
1954 }
1955 }
1956}
1957impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_algorithm::DeleteAlgorithmError, R>> for Error
1958where
1959 R: Send + Sync + std::fmt::Debug + 'static,
1960{
1961 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_algorithm::DeleteAlgorithmError, R>) -> Self {
1962 match err {
1963 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1964 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1965 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1966 source: err.into(),
1967 }),
1968 }
1969 }
1970}
1971impl From<crate::operation::delete_algorithm::DeleteAlgorithmError> for Error {
1972 fn from(err: crate::operation::delete_algorithm::DeleteAlgorithmError) -> Self {
1973 match err {
1974 crate::operation::delete_algorithm::DeleteAlgorithmError::ConflictException(inner) => Error::ConflictException(inner),
1975 crate::operation::delete_algorithm::DeleteAlgorithmError::Unhandled(inner) => Error::Unhandled(inner),
1976 }
1977 }
1978}
1979impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app::DeleteAppError, R>> for Error
1980where
1981 R: Send + Sync + std::fmt::Debug + 'static,
1982{
1983 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app::DeleteAppError, R>) -> Self {
1984 match err {
1985 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1986 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1987 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1988 source: err.into(),
1989 }),
1990 }
1991 }
1992}
1993impl From<crate::operation::delete_app::DeleteAppError> for Error {
1994 fn from(err: crate::operation::delete_app::DeleteAppError) -> Self {
1995 match err {
1996 crate::operation::delete_app::DeleteAppError::ResourceInUse(inner) => Error::ResourceInUse(inner),
1997 crate::operation::delete_app::DeleteAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1998 crate::operation::delete_app::DeleteAppError::Unhandled(inner) => Error::Unhandled(inner),
1999 }
2000 }
2001}
2002impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_image_config::DeleteAppImageConfigError, R>> for Error
2003where
2004 R: Send + Sync + std::fmt::Debug + 'static,
2005{
2006 fn from(
2007 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_image_config::DeleteAppImageConfigError, R>,
2008 ) -> 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_image_config::DeleteAppImageConfigError> for Error {
2019 fn from(err: crate::operation::delete_app_image_config::DeleteAppImageConfigError) -> Self {
2020 match err {
2021 crate::operation::delete_app_image_config::DeleteAppImageConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2022 crate::operation::delete_app_image_config::DeleteAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
2023 }
2024 }
2025}
2026impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_artifact::DeleteArtifactError, R>> for Error
2027where
2028 R: Send + Sync + std::fmt::Debug + 'static,
2029{
2030 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_artifact::DeleteArtifactError, R>) -> Self {
2031 match err {
2032 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2033 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2034 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2035 source: err.into(),
2036 }),
2037 }
2038 }
2039}
2040impl From<crate::operation::delete_artifact::DeleteArtifactError> for Error {
2041 fn from(err: crate::operation::delete_artifact::DeleteArtifactError) -> Self {
2042 match err {
2043 crate::operation::delete_artifact::DeleteArtifactError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2044 crate::operation::delete_artifact::DeleteArtifactError::Unhandled(inner) => Error::Unhandled(inner),
2045 }
2046 }
2047}
2048impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_association::DeleteAssociationError, R>> for Error
2049where
2050 R: Send + Sync + std::fmt::Debug + 'static,
2051{
2052 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_association::DeleteAssociationError, R>) -> Self {
2053 match err {
2054 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2055 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2056 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2057 source: err.into(),
2058 }),
2059 }
2060 }
2061}
2062impl From<crate::operation::delete_association::DeleteAssociationError> for Error {
2063 fn from(err: crate::operation::delete_association::DeleteAssociationError) -> Self {
2064 match err {
2065 crate::operation::delete_association::DeleteAssociationError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2066 crate::operation::delete_association::DeleteAssociationError::Unhandled(inner) => Error::Unhandled(inner),
2067 }
2068 }
2069}
2070impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster::DeleteClusterError, R>> for Error
2071where
2072 R: Send + Sync + std::fmt::Debug + 'static,
2073{
2074 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster::DeleteClusterError, R>) -> Self {
2075 match err {
2076 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2077 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2078 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2079 source: err.into(),
2080 }),
2081 }
2082 }
2083}
2084impl From<crate::operation::delete_cluster::DeleteClusterError> for Error {
2085 fn from(err: crate::operation::delete_cluster::DeleteClusterError) -> Self {
2086 match err {
2087 crate::operation::delete_cluster::DeleteClusterError::ConflictException(inner) => Error::ConflictException(inner),
2088 crate::operation::delete_cluster::DeleteClusterError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2089 crate::operation::delete_cluster::DeleteClusterError::Unhandled(inner) => Error::Unhandled(inner),
2090 }
2091 }
2092}
2093impl<R>
2094 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError, R>>
2095 for Error
2096where
2097 R: Send + Sync + std::fmt::Debug + 'static,
2098{
2099 fn from(
2100 err: ::aws_smithy_runtime_api::client::result::SdkError<
2101 crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError,
2102 R,
2103 >,
2104 ) -> Self {
2105 match err {
2106 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2107 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2108 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2109 source: err.into(),
2110 }),
2111 }
2112 }
2113}
2114impl From<crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError> for Error {
2115 fn from(err: crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError) -> Self {
2116 match err {
2117 crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError::ResourceNotFound(inner) => {
2118 Error::ResourceNotFound(inner)
2119 }
2120 crate::operation::delete_cluster_scheduler_config::DeleteClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
2121 }
2122 }
2123}
2124impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_code_repository::DeleteCodeRepositoryError, R>> for Error
2125where
2126 R: Send + Sync + std::fmt::Debug + 'static,
2127{
2128 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_code_repository::DeleteCodeRepositoryError, R>) -> Self {
2129 match err {
2130 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2131 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2132 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2133 source: err.into(),
2134 }),
2135 }
2136 }
2137}
2138impl From<crate::operation::delete_code_repository::DeleteCodeRepositoryError> for Error {
2139 fn from(err: crate::operation::delete_code_repository::DeleteCodeRepositoryError) -> Self {
2140 match err {
2141 crate::operation::delete_code_repository::DeleteCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
2142 }
2143 }
2144}
2145impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compilation_job::DeleteCompilationJobError, R>> for Error
2146where
2147 R: Send + Sync + std::fmt::Debug + 'static,
2148{
2149 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compilation_job::DeleteCompilationJobError, R>) -> Self {
2150 match err {
2151 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2152 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2153 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2154 source: err.into(),
2155 }),
2156 }
2157 }
2158}
2159impl From<crate::operation::delete_compilation_job::DeleteCompilationJobError> for Error {
2160 fn from(err: crate::operation::delete_compilation_job::DeleteCompilationJobError) -> Self {
2161 match err {
2162 crate::operation::delete_compilation_job::DeleteCompilationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2163 crate::operation::delete_compilation_job::DeleteCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
2164 }
2165 }
2166}
2167impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compute_quota::DeleteComputeQuotaError, R>> for Error
2168where
2169 R: Send + Sync + std::fmt::Debug + 'static,
2170{
2171 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_compute_quota::DeleteComputeQuotaError, R>) -> Self {
2172 match err {
2173 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2174 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2175 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2176 source: err.into(),
2177 }),
2178 }
2179 }
2180}
2181impl From<crate::operation::delete_compute_quota::DeleteComputeQuotaError> for Error {
2182 fn from(err: crate::operation::delete_compute_quota::DeleteComputeQuotaError) -> Self {
2183 match err {
2184 crate::operation::delete_compute_quota::DeleteComputeQuotaError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2185 crate::operation::delete_compute_quota::DeleteComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
2186 }
2187 }
2188}
2189impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_context::DeleteContextError, R>> for Error
2190where
2191 R: Send + Sync + std::fmt::Debug + 'static,
2192{
2193 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_context::DeleteContextError, R>) -> Self {
2194 match err {
2195 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2196 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2197 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2198 source: err.into(),
2199 }),
2200 }
2201 }
2202}
2203impl From<crate::operation::delete_context::DeleteContextError> for Error {
2204 fn from(err: crate::operation::delete_context::DeleteContextError) -> Self {
2205 match err {
2206 crate::operation::delete_context::DeleteContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2207 crate::operation::delete_context::DeleteContextError::Unhandled(inner) => Error::Unhandled(inner),
2208 }
2209 }
2210}
2211impl<R>
2212 From<
2213 ::aws_smithy_runtime_api::client::result::SdkError<
2214 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError,
2215 R,
2216 >,
2217 > for Error
2218where
2219 R: Send + Sync + std::fmt::Debug + 'static,
2220{
2221 fn from(
2222 err: ::aws_smithy_runtime_api::client::result::SdkError<
2223 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError,
2224 R,
2225 >,
2226 ) -> Self {
2227 match err {
2228 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2229 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2230 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2231 source: err.into(),
2232 }),
2233 }
2234 }
2235}
2236impl From<crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError> for Error {
2237 fn from(err: crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError) -> Self {
2238 match err {
2239 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError::ResourceNotFound(inner) => {
2240 Error::ResourceNotFound(inner)
2241 }
2242 crate::operation::delete_data_quality_job_definition::DeleteDataQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2243 }
2244 }
2245}
2246impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device_fleet::DeleteDeviceFleetError, R>> for Error
2247where
2248 R: Send + Sync + std::fmt::Debug + 'static,
2249{
2250 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device_fleet::DeleteDeviceFleetError, R>) -> Self {
2251 match err {
2252 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2253 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2254 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2255 source: err.into(),
2256 }),
2257 }
2258 }
2259}
2260impl From<crate::operation::delete_device_fleet::DeleteDeviceFleetError> for Error {
2261 fn from(err: crate::operation::delete_device_fleet::DeleteDeviceFleetError) -> Self {
2262 match err {
2263 crate::operation::delete_device_fleet::DeleteDeviceFleetError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2264 crate::operation::delete_device_fleet::DeleteDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
2265 }
2266 }
2267}
2268impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>> for Error
2269where
2270 R: Send + Sync + std::fmt::Debug + 'static,
2271{
2272 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>) -> Self {
2273 match err {
2274 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2275 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2276 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2277 source: err.into(),
2278 }),
2279 }
2280 }
2281}
2282impl From<crate::operation::delete_domain::DeleteDomainError> for Error {
2283 fn from(err: crate::operation::delete_domain::DeleteDomainError) -> Self {
2284 match err {
2285 crate::operation::delete_domain::DeleteDomainError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2286 crate::operation::delete_domain::DeleteDomainError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2287 crate::operation::delete_domain::DeleteDomainError::Unhandled(inner) => Error::Unhandled(inner),
2288 }
2289 }
2290}
2291impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError, R>>
2292 for Error
2293where
2294 R: Send + Sync + std::fmt::Debug + 'static,
2295{
2296 fn from(
2297 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError, R>,
2298 ) -> Self {
2299 match err {
2300 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2301 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2302 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2303 source: err.into(),
2304 }),
2305 }
2306 }
2307}
2308impl From<crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError> for Error {
2309 fn from(err: crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError) -> Self {
2310 match err {
2311 crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2312 crate::operation::delete_edge_deployment_plan::DeleteEdgeDeploymentPlanError::Unhandled(inner) => Error::Unhandled(inner),
2313 }
2314 }
2315}
2316impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError, 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_stage::DeleteEdgeDeploymentStageError, 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_stage::DeleteEdgeDeploymentStageError> for Error {
2334 fn from(err: crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError) -> Self {
2335 match err {
2336 crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2337 crate::operation::delete_edge_deployment_stage::DeleteEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
2338 }
2339 }
2340}
2341impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint::DeleteEndpointError, R>> for Error
2342where
2343 R: Send + Sync + std::fmt::Debug + 'static,
2344{
2345 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint::DeleteEndpointError, R>) -> Self {
2346 match err {
2347 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2348 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2349 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2350 source: err.into(),
2351 }),
2352 }
2353 }
2354}
2355impl From<crate::operation::delete_endpoint::DeleteEndpointError> for Error {
2356 fn from(err: crate::operation::delete_endpoint::DeleteEndpointError) -> Self {
2357 match err {
2358 crate::operation::delete_endpoint::DeleteEndpointError::Unhandled(inner) => Error::Unhandled(inner),
2359 }
2360 }
2361}
2362impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint_config::DeleteEndpointConfigError, R>> for Error
2363where
2364 R: Send + Sync + std::fmt::Debug + 'static,
2365{
2366 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint_config::DeleteEndpointConfigError, R>) -> Self {
2367 match err {
2368 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2369 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2370 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2371 source: err.into(),
2372 }),
2373 }
2374 }
2375}
2376impl From<crate::operation::delete_endpoint_config::DeleteEndpointConfigError> for Error {
2377 fn from(err: crate::operation::delete_endpoint_config::DeleteEndpointConfigError) -> Self {
2378 match err {
2379 crate::operation::delete_endpoint_config::DeleteEndpointConfigError::Unhandled(inner) => Error::Unhandled(inner),
2380 }
2381 }
2382}
2383impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_experiment::DeleteExperimentError, R>> for Error
2384where
2385 R: Send + Sync + std::fmt::Debug + 'static,
2386{
2387 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_experiment::DeleteExperimentError, R>) -> Self {
2388 match err {
2389 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2390 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2391 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2392 source: err.into(),
2393 }),
2394 }
2395 }
2396}
2397impl From<crate::operation::delete_experiment::DeleteExperimentError> for Error {
2398 fn from(err: crate::operation::delete_experiment::DeleteExperimentError) -> Self {
2399 match err {
2400 crate::operation::delete_experiment::DeleteExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2401 crate::operation::delete_experiment::DeleteExperimentError::Unhandled(inner) => Error::Unhandled(inner),
2402 }
2403 }
2404}
2405impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feature_group::DeleteFeatureGroupError, R>> for Error
2406where
2407 R: Send + Sync + std::fmt::Debug + 'static,
2408{
2409 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feature_group::DeleteFeatureGroupError, R>) -> Self {
2410 match err {
2411 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2412 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2413 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2414 source: err.into(),
2415 }),
2416 }
2417 }
2418}
2419impl From<crate::operation::delete_feature_group::DeleteFeatureGroupError> for Error {
2420 fn from(err: crate::operation::delete_feature_group::DeleteFeatureGroupError) -> Self {
2421 match err {
2422 crate::operation::delete_feature_group::DeleteFeatureGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2423 crate::operation::delete_feature_group::DeleteFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
2424 }
2425 }
2426}
2427impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_definition::DeleteFlowDefinitionError, R>> for Error
2428where
2429 R: Send + Sync + std::fmt::Debug + 'static,
2430{
2431 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_flow_definition::DeleteFlowDefinitionError, R>) -> Self {
2432 match err {
2433 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2434 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2435 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2436 source: err.into(),
2437 }),
2438 }
2439 }
2440}
2441impl From<crate::operation::delete_flow_definition::DeleteFlowDefinitionError> for Error {
2442 fn from(err: crate::operation::delete_flow_definition::DeleteFlowDefinitionError) -> Self {
2443 match err {
2444 crate::operation::delete_flow_definition::DeleteFlowDefinitionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2445 crate::operation::delete_flow_definition::DeleteFlowDefinitionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2446 crate::operation::delete_flow_definition::DeleteFlowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2447 }
2448 }
2449}
2450impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub::DeleteHubError, R>> for Error
2451where
2452 R: Send + Sync + std::fmt::Debug + 'static,
2453{
2454 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub::DeleteHubError, R>) -> Self {
2455 match err {
2456 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2457 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2458 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2459 source: err.into(),
2460 }),
2461 }
2462 }
2463}
2464impl From<crate::operation::delete_hub::DeleteHubError> for Error {
2465 fn from(err: crate::operation::delete_hub::DeleteHubError) -> Self {
2466 match err {
2467 crate::operation::delete_hub::DeleteHubError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2468 crate::operation::delete_hub::DeleteHubError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2469 crate::operation::delete_hub::DeleteHubError::Unhandled(inner) => Error::Unhandled(inner),
2470 }
2471 }
2472}
2473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content::DeleteHubContentError, R>> for Error
2474where
2475 R: Send + Sync + std::fmt::Debug + 'static,
2476{
2477 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content::DeleteHubContentError, R>) -> Self {
2478 match err {
2479 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2480 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2481 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2482 source: err.into(),
2483 }),
2484 }
2485 }
2486}
2487impl From<crate::operation::delete_hub_content::DeleteHubContentError> for Error {
2488 fn from(err: crate::operation::delete_hub_content::DeleteHubContentError) -> Self {
2489 match err {
2490 crate::operation::delete_hub_content::DeleteHubContentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2491 crate::operation::delete_hub_content::DeleteHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2492 crate::operation::delete_hub_content::DeleteHubContentError::Unhandled(inner) => Error::Unhandled(inner),
2493 }
2494 }
2495}
2496impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError, R>>
2497 for Error
2498where
2499 R: Send + Sync + std::fmt::Debug + 'static,
2500{
2501 fn from(
2502 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError, R>,
2503 ) -> Self {
2504 match err {
2505 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2506 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2507 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2508 source: err.into(),
2509 }),
2510 }
2511 }
2512}
2513impl From<crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError> for Error {
2514 fn from(err: crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError) -> Self {
2515 match err {
2516 crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2517 crate::operation::delete_hub_content_reference::DeleteHubContentReferenceError::Unhandled(inner) => Error::Unhandled(inner),
2518 }
2519 }
2520}
2521impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_human_task_ui::DeleteHumanTaskUiError, R>> for Error
2522where
2523 R: Send + Sync + std::fmt::Debug + 'static,
2524{
2525 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_human_task_ui::DeleteHumanTaskUiError, R>) -> Self {
2526 match err {
2527 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2528 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2529 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2530 source: err.into(),
2531 }),
2532 }
2533 }
2534}
2535impl From<crate::operation::delete_human_task_ui::DeleteHumanTaskUiError> for Error {
2536 fn from(err: crate::operation::delete_human_task_ui::DeleteHumanTaskUiError) -> Self {
2537 match err {
2538 crate::operation::delete_human_task_ui::DeleteHumanTaskUiError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2539 crate::operation::delete_human_task_ui::DeleteHumanTaskUiError::Unhandled(inner) => Error::Unhandled(inner),
2540 }
2541 }
2542}
2543impl<R>
2544 From<
2545 ::aws_smithy_runtime_api::client::result::SdkError<
2546 crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError,
2547 R,
2548 >,
2549 > for Error
2550where
2551 R: Send + Sync + std::fmt::Debug + 'static,
2552{
2553 fn from(
2554 err: ::aws_smithy_runtime_api::client::result::SdkError<
2555 crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError,
2556 R,
2557 >,
2558 ) -> Self {
2559 match err {
2560 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2561 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2562 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2563 source: err.into(),
2564 }),
2565 }
2566 }
2567}
2568impl From<crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError> for Error {
2569 fn from(err: crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError) -> Self {
2570 match err {
2571 crate::operation::delete_hyper_parameter_tuning_job::DeleteHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
2572 }
2573 }
2574}
2575impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image::DeleteImageError, R>> for Error
2576where
2577 R: Send + Sync + std::fmt::Debug + 'static,
2578{
2579 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image::DeleteImageError, R>) -> Self {
2580 match err {
2581 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2582 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2583 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2584 source: err.into(),
2585 }),
2586 }
2587 }
2588}
2589impl From<crate::operation::delete_image::DeleteImageError> for Error {
2590 fn from(err: crate::operation::delete_image::DeleteImageError) -> Self {
2591 match err {
2592 crate::operation::delete_image::DeleteImageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2593 crate::operation::delete_image::DeleteImageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2594 crate::operation::delete_image::DeleteImageError::Unhandled(inner) => Error::Unhandled(inner),
2595 }
2596 }
2597}
2598impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_version::DeleteImageVersionError, R>> for Error
2599where
2600 R: Send + Sync + std::fmt::Debug + 'static,
2601{
2602 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_version::DeleteImageVersionError, R>) -> Self {
2603 match err {
2604 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2605 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2606 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2607 source: err.into(),
2608 }),
2609 }
2610 }
2611}
2612impl From<crate::operation::delete_image_version::DeleteImageVersionError> for Error {
2613 fn from(err: crate::operation::delete_image_version::DeleteImageVersionError) -> Self {
2614 match err {
2615 crate::operation::delete_image_version::DeleteImageVersionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
2616 crate::operation::delete_image_version::DeleteImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2617 crate::operation::delete_image_version::DeleteImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
2618 }
2619 }
2620}
2621impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_component::DeleteInferenceComponentError, R>>
2622 for Error
2623where
2624 R: Send + Sync + std::fmt::Debug + 'static,
2625{
2626 fn from(
2627 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_component::DeleteInferenceComponentError, R>,
2628 ) -> Self {
2629 match err {
2630 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2631 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2632 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2633 source: err.into(),
2634 }),
2635 }
2636 }
2637}
2638impl From<crate::operation::delete_inference_component::DeleteInferenceComponentError> for Error {
2639 fn from(err: crate::operation::delete_inference_component::DeleteInferenceComponentError) -> Self {
2640 match err {
2641 crate::operation::delete_inference_component::DeleteInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
2642 }
2643 }
2644}
2645impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_experiment::DeleteInferenceExperimentError, R>>
2646 for Error
2647where
2648 R: Send + Sync + std::fmt::Debug + 'static,
2649{
2650 fn from(
2651 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_inference_experiment::DeleteInferenceExperimentError, R>,
2652 ) -> Self {
2653 match err {
2654 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2655 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2656 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2657 source: err.into(),
2658 }),
2659 }
2660 }
2661}
2662impl From<crate::operation::delete_inference_experiment::DeleteInferenceExperimentError> for Error {
2663 fn from(err: crate::operation::delete_inference_experiment::DeleteInferenceExperimentError) -> Self {
2664 match err {
2665 crate::operation::delete_inference_experiment::DeleteInferenceExperimentError::ConflictException(inner) => {
2666 Error::ConflictException(inner)
2667 }
2668 crate::operation::delete_inference_experiment::DeleteInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2669 crate::operation::delete_inference_experiment::DeleteInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
2670 }
2671 }
2672}
2673impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError, R>>
2674 for Error
2675where
2676 R: Send + Sync + std::fmt::Debug + 'static,
2677{
2678 fn from(
2679 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError, R>,
2680 ) -> Self {
2681 match err {
2682 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2683 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2684 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2685 source: err.into(),
2686 }),
2687 }
2688 }
2689}
2690impl From<crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError> for Error {
2691 fn from(err: crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError) -> Self {
2692 match err {
2693 crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError::ResourceNotFound(inner) => {
2694 Error::ResourceNotFound(inner)
2695 }
2696 crate::operation::delete_mlflow_tracking_server::DeleteMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
2697 }
2698 }
2699}
2700impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model::DeleteModelError, R>> for Error
2701where
2702 R: Send + Sync + std::fmt::Debug + 'static,
2703{
2704 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model::DeleteModelError, R>) -> Self {
2705 match err {
2706 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2707 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2708 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2709 source: err.into(),
2710 }),
2711 }
2712 }
2713}
2714impl From<crate::operation::delete_model::DeleteModelError> for Error {
2715 fn from(err: crate::operation::delete_model::DeleteModelError) -> Self {
2716 match err {
2717 crate::operation::delete_model::DeleteModelError::Unhandled(inner) => Error::Unhandled(inner),
2718 }
2719 }
2720}
2721impl<R>
2722 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError, R>>
2723 for Error
2724where
2725 R: Send + Sync + std::fmt::Debug + 'static,
2726{
2727 fn from(
2728 err: ::aws_smithy_runtime_api::client::result::SdkError<
2729 crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError,
2730 R,
2731 >,
2732 ) -> Self {
2733 match err {
2734 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2735 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2736 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2737 source: err.into(),
2738 }),
2739 }
2740 }
2741}
2742impl From<crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError> for Error {
2743 fn from(err: crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError) -> Self {
2744 match err {
2745 crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError::ResourceNotFound(inner) => {
2746 Error::ResourceNotFound(inner)
2747 }
2748 crate::operation::delete_model_bias_job_definition::DeleteModelBiasJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2749 }
2750 }
2751}
2752impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_card::DeleteModelCardError, R>> for Error
2753where
2754 R: Send + Sync + std::fmt::Debug + 'static,
2755{
2756 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_card::DeleteModelCardError, R>) -> Self {
2757 match err {
2758 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2759 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2760 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2761 source: err.into(),
2762 }),
2763 }
2764 }
2765}
2766impl From<crate::operation::delete_model_card::DeleteModelCardError> for Error {
2767 fn from(err: crate::operation::delete_model_card::DeleteModelCardError) -> Self {
2768 match err {
2769 crate::operation::delete_model_card::DeleteModelCardError::ConflictException(inner) => Error::ConflictException(inner),
2770 crate::operation::delete_model_card::DeleteModelCardError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2771 crate::operation::delete_model_card::DeleteModelCardError::Unhandled(inner) => Error::Unhandled(inner),
2772 }
2773 }
2774}
2775impl<R>
2776 From<
2777 ::aws_smithy_runtime_api::client::result::SdkError<
2778 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError,
2779 R,
2780 >,
2781 > for Error
2782where
2783 R: Send + Sync + std::fmt::Debug + 'static,
2784{
2785 fn from(
2786 err: ::aws_smithy_runtime_api::client::result::SdkError<
2787 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError,
2788 R,
2789 >,
2790 ) -> Self {
2791 match err {
2792 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2793 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2794 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2795 source: err.into(),
2796 }),
2797 }
2798 }
2799}
2800impl From<crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError> for Error {
2801 fn from(err: crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError) -> Self {
2802 match err {
2803 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError::ResourceNotFound(inner) => {
2804 Error::ResourceNotFound(inner)
2805 }
2806 crate::operation::delete_model_explainability_job_definition::DeleteModelExplainabilityJobDefinitionError::Unhandled(inner) => {
2807 Error::Unhandled(inner)
2808 }
2809 }
2810 }
2811}
2812impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package::DeleteModelPackageError, R>> for Error
2813where
2814 R: Send + Sync + std::fmt::Debug + 'static,
2815{
2816 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package::DeleteModelPackageError, R>) -> Self {
2817 match err {
2818 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2819 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2820 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2821 source: err.into(),
2822 }),
2823 }
2824 }
2825}
2826impl From<crate::operation::delete_model_package::DeleteModelPackageError> for Error {
2827 fn from(err: crate::operation::delete_model_package::DeleteModelPackageError) -> Self {
2828 match err {
2829 crate::operation::delete_model_package::DeleteModelPackageError::ConflictException(inner) => Error::ConflictException(inner),
2830 crate::operation::delete_model_package::DeleteModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
2831 }
2832 }
2833}
2834impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package_group::DeleteModelPackageGroupError, R>>
2835 for Error
2836where
2837 R: Send + Sync + std::fmt::Debug + 'static,
2838{
2839 fn from(
2840 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model_package_group::DeleteModelPackageGroupError, R>,
2841 ) -> 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_group::DeleteModelPackageGroupError> for Error {
2852 fn from(err: crate::operation::delete_model_package_group::DeleteModelPackageGroupError) -> Self {
2853 match err {
2854 crate::operation::delete_model_package_group::DeleteModelPackageGroupError::ConflictException(inner) => Error::ConflictException(inner),
2855 crate::operation::delete_model_package_group::DeleteModelPackageGroupError::Unhandled(inner) => Error::Unhandled(inner),
2856 }
2857 }
2858}
2859impl<R>
2860 From<
2861 ::aws_smithy_runtime_api::client::result::SdkError<
2862 crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError,
2863 R,
2864 >,
2865 > for Error
2866where
2867 R: Send + Sync + std::fmt::Debug + 'static,
2868{
2869 fn from(
2870 err: ::aws_smithy_runtime_api::client::result::SdkError<
2871 crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError,
2872 R,
2873 >,
2874 ) -> Self {
2875 match err {
2876 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2877 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2878 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2879 source: err.into(),
2880 }),
2881 }
2882 }
2883}
2884impl From<crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError> for Error {
2885 fn from(err: crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError) -> Self {
2886 match err {
2887 crate::operation::delete_model_package_group_policy::DeleteModelPackageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2888 }
2889 }
2890}
2891impl<R>
2892 From<
2893 ::aws_smithy_runtime_api::client::result::SdkError<
2894 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError,
2895 R,
2896 >,
2897 > for Error
2898where
2899 R: Send + Sync + std::fmt::Debug + 'static,
2900{
2901 fn from(
2902 err: ::aws_smithy_runtime_api::client::result::SdkError<
2903 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError,
2904 R,
2905 >,
2906 ) -> Self {
2907 match err {
2908 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2909 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2910 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2911 source: err.into(),
2912 }),
2913 }
2914 }
2915}
2916impl From<crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError> for Error {
2917 fn from(err: crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError) -> Self {
2918 match err {
2919 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError::ResourceNotFound(inner) => {
2920 Error::ResourceNotFound(inner)
2921 }
2922 crate::operation::delete_model_quality_job_definition::DeleteModelQualityJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2923 }
2924 }
2925}
2926impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError, R>>
2927 for Error
2928where
2929 R: Send + Sync + std::fmt::Debug + 'static,
2930{
2931 fn from(
2932 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError, R>,
2933 ) -> Self {
2934 match err {
2935 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2936 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2937 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2938 source: err.into(),
2939 }),
2940 }
2941 }
2942}
2943impl From<crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError> for Error {
2944 fn from(err: crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError) -> Self {
2945 match err {
2946 crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
2947 crate::operation::delete_monitoring_schedule::DeleteMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
2948 }
2949 }
2950}
2951impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notebook_instance::DeleteNotebookInstanceError, R>> for Error
2952where
2953 R: Send + Sync + std::fmt::Debug + 'static,
2954{
2955 fn from(
2956 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notebook_instance::DeleteNotebookInstanceError, R>,
2957 ) -> Self {
2958 match err {
2959 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2960 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2961 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2962 source: err.into(),
2963 }),
2964 }
2965 }
2966}
2967impl From<crate::operation::delete_notebook_instance::DeleteNotebookInstanceError> for Error {
2968 fn from(err: crate::operation::delete_notebook_instance::DeleteNotebookInstanceError) -> Self {
2969 match err {
2970 crate::operation::delete_notebook_instance::DeleteNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
2971 }
2972 }
2973}
2974impl<R>
2975 From<
2976 ::aws_smithy_runtime_api::client::result::SdkError<
2977 crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError,
2978 R,
2979 >,
2980 > for Error
2981where
2982 R: Send + Sync + std::fmt::Debug + 'static,
2983{
2984 fn from(
2985 err: ::aws_smithy_runtime_api::client::result::SdkError<
2986 crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError,
2987 R,
2988 >,
2989 ) -> Self {
2990 match err {
2991 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2992 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2993 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2994 source: err.into(),
2995 }),
2996 }
2997 }
2998}
2999impl From<crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError> for Error {
3000 fn from(err: crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError) -> Self {
3001 match err {
3002 crate::operation::delete_notebook_instance_lifecycle_config::DeleteNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
3003 Error::Unhandled(inner)
3004 }
3005 }
3006 }
3007}
3008impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_optimization_job::DeleteOptimizationJobError, R>> for Error
3009where
3010 R: Send + Sync + std::fmt::Debug + 'static,
3011{
3012 fn from(
3013 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_optimization_job::DeleteOptimizationJobError, R>,
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_optimization_job::DeleteOptimizationJobError> for Error {
3025 fn from(err: crate::operation::delete_optimization_job::DeleteOptimizationJobError) -> Self {
3026 match err {
3027 crate::operation::delete_optimization_job::DeleteOptimizationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3028 crate::operation::delete_optimization_job::DeleteOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
3029 }
3030 }
3031}
3032impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_partner_app::DeletePartnerAppError, R>> for Error
3033where
3034 R: Send + Sync + std::fmt::Debug + 'static,
3035{
3036 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_partner_app::DeletePartnerAppError, R>) -> Self {
3037 match err {
3038 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3039 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3040 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3041 source: err.into(),
3042 }),
3043 }
3044 }
3045}
3046impl From<crate::operation::delete_partner_app::DeletePartnerAppError> for Error {
3047 fn from(err: crate::operation::delete_partner_app::DeletePartnerAppError) -> Self {
3048 match err {
3049 crate::operation::delete_partner_app::DeletePartnerAppError::ConflictException(inner) => Error::ConflictException(inner),
3050 crate::operation::delete_partner_app::DeletePartnerAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3051 crate::operation::delete_partner_app::DeletePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
3052 }
3053 }
3054}
3055impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pipeline::DeletePipelineError, R>> for Error
3056where
3057 R: Send + Sync + std::fmt::Debug + 'static,
3058{
3059 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pipeline::DeletePipelineError, R>) -> Self {
3060 match err {
3061 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3062 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3063 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3064 source: err.into(),
3065 }),
3066 }
3067 }
3068}
3069impl From<crate::operation::delete_pipeline::DeletePipelineError> for Error {
3070 fn from(err: crate::operation::delete_pipeline::DeletePipelineError) -> Self {
3071 match err {
3072 crate::operation::delete_pipeline::DeletePipelineError::ConflictException(inner) => Error::ConflictException(inner),
3073 crate::operation::delete_pipeline::DeletePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3074 crate::operation::delete_pipeline::DeletePipelineError::Unhandled(inner) => Error::Unhandled(inner),
3075 }
3076 }
3077}
3078impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>> for Error
3079where
3080 R: Send + Sync + std::fmt::Debug + 'static,
3081{
3082 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>) -> Self {
3083 match err {
3084 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3085 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3086 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3087 source: err.into(),
3088 }),
3089 }
3090 }
3091}
3092impl From<crate::operation::delete_project::DeleteProjectError> for Error {
3093 fn from(err: crate::operation::delete_project::DeleteProjectError) -> Self {
3094 match err {
3095 crate::operation::delete_project::DeleteProjectError::ConflictException(inner) => Error::ConflictException(inner),
3096 crate::operation::delete_project::DeleteProjectError::Unhandled(inner) => Error::Unhandled(inner),
3097 }
3098 }
3099}
3100impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_space::DeleteSpaceError, R>> for Error
3101where
3102 R: Send + Sync + std::fmt::Debug + 'static,
3103{
3104 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_space::DeleteSpaceError, R>) -> Self {
3105 match err {
3106 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3107 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3108 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3109 source: err.into(),
3110 }),
3111 }
3112 }
3113}
3114impl From<crate::operation::delete_space::DeleteSpaceError> for Error {
3115 fn from(err: crate::operation::delete_space::DeleteSpaceError) -> Self {
3116 match err {
3117 crate::operation::delete_space::DeleteSpaceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3118 crate::operation::delete_space::DeleteSpaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3119 crate::operation::delete_space::DeleteSpaceError::Unhandled(inner) => Error::Unhandled(inner),
3120 }
3121 }
3122}
3123impl<R>
3124 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError, R>>
3125 for Error
3126where
3127 R: Send + Sync + std::fmt::Debug + 'static,
3128{
3129 fn from(
3130 err: ::aws_smithy_runtime_api::client::result::SdkError<
3131 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError,
3132 R,
3133 >,
3134 ) -> Self {
3135 match err {
3136 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3137 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3138 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3139 source: err.into(),
3140 }),
3141 }
3142 }
3143}
3144impl From<crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError> for Error {
3145 fn from(err: crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError) -> Self {
3146 match err {
3147 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3148 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError::ResourceNotFound(inner) => {
3149 Error::ResourceNotFound(inner)
3150 }
3151 crate::operation::delete_studio_lifecycle_config::DeleteStudioLifecycleConfigError::Unhandled(inner) => Error::Unhandled(inner),
3152 }
3153 }
3154}
3155impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>> for Error
3156where
3157 R: Send + Sync + std::fmt::Debug + 'static,
3158{
3159 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>) -> Self {
3160 match err {
3161 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3162 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3163 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3164 source: err.into(),
3165 }),
3166 }
3167 }
3168}
3169impl From<crate::operation::delete_tags::DeleteTagsError> for Error {
3170 fn from(err: crate::operation::delete_tags::DeleteTagsError) -> Self {
3171 match err {
3172 crate::operation::delete_tags::DeleteTagsError::Unhandled(inner) => Error::Unhandled(inner),
3173 }
3174 }
3175}
3176impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial::DeleteTrialError, R>> for Error
3177where
3178 R: Send + Sync + std::fmt::Debug + 'static,
3179{
3180 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial::DeleteTrialError, R>) -> Self {
3181 match err {
3182 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3183 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3184 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3185 source: err.into(),
3186 }),
3187 }
3188 }
3189}
3190impl From<crate::operation::delete_trial::DeleteTrialError> for Error {
3191 fn from(err: crate::operation::delete_trial::DeleteTrialError) -> Self {
3192 match err {
3193 crate::operation::delete_trial::DeleteTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3194 crate::operation::delete_trial::DeleteTrialError::Unhandled(inner) => Error::Unhandled(inner),
3195 }
3196 }
3197}
3198impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial_component::DeleteTrialComponentError, R>> for Error
3199where
3200 R: Send + Sync + std::fmt::Debug + 'static,
3201{
3202 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trial_component::DeleteTrialComponentError, R>) -> Self {
3203 match err {
3204 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3205 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3206 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3207 source: err.into(),
3208 }),
3209 }
3210 }
3211}
3212impl From<crate::operation::delete_trial_component::DeleteTrialComponentError> for Error {
3213 fn from(err: crate::operation::delete_trial_component::DeleteTrialComponentError) -> Self {
3214 match err {
3215 crate::operation::delete_trial_component::DeleteTrialComponentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3216 crate::operation::delete_trial_component::DeleteTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
3217 }
3218 }
3219}
3220impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_profile::DeleteUserProfileError, R>> for Error
3221where
3222 R: Send + Sync + std::fmt::Debug + 'static,
3223{
3224 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user_profile::DeleteUserProfileError, R>) -> Self {
3225 match err {
3226 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3227 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3228 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3229 source: err.into(),
3230 }),
3231 }
3232 }
3233}
3234impl From<crate::operation::delete_user_profile::DeleteUserProfileError> for Error {
3235 fn from(err: crate::operation::delete_user_profile::DeleteUserProfileError) -> Self {
3236 match err {
3237 crate::operation::delete_user_profile::DeleteUserProfileError::ResourceInUse(inner) => Error::ResourceInUse(inner),
3238 crate::operation::delete_user_profile::DeleteUserProfileError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3239 crate::operation::delete_user_profile::DeleteUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
3240 }
3241 }
3242}
3243impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workforce::DeleteWorkforceError, R>> for Error
3244where
3245 R: Send + Sync + std::fmt::Debug + 'static,
3246{
3247 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workforce::DeleteWorkforceError, R>) -> Self {
3248 match err {
3249 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3250 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3251 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3252 source: err.into(),
3253 }),
3254 }
3255 }
3256}
3257impl From<crate::operation::delete_workforce::DeleteWorkforceError> for Error {
3258 fn from(err: crate::operation::delete_workforce::DeleteWorkforceError) -> Self {
3259 match err {
3260 crate::operation::delete_workforce::DeleteWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
3261 }
3262 }
3263}
3264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workteam::DeleteWorkteamError, R>> for Error
3265where
3266 R: Send + Sync + std::fmt::Debug + 'static,
3267{
3268 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workteam::DeleteWorkteamError, R>) -> Self {
3269 match err {
3270 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3271 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3272 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3273 source: err.into(),
3274 }),
3275 }
3276 }
3277}
3278impl From<crate::operation::delete_workteam::DeleteWorkteamError> for Error {
3279 fn from(err: crate::operation::delete_workteam::DeleteWorkteamError) -> Self {
3280 match err {
3281 crate::operation::delete_workteam::DeleteWorkteamError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
3282 crate::operation::delete_workteam::DeleteWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
3283 }
3284 }
3285}
3286impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_devices::DeregisterDevicesError, R>> for Error
3287where
3288 R: Send + Sync + std::fmt::Debug + 'static,
3289{
3290 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_devices::DeregisterDevicesError, R>) -> Self {
3291 match err {
3292 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3293 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3294 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3295 source: err.into(),
3296 }),
3297 }
3298 }
3299}
3300impl From<crate::operation::deregister_devices::DeregisterDevicesError> for Error {
3301 fn from(err: crate::operation::deregister_devices::DeregisterDevicesError) -> Self {
3302 match err {
3303 crate::operation::deregister_devices::DeregisterDevicesError::Unhandled(inner) => Error::Unhandled(inner),
3304 }
3305 }
3306}
3307impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_action::DescribeActionError, R>> for Error
3308where
3309 R: Send + Sync + std::fmt::Debug + 'static,
3310{
3311 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_action::DescribeActionError, R>) -> Self {
3312 match err {
3313 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3314 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3315 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3316 source: err.into(),
3317 }),
3318 }
3319 }
3320}
3321impl From<crate::operation::describe_action::DescribeActionError> for Error {
3322 fn from(err: crate::operation::describe_action::DescribeActionError) -> Self {
3323 match err {
3324 crate::operation::describe_action::DescribeActionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3325 crate::operation::describe_action::DescribeActionError::Unhandled(inner) => Error::Unhandled(inner),
3326 }
3327 }
3328}
3329impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_algorithm::DescribeAlgorithmError, R>> for Error
3330where
3331 R: Send + Sync + std::fmt::Debug + 'static,
3332{
3333 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_algorithm::DescribeAlgorithmError, R>) -> Self {
3334 match err {
3335 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3336 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3337 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3338 source: err.into(),
3339 }),
3340 }
3341 }
3342}
3343impl From<crate::operation::describe_algorithm::DescribeAlgorithmError> for Error {
3344 fn from(err: crate::operation::describe_algorithm::DescribeAlgorithmError) -> Self {
3345 match err {
3346 crate::operation::describe_algorithm::DescribeAlgorithmError::Unhandled(inner) => Error::Unhandled(inner),
3347 }
3348 }
3349}
3350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app::DescribeAppError, R>> for Error
3351where
3352 R: Send + Sync + std::fmt::Debug + 'static,
3353{
3354 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app::DescribeAppError, R>) -> Self {
3355 match err {
3356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3359 source: err.into(),
3360 }),
3361 }
3362 }
3363}
3364impl From<crate::operation::describe_app::DescribeAppError> for Error {
3365 fn from(err: crate::operation::describe_app::DescribeAppError) -> Self {
3366 match err {
3367 crate::operation::describe_app::DescribeAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3368 crate::operation::describe_app::DescribeAppError::Unhandled(inner) => Error::Unhandled(inner),
3369 }
3370 }
3371}
3372impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_image_config::DescribeAppImageConfigError, R>>
3373 for Error
3374where
3375 R: Send + Sync + std::fmt::Debug + 'static,
3376{
3377 fn from(
3378 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_image_config::DescribeAppImageConfigError, R>,
3379 ) -> Self {
3380 match err {
3381 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3382 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3383 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3384 source: err.into(),
3385 }),
3386 }
3387 }
3388}
3389impl From<crate::operation::describe_app_image_config::DescribeAppImageConfigError> for Error {
3390 fn from(err: crate::operation::describe_app_image_config::DescribeAppImageConfigError) -> Self {
3391 match err {
3392 crate::operation::describe_app_image_config::DescribeAppImageConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3393 crate::operation::describe_app_image_config::DescribeAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
3394 }
3395 }
3396}
3397impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_artifact::DescribeArtifactError, R>> for Error
3398where
3399 R: Send + Sync + std::fmt::Debug + 'static,
3400{
3401 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_artifact::DescribeArtifactError, R>) -> Self {
3402 match err {
3403 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3404 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3405 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3406 source: err.into(),
3407 }),
3408 }
3409 }
3410}
3411impl From<crate::operation::describe_artifact::DescribeArtifactError> for Error {
3412 fn from(err: crate::operation::describe_artifact::DescribeArtifactError) -> Self {
3413 match err {
3414 crate::operation::describe_artifact::DescribeArtifactError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3415 crate::operation::describe_artifact::DescribeArtifactError::Unhandled(inner) => Error::Unhandled(inner),
3416 }
3417 }
3418}
3419impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job::DescribeAutoMLJobError, R>> for Error
3420where
3421 R: Send + Sync + std::fmt::Debug + 'static,
3422{
3423 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job::DescribeAutoMLJobError, R>) -> Self {
3424 match err {
3425 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3426 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3427 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3428 source: err.into(),
3429 }),
3430 }
3431 }
3432}
3433impl From<crate::operation::describe_auto_ml_job::DescribeAutoMLJobError> for Error {
3434 fn from(err: crate::operation::describe_auto_ml_job::DescribeAutoMLJobError) -> Self {
3435 match err {
3436 crate::operation::describe_auto_ml_job::DescribeAutoMLJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3437 crate::operation::describe_auto_ml_job::DescribeAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
3438 }
3439 }
3440}
3441impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error, R>> for Error
3442where
3443 R: Send + Sync + std::fmt::Debug + 'static,
3444{
3445 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error, R>) -> Self {
3446 match err {
3447 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3448 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3449 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3450 source: err.into(),
3451 }),
3452 }
3453 }
3454}
3455impl From<crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error> for Error {
3456 fn from(err: crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error) -> Self {
3457 match err {
3458 crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3459 crate::operation::describe_auto_ml_job_v2::DescribeAutoMLJobV2Error::Unhandled(inner) => Error::Unhandled(inner),
3460 }
3461 }
3462}
3463impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster::DescribeClusterError, R>> for Error
3464where
3465 R: Send + Sync + std::fmt::Debug + 'static,
3466{
3467 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster::DescribeClusterError, R>) -> Self {
3468 match err {
3469 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3470 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3471 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3472 source: err.into(),
3473 }),
3474 }
3475 }
3476}
3477impl From<crate::operation::describe_cluster::DescribeClusterError> for Error {
3478 fn from(err: crate::operation::describe_cluster::DescribeClusterError) -> Self {
3479 match err {
3480 crate::operation::describe_cluster::DescribeClusterError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3481 crate::operation::describe_cluster::DescribeClusterError::Unhandled(inner) => Error::Unhandled(inner),
3482 }
3483 }
3484}
3485impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_node::DescribeClusterNodeError, R>> for Error
3486where
3487 R: Send + Sync + std::fmt::Debug + 'static,
3488{
3489 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_node::DescribeClusterNodeError, R>) -> Self {
3490 match err {
3491 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3492 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3493 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3494 source: err.into(),
3495 }),
3496 }
3497 }
3498}
3499impl From<crate::operation::describe_cluster_node::DescribeClusterNodeError> for Error {
3500 fn from(err: crate::operation::describe_cluster_node::DescribeClusterNodeError) -> Self {
3501 match err {
3502 crate::operation::describe_cluster_node::DescribeClusterNodeError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3503 crate::operation::describe_cluster_node::DescribeClusterNodeError::Unhandled(inner) => Error::Unhandled(inner),
3504 }
3505 }
3506}
3507impl<R>
3508 From<
3509 ::aws_smithy_runtime_api::client::result::SdkError<
3510 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError,
3511 R,
3512 >,
3513 > for Error
3514where
3515 R: Send + Sync + std::fmt::Debug + 'static,
3516{
3517 fn from(
3518 err: ::aws_smithy_runtime_api::client::result::SdkError<
3519 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError,
3520 R,
3521 >,
3522 ) -> Self {
3523 match err {
3524 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3525 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3526 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3527 source: err.into(),
3528 }),
3529 }
3530 }
3531}
3532impl From<crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError> for Error {
3533 fn from(err: crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError) -> Self {
3534 match err {
3535 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError::ResourceNotFound(inner) => {
3536 Error::ResourceNotFound(inner)
3537 }
3538 crate::operation::describe_cluster_scheduler_config::DescribeClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
3539 }
3540 }
3541}
3542impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_code_repository::DescribeCodeRepositoryError, R>> for Error
3543where
3544 R: Send + Sync + std::fmt::Debug + 'static,
3545{
3546 fn from(
3547 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_code_repository::DescribeCodeRepositoryError, R>,
3548 ) -> Self {
3549 match err {
3550 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3551 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3552 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3553 source: err.into(),
3554 }),
3555 }
3556 }
3557}
3558impl From<crate::operation::describe_code_repository::DescribeCodeRepositoryError> for Error {
3559 fn from(err: crate::operation::describe_code_repository::DescribeCodeRepositoryError) -> Self {
3560 match err {
3561 crate::operation::describe_code_repository::DescribeCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
3562 }
3563 }
3564}
3565impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compilation_job::DescribeCompilationJobError, R>> for Error
3566where
3567 R: Send + Sync + std::fmt::Debug + 'static,
3568{
3569 fn from(
3570 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compilation_job::DescribeCompilationJobError, R>,
3571 ) -> Self {
3572 match err {
3573 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3574 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3575 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3576 source: err.into(),
3577 }),
3578 }
3579 }
3580}
3581impl From<crate::operation::describe_compilation_job::DescribeCompilationJobError> for Error {
3582 fn from(err: crate::operation::describe_compilation_job::DescribeCompilationJobError) -> Self {
3583 match err {
3584 crate::operation::describe_compilation_job::DescribeCompilationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3585 crate::operation::describe_compilation_job::DescribeCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
3586 }
3587 }
3588}
3589impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compute_quota::DescribeComputeQuotaError, R>> for Error
3590where
3591 R: Send + Sync + std::fmt::Debug + 'static,
3592{
3593 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_compute_quota::DescribeComputeQuotaError, R>) -> Self {
3594 match err {
3595 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3596 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3597 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3598 source: err.into(),
3599 }),
3600 }
3601 }
3602}
3603impl From<crate::operation::describe_compute_quota::DescribeComputeQuotaError> for Error {
3604 fn from(err: crate::operation::describe_compute_quota::DescribeComputeQuotaError) -> Self {
3605 match err {
3606 crate::operation::describe_compute_quota::DescribeComputeQuotaError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3607 crate::operation::describe_compute_quota::DescribeComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
3608 }
3609 }
3610}
3611impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_context::DescribeContextError, R>> for Error
3612where
3613 R: Send + Sync + std::fmt::Debug + 'static,
3614{
3615 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_context::DescribeContextError, R>) -> 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_context::DescribeContextError> for Error {
3626 fn from(err: crate::operation::describe_context::DescribeContextError) -> Self {
3627 match err {
3628 crate::operation::describe_context::DescribeContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3629 crate::operation::describe_context::DescribeContextError::Unhandled(inner) => Error::Unhandled(inner),
3630 }
3631 }
3632}
3633impl<R>
3634 From<
3635 ::aws_smithy_runtime_api::client::result::SdkError<
3636 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError,
3637 R,
3638 >,
3639 > for Error
3640where
3641 R: Send + Sync + std::fmt::Debug + 'static,
3642{
3643 fn from(
3644 err: ::aws_smithy_runtime_api::client::result::SdkError<
3645 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError,
3646 R,
3647 >,
3648 ) -> Self {
3649 match err {
3650 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3651 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3652 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3653 source: err.into(),
3654 }),
3655 }
3656 }
3657}
3658impl From<crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError> for Error {
3659 fn from(err: crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError) -> Self {
3660 match err {
3661 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError::ResourceNotFound(inner) => {
3662 Error::ResourceNotFound(inner)
3663 }
3664 crate::operation::describe_data_quality_job_definition::DescribeDataQualityJobDefinitionError::Unhandled(inner) => {
3665 Error::Unhandled(inner)
3666 }
3667 }
3668 }
3669}
3670impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device::DescribeDeviceError, R>> for Error
3671where
3672 R: Send + Sync + std::fmt::Debug + 'static,
3673{
3674 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device::DescribeDeviceError, R>) -> Self {
3675 match err {
3676 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3677 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3678 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3679 source: err.into(),
3680 }),
3681 }
3682 }
3683}
3684impl From<crate::operation::describe_device::DescribeDeviceError> for Error {
3685 fn from(err: crate::operation::describe_device::DescribeDeviceError) -> Self {
3686 match err {
3687 crate::operation::describe_device::DescribeDeviceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3688 crate::operation::describe_device::DescribeDeviceError::Unhandled(inner) => Error::Unhandled(inner),
3689 }
3690 }
3691}
3692impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device_fleet::DescribeDeviceFleetError, R>> for Error
3693where
3694 R: Send + Sync + std::fmt::Debug + 'static,
3695{
3696 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_device_fleet::DescribeDeviceFleetError, R>) -> Self {
3697 match err {
3698 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3699 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3700 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3701 source: err.into(),
3702 }),
3703 }
3704 }
3705}
3706impl From<crate::operation::describe_device_fleet::DescribeDeviceFleetError> for Error {
3707 fn from(err: crate::operation::describe_device_fleet::DescribeDeviceFleetError) -> Self {
3708 match err {
3709 crate::operation::describe_device_fleet::DescribeDeviceFleetError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3710 crate::operation::describe_device_fleet::DescribeDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
3711 }
3712 }
3713}
3714impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_domain::DescribeDomainError, R>> for Error
3715where
3716 R: Send + Sync + std::fmt::Debug + 'static,
3717{
3718 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_domain::DescribeDomainError, R>) -> Self {
3719 match err {
3720 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3721 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3722 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3723 source: err.into(),
3724 }),
3725 }
3726 }
3727}
3728impl From<crate::operation::describe_domain::DescribeDomainError> for Error {
3729 fn from(err: crate::operation::describe_domain::DescribeDomainError) -> Self {
3730 match err {
3731 crate::operation::describe_domain::DescribeDomainError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3732 crate::operation::describe_domain::DescribeDomainError::Unhandled(inner) => Error::Unhandled(inner),
3733 }
3734 }
3735}
3736impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError, R>>
3737 for Error
3738where
3739 R: Send + Sync + std::fmt::Debug + 'static,
3740{
3741 fn from(
3742 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError, R>,
3743 ) -> Self {
3744 match err {
3745 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3746 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3747 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3748 source: err.into(),
3749 }),
3750 }
3751 }
3752}
3753impl From<crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError> for Error {
3754 fn from(err: crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError) -> Self {
3755 match err {
3756 crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError::ResourceNotFound(inner) => {
3757 Error::ResourceNotFound(inner)
3758 }
3759 crate::operation::describe_edge_deployment_plan::DescribeEdgeDeploymentPlanError::Unhandled(inner) => Error::Unhandled(inner),
3760 }
3761 }
3762}
3763impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError, R>>
3764 for Error
3765where
3766 R: Send + Sync + std::fmt::Debug + 'static,
3767{
3768 fn from(
3769 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError, R>,
3770 ) -> Self {
3771 match err {
3772 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3773 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3774 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3775 source: err.into(),
3776 }),
3777 }
3778 }
3779}
3780impl From<crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError> for Error {
3781 fn from(err: crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError) -> Self {
3782 match err {
3783 crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3784 crate::operation::describe_edge_packaging_job::DescribeEdgePackagingJobError::Unhandled(inner) => Error::Unhandled(inner),
3785 }
3786 }
3787}
3788impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint::DescribeEndpointError, R>> for Error
3789where
3790 R: Send + Sync + std::fmt::Debug + 'static,
3791{
3792 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint::DescribeEndpointError, R>) -> Self {
3793 match err {
3794 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3795 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3796 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3797 source: err.into(),
3798 }),
3799 }
3800 }
3801}
3802impl From<crate::operation::describe_endpoint::DescribeEndpointError> for Error {
3803 fn from(err: crate::operation::describe_endpoint::DescribeEndpointError) -> Self {
3804 match err {
3805 crate::operation::describe_endpoint::DescribeEndpointError::Unhandled(inner) => Error::Unhandled(inner),
3806 }
3807 }
3808}
3809impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint_config::DescribeEndpointConfigError, R>> for Error
3810where
3811 R: Send + Sync + std::fmt::Debug + 'static,
3812{
3813 fn from(
3814 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint_config::DescribeEndpointConfigError, R>,
3815 ) -> Self {
3816 match err {
3817 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3818 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3819 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3820 source: err.into(),
3821 }),
3822 }
3823 }
3824}
3825impl From<crate::operation::describe_endpoint_config::DescribeEndpointConfigError> for Error {
3826 fn from(err: crate::operation::describe_endpoint_config::DescribeEndpointConfigError) -> Self {
3827 match err {
3828 crate::operation::describe_endpoint_config::DescribeEndpointConfigError::Unhandled(inner) => Error::Unhandled(inner),
3829 }
3830 }
3831}
3832impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_experiment::DescribeExperimentError, R>> for Error
3833where
3834 R: Send + Sync + std::fmt::Debug + 'static,
3835{
3836 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_experiment::DescribeExperimentError, R>) -> Self {
3837 match err {
3838 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3839 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3840 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3841 source: err.into(),
3842 }),
3843 }
3844 }
3845}
3846impl From<crate::operation::describe_experiment::DescribeExperimentError> for Error {
3847 fn from(err: crate::operation::describe_experiment::DescribeExperimentError) -> Self {
3848 match err {
3849 crate::operation::describe_experiment::DescribeExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3850 crate::operation::describe_experiment::DescribeExperimentError::Unhandled(inner) => Error::Unhandled(inner),
3851 }
3852 }
3853}
3854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_group::DescribeFeatureGroupError, R>> for Error
3855where
3856 R: Send + Sync + std::fmt::Debug + 'static,
3857{
3858 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_group::DescribeFeatureGroupError, R>) -> Self {
3859 match err {
3860 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3861 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3862 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3863 source: err.into(),
3864 }),
3865 }
3866 }
3867}
3868impl From<crate::operation::describe_feature_group::DescribeFeatureGroupError> for Error {
3869 fn from(err: crate::operation::describe_feature_group::DescribeFeatureGroupError) -> Self {
3870 match err {
3871 crate::operation::describe_feature_group::DescribeFeatureGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3872 crate::operation::describe_feature_group::DescribeFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
3873 }
3874 }
3875}
3876impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_metadata::DescribeFeatureMetadataError, R>>
3877 for Error
3878where
3879 R: Send + Sync + std::fmt::Debug + 'static,
3880{
3881 fn from(
3882 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feature_metadata::DescribeFeatureMetadataError, R>,
3883 ) -> Self {
3884 match err {
3885 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3886 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3887 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3888 source: err.into(),
3889 }),
3890 }
3891 }
3892}
3893impl From<crate::operation::describe_feature_metadata::DescribeFeatureMetadataError> for Error {
3894 fn from(err: crate::operation::describe_feature_metadata::DescribeFeatureMetadataError) -> Self {
3895 match err {
3896 crate::operation::describe_feature_metadata::DescribeFeatureMetadataError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3897 crate::operation::describe_feature_metadata::DescribeFeatureMetadataError::Unhandled(inner) => Error::Unhandled(inner),
3898 }
3899 }
3900}
3901impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_definition::DescribeFlowDefinitionError, R>> for Error
3902where
3903 R: Send + Sync + std::fmt::Debug + 'static,
3904{
3905 fn from(
3906 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_flow_definition::DescribeFlowDefinitionError, R>,
3907 ) -> Self {
3908 match err {
3909 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3910 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3911 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3912 source: err.into(),
3913 }),
3914 }
3915 }
3916}
3917impl From<crate::operation::describe_flow_definition::DescribeFlowDefinitionError> for Error {
3918 fn from(err: crate::operation::describe_flow_definition::DescribeFlowDefinitionError) -> Self {
3919 match err {
3920 crate::operation::describe_flow_definition::DescribeFlowDefinitionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3921 crate::operation::describe_flow_definition::DescribeFlowDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
3922 }
3923 }
3924}
3925impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub::DescribeHubError, 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_hub::DescribeHubError, 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_hub::DescribeHubError> for Error {
3940 fn from(err: crate::operation::describe_hub::DescribeHubError) -> Self {
3941 match err {
3942 crate::operation::describe_hub::DescribeHubError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3943 crate::operation::describe_hub::DescribeHubError::Unhandled(inner) => Error::Unhandled(inner),
3944 }
3945 }
3946}
3947impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hub_content::DescribeHubContentError, 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_hub_content::DescribeHubContentError, 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_hub_content::DescribeHubContentError> for Error {
3962 fn from(err: crate::operation::describe_hub_content::DescribeHubContentError) -> Self {
3963 match err {
3964 crate::operation::describe_hub_content::DescribeHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3965 crate::operation::describe_hub_content::DescribeHubContentError::Unhandled(inner) => Error::Unhandled(inner),
3966 }
3967 }
3968}
3969impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_human_task_ui::DescribeHumanTaskUiError, R>> for Error
3970where
3971 R: Send + Sync + std::fmt::Debug + 'static,
3972{
3973 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_human_task_ui::DescribeHumanTaskUiError, R>) -> Self {
3974 match err {
3975 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3976 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3977 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3978 source: err.into(),
3979 }),
3980 }
3981 }
3982}
3983impl From<crate::operation::describe_human_task_ui::DescribeHumanTaskUiError> for Error {
3984 fn from(err: crate::operation::describe_human_task_ui::DescribeHumanTaskUiError) -> Self {
3985 match err {
3986 crate::operation::describe_human_task_ui::DescribeHumanTaskUiError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
3987 crate::operation::describe_human_task_ui::DescribeHumanTaskUiError::Unhandled(inner) => Error::Unhandled(inner),
3988 }
3989 }
3990}
3991impl<R>
3992 From<
3993 ::aws_smithy_runtime_api::client::result::SdkError<
3994 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError,
3995 R,
3996 >,
3997 > for Error
3998where
3999 R: Send + Sync + std::fmt::Debug + 'static,
4000{
4001 fn from(
4002 err: ::aws_smithy_runtime_api::client::result::SdkError<
4003 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError,
4004 R,
4005 >,
4006 ) -> Self {
4007 match err {
4008 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4009 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4010 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4011 source: err.into(),
4012 }),
4013 }
4014 }
4015}
4016impl From<crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError> for Error {
4017 fn from(err: crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError) -> Self {
4018 match err {
4019 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError::ResourceNotFound(inner) => {
4020 Error::ResourceNotFound(inner)
4021 }
4022 crate::operation::describe_hyper_parameter_tuning_job::DescribeHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
4023 }
4024 }
4025}
4026impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image::DescribeImageError, R>> for Error
4027where
4028 R: Send + Sync + std::fmt::Debug + 'static,
4029{
4030 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image::DescribeImageError, R>) -> Self {
4031 match err {
4032 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4033 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4034 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4035 source: err.into(),
4036 }),
4037 }
4038 }
4039}
4040impl From<crate::operation::describe_image::DescribeImageError> for Error {
4041 fn from(err: crate::operation::describe_image::DescribeImageError) -> Self {
4042 match err {
4043 crate::operation::describe_image::DescribeImageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4044 crate::operation::describe_image::DescribeImageError::Unhandled(inner) => Error::Unhandled(inner),
4045 }
4046 }
4047}
4048impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_version::DescribeImageVersionError, R>> for Error
4049where
4050 R: Send + Sync + std::fmt::Debug + 'static,
4051{
4052 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_version::DescribeImageVersionError, R>) -> Self {
4053 match err {
4054 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4055 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4056 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4057 source: err.into(),
4058 }),
4059 }
4060 }
4061}
4062impl From<crate::operation::describe_image_version::DescribeImageVersionError> for Error {
4063 fn from(err: crate::operation::describe_image_version::DescribeImageVersionError) -> Self {
4064 match err {
4065 crate::operation::describe_image_version::DescribeImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4066 crate::operation::describe_image_version::DescribeImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
4067 }
4068 }
4069}
4070impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_component::DescribeInferenceComponentError, R>>
4071 for Error
4072where
4073 R: Send + Sync + std::fmt::Debug + 'static,
4074{
4075 fn from(
4076 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_component::DescribeInferenceComponentError, R>,
4077 ) -> Self {
4078 match err {
4079 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4080 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4081 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4082 source: err.into(),
4083 }),
4084 }
4085 }
4086}
4087impl From<crate::operation::describe_inference_component::DescribeInferenceComponentError> for Error {
4088 fn from(err: crate::operation::describe_inference_component::DescribeInferenceComponentError) -> Self {
4089 match err {
4090 crate::operation::describe_inference_component::DescribeInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
4091 }
4092 }
4093}
4094impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_experiment::DescribeInferenceExperimentError, R>>
4095 for Error
4096where
4097 R: Send + Sync + std::fmt::Debug + 'static,
4098{
4099 fn from(
4100 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inference_experiment::DescribeInferenceExperimentError, R>,
4101 ) -> Self {
4102 match err {
4103 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4104 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4105 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4106 source: err.into(),
4107 }),
4108 }
4109 }
4110}
4111impl From<crate::operation::describe_inference_experiment::DescribeInferenceExperimentError> for Error {
4112 fn from(err: crate::operation::describe_inference_experiment::DescribeInferenceExperimentError) -> Self {
4113 match err {
4114 crate::operation::describe_inference_experiment::DescribeInferenceExperimentError::ResourceNotFound(inner) => {
4115 Error::ResourceNotFound(inner)
4116 }
4117 crate::operation::describe_inference_experiment::DescribeInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
4118 }
4119 }
4120}
4121impl<R>
4122 From<
4123 ::aws_smithy_runtime_api::client::result::SdkError<
4124 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError,
4125 R,
4126 >,
4127 > for Error
4128where
4129 R: Send + Sync + std::fmt::Debug + 'static,
4130{
4131 fn from(
4132 err: ::aws_smithy_runtime_api::client::result::SdkError<
4133 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError,
4134 R,
4135 >,
4136 ) -> Self {
4137 match err {
4138 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4139 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4140 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4141 source: err.into(),
4142 }),
4143 }
4144 }
4145}
4146impl From<crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError> for Error {
4147 fn from(err: crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError) -> Self {
4148 match err {
4149 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError::ResourceNotFound(inner) => {
4150 Error::ResourceNotFound(inner)
4151 }
4152 crate::operation::describe_inference_recommendations_job::DescribeInferenceRecommendationsJobError::Unhandled(inner) => {
4153 Error::Unhandled(inner)
4154 }
4155 }
4156 }
4157}
4158impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_labeling_job::DescribeLabelingJobError, R>> for Error
4159where
4160 R: Send + Sync + std::fmt::Debug + 'static,
4161{
4162 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_labeling_job::DescribeLabelingJobError, R>) -> Self {
4163 match err {
4164 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4165 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4166 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4167 source: err.into(),
4168 }),
4169 }
4170 }
4171}
4172impl From<crate::operation::describe_labeling_job::DescribeLabelingJobError> for Error {
4173 fn from(err: crate::operation::describe_labeling_job::DescribeLabelingJobError) -> Self {
4174 match err {
4175 crate::operation::describe_labeling_job::DescribeLabelingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4176 crate::operation::describe_labeling_job::DescribeLabelingJobError::Unhandled(inner) => Error::Unhandled(inner),
4177 }
4178 }
4179}
4180impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lineage_group::DescribeLineageGroupError, R>> for Error
4181where
4182 R: Send + Sync + std::fmt::Debug + 'static,
4183{
4184 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lineage_group::DescribeLineageGroupError, R>) -> Self {
4185 match err {
4186 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4187 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4188 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4189 source: err.into(),
4190 }),
4191 }
4192 }
4193}
4194impl From<crate::operation::describe_lineage_group::DescribeLineageGroupError> for Error {
4195 fn from(err: crate::operation::describe_lineage_group::DescribeLineageGroupError) -> Self {
4196 match err {
4197 crate::operation::describe_lineage_group::DescribeLineageGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4198 crate::operation::describe_lineage_group::DescribeLineageGroupError::Unhandled(inner) => Error::Unhandled(inner),
4199 }
4200 }
4201}
4202impl<R>
4203 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError, R>>
4204 for Error
4205where
4206 R: Send + Sync + std::fmt::Debug + 'static,
4207{
4208 fn from(
4209 err: ::aws_smithy_runtime_api::client::result::SdkError<
4210 crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError,
4211 R,
4212 >,
4213 ) -> Self {
4214 match err {
4215 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4216 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4217 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4218 source: err.into(),
4219 }),
4220 }
4221 }
4222}
4223impl From<crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError> for Error {
4224 fn from(err: crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError) -> Self {
4225 match err {
4226 crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError::ResourceNotFound(inner) => {
4227 Error::ResourceNotFound(inner)
4228 }
4229 crate::operation::describe_mlflow_tracking_server::DescribeMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
4230 }
4231 }
4232}
4233impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model::DescribeModelError, R>> for Error
4234where
4235 R: Send + Sync + std::fmt::Debug + 'static,
4236{
4237 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model::DescribeModelError, R>) -> Self {
4238 match err {
4239 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4240 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4241 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4242 source: err.into(),
4243 }),
4244 }
4245 }
4246}
4247impl From<crate::operation::describe_model::DescribeModelError> for Error {
4248 fn from(err: crate::operation::describe_model::DescribeModelError) -> Self {
4249 match err {
4250 crate::operation::describe_model::DescribeModelError::Unhandled(inner) => Error::Unhandled(inner),
4251 }
4252 }
4253}
4254impl<R>
4255 From<
4256 ::aws_smithy_runtime_api::client::result::SdkError<
4257 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError,
4258 R,
4259 >,
4260 > for Error
4261where
4262 R: Send + Sync + std::fmt::Debug + 'static,
4263{
4264 fn from(
4265 err: ::aws_smithy_runtime_api::client::result::SdkError<
4266 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError,
4267 R,
4268 >,
4269 ) -> Self {
4270 match err {
4271 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4272 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4273 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4274 source: err.into(),
4275 }),
4276 }
4277 }
4278}
4279impl From<crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError> for Error {
4280 fn from(err: crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError) -> Self {
4281 match err {
4282 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError::ResourceNotFound(inner) => {
4283 Error::ResourceNotFound(inner)
4284 }
4285 crate::operation::describe_model_bias_job_definition::DescribeModelBiasJobDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
4286 }
4287 }
4288}
4289impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card::DescribeModelCardError, R>> for Error
4290where
4291 R: Send + Sync + std::fmt::Debug + 'static,
4292{
4293 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card::DescribeModelCardError, R>) -> Self {
4294 match err {
4295 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4296 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4297 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4298 source: err.into(),
4299 }),
4300 }
4301 }
4302}
4303impl From<crate::operation::describe_model_card::DescribeModelCardError> for Error {
4304 fn from(err: crate::operation::describe_model_card::DescribeModelCardError) -> Self {
4305 match err {
4306 crate::operation::describe_model_card::DescribeModelCardError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4307 crate::operation::describe_model_card::DescribeModelCardError::Unhandled(inner) => Error::Unhandled(inner),
4308 }
4309 }
4310}
4311impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError, R>>
4312 for Error
4313where
4314 R: Send + Sync + std::fmt::Debug + 'static,
4315{
4316 fn from(
4317 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError, R>,
4318 ) -> Self {
4319 match err {
4320 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4321 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4322 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4323 source: err.into(),
4324 }),
4325 }
4326 }
4327}
4328impl From<crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError> for Error {
4329 fn from(err: crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError) -> Self {
4330 match err {
4331 crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError::ResourceNotFound(inner) => {
4332 Error::ResourceNotFound(inner)
4333 }
4334 crate::operation::describe_model_card_export_job::DescribeModelCardExportJobError::Unhandled(inner) => Error::Unhandled(inner),
4335 }
4336 }
4337}
4338impl<R>
4339 From<
4340 ::aws_smithy_runtime_api::client::result::SdkError<
4341 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError,
4342 R,
4343 >,
4344 > for Error
4345where
4346 R: Send + Sync + std::fmt::Debug + 'static,
4347{
4348 fn from(
4349 err: ::aws_smithy_runtime_api::client::result::SdkError<
4350 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError,
4351 R,
4352 >,
4353 ) -> Self {
4354 match err {
4355 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4356 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4357 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4358 source: err.into(),
4359 }),
4360 }
4361 }
4362}
4363impl From<crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError> for Error {
4364 fn from(err: crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError) -> Self {
4365 match err {
4366 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError::ResourceNotFound(
4367 inner,
4368 ) => Error::ResourceNotFound(inner),
4369 crate::operation::describe_model_explainability_job_definition::DescribeModelExplainabilityJobDefinitionError::Unhandled(inner) => {
4370 Error::Unhandled(inner)
4371 }
4372 }
4373 }
4374}
4375impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package::DescribeModelPackageError, R>> for Error
4376where
4377 R: Send + Sync + std::fmt::Debug + 'static,
4378{
4379 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package::DescribeModelPackageError, R>) -> Self {
4380 match err {
4381 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4382 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4383 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4384 source: err.into(),
4385 }),
4386 }
4387 }
4388}
4389impl From<crate::operation::describe_model_package::DescribeModelPackageError> for Error {
4390 fn from(err: crate::operation::describe_model_package::DescribeModelPackageError) -> Self {
4391 match err {
4392 crate::operation::describe_model_package::DescribeModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
4393 }
4394 }
4395}
4396impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package_group::DescribeModelPackageGroupError, R>>
4397 for Error
4398where
4399 R: Send + Sync + std::fmt::Debug + 'static,
4400{
4401 fn from(
4402 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_model_package_group::DescribeModelPackageGroupError, R>,
4403 ) -> Self {
4404 match err {
4405 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4406 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4407 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4408 source: err.into(),
4409 }),
4410 }
4411 }
4412}
4413impl From<crate::operation::describe_model_package_group::DescribeModelPackageGroupError> for Error {
4414 fn from(err: crate::operation::describe_model_package_group::DescribeModelPackageGroupError) -> Self {
4415 match err {
4416 crate::operation::describe_model_package_group::DescribeModelPackageGroupError::Unhandled(inner) => Error::Unhandled(inner),
4417 }
4418 }
4419}
4420impl<R>
4421 From<
4422 ::aws_smithy_runtime_api::client::result::SdkError<
4423 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError,
4424 R,
4425 >,
4426 > for Error
4427where
4428 R: Send + Sync + std::fmt::Debug + 'static,
4429{
4430 fn from(
4431 err: ::aws_smithy_runtime_api::client::result::SdkError<
4432 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError,
4433 R,
4434 >,
4435 ) -> Self {
4436 match err {
4437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4440 source: err.into(),
4441 }),
4442 }
4443 }
4444}
4445impl From<crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError> for Error {
4446 fn from(err: crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError) -> Self {
4447 match err {
4448 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError::ResourceNotFound(inner) => {
4449 Error::ResourceNotFound(inner)
4450 }
4451 crate::operation::describe_model_quality_job_definition::DescribeModelQualityJobDefinitionError::Unhandled(inner) => {
4452 Error::Unhandled(inner)
4453 }
4454 }
4455 }
4456}
4457impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError, R>>
4458 for Error
4459where
4460 R: Send + Sync + std::fmt::Debug + 'static,
4461{
4462 fn from(
4463 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError, R>,
4464 ) -> Self {
4465 match err {
4466 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4467 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4468 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4469 source: err.into(),
4470 }),
4471 }
4472 }
4473}
4474impl From<crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError> for Error {
4475 fn from(err: crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError) -> Self {
4476 match err {
4477 crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError::ResourceNotFound(inner) => {
4478 Error::ResourceNotFound(inner)
4479 }
4480 crate::operation::describe_monitoring_schedule::DescribeMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
4481 }
4482 }
4483}
4484impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_notebook_instance::DescribeNotebookInstanceError, R>>
4485 for Error
4486where
4487 R: Send + Sync + std::fmt::Debug + 'static,
4488{
4489 fn from(
4490 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_notebook_instance::DescribeNotebookInstanceError, R>,
4491 ) -> Self {
4492 match err {
4493 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4494 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4495 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4496 source: err.into(),
4497 }),
4498 }
4499 }
4500}
4501impl From<crate::operation::describe_notebook_instance::DescribeNotebookInstanceError> for Error {
4502 fn from(err: crate::operation::describe_notebook_instance::DescribeNotebookInstanceError) -> Self {
4503 match err {
4504 crate::operation::describe_notebook_instance::DescribeNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
4505 }
4506 }
4507}
4508impl<R>
4509 From<
4510 ::aws_smithy_runtime_api::client::result::SdkError<
4511 crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError,
4512 R,
4513 >,
4514 > for Error
4515where
4516 R: Send + Sync + std::fmt::Debug + 'static,
4517{
4518 fn from(
4519 err: ::aws_smithy_runtime_api::client::result::SdkError<
4520 crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError,
4521 R,
4522 >,
4523 ) -> Self {
4524 match err {
4525 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4526 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4527 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4528 source: err.into(),
4529 }),
4530 }
4531 }
4532}
4533impl From<crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError> for Error {
4534 fn from(err: crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError) -> Self {
4535 match err {
4536 crate::operation::describe_notebook_instance_lifecycle_config::DescribeNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
4537 Error::Unhandled(inner)
4538 }
4539 }
4540 }
4541}
4542impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_optimization_job::DescribeOptimizationJobError, R>>
4543 for Error
4544where
4545 R: Send + Sync + std::fmt::Debug + 'static,
4546{
4547 fn from(
4548 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_optimization_job::DescribeOptimizationJobError, R>,
4549 ) -> Self {
4550 match err {
4551 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4552 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4553 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4554 source: err.into(),
4555 }),
4556 }
4557 }
4558}
4559impl From<crate::operation::describe_optimization_job::DescribeOptimizationJobError> for Error {
4560 fn from(err: crate::operation::describe_optimization_job::DescribeOptimizationJobError) -> Self {
4561 match err {
4562 crate::operation::describe_optimization_job::DescribeOptimizationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4563 crate::operation::describe_optimization_job::DescribeOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
4564 }
4565 }
4566}
4567impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_partner_app::DescribePartnerAppError, R>> for Error
4568where
4569 R: Send + Sync + std::fmt::Debug + 'static,
4570{
4571 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_partner_app::DescribePartnerAppError, R>) -> Self {
4572 match err {
4573 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4574 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4575 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4576 source: err.into(),
4577 }),
4578 }
4579 }
4580}
4581impl From<crate::operation::describe_partner_app::DescribePartnerAppError> for Error {
4582 fn from(err: crate::operation::describe_partner_app::DescribePartnerAppError) -> Self {
4583 match err {
4584 crate::operation::describe_partner_app::DescribePartnerAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4585 crate::operation::describe_partner_app::DescribePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
4586 }
4587 }
4588}
4589impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline::DescribePipelineError, R>> for Error
4590where
4591 R: Send + Sync + std::fmt::Debug + 'static,
4592{
4593 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline::DescribePipelineError, R>) -> Self {
4594 match err {
4595 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4596 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4597 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4598 source: err.into(),
4599 }),
4600 }
4601 }
4602}
4603impl From<crate::operation::describe_pipeline::DescribePipelineError> for Error {
4604 fn from(err: crate::operation::describe_pipeline::DescribePipelineError) -> Self {
4605 match err {
4606 crate::operation::describe_pipeline::DescribePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4607 crate::operation::describe_pipeline::DescribePipelineError::Unhandled(inner) => Error::Unhandled(inner),
4608 }
4609 }
4610}
4611impl<R>
4612 From<
4613 ::aws_smithy_runtime_api::client::result::SdkError<
4614 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError,
4615 R,
4616 >,
4617 > for Error
4618where
4619 R: Send + Sync + std::fmt::Debug + 'static,
4620{
4621 fn from(
4622 err: ::aws_smithy_runtime_api::client::result::SdkError<
4623 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError,
4624 R,
4625 >,
4626 ) -> Self {
4627 match err {
4628 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4629 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4630 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4631 source: err.into(),
4632 }),
4633 }
4634 }
4635}
4636impl From<crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError> for Error {
4637 fn from(err: crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError) -> Self {
4638 match err {
4639 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError::ResourceNotFound(inner) => {
4640 Error::ResourceNotFound(inner)
4641 }
4642 crate::operation::describe_pipeline_definition_for_execution::DescribePipelineDefinitionForExecutionError::Unhandled(inner) => {
4643 Error::Unhandled(inner)
4644 }
4645 }
4646 }
4647}
4648impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline_execution::DescribePipelineExecutionError, R>>
4649 for Error
4650where
4651 R: Send + Sync + std::fmt::Debug + 'static,
4652{
4653 fn from(
4654 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_pipeline_execution::DescribePipelineExecutionError, R>,
4655 ) -> Self {
4656 match err {
4657 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4658 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4659 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4660 source: err.into(),
4661 }),
4662 }
4663 }
4664}
4665impl From<crate::operation::describe_pipeline_execution::DescribePipelineExecutionError> for Error {
4666 fn from(err: crate::operation::describe_pipeline_execution::DescribePipelineExecutionError) -> Self {
4667 match err {
4668 crate::operation::describe_pipeline_execution::DescribePipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4669 crate::operation::describe_pipeline_execution::DescribePipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
4670 }
4671 }
4672}
4673impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_processing_job::DescribeProcessingJobError, R>> for Error
4674where
4675 R: Send + Sync + std::fmt::Debug + 'static,
4676{
4677 fn from(
4678 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_processing_job::DescribeProcessingJobError, R>,
4679 ) -> Self {
4680 match err {
4681 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4682 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4683 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4684 source: err.into(),
4685 }),
4686 }
4687 }
4688}
4689impl From<crate::operation::describe_processing_job::DescribeProcessingJobError> for Error {
4690 fn from(err: crate::operation::describe_processing_job::DescribeProcessingJobError) -> Self {
4691 match err {
4692 crate::operation::describe_processing_job::DescribeProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4693 crate::operation::describe_processing_job::DescribeProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
4694 }
4695 }
4696}
4697impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_project::DescribeProjectError, R>> for Error
4698where
4699 R: Send + Sync + std::fmt::Debug + 'static,
4700{
4701 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_project::DescribeProjectError, R>) -> Self {
4702 match err {
4703 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4704 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4705 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4706 source: err.into(),
4707 }),
4708 }
4709 }
4710}
4711impl From<crate::operation::describe_project::DescribeProjectError> for Error {
4712 fn from(err: crate::operation::describe_project::DescribeProjectError) -> Self {
4713 match err {
4714 crate::operation::describe_project::DescribeProjectError::Unhandled(inner) => Error::Unhandled(inner),
4715 }
4716 }
4717}
4718impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_space::DescribeSpaceError, R>> for Error
4719where
4720 R: Send + Sync + std::fmt::Debug + 'static,
4721{
4722 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_space::DescribeSpaceError, R>) -> Self {
4723 match err {
4724 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4725 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4726 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4727 source: err.into(),
4728 }),
4729 }
4730 }
4731}
4732impl From<crate::operation::describe_space::DescribeSpaceError> for Error {
4733 fn from(err: crate::operation::describe_space::DescribeSpaceError) -> Self {
4734 match err {
4735 crate::operation::describe_space::DescribeSpaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4736 crate::operation::describe_space::DescribeSpaceError::Unhandled(inner) => Error::Unhandled(inner),
4737 }
4738 }
4739}
4740impl<R>
4741 From<
4742 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError, R>,
4743 > for Error
4744where
4745 R: Send + Sync + std::fmt::Debug + 'static,
4746{
4747 fn from(
4748 err: ::aws_smithy_runtime_api::client::result::SdkError<
4749 crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError,
4750 R,
4751 >,
4752 ) -> Self {
4753 match err {
4754 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4755 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4756 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4757 source: err.into(),
4758 }),
4759 }
4760 }
4761}
4762impl From<crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError> for Error {
4763 fn from(err: crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError) -> Self {
4764 match err {
4765 crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError::ResourceNotFound(inner) => {
4766 Error::ResourceNotFound(inner)
4767 }
4768 crate::operation::describe_studio_lifecycle_config::DescribeStudioLifecycleConfigError::Unhandled(inner) => Error::Unhandled(inner),
4769 }
4770 }
4771}
4772impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError, R>>
4773 for Error
4774where
4775 R: Send + Sync + std::fmt::Debug + 'static,
4776{
4777 fn from(
4778 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError, R>,
4779 ) -> Self {
4780 match err {
4781 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4782 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4783 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4784 source: err.into(),
4785 }),
4786 }
4787 }
4788}
4789impl From<crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError> for Error {
4790 fn from(err: crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError) -> Self {
4791 match err {
4792 crate::operation::describe_subscribed_workteam::DescribeSubscribedWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
4793 }
4794 }
4795}
4796impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_job::DescribeTrainingJobError, R>> for Error
4797where
4798 R: Send + Sync + std::fmt::Debug + 'static,
4799{
4800 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_job::DescribeTrainingJobError, R>) -> Self {
4801 match err {
4802 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4803 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4804 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4805 source: err.into(),
4806 }),
4807 }
4808 }
4809}
4810impl From<crate::operation::describe_training_job::DescribeTrainingJobError> for Error {
4811 fn from(err: crate::operation::describe_training_job::DescribeTrainingJobError) -> Self {
4812 match err {
4813 crate::operation::describe_training_job::DescribeTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4814 crate::operation::describe_training_job::DescribeTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
4815 }
4816 }
4817}
4818impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_plan::DescribeTrainingPlanError, R>> for Error
4819where
4820 R: Send + Sync + std::fmt::Debug + 'static,
4821{
4822 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_training_plan::DescribeTrainingPlanError, R>) -> Self {
4823 match err {
4824 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4825 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4826 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4827 source: err.into(),
4828 }),
4829 }
4830 }
4831}
4832impl From<crate::operation::describe_training_plan::DescribeTrainingPlanError> for Error {
4833 fn from(err: crate::operation::describe_training_plan::DescribeTrainingPlanError) -> Self {
4834 match err {
4835 crate::operation::describe_training_plan::DescribeTrainingPlanError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4836 crate::operation::describe_training_plan::DescribeTrainingPlanError::Unhandled(inner) => Error::Unhandled(inner),
4837 }
4838 }
4839}
4840impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transform_job::DescribeTransformJobError, R>> for Error
4841where
4842 R: Send + Sync + std::fmt::Debug + 'static,
4843{
4844 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_transform_job::DescribeTransformJobError, R>) -> Self {
4845 match err {
4846 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4847 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4848 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4849 source: err.into(),
4850 }),
4851 }
4852 }
4853}
4854impl From<crate::operation::describe_transform_job::DescribeTransformJobError> for Error {
4855 fn from(err: crate::operation::describe_transform_job::DescribeTransformJobError) -> Self {
4856 match err {
4857 crate::operation::describe_transform_job::DescribeTransformJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4858 crate::operation::describe_transform_job::DescribeTransformJobError::Unhandled(inner) => Error::Unhandled(inner),
4859 }
4860 }
4861}
4862impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial::DescribeTrialError, R>> for Error
4863where
4864 R: Send + Sync + std::fmt::Debug + 'static,
4865{
4866 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial::DescribeTrialError, R>) -> Self {
4867 match err {
4868 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4869 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4870 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4871 source: err.into(),
4872 }),
4873 }
4874 }
4875}
4876impl From<crate::operation::describe_trial::DescribeTrialError> for Error {
4877 fn from(err: crate::operation::describe_trial::DescribeTrialError) -> Self {
4878 match err {
4879 crate::operation::describe_trial::DescribeTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4880 crate::operation::describe_trial::DescribeTrialError::Unhandled(inner) => Error::Unhandled(inner),
4881 }
4882 }
4883}
4884impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial_component::DescribeTrialComponentError, R>> for Error
4885where
4886 R: Send + Sync + std::fmt::Debug + 'static,
4887{
4888 fn from(
4889 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trial_component::DescribeTrialComponentError, R>,
4890 ) -> Self {
4891 match err {
4892 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4893 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4894 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4895 source: err.into(),
4896 }),
4897 }
4898 }
4899}
4900impl From<crate::operation::describe_trial_component::DescribeTrialComponentError> for Error {
4901 fn from(err: crate::operation::describe_trial_component::DescribeTrialComponentError) -> Self {
4902 match err {
4903 crate::operation::describe_trial_component::DescribeTrialComponentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4904 crate::operation::describe_trial_component::DescribeTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
4905 }
4906 }
4907}
4908impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_profile::DescribeUserProfileError, R>> for Error
4909where
4910 R: Send + Sync + std::fmt::Debug + 'static,
4911{
4912 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_profile::DescribeUserProfileError, R>) -> Self {
4913 match err {
4914 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4915 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4916 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4917 source: err.into(),
4918 }),
4919 }
4920 }
4921}
4922impl From<crate::operation::describe_user_profile::DescribeUserProfileError> for Error {
4923 fn from(err: crate::operation::describe_user_profile::DescribeUserProfileError) -> Self {
4924 match err {
4925 crate::operation::describe_user_profile::DescribeUserProfileError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
4926 crate::operation::describe_user_profile::DescribeUserProfileError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4927 crate::operation::describe_user_profile::DescribeUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
4928 }
4929 }
4930}
4931impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workforce::DescribeWorkforceError, R>> for Error
4932where
4933 R: Send + Sync + std::fmt::Debug + 'static,
4934{
4935 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workforce::DescribeWorkforceError, R>) -> Self {
4936 match err {
4937 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4938 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4939 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4940 source: err.into(),
4941 }),
4942 }
4943 }
4944}
4945impl From<crate::operation::describe_workforce::DescribeWorkforceError> for Error {
4946 fn from(err: crate::operation::describe_workforce::DescribeWorkforceError) -> Self {
4947 match err {
4948 crate::operation::describe_workforce::DescribeWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
4949 }
4950 }
4951}
4952impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workteam::DescribeWorkteamError, R>> for Error
4953where
4954 R: Send + Sync + std::fmt::Debug + 'static,
4955{
4956 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_workteam::DescribeWorkteamError, R>) -> Self {
4957 match err {
4958 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4959 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4960 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4961 source: err.into(),
4962 }),
4963 }
4964 }
4965}
4966impl From<crate::operation::describe_workteam::DescribeWorkteamError> for Error {
4967 fn from(err: crate::operation::describe_workteam::DescribeWorkteamError) -> Self {
4968 match err {
4969 crate::operation::describe_workteam::DescribeWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
4970 }
4971 }
4972}
4973impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError, R>>
4974 for Error
4975where
4976 R: Send + Sync + std::fmt::Debug + 'static,
4977{
4978 fn from(
4979 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError, R>,
4980 ) -> Self {
4981 match err {
4982 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4983 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4984 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4985 source: err.into(),
4986 }),
4987 }
4988 }
4989}
4990impl From<crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError> for Error {
4991 fn from(err: crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError) -> Self {
4992 match err {
4993 crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
4994 crate::operation::detach_cluster_node_volume::DetachClusterNodeVolumeError::Unhandled(inner) => Error::Unhandled(inner),
4995 }
4996 }
4997}
4998impl<R>
4999 From<
5000 ::aws_smithy_runtime_api::client::result::SdkError<
5001 crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError,
5002 R,
5003 >,
5004 > for Error
5005where
5006 R: Send + Sync + std::fmt::Debug + 'static,
5007{
5008 fn from(
5009 err: ::aws_smithy_runtime_api::client::result::SdkError<
5010 crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError,
5011 R,
5012 >,
5013 ) -> Self {
5014 match err {
5015 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5016 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5017 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5018 source: err.into(),
5019 }),
5020 }
5021 }
5022}
5023impl From<crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError> for Error {
5024 fn from(err: crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError) -> Self {
5025 match err {
5026 crate::operation::disable_sagemaker_servicecatalog_portfolio::DisableSagemakerServicecatalogPortfolioError::Unhandled(inner) => {
5027 Error::Unhandled(inner)
5028 }
5029 }
5030 }
5031}
5032impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trial_component::DisassociateTrialComponentError, R>>
5033 for Error
5034where
5035 R: Send + Sync + std::fmt::Debug + 'static,
5036{
5037 fn from(
5038 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_trial_component::DisassociateTrialComponentError, R>,
5039 ) -> Self {
5040 match err {
5041 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5042 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5043 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5044 source: err.into(),
5045 }),
5046 }
5047 }
5048}
5049impl From<crate::operation::disassociate_trial_component::DisassociateTrialComponentError> for Error {
5050 fn from(err: crate::operation::disassociate_trial_component::DisassociateTrialComponentError) -> Self {
5051 match err {
5052 crate::operation::disassociate_trial_component::DisassociateTrialComponentError::ResourceNotFound(inner) => {
5053 Error::ResourceNotFound(inner)
5054 }
5055 crate::operation::disassociate_trial_component::DisassociateTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
5056 }
5057 }
5058}
5059impl<R>
5060 From<
5061 ::aws_smithy_runtime_api::client::result::SdkError<
5062 crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError,
5063 R,
5064 >,
5065 > for Error
5066where
5067 R: Send + Sync + std::fmt::Debug + 'static,
5068{
5069 fn from(
5070 err: ::aws_smithy_runtime_api::client::result::SdkError<
5071 crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError,
5072 R,
5073 >,
5074 ) -> 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::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError> for Error {
5085 fn from(err: crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError) -> Self {
5086 match err {
5087 crate::operation::enable_sagemaker_servicecatalog_portfolio::EnableSagemakerServicecatalogPortfolioError::Unhandled(inner) => {
5088 Error::Unhandled(inner)
5089 }
5090 }
5091 }
5092}
5093impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_fleet_report::GetDeviceFleetReportError, R>> for Error
5094where
5095 R: Send + Sync + std::fmt::Debug + 'static,
5096{
5097 fn from(
5098 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_fleet_report::GetDeviceFleetReportError, R>,
5099 ) -> Self {
5100 match err {
5101 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5102 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5103 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5104 source: err.into(),
5105 }),
5106 }
5107 }
5108}
5109impl From<crate::operation::get_device_fleet_report::GetDeviceFleetReportError> for Error {
5110 fn from(err: crate::operation::get_device_fleet_report::GetDeviceFleetReportError) -> Self {
5111 match err {
5112 crate::operation::get_device_fleet_report::GetDeviceFleetReportError::Unhandled(inner) => Error::Unhandled(inner),
5113 }
5114 }
5115}
5116impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError, R>> for Error
5117where
5118 R: Send + Sync + std::fmt::Debug + 'static,
5119{
5120 fn from(
5121 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError, R>,
5122 ) -> Self {
5123 match err {
5124 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5125 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5126 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5127 source: err.into(),
5128 }),
5129 }
5130 }
5131}
5132impl From<crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError> for Error {
5133 fn from(err: crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError) -> Self {
5134 match err {
5135 crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5136 crate::operation::get_lineage_group_policy::GetLineageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
5137 }
5138 }
5139}
5140impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError, R>>
5141 for Error
5142where
5143 R: Send + Sync + std::fmt::Debug + 'static,
5144{
5145 fn from(
5146 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError, R>,
5147 ) -> Self {
5148 match err {
5149 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5150 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5151 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5152 source: err.into(),
5153 }),
5154 }
5155 }
5156}
5157impl From<crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError> for Error {
5158 fn from(err: crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError) -> Self {
5159 match err {
5160 crate::operation::get_model_package_group_policy::GetModelPackageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
5161 }
5162 }
5163}
5164impl<R>
5165 From<
5166 ::aws_smithy_runtime_api::client::result::SdkError<
5167 crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError,
5168 R,
5169 >,
5170 > for Error
5171where
5172 R: Send + Sync + std::fmt::Debug + 'static,
5173{
5174 fn from(
5175 err: ::aws_smithy_runtime_api::client::result::SdkError<
5176 crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError,
5177 R,
5178 >,
5179 ) -> Self {
5180 match err {
5181 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5182 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5183 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5184 source: err.into(),
5185 }),
5186 }
5187 }
5188}
5189impl From<crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError> for Error {
5190 fn from(err: crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError) -> Self {
5191 match err {
5192 crate::operation::get_sagemaker_servicecatalog_portfolio_status::GetSagemakerServicecatalogPortfolioStatusError::Unhandled(inner) => {
5193 Error::Unhandled(inner)
5194 }
5195 }
5196 }
5197}
5198impl<R>
5199 From<
5200 ::aws_smithy_runtime_api::client::result::SdkError<
5201 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError,
5202 R,
5203 >,
5204 > for Error
5205where
5206 R: Send + Sync + std::fmt::Debug + 'static,
5207{
5208 fn from(
5209 err: ::aws_smithy_runtime_api::client::result::SdkError<
5210 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError,
5211 R,
5212 >,
5213 ) -> Self {
5214 match err {
5215 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5216 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5217 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5218 source: err.into(),
5219 }),
5220 }
5221 }
5222}
5223impl From<crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError> for Error {
5224 fn from(err: crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError) -> Self {
5225 match err {
5226 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError::ResourceNotFound(inner) => {
5227 Error::ResourceNotFound(inner)
5228 }
5229 crate::operation::get_scaling_configuration_recommendation::GetScalingConfigurationRecommendationError::Unhandled(inner) => {
5230 Error::Unhandled(inner)
5231 }
5232 }
5233 }
5234}
5235impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_search_suggestions::GetSearchSuggestionsError, R>> for Error
5236where
5237 R: Send + Sync + std::fmt::Debug + 'static,
5238{
5239 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_search_suggestions::GetSearchSuggestionsError, R>) -> Self {
5240 match err {
5241 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5242 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5243 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5244 source: err.into(),
5245 }),
5246 }
5247 }
5248}
5249impl From<crate::operation::get_search_suggestions::GetSearchSuggestionsError> for Error {
5250 fn from(err: crate::operation::get_search_suggestions::GetSearchSuggestionsError) -> Self {
5251 match err {
5252 crate::operation::get_search_suggestions::GetSearchSuggestionsError::Unhandled(inner) => Error::Unhandled(inner),
5253 }
5254 }
5255}
5256impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_hub_content::ImportHubContentError, R>> for Error
5257where
5258 R: Send + Sync + std::fmt::Debug + 'static,
5259{
5260 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_hub_content::ImportHubContentError, R>) -> Self {
5261 match err {
5262 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5263 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5264 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5265 source: err.into(),
5266 }),
5267 }
5268 }
5269}
5270impl From<crate::operation::import_hub_content::ImportHubContentError> for Error {
5271 fn from(err: crate::operation::import_hub_content::ImportHubContentError) -> Self {
5272 match err {
5273 crate::operation::import_hub_content::ImportHubContentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
5274 crate::operation::import_hub_content::ImportHubContentError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
5275 crate::operation::import_hub_content::ImportHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5276 crate::operation::import_hub_content::ImportHubContentError::Unhandled(inner) => Error::Unhandled(inner),
5277 }
5278 }
5279}
5280impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_actions::ListActionsError, R>> for Error
5281where
5282 R: Send + Sync + std::fmt::Debug + 'static,
5283{
5284 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_actions::ListActionsError, R>) -> Self {
5285 match err {
5286 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5287 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5288 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5289 source: err.into(),
5290 }),
5291 }
5292 }
5293}
5294impl From<crate::operation::list_actions::ListActionsError> for Error {
5295 fn from(err: crate::operation::list_actions::ListActionsError) -> Self {
5296 match err {
5297 crate::operation::list_actions::ListActionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5298 crate::operation::list_actions::ListActionsError::Unhandled(inner) => Error::Unhandled(inner),
5299 }
5300 }
5301}
5302impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_algorithms::ListAlgorithmsError, R>> for Error
5303where
5304 R: Send + Sync + std::fmt::Debug + 'static,
5305{
5306 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_algorithms::ListAlgorithmsError, R>) -> Self {
5307 match err {
5308 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5309 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5310 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5311 source: err.into(),
5312 }),
5313 }
5314 }
5315}
5316impl From<crate::operation::list_algorithms::ListAlgorithmsError> for Error {
5317 fn from(err: crate::operation::list_algorithms::ListAlgorithmsError) -> Self {
5318 match err {
5319 crate::operation::list_algorithms::ListAlgorithmsError::Unhandled(inner) => Error::Unhandled(inner),
5320 }
5321 }
5322}
5323impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aliases::ListAliasesError, R>> for Error
5324where
5325 R: Send + Sync + std::fmt::Debug + 'static,
5326{
5327 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aliases::ListAliasesError, R>) -> Self {
5328 match err {
5329 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5330 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5331 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5332 source: err.into(),
5333 }),
5334 }
5335 }
5336}
5337impl From<crate::operation::list_aliases::ListAliasesError> for Error {
5338 fn from(err: crate::operation::list_aliases::ListAliasesError) -> Self {
5339 match err {
5340 crate::operation::list_aliases::ListAliasesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5341 crate::operation::list_aliases::ListAliasesError::Unhandled(inner) => Error::Unhandled(inner),
5342 }
5343 }
5344}
5345impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_app_image_configs::ListAppImageConfigsError, R>> for Error
5346where
5347 R: Send + Sync + std::fmt::Debug + 'static,
5348{
5349 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_app_image_configs::ListAppImageConfigsError, R>) -> Self {
5350 match err {
5351 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5352 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5353 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5354 source: err.into(),
5355 }),
5356 }
5357 }
5358}
5359impl From<crate::operation::list_app_image_configs::ListAppImageConfigsError> for Error {
5360 fn from(err: crate::operation::list_app_image_configs::ListAppImageConfigsError) -> Self {
5361 match err {
5362 crate::operation::list_app_image_configs::ListAppImageConfigsError::Unhandled(inner) => Error::Unhandled(inner),
5363 }
5364 }
5365}
5366impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_apps::ListAppsError, R>> for Error
5367where
5368 R: Send + Sync + std::fmt::Debug + 'static,
5369{
5370 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_apps::ListAppsError, R>) -> Self {
5371 match err {
5372 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5373 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5374 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5375 source: err.into(),
5376 }),
5377 }
5378 }
5379}
5380impl From<crate::operation::list_apps::ListAppsError> for Error {
5381 fn from(err: crate::operation::list_apps::ListAppsError) -> Self {
5382 match err {
5383 crate::operation::list_apps::ListAppsError::Unhandled(inner) => Error::Unhandled(inner),
5384 }
5385 }
5386}
5387impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_artifacts::ListArtifactsError, R>> for Error
5388where
5389 R: Send + Sync + std::fmt::Debug + 'static,
5390{
5391 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_artifacts::ListArtifactsError, R>) -> Self {
5392 match err {
5393 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5394 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5395 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5396 source: err.into(),
5397 }),
5398 }
5399 }
5400}
5401impl From<crate::operation::list_artifacts::ListArtifactsError> for Error {
5402 fn from(err: crate::operation::list_artifacts::ListArtifactsError) -> Self {
5403 match err {
5404 crate::operation::list_artifacts::ListArtifactsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5405 crate::operation::list_artifacts::ListArtifactsError::Unhandled(inner) => Error::Unhandled(inner),
5406 }
5407 }
5408}
5409impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associations::ListAssociationsError, R>> for Error
5410where
5411 R: Send + Sync + std::fmt::Debug + 'static,
5412{
5413 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associations::ListAssociationsError, R>) -> Self {
5414 match err {
5415 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5416 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5417 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5418 source: err.into(),
5419 }),
5420 }
5421 }
5422}
5423impl From<crate::operation::list_associations::ListAssociationsError> for Error {
5424 fn from(err: crate::operation::list_associations::ListAssociationsError) -> Self {
5425 match err {
5426 crate::operation::list_associations::ListAssociationsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5427 crate::operation::list_associations::ListAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
5428 }
5429 }
5430}
5431impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_auto_ml_jobs::ListAutoMLJobsError, R>> for Error
5432where
5433 R: Send + Sync + std::fmt::Debug + 'static,
5434{
5435 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_auto_ml_jobs::ListAutoMLJobsError, R>) -> Self {
5436 match err {
5437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5440 source: err.into(),
5441 }),
5442 }
5443 }
5444}
5445impl From<crate::operation::list_auto_ml_jobs::ListAutoMLJobsError> for Error {
5446 fn from(err: crate::operation::list_auto_ml_jobs::ListAutoMLJobsError) -> Self {
5447 match err {
5448 crate::operation::list_auto_ml_jobs::ListAutoMLJobsError::Unhandled(inner) => Error::Unhandled(inner),
5449 }
5450 }
5451}
5452impl<R>
5453 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError, R>>
5454 for Error
5455where
5456 R: Send + Sync + std::fmt::Debug + 'static,
5457{
5458 fn from(
5459 err: ::aws_smithy_runtime_api::client::result::SdkError<
5460 crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError,
5461 R,
5462 >,
5463 ) -> Self {
5464 match err {
5465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5468 source: err.into(),
5469 }),
5470 }
5471 }
5472}
5473impl From<crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError> for Error {
5474 fn from(err: crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError) -> Self {
5475 match err {
5476 crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError::ResourceNotFound(inner) => {
5477 Error::ResourceNotFound(inner)
5478 }
5479 crate::operation::list_candidates_for_auto_ml_job::ListCandidatesForAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
5480 }
5481 }
5482}
5483impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_nodes::ListClusterNodesError, R>> for Error
5484where
5485 R: Send + Sync + std::fmt::Debug + 'static,
5486{
5487 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_nodes::ListClusterNodesError, R>) -> Self {
5488 match err {
5489 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5490 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5491 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5492 source: err.into(),
5493 }),
5494 }
5495 }
5496}
5497impl From<crate::operation::list_cluster_nodes::ListClusterNodesError> for Error {
5498 fn from(err: crate::operation::list_cluster_nodes::ListClusterNodesError) -> Self {
5499 match err {
5500 crate::operation::list_cluster_nodes::ListClusterNodesError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5501 crate::operation::list_cluster_nodes::ListClusterNodesError::Unhandled(inner) => Error::Unhandled(inner),
5502 }
5503 }
5504}
5505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_clusters::ListClustersError, 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_clusters::ListClustersError, 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_clusters::ListClustersError> for Error {
5520 fn from(err: crate::operation::list_clusters::ListClustersError) -> Self {
5521 match err {
5522 crate::operation::list_clusters::ListClustersError::Unhandled(inner) => Error::Unhandled(inner),
5523 }
5524 }
5525}
5526impl<R>
5527 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError, R>>
5528 for Error
5529where
5530 R: Send + Sync + std::fmt::Debug + 'static,
5531{
5532 fn from(
5533 err: ::aws_smithy_runtime_api::client::result::SdkError<
5534 crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError,
5535 R,
5536 >,
5537 ) -> Self {
5538 match err {
5539 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5540 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5541 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5542 source: err.into(),
5543 }),
5544 }
5545 }
5546}
5547impl From<crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError> for Error {
5548 fn from(err: crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError) -> Self {
5549 match err {
5550 crate::operation::list_cluster_scheduler_configs::ListClusterSchedulerConfigsError::Unhandled(inner) => Error::Unhandled(inner),
5551 }
5552 }
5553}
5554impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_repositories::ListCodeRepositoriesError, R>> for Error
5555where
5556 R: Send + Sync + std::fmt::Debug + 'static,
5557{
5558 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_code_repositories::ListCodeRepositoriesError, R>) -> Self {
5559 match err {
5560 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5561 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5562 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5563 source: err.into(),
5564 }),
5565 }
5566 }
5567}
5568impl From<crate::operation::list_code_repositories::ListCodeRepositoriesError> for Error {
5569 fn from(err: crate::operation::list_code_repositories::ListCodeRepositoriesError) -> Self {
5570 match err {
5571 crate::operation::list_code_repositories::ListCodeRepositoriesError::Unhandled(inner) => Error::Unhandled(inner),
5572 }
5573 }
5574}
5575impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compilation_jobs::ListCompilationJobsError, R>> for Error
5576where
5577 R: Send + Sync + std::fmt::Debug + 'static,
5578{
5579 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compilation_jobs::ListCompilationJobsError, R>) -> Self {
5580 match err {
5581 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5582 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5583 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5584 source: err.into(),
5585 }),
5586 }
5587 }
5588}
5589impl From<crate::operation::list_compilation_jobs::ListCompilationJobsError> for Error {
5590 fn from(err: crate::operation::list_compilation_jobs::ListCompilationJobsError) -> Self {
5591 match err {
5592 crate::operation::list_compilation_jobs::ListCompilationJobsError::Unhandled(inner) => Error::Unhandled(inner),
5593 }
5594 }
5595}
5596impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compute_quotas::ListComputeQuotasError, R>> for Error
5597where
5598 R: Send + Sync + std::fmt::Debug + 'static,
5599{
5600 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_compute_quotas::ListComputeQuotasError, R>) -> Self {
5601 match err {
5602 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5603 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5604 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5605 source: err.into(),
5606 }),
5607 }
5608 }
5609}
5610impl From<crate::operation::list_compute_quotas::ListComputeQuotasError> for Error {
5611 fn from(err: crate::operation::list_compute_quotas::ListComputeQuotasError) -> Self {
5612 match err {
5613 crate::operation::list_compute_quotas::ListComputeQuotasError::Unhandled(inner) => Error::Unhandled(inner),
5614 }
5615 }
5616}
5617impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contexts::ListContextsError, R>> for Error
5618where
5619 R: Send + Sync + std::fmt::Debug + 'static,
5620{
5621 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_contexts::ListContextsError, R>) -> Self {
5622 match err {
5623 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5624 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5625 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5626 source: err.into(),
5627 }),
5628 }
5629 }
5630}
5631impl From<crate::operation::list_contexts::ListContextsError> for Error {
5632 fn from(err: crate::operation::list_contexts::ListContextsError) -> Self {
5633 match err {
5634 crate::operation::list_contexts::ListContextsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5635 crate::operation::list_contexts::ListContextsError::Unhandled(inner) => Error::Unhandled(inner),
5636 }
5637 }
5638}
5639impl<R>
5640 From<
5641 ::aws_smithy_runtime_api::client::result::SdkError<
5642 crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError,
5643 R,
5644 >,
5645 > for Error
5646where
5647 R: Send + Sync + std::fmt::Debug + 'static,
5648{
5649 fn from(
5650 err: ::aws_smithy_runtime_api::client::result::SdkError<
5651 crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError,
5652 R,
5653 >,
5654 ) -> Self {
5655 match err {
5656 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5657 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5658 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5659 source: err.into(),
5660 }),
5661 }
5662 }
5663}
5664impl From<crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError> for Error {
5665 fn from(err: crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError) -> Self {
5666 match err {
5667 crate::operation::list_data_quality_job_definitions::ListDataQualityJobDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
5668 }
5669 }
5670}
5671impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_fleets::ListDeviceFleetsError, R>> for Error
5672where
5673 R: Send + Sync + std::fmt::Debug + 'static,
5674{
5675 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_fleets::ListDeviceFleetsError, R>) -> Self {
5676 match err {
5677 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5678 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5679 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5680 source: err.into(),
5681 }),
5682 }
5683 }
5684}
5685impl From<crate::operation::list_device_fleets::ListDeviceFleetsError> for Error {
5686 fn from(err: crate::operation::list_device_fleets::ListDeviceFleetsError) -> Self {
5687 match err {
5688 crate::operation::list_device_fleets::ListDeviceFleetsError::Unhandled(inner) => Error::Unhandled(inner),
5689 }
5690 }
5691}
5692impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices::ListDevicesError, R>> for Error
5693where
5694 R: Send + Sync + std::fmt::Debug + 'static,
5695{
5696 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices::ListDevicesError, R>) -> Self {
5697 match err {
5698 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5699 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5700 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5701 source: err.into(),
5702 }),
5703 }
5704 }
5705}
5706impl From<crate::operation::list_devices::ListDevicesError> for Error {
5707 fn from(err: crate::operation::list_devices::ListDevicesError) -> Self {
5708 match err {
5709 crate::operation::list_devices::ListDevicesError::Unhandled(inner) => Error::Unhandled(inner),
5710 }
5711 }
5712}
5713impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>> for Error
5714where
5715 R: Send + Sync + std::fmt::Debug + 'static,
5716{
5717 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>) -> Self {
5718 match err {
5719 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5720 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5721 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5722 source: err.into(),
5723 }),
5724 }
5725 }
5726}
5727impl From<crate::operation::list_domains::ListDomainsError> for Error {
5728 fn from(err: crate::operation::list_domains::ListDomainsError) -> Self {
5729 match err {
5730 crate::operation::list_domains::ListDomainsError::Unhandled(inner) => Error::Unhandled(inner),
5731 }
5732 }
5733}
5734impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError, R>>
5735 for Error
5736where
5737 R: Send + Sync + std::fmt::Debug + 'static,
5738{
5739 fn from(
5740 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError, R>,
5741 ) -> Self {
5742 match err {
5743 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5744 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5745 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5746 source: err.into(),
5747 }),
5748 }
5749 }
5750}
5751impl From<crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError> for Error {
5752 fn from(err: crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError) -> Self {
5753 match err {
5754 crate::operation::list_edge_deployment_plans::ListEdgeDeploymentPlansError::Unhandled(inner) => Error::Unhandled(inner),
5755 }
5756 }
5757}
5758impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError, R>> for Error
5759where
5760 R: Send + Sync + std::fmt::Debug + 'static,
5761{
5762 fn from(
5763 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError, R>,
5764 ) -> Self {
5765 match err {
5766 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5767 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5768 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5769 source: err.into(),
5770 }),
5771 }
5772 }
5773}
5774impl From<crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError> for Error {
5775 fn from(err: crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError) -> Self {
5776 match err {
5777 crate::operation::list_edge_packaging_jobs::ListEdgePackagingJobsError::Unhandled(inner) => Error::Unhandled(inner),
5778 }
5779 }
5780}
5781impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoint_configs::ListEndpointConfigsError, R>> for Error
5782where
5783 R: Send + Sync + std::fmt::Debug + 'static,
5784{
5785 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoint_configs::ListEndpointConfigsError, R>) -> Self {
5786 match err {
5787 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5788 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5789 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5790 source: err.into(),
5791 }),
5792 }
5793 }
5794}
5795impl From<crate::operation::list_endpoint_configs::ListEndpointConfigsError> for Error {
5796 fn from(err: crate::operation::list_endpoint_configs::ListEndpointConfigsError) -> Self {
5797 match err {
5798 crate::operation::list_endpoint_configs::ListEndpointConfigsError::Unhandled(inner) => Error::Unhandled(inner),
5799 }
5800 }
5801}
5802impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoints::ListEndpointsError, R>> for Error
5803where
5804 R: Send + Sync + std::fmt::Debug + 'static,
5805{
5806 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoints::ListEndpointsError, R>) -> Self {
5807 match err {
5808 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5809 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5810 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5811 source: err.into(),
5812 }),
5813 }
5814 }
5815}
5816impl From<crate::operation::list_endpoints::ListEndpointsError> for Error {
5817 fn from(err: crate::operation::list_endpoints::ListEndpointsError) -> Self {
5818 match err {
5819 crate::operation::list_endpoints::ListEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
5820 }
5821 }
5822}
5823impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_experiments::ListExperimentsError, R>> for Error
5824where
5825 R: Send + Sync + std::fmt::Debug + 'static,
5826{
5827 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_experiments::ListExperimentsError, R>) -> Self {
5828 match err {
5829 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5830 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5831 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5832 source: err.into(),
5833 }),
5834 }
5835 }
5836}
5837impl From<crate::operation::list_experiments::ListExperimentsError> for Error {
5838 fn from(err: crate::operation::list_experiments::ListExperimentsError) -> Self {
5839 match err {
5840 crate::operation::list_experiments::ListExperimentsError::Unhandled(inner) => Error::Unhandled(inner),
5841 }
5842 }
5843}
5844impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_feature_groups::ListFeatureGroupsError, R>> for Error
5845where
5846 R: Send + Sync + std::fmt::Debug + 'static,
5847{
5848 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_feature_groups::ListFeatureGroupsError, R>) -> Self {
5849 match err {
5850 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5851 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5852 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5853 source: err.into(),
5854 }),
5855 }
5856 }
5857}
5858impl From<crate::operation::list_feature_groups::ListFeatureGroupsError> for Error {
5859 fn from(err: crate::operation::list_feature_groups::ListFeatureGroupsError) -> Self {
5860 match err {
5861 crate::operation::list_feature_groups::ListFeatureGroupsError::Unhandled(inner) => Error::Unhandled(inner),
5862 }
5863 }
5864}
5865impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_definitions::ListFlowDefinitionsError, R>> for Error
5866where
5867 R: Send + Sync + std::fmt::Debug + 'static,
5868{
5869 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_flow_definitions::ListFlowDefinitionsError, R>) -> Self {
5870 match err {
5871 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5872 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5873 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5874 source: err.into(),
5875 }),
5876 }
5877 }
5878}
5879impl From<crate::operation::list_flow_definitions::ListFlowDefinitionsError> for Error {
5880 fn from(err: crate::operation::list_flow_definitions::ListFlowDefinitionsError) -> Self {
5881 match err {
5882 crate::operation::list_flow_definitions::ListFlowDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
5883 }
5884 }
5885}
5886impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_contents::ListHubContentsError, R>> for Error
5887where
5888 R: Send + Sync + std::fmt::Debug + 'static,
5889{
5890 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_contents::ListHubContentsError, R>) -> Self {
5891 match err {
5892 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5893 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5894 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5895 source: err.into(),
5896 }),
5897 }
5898 }
5899}
5900impl From<crate::operation::list_hub_contents::ListHubContentsError> for Error {
5901 fn from(err: crate::operation::list_hub_contents::ListHubContentsError) -> Self {
5902 match err {
5903 crate::operation::list_hub_contents::ListHubContentsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5904 crate::operation::list_hub_contents::ListHubContentsError::Unhandled(inner) => Error::Unhandled(inner),
5905 }
5906 }
5907}
5908impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_content_versions::ListHubContentVersionsError, R>>
5909 for Error
5910where
5911 R: Send + Sync + std::fmt::Debug + 'static,
5912{
5913 fn from(
5914 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hub_content_versions::ListHubContentVersionsError, R>,
5915 ) -> Self {
5916 match err {
5917 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5918 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5919 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5920 source: err.into(),
5921 }),
5922 }
5923 }
5924}
5925impl From<crate::operation::list_hub_content_versions::ListHubContentVersionsError> for Error {
5926 fn from(err: crate::operation::list_hub_content_versions::ListHubContentVersionsError) -> Self {
5927 match err {
5928 crate::operation::list_hub_content_versions::ListHubContentVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
5929 crate::operation::list_hub_content_versions::ListHubContentVersionsError::Unhandled(inner) => Error::Unhandled(inner),
5930 }
5931 }
5932}
5933impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hubs::ListHubsError, R>> for Error
5934where
5935 R: Send + Sync + std::fmt::Debug + 'static,
5936{
5937 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hubs::ListHubsError, R>) -> Self {
5938 match err {
5939 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5940 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5941 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5942 source: err.into(),
5943 }),
5944 }
5945 }
5946}
5947impl From<crate::operation::list_hubs::ListHubsError> for Error {
5948 fn from(err: crate::operation::list_hubs::ListHubsError) -> Self {
5949 match err {
5950 crate::operation::list_hubs::ListHubsError::Unhandled(inner) => Error::Unhandled(inner),
5951 }
5952 }
5953}
5954impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_human_task_uis::ListHumanTaskUisError, R>> for Error
5955where
5956 R: Send + Sync + std::fmt::Debug + 'static,
5957{
5958 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_human_task_uis::ListHumanTaskUisError, R>) -> Self {
5959 match err {
5960 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5961 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5962 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5963 source: err.into(),
5964 }),
5965 }
5966 }
5967}
5968impl From<crate::operation::list_human_task_uis::ListHumanTaskUisError> for Error {
5969 fn from(err: crate::operation::list_human_task_uis::ListHumanTaskUisError) -> Self {
5970 match err {
5971 crate::operation::list_human_task_uis::ListHumanTaskUisError::Unhandled(inner) => Error::Unhandled(inner),
5972 }
5973 }
5974}
5975impl<R>
5976 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError, R>>
5977 for Error
5978where
5979 R: Send + Sync + std::fmt::Debug + 'static,
5980{
5981 fn from(
5982 err: ::aws_smithy_runtime_api::client::result::SdkError<
5983 crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError,
5984 R,
5985 >,
5986 ) -> Self {
5987 match err {
5988 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5989 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5990 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5991 source: err.into(),
5992 }),
5993 }
5994 }
5995}
5996impl From<crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError> for Error {
5997 fn from(err: crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError) -> Self {
5998 match err {
5999 crate::operation::list_hyper_parameter_tuning_jobs::ListHyperParameterTuningJobsError::Unhandled(inner) => Error::Unhandled(inner),
6000 }
6001 }
6002}
6003impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images::ListImagesError, R>> for Error
6004where
6005 R: Send + Sync + std::fmt::Debug + 'static,
6006{
6007 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_images::ListImagesError, R>) -> Self {
6008 match err {
6009 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6010 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6011 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6012 source: err.into(),
6013 }),
6014 }
6015 }
6016}
6017impl From<crate::operation::list_images::ListImagesError> for Error {
6018 fn from(err: crate::operation::list_images::ListImagesError) -> Self {
6019 match err {
6020 crate::operation::list_images::ListImagesError::Unhandled(inner) => Error::Unhandled(inner),
6021 }
6022 }
6023}
6024impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_image_versions::ListImageVersionsError, R>> for Error
6025where
6026 R: Send + Sync + std::fmt::Debug + 'static,
6027{
6028 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_image_versions::ListImageVersionsError, R>) -> Self {
6029 match err {
6030 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6031 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6032 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6033 source: err.into(),
6034 }),
6035 }
6036 }
6037}
6038impl From<crate::operation::list_image_versions::ListImageVersionsError> for Error {
6039 fn from(err: crate::operation::list_image_versions::ListImageVersionsError) -> Self {
6040 match err {
6041 crate::operation::list_image_versions::ListImageVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6042 crate::operation::list_image_versions::ListImageVersionsError::Unhandled(inner) => Error::Unhandled(inner),
6043 }
6044 }
6045}
6046impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_components::ListInferenceComponentsError, R>>
6047 for Error
6048where
6049 R: Send + Sync + std::fmt::Debug + 'static,
6050{
6051 fn from(
6052 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_components::ListInferenceComponentsError, R>,
6053 ) -> Self {
6054 match err {
6055 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6056 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6057 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6058 source: err.into(),
6059 }),
6060 }
6061 }
6062}
6063impl From<crate::operation::list_inference_components::ListInferenceComponentsError> for Error {
6064 fn from(err: crate::operation::list_inference_components::ListInferenceComponentsError) -> Self {
6065 match err {
6066 crate::operation::list_inference_components::ListInferenceComponentsError::Unhandled(inner) => Error::Unhandled(inner),
6067 }
6068 }
6069}
6070impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_experiments::ListInferenceExperimentsError, R>>
6071 for Error
6072where
6073 R: Send + Sync + std::fmt::Debug + 'static,
6074{
6075 fn from(
6076 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_inference_experiments::ListInferenceExperimentsError, R>,
6077 ) -> 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_inference_experiments::ListInferenceExperimentsError> for Error {
6088 fn from(err: crate::operation::list_inference_experiments::ListInferenceExperimentsError) -> Self {
6089 match err {
6090 crate::operation::list_inference_experiments::ListInferenceExperimentsError::Unhandled(inner) => Error::Unhandled(inner),
6091 }
6092 }
6093}
6094impl<R>
6095 From<
6096 ::aws_smithy_runtime_api::client::result::SdkError<
6097 crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError,
6098 R,
6099 >,
6100 > for Error
6101where
6102 R: Send + Sync + std::fmt::Debug + 'static,
6103{
6104 fn from(
6105 err: ::aws_smithy_runtime_api::client::result::SdkError<
6106 crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError,
6107 R,
6108 >,
6109 ) -> Self {
6110 match err {
6111 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6112 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6113 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6114 source: err.into(),
6115 }),
6116 }
6117 }
6118}
6119impl From<crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError> for Error {
6120 fn from(err: crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError) -> Self {
6121 match err {
6122 crate::operation::list_inference_recommendations_jobs::ListInferenceRecommendationsJobsError::Unhandled(inner) => Error::Unhandled(inner),
6123 }
6124 }
6125}
6126impl<R>
6127 From<
6128 ::aws_smithy_runtime_api::client::result::SdkError<
6129 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError,
6130 R,
6131 >,
6132 > for Error
6133where
6134 R: Send + Sync + std::fmt::Debug + 'static,
6135{
6136 fn from(
6137 err: ::aws_smithy_runtime_api::client::result::SdkError<
6138 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError,
6139 R,
6140 >,
6141 ) -> Self {
6142 match err {
6143 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6144 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6145 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6146 source: err.into(),
6147 }),
6148 }
6149 }
6150}
6151impl From<crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError> for Error {
6152 fn from(err: crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError) -> Self {
6153 match err {
6154 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError::ResourceNotFound(inner) => {
6155 Error::ResourceNotFound(inner)
6156 }
6157 crate::operation::list_inference_recommendations_job_steps::ListInferenceRecommendationsJobStepsError::Unhandled(inner) => {
6158 Error::Unhandled(inner)
6159 }
6160 }
6161 }
6162}
6163impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_labeling_jobs::ListLabelingJobsError, R>> for Error
6164where
6165 R: Send + Sync + std::fmt::Debug + 'static,
6166{
6167 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_labeling_jobs::ListLabelingJobsError, R>) -> Self {
6168 match err {
6169 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6170 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6171 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6172 source: err.into(),
6173 }),
6174 }
6175 }
6176}
6177impl From<crate::operation::list_labeling_jobs::ListLabelingJobsError> for Error {
6178 fn from(err: crate::operation::list_labeling_jobs::ListLabelingJobsError) -> Self {
6179 match err {
6180 crate::operation::list_labeling_jobs::ListLabelingJobsError::Unhandled(inner) => Error::Unhandled(inner),
6181 }
6182 }
6183}
6184impl<R>
6185 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError, R>>
6186 for Error
6187where
6188 R: Send + Sync + std::fmt::Debug + 'static,
6189{
6190 fn from(
6191 err: ::aws_smithy_runtime_api::client::result::SdkError<
6192 crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError,
6193 R,
6194 >,
6195 ) -> Self {
6196 match err {
6197 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6198 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6199 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6200 source: err.into(),
6201 }),
6202 }
6203 }
6204}
6205impl From<crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError> for Error {
6206 fn from(err: crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError) -> Self {
6207 match err {
6208 crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError::ResourceNotFound(inner) => {
6209 Error::ResourceNotFound(inner)
6210 }
6211 crate::operation::list_labeling_jobs_for_workteam::ListLabelingJobsForWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
6212 }
6213 }
6214}
6215impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lineage_groups::ListLineageGroupsError, R>> for Error
6216where
6217 R: Send + Sync + std::fmt::Debug + 'static,
6218{
6219 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lineage_groups::ListLineageGroupsError, R>) -> Self {
6220 match err {
6221 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6222 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6223 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6224 source: err.into(),
6225 }),
6226 }
6227 }
6228}
6229impl From<crate::operation::list_lineage_groups::ListLineageGroupsError> for Error {
6230 fn from(err: crate::operation::list_lineage_groups::ListLineageGroupsError) -> Self {
6231 match err {
6232 crate::operation::list_lineage_groups::ListLineageGroupsError::Unhandled(inner) => Error::Unhandled(inner),
6233 }
6234 }
6235}
6236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError, R>>
6237 for Error
6238where
6239 R: Send + Sync + std::fmt::Debug + 'static,
6240{
6241 fn from(
6242 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError, R>,
6243 ) -> Self {
6244 match err {
6245 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6246 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6247 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6248 source: err.into(),
6249 }),
6250 }
6251 }
6252}
6253impl From<crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError> for Error {
6254 fn from(err: crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError) -> Self {
6255 match err {
6256 crate::operation::list_mlflow_tracking_servers::ListMlflowTrackingServersError::Unhandled(inner) => Error::Unhandled(inner),
6257 }
6258 }
6259}
6260impl<R>
6261 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError, R>>
6262 for Error
6263where
6264 R: Send + Sync + std::fmt::Debug + 'static,
6265{
6266 fn from(
6267 err: ::aws_smithy_runtime_api::client::result::SdkError<
6268 crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError,
6269 R,
6270 >,
6271 ) -> Self {
6272 match err {
6273 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6274 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6275 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6276 source: err.into(),
6277 }),
6278 }
6279 }
6280}
6281impl From<crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError> for Error {
6282 fn from(err: crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError) -> Self {
6283 match err {
6284 crate::operation::list_model_bias_job_definitions::ListModelBiasJobDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
6285 }
6286 }
6287}
6288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError, R>>
6289 for Error
6290where
6291 R: Send + Sync + std::fmt::Debug + 'static,
6292{
6293 fn from(
6294 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError, R>,
6295 ) -> Self {
6296 match err {
6297 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6298 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6299 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6300 source: err.into(),
6301 }),
6302 }
6303 }
6304}
6305impl From<crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError> for Error {
6306 fn from(err: crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError) -> Self {
6307 match err {
6308 crate::operation::list_model_card_export_jobs::ListModelCardExportJobsError::Unhandled(inner) => Error::Unhandled(inner),
6309 }
6310 }
6311}
6312impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_cards::ListModelCardsError, R>> for Error
6313where
6314 R: Send + Sync + std::fmt::Debug + 'static,
6315{
6316 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_cards::ListModelCardsError, R>) -> Self {
6317 match err {
6318 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6319 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6320 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6321 source: err.into(),
6322 }),
6323 }
6324 }
6325}
6326impl From<crate::operation::list_model_cards::ListModelCardsError> for Error {
6327 fn from(err: crate::operation::list_model_cards::ListModelCardsError) -> Self {
6328 match err {
6329 crate::operation::list_model_cards::ListModelCardsError::Unhandled(inner) => Error::Unhandled(inner),
6330 }
6331 }
6332}
6333impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_versions::ListModelCardVersionsError, R>> for Error
6334where
6335 R: Send + Sync + std::fmt::Debug + 'static,
6336{
6337 fn from(
6338 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_card_versions::ListModelCardVersionsError, R>,
6339 ) -> Self {
6340 match err {
6341 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6342 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6343 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6344 source: err.into(),
6345 }),
6346 }
6347 }
6348}
6349impl From<crate::operation::list_model_card_versions::ListModelCardVersionsError> for Error {
6350 fn from(err: crate::operation::list_model_card_versions::ListModelCardVersionsError) -> Self {
6351 match err {
6352 crate::operation::list_model_card_versions::ListModelCardVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6353 crate::operation::list_model_card_versions::ListModelCardVersionsError::Unhandled(inner) => Error::Unhandled(inner),
6354 }
6355 }
6356}
6357impl<R>
6358 From<
6359 ::aws_smithy_runtime_api::client::result::SdkError<
6360 crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError,
6361 R,
6362 >,
6363 > for Error
6364where
6365 R: Send + Sync + std::fmt::Debug + 'static,
6366{
6367 fn from(
6368 err: ::aws_smithy_runtime_api::client::result::SdkError<
6369 crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError,
6370 R,
6371 >,
6372 ) -> Self {
6373 match err {
6374 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6375 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6376 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6377 source: err.into(),
6378 }),
6379 }
6380 }
6381}
6382impl From<crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError> for Error {
6383 fn from(err: crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError) -> Self {
6384 match err {
6385 crate::operation::list_model_explainability_job_definitions::ListModelExplainabilityJobDefinitionsError::Unhandled(inner) => {
6386 Error::Unhandled(inner)
6387 }
6388 }
6389 }
6390}
6391impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_metadata::ListModelMetadataError, R>> for Error
6392where
6393 R: Send + Sync + std::fmt::Debug + 'static,
6394{
6395 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_metadata::ListModelMetadataError, R>) -> Self {
6396 match err {
6397 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6398 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6399 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6400 source: err.into(),
6401 }),
6402 }
6403 }
6404}
6405impl From<crate::operation::list_model_metadata::ListModelMetadataError> for Error {
6406 fn from(err: crate::operation::list_model_metadata::ListModelMetadataError) -> Self {
6407 match err {
6408 crate::operation::list_model_metadata::ListModelMetadataError::Unhandled(inner) => Error::Unhandled(inner),
6409 }
6410 }
6411}
6412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_package_groups::ListModelPackageGroupsError, R>>
6413 for Error
6414where
6415 R: Send + Sync + std::fmt::Debug + 'static,
6416{
6417 fn from(
6418 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_package_groups::ListModelPackageGroupsError, R>,
6419 ) -> Self {
6420 match err {
6421 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6422 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6423 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6424 source: err.into(),
6425 }),
6426 }
6427 }
6428}
6429impl From<crate::operation::list_model_package_groups::ListModelPackageGroupsError> for Error {
6430 fn from(err: crate::operation::list_model_package_groups::ListModelPackageGroupsError) -> Self {
6431 match err {
6432 crate::operation::list_model_package_groups::ListModelPackageGroupsError::Unhandled(inner) => Error::Unhandled(inner),
6433 }
6434 }
6435}
6436impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_packages::ListModelPackagesError, R>> for Error
6437where
6438 R: Send + Sync + std::fmt::Debug + 'static,
6439{
6440 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_model_packages::ListModelPackagesError, R>) -> Self {
6441 match err {
6442 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6443 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6444 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6445 source: err.into(),
6446 }),
6447 }
6448 }
6449}
6450impl From<crate::operation::list_model_packages::ListModelPackagesError> for Error {
6451 fn from(err: crate::operation::list_model_packages::ListModelPackagesError) -> Self {
6452 match err {
6453 crate::operation::list_model_packages::ListModelPackagesError::Unhandled(inner) => Error::Unhandled(inner),
6454 }
6455 }
6456}
6457impl<R>
6458 From<
6459 ::aws_smithy_runtime_api::client::result::SdkError<
6460 crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError,
6461 R,
6462 >,
6463 > for Error
6464where
6465 R: Send + Sync + std::fmt::Debug + 'static,
6466{
6467 fn from(
6468 err: ::aws_smithy_runtime_api::client::result::SdkError<
6469 crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError,
6470 R,
6471 >,
6472 ) -> Self {
6473 match err {
6474 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6475 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6476 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6477 source: err.into(),
6478 }),
6479 }
6480 }
6481}
6482impl From<crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError> for Error {
6483 fn from(err: crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError) -> Self {
6484 match err {
6485 crate::operation::list_model_quality_job_definitions::ListModelQualityJobDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
6486 }
6487 }
6488}
6489impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_models::ListModelsError, R>> for Error
6490where
6491 R: Send + Sync + std::fmt::Debug + 'static,
6492{
6493 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_models::ListModelsError, R>) -> Self {
6494 match err {
6495 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6496 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6497 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6498 source: err.into(),
6499 }),
6500 }
6501 }
6502}
6503impl From<crate::operation::list_models::ListModelsError> for Error {
6504 fn from(err: crate::operation::list_models::ListModelsError) -> Self {
6505 match err {
6506 crate::operation::list_models::ListModelsError::Unhandled(inner) => Error::Unhandled(inner),
6507 }
6508 }
6509}
6510impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError, R>>
6511 for Error
6512where
6513 R: Send + Sync + std::fmt::Debug + 'static,
6514{
6515 fn from(
6516 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError, R>,
6517 ) -> Self {
6518 match err {
6519 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6520 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6521 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6522 source: err.into(),
6523 }),
6524 }
6525 }
6526}
6527impl From<crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError> for Error {
6528 fn from(err: crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError) -> Self {
6529 match err {
6530 crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError::ResourceNotFound(inner) => {
6531 Error::ResourceNotFound(inner)
6532 }
6533 crate::operation::list_monitoring_alert_history::ListMonitoringAlertHistoryError::Unhandled(inner) => Error::Unhandled(inner),
6534 }
6535 }
6536}
6537impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alerts::ListMonitoringAlertsError, R>> for Error
6538where
6539 R: Send + Sync + std::fmt::Debug + 'static,
6540{
6541 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_alerts::ListMonitoringAlertsError, R>) -> Self {
6542 match err {
6543 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6544 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6545 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6546 source: err.into(),
6547 }),
6548 }
6549 }
6550}
6551impl From<crate::operation::list_monitoring_alerts::ListMonitoringAlertsError> for Error {
6552 fn from(err: crate::operation::list_monitoring_alerts::ListMonitoringAlertsError) -> Self {
6553 match err {
6554 crate::operation::list_monitoring_alerts::ListMonitoringAlertsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6555 crate::operation::list_monitoring_alerts::ListMonitoringAlertsError::Unhandled(inner) => Error::Unhandled(inner),
6556 }
6557 }
6558}
6559impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_executions::ListMonitoringExecutionsError, R>>
6560 for Error
6561where
6562 R: Send + Sync + std::fmt::Debug + 'static,
6563{
6564 fn from(
6565 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_executions::ListMonitoringExecutionsError, R>,
6566 ) -> Self {
6567 match err {
6568 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6569 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6570 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6571 source: err.into(),
6572 }),
6573 }
6574 }
6575}
6576impl From<crate::operation::list_monitoring_executions::ListMonitoringExecutionsError> for Error {
6577 fn from(err: crate::operation::list_monitoring_executions::ListMonitoringExecutionsError) -> Self {
6578 match err {
6579 crate::operation::list_monitoring_executions::ListMonitoringExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
6580 }
6581 }
6582}
6583impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError, R>>
6584 for Error
6585where
6586 R: Send + Sync + std::fmt::Debug + 'static,
6587{
6588 fn from(
6589 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError, R>,
6590 ) -> Self {
6591 match err {
6592 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6593 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6594 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6595 source: err.into(),
6596 }),
6597 }
6598 }
6599}
6600impl From<crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError> for Error {
6601 fn from(err: crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError) -> Self {
6602 match err {
6603 crate::operation::list_monitoring_schedules::ListMonitoringSchedulesError::Unhandled(inner) => Error::Unhandled(inner),
6604 }
6605 }
6606}
6607impl<R>
6608 From<
6609 ::aws_smithy_runtime_api::client::result::SdkError<
6610 crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError,
6611 R,
6612 >,
6613 > for Error
6614where
6615 R: Send + Sync + std::fmt::Debug + 'static,
6616{
6617 fn from(
6618 err: ::aws_smithy_runtime_api::client::result::SdkError<
6619 crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError,
6620 R,
6621 >,
6622 ) -> Self {
6623 match err {
6624 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6625 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6626 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6627 source: err.into(),
6628 }),
6629 }
6630 }
6631}
6632impl From<crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError> for Error {
6633 fn from(err: crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError) -> Self {
6634 match err {
6635 crate::operation::list_notebook_instance_lifecycle_configs::ListNotebookInstanceLifecycleConfigsError::Unhandled(inner) => {
6636 Error::Unhandled(inner)
6637 }
6638 }
6639 }
6640}
6641impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notebook_instances::ListNotebookInstancesError, R>> for Error
6642where
6643 R: Send + Sync + std::fmt::Debug + 'static,
6644{
6645 fn from(
6646 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notebook_instances::ListNotebookInstancesError, R>,
6647 ) -> Self {
6648 match err {
6649 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6650 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6651 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6652 source: err.into(),
6653 }),
6654 }
6655 }
6656}
6657impl From<crate::operation::list_notebook_instances::ListNotebookInstancesError> for Error {
6658 fn from(err: crate::operation::list_notebook_instances::ListNotebookInstancesError) -> Self {
6659 match err {
6660 crate::operation::list_notebook_instances::ListNotebookInstancesError::Unhandled(inner) => Error::Unhandled(inner),
6661 }
6662 }
6663}
6664impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_optimization_jobs::ListOptimizationJobsError, R>> for Error
6665where
6666 R: Send + Sync + std::fmt::Debug + 'static,
6667{
6668 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_optimization_jobs::ListOptimizationJobsError, R>) -> Self {
6669 match err {
6670 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6671 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6672 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6673 source: err.into(),
6674 }),
6675 }
6676 }
6677}
6678impl From<crate::operation::list_optimization_jobs::ListOptimizationJobsError> for Error {
6679 fn from(err: crate::operation::list_optimization_jobs::ListOptimizationJobsError) -> Self {
6680 match err {
6681 crate::operation::list_optimization_jobs::ListOptimizationJobsError::Unhandled(inner) => Error::Unhandled(inner),
6682 }
6683 }
6684}
6685impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_partner_apps::ListPartnerAppsError, R>> for Error
6686where
6687 R: Send + Sync + std::fmt::Debug + 'static,
6688{
6689 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_partner_apps::ListPartnerAppsError, R>) -> Self {
6690 match err {
6691 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6692 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6693 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6694 source: err.into(),
6695 }),
6696 }
6697 }
6698}
6699impl From<crate::operation::list_partner_apps::ListPartnerAppsError> for Error {
6700 fn from(err: crate::operation::list_partner_apps::ListPartnerAppsError) -> Self {
6701 match err {
6702 crate::operation::list_partner_apps::ListPartnerAppsError::Unhandled(inner) => Error::Unhandled(inner),
6703 }
6704 }
6705}
6706impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_executions::ListPipelineExecutionsError, R>> for Error
6707where
6708 R: Send + Sync + std::fmt::Debug + 'static,
6709{
6710 fn from(
6711 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_executions::ListPipelineExecutionsError, R>,
6712 ) -> Self {
6713 match err {
6714 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6715 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6716 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6717 source: err.into(),
6718 }),
6719 }
6720 }
6721}
6722impl From<crate::operation::list_pipeline_executions::ListPipelineExecutionsError> for Error {
6723 fn from(err: crate::operation::list_pipeline_executions::ListPipelineExecutionsError) -> Self {
6724 match err {
6725 crate::operation::list_pipeline_executions::ListPipelineExecutionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6726 crate::operation::list_pipeline_executions::ListPipelineExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
6727 }
6728 }
6729}
6730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError, R>>
6731 for Error
6732where
6733 R: Send + Sync + std::fmt::Debug + 'static,
6734{
6735 fn from(
6736 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError, R>,
6737 ) -> Self {
6738 match err {
6739 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6740 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6741 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6742 source: err.into(),
6743 }),
6744 }
6745 }
6746}
6747impl From<crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError> for Error {
6748 fn from(err: crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError) -> Self {
6749 match err {
6750 crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError::ResourceNotFound(inner) => {
6751 Error::ResourceNotFound(inner)
6752 }
6753 crate::operation::list_pipeline_execution_steps::ListPipelineExecutionStepsError::Unhandled(inner) => Error::Unhandled(inner),
6754 }
6755 }
6756}
6757impl<R>
6758 From<
6759 ::aws_smithy_runtime_api::client::result::SdkError<
6760 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError,
6761 R,
6762 >,
6763 > for Error
6764where
6765 R: Send + Sync + std::fmt::Debug + 'static,
6766{
6767 fn from(
6768 err: ::aws_smithy_runtime_api::client::result::SdkError<
6769 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError,
6770 R,
6771 >,
6772 ) -> Self {
6773 match err {
6774 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6775 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6776 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6777 source: err.into(),
6778 }),
6779 }
6780 }
6781}
6782impl From<crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError> for Error {
6783 fn from(err: crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError) -> Self {
6784 match err {
6785 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError::ResourceNotFound(inner) => {
6786 Error::ResourceNotFound(inner)
6787 }
6788 crate::operation::list_pipeline_parameters_for_execution::ListPipelineParametersForExecutionError::Unhandled(inner) => {
6789 Error::Unhandled(inner)
6790 }
6791 }
6792 }
6793}
6794impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipelines::ListPipelinesError, R>> for Error
6795where
6796 R: Send + Sync + std::fmt::Debug + 'static,
6797{
6798 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipelines::ListPipelinesError, R>) -> Self {
6799 match err {
6800 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6801 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6802 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6803 source: err.into(),
6804 }),
6805 }
6806 }
6807}
6808impl From<crate::operation::list_pipelines::ListPipelinesError> for Error {
6809 fn from(err: crate::operation::list_pipelines::ListPipelinesError) -> Self {
6810 match err {
6811 crate::operation::list_pipelines::ListPipelinesError::Unhandled(inner) => Error::Unhandled(inner),
6812 }
6813 }
6814}
6815impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_versions::ListPipelineVersionsError, R>> for Error
6816where
6817 R: Send + Sync + std::fmt::Debug + 'static,
6818{
6819 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pipeline_versions::ListPipelineVersionsError, R>) -> Self {
6820 match err {
6821 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6822 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6823 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6824 source: err.into(),
6825 }),
6826 }
6827 }
6828}
6829impl From<crate::operation::list_pipeline_versions::ListPipelineVersionsError> for Error {
6830 fn from(err: crate::operation::list_pipeline_versions::ListPipelineVersionsError) -> Self {
6831 match err {
6832 crate::operation::list_pipeline_versions::ListPipelineVersionsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
6833 crate::operation::list_pipeline_versions::ListPipelineVersionsError::Unhandled(inner) => Error::Unhandled(inner),
6834 }
6835 }
6836}
6837impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_processing_jobs::ListProcessingJobsError, R>> for Error
6838where
6839 R: Send + Sync + std::fmt::Debug + 'static,
6840{
6841 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_processing_jobs::ListProcessingJobsError, R>) -> Self {
6842 match err {
6843 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6844 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6845 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6846 source: err.into(),
6847 }),
6848 }
6849 }
6850}
6851impl From<crate::operation::list_processing_jobs::ListProcessingJobsError> for Error {
6852 fn from(err: crate::operation::list_processing_jobs::ListProcessingJobsError) -> Self {
6853 match err {
6854 crate::operation::list_processing_jobs::ListProcessingJobsError::Unhandled(inner) => Error::Unhandled(inner),
6855 }
6856 }
6857}
6858impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>> for Error
6859where
6860 R: Send + Sync + std::fmt::Debug + 'static,
6861{
6862 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>) -> Self {
6863 match err {
6864 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6865 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6866 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6867 source: err.into(),
6868 }),
6869 }
6870 }
6871}
6872impl From<crate::operation::list_projects::ListProjectsError> for Error {
6873 fn from(err: crate::operation::list_projects::ListProjectsError) -> Self {
6874 match err {
6875 crate::operation::list_projects::ListProjectsError::Unhandled(inner) => Error::Unhandled(inner),
6876 }
6877 }
6878}
6879impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_catalogs::ListResourceCatalogsError, R>> for Error
6880where
6881 R: Send + Sync + std::fmt::Debug + 'static,
6882{
6883 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_catalogs::ListResourceCatalogsError, R>) -> Self {
6884 match err {
6885 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6886 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6887 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6888 source: err.into(),
6889 }),
6890 }
6891 }
6892}
6893impl From<crate::operation::list_resource_catalogs::ListResourceCatalogsError> for Error {
6894 fn from(err: crate::operation::list_resource_catalogs::ListResourceCatalogsError) -> Self {
6895 match err {
6896 crate::operation::list_resource_catalogs::ListResourceCatalogsError::Unhandled(inner) => Error::Unhandled(inner),
6897 }
6898 }
6899}
6900impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces::ListSpacesError, R>> for Error
6901where
6902 R: Send + Sync + std::fmt::Debug + 'static,
6903{
6904 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces::ListSpacesError, R>) -> Self {
6905 match err {
6906 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6907 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6908 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6909 source: err.into(),
6910 }),
6911 }
6912 }
6913}
6914impl From<crate::operation::list_spaces::ListSpacesError> for Error {
6915 fn from(err: crate::operation::list_spaces::ListSpacesError) -> Self {
6916 match err {
6917 crate::operation::list_spaces::ListSpacesError::Unhandled(inner) => Error::Unhandled(inner),
6918 }
6919 }
6920}
6921impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stage_devices::ListStageDevicesError, R>> for Error
6922where
6923 R: Send + Sync + std::fmt::Debug + 'static,
6924{
6925 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stage_devices::ListStageDevicesError, R>) -> Self {
6926 match err {
6927 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6928 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6929 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6930 source: err.into(),
6931 }),
6932 }
6933 }
6934}
6935impl From<crate::operation::list_stage_devices::ListStageDevicesError> for Error {
6936 fn from(err: crate::operation::list_stage_devices::ListStageDevicesError) -> Self {
6937 match err {
6938 crate::operation::list_stage_devices::ListStageDevicesError::Unhandled(inner) => Error::Unhandled(inner),
6939 }
6940 }
6941}
6942impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError, R>>
6943 for Error
6944where
6945 R: Send + Sync + std::fmt::Debug + 'static,
6946{
6947 fn from(
6948 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError, R>,
6949 ) -> Self {
6950 match err {
6951 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6952 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6953 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6954 source: err.into(),
6955 }),
6956 }
6957 }
6958}
6959impl From<crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError> for Error {
6960 fn from(err: crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError) -> Self {
6961 match err {
6962 crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError::ResourceInUse(inner) => Error::ResourceInUse(inner),
6963 crate::operation::list_studio_lifecycle_configs::ListStudioLifecycleConfigsError::Unhandled(inner) => Error::Unhandled(inner),
6964 }
6965 }
6966}
6967impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError, R>>
6968 for Error
6969where
6970 R: Send + Sync + std::fmt::Debug + 'static,
6971{
6972 fn from(
6973 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError, R>,
6974 ) -> Self {
6975 match err {
6976 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6977 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6978 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6979 source: err.into(),
6980 }),
6981 }
6982 }
6983}
6984impl From<crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError> for Error {
6985 fn from(err: crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError) -> Self {
6986 match err {
6987 crate::operation::list_subscribed_workteams::ListSubscribedWorkteamsError::Unhandled(inner) => Error::Unhandled(inner),
6988 }
6989 }
6990}
6991impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags::ListTagsError, R>> for Error
6992where
6993 R: Send + Sync + std::fmt::Debug + 'static,
6994{
6995 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags::ListTagsError, R>) -> Self {
6996 match err {
6997 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6998 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6999 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7000 source: err.into(),
7001 }),
7002 }
7003 }
7004}
7005impl From<crate::operation::list_tags::ListTagsError> for Error {
7006 fn from(err: crate::operation::list_tags::ListTagsError) -> Self {
7007 match err {
7008 crate::operation::list_tags::ListTagsError::Unhandled(inner) => Error::Unhandled(inner),
7009 }
7010 }
7011}
7012impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_jobs::ListTrainingJobsError, R>> for Error
7013where
7014 R: Send + Sync + std::fmt::Debug + 'static,
7015{
7016 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_jobs::ListTrainingJobsError, R>) -> Self {
7017 match err {
7018 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7019 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7020 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7021 source: err.into(),
7022 }),
7023 }
7024 }
7025}
7026impl From<crate::operation::list_training_jobs::ListTrainingJobsError> for Error {
7027 fn from(err: crate::operation::list_training_jobs::ListTrainingJobsError) -> Self {
7028 match err {
7029 crate::operation::list_training_jobs::ListTrainingJobsError::Unhandled(inner) => Error::Unhandled(inner),
7030 }
7031 }
7032}
7033impl<R>
7034 From<
7035 ::aws_smithy_runtime_api::client::result::SdkError<
7036 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError,
7037 R,
7038 >,
7039 > for Error
7040where
7041 R: Send + Sync + std::fmt::Debug + 'static,
7042{
7043 fn from(
7044 err: ::aws_smithy_runtime_api::client::result::SdkError<
7045 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError,
7046 R,
7047 >,
7048 ) -> Self {
7049 match err {
7050 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7051 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7052 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7053 source: err.into(),
7054 }),
7055 }
7056 }
7057}
7058impl From<crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError> for Error {
7059 fn from(err: crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError) -> Self {
7060 match err {
7061 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7062 crate::operation::list_training_jobs_for_hyper_parameter_tuning_job::ListTrainingJobsForHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
7063 }
7064 }
7065}
7066impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_plans::ListTrainingPlansError, R>> for Error
7067where
7068 R: Send + Sync + std::fmt::Debug + 'static,
7069{
7070 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_training_plans::ListTrainingPlansError, R>) -> Self {
7071 match err {
7072 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7073 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7074 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7075 source: err.into(),
7076 }),
7077 }
7078 }
7079}
7080impl From<crate::operation::list_training_plans::ListTrainingPlansError> for Error {
7081 fn from(err: crate::operation::list_training_plans::ListTrainingPlansError) -> Self {
7082 match err {
7083 crate::operation::list_training_plans::ListTrainingPlansError::Unhandled(inner) => Error::Unhandled(inner),
7084 }
7085 }
7086}
7087impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_transform_jobs::ListTransformJobsError, R>> for Error
7088where
7089 R: Send + Sync + std::fmt::Debug + 'static,
7090{
7091 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_transform_jobs::ListTransformJobsError, R>) -> Self {
7092 match err {
7093 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7094 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7095 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7096 source: err.into(),
7097 }),
7098 }
7099 }
7100}
7101impl From<crate::operation::list_transform_jobs::ListTransformJobsError> for Error {
7102 fn from(err: crate::operation::list_transform_jobs::ListTransformJobsError) -> Self {
7103 match err {
7104 crate::operation::list_transform_jobs::ListTransformJobsError::Unhandled(inner) => Error::Unhandled(inner),
7105 }
7106 }
7107}
7108impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trial_components::ListTrialComponentsError, R>> for Error
7109where
7110 R: Send + Sync + std::fmt::Debug + 'static,
7111{
7112 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trial_components::ListTrialComponentsError, R>) -> Self {
7113 match err {
7114 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7115 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7116 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7117 source: err.into(),
7118 }),
7119 }
7120 }
7121}
7122impl From<crate::operation::list_trial_components::ListTrialComponentsError> for Error {
7123 fn from(err: crate::operation::list_trial_components::ListTrialComponentsError) -> Self {
7124 match err {
7125 crate::operation::list_trial_components::ListTrialComponentsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7126 crate::operation::list_trial_components::ListTrialComponentsError::Unhandled(inner) => Error::Unhandled(inner),
7127 }
7128 }
7129}
7130impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trials::ListTrialsError, R>> for Error
7131where
7132 R: Send + Sync + std::fmt::Debug + 'static,
7133{
7134 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_trials::ListTrialsError, R>) -> Self {
7135 match err {
7136 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7137 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7138 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7139 source: err.into(),
7140 }),
7141 }
7142 }
7143}
7144impl From<crate::operation::list_trials::ListTrialsError> for Error {
7145 fn from(err: crate::operation::list_trials::ListTrialsError) -> Self {
7146 match err {
7147 crate::operation::list_trials::ListTrialsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7148 crate::operation::list_trials::ListTrialsError::Unhandled(inner) => Error::Unhandled(inner),
7149 }
7150 }
7151}
7152impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_user_profiles::ListUserProfilesError, 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_user_profiles::ListUserProfilesError, 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_user_profiles::ListUserProfilesError> for Error {
7167 fn from(err: crate::operation::list_user_profiles::ListUserProfilesError) -> Self {
7168 match err {
7169 crate::operation::list_user_profiles::ListUserProfilesError::Unhandled(inner) => Error::Unhandled(inner),
7170 }
7171 }
7172}
7173impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workforces::ListWorkforcesError, R>> for Error
7174where
7175 R: Send + Sync + std::fmt::Debug + 'static,
7176{
7177 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workforces::ListWorkforcesError, R>) -> Self {
7178 match err {
7179 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7180 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7181 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7182 source: err.into(),
7183 }),
7184 }
7185 }
7186}
7187impl From<crate::operation::list_workforces::ListWorkforcesError> for Error {
7188 fn from(err: crate::operation::list_workforces::ListWorkforcesError) -> Self {
7189 match err {
7190 crate::operation::list_workforces::ListWorkforcesError::Unhandled(inner) => Error::Unhandled(inner),
7191 }
7192 }
7193}
7194impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workteams::ListWorkteamsError, R>> for Error
7195where
7196 R: Send + Sync + std::fmt::Debug + 'static,
7197{
7198 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workteams::ListWorkteamsError, R>) -> Self {
7199 match err {
7200 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7201 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7202 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7203 source: err.into(),
7204 }),
7205 }
7206 }
7207}
7208impl From<crate::operation::list_workteams::ListWorkteamsError> for Error {
7209 fn from(err: crate::operation::list_workteams::ListWorkteamsError) -> Self {
7210 match err {
7211 crate::operation::list_workteams::ListWorkteamsError::Unhandled(inner) => Error::Unhandled(inner),
7212 }
7213 }
7214}
7215impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError, R>>
7216 for Error
7217where
7218 R: Send + Sync + std::fmt::Debug + 'static,
7219{
7220 fn from(
7221 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError, R>,
7222 ) -> Self {
7223 match err {
7224 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7225 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7226 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7227 source: err.into(),
7228 }),
7229 }
7230 }
7231}
7232impl From<crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError> for Error {
7233 fn from(err: crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError) -> Self {
7234 match err {
7235 crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError::ConflictException(inner) => {
7236 Error::ConflictException(inner)
7237 }
7238 crate::operation::put_model_package_group_policy::PutModelPackageGroupPolicyError::Unhandled(inner) => Error::Unhandled(inner),
7239 }
7240 }
7241}
7242impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_lineage::QueryLineageError, R>> for Error
7243where
7244 R: Send + Sync + std::fmt::Debug + 'static,
7245{
7246 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_lineage::QueryLineageError, R>) -> Self {
7247 match err {
7248 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7249 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7250 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7251 source: err.into(),
7252 }),
7253 }
7254 }
7255}
7256impl From<crate::operation::query_lineage::QueryLineageError> for Error {
7257 fn from(err: crate::operation::query_lineage::QueryLineageError) -> Self {
7258 match err {
7259 crate::operation::query_lineage::QueryLineageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7260 crate::operation::query_lineage::QueryLineageError::Unhandled(inner) => Error::Unhandled(inner),
7261 }
7262 }
7263}
7264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_devices::RegisterDevicesError, R>> for Error
7265where
7266 R: Send + Sync + std::fmt::Debug + 'static,
7267{
7268 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_devices::RegisterDevicesError, R>) -> Self {
7269 match err {
7270 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7271 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7272 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7273 source: err.into(),
7274 }),
7275 }
7276 }
7277}
7278impl From<crate::operation::register_devices::RegisterDevicesError> for Error {
7279 fn from(err: crate::operation::register_devices::RegisterDevicesError) -> Self {
7280 match err {
7281 crate::operation::register_devices::RegisterDevicesError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
7282 crate::operation::register_devices::RegisterDevicesError::Unhandled(inner) => Error::Unhandled(inner),
7283 }
7284 }
7285}
7286impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::render_ui_template::RenderUiTemplateError, R>> for Error
7287where
7288 R: Send + Sync + std::fmt::Debug + 'static,
7289{
7290 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::render_ui_template::RenderUiTemplateError, R>) -> Self {
7291 match err {
7292 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7293 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7294 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7295 source: err.into(),
7296 }),
7297 }
7298 }
7299}
7300impl From<crate::operation::render_ui_template::RenderUiTemplateError> for Error {
7301 fn from(err: crate::operation::render_ui_template::RenderUiTemplateError) -> Self {
7302 match err {
7303 crate::operation::render_ui_template::RenderUiTemplateError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7304 crate::operation::render_ui_template::RenderUiTemplateError::Unhandled(inner) => Error::Unhandled(inner),
7305 }
7306 }
7307}
7308impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_pipeline_execution::RetryPipelineExecutionError, R>> for Error
7309where
7310 R: Send + Sync + std::fmt::Debug + 'static,
7311{
7312 fn from(
7313 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_pipeline_execution::RetryPipelineExecutionError, R>,
7314 ) -> Self {
7315 match err {
7316 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7317 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7318 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7319 source: err.into(),
7320 }),
7321 }
7322 }
7323}
7324impl From<crate::operation::retry_pipeline_execution::RetryPipelineExecutionError> for Error {
7325 fn from(err: crate::operation::retry_pipeline_execution::RetryPipelineExecutionError) -> Self {
7326 match err {
7327 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
7328 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::ResourceLimitExceeded(inner) => {
7329 Error::ResourceLimitExceeded(inner)
7330 }
7331 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7332 crate::operation::retry_pipeline_execution::RetryPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
7333 }
7334 }
7335}
7336impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search::SearchError, R>> for Error
7337where
7338 R: Send + Sync + std::fmt::Debug + 'static,
7339{
7340 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search::SearchError, R>) -> Self {
7341 match err {
7342 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7343 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7344 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7345 source: err.into(),
7346 }),
7347 }
7348 }
7349}
7350impl From<crate::operation::search::SearchError> for Error {
7351 fn from(err: crate::operation::search::SearchError) -> Self {
7352 match err {
7353 crate::operation::search::SearchError::Unhandled(inner) => Error::Unhandled(inner),
7354 }
7355 }
7356}
7357impl<R>
7358 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError, R>>
7359 for Error
7360where
7361 R: Send + Sync + std::fmt::Debug + 'static,
7362{
7363 fn from(
7364 err: ::aws_smithy_runtime_api::client::result::SdkError<
7365 crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError,
7366 R,
7367 >,
7368 ) -> Self {
7369 match err {
7370 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7371 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7372 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7373 source: err.into(),
7374 }),
7375 }
7376 }
7377}
7378impl From<crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError> for Error {
7379 fn from(err: crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError) -> Self {
7380 match err {
7381 crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError::ResourceLimitExceeded(inner) => {
7382 Error::ResourceLimitExceeded(inner)
7383 }
7384 crate::operation::search_training_plan_offerings::SearchTrainingPlanOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
7385 }
7386 }
7387}
7388impl<R>
7389 From<
7390 ::aws_smithy_runtime_api::client::result::SdkError<
7391 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError,
7392 R,
7393 >,
7394 > for Error
7395where
7396 R: Send + Sync + std::fmt::Debug + 'static,
7397{
7398 fn from(
7399 err: ::aws_smithy_runtime_api::client::result::SdkError<
7400 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError,
7401 R,
7402 >,
7403 ) -> Self {
7404 match err {
7405 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7406 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7407 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7408 source: err.into(),
7409 }),
7410 }
7411 }
7412}
7413impl From<crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError> for Error {
7414 fn from(err: crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError) -> Self {
7415 match err {
7416 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::ConflictException(inner) => {
7417 Error::ConflictException(inner)
7418 }
7419 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::ResourceLimitExceeded(inner) => {
7420 Error::ResourceLimitExceeded(inner)
7421 }
7422 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::ResourceNotFound(inner) => {
7423 Error::ResourceNotFound(inner)
7424 }
7425 crate::operation::send_pipeline_execution_step_failure::SendPipelineExecutionStepFailureError::Unhandled(inner) => {
7426 Error::Unhandled(inner)
7427 }
7428 }
7429 }
7430}
7431impl<R>
7432 From<
7433 ::aws_smithy_runtime_api::client::result::SdkError<
7434 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError,
7435 R,
7436 >,
7437 > for Error
7438where
7439 R: Send + Sync + std::fmt::Debug + 'static,
7440{
7441 fn from(
7442 err: ::aws_smithy_runtime_api::client::result::SdkError<
7443 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError,
7444 R,
7445 >,
7446 ) -> Self {
7447 match err {
7448 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7449 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7450 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7451 source: err.into(),
7452 }),
7453 }
7454 }
7455}
7456impl From<crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError> for Error {
7457 fn from(err: crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError) -> Self {
7458 match err {
7459 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::ConflictException(inner) => {
7460 Error::ConflictException(inner)
7461 }
7462 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::ResourceLimitExceeded(inner) => {
7463 Error::ResourceLimitExceeded(inner)
7464 }
7465 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::ResourceNotFound(inner) => {
7466 Error::ResourceNotFound(inner)
7467 }
7468 crate::operation::send_pipeline_execution_step_success::SendPipelineExecutionStepSuccessError::Unhandled(inner) => {
7469 Error::Unhandled(inner)
7470 }
7471 }
7472 }
7473}
7474impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError, R>>
7475 for Error
7476where
7477 R: Send + Sync + std::fmt::Debug + 'static,
7478{
7479 fn from(
7480 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError, R>,
7481 ) -> Self {
7482 match err {
7483 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7484 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7485 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7486 source: err.into(),
7487 }),
7488 }
7489 }
7490}
7491impl From<crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError> for Error {
7492 fn from(err: crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError) -> Self {
7493 match err {
7494 crate::operation::start_edge_deployment_stage::StartEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
7495 }
7496 }
7497}
7498impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_inference_experiment::StartInferenceExperimentError, R>>
7499 for Error
7500where
7501 R: Send + Sync + std::fmt::Debug + 'static,
7502{
7503 fn from(
7504 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_inference_experiment::StartInferenceExperimentError, R>,
7505 ) -> Self {
7506 match err {
7507 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7508 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7509 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7510 source: err.into(),
7511 }),
7512 }
7513 }
7514}
7515impl From<crate::operation::start_inference_experiment::StartInferenceExperimentError> for Error {
7516 fn from(err: crate::operation::start_inference_experiment::StartInferenceExperimentError) -> Self {
7517 match err {
7518 crate::operation::start_inference_experiment::StartInferenceExperimentError::ConflictException(inner) => Error::ConflictException(inner),
7519 crate::operation::start_inference_experiment::StartInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7520 crate::operation::start_inference_experiment::StartInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
7521 }
7522 }
7523}
7524impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError, R>>
7525 for Error
7526where
7527 R: Send + Sync + std::fmt::Debug + 'static,
7528{
7529 fn from(
7530 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError, R>,
7531 ) -> Self {
7532 match err {
7533 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7534 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7535 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7536 source: err.into(),
7537 }),
7538 }
7539 }
7540}
7541impl From<crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError> for Error {
7542 fn from(err: crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError) -> Self {
7543 match err {
7544 crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError::ConflictException(inner) => {
7545 Error::ConflictException(inner)
7546 }
7547 crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7548 crate::operation::start_mlflow_tracking_server::StartMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
7549 }
7550 }
7551}
7552impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_monitoring_schedule::StartMonitoringScheduleError, R>>
7553 for Error
7554where
7555 R: Send + Sync + std::fmt::Debug + 'static,
7556{
7557 fn from(
7558 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_monitoring_schedule::StartMonitoringScheduleError, R>,
7559 ) -> Self {
7560 match err {
7561 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7562 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7563 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7564 source: err.into(),
7565 }),
7566 }
7567 }
7568}
7569impl From<crate::operation::start_monitoring_schedule::StartMonitoringScheduleError> for Error {
7570 fn from(err: crate::operation::start_monitoring_schedule::StartMonitoringScheduleError) -> Self {
7571 match err {
7572 crate::operation::start_monitoring_schedule::StartMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7573 crate::operation::start_monitoring_schedule::StartMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
7574 }
7575 }
7576}
7577impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_notebook_instance::StartNotebookInstanceError, R>> for Error
7578where
7579 R: Send + Sync + std::fmt::Debug + 'static,
7580{
7581 fn from(
7582 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_notebook_instance::StartNotebookInstanceError, R>,
7583 ) -> Self {
7584 match err {
7585 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7586 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7587 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7588 source: err.into(),
7589 }),
7590 }
7591 }
7592}
7593impl From<crate::operation::start_notebook_instance::StartNotebookInstanceError> for Error {
7594 fn from(err: crate::operation::start_notebook_instance::StartNotebookInstanceError) -> Self {
7595 match err {
7596 crate::operation::start_notebook_instance::StartNotebookInstanceError::ResourceLimitExceeded(inner) => {
7597 Error::ResourceLimitExceeded(inner)
7598 }
7599 crate::operation::start_notebook_instance::StartNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
7600 }
7601 }
7602}
7603impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pipeline_execution::StartPipelineExecutionError, R>> for Error
7604where
7605 R: Send + Sync + std::fmt::Debug + 'static,
7606{
7607 fn from(
7608 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_pipeline_execution::StartPipelineExecutionError, R>,
7609 ) -> Self {
7610 match err {
7611 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7612 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7613 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7614 source: err.into(),
7615 }),
7616 }
7617 }
7618}
7619impl From<crate::operation::start_pipeline_execution::StartPipelineExecutionError> for Error {
7620 fn from(err: crate::operation::start_pipeline_execution::StartPipelineExecutionError) -> Self {
7621 match err {
7622 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
7623 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ResourceLimitExceeded(inner) => {
7624 Error::ResourceLimitExceeded(inner)
7625 }
7626 crate::operation::start_pipeline_execution::StartPipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7627 crate::operation::start_pipeline_execution::StartPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
7628 }
7629 }
7630}
7631impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_session::StartSessionError, R>> for Error
7632where
7633 R: Send + Sync + std::fmt::Debug + 'static,
7634{
7635 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_session::StartSessionError, R>) -> Self {
7636 match err {
7637 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7638 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7639 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7640 source: err.into(),
7641 }),
7642 }
7643 }
7644}
7645impl From<crate::operation::start_session::StartSessionError> for Error {
7646 fn from(err: crate::operation::start_session::StartSessionError) -> Self {
7647 match err {
7648 crate::operation::start_session::StartSessionError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
7649 crate::operation::start_session::StartSessionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7650 crate::operation::start_session::StartSessionError::Unhandled(inner) => Error::Unhandled(inner),
7651 }
7652 }
7653}
7654impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_auto_ml_job::StopAutoMLJobError, R>> for Error
7655where
7656 R: Send + Sync + std::fmt::Debug + 'static,
7657{
7658 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_auto_ml_job::StopAutoMLJobError, R>) -> 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::stop_auto_ml_job::StopAutoMLJobError> for Error {
7669 fn from(err: crate::operation::stop_auto_ml_job::StopAutoMLJobError) -> Self {
7670 match err {
7671 crate::operation::stop_auto_ml_job::StopAutoMLJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7672 crate::operation::stop_auto_ml_job::StopAutoMLJobError::Unhandled(inner) => Error::Unhandled(inner),
7673 }
7674 }
7675}
7676impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_compilation_job::StopCompilationJobError, R>> for Error
7677where
7678 R: Send + Sync + std::fmt::Debug + 'static,
7679{
7680 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_compilation_job::StopCompilationJobError, R>) -> Self {
7681 match err {
7682 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7683 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7684 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7685 source: err.into(),
7686 }),
7687 }
7688 }
7689}
7690impl From<crate::operation::stop_compilation_job::StopCompilationJobError> for Error {
7691 fn from(err: crate::operation::stop_compilation_job::StopCompilationJobError) -> Self {
7692 match err {
7693 crate::operation::stop_compilation_job::StopCompilationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7694 crate::operation::stop_compilation_job::StopCompilationJobError::Unhandled(inner) => Error::Unhandled(inner),
7695 }
7696 }
7697}
7698impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError, R>>
7699 for Error
7700where
7701 R: Send + Sync + std::fmt::Debug + 'static,
7702{
7703 fn from(
7704 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError, R>,
7705 ) -> Self {
7706 match err {
7707 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7708 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7709 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7710 source: err.into(),
7711 }),
7712 }
7713 }
7714}
7715impl From<crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError> for Error {
7716 fn from(err: crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError) -> Self {
7717 match err {
7718 crate::operation::stop_edge_deployment_stage::StopEdgeDeploymentStageError::Unhandled(inner) => Error::Unhandled(inner),
7719 }
7720 }
7721}
7722impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError, R>> for Error
7723where
7724 R: Send + Sync + std::fmt::Debug + 'static,
7725{
7726 fn from(
7727 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError, R>,
7728 ) -> Self {
7729 match err {
7730 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7731 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7732 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7733 source: err.into(),
7734 }),
7735 }
7736 }
7737}
7738impl From<crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError> for Error {
7739 fn from(err: crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError) -> Self {
7740 match err {
7741 crate::operation::stop_edge_packaging_job::StopEdgePackagingJobError::Unhandled(inner) => Error::Unhandled(inner),
7742 }
7743 }
7744}
7745impl<R>
7746 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError, R>>
7747 for Error
7748where
7749 R: Send + Sync + std::fmt::Debug + 'static,
7750{
7751 fn from(
7752 err: ::aws_smithy_runtime_api::client::result::SdkError<
7753 crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError,
7754 R,
7755 >,
7756 ) -> Self {
7757 match err {
7758 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7759 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7760 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7761 source: err.into(),
7762 }),
7763 }
7764 }
7765}
7766impl From<crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError> for Error {
7767 fn from(err: crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError) -> Self {
7768 match err {
7769 crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError::ResourceNotFound(inner) => {
7770 Error::ResourceNotFound(inner)
7771 }
7772 crate::operation::stop_hyper_parameter_tuning_job::StopHyperParameterTuningJobError::Unhandled(inner) => Error::Unhandled(inner),
7773 }
7774 }
7775}
7776impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_inference_experiment::StopInferenceExperimentError, R>>
7777 for Error
7778where
7779 R: Send + Sync + std::fmt::Debug + 'static,
7780{
7781 fn from(
7782 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_inference_experiment::StopInferenceExperimentError, R>,
7783 ) -> Self {
7784 match err {
7785 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7786 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7787 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7788 source: err.into(),
7789 }),
7790 }
7791 }
7792}
7793impl From<crate::operation::stop_inference_experiment::StopInferenceExperimentError> for Error {
7794 fn from(err: crate::operation::stop_inference_experiment::StopInferenceExperimentError) -> Self {
7795 match err {
7796 crate::operation::stop_inference_experiment::StopInferenceExperimentError::ConflictException(inner) => Error::ConflictException(inner),
7797 crate::operation::stop_inference_experiment::StopInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7798 crate::operation::stop_inference_experiment::StopInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
7799 }
7800 }
7801}
7802impl<R>
7803 From<
7804 ::aws_smithy_runtime_api::client::result::SdkError<
7805 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError,
7806 R,
7807 >,
7808 > for Error
7809where
7810 R: Send + Sync + std::fmt::Debug + 'static,
7811{
7812 fn from(
7813 err: ::aws_smithy_runtime_api::client::result::SdkError<
7814 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError,
7815 R,
7816 >,
7817 ) -> Self {
7818 match err {
7819 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7820 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7821 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7822 source: err.into(),
7823 }),
7824 }
7825 }
7826}
7827impl From<crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError> for Error {
7828 fn from(err: crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError) -> Self {
7829 match err {
7830 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError::ResourceNotFound(inner) => {
7831 Error::ResourceNotFound(inner)
7832 }
7833 crate::operation::stop_inference_recommendations_job::StopInferenceRecommendationsJobError::Unhandled(inner) => Error::Unhandled(inner),
7834 }
7835 }
7836}
7837impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_labeling_job::StopLabelingJobError, R>> for Error
7838where
7839 R: Send + Sync + std::fmt::Debug + 'static,
7840{
7841 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_labeling_job::StopLabelingJobError, R>) -> Self {
7842 match err {
7843 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7844 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7845 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7846 source: err.into(),
7847 }),
7848 }
7849 }
7850}
7851impl From<crate::operation::stop_labeling_job::StopLabelingJobError> for Error {
7852 fn from(err: crate::operation::stop_labeling_job::StopLabelingJobError) -> Self {
7853 match err {
7854 crate::operation::stop_labeling_job::StopLabelingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7855 crate::operation::stop_labeling_job::StopLabelingJobError::Unhandled(inner) => Error::Unhandled(inner),
7856 }
7857 }
7858}
7859impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError, R>>
7860 for Error
7861where
7862 R: Send + Sync + std::fmt::Debug + 'static,
7863{
7864 fn from(
7865 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError, R>,
7866 ) -> Self {
7867 match err {
7868 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7869 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7870 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7871 source: err.into(),
7872 }),
7873 }
7874 }
7875}
7876impl From<crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError> for Error {
7877 fn from(err: crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError) -> Self {
7878 match err {
7879 crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError::ConflictException(inner) => Error::ConflictException(inner),
7880 crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7881 crate::operation::stop_mlflow_tracking_server::StopMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
7882 }
7883 }
7884}
7885impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError, R>> for Error
7886where
7887 R: Send + Sync + std::fmt::Debug + 'static,
7888{
7889 fn from(
7890 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError, R>,
7891 ) -> Self {
7892 match err {
7893 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7894 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7895 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7896 source: err.into(),
7897 }),
7898 }
7899 }
7900}
7901impl From<crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError> for Error {
7902 fn from(err: crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError) -> Self {
7903 match err {
7904 crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7905 crate::operation::stop_monitoring_schedule::StopMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
7906 }
7907 }
7908}
7909impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_notebook_instance::StopNotebookInstanceError, R>> for Error
7910where
7911 R: Send + Sync + std::fmt::Debug + 'static,
7912{
7913 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_notebook_instance::StopNotebookInstanceError, R>) -> Self {
7914 match err {
7915 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7916 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7917 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7918 source: err.into(),
7919 }),
7920 }
7921 }
7922}
7923impl From<crate::operation::stop_notebook_instance::StopNotebookInstanceError> for Error {
7924 fn from(err: crate::operation::stop_notebook_instance::StopNotebookInstanceError) -> Self {
7925 match err {
7926 crate::operation::stop_notebook_instance::StopNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
7927 }
7928 }
7929}
7930impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_optimization_job::StopOptimizationJobError, R>> for Error
7931where
7932 R: Send + Sync + std::fmt::Debug + 'static,
7933{
7934 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_optimization_job::StopOptimizationJobError, R>) -> Self {
7935 match err {
7936 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7937 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7938 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7939 source: err.into(),
7940 }),
7941 }
7942 }
7943}
7944impl From<crate::operation::stop_optimization_job::StopOptimizationJobError> for Error {
7945 fn from(err: crate::operation::stop_optimization_job::StopOptimizationJobError) -> Self {
7946 match err {
7947 crate::operation::stop_optimization_job::StopOptimizationJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7948 crate::operation::stop_optimization_job::StopOptimizationJobError::Unhandled(inner) => Error::Unhandled(inner),
7949 }
7950 }
7951}
7952impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_pipeline_execution::StopPipelineExecutionError, R>> for Error
7953where
7954 R: Send + Sync + std::fmt::Debug + 'static,
7955{
7956 fn from(
7957 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_pipeline_execution::StopPipelineExecutionError, R>,
7958 ) -> Self {
7959 match err {
7960 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7961 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7962 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7963 source: err.into(),
7964 }),
7965 }
7966 }
7967}
7968impl From<crate::operation::stop_pipeline_execution::StopPipelineExecutionError> for Error {
7969 fn from(err: crate::operation::stop_pipeline_execution::StopPipelineExecutionError) -> Self {
7970 match err {
7971 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
7972 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7973 crate::operation::stop_pipeline_execution::StopPipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
7974 }
7975 }
7976}
7977impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_processing_job::StopProcessingJobError, R>> for Error
7978where
7979 R: Send + Sync + std::fmt::Debug + 'static,
7980{
7981 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_processing_job::StopProcessingJobError, R>) -> Self {
7982 match err {
7983 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
7984 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
7985 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
7986 source: err.into(),
7987 }),
7988 }
7989 }
7990}
7991impl From<crate::operation::stop_processing_job::StopProcessingJobError> for Error {
7992 fn from(err: crate::operation::stop_processing_job::StopProcessingJobError) -> Self {
7993 match err {
7994 crate::operation::stop_processing_job::StopProcessingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
7995 crate::operation::stop_processing_job::StopProcessingJobError::Unhandled(inner) => Error::Unhandled(inner),
7996 }
7997 }
7998}
7999impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_training_job::StopTrainingJobError, R>> for Error
8000where
8001 R: Send + Sync + std::fmt::Debug + 'static,
8002{
8003 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_training_job::StopTrainingJobError, R>) -> Self {
8004 match err {
8005 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8006 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8007 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8008 source: err.into(),
8009 }),
8010 }
8011 }
8012}
8013impl From<crate::operation::stop_training_job::StopTrainingJobError> for Error {
8014 fn from(err: crate::operation::stop_training_job::StopTrainingJobError) -> Self {
8015 match err {
8016 crate::operation::stop_training_job::StopTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8017 crate::operation::stop_training_job::StopTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
8018 }
8019 }
8020}
8021impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_transform_job::StopTransformJobError, R>> for Error
8022where
8023 R: Send + Sync + std::fmt::Debug + 'static,
8024{
8025 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_transform_job::StopTransformJobError, R>) -> Self {
8026 match err {
8027 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8028 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8029 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8030 source: err.into(),
8031 }),
8032 }
8033 }
8034}
8035impl From<crate::operation::stop_transform_job::StopTransformJobError> for Error {
8036 fn from(err: crate::operation::stop_transform_job::StopTransformJobError) -> Self {
8037 match err {
8038 crate::operation::stop_transform_job::StopTransformJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8039 crate::operation::stop_transform_job::StopTransformJobError::Unhandled(inner) => Error::Unhandled(inner),
8040 }
8041 }
8042}
8043impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_action::UpdateActionError, R>> for Error
8044where
8045 R: Send + Sync + std::fmt::Debug + 'static,
8046{
8047 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_action::UpdateActionError, R>) -> Self {
8048 match err {
8049 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8050 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8051 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8052 source: err.into(),
8053 }),
8054 }
8055 }
8056}
8057impl From<crate::operation::update_action::UpdateActionError> for Error {
8058 fn from(err: crate::operation::update_action::UpdateActionError) -> Self {
8059 match err {
8060 crate::operation::update_action::UpdateActionError::ConflictException(inner) => Error::ConflictException(inner),
8061 crate::operation::update_action::UpdateActionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8062 crate::operation::update_action::UpdateActionError::Unhandled(inner) => Error::Unhandled(inner),
8063 }
8064 }
8065}
8066impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_image_config::UpdateAppImageConfigError, R>> for Error
8067where
8068 R: Send + Sync + std::fmt::Debug + 'static,
8069{
8070 fn from(
8071 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_image_config::UpdateAppImageConfigError, R>,
8072 ) -> Self {
8073 match err {
8074 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8075 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8076 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8077 source: err.into(),
8078 }),
8079 }
8080 }
8081}
8082impl From<crate::operation::update_app_image_config::UpdateAppImageConfigError> for Error {
8083 fn from(err: crate::operation::update_app_image_config::UpdateAppImageConfigError) -> Self {
8084 match err {
8085 crate::operation::update_app_image_config::UpdateAppImageConfigError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8086 crate::operation::update_app_image_config::UpdateAppImageConfigError::Unhandled(inner) => Error::Unhandled(inner),
8087 }
8088 }
8089}
8090impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_artifact::UpdateArtifactError, R>> for Error
8091where
8092 R: Send + Sync + std::fmt::Debug + 'static,
8093{
8094 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_artifact::UpdateArtifactError, R>) -> Self {
8095 match err {
8096 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8097 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8098 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8099 source: err.into(),
8100 }),
8101 }
8102 }
8103}
8104impl From<crate::operation::update_artifact::UpdateArtifactError> for Error {
8105 fn from(err: crate::operation::update_artifact::UpdateArtifactError) -> Self {
8106 match err {
8107 crate::operation::update_artifact::UpdateArtifactError::ConflictException(inner) => Error::ConflictException(inner),
8108 crate::operation::update_artifact::UpdateArtifactError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8109 crate::operation::update_artifact::UpdateArtifactError::Unhandled(inner) => Error::Unhandled(inner),
8110 }
8111 }
8112}
8113impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster::UpdateClusterError, R>> for Error
8114where
8115 R: Send + Sync + std::fmt::Debug + 'static,
8116{
8117 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster::UpdateClusterError, R>) -> Self {
8118 match err {
8119 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8120 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8121 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8122 source: err.into(),
8123 }),
8124 }
8125 }
8126}
8127impl From<crate::operation::update_cluster::UpdateClusterError> for Error {
8128 fn from(err: crate::operation::update_cluster::UpdateClusterError) -> Self {
8129 match err {
8130 crate::operation::update_cluster::UpdateClusterError::ConflictException(inner) => Error::ConflictException(inner),
8131 crate::operation::update_cluster::UpdateClusterError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8132 crate::operation::update_cluster::UpdateClusterError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8133 crate::operation::update_cluster::UpdateClusterError::Unhandled(inner) => Error::Unhandled(inner),
8134 }
8135 }
8136}
8137impl<R>
8138 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError, R>>
8139 for Error
8140where
8141 R: Send + Sync + std::fmt::Debug + 'static,
8142{
8143 fn from(
8144 err: ::aws_smithy_runtime_api::client::result::SdkError<
8145 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError,
8146 R,
8147 >,
8148 ) -> Self {
8149 match err {
8150 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8151 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8152 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8153 source: err.into(),
8154 }),
8155 }
8156 }
8157}
8158impl From<crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError> for Error {
8159 fn from(err: crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError) -> Self {
8160 match err {
8161 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::ConflictException(inner) => {
8162 Error::ConflictException(inner)
8163 }
8164 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::ResourceLimitExceeded(inner) => {
8165 Error::ResourceLimitExceeded(inner)
8166 }
8167 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::ResourceNotFound(inner) => {
8168 Error::ResourceNotFound(inner)
8169 }
8170 crate::operation::update_cluster_scheduler_config::UpdateClusterSchedulerConfigError::Unhandled(inner) => Error::Unhandled(inner),
8171 }
8172 }
8173}
8174impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_software::UpdateClusterSoftwareError, R>> for Error
8175where
8176 R: Send + Sync + std::fmt::Debug + 'static,
8177{
8178 fn from(
8179 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_software::UpdateClusterSoftwareError, R>,
8180 ) -> 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::update_cluster_software::UpdateClusterSoftwareError> for Error {
8191 fn from(err: crate::operation::update_cluster_software::UpdateClusterSoftwareError) -> Self {
8192 match err {
8193 crate::operation::update_cluster_software::UpdateClusterSoftwareError::ConflictException(inner) => Error::ConflictException(inner),
8194 crate::operation::update_cluster_software::UpdateClusterSoftwareError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8195 crate::operation::update_cluster_software::UpdateClusterSoftwareError::Unhandled(inner) => Error::Unhandled(inner),
8196 }
8197 }
8198}
8199impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_code_repository::UpdateCodeRepositoryError, R>> for Error
8200where
8201 R: Send + Sync + std::fmt::Debug + 'static,
8202{
8203 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_code_repository::UpdateCodeRepositoryError, R>) -> Self {
8204 match err {
8205 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8206 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8207 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8208 source: err.into(),
8209 }),
8210 }
8211 }
8212}
8213impl From<crate::operation::update_code_repository::UpdateCodeRepositoryError> for Error {
8214 fn from(err: crate::operation::update_code_repository::UpdateCodeRepositoryError) -> Self {
8215 match err {
8216 crate::operation::update_code_repository::UpdateCodeRepositoryError::ConflictException(inner) => Error::ConflictException(inner),
8217 crate::operation::update_code_repository::UpdateCodeRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
8218 }
8219 }
8220}
8221impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_compute_quota::UpdateComputeQuotaError, R>> for Error
8222where
8223 R: Send + Sync + std::fmt::Debug + 'static,
8224{
8225 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_compute_quota::UpdateComputeQuotaError, R>) -> Self {
8226 match err {
8227 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8228 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8229 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8230 source: err.into(),
8231 }),
8232 }
8233 }
8234}
8235impl From<crate::operation::update_compute_quota::UpdateComputeQuotaError> for Error {
8236 fn from(err: crate::operation::update_compute_quota::UpdateComputeQuotaError) -> Self {
8237 match err {
8238 crate::operation::update_compute_quota::UpdateComputeQuotaError::ConflictException(inner) => Error::ConflictException(inner),
8239 crate::operation::update_compute_quota::UpdateComputeQuotaError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8240 crate::operation::update_compute_quota::UpdateComputeQuotaError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8241 crate::operation::update_compute_quota::UpdateComputeQuotaError::Unhandled(inner) => Error::Unhandled(inner),
8242 }
8243 }
8244}
8245impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_context::UpdateContextError, R>> for Error
8246where
8247 R: Send + Sync + std::fmt::Debug + 'static,
8248{
8249 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_context::UpdateContextError, R>) -> 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_context::UpdateContextError> for Error {
8260 fn from(err: crate::operation::update_context::UpdateContextError) -> Self {
8261 match err {
8262 crate::operation::update_context::UpdateContextError::ConflictException(inner) => Error::ConflictException(inner),
8263 crate::operation::update_context::UpdateContextError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8264 crate::operation::update_context::UpdateContextError::Unhandled(inner) => Error::Unhandled(inner),
8265 }
8266 }
8267}
8268impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device_fleet::UpdateDeviceFleetError, R>> for Error
8269where
8270 R: Send + Sync + std::fmt::Debug + 'static,
8271{
8272 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device_fleet::UpdateDeviceFleetError, R>) -> Self {
8273 match err {
8274 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8275 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8276 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8277 source: err.into(),
8278 }),
8279 }
8280 }
8281}
8282impl From<crate::operation::update_device_fleet::UpdateDeviceFleetError> for Error {
8283 fn from(err: crate::operation::update_device_fleet::UpdateDeviceFleetError) -> Self {
8284 match err {
8285 crate::operation::update_device_fleet::UpdateDeviceFleetError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8286 crate::operation::update_device_fleet::UpdateDeviceFleetError::Unhandled(inner) => Error::Unhandled(inner),
8287 }
8288 }
8289}
8290impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_devices::UpdateDevicesError, 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_devices::UpdateDevicesError, 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_devices::UpdateDevicesError> for Error {
8305 fn from(err: crate::operation::update_devices::UpdateDevicesError) -> Self {
8306 match err {
8307 crate::operation::update_devices::UpdateDevicesError::Unhandled(inner) => Error::Unhandled(inner),
8308 }
8309 }
8310}
8311impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain::UpdateDomainError, R>> for Error
8312where
8313 R: Send + Sync + std::fmt::Debug + 'static,
8314{
8315 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain::UpdateDomainError, R>) -> Self {
8316 match err {
8317 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8318 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8319 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8320 source: err.into(),
8321 }),
8322 }
8323 }
8324}
8325impl From<crate::operation::update_domain::UpdateDomainError> for Error {
8326 fn from(err: crate::operation::update_domain::UpdateDomainError) -> Self {
8327 match err {
8328 crate::operation::update_domain::UpdateDomainError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8329 crate::operation::update_domain::UpdateDomainError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8330 crate::operation::update_domain::UpdateDomainError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8331 crate::operation::update_domain::UpdateDomainError::Unhandled(inner) => Error::Unhandled(inner),
8332 }
8333 }
8334}
8335impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoint::UpdateEndpointError, R>> for Error
8336where
8337 R: Send + Sync + std::fmt::Debug + 'static,
8338{
8339 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoint::UpdateEndpointError, R>) -> Self {
8340 match err {
8341 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8342 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8343 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8344 source: err.into(),
8345 }),
8346 }
8347 }
8348}
8349impl From<crate::operation::update_endpoint::UpdateEndpointError> for Error {
8350 fn from(err: crate::operation::update_endpoint::UpdateEndpointError) -> Self {
8351 match err {
8352 crate::operation::update_endpoint::UpdateEndpointError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8353 crate::operation::update_endpoint::UpdateEndpointError::Unhandled(inner) => Error::Unhandled(inner),
8354 }
8355 }
8356}
8357impl<R>
8358 From<
8359 ::aws_smithy_runtime_api::client::result::SdkError<
8360 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError,
8361 R,
8362 >,
8363 > for Error
8364where
8365 R: Send + Sync + std::fmt::Debug + 'static,
8366{
8367 fn from(
8368 err: ::aws_smithy_runtime_api::client::result::SdkError<
8369 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError,
8370 R,
8371 >,
8372 ) -> Self {
8373 match err {
8374 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8375 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8376 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8377 source: err.into(),
8378 }),
8379 }
8380 }
8381}
8382impl From<crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError> for Error {
8383 fn from(err: crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError) -> Self {
8384 match err {
8385 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError::ResourceLimitExceeded(inner) => {
8386 Error::ResourceLimitExceeded(inner)
8387 }
8388 crate::operation::update_endpoint_weights_and_capacities::UpdateEndpointWeightsAndCapacitiesError::Unhandled(inner) => {
8389 Error::Unhandled(inner)
8390 }
8391 }
8392 }
8393}
8394impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_experiment::UpdateExperimentError, R>> for Error
8395where
8396 R: Send + Sync + std::fmt::Debug + 'static,
8397{
8398 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_experiment::UpdateExperimentError, R>) -> Self {
8399 match err {
8400 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8401 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8402 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8403 source: err.into(),
8404 }),
8405 }
8406 }
8407}
8408impl From<crate::operation::update_experiment::UpdateExperimentError> for Error {
8409 fn from(err: crate::operation::update_experiment::UpdateExperimentError) -> Self {
8410 match err {
8411 crate::operation::update_experiment::UpdateExperimentError::ConflictException(inner) => Error::ConflictException(inner),
8412 crate::operation::update_experiment::UpdateExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8413 crate::operation::update_experiment::UpdateExperimentError::Unhandled(inner) => Error::Unhandled(inner),
8414 }
8415 }
8416}
8417impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_group::UpdateFeatureGroupError, R>> for Error
8418where
8419 R: Send + Sync + std::fmt::Debug + 'static,
8420{
8421 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_group::UpdateFeatureGroupError, R>) -> Self {
8422 match err {
8423 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8424 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8425 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8426 source: err.into(),
8427 }),
8428 }
8429 }
8430}
8431impl From<crate::operation::update_feature_group::UpdateFeatureGroupError> for Error {
8432 fn from(err: crate::operation::update_feature_group::UpdateFeatureGroupError) -> Self {
8433 match err {
8434 crate::operation::update_feature_group::UpdateFeatureGroupError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8435 crate::operation::update_feature_group::UpdateFeatureGroupError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8436 crate::operation::update_feature_group::UpdateFeatureGroupError::Unhandled(inner) => Error::Unhandled(inner),
8437 }
8438 }
8439}
8440impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_metadata::UpdateFeatureMetadataError, R>> for Error
8441where
8442 R: Send + Sync + std::fmt::Debug + 'static,
8443{
8444 fn from(
8445 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feature_metadata::UpdateFeatureMetadataError, R>,
8446 ) -> Self {
8447 match err {
8448 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8449 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8450 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8451 source: err.into(),
8452 }),
8453 }
8454 }
8455}
8456impl From<crate::operation::update_feature_metadata::UpdateFeatureMetadataError> for Error {
8457 fn from(err: crate::operation::update_feature_metadata::UpdateFeatureMetadataError) -> Self {
8458 match err {
8459 crate::operation::update_feature_metadata::UpdateFeatureMetadataError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8460 crate::operation::update_feature_metadata::UpdateFeatureMetadataError::Unhandled(inner) => Error::Unhandled(inner),
8461 }
8462 }
8463}
8464impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub::UpdateHubError, R>> for Error
8465where
8466 R: Send + Sync + std::fmt::Debug + 'static,
8467{
8468 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub::UpdateHubError, R>) -> Self {
8469 match err {
8470 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8471 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8472 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8473 source: err.into(),
8474 }),
8475 }
8476 }
8477}
8478impl From<crate::operation::update_hub::UpdateHubError> for Error {
8479 fn from(err: crate::operation::update_hub::UpdateHubError) -> Self {
8480 match err {
8481 crate::operation::update_hub::UpdateHubError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8482 crate::operation::update_hub::UpdateHubError::Unhandled(inner) => Error::Unhandled(inner),
8483 }
8484 }
8485}
8486impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content::UpdateHubContentError, R>> for Error
8487where
8488 R: Send + Sync + std::fmt::Debug + 'static,
8489{
8490 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content::UpdateHubContentError, R>) -> Self {
8491 match err {
8492 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8493 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8494 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8495 source: err.into(),
8496 }),
8497 }
8498 }
8499}
8500impl From<crate::operation::update_hub_content::UpdateHubContentError> for Error {
8501 fn from(err: crate::operation::update_hub_content::UpdateHubContentError) -> Self {
8502 match err {
8503 crate::operation::update_hub_content::UpdateHubContentError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8504 crate::operation::update_hub_content::UpdateHubContentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8505 crate::operation::update_hub_content::UpdateHubContentError::Unhandled(inner) => Error::Unhandled(inner),
8506 }
8507 }
8508}
8509impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content_reference::UpdateHubContentReferenceError, R>>
8510 for Error
8511where
8512 R: Send + Sync + std::fmt::Debug + 'static,
8513{
8514 fn from(
8515 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_hub_content_reference::UpdateHubContentReferenceError, R>,
8516 ) -> Self {
8517 match err {
8518 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8519 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8520 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8521 source: err.into(),
8522 }),
8523 }
8524 }
8525}
8526impl From<crate::operation::update_hub_content_reference::UpdateHubContentReferenceError> for Error {
8527 fn from(err: crate::operation::update_hub_content_reference::UpdateHubContentReferenceError) -> Self {
8528 match err {
8529 crate::operation::update_hub_content_reference::UpdateHubContentReferenceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8530 crate::operation::update_hub_content_reference::UpdateHubContentReferenceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8531 crate::operation::update_hub_content_reference::UpdateHubContentReferenceError::Unhandled(inner) => Error::Unhandled(inner),
8532 }
8533 }
8534}
8535impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image::UpdateImageError, R>> for Error
8536where
8537 R: Send + Sync + std::fmt::Debug + 'static,
8538{
8539 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image::UpdateImageError, R>) -> Self {
8540 match err {
8541 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8542 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8543 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8544 source: err.into(),
8545 }),
8546 }
8547 }
8548}
8549impl From<crate::operation::update_image::UpdateImageError> for Error {
8550 fn from(err: crate::operation::update_image::UpdateImageError) -> Self {
8551 match err {
8552 crate::operation::update_image::UpdateImageError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8553 crate::operation::update_image::UpdateImageError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8554 crate::operation::update_image::UpdateImageError::Unhandled(inner) => Error::Unhandled(inner),
8555 }
8556 }
8557}
8558impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image_version::UpdateImageVersionError, R>> for Error
8559where
8560 R: Send + Sync + std::fmt::Debug + 'static,
8561{
8562 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image_version::UpdateImageVersionError, R>) -> Self {
8563 match err {
8564 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8565 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8566 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8567 source: err.into(),
8568 }),
8569 }
8570 }
8571}
8572impl From<crate::operation::update_image_version::UpdateImageVersionError> for Error {
8573 fn from(err: crate::operation::update_image_version::UpdateImageVersionError) -> Self {
8574 match err {
8575 crate::operation::update_image_version::UpdateImageVersionError::ResourceInUse(inner) => Error::ResourceInUse(inner),
8576 crate::operation::update_image_version::UpdateImageVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8577 crate::operation::update_image_version::UpdateImageVersionError::Unhandled(inner) => Error::Unhandled(inner),
8578 }
8579 }
8580}
8581impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_component::UpdateInferenceComponentError, R>>
8582 for Error
8583where
8584 R: Send + Sync + std::fmt::Debug + 'static,
8585{
8586 fn from(
8587 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_component::UpdateInferenceComponentError, R>,
8588 ) -> Self {
8589 match err {
8590 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8591 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8592 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8593 source: err.into(),
8594 }),
8595 }
8596 }
8597}
8598impl From<crate::operation::update_inference_component::UpdateInferenceComponentError> for Error {
8599 fn from(err: crate::operation::update_inference_component::UpdateInferenceComponentError) -> Self {
8600 match err {
8601 crate::operation::update_inference_component::UpdateInferenceComponentError::ResourceLimitExceeded(inner) => {
8602 Error::ResourceLimitExceeded(inner)
8603 }
8604 crate::operation::update_inference_component::UpdateInferenceComponentError::Unhandled(inner) => Error::Unhandled(inner),
8605 }
8606 }
8607}
8608impl<R>
8609 From<
8610 ::aws_smithy_runtime_api::client::result::SdkError<
8611 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError,
8612 R,
8613 >,
8614 > for Error
8615where
8616 R: Send + Sync + std::fmt::Debug + 'static,
8617{
8618 fn from(
8619 err: ::aws_smithy_runtime_api::client::result::SdkError<
8620 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError,
8621 R,
8622 >,
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_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError> for Error {
8634 fn from(err: crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError) -> Self {
8635 match err {
8636 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError::ResourceLimitExceeded(inner) => {
8637 Error::ResourceLimitExceeded(inner)
8638 }
8639 crate::operation::update_inference_component_runtime_config::UpdateInferenceComponentRuntimeConfigError::Unhandled(inner) => {
8640 Error::Unhandled(inner)
8641 }
8642 }
8643 }
8644}
8645impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_experiment::UpdateInferenceExperimentError, R>>
8646 for Error
8647where
8648 R: Send + Sync + std::fmt::Debug + 'static,
8649{
8650 fn from(
8651 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_inference_experiment::UpdateInferenceExperimentError, R>,
8652 ) -> Self {
8653 match err {
8654 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8655 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8656 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8657 source: err.into(),
8658 }),
8659 }
8660 }
8661}
8662impl From<crate::operation::update_inference_experiment::UpdateInferenceExperimentError> for Error {
8663 fn from(err: crate::operation::update_inference_experiment::UpdateInferenceExperimentError) -> Self {
8664 match err {
8665 crate::operation::update_inference_experiment::UpdateInferenceExperimentError::ConflictException(inner) => {
8666 Error::ConflictException(inner)
8667 }
8668 crate::operation::update_inference_experiment::UpdateInferenceExperimentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8669 crate::operation::update_inference_experiment::UpdateInferenceExperimentError::Unhandled(inner) => Error::Unhandled(inner),
8670 }
8671 }
8672}
8673impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError, R>>
8674 for Error
8675where
8676 R: Send + Sync + std::fmt::Debug + 'static,
8677{
8678 fn from(
8679 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError, R>,
8680 ) -> Self {
8681 match err {
8682 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8683 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8684 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8685 source: err.into(),
8686 }),
8687 }
8688 }
8689}
8690impl From<crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError> for Error {
8691 fn from(err: crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError) -> Self {
8692 match err {
8693 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::ConflictException(inner) => {
8694 Error::ConflictException(inner)
8695 }
8696 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::ResourceLimitExceeded(inner) => {
8697 Error::ResourceLimitExceeded(inner)
8698 }
8699 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::ResourceNotFound(inner) => {
8700 Error::ResourceNotFound(inner)
8701 }
8702 crate::operation::update_mlflow_tracking_server::UpdateMlflowTrackingServerError::Unhandled(inner) => Error::Unhandled(inner),
8703 }
8704 }
8705}
8706impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_card::UpdateModelCardError, R>> for Error
8707where
8708 R: Send + Sync + std::fmt::Debug + 'static,
8709{
8710 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_card::UpdateModelCardError, R>) -> Self {
8711 match err {
8712 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8713 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8714 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8715 source: err.into(),
8716 }),
8717 }
8718 }
8719}
8720impl From<crate::operation::update_model_card::UpdateModelCardError> for Error {
8721 fn from(err: crate::operation::update_model_card::UpdateModelCardError) -> Self {
8722 match err {
8723 crate::operation::update_model_card::UpdateModelCardError::ConflictException(inner) => Error::ConflictException(inner),
8724 crate::operation::update_model_card::UpdateModelCardError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
8725 crate::operation::update_model_card::UpdateModelCardError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8726 crate::operation::update_model_card::UpdateModelCardError::Unhandled(inner) => Error::Unhandled(inner),
8727 }
8728 }
8729}
8730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_package::UpdateModelPackageError, R>> for Error
8731where
8732 R: Send + Sync + std::fmt::Debug + 'static,
8733{
8734 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model_package::UpdateModelPackageError, R>) -> Self {
8735 match err {
8736 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8737 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8738 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8739 source: err.into(),
8740 }),
8741 }
8742 }
8743}
8744impl From<crate::operation::update_model_package::UpdateModelPackageError> for Error {
8745 fn from(err: crate::operation::update_model_package::UpdateModelPackageError) -> Self {
8746 match err {
8747 crate::operation::update_model_package::UpdateModelPackageError::ConflictException(inner) => Error::ConflictException(inner),
8748 crate::operation::update_model_package::UpdateModelPackageError::Unhandled(inner) => Error::Unhandled(inner),
8749 }
8750 }
8751}
8752impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_alert::UpdateMonitoringAlertError, R>> for Error
8753where
8754 R: Send + Sync + std::fmt::Debug + 'static,
8755{
8756 fn from(
8757 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_alert::UpdateMonitoringAlertError, R>,
8758 ) -> Self {
8759 match err {
8760 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8761 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8762 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8763 source: err.into(),
8764 }),
8765 }
8766 }
8767}
8768impl From<crate::operation::update_monitoring_alert::UpdateMonitoringAlertError> for Error {
8769 fn from(err: crate::operation::update_monitoring_alert::UpdateMonitoringAlertError) -> Self {
8770 match err {
8771 crate::operation::update_monitoring_alert::UpdateMonitoringAlertError::ResourceLimitExceeded(inner) => {
8772 Error::ResourceLimitExceeded(inner)
8773 }
8774 crate::operation::update_monitoring_alert::UpdateMonitoringAlertError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8775 crate::operation::update_monitoring_alert::UpdateMonitoringAlertError::Unhandled(inner) => Error::Unhandled(inner),
8776 }
8777 }
8778}
8779impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError, R>>
8780 for Error
8781where
8782 R: Send + Sync + std::fmt::Debug + 'static,
8783{
8784 fn from(
8785 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError, R>,
8786 ) -> Self {
8787 match err {
8788 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8789 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8790 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8791 source: err.into(),
8792 }),
8793 }
8794 }
8795}
8796impl From<crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError> for Error {
8797 fn from(err: crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError) -> Self {
8798 match err {
8799 crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError::ResourceLimitExceeded(inner) => {
8800 Error::ResourceLimitExceeded(inner)
8801 }
8802 crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8803 crate::operation::update_monitoring_schedule::UpdateMonitoringScheduleError::Unhandled(inner) => Error::Unhandled(inner),
8804 }
8805 }
8806}
8807impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notebook_instance::UpdateNotebookInstanceError, R>> for Error
8808where
8809 R: Send + Sync + std::fmt::Debug + 'static,
8810{
8811 fn from(
8812 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notebook_instance::UpdateNotebookInstanceError, R>,
8813 ) -> Self {
8814 match err {
8815 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8816 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8817 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8818 source: err.into(),
8819 }),
8820 }
8821 }
8822}
8823impl From<crate::operation::update_notebook_instance::UpdateNotebookInstanceError> for Error {
8824 fn from(err: crate::operation::update_notebook_instance::UpdateNotebookInstanceError) -> Self {
8825 match err {
8826 crate::operation::update_notebook_instance::UpdateNotebookInstanceError::ResourceLimitExceeded(inner) => {
8827 Error::ResourceLimitExceeded(inner)
8828 }
8829 crate::operation::update_notebook_instance::UpdateNotebookInstanceError::Unhandled(inner) => Error::Unhandled(inner),
8830 }
8831 }
8832}
8833impl<R>
8834 From<
8835 ::aws_smithy_runtime_api::client::result::SdkError<
8836 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError,
8837 R,
8838 >,
8839 > for Error
8840where
8841 R: Send + Sync + std::fmt::Debug + 'static,
8842{
8843 fn from(
8844 err: ::aws_smithy_runtime_api::client::result::SdkError<
8845 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError,
8846 R,
8847 >,
8848 ) -> Self {
8849 match err {
8850 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8851 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8852 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8853 source: err.into(),
8854 }),
8855 }
8856 }
8857}
8858impl From<crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError> for Error {
8859 fn from(err: crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError) -> Self {
8860 match err {
8861 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError::ResourceLimitExceeded(inner) => {
8862 Error::ResourceLimitExceeded(inner)
8863 }
8864 crate::operation::update_notebook_instance_lifecycle_config::UpdateNotebookInstanceLifecycleConfigError::Unhandled(inner) => {
8865 Error::Unhandled(inner)
8866 }
8867 }
8868 }
8869}
8870impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_partner_app::UpdatePartnerAppError, R>> for Error
8871where
8872 R: Send + Sync + std::fmt::Debug + 'static,
8873{
8874 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_partner_app::UpdatePartnerAppError, R>) -> Self {
8875 match err {
8876 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8877 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8878 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8879 source: err.into(),
8880 }),
8881 }
8882 }
8883}
8884impl From<crate::operation::update_partner_app::UpdatePartnerAppError> for Error {
8885 fn from(err: crate::operation::update_partner_app::UpdatePartnerAppError) -> Self {
8886 match err {
8887 crate::operation::update_partner_app::UpdatePartnerAppError::ConflictException(inner) => Error::ConflictException(inner),
8888 crate::operation::update_partner_app::UpdatePartnerAppError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8889 crate::operation::update_partner_app::UpdatePartnerAppError::Unhandled(inner) => Error::Unhandled(inner),
8890 }
8891 }
8892}
8893impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline::UpdatePipelineError, R>> for Error
8894where
8895 R: Send + Sync + std::fmt::Debug + 'static,
8896{
8897 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline::UpdatePipelineError, R>) -> Self {
8898 match err {
8899 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8900 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8901 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8902 source: err.into(),
8903 }),
8904 }
8905 }
8906}
8907impl From<crate::operation::update_pipeline::UpdatePipelineError> for Error {
8908 fn from(err: crate::operation::update_pipeline::UpdatePipelineError) -> Self {
8909 match err {
8910 crate::operation::update_pipeline::UpdatePipelineError::ConflictException(inner) => Error::ConflictException(inner),
8911 crate::operation::update_pipeline::UpdatePipelineError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8912 crate::operation::update_pipeline::UpdatePipelineError::Unhandled(inner) => Error::Unhandled(inner),
8913 }
8914 }
8915}
8916impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_execution::UpdatePipelineExecutionError, R>>
8917 for Error
8918where
8919 R: Send + Sync + std::fmt::Debug + 'static,
8920{
8921 fn from(
8922 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_execution::UpdatePipelineExecutionError, R>,
8923 ) -> Self {
8924 match err {
8925 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8926 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8927 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8928 source: err.into(),
8929 }),
8930 }
8931 }
8932}
8933impl From<crate::operation::update_pipeline_execution::UpdatePipelineExecutionError> for Error {
8934 fn from(err: crate::operation::update_pipeline_execution::UpdatePipelineExecutionError) -> Self {
8935 match err {
8936 crate::operation::update_pipeline_execution::UpdatePipelineExecutionError::ConflictException(inner) => Error::ConflictException(inner),
8937 crate::operation::update_pipeline_execution::UpdatePipelineExecutionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8938 crate::operation::update_pipeline_execution::UpdatePipelineExecutionError::Unhandled(inner) => Error::Unhandled(inner),
8939 }
8940 }
8941}
8942impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_version::UpdatePipelineVersionError, R>> for Error
8943where
8944 R: Send + Sync + std::fmt::Debug + 'static,
8945{
8946 fn from(
8947 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pipeline_version::UpdatePipelineVersionError, R>,
8948 ) -> Self {
8949 match err {
8950 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8951 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8952 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8953 source: err.into(),
8954 }),
8955 }
8956 }
8957}
8958impl From<crate::operation::update_pipeline_version::UpdatePipelineVersionError> for Error {
8959 fn from(err: crate::operation::update_pipeline_version::UpdatePipelineVersionError) -> Self {
8960 match err {
8961 crate::operation::update_pipeline_version::UpdatePipelineVersionError::ConflictException(inner) => Error::ConflictException(inner),
8962 crate::operation::update_pipeline_version::UpdatePipelineVersionError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
8963 crate::operation::update_pipeline_version::UpdatePipelineVersionError::Unhandled(inner) => Error::Unhandled(inner),
8964 }
8965 }
8966}
8967impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>> for Error
8968where
8969 R: Send + Sync + std::fmt::Debug + 'static,
8970{
8971 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>) -> Self {
8972 match err {
8973 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8974 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8975 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8976 source: err.into(),
8977 }),
8978 }
8979 }
8980}
8981impl From<crate::operation::update_project::UpdateProjectError> for Error {
8982 fn from(err: crate::operation::update_project::UpdateProjectError) -> Self {
8983 match err {
8984 crate::operation::update_project::UpdateProjectError::ConflictException(inner) => Error::ConflictException(inner),
8985 crate::operation::update_project::UpdateProjectError::Unhandled(inner) => Error::Unhandled(inner),
8986 }
8987 }
8988}
8989impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_space::UpdateSpaceError, R>> for Error
8990where
8991 R: Send + Sync + std::fmt::Debug + 'static,
8992{
8993 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_space::UpdateSpaceError, R>) -> Self {
8994 match err {
8995 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
8996 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
8997 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
8998 source: err.into(),
8999 }),
9000 }
9001 }
9002}
9003impl From<crate::operation::update_space::UpdateSpaceError> for Error {
9004 fn from(err: crate::operation::update_space::UpdateSpaceError) -> Self {
9005 match err {
9006 crate::operation::update_space::UpdateSpaceError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9007 crate::operation::update_space::UpdateSpaceError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9008 crate::operation::update_space::UpdateSpaceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9009 crate::operation::update_space::UpdateSpaceError::Unhandled(inner) => Error::Unhandled(inner),
9010 }
9011 }
9012}
9013impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_training_job::UpdateTrainingJobError, R>> for Error
9014where
9015 R: Send + Sync + std::fmt::Debug + 'static,
9016{
9017 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_training_job::UpdateTrainingJobError, R>) -> Self {
9018 match err {
9019 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9020 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9021 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9022 source: err.into(),
9023 }),
9024 }
9025 }
9026}
9027impl From<crate::operation::update_training_job::UpdateTrainingJobError> for Error {
9028 fn from(err: crate::operation::update_training_job::UpdateTrainingJobError) -> Self {
9029 match err {
9030 crate::operation::update_training_job::UpdateTrainingJobError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9031 crate::operation::update_training_job::UpdateTrainingJobError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9032 crate::operation::update_training_job::UpdateTrainingJobError::Unhandled(inner) => Error::Unhandled(inner),
9033 }
9034 }
9035}
9036impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial::UpdateTrialError, R>> for Error
9037where
9038 R: Send + Sync + std::fmt::Debug + 'static,
9039{
9040 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial::UpdateTrialError, R>) -> Self {
9041 match err {
9042 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9043 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9044 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9045 source: err.into(),
9046 }),
9047 }
9048 }
9049}
9050impl From<crate::operation::update_trial::UpdateTrialError> for Error {
9051 fn from(err: crate::operation::update_trial::UpdateTrialError) -> Self {
9052 match err {
9053 crate::operation::update_trial::UpdateTrialError::ConflictException(inner) => Error::ConflictException(inner),
9054 crate::operation::update_trial::UpdateTrialError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9055 crate::operation::update_trial::UpdateTrialError::Unhandled(inner) => Error::Unhandled(inner),
9056 }
9057 }
9058}
9059impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial_component::UpdateTrialComponentError, R>> for Error
9060where
9061 R: Send + Sync + std::fmt::Debug + 'static,
9062{
9063 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_trial_component::UpdateTrialComponentError, R>) -> Self {
9064 match err {
9065 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9066 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9067 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9068 source: err.into(),
9069 }),
9070 }
9071 }
9072}
9073impl From<crate::operation::update_trial_component::UpdateTrialComponentError> for Error {
9074 fn from(err: crate::operation::update_trial_component::UpdateTrialComponentError) -> Self {
9075 match err {
9076 crate::operation::update_trial_component::UpdateTrialComponentError::ConflictException(inner) => Error::ConflictException(inner),
9077 crate::operation::update_trial_component::UpdateTrialComponentError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9078 crate::operation::update_trial_component::UpdateTrialComponentError::Unhandled(inner) => Error::Unhandled(inner),
9079 }
9080 }
9081}
9082impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_profile::UpdateUserProfileError, R>> for Error
9083where
9084 R: Send + Sync + std::fmt::Debug + 'static,
9085{
9086 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_profile::UpdateUserProfileError, R>) -> Self {
9087 match err {
9088 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9089 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9090 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9091 source: err.into(),
9092 }),
9093 }
9094 }
9095}
9096impl From<crate::operation::update_user_profile::UpdateUserProfileError> for Error {
9097 fn from(err: crate::operation::update_user_profile::UpdateUserProfileError) -> Self {
9098 match err {
9099 crate::operation::update_user_profile::UpdateUserProfileError::ResourceInUse(inner) => Error::ResourceInUse(inner),
9100 crate::operation::update_user_profile::UpdateUserProfileError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9101 crate::operation::update_user_profile::UpdateUserProfileError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
9102 crate::operation::update_user_profile::UpdateUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
9103 }
9104 }
9105}
9106impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workforce::UpdateWorkforceError, R>> for Error
9107where
9108 R: Send + Sync + std::fmt::Debug + 'static,
9109{
9110 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workforce::UpdateWorkforceError, R>) -> Self {
9111 match err {
9112 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9113 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9114 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9115 source: err.into(),
9116 }),
9117 }
9118 }
9119}
9120impl From<crate::operation::update_workforce::UpdateWorkforceError> for Error {
9121 fn from(err: crate::operation::update_workforce::UpdateWorkforceError) -> Self {
9122 match err {
9123 crate::operation::update_workforce::UpdateWorkforceError::ConflictException(inner) => Error::ConflictException(inner),
9124 crate::operation::update_workforce::UpdateWorkforceError::Unhandled(inner) => Error::Unhandled(inner),
9125 }
9126 }
9127}
9128impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workteam::UpdateWorkteamError, R>> for Error
9129where
9130 R: Send + Sync + std::fmt::Debug + 'static,
9131{
9132 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workteam::UpdateWorkteamError, R>) -> Self {
9133 match err {
9134 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
9135 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9136 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
9137 source: err.into(),
9138 }),
9139 }
9140 }
9141}
9142impl From<crate::operation::update_workteam::UpdateWorkteamError> for Error {
9143 fn from(err: crate::operation::update_workteam::UpdateWorkteamError) -> Self {
9144 match err {
9145 crate::operation::update_workteam::UpdateWorkteamError::ResourceLimitExceeded(inner) => Error::ResourceLimitExceeded(inner),
9146 crate::operation::update_workteam::UpdateWorkteamError::Unhandled(inner) => Error::Unhandled(inner),
9147 }
9148 }
9149}
9150impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
9151where
9152 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
9153 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
9154{
9155 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
9156 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
9157 meta: ::std::default::Default::default(),
9158 source: err.into(),
9159 })
9160 }
9161}
9162impl ::std::error::Error for Error {
9163 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
9164 match self {
9165 Error::ConflictException(inner) => inner.source(),
9166 Error::ResourceInUse(inner) => inner.source(),
9167 Error::ResourceLimitExceeded(inner) => inner.source(),
9168 Error::ResourceNotFound(inner) => inner.source(),
9169 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
9170 }
9171 }
9172}
9173impl ::aws_types::request_id::RequestId for Error {
9174 fn request_id(&self) -> Option<&str> {
9175 match self {
9176 Self::ConflictException(e) => e.request_id(),
9177 Self::ResourceInUse(e) => e.request_id(),
9178 Self::ResourceLimitExceeded(e) => e.request_id(),
9179 Self::ResourceNotFound(e) => e.request_id(),
9180 Self::Unhandled(e) => e.meta.request_id(),
9181 }
9182 }
9183}