Skip to main content

aws_sdk_cloudwatch/
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>More than one process tried to modify a resource at the same time.</p>
7    ConcurrentModificationException(crate::types::error::ConcurrentModificationException),
8    /// <p>This operation attempted to create a resource that already exists.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>Some part of the dashboard data is invalid.</p>
11    DashboardInvalidInputError(crate::types::error::DashboardInvalidInputError),
12    /// <p>The specified dashboard does not exist.</p>
13    DashboardNotFoundError(crate::types::error::DashboardNotFoundError),
14    /// <p>Request processing has failed due to some unknown error, exception, or failure.</p>
15    InternalServiceFault(crate::types::error::InternalServiceFault),
16    /// <p>Data was not syntactically valid JSON.</p>
17    InvalidFormatFault(crate::types::error::InvalidFormatFault),
18    /// <p>The next token specified is invalid.</p>
19    InvalidNextToken(crate::types::error::InvalidNextToken),
20    /// <p>Parameters were used together that cannot be used together.</p>
21    InvalidParameterCombinationException(crate::types::error::InvalidParameterCombinationException),
22    /// <p>The value of an input parameter is bad or out-of-range.</p>
23    InvalidParameterValueException(crate::types::error::InvalidParameterValueException),
24    /// <p>The operation exceeded one or more limits.</p>
25    LimitExceededException(crate::types::error::LimitExceededException),
26    /// <p>The quota for alarms for this customer has already been reached.</p>
27    LimitExceededFault(crate::types::error::LimitExceededFault),
28    /// <p>An input parameter that is required is missing.</p>
29    MissingRequiredParameterException(crate::types::error::MissingRequiredParameterException),
30    /// <p>The named resource does not exist.</p>
31    ResourceNotFound(crate::types::error::ResourceNotFound),
32    /// <p>The named resource does not exist.</p>
33    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
34    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
35    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
36    variable wildcard pattern and check `.code()`:
37     \
38    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
39     \
40    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
41    Unhandled(crate::error::sealed_unhandled::Unhandled),
42}
43impl ::std::fmt::Display for Error {
44    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
45        match self {
46            Error::ConcurrentModificationException(inner) => inner.fmt(f),
47            Error::ConflictException(inner) => inner.fmt(f),
48            Error::DashboardInvalidInputError(inner) => inner.fmt(f),
49            Error::DashboardNotFoundError(inner) => inner.fmt(f),
50            Error::InternalServiceFault(inner) => inner.fmt(f),
51            Error::InvalidFormatFault(inner) => inner.fmt(f),
52            Error::InvalidNextToken(inner) => inner.fmt(f),
53            Error::InvalidParameterCombinationException(inner) => inner.fmt(f),
54            Error::InvalidParameterValueException(inner) => inner.fmt(f),
55            Error::LimitExceededException(inner) => inner.fmt(f),
56            Error::LimitExceededFault(inner) => inner.fmt(f),
57            Error::MissingRequiredParameterException(inner) => inner.fmt(f),
58            Error::ResourceNotFound(inner) => inner.fmt(f),
59            Error::ResourceNotFoundException(inner) => inner.fmt(f),
60            Error::Unhandled(_) => {
61                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
62                    write!(f, "unhandled error ({code})")
63                } else {
64                    f.write_str("unhandled error")
65                }
66            }
67        }
68    }
69}
70impl From<::aws_smithy_types::error::operation::BuildError> for Error {
71    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
72        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
73            source: value.into(),
74            meta: ::std::default::Default::default(),
75        })
76    }
77}
78impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
79    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
80        match self {
81            Self::ConcurrentModificationException(inner) => inner.meta(),
82            Self::ConflictException(inner) => inner.meta(),
83            Self::DashboardInvalidInputError(inner) => inner.meta(),
84            Self::DashboardNotFoundError(inner) => inner.meta(),
85            Self::InternalServiceFault(inner) => inner.meta(),
86            Self::InvalidFormatFault(inner) => inner.meta(),
87            Self::InvalidNextToken(inner) => inner.meta(),
88            Self::InvalidParameterCombinationException(inner) => inner.meta(),
89            Self::InvalidParameterValueException(inner) => inner.meta(),
90            Self::LimitExceededException(inner) => inner.meta(),
91            Self::LimitExceededFault(inner) => inner.meta(),
92            Self::MissingRequiredParameterException(inner) => inner.meta(),
93            Self::ResourceNotFound(inner) => inner.meta(),
94            Self::ResourceNotFoundException(inner) => inner.meta(),
95            Self::Unhandled(inner) => &inner.meta,
96        }
97    }
98}
99impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_alarm_mute_rule::DeleteAlarmMuteRuleError, R>> for Error
100where
101    R: Send + Sync + std::fmt::Debug + 'static,
102{
103    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_alarm_mute_rule::DeleteAlarmMuteRuleError, R>) -> Self {
104        match err {
105            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
106            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
107                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
108                source: err.into(),
109            }),
110        }
111    }
112}
113impl From<crate::operation::delete_alarm_mute_rule::DeleteAlarmMuteRuleError> for Error {
114    fn from(err: crate::operation::delete_alarm_mute_rule::DeleteAlarmMuteRuleError) -> Self {
115        match err {
116            crate::operation::delete_alarm_mute_rule::DeleteAlarmMuteRuleError::Unhandled(inner) => Error::Unhandled(inner),
117        }
118    }
119}
120impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_alarms::DeleteAlarmsError, R>> for Error
121where
122    R: Send + Sync + std::fmt::Debug + 'static,
123{
124    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_alarms::DeleteAlarmsError, R>) -> Self {
125        match err {
126            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
127            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
128                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
129                source: err.into(),
130            }),
131        }
132    }
133}
134impl From<crate::operation::delete_alarms::DeleteAlarmsError> for Error {
135    fn from(err: crate::operation::delete_alarms::DeleteAlarmsError) -> Self {
136        match err {
137            crate::operation::delete_alarms::DeleteAlarmsError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
138            crate::operation::delete_alarms::DeleteAlarmsError::Unhandled(inner) => Error::Unhandled(inner),
139        }
140    }
141}
142impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError, R>> for Error
143where
144    R: Send + Sync + std::fmt::Debug + 'static,
145{
146    fn from(
147        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError, R>,
148    ) -> Self {
149        match err {
150            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
151            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
152                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
153                source: err.into(),
154            }),
155        }
156    }
157}
158impl From<crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError> for Error {
159    fn from(err: crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError) -> Self {
160        match err {
161            crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
162            crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError::InvalidParameterCombinationException(inner) => {
163                Error::InvalidParameterCombinationException(inner)
164            }
165            crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError::InvalidParameterValueException(inner) => {
166                Error::InvalidParameterValueException(inner)
167            }
168            crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError::MissingRequiredParameterException(inner) => {
169                Error::MissingRequiredParameterException(inner)
170            }
171            crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError::ResourceNotFoundException(inner) => {
172                Error::ResourceNotFoundException(inner)
173            }
174            crate::operation::delete_anomaly_detector::DeleteAnomalyDetectorError::Unhandled(inner) => Error::Unhandled(inner),
175        }
176    }
177}
178impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dashboards::DeleteDashboardsError, R>> for Error
179where
180    R: Send + Sync + std::fmt::Debug + 'static,
181{
182    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dashboards::DeleteDashboardsError, R>) -> Self {
183        match err {
184            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
185            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
186                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
187                source: err.into(),
188            }),
189        }
190    }
191}
192impl From<crate::operation::delete_dashboards::DeleteDashboardsError> for Error {
193    fn from(err: crate::operation::delete_dashboards::DeleteDashboardsError) -> Self {
194        match err {
195            crate::operation::delete_dashboards::DeleteDashboardsError::ConflictException(inner) => Error::ConflictException(inner),
196            crate::operation::delete_dashboards::DeleteDashboardsError::DashboardNotFoundError(inner) => Error::DashboardNotFoundError(inner),
197            crate::operation::delete_dashboards::DeleteDashboardsError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
198            crate::operation::delete_dashboards::DeleteDashboardsError::InvalidParameterValueException(inner) => {
199                Error::InvalidParameterValueException(inner)
200            }
201            crate::operation::delete_dashboards::DeleteDashboardsError::Unhandled(inner) => Error::Unhandled(inner),
202        }
203    }
204}
205impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_insight_rules::DeleteInsightRulesError, 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::delete_insight_rules::DeleteInsightRulesError, 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::delete_insight_rules::DeleteInsightRulesError> for Error {
220    fn from(err: crate::operation::delete_insight_rules::DeleteInsightRulesError) -> Self {
221        match err {
222            crate::operation::delete_insight_rules::DeleteInsightRulesError::InvalidParameterValueException(inner) => {
223                Error::InvalidParameterValueException(inner)
224            }
225            crate::operation::delete_insight_rules::DeleteInsightRulesError::MissingRequiredParameterException(inner) => {
226                Error::MissingRequiredParameterException(inner)
227            }
228            crate::operation::delete_insight_rules::DeleteInsightRulesError::Unhandled(inner) => Error::Unhandled(inner),
229        }
230    }
231}
232impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_metric_stream::DeleteMetricStreamError, R>> for Error
233where
234    R: Send + Sync + std::fmt::Debug + 'static,
235{
236    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_metric_stream::DeleteMetricStreamError, R>) -> Self {
237        match err {
238            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
239            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
240                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
241                source: err.into(),
242            }),
243        }
244    }
245}
246impl From<crate::operation::delete_metric_stream::DeleteMetricStreamError> for Error {
247    fn from(err: crate::operation::delete_metric_stream::DeleteMetricStreamError) -> Self {
248        match err {
249            crate::operation::delete_metric_stream::DeleteMetricStreamError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
250            crate::operation::delete_metric_stream::DeleteMetricStreamError::InvalidParameterValueException(inner) => {
251                Error::InvalidParameterValueException(inner)
252            }
253            crate::operation::delete_metric_stream::DeleteMetricStreamError::MissingRequiredParameterException(inner) => {
254                Error::MissingRequiredParameterException(inner)
255            }
256            crate::operation::delete_metric_stream::DeleteMetricStreamError::Unhandled(inner) => Error::Unhandled(inner),
257        }
258    }
259}
260impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_alarm_contributors::DescribeAlarmContributorsError, R>>
261    for Error
262where
263    R: Send + Sync + std::fmt::Debug + 'static,
264{
265    fn from(
266        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_alarm_contributors::DescribeAlarmContributorsError, R>,
267    ) -> Self {
268        match err {
269            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
270            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
271                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
272                source: err.into(),
273            }),
274        }
275    }
276}
277impl From<crate::operation::describe_alarm_contributors::DescribeAlarmContributorsError> for Error {
278    fn from(err: crate::operation::describe_alarm_contributors::DescribeAlarmContributorsError) -> Self {
279        match err {
280            crate::operation::describe_alarm_contributors::DescribeAlarmContributorsError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
281            crate::operation::describe_alarm_contributors::DescribeAlarmContributorsError::ResourceNotFoundException(inner) => {
282                Error::ResourceNotFoundException(inner)
283            }
284            crate::operation::describe_alarm_contributors::DescribeAlarmContributorsError::Unhandled(inner) => Error::Unhandled(inner),
285        }
286    }
287}
288impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_alarm_history::DescribeAlarmHistoryError, R>> for Error
289where
290    R: Send + Sync + std::fmt::Debug + 'static,
291{
292    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_alarm_history::DescribeAlarmHistoryError, R>) -> Self {
293        match err {
294            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
295            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
296                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
297                source: err.into(),
298            }),
299        }
300    }
301}
302impl From<crate::operation::describe_alarm_history::DescribeAlarmHistoryError> for Error {
303    fn from(err: crate::operation::describe_alarm_history::DescribeAlarmHistoryError) -> Self {
304        match err {
305            crate::operation::describe_alarm_history::DescribeAlarmHistoryError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
306            crate::operation::describe_alarm_history::DescribeAlarmHistoryError::Unhandled(inner) => Error::Unhandled(inner),
307        }
308    }
309}
310impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_alarms::DescribeAlarmsError, R>> for Error
311where
312    R: Send + Sync + std::fmt::Debug + 'static,
313{
314    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_alarms::DescribeAlarmsError, R>) -> Self {
315        match err {
316            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
317            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
318                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
319                source: err.into(),
320            }),
321        }
322    }
323}
324impl From<crate::operation::describe_alarms::DescribeAlarmsError> for Error {
325    fn from(err: crate::operation::describe_alarms::DescribeAlarmsError) -> Self {
326        match err {
327            crate::operation::describe_alarms::DescribeAlarmsError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
328            crate::operation::describe_alarms::DescribeAlarmsError::Unhandled(inner) => Error::Unhandled(inner),
329        }
330    }
331}
332impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_alarms_for_metric::DescribeAlarmsForMetricError, R>>
333    for Error
334where
335    R: Send + Sync + std::fmt::Debug + 'static,
336{
337    fn from(
338        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_alarms_for_metric::DescribeAlarmsForMetricError, R>,
339    ) -> Self {
340        match err {
341            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
342            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
343                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
344                source: err.into(),
345            }),
346        }
347    }
348}
349impl From<crate::operation::describe_alarms_for_metric::DescribeAlarmsForMetricError> for Error {
350    fn from(err: crate::operation::describe_alarms_for_metric::DescribeAlarmsForMetricError) -> Self {
351        match err {
352            crate::operation::describe_alarms_for_metric::DescribeAlarmsForMetricError::Unhandled(inner) => Error::Unhandled(inner),
353        }
354    }
355}
356impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_anomaly_detectors::DescribeAnomalyDetectorsError, R>>
357    for Error
358where
359    R: Send + Sync + std::fmt::Debug + 'static,
360{
361    fn from(
362        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_anomaly_detectors::DescribeAnomalyDetectorsError, R>,
363    ) -> Self {
364        match err {
365            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
366            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
367                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
368                source: err.into(),
369            }),
370        }
371    }
372}
373impl From<crate::operation::describe_anomaly_detectors::DescribeAnomalyDetectorsError> for Error {
374    fn from(err: crate::operation::describe_anomaly_detectors::DescribeAnomalyDetectorsError) -> Self {
375        match err {
376            crate::operation::describe_anomaly_detectors::DescribeAnomalyDetectorsError::InternalServiceFault(inner) => {
377                Error::InternalServiceFault(inner)
378            }
379            crate::operation::describe_anomaly_detectors::DescribeAnomalyDetectorsError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
380            crate::operation::describe_anomaly_detectors::DescribeAnomalyDetectorsError::InvalidParameterCombinationException(inner) => {
381                Error::InvalidParameterCombinationException(inner)
382            }
383            crate::operation::describe_anomaly_detectors::DescribeAnomalyDetectorsError::InvalidParameterValueException(inner) => {
384                Error::InvalidParameterValueException(inner)
385            }
386            crate::operation::describe_anomaly_detectors::DescribeAnomalyDetectorsError::Unhandled(inner) => Error::Unhandled(inner),
387        }
388    }
389}
390impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_insight_rules::DescribeInsightRulesError, R>> for Error
391where
392    R: Send + Sync + std::fmt::Debug + 'static,
393{
394    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_insight_rules::DescribeInsightRulesError, R>) -> Self {
395        match err {
396            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
397            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
398                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
399                source: err.into(),
400            }),
401        }
402    }
403}
404impl From<crate::operation::describe_insight_rules::DescribeInsightRulesError> for Error {
405    fn from(err: crate::operation::describe_insight_rules::DescribeInsightRulesError) -> Self {
406        match err {
407            crate::operation::describe_insight_rules::DescribeInsightRulesError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
408            crate::operation::describe_insight_rules::DescribeInsightRulesError::Unhandled(inner) => Error::Unhandled(inner),
409        }
410    }
411}
412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_alarm_actions::DisableAlarmActionsError, R>> for Error
413where
414    R: Send + Sync + std::fmt::Debug + 'static,
415{
416    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_alarm_actions::DisableAlarmActionsError, R>) -> Self {
417        match err {
418            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
419            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
420                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
421                source: err.into(),
422            }),
423        }
424    }
425}
426impl From<crate::operation::disable_alarm_actions::DisableAlarmActionsError> for Error {
427    fn from(err: crate::operation::disable_alarm_actions::DisableAlarmActionsError) -> Self {
428        match err {
429            crate::operation::disable_alarm_actions::DisableAlarmActionsError::Unhandled(inner) => Error::Unhandled(inner),
430        }
431    }
432}
433impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_insight_rules::DisableInsightRulesError, R>> for Error
434where
435    R: Send + Sync + std::fmt::Debug + 'static,
436{
437    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_insight_rules::DisableInsightRulesError, R>) -> Self {
438        match err {
439            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
440            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
441                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
442                source: err.into(),
443            }),
444        }
445    }
446}
447impl From<crate::operation::disable_insight_rules::DisableInsightRulesError> for Error {
448    fn from(err: crate::operation::disable_insight_rules::DisableInsightRulesError) -> Self {
449        match err {
450            crate::operation::disable_insight_rules::DisableInsightRulesError::InvalidParameterValueException(inner) => {
451                Error::InvalidParameterValueException(inner)
452            }
453            crate::operation::disable_insight_rules::DisableInsightRulesError::MissingRequiredParameterException(inner) => {
454                Error::MissingRequiredParameterException(inner)
455            }
456            crate::operation::disable_insight_rules::DisableInsightRulesError::Unhandled(inner) => Error::Unhandled(inner),
457        }
458    }
459}
460impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_alarm_actions::EnableAlarmActionsError, R>> for Error
461where
462    R: Send + Sync + std::fmt::Debug + 'static,
463{
464    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_alarm_actions::EnableAlarmActionsError, R>) -> Self {
465        match err {
466            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
467            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
468                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
469                source: err.into(),
470            }),
471        }
472    }
473}
474impl From<crate::operation::enable_alarm_actions::EnableAlarmActionsError> for Error {
475    fn from(err: crate::operation::enable_alarm_actions::EnableAlarmActionsError) -> Self {
476        match err {
477            crate::operation::enable_alarm_actions::EnableAlarmActionsError::Unhandled(inner) => Error::Unhandled(inner),
478        }
479    }
480}
481impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_insight_rules::EnableInsightRulesError, R>> for Error
482where
483    R: Send + Sync + std::fmt::Debug + 'static,
484{
485    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_insight_rules::EnableInsightRulesError, R>) -> Self {
486        match err {
487            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
488            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
489                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
490                source: err.into(),
491            }),
492        }
493    }
494}
495impl From<crate::operation::enable_insight_rules::EnableInsightRulesError> for Error {
496    fn from(err: crate::operation::enable_insight_rules::EnableInsightRulesError) -> Self {
497        match err {
498            crate::operation::enable_insight_rules::EnableInsightRulesError::InvalidParameterValueException(inner) => {
499                Error::InvalidParameterValueException(inner)
500            }
501            crate::operation::enable_insight_rules::EnableInsightRulesError::LimitExceededException(inner) => Error::LimitExceededException(inner),
502            crate::operation::enable_insight_rules::EnableInsightRulesError::MissingRequiredParameterException(inner) => {
503                Error::MissingRequiredParameterException(inner)
504            }
505            crate::operation::enable_insight_rules::EnableInsightRulesError::Unhandled(inner) => Error::Unhandled(inner),
506        }
507    }
508}
509impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleError, R>> for Error
510where
511    R: Send + Sync + std::fmt::Debug + 'static,
512{
513    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleError, R>) -> Self {
514        match err {
515            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
516            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
517                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
518                source: err.into(),
519            }),
520        }
521    }
522}
523impl From<crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleError> for Error {
524    fn from(err: crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleError) -> Self {
525        match err {
526            crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
527            crate::operation::get_alarm_mute_rule::GetAlarmMuteRuleError::Unhandled(inner) => Error::Unhandled(inner),
528        }
529    }
530}
531impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dashboard::GetDashboardError, R>> for Error
532where
533    R: Send + Sync + std::fmt::Debug + 'static,
534{
535    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dashboard::GetDashboardError, R>) -> Self {
536        match err {
537            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
538            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
539                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
540                source: err.into(),
541            }),
542        }
543    }
544}
545impl From<crate::operation::get_dashboard::GetDashboardError> for Error {
546    fn from(err: crate::operation::get_dashboard::GetDashboardError) -> Self {
547        match err {
548            crate::operation::get_dashboard::GetDashboardError::DashboardNotFoundError(inner) => Error::DashboardNotFoundError(inner),
549            crate::operation::get_dashboard::GetDashboardError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
550            crate::operation::get_dashboard::GetDashboardError::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner),
551            crate::operation::get_dashboard::GetDashboardError::Unhandled(inner) => Error::Unhandled(inner),
552        }
553    }
554}
555impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_insight_rule_report::GetInsightRuleReportError, R>> for Error
556where
557    R: Send + Sync + std::fmt::Debug + 'static,
558{
559    fn from(
560        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_insight_rule_report::GetInsightRuleReportError, R>,
561    ) -> Self {
562        match err {
563            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
564            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
565                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
566                source: err.into(),
567            }),
568        }
569    }
570}
571impl From<crate::operation::get_insight_rule_report::GetInsightRuleReportError> for Error {
572    fn from(err: crate::operation::get_insight_rule_report::GetInsightRuleReportError) -> Self {
573        match err {
574            crate::operation::get_insight_rule_report::GetInsightRuleReportError::InvalidParameterValueException(inner) => {
575                Error::InvalidParameterValueException(inner)
576            }
577            crate::operation::get_insight_rule_report::GetInsightRuleReportError::MissingRequiredParameterException(inner) => {
578                Error::MissingRequiredParameterException(inner)
579            }
580            crate::operation::get_insight_rule_report::GetInsightRuleReportError::ResourceNotFoundException(inner) => {
581                Error::ResourceNotFoundException(inner)
582            }
583            crate::operation::get_insight_rule_report::GetInsightRuleReportError::Unhandled(inner) => Error::Unhandled(inner),
584        }
585    }
586}
587impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric_data::GetMetricDataError, R>> for Error
588where
589    R: Send + Sync + std::fmt::Debug + 'static,
590{
591    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric_data::GetMetricDataError, R>) -> Self {
592        match err {
593            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
594            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
595                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
596                source: err.into(),
597            }),
598        }
599    }
600}
601impl From<crate::operation::get_metric_data::GetMetricDataError> for Error {
602    fn from(err: crate::operation::get_metric_data::GetMetricDataError) -> Self {
603        match err {
604            crate::operation::get_metric_data::GetMetricDataError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
605            crate::operation::get_metric_data::GetMetricDataError::Unhandled(inner) => Error::Unhandled(inner),
606        }
607    }
608}
609impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric_statistics::GetMetricStatisticsError, R>> for Error
610where
611    R: Send + Sync + std::fmt::Debug + 'static,
612{
613    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric_statistics::GetMetricStatisticsError, R>) -> Self {
614        match err {
615            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
616            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
617                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
618                source: err.into(),
619            }),
620        }
621    }
622}
623impl From<crate::operation::get_metric_statistics::GetMetricStatisticsError> for Error {
624    fn from(err: crate::operation::get_metric_statistics::GetMetricStatisticsError) -> Self {
625        match err {
626            crate::operation::get_metric_statistics::GetMetricStatisticsError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
627            crate::operation::get_metric_statistics::GetMetricStatisticsError::InvalidParameterCombinationException(inner) => {
628                Error::InvalidParameterCombinationException(inner)
629            }
630            crate::operation::get_metric_statistics::GetMetricStatisticsError::InvalidParameterValueException(inner) => {
631                Error::InvalidParameterValueException(inner)
632            }
633            crate::operation::get_metric_statistics::GetMetricStatisticsError::MissingRequiredParameterException(inner) => {
634                Error::MissingRequiredParameterException(inner)
635            }
636            crate::operation::get_metric_statistics::GetMetricStatisticsError::Unhandled(inner) => Error::Unhandled(inner),
637        }
638    }
639}
640impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric_stream::GetMetricStreamError, R>> for Error
641where
642    R: Send + Sync + std::fmt::Debug + 'static,
643{
644    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric_stream::GetMetricStreamError, R>) -> Self {
645        match err {
646            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
647            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
648                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
649                source: err.into(),
650            }),
651        }
652    }
653}
654impl From<crate::operation::get_metric_stream::GetMetricStreamError> for Error {
655    fn from(err: crate::operation::get_metric_stream::GetMetricStreamError) -> Self {
656        match err {
657            crate::operation::get_metric_stream::GetMetricStreamError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
658            crate::operation::get_metric_stream::GetMetricStreamError::InvalidParameterCombinationException(inner) => {
659                Error::InvalidParameterCombinationException(inner)
660            }
661            crate::operation::get_metric_stream::GetMetricStreamError::InvalidParameterValueException(inner) => {
662                Error::InvalidParameterValueException(inner)
663            }
664            crate::operation::get_metric_stream::GetMetricStreamError::MissingRequiredParameterException(inner) => {
665                Error::MissingRequiredParameterException(inner)
666            }
667            crate::operation::get_metric_stream::GetMetricStreamError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
668            crate::operation::get_metric_stream::GetMetricStreamError::Unhandled(inner) => Error::Unhandled(inner),
669        }
670    }
671}
672impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric_widget_image::GetMetricWidgetImageError, R>> for Error
673where
674    R: Send + Sync + std::fmt::Debug + 'static,
675{
676    fn from(
677        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric_widget_image::GetMetricWidgetImageError, R>,
678    ) -> 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::get_metric_widget_image::GetMetricWidgetImageError> for Error {
689    fn from(err: crate::operation::get_metric_widget_image::GetMetricWidgetImageError) -> Self {
690        match err {
691            crate::operation::get_metric_widget_image::GetMetricWidgetImageError::Unhandled(inner) => Error::Unhandled(inner),
692        }
693    }
694}
695impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_alarm_mute_rules::ListAlarmMuteRulesError, R>> for Error
696where
697    R: Send + Sync + std::fmt::Debug + 'static,
698{
699    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_alarm_mute_rules::ListAlarmMuteRulesError, R>) -> Self {
700        match err {
701            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
702            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
703                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
704                source: err.into(),
705            }),
706        }
707    }
708}
709impl From<crate::operation::list_alarm_mute_rules::ListAlarmMuteRulesError> for Error {
710    fn from(err: crate::operation::list_alarm_mute_rules::ListAlarmMuteRulesError) -> Self {
711        match err {
712            crate::operation::list_alarm_mute_rules::ListAlarmMuteRulesError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
713            crate::operation::list_alarm_mute_rules::ListAlarmMuteRulesError::ResourceNotFoundException(inner) => {
714                Error::ResourceNotFoundException(inner)
715            }
716            crate::operation::list_alarm_mute_rules::ListAlarmMuteRulesError::Unhandled(inner) => Error::Unhandled(inner),
717        }
718    }
719}
720impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dashboards::ListDashboardsError, R>> for Error
721where
722    R: Send + Sync + std::fmt::Debug + 'static,
723{
724    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dashboards::ListDashboardsError, R>) -> Self {
725        match err {
726            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
727            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
728                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
729                source: err.into(),
730            }),
731        }
732    }
733}
734impl From<crate::operation::list_dashboards::ListDashboardsError> for Error {
735    fn from(err: crate::operation::list_dashboards::ListDashboardsError) -> Self {
736        match err {
737            crate::operation::list_dashboards::ListDashboardsError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
738            crate::operation::list_dashboards::ListDashboardsError::InvalidParameterValueException(inner) => {
739                Error::InvalidParameterValueException(inner)
740            }
741            crate::operation::list_dashboards::ListDashboardsError::Unhandled(inner) => Error::Unhandled(inner),
742        }
743    }
744}
745impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_insight_rules::ListManagedInsightRulesError, R>>
746    for Error
747where
748    R: Send + Sync + std::fmt::Debug + 'static,
749{
750    fn from(
751        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_insight_rules::ListManagedInsightRulesError, R>,
752    ) -> Self {
753        match err {
754            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
755            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
756                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
757                source: err.into(),
758            }),
759        }
760    }
761}
762impl From<crate::operation::list_managed_insight_rules::ListManagedInsightRulesError> for Error {
763    fn from(err: crate::operation::list_managed_insight_rules::ListManagedInsightRulesError) -> Self {
764        match err {
765            crate::operation::list_managed_insight_rules::ListManagedInsightRulesError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
766            crate::operation::list_managed_insight_rules::ListManagedInsightRulesError::InvalidParameterValueException(inner) => {
767                Error::InvalidParameterValueException(inner)
768            }
769            crate::operation::list_managed_insight_rules::ListManagedInsightRulesError::MissingRequiredParameterException(inner) => {
770                Error::MissingRequiredParameterException(inner)
771            }
772            crate::operation::list_managed_insight_rules::ListManagedInsightRulesError::Unhandled(inner) => Error::Unhandled(inner),
773        }
774    }
775}
776impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_metrics::ListMetricsError, R>> for Error
777where
778    R: Send + Sync + std::fmt::Debug + 'static,
779{
780    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_metrics::ListMetricsError, R>) -> Self {
781        match err {
782            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
783            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
784                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
785                source: err.into(),
786            }),
787        }
788    }
789}
790impl From<crate::operation::list_metrics::ListMetricsError> for Error {
791    fn from(err: crate::operation::list_metrics::ListMetricsError) -> Self {
792        match err {
793            crate::operation::list_metrics::ListMetricsError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
794            crate::operation::list_metrics::ListMetricsError::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner),
795            crate::operation::list_metrics::ListMetricsError::Unhandled(inner) => Error::Unhandled(inner),
796        }
797    }
798}
799impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_metric_streams::ListMetricStreamsError, R>> for Error
800where
801    R: Send + Sync + std::fmt::Debug + 'static,
802{
803    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_metric_streams::ListMetricStreamsError, R>) -> Self {
804        match err {
805            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
806            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
807                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
808                source: err.into(),
809            }),
810        }
811    }
812}
813impl From<crate::operation::list_metric_streams::ListMetricStreamsError> for Error {
814    fn from(err: crate::operation::list_metric_streams::ListMetricStreamsError) -> Self {
815        match err {
816            crate::operation::list_metric_streams::ListMetricStreamsError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
817            crate::operation::list_metric_streams::ListMetricStreamsError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
818            crate::operation::list_metric_streams::ListMetricStreamsError::InvalidParameterValueException(inner) => {
819                Error::InvalidParameterValueException(inner)
820            }
821            crate::operation::list_metric_streams::ListMetricStreamsError::MissingRequiredParameterException(inner) => {
822                Error::MissingRequiredParameterException(inner)
823            }
824            crate::operation::list_metric_streams::ListMetricStreamsError::Unhandled(inner) => Error::Unhandled(inner),
825        }
826    }
827}
828impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
829where
830    R: Send + Sync + std::fmt::Debug + 'static,
831{
832    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
833        match err {
834            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
835            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
836                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
837                source: err.into(),
838            }),
839        }
840    }
841}
842impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
843    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
844        match err {
845            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
846            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidParameterValueException(inner) => {
847                Error::InvalidParameterValueException(inner)
848            }
849            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
850                Error::ResourceNotFoundException(inner)
851            }
852            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
853        }
854    }
855}
856impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_alarm_mute_rule::PutAlarmMuteRuleError, R>> for Error
857where
858    R: Send + Sync + std::fmt::Debug + 'static,
859{
860    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_alarm_mute_rule::PutAlarmMuteRuleError, R>) -> Self {
861        match err {
862            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
863            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
864                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
865                source: err.into(),
866            }),
867        }
868    }
869}
870impl From<crate::operation::put_alarm_mute_rule::PutAlarmMuteRuleError> for Error {
871    fn from(err: crate::operation::put_alarm_mute_rule::PutAlarmMuteRuleError) -> Self {
872        match err {
873            crate::operation::put_alarm_mute_rule::PutAlarmMuteRuleError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
874            crate::operation::put_alarm_mute_rule::PutAlarmMuteRuleError::Unhandled(inner) => Error::Unhandled(inner),
875        }
876    }
877}
878impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_anomaly_detector::PutAnomalyDetectorError, R>> for Error
879where
880    R: Send + Sync + std::fmt::Debug + 'static,
881{
882    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_anomaly_detector::PutAnomalyDetectorError, R>) -> Self {
883        match err {
884            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
885            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
886                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
887                source: err.into(),
888            }),
889        }
890    }
891}
892impl From<crate::operation::put_anomaly_detector::PutAnomalyDetectorError> for Error {
893    fn from(err: crate::operation::put_anomaly_detector::PutAnomalyDetectorError) -> Self {
894        match err {
895            crate::operation::put_anomaly_detector::PutAnomalyDetectorError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
896            crate::operation::put_anomaly_detector::PutAnomalyDetectorError::InvalidParameterCombinationException(inner) => {
897                Error::InvalidParameterCombinationException(inner)
898            }
899            crate::operation::put_anomaly_detector::PutAnomalyDetectorError::InvalidParameterValueException(inner) => {
900                Error::InvalidParameterValueException(inner)
901            }
902            crate::operation::put_anomaly_detector::PutAnomalyDetectorError::LimitExceededException(inner) => Error::LimitExceededException(inner),
903            crate::operation::put_anomaly_detector::PutAnomalyDetectorError::MissingRequiredParameterException(inner) => {
904                Error::MissingRequiredParameterException(inner)
905            }
906            crate::operation::put_anomaly_detector::PutAnomalyDetectorError::Unhandled(inner) => Error::Unhandled(inner),
907        }
908    }
909}
910impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_composite_alarm::PutCompositeAlarmError, R>> for Error
911where
912    R: Send + Sync + std::fmt::Debug + 'static,
913{
914    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_composite_alarm::PutCompositeAlarmError, R>) -> Self {
915        match err {
916            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
917            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
918                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
919                source: err.into(),
920            }),
921        }
922    }
923}
924impl From<crate::operation::put_composite_alarm::PutCompositeAlarmError> for Error {
925    fn from(err: crate::operation::put_composite_alarm::PutCompositeAlarmError) -> Self {
926        match err {
927            crate::operation::put_composite_alarm::PutCompositeAlarmError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
928            crate::operation::put_composite_alarm::PutCompositeAlarmError::Unhandled(inner) => Error::Unhandled(inner),
929        }
930    }
931}
932impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_dashboard::PutDashboardError, R>> for Error
933where
934    R: Send + Sync + std::fmt::Debug + 'static,
935{
936    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_dashboard::PutDashboardError, R>) -> Self {
937        match err {
938            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
939            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
940                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
941                source: err.into(),
942            }),
943        }
944    }
945}
946impl From<crate::operation::put_dashboard::PutDashboardError> for Error {
947    fn from(err: crate::operation::put_dashboard::PutDashboardError) -> Self {
948        match err {
949            crate::operation::put_dashboard::PutDashboardError::ConflictException(inner) => Error::ConflictException(inner),
950            crate::operation::put_dashboard::PutDashboardError::DashboardInvalidInputError(inner) => Error::DashboardInvalidInputError(inner),
951            crate::operation::put_dashboard::PutDashboardError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
952            crate::operation::put_dashboard::PutDashboardError::Unhandled(inner) => Error::Unhandled(inner),
953        }
954    }
955}
956impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_insight_rule::PutInsightRuleError, R>> for Error
957where
958    R: Send + Sync + std::fmt::Debug + 'static,
959{
960    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_insight_rule::PutInsightRuleError, R>) -> Self {
961        match err {
962            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
963            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
964                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
965                source: err.into(),
966            }),
967        }
968    }
969}
970impl From<crate::operation::put_insight_rule::PutInsightRuleError> for Error {
971    fn from(err: crate::operation::put_insight_rule::PutInsightRuleError) -> Self {
972        match err {
973            crate::operation::put_insight_rule::PutInsightRuleError::InvalidParameterValueException(inner) => {
974                Error::InvalidParameterValueException(inner)
975            }
976            crate::operation::put_insight_rule::PutInsightRuleError::LimitExceededException(inner) => Error::LimitExceededException(inner),
977            crate::operation::put_insight_rule::PutInsightRuleError::MissingRequiredParameterException(inner) => {
978                Error::MissingRequiredParameterException(inner)
979            }
980            crate::operation::put_insight_rule::PutInsightRuleError::Unhandled(inner) => Error::Unhandled(inner),
981        }
982    }
983}
984impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_managed_insight_rules::PutManagedInsightRulesError, R>>
985    for Error
986where
987    R: Send + Sync + std::fmt::Debug + 'static,
988{
989    fn from(
990        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_managed_insight_rules::PutManagedInsightRulesError, R>,
991    ) -> Self {
992        match err {
993            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
994            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
995                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
996                source: err.into(),
997            }),
998        }
999    }
1000}
1001impl From<crate::operation::put_managed_insight_rules::PutManagedInsightRulesError> for Error {
1002    fn from(err: crate::operation::put_managed_insight_rules::PutManagedInsightRulesError) -> Self {
1003        match err {
1004            crate::operation::put_managed_insight_rules::PutManagedInsightRulesError::InvalidParameterValueException(inner) => {
1005                Error::InvalidParameterValueException(inner)
1006            }
1007            crate::operation::put_managed_insight_rules::PutManagedInsightRulesError::MissingRequiredParameterException(inner) => {
1008                Error::MissingRequiredParameterException(inner)
1009            }
1010            crate::operation::put_managed_insight_rules::PutManagedInsightRulesError::Unhandled(inner) => Error::Unhandled(inner),
1011        }
1012    }
1013}
1014impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_metric_alarm::PutMetricAlarmError, R>> for Error
1015where
1016    R: Send + Sync + std::fmt::Debug + 'static,
1017{
1018    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_metric_alarm::PutMetricAlarmError, R>) -> Self {
1019        match err {
1020            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1021            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1022                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1023                source: err.into(),
1024            }),
1025        }
1026    }
1027}
1028impl From<crate::operation::put_metric_alarm::PutMetricAlarmError> for Error {
1029    fn from(err: crate::operation::put_metric_alarm::PutMetricAlarmError) -> Self {
1030        match err {
1031            crate::operation::put_metric_alarm::PutMetricAlarmError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
1032            crate::operation::put_metric_alarm::PutMetricAlarmError::Unhandled(inner) => Error::Unhandled(inner),
1033        }
1034    }
1035}
1036impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_metric_data::PutMetricDataError, R>> for Error
1037where
1038    R: Send + Sync + std::fmt::Debug + 'static,
1039{
1040    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_metric_data::PutMetricDataError, R>) -> Self {
1041        match err {
1042            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1043            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1044                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1045                source: err.into(),
1046            }),
1047        }
1048    }
1049}
1050impl From<crate::operation::put_metric_data::PutMetricDataError> for Error {
1051    fn from(err: crate::operation::put_metric_data::PutMetricDataError) -> Self {
1052        match err {
1053            crate::operation::put_metric_data::PutMetricDataError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
1054            crate::operation::put_metric_data::PutMetricDataError::InvalidParameterCombinationException(inner) => {
1055                Error::InvalidParameterCombinationException(inner)
1056            }
1057            crate::operation::put_metric_data::PutMetricDataError::InvalidParameterValueException(inner) => {
1058                Error::InvalidParameterValueException(inner)
1059            }
1060            crate::operation::put_metric_data::PutMetricDataError::MissingRequiredParameterException(inner) => {
1061                Error::MissingRequiredParameterException(inner)
1062            }
1063            crate::operation::put_metric_data::PutMetricDataError::Unhandled(inner) => Error::Unhandled(inner),
1064        }
1065    }
1066}
1067impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_metric_stream::PutMetricStreamError, R>> for Error
1068where
1069    R: Send + Sync + std::fmt::Debug + 'static,
1070{
1071    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_metric_stream::PutMetricStreamError, R>) -> Self {
1072        match err {
1073            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1074            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1075                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1076                source: err.into(),
1077            }),
1078        }
1079    }
1080}
1081impl From<crate::operation::put_metric_stream::PutMetricStreamError> for Error {
1082    fn from(err: crate::operation::put_metric_stream::PutMetricStreamError) -> Self {
1083        match err {
1084            crate::operation::put_metric_stream::PutMetricStreamError::ConcurrentModificationException(inner) => {
1085                Error::ConcurrentModificationException(inner)
1086            }
1087            crate::operation::put_metric_stream::PutMetricStreamError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
1088            crate::operation::put_metric_stream::PutMetricStreamError::InvalidParameterCombinationException(inner) => {
1089                Error::InvalidParameterCombinationException(inner)
1090            }
1091            crate::operation::put_metric_stream::PutMetricStreamError::InvalidParameterValueException(inner) => {
1092                Error::InvalidParameterValueException(inner)
1093            }
1094            crate::operation::put_metric_stream::PutMetricStreamError::MissingRequiredParameterException(inner) => {
1095                Error::MissingRequiredParameterException(inner)
1096            }
1097            crate::operation::put_metric_stream::PutMetricStreamError::Unhandled(inner) => Error::Unhandled(inner),
1098        }
1099    }
1100}
1101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_alarm_state::SetAlarmStateError, R>> for Error
1102where
1103    R: Send + Sync + std::fmt::Debug + 'static,
1104{
1105    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_alarm_state::SetAlarmStateError, R>) -> Self {
1106        match err {
1107            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1108            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1109                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1110                source: err.into(),
1111            }),
1112        }
1113    }
1114}
1115impl From<crate::operation::set_alarm_state::SetAlarmStateError> for Error {
1116    fn from(err: crate::operation::set_alarm_state::SetAlarmStateError) -> Self {
1117        match err {
1118            crate::operation::set_alarm_state::SetAlarmStateError::InvalidFormatFault(inner) => Error::InvalidFormatFault(inner),
1119            crate::operation::set_alarm_state::SetAlarmStateError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1120            crate::operation::set_alarm_state::SetAlarmStateError::Unhandled(inner) => Error::Unhandled(inner),
1121        }
1122    }
1123}
1124impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_metric_streams::StartMetricStreamsError, R>> for Error
1125where
1126    R: Send + Sync + std::fmt::Debug + 'static,
1127{
1128    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_metric_streams::StartMetricStreamsError, R>) -> Self {
1129        match err {
1130            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1131            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1132                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1133                source: err.into(),
1134            }),
1135        }
1136    }
1137}
1138impl From<crate::operation::start_metric_streams::StartMetricStreamsError> for Error {
1139    fn from(err: crate::operation::start_metric_streams::StartMetricStreamsError) -> Self {
1140        match err {
1141            crate::operation::start_metric_streams::StartMetricStreamsError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
1142            crate::operation::start_metric_streams::StartMetricStreamsError::InvalidParameterValueException(inner) => {
1143                Error::InvalidParameterValueException(inner)
1144            }
1145            crate::operation::start_metric_streams::StartMetricStreamsError::MissingRequiredParameterException(inner) => {
1146                Error::MissingRequiredParameterException(inner)
1147            }
1148            crate::operation::start_metric_streams::StartMetricStreamsError::Unhandled(inner) => Error::Unhandled(inner),
1149        }
1150    }
1151}
1152impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_metric_streams::StopMetricStreamsError, R>> for Error
1153where
1154    R: Send + Sync + std::fmt::Debug + 'static,
1155{
1156    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_metric_streams::StopMetricStreamsError, R>) -> 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::stop_metric_streams::StopMetricStreamsError> for Error {
1167    fn from(err: crate::operation::stop_metric_streams::StopMetricStreamsError) -> Self {
1168        match err {
1169            crate::operation::stop_metric_streams::StopMetricStreamsError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
1170            crate::operation::stop_metric_streams::StopMetricStreamsError::InvalidParameterValueException(inner) => {
1171                Error::InvalidParameterValueException(inner)
1172            }
1173            crate::operation::stop_metric_streams::StopMetricStreamsError::MissingRequiredParameterException(inner) => {
1174                Error::MissingRequiredParameterException(inner)
1175            }
1176            crate::operation::stop_metric_streams::StopMetricStreamsError::Unhandled(inner) => Error::Unhandled(inner),
1177        }
1178    }
1179}
1180impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1181where
1182    R: Send + Sync + std::fmt::Debug + 'static,
1183{
1184    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1185        match err {
1186            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1187            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1188                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1189                source: err.into(),
1190            }),
1191        }
1192    }
1193}
1194impl From<crate::operation::tag_resource::TagResourceError> for Error {
1195    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1196        match err {
1197            crate::operation::tag_resource::TagResourceError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1198            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1199            crate::operation::tag_resource::TagResourceError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
1200            crate::operation::tag_resource::TagResourceError::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner),
1201            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1202            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1203        }
1204    }
1205}
1206impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1207where
1208    R: Send + Sync + std::fmt::Debug + 'static,
1209{
1210    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1211        match err {
1212            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1213            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1214                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1215                source: err.into(),
1216            }),
1217        }
1218    }
1219}
1220impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1221    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1222        match err {
1223            crate::operation::untag_resource::UntagResourceError::ConcurrentModificationException(inner) => {
1224                Error::ConcurrentModificationException(inner)
1225            }
1226            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1227            crate::operation::untag_resource::UntagResourceError::InternalServiceFault(inner) => Error::InternalServiceFault(inner),
1228            crate::operation::untag_resource::UntagResourceError::InvalidParameterValueException(inner) => {
1229                Error::InvalidParameterValueException(inner)
1230            }
1231            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1232            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1233        }
1234    }
1235}
1236impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
1237where
1238    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
1239    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
1240{
1241    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
1242        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1243            meta: ::std::default::Default::default(),
1244            source: err.into(),
1245        })
1246    }
1247}
1248impl ::std::error::Error for Error {
1249    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1250        match self {
1251            Error::ConcurrentModificationException(inner) => inner.source(),
1252            Error::ConflictException(inner) => inner.source(),
1253            Error::DashboardInvalidInputError(inner) => inner.source(),
1254            Error::DashboardNotFoundError(inner) => inner.source(),
1255            Error::InternalServiceFault(inner) => inner.source(),
1256            Error::InvalidFormatFault(inner) => inner.source(),
1257            Error::InvalidNextToken(inner) => inner.source(),
1258            Error::InvalidParameterCombinationException(inner) => inner.source(),
1259            Error::InvalidParameterValueException(inner) => inner.source(),
1260            Error::LimitExceededException(inner) => inner.source(),
1261            Error::LimitExceededFault(inner) => inner.source(),
1262            Error::MissingRequiredParameterException(inner) => inner.source(),
1263            Error::ResourceNotFound(inner) => inner.source(),
1264            Error::ResourceNotFoundException(inner) => inner.source(),
1265            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1266        }
1267    }
1268}
1269impl ::aws_types::request_id::RequestId for Error {
1270    fn request_id(&self) -> Option<&str> {
1271        match self {
1272            Self::ConcurrentModificationException(e) => e.request_id(),
1273            Self::ConflictException(e) => e.request_id(),
1274            Self::DashboardInvalidInputError(e) => e.request_id(),
1275            Self::DashboardNotFoundError(e) => e.request_id(),
1276            Self::InternalServiceFault(e) => e.request_id(),
1277            Self::InvalidFormatFault(e) => e.request_id(),
1278            Self::InvalidNextToken(e) => e.request_id(),
1279            Self::InvalidParameterCombinationException(e) => e.request_id(),
1280            Self::InvalidParameterValueException(e) => e.request_id(),
1281            Self::LimitExceededException(e) => e.request_id(),
1282            Self::LimitExceededFault(e) => e.request_id(),
1283            Self::MissingRequiredParameterException(e) => e.request_id(),
1284            Self::ResourceNotFound(e) => e.request_id(),
1285            Self::ResourceNotFoundException(e) => e.request_id(),
1286            Self::Unhandled(e) => e.meta.request_id(),
1287        }
1288    }
1289}