aws_sdk_networkflowmonitor/
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>You don't have sufficient permission to perform this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The requested resource is in use.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>An internal error occurred.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The request specifies a resource that doesn't exist.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The request exceeded a service quota.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The request was denied due to request throttling.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>Invalid request.</p>
19    ValidationException(crate::types::error::ValidationException),
20    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
21    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22    variable wildcard pattern and check `.code()`:
23     \
24    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25     \
26    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27    Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31        match self {
32            Error::AccessDeniedException(inner) => inner.fmt(f),
33            Error::ConflictException(inner) => inner.fmt(f),
34            Error::InternalServerException(inner) => inner.fmt(f),
35            Error::ResourceNotFoundException(inner) => inner.fmt(f),
36            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37            Error::ThrottlingException(inner) => inner.fmt(f),
38            Error::ValidationException(inner) => inner.fmt(f),
39            Error::Unhandled(_) => {
40                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41                    write!(f, "unhandled error ({code})")
42                } else {
43                    f.write_str("unhandled error")
44                }
45            }
46        }
47    }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52            source: value.into(),
53            meta: ::std::default::Default::default(),
54        })
55    }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59        match self {
60            Self::AccessDeniedException(inner) => inner.meta(),
61            Self::ConflictException(inner) => inner.meta(),
62            Self::InternalServerException(inner) => inner.meta(),
63            Self::ResourceNotFoundException(inner) => inner.meta(),
64            Self::ServiceQuotaExceededException(inner) => inner.meta(),
65            Self::ThrottlingException(inner) => inner.meta(),
66            Self::ValidationException(inner) => inner.meta(),
67            Self::Unhandled(inner) => &inner.meta,
68        }
69    }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitor::CreateMonitorError, R>> for Error
72where
73    R: Send + Sync + std::fmt::Debug + 'static,
74{
75    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitor::CreateMonitorError, R>) -> Self {
76        match err {
77            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
78            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
79                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
80                source: err.into(),
81            }),
82        }
83    }
84}
85impl From<crate::operation::create_monitor::CreateMonitorError> for Error {
86    fn from(err: crate::operation::create_monitor::CreateMonitorError) -> Self {
87        match err {
88            crate::operation::create_monitor::CreateMonitorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89            crate::operation::create_monitor::CreateMonitorError::ConflictException(inner) => Error::ConflictException(inner),
90            crate::operation::create_monitor::CreateMonitorError::InternalServerException(inner) => Error::InternalServerException(inner),
91            crate::operation::create_monitor::CreateMonitorError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
92            crate::operation::create_monitor::CreateMonitorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
93            crate::operation::create_monitor::CreateMonitorError::ValidationException(inner) => Error::ValidationException(inner),
94            crate::operation::create_monitor::CreateMonitorError::Unhandled(inner) => Error::Unhandled(inner),
95        }
96    }
97}
98impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scope::CreateScopeError, R>> for Error
99where
100    R: Send + Sync + std::fmt::Debug + 'static,
101{
102    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scope::CreateScopeError, R>) -> Self {
103        match err {
104            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
105            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
106                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
107                source: err.into(),
108            }),
109        }
110    }
111}
112impl From<crate::operation::create_scope::CreateScopeError> for Error {
113    fn from(err: crate::operation::create_scope::CreateScopeError) -> Self {
114        match err {
115            crate::operation::create_scope::CreateScopeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
116            crate::operation::create_scope::CreateScopeError::ConflictException(inner) => Error::ConflictException(inner),
117            crate::operation::create_scope::CreateScopeError::InternalServerException(inner) => Error::InternalServerException(inner),
118            crate::operation::create_scope::CreateScopeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
119            crate::operation::create_scope::CreateScopeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
120            crate::operation::create_scope::CreateScopeError::ValidationException(inner) => Error::ValidationException(inner),
121            crate::operation::create_scope::CreateScopeError::Unhandled(inner) => Error::Unhandled(inner),
122        }
123    }
124}
125impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitor::DeleteMonitorError, R>> for Error
126where
127    R: Send + Sync + std::fmt::Debug + 'static,
128{
129    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitor::DeleteMonitorError, R>) -> Self {
130        match err {
131            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
132            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
133                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
134                source: err.into(),
135            }),
136        }
137    }
138}
139impl From<crate::operation::delete_monitor::DeleteMonitorError> for Error {
140    fn from(err: crate::operation::delete_monitor::DeleteMonitorError) -> Self {
141        match err {
142            crate::operation::delete_monitor::DeleteMonitorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
143            crate::operation::delete_monitor::DeleteMonitorError::InternalServerException(inner) => Error::InternalServerException(inner),
144            crate::operation::delete_monitor::DeleteMonitorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
145            crate::operation::delete_monitor::DeleteMonitorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
146            crate::operation::delete_monitor::DeleteMonitorError::ValidationException(inner) => Error::ValidationException(inner),
147            crate::operation::delete_monitor::DeleteMonitorError::Unhandled(inner) => Error::Unhandled(inner),
148        }
149    }
150}
151impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scope::DeleteScopeError, R>> for Error
152where
153    R: Send + Sync + std::fmt::Debug + 'static,
154{
155    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scope::DeleteScopeError, R>) -> Self {
156        match err {
157            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
158            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
159                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
160                source: err.into(),
161            }),
162        }
163    }
164}
165impl From<crate::operation::delete_scope::DeleteScopeError> for Error {
166    fn from(err: crate::operation::delete_scope::DeleteScopeError) -> Self {
167        match err {
168            crate::operation::delete_scope::DeleteScopeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
169            crate::operation::delete_scope::DeleteScopeError::InternalServerException(inner) => Error::InternalServerException(inner),
170            crate::operation::delete_scope::DeleteScopeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
171            crate::operation::delete_scope::DeleteScopeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
172            crate::operation::delete_scope::DeleteScopeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
173            crate::operation::delete_scope::DeleteScopeError::ValidationException(inner) => Error::ValidationException(inner),
174            crate::operation::delete_scope::DeleteScopeError::Unhandled(inner) => Error::Unhandled(inner),
175        }
176    }
177}
178impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_monitor::GetMonitorError, 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::get_monitor::GetMonitorError, 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::get_monitor::GetMonitorError> for Error {
193    fn from(err: crate::operation::get_monitor::GetMonitorError) -> Self {
194        match err {
195            crate::operation::get_monitor::GetMonitorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
196            crate::operation::get_monitor::GetMonitorError::InternalServerException(inner) => Error::InternalServerException(inner),
197            crate::operation::get_monitor::GetMonitorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
198            crate::operation::get_monitor::GetMonitorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
199            crate::operation::get_monitor::GetMonitorError::ValidationException(inner) => Error::ValidationException(inner),
200            crate::operation::get_monitor::GetMonitorError::Unhandled(inner) => Error::Unhandled(inner),
201        }
202    }
203}
204impl<R>
205    From<
206        ::aws_smithy_runtime_api::client::result::SdkError<
207            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError,
208            R,
209        >,
210    > for Error
211where
212    R: Send + Sync + std::fmt::Debug + 'static,
213{
214    fn from(
215        err: ::aws_smithy_runtime_api::client::result::SdkError<
216            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError,
217            R,
218        >,
219    ) -> Self {
220        match err {
221            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
222            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
223                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
224                source: err.into(),
225            }),
226        }
227    }
228}
229impl From<crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError> for Error {
230    fn from(err: crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError) -> Self {
231        match err {
232            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
233            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError::InternalServerException(inner) => Error::InternalServerException(inner),
234            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
235            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
236            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
237            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError::ValidationException(inner) => Error::ValidationException(inner),
238            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError::Unhandled(inner) => Error::Unhandled(inner),
239        }
240    }
241}
242impl<R>
243    From<
244        ::aws_smithy_runtime_api::client::result::SdkError<
245            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError,
246            R,
247        >,
248    > for Error
249where
250    R: Send + Sync + std::fmt::Debug + 'static,
251{
252    fn from(
253        err: ::aws_smithy_runtime_api::client::result::SdkError<
254            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError,
255            R,
256        >,
257    ) -> Self {
258        match err {
259            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
260            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
261                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
262                source: err.into(),
263            }),
264        }
265    }
266}
267impl From<crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError> for Error {
268    fn from(
269        err: crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError,
270    ) -> Self {
271        match err {
272            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
273            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError::InternalServerException(inner) => Error::InternalServerException(inner),
274            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
275            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
276            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
277            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError::ValidationException(inner) => Error::ValidationException(inner),
278            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError::Unhandled(inner) => Error::Unhandled(inner),
279        }
280    }
281}
282impl<R>
283    From<
284        ::aws_smithy_runtime_api::client::result::SdkError<
285            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError,
286            R,
287        >,
288    > for Error
289where
290    R: Send + Sync + std::fmt::Debug + 'static,
291{
292    fn from(
293        err: ::aws_smithy_runtime_api::client::result::SdkError<
294            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError,
295            R,
296        >,
297    ) -> Self {
298        match err {
299            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
300            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
301                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
302                source: err.into(),
303            }),
304        }
305    }
306}
307impl From<crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError>
308    for Error
309{
310    fn from(
311        err: crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError,
312    ) -> Self {
313        match err {
314            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
315            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError::InternalServerException(inner) => Error::InternalServerException(inner),
316            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
317            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
318            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
319            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError::ValidationException(inner) => Error::ValidationException(inner),
320            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError::Unhandled(inner) => Error::Unhandled(inner),
321        }
322    }
323}
324impl<R>
325    From<
326        ::aws_smithy_runtime_api::client::result::SdkError<
327            crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError,
328            R,
329        >,
330    > for Error
331where
332    R: Send + Sync + std::fmt::Debug + 'static,
333{
334    fn from(
335        err: ::aws_smithy_runtime_api::client::result::SdkError<
336            crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError,
337            R,
338        >,
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::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError> for Error {
350    fn from(err: crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError) -> Self {
351        match err {
352            crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError::AccessDeniedException(inner) => {
353                Error::AccessDeniedException(inner)
354            }
355            crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError::InternalServerException(
356                inner,
357            ) => Error::InternalServerException(inner),
358            crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError::ServiceQuotaExceededException(
359                inner,
360            ) => Error::ServiceQuotaExceededException(inner),
361            crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError::ThrottlingException(inner) => {
362                Error::ThrottlingException(inner)
363            }
364            crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError::ValidationException(inner) => {
365                Error::ValidationException(inner)
366            }
367            crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError::Unhandled(inner) => {
368                Error::Unhandled(inner)
369            }
370        }
371    }
372}
373impl<R>
374    From<
375        ::aws_smithy_runtime_api::client::result::SdkError<
376            crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError,
377            R,
378        >,
379    > for Error
380where
381    R: Send + Sync + std::fmt::Debug + 'static,
382{
383    fn from(
384        err: ::aws_smithy_runtime_api::client::result::SdkError<
385            crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError,
386            R,
387        >,
388    ) -> Self {
389        match err {
390            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
391            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
392                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
393                source: err.into(),
394            }),
395        }
396    }
397}
398impl From<crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError> for Error {
399    fn from(err: crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError) -> Self {
400        match err {
401            crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
402            crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError::InternalServerException(inner) => Error::InternalServerException(inner),
403            crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
404            crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
405            crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError::ValidationException(inner) => Error::ValidationException(inner),
406            crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError::Unhandled(inner) => Error::Unhandled(inner),
407        }
408    }
409}
410impl<R>
411    From<
412        ::aws_smithy_runtime_api::client::result::SdkError<
413            crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError,
414            R,
415        >,
416    > for Error
417where
418    R: Send + Sync + std::fmt::Debug + 'static,
419{
420    fn from(
421        err: ::aws_smithy_runtime_api::client::result::SdkError<
422            crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError,
423            R,
424        >,
425    ) -> Self {
426        match err {
427            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
428            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
429                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
430                source: err.into(),
431            }),
432        }
433    }
434}
435impl From<crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError>
436    for Error
437{
438    fn from(
439        err: crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError,
440    ) -> Self {
441        match err {
442            crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
443            crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError::InternalServerException(inner) => Error::InternalServerException(inner),
444            crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
445            crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
446            crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError::ValidationException(inner) => Error::ValidationException(inner),
447            crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError::Unhandled(inner) => Error::Unhandled(inner),
448        }
449    }
450}
451impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scope::GetScopeError, R>> for Error
452where
453    R: Send + Sync + std::fmt::Debug + 'static,
454{
455    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scope::GetScopeError, R>) -> Self {
456        match err {
457            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
458            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
459                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
460                source: err.into(),
461            }),
462        }
463    }
464}
465impl From<crate::operation::get_scope::GetScopeError> for Error {
466    fn from(err: crate::operation::get_scope::GetScopeError) -> Self {
467        match err {
468            crate::operation::get_scope::GetScopeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
469            crate::operation::get_scope::GetScopeError::InternalServerException(inner) => Error::InternalServerException(inner),
470            crate::operation::get_scope::GetScopeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
471            crate::operation::get_scope::GetScopeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
472            crate::operation::get_scope::GetScopeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
473            crate::operation::get_scope::GetScopeError::ValidationException(inner) => Error::ValidationException(inner),
474            crate::operation::get_scope::GetScopeError::Unhandled(inner) => Error::Unhandled(inner),
475        }
476    }
477}
478impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitors::ListMonitorsError, R>> for Error
479where
480    R: Send + Sync + std::fmt::Debug + 'static,
481{
482    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitors::ListMonitorsError, R>) -> Self {
483        match err {
484            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
485            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
486                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
487                source: err.into(),
488            }),
489        }
490    }
491}
492impl From<crate::operation::list_monitors::ListMonitorsError> for Error {
493    fn from(err: crate::operation::list_monitors::ListMonitorsError) -> Self {
494        match err {
495            crate::operation::list_monitors::ListMonitorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
496            crate::operation::list_monitors::ListMonitorsError::InternalServerException(inner) => Error::InternalServerException(inner),
497            crate::operation::list_monitors::ListMonitorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
498            crate::operation::list_monitors::ListMonitorsError::ValidationException(inner) => Error::ValidationException(inner),
499            crate::operation::list_monitors::ListMonitorsError::Unhandled(inner) => Error::Unhandled(inner),
500        }
501    }
502}
503impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scopes::ListScopesError, R>> for Error
504where
505    R: Send + Sync + std::fmt::Debug + 'static,
506{
507    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scopes::ListScopesError, R>) -> Self {
508        match err {
509            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
510            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
511                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
512                source: err.into(),
513            }),
514        }
515    }
516}
517impl From<crate::operation::list_scopes::ListScopesError> for Error {
518    fn from(err: crate::operation::list_scopes::ListScopesError) -> Self {
519        match err {
520            crate::operation::list_scopes::ListScopesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
521            crate::operation::list_scopes::ListScopesError::InternalServerException(inner) => Error::InternalServerException(inner),
522            crate::operation::list_scopes::ListScopesError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
523            crate::operation::list_scopes::ListScopesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
524            crate::operation::list_scopes::ListScopesError::ValidationException(inner) => Error::ValidationException(inner),
525            crate::operation::list_scopes::ListScopesError::Unhandled(inner) => Error::Unhandled(inner),
526        }
527    }
528}
529impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
530where
531    R: Send + Sync + std::fmt::Debug + 'static,
532{
533    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
534        match err {
535            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
536            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
537                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
538                source: err.into(),
539            }),
540        }
541    }
542}
543impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
544    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
545        match err {
546            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
547            crate::operation::list_tags_for_resource::ListTagsForResourceError::ConflictException(inner) => Error::ConflictException(inner),
548            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
549                Error::InternalServerException(inner)
550            }
551            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
552                Error::ResourceNotFoundException(inner)
553            }
554            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
555            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
556            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
557        }
558    }
559}
560impl<R>
561    From<
562        ::aws_smithy_runtime_api::client::result::SdkError<
563            crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError,
564            R,
565        >,
566    > for Error
567where
568    R: Send + Sync + std::fmt::Debug + 'static,
569{
570    fn from(
571        err: ::aws_smithy_runtime_api::client::result::SdkError<
572            crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError,
573            R,
574        >,
575    ) -> Self {
576        match err {
577            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
578            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
579                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
580                source: err.into(),
581            }),
582        }
583    }
584}
585impl From<crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError> for Error {
586    fn from(err: crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError) -> Self {
587        match err {
588            crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError::AccessDeniedException(inner) => {
589                Error::AccessDeniedException(inner)
590            }
591            crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError::InternalServerException(inner) => {
592                Error::InternalServerException(inner)
593            }
594            crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError::ServiceQuotaExceededException(inner) => {
595                Error::ServiceQuotaExceededException(inner)
596            }
597            crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError::ThrottlingException(inner) => {
598                Error::ThrottlingException(inner)
599            }
600            crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError::ValidationException(inner) => {
601                Error::ValidationException(inner)
602            }
603            crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError::Unhandled(inner) => {
604                Error::Unhandled(inner)
605            }
606        }
607    }
608}
609impl<R>
610    From<
611        ::aws_smithy_runtime_api::client::result::SdkError<
612            crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError,
613            R,
614        >,
615    > for Error
616where
617    R: Send + Sync + std::fmt::Debug + 'static,
618{
619    fn from(
620        err: ::aws_smithy_runtime_api::client::result::SdkError<
621            crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError,
622            R,
623        >,
624    ) -> Self {
625        match err {
626            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
627            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
628                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
629                source: err.into(),
630            }),
631        }
632    }
633}
634impl From<crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError> for Error {
635    fn from(err: crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError) -> Self {
636        match err {
637            crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
638            crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError::InternalServerException(inner) => Error::InternalServerException(inner),
639            crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
640            crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
641            crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError::ValidationException(inner) => Error::ValidationException(inner),
642            crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError::Unhandled(inner) => Error::Unhandled(inner),
643        }
644    }
645}
646impl<R>
647    From<
648        ::aws_smithy_runtime_api::client::result::SdkError<
649            crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError,
650            R,
651        >,
652    > for Error
653where
654    R: Send + Sync + std::fmt::Debug + 'static,
655{
656    fn from(
657        err: ::aws_smithy_runtime_api::client::result::SdkError<
658            crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError,
659            R,
660        >,
661    ) -> Self {
662        match err {
663            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
664            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
665                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
666                source: err.into(),
667            }),
668        }
669    }
670}
671impl From<crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError> for Error {
672    fn from(err: crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError) -> Self {
673        match err {
674            crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
675            crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError::InternalServerException(inner) => Error::InternalServerException(inner),
676            crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
677            crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
678            crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError::ValidationException(inner) => Error::ValidationException(inner),
679            crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError::Unhandled(inner) => Error::Unhandled(inner),
680        }
681    }
682}
683impl<R>
684    From<
685        ::aws_smithy_runtime_api::client::result::SdkError<
686            crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError,
687            R,
688        >,
689    > for Error
690where
691    R: Send + Sync + std::fmt::Debug + 'static,
692{
693    fn from(
694        err: ::aws_smithy_runtime_api::client::result::SdkError<
695            crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError,
696            R,
697        >,
698    ) -> Self {
699        match err {
700            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
701            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
702                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
703                source: err.into(),
704            }),
705        }
706    }
707}
708impl From<crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError> for Error {
709    fn from(err: crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError) -> Self {
710        match err {
711            crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError::AccessDeniedException(inner) => {
712                Error::AccessDeniedException(inner)
713            }
714            crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError::InternalServerException(inner) => {
715                Error::InternalServerException(inner)
716            }
717            crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError::ServiceQuotaExceededException(inner) => {
718                Error::ServiceQuotaExceededException(inner)
719            }
720            crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError::ThrottlingException(inner) => {
721                Error::ThrottlingException(inner)
722            }
723            crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError::ValidationException(inner) => {
724                Error::ValidationException(inner)
725            }
726            crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError::Unhandled(inner) => Error::Unhandled(inner),
727        }
728    }
729}
730impl<R>
731    From<
732        ::aws_smithy_runtime_api::client::result::SdkError<
733            crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError,
734            R,
735        >,
736    > for Error
737where
738    R: Send + Sync + std::fmt::Debug + 'static,
739{
740    fn from(
741        err: ::aws_smithy_runtime_api::client::result::SdkError<
742            crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError,
743            R,
744        >,
745    ) -> Self {
746        match err {
747            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
748            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
749                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
750                source: err.into(),
751            }),
752        }
753    }
754}
755impl From<crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError> for Error {
756    fn from(err: crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError) -> Self {
757        match err {
758            crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
759            crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError::InternalServerException(inner) => Error::InternalServerException(inner),
760            crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
761            crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
762            crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError::ValidationException(inner) => Error::ValidationException(inner),
763            crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError::Unhandled(inner) => Error::Unhandled(inner),
764        }
765    }
766}
767impl<R>
768    From<
769        ::aws_smithy_runtime_api::client::result::SdkError<
770            crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError,
771            R,
772        >,
773    > for Error
774where
775    R: Send + Sync + std::fmt::Debug + 'static,
776{
777    fn from(
778        err: ::aws_smithy_runtime_api::client::result::SdkError<
779            crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError,
780            R,
781        >,
782    ) -> Self {
783        match err {
784            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
785            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
786                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
787                source: err.into(),
788            }),
789        }
790    }
791}
792impl From<crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError> for Error {
793    fn from(err: crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError) -> Self {
794        match err {
795            crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
796            crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError::InternalServerException(inner) => Error::InternalServerException(inner),
797            crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
798            crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
799            crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError::ValidationException(inner) => Error::ValidationException(inner),
800            crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError::Unhandled(inner) => Error::Unhandled(inner),
801        }
802    }
803}
804impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
805where
806    R: Send + Sync + std::fmt::Debug + 'static,
807{
808    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
809        match err {
810            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
811            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
812                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
813                source: err.into(),
814            }),
815        }
816    }
817}
818impl From<crate::operation::tag_resource::TagResourceError> for Error {
819    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
820        match err {
821            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
822            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
823            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
824            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
825            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
826            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
827            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
828        }
829    }
830}
831impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
832where
833    R: Send + Sync + std::fmt::Debug + 'static,
834{
835    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
836        match err {
837            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
838            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
839                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
840                source: err.into(),
841            }),
842        }
843    }
844}
845impl From<crate::operation::untag_resource::UntagResourceError> for Error {
846    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
847        match err {
848            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
849            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
850            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
851            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
852            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
853            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
854            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
855        }
856    }
857}
858impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitor::UpdateMonitorError, R>> for Error
859where
860    R: Send + Sync + std::fmt::Debug + 'static,
861{
862    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitor::UpdateMonitorError, R>) -> Self {
863        match err {
864            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
865            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
866                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
867                source: err.into(),
868            }),
869        }
870    }
871}
872impl From<crate::operation::update_monitor::UpdateMonitorError> for Error {
873    fn from(err: crate::operation::update_monitor::UpdateMonitorError) -> Self {
874        match err {
875            crate::operation::update_monitor::UpdateMonitorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
876            crate::operation::update_monitor::UpdateMonitorError::InternalServerException(inner) => Error::InternalServerException(inner),
877            crate::operation::update_monitor::UpdateMonitorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
878            crate::operation::update_monitor::UpdateMonitorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
879            crate::operation::update_monitor::UpdateMonitorError::ValidationException(inner) => Error::ValidationException(inner),
880            crate::operation::update_monitor::UpdateMonitorError::Unhandled(inner) => Error::Unhandled(inner),
881        }
882    }
883}
884impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scope::UpdateScopeError, R>> for Error
885where
886    R: Send + Sync + std::fmt::Debug + 'static,
887{
888    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scope::UpdateScopeError, R>) -> Self {
889        match err {
890            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
891            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
892                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
893                source: err.into(),
894            }),
895        }
896    }
897}
898impl From<crate::operation::update_scope::UpdateScopeError> for Error {
899    fn from(err: crate::operation::update_scope::UpdateScopeError) -> Self {
900        match err {
901            crate::operation::update_scope::UpdateScopeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
902            crate::operation::update_scope::UpdateScopeError::InternalServerException(inner) => Error::InternalServerException(inner),
903            crate::operation::update_scope::UpdateScopeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
904            crate::operation::update_scope::UpdateScopeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
905            crate::operation::update_scope::UpdateScopeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
906            crate::operation::update_scope::UpdateScopeError::ValidationException(inner) => Error::ValidationException(inner),
907            crate::operation::update_scope::UpdateScopeError::Unhandled(inner) => Error::Unhandled(inner),
908        }
909    }
910}
911impl ::std::error::Error for Error {
912    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
913        match self {
914            Error::AccessDeniedException(inner) => inner.source(),
915            Error::ConflictException(inner) => inner.source(),
916            Error::InternalServerException(inner) => inner.source(),
917            Error::ResourceNotFoundException(inner) => inner.source(),
918            Error::ServiceQuotaExceededException(inner) => inner.source(),
919            Error::ThrottlingException(inner) => inner.source(),
920            Error::ValidationException(inner) => inner.source(),
921            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
922        }
923    }
924}
925impl ::aws_types::request_id::RequestId for Error {
926    fn request_id(&self) -> Option<&str> {
927        match self {
928            Self::AccessDeniedException(e) => e.request_id(),
929            Self::ConflictException(e) => e.request_id(),
930            Self::InternalServerException(e) => e.request_id(),
931            Self::ResourceNotFoundException(e) => e.request_id(),
932            Self::ServiceQuotaExceededException(e) => e.request_id(),
933            Self::ThrottlingException(e) => e.request_id(),
934            Self::ValidationException(e) => e.request_id(),
935            Self::Unhandled(e) => e.meta.request_id(),
936        }
937    }
938}