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::ConflictException(inner) => Error::ConflictException(inner),
170            crate::operation::delete_scope::DeleteScopeError::InternalServerException(inner) => Error::InternalServerException(inner),
171            crate::operation::delete_scope::DeleteScopeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
172            crate::operation::delete_scope::DeleteScopeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
173            crate::operation::delete_scope::DeleteScopeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
174            crate::operation::delete_scope::DeleteScopeError::ValidationException(inner) => Error::ValidationException(inner),
175            crate::operation::delete_scope::DeleteScopeError::Unhandled(inner) => Error::Unhandled(inner),
176        }
177    }
178}
179impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_monitor::GetMonitorError, R>> for Error
180where
181    R: Send + Sync + std::fmt::Debug + 'static,
182{
183    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_monitor::GetMonitorError, R>) -> Self {
184        match err {
185            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
186            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
187                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
188                source: err.into(),
189            }),
190        }
191    }
192}
193impl From<crate::operation::get_monitor::GetMonitorError> for Error {
194    fn from(err: crate::operation::get_monitor::GetMonitorError) -> Self {
195        match err {
196            crate::operation::get_monitor::GetMonitorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
197            crate::operation::get_monitor::GetMonitorError::InternalServerException(inner) => Error::InternalServerException(inner),
198            crate::operation::get_monitor::GetMonitorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
199            crate::operation::get_monitor::GetMonitorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
200            crate::operation::get_monitor::GetMonitorError::ValidationException(inner) => Error::ValidationException(inner),
201            crate::operation::get_monitor::GetMonitorError::Unhandled(inner) => Error::Unhandled(inner),
202        }
203    }
204}
205impl<R>
206    From<
207        ::aws_smithy_runtime_api::client::result::SdkError<
208            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError,
209            R,
210        >,
211    > for Error
212where
213    R: Send + Sync + std::fmt::Debug + 'static,
214{
215    fn from(
216        err: ::aws_smithy_runtime_api::client::result::SdkError<
217            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError,
218            R,
219        >,
220    ) -> Self {
221        match err {
222            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
223            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
224                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
225                source: err.into(),
226            }),
227        }
228    }
229}
230impl From<crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError> for Error {
231    fn from(err: crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError) -> Self {
232        match err {
233            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
234            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError::InternalServerException(inner) => Error::InternalServerException(inner),
235            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
236            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
237            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
238            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError::ValidationException(inner) => Error::ValidationException(inner),
239            crate::operation::get_query_results_monitor_top_contributors::GetQueryResultsMonitorTopContributorsError::Unhandled(inner) => Error::Unhandled(inner),
240        }
241    }
242}
243impl<R>
244    From<
245        ::aws_smithy_runtime_api::client::result::SdkError<
246            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError,
247            R,
248        >,
249    > for Error
250where
251    R: Send + Sync + std::fmt::Debug + 'static,
252{
253    fn from(
254        err: ::aws_smithy_runtime_api::client::result::SdkError<
255            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError,
256            R,
257        >,
258    ) -> Self {
259        match err {
260            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
261            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
262                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
263                source: err.into(),
264            }),
265        }
266    }
267}
268impl From<crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError> for Error {
269    fn from(
270        err: crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError,
271    ) -> Self {
272        match err {
273            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
274            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError::InternalServerException(inner) => Error::InternalServerException(inner),
275            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
276            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
277            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
278            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError::ValidationException(inner) => Error::ValidationException(inner),
279            crate::operation::get_query_results_workload_insights_top_contributors::GetQueryResultsWorkloadInsightsTopContributorsError::Unhandled(inner) => Error::Unhandled(inner),
280        }
281    }
282}
283impl<R>
284    From<
285        ::aws_smithy_runtime_api::client::result::SdkError<
286            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError,
287            R,
288        >,
289    > for Error
290where
291    R: Send + Sync + std::fmt::Debug + 'static,
292{
293    fn from(
294        err: ::aws_smithy_runtime_api::client::result::SdkError<
295            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError,
296            R,
297        >,
298    ) -> Self {
299        match err {
300            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
301            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
302                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
303                source: err.into(),
304            }),
305        }
306    }
307}
308impl From<crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError>
309    for Error
310{
311    fn from(
312        err: crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError,
313    ) -> Self {
314        match err {
315            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
316            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError::InternalServerException(inner) => Error::InternalServerException(inner),
317            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
318            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
319            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
320            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError::ValidationException(inner) => Error::ValidationException(inner),
321            crate::operation::get_query_results_workload_insights_top_contributors_data::GetQueryResultsWorkloadInsightsTopContributorsDataError::Unhandled(inner) => Error::Unhandled(inner),
322        }
323    }
324}
325impl<R>
326    From<
327        ::aws_smithy_runtime_api::client::result::SdkError<
328            crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError,
329            R,
330        >,
331    > for Error
332where
333    R: Send + Sync + std::fmt::Debug + 'static,
334{
335    fn from(
336        err: ::aws_smithy_runtime_api::client::result::SdkError<
337            crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError,
338            R,
339        >,
340    ) -> Self {
341        match err {
342            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
343            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
344                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
345                source: err.into(),
346            }),
347        }
348    }
349}
350impl From<crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError> for Error {
351    fn from(err: crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError) -> Self {
352        match err {
353            crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError::AccessDeniedException(inner) => {
354                Error::AccessDeniedException(inner)
355            }
356            crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError::InternalServerException(
357                inner,
358            ) => Error::InternalServerException(inner),
359            crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError::ServiceQuotaExceededException(
360                inner,
361            ) => Error::ServiceQuotaExceededException(inner),
362            crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError::ThrottlingException(inner) => {
363                Error::ThrottlingException(inner)
364            }
365            crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError::ValidationException(inner) => {
366                Error::ValidationException(inner)
367            }
368            crate::operation::get_query_status_monitor_top_contributors::GetQueryStatusMonitorTopContributorsError::Unhandled(inner) => {
369                Error::Unhandled(inner)
370            }
371        }
372    }
373}
374impl<R>
375    From<
376        ::aws_smithy_runtime_api::client::result::SdkError<
377            crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError,
378            R,
379        >,
380    > for Error
381where
382    R: Send + Sync + std::fmt::Debug + 'static,
383{
384    fn from(
385        err: ::aws_smithy_runtime_api::client::result::SdkError<
386            crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError,
387            R,
388        >,
389    ) -> Self {
390        match err {
391            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
392            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
393                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
394                source: err.into(),
395            }),
396        }
397    }
398}
399impl From<crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError> for Error {
400    fn from(err: crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError) -> Self {
401        match err {
402            crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
403            crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError::InternalServerException(inner) => Error::InternalServerException(inner),
404            crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
405            crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
406            crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError::ValidationException(inner) => Error::ValidationException(inner),
407            crate::operation::get_query_status_workload_insights_top_contributors::GetQueryStatusWorkloadInsightsTopContributorsError::Unhandled(inner) => Error::Unhandled(inner),
408        }
409    }
410}
411impl<R>
412    From<
413        ::aws_smithy_runtime_api::client::result::SdkError<
414            crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError,
415            R,
416        >,
417    > for Error
418where
419    R: Send + Sync + std::fmt::Debug + 'static,
420{
421    fn from(
422        err: ::aws_smithy_runtime_api::client::result::SdkError<
423            crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError,
424            R,
425        >,
426    ) -> Self {
427        match err {
428            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
429            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
430                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
431                source: err.into(),
432            }),
433        }
434    }
435}
436impl From<crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError>
437    for Error
438{
439    fn from(
440        err: crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError,
441    ) -> Self {
442        match err {
443            crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
444            crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError::InternalServerException(inner) => Error::InternalServerException(inner),
445            crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
446            crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
447            crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError::ValidationException(inner) => Error::ValidationException(inner),
448            crate::operation::get_query_status_workload_insights_top_contributors_data::GetQueryStatusWorkloadInsightsTopContributorsDataError::Unhandled(inner) => Error::Unhandled(inner),
449        }
450    }
451}
452impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scope::GetScopeError, R>> for Error
453where
454    R: Send + Sync + std::fmt::Debug + 'static,
455{
456    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scope::GetScopeError, R>) -> Self {
457        match err {
458            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
459            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
460                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
461                source: err.into(),
462            }),
463        }
464    }
465}
466impl From<crate::operation::get_scope::GetScopeError> for Error {
467    fn from(err: crate::operation::get_scope::GetScopeError) -> Self {
468        match err {
469            crate::operation::get_scope::GetScopeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
470            crate::operation::get_scope::GetScopeError::InternalServerException(inner) => Error::InternalServerException(inner),
471            crate::operation::get_scope::GetScopeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
472            crate::operation::get_scope::GetScopeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
473            crate::operation::get_scope::GetScopeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
474            crate::operation::get_scope::GetScopeError::ValidationException(inner) => Error::ValidationException(inner),
475            crate::operation::get_scope::GetScopeError::Unhandled(inner) => Error::Unhandled(inner),
476        }
477    }
478}
479impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitors::ListMonitorsError, R>> for Error
480where
481    R: Send + Sync + std::fmt::Debug + 'static,
482{
483    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitors::ListMonitorsError, R>) -> Self {
484        match err {
485            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
486            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
487                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
488                source: err.into(),
489            }),
490        }
491    }
492}
493impl From<crate::operation::list_monitors::ListMonitorsError> for Error {
494    fn from(err: crate::operation::list_monitors::ListMonitorsError) -> Self {
495        match err {
496            crate::operation::list_monitors::ListMonitorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
497            crate::operation::list_monitors::ListMonitorsError::InternalServerException(inner) => Error::InternalServerException(inner),
498            crate::operation::list_monitors::ListMonitorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
499            crate::operation::list_monitors::ListMonitorsError::ValidationException(inner) => Error::ValidationException(inner),
500            crate::operation::list_monitors::ListMonitorsError::Unhandled(inner) => Error::Unhandled(inner),
501        }
502    }
503}
504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scopes::ListScopesError, R>> for Error
505where
506    R: Send + Sync + std::fmt::Debug + 'static,
507{
508    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scopes::ListScopesError, R>) -> Self {
509        match err {
510            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
511            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
512                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
513                source: err.into(),
514            }),
515        }
516    }
517}
518impl From<crate::operation::list_scopes::ListScopesError> for Error {
519    fn from(err: crate::operation::list_scopes::ListScopesError) -> Self {
520        match err {
521            crate::operation::list_scopes::ListScopesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
522            crate::operation::list_scopes::ListScopesError::InternalServerException(inner) => Error::InternalServerException(inner),
523            crate::operation::list_scopes::ListScopesError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
524            crate::operation::list_scopes::ListScopesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
525            crate::operation::list_scopes::ListScopesError::ValidationException(inner) => Error::ValidationException(inner),
526            crate::operation::list_scopes::ListScopesError::Unhandled(inner) => Error::Unhandled(inner),
527        }
528    }
529}
530impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
531where
532    R: Send + Sync + std::fmt::Debug + 'static,
533{
534    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
535        match err {
536            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
537            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
538                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
539                source: err.into(),
540            }),
541        }
542    }
543}
544impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
545    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
546        match err {
547            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
548            crate::operation::list_tags_for_resource::ListTagsForResourceError::ConflictException(inner) => Error::ConflictException(inner),
549            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
550                Error::InternalServerException(inner)
551            }
552            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
553                Error::ResourceNotFoundException(inner)
554            }
555            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
556            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
557            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
558        }
559    }
560}
561impl<R>
562    From<
563        ::aws_smithy_runtime_api::client::result::SdkError<
564            crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError,
565            R,
566        >,
567    > for Error
568where
569    R: Send + Sync + std::fmt::Debug + 'static,
570{
571    fn from(
572        err: ::aws_smithy_runtime_api::client::result::SdkError<
573            crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError,
574            R,
575        >,
576    ) -> Self {
577        match err {
578            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
579            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
580                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
581                source: err.into(),
582            }),
583        }
584    }
585}
586impl From<crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError> for Error {
587    fn from(err: crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError) -> Self {
588        match err {
589            crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError::AccessDeniedException(inner) => {
590                Error::AccessDeniedException(inner)
591            }
592            crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError::InternalServerException(inner) => {
593                Error::InternalServerException(inner)
594            }
595            crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError::ServiceQuotaExceededException(inner) => {
596                Error::ServiceQuotaExceededException(inner)
597            }
598            crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError::ThrottlingException(inner) => {
599                Error::ThrottlingException(inner)
600            }
601            crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError::ValidationException(inner) => {
602                Error::ValidationException(inner)
603            }
604            crate::operation::start_query_monitor_top_contributors::StartQueryMonitorTopContributorsError::Unhandled(inner) => {
605                Error::Unhandled(inner)
606            }
607        }
608    }
609}
610impl<R>
611    From<
612        ::aws_smithy_runtime_api::client::result::SdkError<
613            crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError,
614            R,
615        >,
616    > for Error
617where
618    R: Send + Sync + std::fmt::Debug + 'static,
619{
620    fn from(
621        err: ::aws_smithy_runtime_api::client::result::SdkError<
622            crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError,
623            R,
624        >,
625    ) -> Self {
626        match err {
627            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
628            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
629                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
630                source: err.into(),
631            }),
632        }
633    }
634}
635impl From<crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError> for Error {
636    fn from(err: crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError) -> Self {
637        match err {
638            crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
639            crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError::InternalServerException(inner) => Error::InternalServerException(inner),
640            crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
641            crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
642            crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError::ValidationException(inner) => Error::ValidationException(inner),
643            crate::operation::start_query_workload_insights_top_contributors::StartQueryWorkloadInsightsTopContributorsError::Unhandled(inner) => Error::Unhandled(inner),
644        }
645    }
646}
647impl<R>
648    From<
649        ::aws_smithy_runtime_api::client::result::SdkError<
650            crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError,
651            R,
652        >,
653    > for Error
654where
655    R: Send + Sync + std::fmt::Debug + 'static,
656{
657    fn from(
658        err: ::aws_smithy_runtime_api::client::result::SdkError<
659            crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError,
660            R,
661        >,
662    ) -> Self {
663        match err {
664            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
665            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
666                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
667                source: err.into(),
668            }),
669        }
670    }
671}
672impl From<crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError> for Error {
673    fn from(err: crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError) -> Self {
674        match err {
675            crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
676            crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError::InternalServerException(inner) => Error::InternalServerException(inner),
677            crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
678            crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
679            crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError::ValidationException(inner) => Error::ValidationException(inner),
680            crate::operation::start_query_workload_insights_top_contributors_data::StartQueryWorkloadInsightsTopContributorsDataError::Unhandled(inner) => Error::Unhandled(inner),
681        }
682    }
683}
684impl<R>
685    From<
686        ::aws_smithy_runtime_api::client::result::SdkError<
687            crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError,
688            R,
689        >,
690    > for Error
691where
692    R: Send + Sync + std::fmt::Debug + 'static,
693{
694    fn from(
695        err: ::aws_smithy_runtime_api::client::result::SdkError<
696            crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError,
697            R,
698        >,
699    ) -> 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::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError> for Error {
710    fn from(err: crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError) -> Self {
711        match err {
712            crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError::AccessDeniedException(inner) => {
713                Error::AccessDeniedException(inner)
714            }
715            crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError::InternalServerException(inner) => {
716                Error::InternalServerException(inner)
717            }
718            crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError::ServiceQuotaExceededException(inner) => {
719                Error::ServiceQuotaExceededException(inner)
720            }
721            crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError::ThrottlingException(inner) => {
722                Error::ThrottlingException(inner)
723            }
724            crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError::ValidationException(inner) => {
725                Error::ValidationException(inner)
726            }
727            crate::operation::stop_query_monitor_top_contributors::StopQueryMonitorTopContributorsError::Unhandled(inner) => Error::Unhandled(inner),
728        }
729    }
730}
731impl<R>
732    From<
733        ::aws_smithy_runtime_api::client::result::SdkError<
734            crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError,
735            R,
736        >,
737    > for Error
738where
739    R: Send + Sync + std::fmt::Debug + 'static,
740{
741    fn from(
742        err: ::aws_smithy_runtime_api::client::result::SdkError<
743            crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError,
744            R,
745        >,
746    ) -> Self {
747        match err {
748            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
749            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
750                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
751                source: err.into(),
752            }),
753        }
754    }
755}
756impl From<crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError> for Error {
757    fn from(err: crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError) -> Self {
758        match err {
759            crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
760            crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError::InternalServerException(inner) => Error::InternalServerException(inner),
761            crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
762            crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
763            crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError::ValidationException(inner) => Error::ValidationException(inner),
764            crate::operation::stop_query_workload_insights_top_contributors::StopQueryWorkloadInsightsTopContributorsError::Unhandled(inner) => Error::Unhandled(inner),
765        }
766    }
767}
768impl<R>
769    From<
770        ::aws_smithy_runtime_api::client::result::SdkError<
771            crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError,
772            R,
773        >,
774    > for Error
775where
776    R: Send + Sync + std::fmt::Debug + 'static,
777{
778    fn from(
779        err: ::aws_smithy_runtime_api::client::result::SdkError<
780            crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError,
781            R,
782        >,
783    ) -> Self {
784        match err {
785            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
786            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
787                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
788                source: err.into(),
789            }),
790        }
791    }
792}
793impl From<crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError> for Error {
794    fn from(err: crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError) -> Self {
795        match err {
796            crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
797            crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError::InternalServerException(inner) => Error::InternalServerException(inner),
798            crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
799            crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
800            crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError::ValidationException(inner) => Error::ValidationException(inner),
801            crate::operation::stop_query_workload_insights_top_contributors_data::StopQueryWorkloadInsightsTopContributorsDataError::Unhandled(inner) => Error::Unhandled(inner),
802        }
803    }
804}
805impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
806where
807    R: Send + Sync + std::fmt::Debug + 'static,
808{
809    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
810        match err {
811            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
812            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
813                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
814                source: err.into(),
815            }),
816        }
817    }
818}
819impl From<crate::operation::tag_resource::TagResourceError> for Error {
820    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
821        match err {
822            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
823            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
824            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
825            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
826            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
827            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
828            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
829        }
830    }
831}
832impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
833where
834    R: Send + Sync + std::fmt::Debug + 'static,
835{
836    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
837        match err {
838            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
839            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
840                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
841                source: err.into(),
842            }),
843        }
844    }
845}
846impl From<crate::operation::untag_resource::UntagResourceError> for Error {
847    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
848        match err {
849            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
850            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
851            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
852            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
853            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
854            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
855            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
856        }
857    }
858}
859impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitor::UpdateMonitorError, R>> for Error
860where
861    R: Send + Sync + std::fmt::Debug + 'static,
862{
863    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitor::UpdateMonitorError, R>) -> Self {
864        match err {
865            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
866            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
867                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
868                source: err.into(),
869            }),
870        }
871    }
872}
873impl From<crate::operation::update_monitor::UpdateMonitorError> for Error {
874    fn from(err: crate::operation::update_monitor::UpdateMonitorError) -> Self {
875        match err {
876            crate::operation::update_monitor::UpdateMonitorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
877            crate::operation::update_monitor::UpdateMonitorError::InternalServerException(inner) => Error::InternalServerException(inner),
878            crate::operation::update_monitor::UpdateMonitorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
879            crate::operation::update_monitor::UpdateMonitorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
880            crate::operation::update_monitor::UpdateMonitorError::ValidationException(inner) => Error::ValidationException(inner),
881            crate::operation::update_monitor::UpdateMonitorError::Unhandled(inner) => Error::Unhandled(inner),
882        }
883    }
884}
885impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scope::UpdateScopeError, R>> for Error
886where
887    R: Send + Sync + std::fmt::Debug + 'static,
888{
889    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scope::UpdateScopeError, R>) -> Self {
890        match err {
891            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
892            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
893                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
894                source: err.into(),
895            }),
896        }
897    }
898}
899impl From<crate::operation::update_scope::UpdateScopeError> for Error {
900    fn from(err: crate::operation::update_scope::UpdateScopeError) -> Self {
901        match err {
902            crate::operation::update_scope::UpdateScopeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
903            crate::operation::update_scope::UpdateScopeError::ConflictException(inner) => Error::ConflictException(inner),
904            crate::operation::update_scope::UpdateScopeError::InternalServerException(inner) => Error::InternalServerException(inner),
905            crate::operation::update_scope::UpdateScopeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
906            crate::operation::update_scope::UpdateScopeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
907            crate::operation::update_scope::UpdateScopeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
908            crate::operation::update_scope::UpdateScopeError::ValidationException(inner) => Error::ValidationException(inner),
909            crate::operation::update_scope::UpdateScopeError::Unhandled(inner) => Error::Unhandled(inner),
910        }
911    }
912}
913impl ::std::error::Error for Error {
914    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
915        match self {
916            Error::AccessDeniedException(inner) => inner.source(),
917            Error::ConflictException(inner) => inner.source(),
918            Error::InternalServerException(inner) => inner.source(),
919            Error::ResourceNotFoundException(inner) => inner.source(),
920            Error::ServiceQuotaExceededException(inner) => inner.source(),
921            Error::ThrottlingException(inner) => inner.source(),
922            Error::ValidationException(inner) => inner.source(),
923            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
924        }
925    }
926}
927impl ::aws_types::request_id::RequestId for Error {
928    fn request_id(&self) -> Option<&str> {
929        match self {
930            Self::AccessDeniedException(e) => e.request_id(),
931            Self::ConflictException(e) => e.request_id(),
932            Self::InternalServerException(e) => e.request_id(),
933            Self::ResourceNotFoundException(e) => e.request_id(),
934            Self::ServiceQuotaExceededException(e) => e.request_id(),
935            Self::ThrottlingException(e) => e.request_id(),
936            Self::ValidationException(e) => e.request_id(),
937            Self::Unhandled(e) => e.meta.request_id(),
938        }
939    }
940}