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