aws_sdk_machinelearning/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>A second request to use or change an object was not allowed. This can result from retrying a request using a parameter that was not present in the original request.</p>
7    IdempotentParameterMismatchException(crate::types::error::IdempotentParameterMismatchException),
8    /// <p>An error on the server occurred when trying to process a request.</p>
9    InternalServerException(crate::types::error::InternalServerException),
10    /// <p>An error on the client occurred. Typically, the cause is an invalid input value.</p>
11    InvalidInputException(crate::types::error::InvalidInputException),
12    #[allow(missing_docs)] // documentation missing in model
13    InvalidTagException(crate::types::error::InvalidTagException),
14    /// <p>The subscriber exceeded the maximum number of operations. This exception can occur when listing objects such as <code>DataSource</code>.</p>
15    LimitExceededException(crate::types::error::LimitExceededException),
16    /// <p>The exception is thrown when a predict request is made to an unmounted <code>MLModel</code>.</p>
17    PredictorNotMountedException(crate::types::error::PredictorNotMountedException),
18    /// <p>A specified resource cannot be located.</p>
19    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
20    #[allow(missing_docs)] // documentation missing in model
21    TagLimitExceededException(crate::types::error::TagLimitExceededException),
22    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
23    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
24    variable wildcard pattern and check `.code()`:
25     \
26    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
27     \
28    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
29    Unhandled(crate::error::sealed_unhandled::Unhandled),
30}
31impl ::std::fmt::Display for Error {
32    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
33        match self {
34            Error::IdempotentParameterMismatchException(inner) => inner.fmt(f),
35            Error::InternalServerException(inner) => inner.fmt(f),
36            Error::InvalidInputException(inner) => inner.fmt(f),
37            Error::InvalidTagException(inner) => inner.fmt(f),
38            Error::LimitExceededException(inner) => inner.fmt(f),
39            Error::PredictorNotMountedException(inner) => inner.fmt(f),
40            Error::ResourceNotFoundException(inner) => inner.fmt(f),
41            Error::TagLimitExceededException(inner) => inner.fmt(f),
42            Error::Unhandled(_) => {
43                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
44                    write!(f, "unhandled error ({code})")
45                } else {
46                    f.write_str("unhandled error")
47                }
48            }
49        }
50    }
51}
52impl From<::aws_smithy_types::error::operation::BuildError> for Error {
53    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
54        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
55            source: value.into(),
56            meta: ::std::default::Default::default(),
57        })
58    }
59}
60impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
61    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
62        match self {
63            Self::IdempotentParameterMismatchException(inner) => inner.meta(),
64            Self::InternalServerException(inner) => inner.meta(),
65            Self::InvalidInputException(inner) => inner.meta(),
66            Self::InvalidTagException(inner) => inner.meta(),
67            Self::LimitExceededException(inner) => inner.meta(),
68            Self::PredictorNotMountedException(inner) => inner.meta(),
69            Self::ResourceNotFoundException(inner) => inner.meta(),
70            Self::TagLimitExceededException(inner) => inner.meta(),
71            Self::Unhandled(inner) => &inner.meta,
72        }
73    }
74}
75impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_tags::AddTagsError, R>> for Error
76where
77    R: Send + Sync + std::fmt::Debug + 'static,
78{
79    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_tags::AddTagsError, R>) -> Self {
80        match err {
81            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
82            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
83                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
84                source: err.into(),
85            }),
86        }
87    }
88}
89impl From<crate::operation::add_tags::AddTagsError> for Error {
90    fn from(err: crate::operation::add_tags::AddTagsError) -> Self {
91        match err {
92            crate::operation::add_tags::AddTagsError::InternalServerException(inner) => Error::InternalServerException(inner),
93            crate::operation::add_tags::AddTagsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
94            crate::operation::add_tags::AddTagsError::InvalidTagException(inner) => Error::InvalidTagException(inner),
95            crate::operation::add_tags::AddTagsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
96            crate::operation::add_tags::AddTagsError::TagLimitExceededException(inner) => Error::TagLimitExceededException(inner),
97            crate::operation::add_tags::AddTagsError::Unhandled(inner) => Error::Unhandled(inner),
98        }
99    }
100}
101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_batch_prediction::CreateBatchPredictionError, R>> for Error
102where
103    R: Send + Sync + std::fmt::Debug + 'static,
104{
105    fn from(
106        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_batch_prediction::CreateBatchPredictionError, R>,
107    ) -> Self {
108        match err {
109            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
110            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
111                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
112                source: err.into(),
113            }),
114        }
115    }
116}
117impl From<crate::operation::create_batch_prediction::CreateBatchPredictionError> for Error {
118    fn from(err: crate::operation::create_batch_prediction::CreateBatchPredictionError) -> Self {
119        match err {
120            crate::operation::create_batch_prediction::CreateBatchPredictionError::IdempotentParameterMismatchException(inner) => {
121                Error::IdempotentParameterMismatchException(inner)
122            }
123            crate::operation::create_batch_prediction::CreateBatchPredictionError::InternalServerException(inner) => {
124                Error::InternalServerException(inner)
125            }
126            crate::operation::create_batch_prediction::CreateBatchPredictionError::InvalidInputException(inner) => {
127                Error::InvalidInputException(inner)
128            }
129            crate::operation::create_batch_prediction::CreateBatchPredictionError::Unhandled(inner) => Error::Unhandled(inner),
130        }
131    }
132}
133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_source_from_rds::CreateDataSourceFromRDSError, R>>
134    for Error
135where
136    R: Send + Sync + std::fmt::Debug + 'static,
137{
138    fn from(
139        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_source_from_rds::CreateDataSourceFromRDSError, R>,
140    ) -> Self {
141        match err {
142            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
143            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
144                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
145                source: err.into(),
146            }),
147        }
148    }
149}
150impl From<crate::operation::create_data_source_from_rds::CreateDataSourceFromRDSError> for Error {
151    fn from(err: crate::operation::create_data_source_from_rds::CreateDataSourceFromRDSError) -> Self {
152        match err {
153            crate::operation::create_data_source_from_rds::CreateDataSourceFromRDSError::IdempotentParameterMismatchException(inner) => {
154                Error::IdempotentParameterMismatchException(inner)
155            }
156            crate::operation::create_data_source_from_rds::CreateDataSourceFromRDSError::InternalServerException(inner) => {
157                Error::InternalServerException(inner)
158            }
159            crate::operation::create_data_source_from_rds::CreateDataSourceFromRDSError::InvalidInputException(inner) => {
160                Error::InvalidInputException(inner)
161            }
162            crate::operation::create_data_source_from_rds::CreateDataSourceFromRDSError::Unhandled(inner) => Error::Unhandled(inner),
163        }
164    }
165}
166impl<R>
167    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_source_from_redshift::CreateDataSourceFromRedshiftError, R>>
168    for Error
169where
170    R: Send + Sync + std::fmt::Debug + 'static,
171{
172    fn from(
173        err: ::aws_smithy_runtime_api::client::result::SdkError<
174            crate::operation::create_data_source_from_redshift::CreateDataSourceFromRedshiftError,
175            R,
176        >,
177    ) -> Self {
178        match err {
179            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
180            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
181                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
182                source: err.into(),
183            }),
184        }
185    }
186}
187impl From<crate::operation::create_data_source_from_redshift::CreateDataSourceFromRedshiftError> for Error {
188    fn from(err: crate::operation::create_data_source_from_redshift::CreateDataSourceFromRedshiftError) -> Self {
189        match err {
190            crate::operation::create_data_source_from_redshift::CreateDataSourceFromRedshiftError::IdempotentParameterMismatchException(inner) => {
191                Error::IdempotentParameterMismatchException(inner)
192            }
193            crate::operation::create_data_source_from_redshift::CreateDataSourceFromRedshiftError::InternalServerException(inner) => {
194                Error::InternalServerException(inner)
195            }
196            crate::operation::create_data_source_from_redshift::CreateDataSourceFromRedshiftError::InvalidInputException(inner) => {
197                Error::InvalidInputException(inner)
198            }
199            crate::operation::create_data_source_from_redshift::CreateDataSourceFromRedshiftError::Unhandled(inner) => Error::Unhandled(inner),
200        }
201    }
202}
203impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_source_from_s3::CreateDataSourceFromS3Error, R>>
204    for Error
205where
206    R: Send + Sync + std::fmt::Debug + 'static,
207{
208    fn from(
209        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_source_from_s3::CreateDataSourceFromS3Error, R>,
210    ) -> Self {
211        match err {
212            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
213            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
214                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
215                source: err.into(),
216            }),
217        }
218    }
219}
220impl From<crate::operation::create_data_source_from_s3::CreateDataSourceFromS3Error> for Error {
221    fn from(err: crate::operation::create_data_source_from_s3::CreateDataSourceFromS3Error) -> Self {
222        match err {
223            crate::operation::create_data_source_from_s3::CreateDataSourceFromS3Error::IdempotentParameterMismatchException(inner) => {
224                Error::IdempotentParameterMismatchException(inner)
225            }
226            crate::operation::create_data_source_from_s3::CreateDataSourceFromS3Error::InternalServerException(inner) => {
227                Error::InternalServerException(inner)
228            }
229            crate::operation::create_data_source_from_s3::CreateDataSourceFromS3Error::InvalidInputException(inner) => {
230                Error::InvalidInputException(inner)
231            }
232            crate::operation::create_data_source_from_s3::CreateDataSourceFromS3Error::Unhandled(inner) => Error::Unhandled(inner),
233        }
234    }
235}
236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_evaluation::CreateEvaluationError, R>> for Error
237where
238    R: Send + Sync + std::fmt::Debug + 'static,
239{
240    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_evaluation::CreateEvaluationError, R>) -> Self {
241        match err {
242            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
243            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
244                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
245                source: err.into(),
246            }),
247        }
248    }
249}
250impl From<crate::operation::create_evaluation::CreateEvaluationError> for Error {
251    fn from(err: crate::operation::create_evaluation::CreateEvaluationError) -> Self {
252        match err {
253            crate::operation::create_evaluation::CreateEvaluationError::IdempotentParameterMismatchException(inner) => {
254                Error::IdempotentParameterMismatchException(inner)
255            }
256            crate::operation::create_evaluation::CreateEvaluationError::InternalServerException(inner) => Error::InternalServerException(inner),
257            crate::operation::create_evaluation::CreateEvaluationError::InvalidInputException(inner) => Error::InvalidInputException(inner),
258            crate::operation::create_evaluation::CreateEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
259        }
260    }
261}
262impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ml_model::CreateMLModelError, R>> for Error
263where
264    R: Send + Sync + std::fmt::Debug + 'static,
265{
266    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_ml_model::CreateMLModelError, R>) -> Self {
267        match err {
268            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
269            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
270                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
271                source: err.into(),
272            }),
273        }
274    }
275}
276impl From<crate::operation::create_ml_model::CreateMLModelError> for Error {
277    fn from(err: crate::operation::create_ml_model::CreateMLModelError) -> Self {
278        match err {
279            crate::operation::create_ml_model::CreateMLModelError::IdempotentParameterMismatchException(inner) => {
280                Error::IdempotentParameterMismatchException(inner)
281            }
282            crate::operation::create_ml_model::CreateMLModelError::InternalServerException(inner) => Error::InternalServerException(inner),
283            crate::operation::create_ml_model::CreateMLModelError::InvalidInputException(inner) => Error::InvalidInputException(inner),
284            crate::operation::create_ml_model::CreateMLModelError::Unhandled(inner) => Error::Unhandled(inner),
285        }
286    }
287}
288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_realtime_endpoint::CreateRealtimeEndpointError, R>> for Error
289where
290    R: Send + Sync + std::fmt::Debug + 'static,
291{
292    fn from(
293        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_realtime_endpoint::CreateRealtimeEndpointError, R>,
294    ) -> Self {
295        match err {
296            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
297            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
298                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
299                source: err.into(),
300            }),
301        }
302    }
303}
304impl From<crate::operation::create_realtime_endpoint::CreateRealtimeEndpointError> for Error {
305    fn from(err: crate::operation::create_realtime_endpoint::CreateRealtimeEndpointError) -> Self {
306        match err {
307            crate::operation::create_realtime_endpoint::CreateRealtimeEndpointError::InternalServerException(inner) => {
308                Error::InternalServerException(inner)
309            }
310            crate::operation::create_realtime_endpoint::CreateRealtimeEndpointError::InvalidInputException(inner) => {
311                Error::InvalidInputException(inner)
312            }
313            crate::operation::create_realtime_endpoint::CreateRealtimeEndpointError::ResourceNotFoundException(inner) => {
314                Error::ResourceNotFoundException(inner)
315            }
316            crate::operation::create_realtime_endpoint::CreateRealtimeEndpointError::Unhandled(inner) => Error::Unhandled(inner),
317        }
318    }
319}
320impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_batch_prediction::DeleteBatchPredictionError, R>> for Error
321where
322    R: Send + Sync + std::fmt::Debug + 'static,
323{
324    fn from(
325        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_batch_prediction::DeleteBatchPredictionError, R>,
326    ) -> Self {
327        match err {
328            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
329            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
330                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
331                source: err.into(),
332            }),
333        }
334    }
335}
336impl From<crate::operation::delete_batch_prediction::DeleteBatchPredictionError> for Error {
337    fn from(err: crate::operation::delete_batch_prediction::DeleteBatchPredictionError) -> Self {
338        match err {
339            crate::operation::delete_batch_prediction::DeleteBatchPredictionError::InternalServerException(inner) => {
340                Error::InternalServerException(inner)
341            }
342            crate::operation::delete_batch_prediction::DeleteBatchPredictionError::InvalidInputException(inner) => {
343                Error::InvalidInputException(inner)
344            }
345            crate::operation::delete_batch_prediction::DeleteBatchPredictionError::ResourceNotFoundException(inner) => {
346                Error::ResourceNotFoundException(inner)
347            }
348            crate::operation::delete_batch_prediction::DeleteBatchPredictionError::Unhandled(inner) => Error::Unhandled(inner),
349        }
350    }
351}
352impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_source::DeleteDataSourceError, R>> for Error
353where
354    R: Send + Sync + std::fmt::Debug + 'static,
355{
356    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_source::DeleteDataSourceError, R>) -> Self {
357        match err {
358            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
359            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
360                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
361                source: err.into(),
362            }),
363        }
364    }
365}
366impl From<crate::operation::delete_data_source::DeleteDataSourceError> for Error {
367    fn from(err: crate::operation::delete_data_source::DeleteDataSourceError) -> Self {
368        match err {
369            crate::operation::delete_data_source::DeleteDataSourceError::InternalServerException(inner) => Error::InternalServerException(inner),
370            crate::operation::delete_data_source::DeleteDataSourceError::InvalidInputException(inner) => Error::InvalidInputException(inner),
371            crate::operation::delete_data_source::DeleteDataSourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
372            crate::operation::delete_data_source::DeleteDataSourceError::Unhandled(inner) => Error::Unhandled(inner),
373        }
374    }
375}
376impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_evaluation::DeleteEvaluationError, R>> for Error
377where
378    R: Send + Sync + std::fmt::Debug + 'static,
379{
380    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_evaluation::DeleteEvaluationError, R>) -> Self {
381        match err {
382            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
383            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
384                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
385                source: err.into(),
386            }),
387        }
388    }
389}
390impl From<crate::operation::delete_evaluation::DeleteEvaluationError> for Error {
391    fn from(err: crate::operation::delete_evaluation::DeleteEvaluationError) -> Self {
392        match err {
393            crate::operation::delete_evaluation::DeleteEvaluationError::InternalServerException(inner) => Error::InternalServerException(inner),
394            crate::operation::delete_evaluation::DeleteEvaluationError::InvalidInputException(inner) => Error::InvalidInputException(inner),
395            crate::operation::delete_evaluation::DeleteEvaluationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
396            crate::operation::delete_evaluation::DeleteEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
397        }
398    }
399}
400impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ml_model::DeleteMLModelError, R>> for Error
401where
402    R: Send + Sync + std::fmt::Debug + 'static,
403{
404    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_ml_model::DeleteMLModelError, R>) -> Self {
405        match err {
406            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
407            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
408                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
409                source: err.into(),
410            }),
411        }
412    }
413}
414impl From<crate::operation::delete_ml_model::DeleteMLModelError> for Error {
415    fn from(err: crate::operation::delete_ml_model::DeleteMLModelError) -> Self {
416        match err {
417            crate::operation::delete_ml_model::DeleteMLModelError::InternalServerException(inner) => Error::InternalServerException(inner),
418            crate::operation::delete_ml_model::DeleteMLModelError::InvalidInputException(inner) => Error::InvalidInputException(inner),
419            crate::operation::delete_ml_model::DeleteMLModelError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
420            crate::operation::delete_ml_model::DeleteMLModelError::Unhandled(inner) => Error::Unhandled(inner),
421        }
422    }
423}
424impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_realtime_endpoint::DeleteRealtimeEndpointError, R>> for Error
425where
426    R: Send + Sync + std::fmt::Debug + 'static,
427{
428    fn from(
429        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_realtime_endpoint::DeleteRealtimeEndpointError, R>,
430    ) -> Self {
431        match err {
432            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
433            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
434                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
435                source: err.into(),
436            }),
437        }
438    }
439}
440impl From<crate::operation::delete_realtime_endpoint::DeleteRealtimeEndpointError> for Error {
441    fn from(err: crate::operation::delete_realtime_endpoint::DeleteRealtimeEndpointError) -> Self {
442        match err {
443            crate::operation::delete_realtime_endpoint::DeleteRealtimeEndpointError::InternalServerException(inner) => {
444                Error::InternalServerException(inner)
445            }
446            crate::operation::delete_realtime_endpoint::DeleteRealtimeEndpointError::InvalidInputException(inner) => {
447                Error::InvalidInputException(inner)
448            }
449            crate::operation::delete_realtime_endpoint::DeleteRealtimeEndpointError::ResourceNotFoundException(inner) => {
450                Error::ResourceNotFoundException(inner)
451            }
452            crate::operation::delete_realtime_endpoint::DeleteRealtimeEndpointError::Unhandled(inner) => Error::Unhandled(inner),
453        }
454    }
455}
456impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>> for Error
457where
458    R: Send + Sync + std::fmt::Debug + 'static,
459{
460    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>) -> Self {
461        match err {
462            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
463            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
464                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
465                source: err.into(),
466            }),
467        }
468    }
469}
470impl From<crate::operation::delete_tags::DeleteTagsError> for Error {
471    fn from(err: crate::operation::delete_tags::DeleteTagsError) -> Self {
472        match err {
473            crate::operation::delete_tags::DeleteTagsError::InternalServerException(inner) => Error::InternalServerException(inner),
474            crate::operation::delete_tags::DeleteTagsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
475            crate::operation::delete_tags::DeleteTagsError::InvalidTagException(inner) => Error::InvalidTagException(inner),
476            crate::operation::delete_tags::DeleteTagsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
477            crate::operation::delete_tags::DeleteTagsError::Unhandled(inner) => Error::Unhandled(inner),
478        }
479    }
480}
481impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_batch_predictions::DescribeBatchPredictionsError, R>>
482    for Error
483where
484    R: Send + Sync + std::fmt::Debug + 'static,
485{
486    fn from(
487        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_batch_predictions::DescribeBatchPredictionsError, R>,
488    ) -> Self {
489        match err {
490            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
491            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
492                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
493                source: err.into(),
494            }),
495        }
496    }
497}
498impl From<crate::operation::describe_batch_predictions::DescribeBatchPredictionsError> for Error {
499    fn from(err: crate::operation::describe_batch_predictions::DescribeBatchPredictionsError) -> Self {
500        match err {
501            crate::operation::describe_batch_predictions::DescribeBatchPredictionsError::InternalServerException(inner) => {
502                Error::InternalServerException(inner)
503            }
504            crate::operation::describe_batch_predictions::DescribeBatchPredictionsError::InvalidInputException(inner) => {
505                Error::InvalidInputException(inner)
506            }
507            crate::operation::describe_batch_predictions::DescribeBatchPredictionsError::Unhandled(inner) => Error::Unhandled(inner),
508        }
509    }
510}
511impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_data_sources::DescribeDataSourcesError, R>> for Error
512where
513    R: Send + Sync + std::fmt::Debug + 'static,
514{
515    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_data_sources::DescribeDataSourcesError, R>) -> Self {
516        match err {
517            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
518            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
519                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
520                source: err.into(),
521            }),
522        }
523    }
524}
525impl From<crate::operation::describe_data_sources::DescribeDataSourcesError> for Error {
526    fn from(err: crate::operation::describe_data_sources::DescribeDataSourcesError) -> Self {
527        match err {
528            crate::operation::describe_data_sources::DescribeDataSourcesError::InternalServerException(inner) => {
529                Error::InternalServerException(inner)
530            }
531            crate::operation::describe_data_sources::DescribeDataSourcesError::InvalidInputException(inner) => Error::InvalidInputException(inner),
532            crate::operation::describe_data_sources::DescribeDataSourcesError::Unhandled(inner) => Error::Unhandled(inner),
533        }
534    }
535}
536impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_evaluations::DescribeEvaluationsError, R>> for Error
537where
538    R: Send + Sync + std::fmt::Debug + 'static,
539{
540    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_evaluations::DescribeEvaluationsError, R>) -> Self {
541        match err {
542            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
543            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
544                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
545                source: err.into(),
546            }),
547        }
548    }
549}
550impl From<crate::operation::describe_evaluations::DescribeEvaluationsError> for Error {
551    fn from(err: crate::operation::describe_evaluations::DescribeEvaluationsError) -> Self {
552        match err {
553            crate::operation::describe_evaluations::DescribeEvaluationsError::InternalServerException(inner) => Error::InternalServerException(inner),
554            crate::operation::describe_evaluations::DescribeEvaluationsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
555            crate::operation::describe_evaluations::DescribeEvaluationsError::Unhandled(inner) => Error::Unhandled(inner),
556        }
557    }
558}
559impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ml_models::DescribeMLModelsError, R>> for Error
560where
561    R: Send + Sync + std::fmt::Debug + 'static,
562{
563    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ml_models::DescribeMLModelsError, R>) -> Self {
564        match err {
565            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
566            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
567                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
568                source: err.into(),
569            }),
570        }
571    }
572}
573impl From<crate::operation::describe_ml_models::DescribeMLModelsError> for Error {
574    fn from(err: crate::operation::describe_ml_models::DescribeMLModelsError) -> Self {
575        match err {
576            crate::operation::describe_ml_models::DescribeMLModelsError::InternalServerException(inner) => Error::InternalServerException(inner),
577            crate::operation::describe_ml_models::DescribeMLModelsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
578            crate::operation::describe_ml_models::DescribeMLModelsError::Unhandled(inner) => Error::Unhandled(inner),
579        }
580    }
581}
582impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>> for Error
583where
584    R: Send + Sync + std::fmt::Debug + 'static,
585{
586    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>) -> Self {
587        match err {
588            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
589            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
590                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
591                source: err.into(),
592            }),
593        }
594    }
595}
596impl From<crate::operation::describe_tags::DescribeTagsError> for Error {
597    fn from(err: crate::operation::describe_tags::DescribeTagsError) -> Self {
598        match err {
599            crate::operation::describe_tags::DescribeTagsError::InternalServerException(inner) => Error::InternalServerException(inner),
600            crate::operation::describe_tags::DescribeTagsError::InvalidInputException(inner) => Error::InvalidInputException(inner),
601            crate::operation::describe_tags::DescribeTagsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
602            crate::operation::describe_tags::DescribeTagsError::Unhandled(inner) => Error::Unhandled(inner),
603        }
604    }
605}
606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_batch_prediction::GetBatchPredictionError, R>> for Error
607where
608    R: Send + Sync + std::fmt::Debug + 'static,
609{
610    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_batch_prediction::GetBatchPredictionError, R>) -> Self {
611        match err {
612            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
613            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
614                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
615                source: err.into(),
616            }),
617        }
618    }
619}
620impl From<crate::operation::get_batch_prediction::GetBatchPredictionError> for Error {
621    fn from(err: crate::operation::get_batch_prediction::GetBatchPredictionError) -> Self {
622        match err {
623            crate::operation::get_batch_prediction::GetBatchPredictionError::InternalServerException(inner) => Error::InternalServerException(inner),
624            crate::operation::get_batch_prediction::GetBatchPredictionError::InvalidInputException(inner) => Error::InvalidInputException(inner),
625            crate::operation::get_batch_prediction::GetBatchPredictionError::ResourceNotFoundException(inner) => {
626                Error::ResourceNotFoundException(inner)
627            }
628            crate::operation::get_batch_prediction::GetBatchPredictionError::Unhandled(inner) => Error::Unhandled(inner),
629        }
630    }
631}
632impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_source::GetDataSourceError, R>> for Error
633where
634    R: Send + Sync + std::fmt::Debug + 'static,
635{
636    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_source::GetDataSourceError, R>) -> Self {
637        match err {
638            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
639            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
640                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
641                source: err.into(),
642            }),
643        }
644    }
645}
646impl From<crate::operation::get_data_source::GetDataSourceError> for Error {
647    fn from(err: crate::operation::get_data_source::GetDataSourceError) -> Self {
648        match err {
649            crate::operation::get_data_source::GetDataSourceError::InternalServerException(inner) => Error::InternalServerException(inner),
650            crate::operation::get_data_source::GetDataSourceError::InvalidInputException(inner) => Error::InvalidInputException(inner),
651            crate::operation::get_data_source::GetDataSourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
652            crate::operation::get_data_source::GetDataSourceError::Unhandled(inner) => Error::Unhandled(inner),
653        }
654    }
655}
656impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_evaluation::GetEvaluationError, R>> for Error
657where
658    R: Send + Sync + std::fmt::Debug + 'static,
659{
660    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_evaluation::GetEvaluationError, R>) -> Self {
661        match err {
662            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
663            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
664                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
665                source: err.into(),
666            }),
667        }
668    }
669}
670impl From<crate::operation::get_evaluation::GetEvaluationError> for Error {
671    fn from(err: crate::operation::get_evaluation::GetEvaluationError) -> Self {
672        match err {
673            crate::operation::get_evaluation::GetEvaluationError::InternalServerException(inner) => Error::InternalServerException(inner),
674            crate::operation::get_evaluation::GetEvaluationError::InvalidInputException(inner) => Error::InvalidInputException(inner),
675            crate::operation::get_evaluation::GetEvaluationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
676            crate::operation::get_evaluation::GetEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
677        }
678    }
679}
680impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ml_model::GetMLModelError, R>> for Error
681where
682    R: Send + Sync + std::fmt::Debug + 'static,
683{
684    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_ml_model::GetMLModelError, R>) -> Self {
685        match err {
686            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
687            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
688                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
689                source: err.into(),
690            }),
691        }
692    }
693}
694impl From<crate::operation::get_ml_model::GetMLModelError> for Error {
695    fn from(err: crate::operation::get_ml_model::GetMLModelError) -> Self {
696        match err {
697            crate::operation::get_ml_model::GetMLModelError::InternalServerException(inner) => Error::InternalServerException(inner),
698            crate::operation::get_ml_model::GetMLModelError::InvalidInputException(inner) => Error::InvalidInputException(inner),
699            crate::operation::get_ml_model::GetMLModelError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
700            crate::operation::get_ml_model::GetMLModelError::Unhandled(inner) => Error::Unhandled(inner),
701        }
702    }
703}
704impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::predict::PredictError, R>> for Error
705where
706    R: Send + Sync + std::fmt::Debug + 'static,
707{
708    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::predict::PredictError, R>) -> Self {
709        match err {
710            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
711            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
712                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
713                source: err.into(),
714            }),
715        }
716    }
717}
718impl From<crate::operation::predict::PredictError> for Error {
719    fn from(err: crate::operation::predict::PredictError) -> Self {
720        match err {
721            crate::operation::predict::PredictError::InternalServerException(inner) => Error::InternalServerException(inner),
722            crate::operation::predict::PredictError::InvalidInputException(inner) => Error::InvalidInputException(inner),
723            crate::operation::predict::PredictError::LimitExceededException(inner) => Error::LimitExceededException(inner),
724            crate::operation::predict::PredictError::PredictorNotMountedException(inner) => Error::PredictorNotMountedException(inner),
725            crate::operation::predict::PredictError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
726            crate::operation::predict::PredictError::Unhandled(inner) => Error::Unhandled(inner),
727        }
728    }
729}
730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_batch_prediction::UpdateBatchPredictionError, R>> for Error
731where
732    R: Send + Sync + std::fmt::Debug + 'static,
733{
734    fn from(
735        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_batch_prediction::UpdateBatchPredictionError, R>,
736    ) -> Self {
737        match err {
738            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
739            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
740                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
741                source: err.into(),
742            }),
743        }
744    }
745}
746impl From<crate::operation::update_batch_prediction::UpdateBatchPredictionError> for Error {
747    fn from(err: crate::operation::update_batch_prediction::UpdateBatchPredictionError) -> Self {
748        match err {
749            crate::operation::update_batch_prediction::UpdateBatchPredictionError::InternalServerException(inner) => {
750                Error::InternalServerException(inner)
751            }
752            crate::operation::update_batch_prediction::UpdateBatchPredictionError::InvalidInputException(inner) => {
753                Error::InvalidInputException(inner)
754            }
755            crate::operation::update_batch_prediction::UpdateBatchPredictionError::ResourceNotFoundException(inner) => {
756                Error::ResourceNotFoundException(inner)
757            }
758            crate::operation::update_batch_prediction::UpdateBatchPredictionError::Unhandled(inner) => Error::Unhandled(inner),
759        }
760    }
761}
762impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_data_source::UpdateDataSourceError, R>> for Error
763where
764    R: Send + Sync + std::fmt::Debug + 'static,
765{
766    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_data_source::UpdateDataSourceError, R>) -> Self {
767        match err {
768            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
769            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
770                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
771                source: err.into(),
772            }),
773        }
774    }
775}
776impl From<crate::operation::update_data_source::UpdateDataSourceError> for Error {
777    fn from(err: crate::operation::update_data_source::UpdateDataSourceError) -> Self {
778        match err {
779            crate::operation::update_data_source::UpdateDataSourceError::InternalServerException(inner) => Error::InternalServerException(inner),
780            crate::operation::update_data_source::UpdateDataSourceError::InvalidInputException(inner) => Error::InvalidInputException(inner),
781            crate::operation::update_data_source::UpdateDataSourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
782            crate::operation::update_data_source::UpdateDataSourceError::Unhandled(inner) => Error::Unhandled(inner),
783        }
784    }
785}
786impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_evaluation::UpdateEvaluationError, 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::update_evaluation::UpdateEvaluationError, 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::update_evaluation::UpdateEvaluationError> for Error {
801    fn from(err: crate::operation::update_evaluation::UpdateEvaluationError) -> Self {
802        match err {
803            crate::operation::update_evaluation::UpdateEvaluationError::InternalServerException(inner) => Error::InternalServerException(inner),
804            crate::operation::update_evaluation::UpdateEvaluationError::InvalidInputException(inner) => Error::InvalidInputException(inner),
805            crate::operation::update_evaluation::UpdateEvaluationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
806            crate::operation::update_evaluation::UpdateEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
807        }
808    }
809}
810impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_ml_model::UpdateMLModelError, R>> for Error
811where
812    R: Send + Sync + std::fmt::Debug + 'static,
813{
814    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_ml_model::UpdateMLModelError, R>) -> Self {
815        match err {
816            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
817            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
818                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
819                source: err.into(),
820            }),
821        }
822    }
823}
824impl From<crate::operation::update_ml_model::UpdateMLModelError> for Error {
825    fn from(err: crate::operation::update_ml_model::UpdateMLModelError) -> Self {
826        match err {
827            crate::operation::update_ml_model::UpdateMLModelError::InternalServerException(inner) => Error::InternalServerException(inner),
828            crate::operation::update_ml_model::UpdateMLModelError::InvalidInputException(inner) => Error::InvalidInputException(inner),
829            crate::operation::update_ml_model::UpdateMLModelError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
830            crate::operation::update_ml_model::UpdateMLModelError::Unhandled(inner) => Error::Unhandled(inner),
831        }
832    }
833}
834impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
835where
836    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
837    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
838{
839    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
840        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
841            meta: ::std::default::Default::default(),
842            source: err.into(),
843        })
844    }
845}
846impl ::std::error::Error for Error {
847    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
848        match self {
849            Error::IdempotentParameterMismatchException(inner) => inner.source(),
850            Error::InternalServerException(inner) => inner.source(),
851            Error::InvalidInputException(inner) => inner.source(),
852            Error::InvalidTagException(inner) => inner.source(),
853            Error::LimitExceededException(inner) => inner.source(),
854            Error::PredictorNotMountedException(inner) => inner.source(),
855            Error::ResourceNotFoundException(inner) => inner.source(),
856            Error::TagLimitExceededException(inner) => inner.source(),
857            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
858        }
859    }
860}
861impl ::aws_types::request_id::RequestId for Error {
862    fn request_id(&self) -> Option<&str> {
863        match self {
864            Self::IdempotentParameterMismatchException(e) => e.request_id(),
865            Self::InternalServerException(e) => e.request_id(),
866            Self::InvalidInputException(e) => e.request_id(),
867            Self::InvalidTagException(e) => e.request_id(),
868            Self::LimitExceededException(e) => e.request_id(),
869            Self::PredictorNotMountedException(e) => e.request_id(),
870            Self::ResourceNotFoundException(e) => e.request_id(),
871            Self::TagLimitExceededException(e) => e.request_id(),
872            Self::Unhandled(e) => e.meta.request_id(),
873        }
874    }
875}