aws_sdk_devopsguru/
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 permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access Management</a> in the <i>IAM User Guide</i>.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>An exception that is thrown when a conflict occurs.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>An internal failure in an Amazon service occurred.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>A requested resource could not be found</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The request contains a value that exceeds a maximum quota.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The request was denied due to a request throttling.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>Contains information about data passed in to a field during a request that is not valid.</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::add_notification_channel::AddNotificationChannelError, R>> for Error
72where
73    R: Send + Sync + std::fmt::Debug + 'static,
74{
75    fn from(
76        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_notification_channel::AddNotificationChannelError, R>,
77    ) -> Self {
78        match err {
79            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
80            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
81                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
82                source: err.into(),
83            }),
84        }
85    }
86}
87impl From<crate::operation::add_notification_channel::AddNotificationChannelError> for Error {
88    fn from(err: crate::operation::add_notification_channel::AddNotificationChannelError) -> Self {
89        match err {
90            crate::operation::add_notification_channel::AddNotificationChannelError::AccessDeniedException(inner) => {
91                Error::AccessDeniedException(inner)
92            }
93            crate::operation::add_notification_channel::AddNotificationChannelError::ConflictException(inner) => Error::ConflictException(inner),
94            crate::operation::add_notification_channel::AddNotificationChannelError::InternalServerException(inner) => {
95                Error::InternalServerException(inner)
96            }
97            crate::operation::add_notification_channel::AddNotificationChannelError::ResourceNotFoundException(inner) => {
98                Error::ResourceNotFoundException(inner)
99            }
100            crate::operation::add_notification_channel::AddNotificationChannelError::ServiceQuotaExceededException(inner) => {
101                Error::ServiceQuotaExceededException(inner)
102            }
103            crate::operation::add_notification_channel::AddNotificationChannelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
104            crate::operation::add_notification_channel::AddNotificationChannelError::ValidationException(inner) => Error::ValidationException(inner),
105            crate::operation::add_notification_channel::AddNotificationChannelError::Unhandled(inner) => Error::Unhandled(inner),
106        }
107    }
108}
109impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_insight::DeleteInsightError, R>> for Error
110where
111    R: Send + Sync + std::fmt::Debug + 'static,
112{
113    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_insight::DeleteInsightError, R>) -> Self {
114        match err {
115            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
116            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
117                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
118                source: err.into(),
119            }),
120        }
121    }
122}
123impl From<crate::operation::delete_insight::DeleteInsightError> for Error {
124    fn from(err: crate::operation::delete_insight::DeleteInsightError) -> Self {
125        match err {
126            crate::operation::delete_insight::DeleteInsightError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
127            crate::operation::delete_insight::DeleteInsightError::ConflictException(inner) => Error::ConflictException(inner),
128            crate::operation::delete_insight::DeleteInsightError::InternalServerException(inner) => Error::InternalServerException(inner),
129            crate::operation::delete_insight::DeleteInsightError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
130            crate::operation::delete_insight::DeleteInsightError::ThrottlingException(inner) => Error::ThrottlingException(inner),
131            crate::operation::delete_insight::DeleteInsightError::ValidationException(inner) => Error::ValidationException(inner),
132            crate::operation::delete_insight::DeleteInsightError::Unhandled(inner) => Error::Unhandled(inner),
133        }
134    }
135}
136impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_health::DescribeAccountHealthError, R>> for Error
137where
138    R: Send + Sync + std::fmt::Debug + 'static,
139{
140    fn from(
141        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_health::DescribeAccountHealthError, R>,
142    ) -> Self {
143        match err {
144            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
145            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
146                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
147                source: err.into(),
148            }),
149        }
150    }
151}
152impl From<crate::operation::describe_account_health::DescribeAccountHealthError> for Error {
153    fn from(err: crate::operation::describe_account_health::DescribeAccountHealthError) -> Self {
154        match err {
155            crate::operation::describe_account_health::DescribeAccountHealthError::AccessDeniedException(inner) => {
156                Error::AccessDeniedException(inner)
157            }
158            crate::operation::describe_account_health::DescribeAccountHealthError::InternalServerException(inner) => {
159                Error::InternalServerException(inner)
160            }
161            crate::operation::describe_account_health::DescribeAccountHealthError::ThrottlingException(inner) => Error::ThrottlingException(inner),
162            crate::operation::describe_account_health::DescribeAccountHealthError::ValidationException(inner) => Error::ValidationException(inner),
163            crate::operation::describe_account_health::DescribeAccountHealthError::Unhandled(inner) => Error::Unhandled(inner),
164        }
165    }
166}
167impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_overview::DescribeAccountOverviewError, R>>
168    for Error
169where
170    R: Send + Sync + std::fmt::Debug + 'static,
171{
172    fn from(
173        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_overview::DescribeAccountOverviewError, R>,
174    ) -> Self {
175        match err {
176            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
177            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
178                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
179                source: err.into(),
180            }),
181        }
182    }
183}
184impl From<crate::operation::describe_account_overview::DescribeAccountOverviewError> for Error {
185    fn from(err: crate::operation::describe_account_overview::DescribeAccountOverviewError) -> Self {
186        match err {
187            crate::operation::describe_account_overview::DescribeAccountOverviewError::AccessDeniedException(inner) => {
188                Error::AccessDeniedException(inner)
189            }
190            crate::operation::describe_account_overview::DescribeAccountOverviewError::InternalServerException(inner) => {
191                Error::InternalServerException(inner)
192            }
193            crate::operation::describe_account_overview::DescribeAccountOverviewError::ThrottlingException(inner) => {
194                Error::ThrottlingException(inner)
195            }
196            crate::operation::describe_account_overview::DescribeAccountOverviewError::ValidationException(inner) => {
197                Error::ValidationException(inner)
198            }
199            crate::operation::describe_account_overview::DescribeAccountOverviewError::Unhandled(inner) => Error::Unhandled(inner),
200        }
201    }
202}
203impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_anomaly::DescribeAnomalyError, R>> for Error
204where
205    R: Send + Sync + std::fmt::Debug + 'static,
206{
207    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_anomaly::DescribeAnomalyError, R>) -> Self {
208        match err {
209            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
210            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
211                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
212                source: err.into(),
213            }),
214        }
215    }
216}
217impl From<crate::operation::describe_anomaly::DescribeAnomalyError> for Error {
218    fn from(err: crate::operation::describe_anomaly::DescribeAnomalyError) -> Self {
219        match err {
220            crate::operation::describe_anomaly::DescribeAnomalyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
221            crate::operation::describe_anomaly::DescribeAnomalyError::InternalServerException(inner) => Error::InternalServerException(inner),
222            crate::operation::describe_anomaly::DescribeAnomalyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
223            crate::operation::describe_anomaly::DescribeAnomalyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
224            crate::operation::describe_anomaly::DescribeAnomalyError::ValidationException(inner) => Error::ValidationException(inner),
225            crate::operation::describe_anomaly::DescribeAnomalyError::Unhandled(inner) => Error::Unhandled(inner),
226        }
227    }
228}
229impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_sources_config::DescribeEventSourcesConfigError, R>>
230    for Error
231where
232    R: Send + Sync + std::fmt::Debug + 'static,
233{
234    fn from(
235        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_sources_config::DescribeEventSourcesConfigError, R>,
236    ) -> Self {
237        match err {
238            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
239            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
240                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
241                source: err.into(),
242            }),
243        }
244    }
245}
246impl From<crate::operation::describe_event_sources_config::DescribeEventSourcesConfigError> for Error {
247    fn from(err: crate::operation::describe_event_sources_config::DescribeEventSourcesConfigError) -> Self {
248        match err {
249            crate::operation::describe_event_sources_config::DescribeEventSourcesConfigError::AccessDeniedException(inner) => {
250                Error::AccessDeniedException(inner)
251            }
252            crate::operation::describe_event_sources_config::DescribeEventSourcesConfigError::InternalServerException(inner) => {
253                Error::InternalServerException(inner)
254            }
255            crate::operation::describe_event_sources_config::DescribeEventSourcesConfigError::ThrottlingException(inner) => {
256                Error::ThrottlingException(inner)
257            }
258            crate::operation::describe_event_sources_config::DescribeEventSourcesConfigError::ValidationException(inner) => {
259                Error::ValidationException(inner)
260            }
261            crate::operation::describe_event_sources_config::DescribeEventSourcesConfigError::Unhandled(inner) => Error::Unhandled(inner),
262        }
263    }
264}
265impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feedback::DescribeFeedbackError, R>> for Error
266where
267    R: Send + Sync + std::fmt::Debug + 'static,
268{
269    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_feedback::DescribeFeedbackError, R>) -> Self {
270        match err {
271            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
272            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
273                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
274                source: err.into(),
275            }),
276        }
277    }
278}
279impl From<crate::operation::describe_feedback::DescribeFeedbackError> for Error {
280    fn from(err: crate::operation::describe_feedback::DescribeFeedbackError) -> Self {
281        match err {
282            crate::operation::describe_feedback::DescribeFeedbackError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
283            crate::operation::describe_feedback::DescribeFeedbackError::InternalServerException(inner) => Error::InternalServerException(inner),
284            crate::operation::describe_feedback::DescribeFeedbackError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
285            crate::operation::describe_feedback::DescribeFeedbackError::ThrottlingException(inner) => Error::ThrottlingException(inner),
286            crate::operation::describe_feedback::DescribeFeedbackError::ValidationException(inner) => Error::ValidationException(inner),
287            crate::operation::describe_feedback::DescribeFeedbackError::Unhandled(inner) => Error::Unhandled(inner),
288        }
289    }
290}
291impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_insight::DescribeInsightError, R>> for Error
292where
293    R: Send + Sync + std::fmt::Debug + 'static,
294{
295    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_insight::DescribeInsightError, R>) -> Self {
296        match err {
297            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
298            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
299                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
300                source: err.into(),
301            }),
302        }
303    }
304}
305impl From<crate::operation::describe_insight::DescribeInsightError> for Error {
306    fn from(err: crate::operation::describe_insight::DescribeInsightError) -> Self {
307        match err {
308            crate::operation::describe_insight::DescribeInsightError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
309            crate::operation::describe_insight::DescribeInsightError::InternalServerException(inner) => Error::InternalServerException(inner),
310            crate::operation::describe_insight::DescribeInsightError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
311            crate::operation::describe_insight::DescribeInsightError::ThrottlingException(inner) => Error::ThrottlingException(inner),
312            crate::operation::describe_insight::DescribeInsightError::ValidationException(inner) => Error::ValidationException(inner),
313            crate::operation::describe_insight::DescribeInsightError::Unhandled(inner) => Error::Unhandled(inner),
314        }
315    }
316}
317impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_organization_health::DescribeOrganizationHealthError, R>>
318    for Error
319where
320    R: Send + Sync + std::fmt::Debug + 'static,
321{
322    fn from(
323        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_organization_health::DescribeOrganizationHealthError, R>,
324    ) -> Self {
325        match err {
326            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
327            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
328                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
329                source: err.into(),
330            }),
331        }
332    }
333}
334impl From<crate::operation::describe_organization_health::DescribeOrganizationHealthError> for Error {
335    fn from(err: crate::operation::describe_organization_health::DescribeOrganizationHealthError) -> Self {
336        match err {
337            crate::operation::describe_organization_health::DescribeOrganizationHealthError::AccessDeniedException(inner) => {
338                Error::AccessDeniedException(inner)
339            }
340            crate::operation::describe_organization_health::DescribeOrganizationHealthError::InternalServerException(inner) => {
341                Error::InternalServerException(inner)
342            }
343            crate::operation::describe_organization_health::DescribeOrganizationHealthError::ThrottlingException(inner) => {
344                Error::ThrottlingException(inner)
345            }
346            crate::operation::describe_organization_health::DescribeOrganizationHealthError::ValidationException(inner) => {
347                Error::ValidationException(inner)
348            }
349            crate::operation::describe_organization_health::DescribeOrganizationHealthError::Unhandled(inner) => Error::Unhandled(inner),
350        }
351    }
352}
353impl<R>
354    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_organization_overview::DescribeOrganizationOverviewError, R>>
355    for Error
356where
357    R: Send + Sync + std::fmt::Debug + 'static,
358{
359    fn from(
360        err: ::aws_smithy_runtime_api::client::result::SdkError<
361            crate::operation::describe_organization_overview::DescribeOrganizationOverviewError,
362            R,
363        >,
364    ) -> Self {
365        match err {
366            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
367            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
368                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
369                source: err.into(),
370            }),
371        }
372    }
373}
374impl From<crate::operation::describe_organization_overview::DescribeOrganizationOverviewError> for Error {
375    fn from(err: crate::operation::describe_organization_overview::DescribeOrganizationOverviewError) -> Self {
376        match err {
377            crate::operation::describe_organization_overview::DescribeOrganizationOverviewError::AccessDeniedException(inner) => {
378                Error::AccessDeniedException(inner)
379            }
380            crate::operation::describe_organization_overview::DescribeOrganizationOverviewError::InternalServerException(inner) => {
381                Error::InternalServerException(inner)
382            }
383            crate::operation::describe_organization_overview::DescribeOrganizationOverviewError::ThrottlingException(inner) => {
384                Error::ThrottlingException(inner)
385            }
386            crate::operation::describe_organization_overview::DescribeOrganizationOverviewError::ValidationException(inner) => {
387                Error::ValidationException(inner)
388            }
389            crate::operation::describe_organization_overview::DescribeOrganizationOverviewError::Unhandled(inner) => Error::Unhandled(inner),
390        }
391    }
392}
393impl<R>
394    From<
395        ::aws_smithy_runtime_api::client::result::SdkError<
396            crate::operation::describe_organization_resource_collection_health::DescribeOrganizationResourceCollectionHealthError,
397            R,
398        >,
399    > for Error
400where
401    R: Send + Sync + std::fmt::Debug + 'static,
402{
403    fn from(
404        err: ::aws_smithy_runtime_api::client::result::SdkError<
405            crate::operation::describe_organization_resource_collection_health::DescribeOrganizationResourceCollectionHealthError,
406            R,
407        >,
408    ) -> Self {
409        match err {
410            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
411            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
412                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
413                source: err.into(),
414            }),
415        }
416    }
417}
418impl From<crate::operation::describe_organization_resource_collection_health::DescribeOrganizationResourceCollectionHealthError> for Error {
419    fn from(err: crate::operation::describe_organization_resource_collection_health::DescribeOrganizationResourceCollectionHealthError) -> Self {
420        match err {
421            crate::operation::describe_organization_resource_collection_health::DescribeOrganizationResourceCollectionHealthError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
422            crate::operation::describe_organization_resource_collection_health::DescribeOrganizationResourceCollectionHealthError::InternalServerException(inner) => Error::InternalServerException(inner),
423            crate::operation::describe_organization_resource_collection_health::DescribeOrganizationResourceCollectionHealthError::ThrottlingException(inner) => Error::ThrottlingException(inner),
424            crate::operation::describe_organization_resource_collection_health::DescribeOrganizationResourceCollectionHealthError::ValidationException(inner) => Error::ValidationException(inner),
425            crate::operation::describe_organization_resource_collection_health::DescribeOrganizationResourceCollectionHealthError::Unhandled(inner) => Error::Unhandled(inner),
426        }
427    }
428}
429impl<R>
430    From<
431        ::aws_smithy_runtime_api::client::result::SdkError<
432            crate::operation::describe_resource_collection_health::DescribeResourceCollectionHealthError,
433            R,
434        >,
435    > for Error
436where
437    R: Send + Sync + std::fmt::Debug + 'static,
438{
439    fn from(
440        err: ::aws_smithy_runtime_api::client::result::SdkError<
441            crate::operation::describe_resource_collection_health::DescribeResourceCollectionHealthError,
442            R,
443        >,
444    ) -> Self {
445        match err {
446            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
447            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
448                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
449                source: err.into(),
450            }),
451        }
452    }
453}
454impl From<crate::operation::describe_resource_collection_health::DescribeResourceCollectionHealthError> for Error {
455    fn from(err: crate::operation::describe_resource_collection_health::DescribeResourceCollectionHealthError) -> Self {
456        match err {
457            crate::operation::describe_resource_collection_health::DescribeResourceCollectionHealthError::AccessDeniedException(inner) => {
458                Error::AccessDeniedException(inner)
459            }
460            crate::operation::describe_resource_collection_health::DescribeResourceCollectionHealthError::InternalServerException(inner) => {
461                Error::InternalServerException(inner)
462            }
463            crate::operation::describe_resource_collection_health::DescribeResourceCollectionHealthError::ThrottlingException(inner) => {
464                Error::ThrottlingException(inner)
465            }
466            crate::operation::describe_resource_collection_health::DescribeResourceCollectionHealthError::ValidationException(inner) => {
467                Error::ValidationException(inner)
468            }
469            crate::operation::describe_resource_collection_health::DescribeResourceCollectionHealthError::Unhandled(inner) => Error::Unhandled(inner),
470        }
471    }
472}
473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_service_integration::DescribeServiceIntegrationError, R>>
474    for Error
475where
476    R: Send + Sync + std::fmt::Debug + 'static,
477{
478    fn from(
479        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_service_integration::DescribeServiceIntegrationError, R>,
480    ) -> Self {
481        match err {
482            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
483            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
484                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
485                source: err.into(),
486            }),
487        }
488    }
489}
490impl From<crate::operation::describe_service_integration::DescribeServiceIntegrationError> for Error {
491    fn from(err: crate::operation::describe_service_integration::DescribeServiceIntegrationError) -> Self {
492        match err {
493            crate::operation::describe_service_integration::DescribeServiceIntegrationError::AccessDeniedException(inner) => {
494                Error::AccessDeniedException(inner)
495            }
496            crate::operation::describe_service_integration::DescribeServiceIntegrationError::InternalServerException(inner) => {
497                Error::InternalServerException(inner)
498            }
499            crate::operation::describe_service_integration::DescribeServiceIntegrationError::ResourceNotFoundException(inner) => {
500                Error::ResourceNotFoundException(inner)
501            }
502            crate::operation::describe_service_integration::DescribeServiceIntegrationError::ThrottlingException(inner) => {
503                Error::ThrottlingException(inner)
504            }
505            crate::operation::describe_service_integration::DescribeServiceIntegrationError::ValidationException(inner) => {
506                Error::ValidationException(inner)
507            }
508            crate::operation::describe_service_integration::DescribeServiceIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
509        }
510    }
511}
512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cost_estimation::GetCostEstimationError, R>> for Error
513where
514    R: Send + Sync + std::fmt::Debug + 'static,
515{
516    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cost_estimation::GetCostEstimationError, R>) -> Self {
517        match err {
518            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
519            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
520                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
521                source: err.into(),
522            }),
523        }
524    }
525}
526impl From<crate::operation::get_cost_estimation::GetCostEstimationError> for Error {
527    fn from(err: crate::operation::get_cost_estimation::GetCostEstimationError) -> Self {
528        match err {
529            crate::operation::get_cost_estimation::GetCostEstimationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
530            crate::operation::get_cost_estimation::GetCostEstimationError::InternalServerException(inner) => Error::InternalServerException(inner),
531            crate::operation::get_cost_estimation::GetCostEstimationError::ResourceNotFoundException(inner) => {
532                Error::ResourceNotFoundException(inner)
533            }
534            crate::operation::get_cost_estimation::GetCostEstimationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
535            crate::operation::get_cost_estimation::GetCostEstimationError::ValidationException(inner) => Error::ValidationException(inner),
536            crate::operation::get_cost_estimation::GetCostEstimationError::Unhandled(inner) => Error::Unhandled(inner),
537        }
538    }
539}
540impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_collection::GetResourceCollectionError, R>> for Error
541where
542    R: Send + Sync + std::fmt::Debug + 'static,
543{
544    fn from(
545        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_collection::GetResourceCollectionError, R>,
546    ) -> Self {
547        match err {
548            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
549            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
550                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
551                source: err.into(),
552            }),
553        }
554    }
555}
556impl From<crate::operation::get_resource_collection::GetResourceCollectionError> for Error {
557    fn from(err: crate::operation::get_resource_collection::GetResourceCollectionError) -> Self {
558        match err {
559            crate::operation::get_resource_collection::GetResourceCollectionError::AccessDeniedException(inner) => {
560                Error::AccessDeniedException(inner)
561            }
562            crate::operation::get_resource_collection::GetResourceCollectionError::InternalServerException(inner) => {
563                Error::InternalServerException(inner)
564            }
565            crate::operation::get_resource_collection::GetResourceCollectionError::ResourceNotFoundException(inner) => {
566                Error::ResourceNotFoundException(inner)
567            }
568            crate::operation::get_resource_collection::GetResourceCollectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
569            crate::operation::get_resource_collection::GetResourceCollectionError::ValidationException(inner) => Error::ValidationException(inner),
570            crate::operation::get_resource_collection::GetResourceCollectionError::Unhandled(inner) => Error::Unhandled(inner),
571        }
572    }
573}
574impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_anomalies_for_insight::ListAnomaliesForInsightError, R>>
575    for Error
576where
577    R: Send + Sync + std::fmt::Debug + 'static,
578{
579    fn from(
580        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_anomalies_for_insight::ListAnomaliesForInsightError, R>,
581    ) -> Self {
582        match err {
583            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
584            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
585                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
586                source: err.into(),
587            }),
588        }
589    }
590}
591impl From<crate::operation::list_anomalies_for_insight::ListAnomaliesForInsightError> for Error {
592    fn from(err: crate::operation::list_anomalies_for_insight::ListAnomaliesForInsightError) -> Self {
593        match err {
594            crate::operation::list_anomalies_for_insight::ListAnomaliesForInsightError::AccessDeniedException(inner) => {
595                Error::AccessDeniedException(inner)
596            }
597            crate::operation::list_anomalies_for_insight::ListAnomaliesForInsightError::InternalServerException(inner) => {
598                Error::InternalServerException(inner)
599            }
600            crate::operation::list_anomalies_for_insight::ListAnomaliesForInsightError::ResourceNotFoundException(inner) => {
601                Error::ResourceNotFoundException(inner)
602            }
603            crate::operation::list_anomalies_for_insight::ListAnomaliesForInsightError::ThrottlingException(inner) => {
604                Error::ThrottlingException(inner)
605            }
606            crate::operation::list_anomalies_for_insight::ListAnomaliesForInsightError::ValidationException(inner) => {
607                Error::ValidationException(inner)
608            }
609            crate::operation::list_anomalies_for_insight::ListAnomaliesForInsightError::Unhandled(inner) => Error::Unhandled(inner),
610        }
611    }
612}
613impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_anomalous_log_groups::ListAnomalousLogGroupsError, R>>
614    for Error
615where
616    R: Send + Sync + std::fmt::Debug + 'static,
617{
618    fn from(
619        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_anomalous_log_groups::ListAnomalousLogGroupsError, R>,
620    ) -> Self {
621        match err {
622            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
623            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
624                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
625                source: err.into(),
626            }),
627        }
628    }
629}
630impl From<crate::operation::list_anomalous_log_groups::ListAnomalousLogGroupsError> for Error {
631    fn from(err: crate::operation::list_anomalous_log_groups::ListAnomalousLogGroupsError) -> Self {
632        match err {
633            crate::operation::list_anomalous_log_groups::ListAnomalousLogGroupsError::AccessDeniedException(inner) => {
634                Error::AccessDeniedException(inner)
635            }
636            crate::operation::list_anomalous_log_groups::ListAnomalousLogGroupsError::InternalServerException(inner) => {
637                Error::InternalServerException(inner)
638            }
639            crate::operation::list_anomalous_log_groups::ListAnomalousLogGroupsError::ResourceNotFoundException(inner) => {
640                Error::ResourceNotFoundException(inner)
641            }
642            crate::operation::list_anomalous_log_groups::ListAnomalousLogGroupsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
643            crate::operation::list_anomalous_log_groups::ListAnomalousLogGroupsError::ValidationException(inner) => Error::ValidationException(inner),
644            crate::operation::list_anomalous_log_groups::ListAnomalousLogGroupsError::Unhandled(inner) => Error::Unhandled(inner),
645        }
646    }
647}
648impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_events::ListEventsError, R>> for Error
649where
650    R: Send + Sync + std::fmt::Debug + 'static,
651{
652    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_events::ListEventsError, R>) -> Self {
653        match err {
654            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
655            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
656                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
657                source: err.into(),
658            }),
659        }
660    }
661}
662impl From<crate::operation::list_events::ListEventsError> for Error {
663    fn from(err: crate::operation::list_events::ListEventsError) -> Self {
664        match err {
665            crate::operation::list_events::ListEventsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
666            crate::operation::list_events::ListEventsError::InternalServerException(inner) => Error::InternalServerException(inner),
667            crate::operation::list_events::ListEventsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
668            crate::operation::list_events::ListEventsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
669            crate::operation::list_events::ListEventsError::ValidationException(inner) => Error::ValidationException(inner),
670            crate::operation::list_events::ListEventsError::Unhandled(inner) => Error::Unhandled(inner),
671        }
672    }
673}
674impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_insights::ListInsightsError, R>> for Error
675where
676    R: Send + Sync + std::fmt::Debug + 'static,
677{
678    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_insights::ListInsightsError, R>) -> Self {
679        match err {
680            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
681            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
682                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
683                source: err.into(),
684            }),
685        }
686    }
687}
688impl From<crate::operation::list_insights::ListInsightsError> for Error {
689    fn from(err: crate::operation::list_insights::ListInsightsError) -> Self {
690        match err {
691            crate::operation::list_insights::ListInsightsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
692            crate::operation::list_insights::ListInsightsError::InternalServerException(inner) => Error::InternalServerException(inner),
693            crate::operation::list_insights::ListInsightsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
694            crate::operation::list_insights::ListInsightsError::ValidationException(inner) => Error::ValidationException(inner),
695            crate::operation::list_insights::ListInsightsError::Unhandled(inner) => Error::Unhandled(inner),
696        }
697    }
698}
699impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitored_resources::ListMonitoredResourcesError, R>> for Error
700where
701    R: Send + Sync + std::fmt::Debug + 'static,
702{
703    fn from(
704        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitored_resources::ListMonitoredResourcesError, R>,
705    ) -> Self {
706        match err {
707            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
708            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
709                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
710                source: err.into(),
711            }),
712        }
713    }
714}
715impl From<crate::operation::list_monitored_resources::ListMonitoredResourcesError> for Error {
716    fn from(err: crate::operation::list_monitored_resources::ListMonitoredResourcesError) -> Self {
717        match err {
718            crate::operation::list_monitored_resources::ListMonitoredResourcesError::InternalServerException(inner) => {
719                Error::InternalServerException(inner)
720            }
721            crate::operation::list_monitored_resources::ListMonitoredResourcesError::ResourceNotFoundException(inner) => {
722                Error::ResourceNotFoundException(inner)
723            }
724            crate::operation::list_monitored_resources::ListMonitoredResourcesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
725            crate::operation::list_monitored_resources::ListMonitoredResourcesError::ValidationException(inner) => Error::ValidationException(inner),
726            crate::operation::list_monitored_resources::ListMonitoredResourcesError::Unhandled(inner) => Error::Unhandled(inner),
727        }
728    }
729}
730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notification_channels::ListNotificationChannelsError, R>>
731    for Error
732where
733    R: Send + Sync + std::fmt::Debug + 'static,
734{
735    fn from(
736        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notification_channels::ListNotificationChannelsError, R>,
737    ) -> Self {
738        match err {
739            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
740            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
741                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
742                source: err.into(),
743            }),
744        }
745    }
746}
747impl From<crate::operation::list_notification_channels::ListNotificationChannelsError> for Error {
748    fn from(err: crate::operation::list_notification_channels::ListNotificationChannelsError) -> Self {
749        match err {
750            crate::operation::list_notification_channels::ListNotificationChannelsError::AccessDeniedException(inner) => {
751                Error::AccessDeniedException(inner)
752            }
753            crate::operation::list_notification_channels::ListNotificationChannelsError::InternalServerException(inner) => {
754                Error::InternalServerException(inner)
755            }
756            crate::operation::list_notification_channels::ListNotificationChannelsError::ThrottlingException(inner) => {
757                Error::ThrottlingException(inner)
758            }
759            crate::operation::list_notification_channels::ListNotificationChannelsError::ValidationException(inner) => {
760                Error::ValidationException(inner)
761            }
762            crate::operation::list_notification_channels::ListNotificationChannelsError::Unhandled(inner) => Error::Unhandled(inner),
763        }
764    }
765}
766impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_organization_insights::ListOrganizationInsightsError, R>>
767    for Error
768where
769    R: Send + Sync + std::fmt::Debug + 'static,
770{
771    fn from(
772        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_organization_insights::ListOrganizationInsightsError, R>,
773    ) -> Self {
774        match err {
775            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
776            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
777                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
778                source: err.into(),
779            }),
780        }
781    }
782}
783impl From<crate::operation::list_organization_insights::ListOrganizationInsightsError> for Error {
784    fn from(err: crate::operation::list_organization_insights::ListOrganizationInsightsError) -> Self {
785        match err {
786            crate::operation::list_organization_insights::ListOrganizationInsightsError::AccessDeniedException(inner) => {
787                Error::AccessDeniedException(inner)
788            }
789            crate::operation::list_organization_insights::ListOrganizationInsightsError::InternalServerException(inner) => {
790                Error::InternalServerException(inner)
791            }
792            crate::operation::list_organization_insights::ListOrganizationInsightsError::ThrottlingException(inner) => {
793                Error::ThrottlingException(inner)
794            }
795            crate::operation::list_organization_insights::ListOrganizationInsightsError::ValidationException(inner) => {
796                Error::ValidationException(inner)
797            }
798            crate::operation::list_organization_insights::ListOrganizationInsightsError::Unhandled(inner) => Error::Unhandled(inner),
799        }
800    }
801}
802impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommendations::ListRecommendationsError, R>> for Error
803where
804    R: Send + Sync + std::fmt::Debug + 'static,
805{
806    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommendations::ListRecommendationsError, R>) -> Self {
807        match err {
808            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
809            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
810                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
811                source: err.into(),
812            }),
813        }
814    }
815}
816impl From<crate::operation::list_recommendations::ListRecommendationsError> for Error {
817    fn from(err: crate::operation::list_recommendations::ListRecommendationsError) -> Self {
818        match err {
819            crate::operation::list_recommendations::ListRecommendationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
820            crate::operation::list_recommendations::ListRecommendationsError::InternalServerException(inner) => Error::InternalServerException(inner),
821            crate::operation::list_recommendations::ListRecommendationsError::ResourceNotFoundException(inner) => {
822                Error::ResourceNotFoundException(inner)
823            }
824            crate::operation::list_recommendations::ListRecommendationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
825            crate::operation::list_recommendations::ListRecommendationsError::ValidationException(inner) => Error::ValidationException(inner),
826            crate::operation::list_recommendations::ListRecommendationsError::Unhandled(inner) => Error::Unhandled(inner),
827        }
828    }
829}
830impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_feedback::PutFeedbackError, R>> for Error
831where
832    R: Send + Sync + std::fmt::Debug + 'static,
833{
834    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_feedback::PutFeedbackError, R>) -> Self {
835        match err {
836            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
837            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
838                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
839                source: err.into(),
840            }),
841        }
842    }
843}
844impl From<crate::operation::put_feedback::PutFeedbackError> for Error {
845    fn from(err: crate::operation::put_feedback::PutFeedbackError) -> Self {
846        match err {
847            crate::operation::put_feedback::PutFeedbackError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
848            crate::operation::put_feedback::PutFeedbackError::ConflictException(inner) => Error::ConflictException(inner),
849            crate::operation::put_feedback::PutFeedbackError::InternalServerException(inner) => Error::InternalServerException(inner),
850            crate::operation::put_feedback::PutFeedbackError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
851            crate::operation::put_feedback::PutFeedbackError::ThrottlingException(inner) => Error::ThrottlingException(inner),
852            crate::operation::put_feedback::PutFeedbackError::ValidationException(inner) => Error::ValidationException(inner),
853            crate::operation::put_feedback::PutFeedbackError::Unhandled(inner) => Error::Unhandled(inner),
854        }
855    }
856}
857impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_notification_channel::RemoveNotificationChannelError, R>>
858    for Error
859where
860    R: Send + Sync + std::fmt::Debug + 'static,
861{
862    fn from(
863        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_notification_channel::RemoveNotificationChannelError, R>,
864    ) -> 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::remove_notification_channel::RemoveNotificationChannelError> for Error {
875    fn from(err: crate::operation::remove_notification_channel::RemoveNotificationChannelError) -> Self {
876        match err {
877            crate::operation::remove_notification_channel::RemoveNotificationChannelError::AccessDeniedException(inner) => {
878                Error::AccessDeniedException(inner)
879            }
880            crate::operation::remove_notification_channel::RemoveNotificationChannelError::ConflictException(inner) => {
881                Error::ConflictException(inner)
882            }
883            crate::operation::remove_notification_channel::RemoveNotificationChannelError::InternalServerException(inner) => {
884                Error::InternalServerException(inner)
885            }
886            crate::operation::remove_notification_channel::RemoveNotificationChannelError::ResourceNotFoundException(inner) => {
887                Error::ResourceNotFoundException(inner)
888            }
889            crate::operation::remove_notification_channel::RemoveNotificationChannelError::ThrottlingException(inner) => {
890                Error::ThrottlingException(inner)
891            }
892            crate::operation::remove_notification_channel::RemoveNotificationChannelError::ValidationException(inner) => {
893                Error::ValidationException(inner)
894            }
895            crate::operation::remove_notification_channel::RemoveNotificationChannelError::Unhandled(inner) => Error::Unhandled(inner),
896        }
897    }
898}
899impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_insights::SearchInsightsError, R>> for Error
900where
901    R: Send + Sync + std::fmt::Debug + 'static,
902{
903    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_insights::SearchInsightsError, R>) -> Self {
904        match err {
905            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
906            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
907                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
908                source: err.into(),
909            }),
910        }
911    }
912}
913impl From<crate::operation::search_insights::SearchInsightsError> for Error {
914    fn from(err: crate::operation::search_insights::SearchInsightsError) -> Self {
915        match err {
916            crate::operation::search_insights::SearchInsightsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
917            crate::operation::search_insights::SearchInsightsError::InternalServerException(inner) => Error::InternalServerException(inner),
918            crate::operation::search_insights::SearchInsightsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
919            crate::operation::search_insights::SearchInsightsError::ValidationException(inner) => Error::ValidationException(inner),
920            crate::operation::search_insights::SearchInsightsError::Unhandled(inner) => Error::Unhandled(inner),
921        }
922    }
923}
924impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_organization_insights::SearchOrganizationInsightsError, R>>
925    for Error
926where
927    R: Send + Sync + std::fmt::Debug + 'static,
928{
929    fn from(
930        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_organization_insights::SearchOrganizationInsightsError, R>,
931    ) -> Self {
932        match err {
933            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
934            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
935                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
936                source: err.into(),
937            }),
938        }
939    }
940}
941impl From<crate::operation::search_organization_insights::SearchOrganizationInsightsError> for Error {
942    fn from(err: crate::operation::search_organization_insights::SearchOrganizationInsightsError) -> Self {
943        match err {
944            crate::operation::search_organization_insights::SearchOrganizationInsightsError::AccessDeniedException(inner) => {
945                Error::AccessDeniedException(inner)
946            }
947            crate::operation::search_organization_insights::SearchOrganizationInsightsError::InternalServerException(inner) => {
948                Error::InternalServerException(inner)
949            }
950            crate::operation::search_organization_insights::SearchOrganizationInsightsError::ThrottlingException(inner) => {
951                Error::ThrottlingException(inner)
952            }
953            crate::operation::search_organization_insights::SearchOrganizationInsightsError::ValidationException(inner) => {
954                Error::ValidationException(inner)
955            }
956            crate::operation::search_organization_insights::SearchOrganizationInsightsError::Unhandled(inner) => Error::Unhandled(inner),
957        }
958    }
959}
960impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_cost_estimation::StartCostEstimationError, R>> for Error
961where
962    R: Send + Sync + std::fmt::Debug + 'static,
963{
964    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_cost_estimation::StartCostEstimationError, R>) -> Self {
965        match err {
966            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
967            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
968                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
969                source: err.into(),
970            }),
971        }
972    }
973}
974impl From<crate::operation::start_cost_estimation::StartCostEstimationError> for Error {
975    fn from(err: crate::operation::start_cost_estimation::StartCostEstimationError) -> Self {
976        match err {
977            crate::operation::start_cost_estimation::StartCostEstimationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
978            crate::operation::start_cost_estimation::StartCostEstimationError::ConflictException(inner) => Error::ConflictException(inner),
979            crate::operation::start_cost_estimation::StartCostEstimationError::InternalServerException(inner) => {
980                Error::InternalServerException(inner)
981            }
982            crate::operation::start_cost_estimation::StartCostEstimationError::ResourceNotFoundException(inner) => {
983                Error::ResourceNotFoundException(inner)
984            }
985            crate::operation::start_cost_estimation::StartCostEstimationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
986            crate::operation::start_cost_estimation::StartCostEstimationError::ValidationException(inner) => Error::ValidationException(inner),
987            crate::operation::start_cost_estimation::StartCostEstimationError::Unhandled(inner) => Error::Unhandled(inner),
988        }
989    }
990}
991impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_event_sources_config::UpdateEventSourcesConfigError, R>>
992    for Error
993where
994    R: Send + Sync + std::fmt::Debug + 'static,
995{
996    fn from(
997        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_event_sources_config::UpdateEventSourcesConfigError, R>,
998    ) -> Self {
999        match err {
1000            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1001            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1002                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1003                source: err.into(),
1004            }),
1005        }
1006    }
1007}
1008impl From<crate::operation::update_event_sources_config::UpdateEventSourcesConfigError> for Error {
1009    fn from(err: crate::operation::update_event_sources_config::UpdateEventSourcesConfigError) -> Self {
1010        match err {
1011            crate::operation::update_event_sources_config::UpdateEventSourcesConfigError::AccessDeniedException(inner) => {
1012                Error::AccessDeniedException(inner)
1013            }
1014            crate::operation::update_event_sources_config::UpdateEventSourcesConfigError::InternalServerException(inner) => {
1015                Error::InternalServerException(inner)
1016            }
1017            crate::operation::update_event_sources_config::UpdateEventSourcesConfigError::ThrottlingException(inner) => {
1018                Error::ThrottlingException(inner)
1019            }
1020            crate::operation::update_event_sources_config::UpdateEventSourcesConfigError::ValidationException(inner) => {
1021                Error::ValidationException(inner)
1022            }
1023            crate::operation::update_event_sources_config::UpdateEventSourcesConfigError::Unhandled(inner) => Error::Unhandled(inner),
1024        }
1025    }
1026}
1027impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_resource_collection::UpdateResourceCollectionError, R>>
1028    for Error
1029where
1030    R: Send + Sync + std::fmt::Debug + 'static,
1031{
1032    fn from(
1033        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_resource_collection::UpdateResourceCollectionError, R>,
1034    ) -> Self {
1035        match err {
1036            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1037            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1038                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1039                source: err.into(),
1040            }),
1041        }
1042    }
1043}
1044impl From<crate::operation::update_resource_collection::UpdateResourceCollectionError> for Error {
1045    fn from(err: crate::operation::update_resource_collection::UpdateResourceCollectionError) -> Self {
1046        match err {
1047            crate::operation::update_resource_collection::UpdateResourceCollectionError::AccessDeniedException(inner) => {
1048                Error::AccessDeniedException(inner)
1049            }
1050            crate::operation::update_resource_collection::UpdateResourceCollectionError::ConflictException(inner) => Error::ConflictException(inner),
1051            crate::operation::update_resource_collection::UpdateResourceCollectionError::InternalServerException(inner) => {
1052                Error::InternalServerException(inner)
1053            }
1054            crate::operation::update_resource_collection::UpdateResourceCollectionError::ThrottlingException(inner) => {
1055                Error::ThrottlingException(inner)
1056            }
1057            crate::operation::update_resource_collection::UpdateResourceCollectionError::ValidationException(inner) => {
1058                Error::ValidationException(inner)
1059            }
1060            crate::operation::update_resource_collection::UpdateResourceCollectionError::Unhandled(inner) => Error::Unhandled(inner),
1061        }
1062    }
1063}
1064impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service_integration::UpdateServiceIntegrationError, R>>
1065    for Error
1066where
1067    R: Send + Sync + std::fmt::Debug + 'static,
1068{
1069    fn from(
1070        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service_integration::UpdateServiceIntegrationError, R>,
1071    ) -> Self {
1072        match err {
1073            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1074            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1075                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1076                source: err.into(),
1077            }),
1078        }
1079    }
1080}
1081impl From<crate::operation::update_service_integration::UpdateServiceIntegrationError> for Error {
1082    fn from(err: crate::operation::update_service_integration::UpdateServiceIntegrationError) -> Self {
1083        match err {
1084            crate::operation::update_service_integration::UpdateServiceIntegrationError::AccessDeniedException(inner) => {
1085                Error::AccessDeniedException(inner)
1086            }
1087            crate::operation::update_service_integration::UpdateServiceIntegrationError::ConflictException(inner) => Error::ConflictException(inner),
1088            crate::operation::update_service_integration::UpdateServiceIntegrationError::InternalServerException(inner) => {
1089                Error::InternalServerException(inner)
1090            }
1091            crate::operation::update_service_integration::UpdateServiceIntegrationError::ThrottlingException(inner) => {
1092                Error::ThrottlingException(inner)
1093            }
1094            crate::operation::update_service_integration::UpdateServiceIntegrationError::ValidationException(inner) => {
1095                Error::ValidationException(inner)
1096            }
1097            crate::operation::update_service_integration::UpdateServiceIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
1098        }
1099    }
1100}
1101impl ::std::error::Error for Error {
1102    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1103        match self {
1104            Error::AccessDeniedException(inner) => inner.source(),
1105            Error::ConflictException(inner) => inner.source(),
1106            Error::InternalServerException(inner) => inner.source(),
1107            Error::ResourceNotFoundException(inner) => inner.source(),
1108            Error::ServiceQuotaExceededException(inner) => inner.source(),
1109            Error::ThrottlingException(inner) => inner.source(),
1110            Error::ValidationException(inner) => inner.source(),
1111            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1112        }
1113    }
1114}
1115impl ::aws_types::request_id::RequestId for Error {
1116    fn request_id(&self) -> Option<&str> {
1117        match self {
1118            Self::AccessDeniedException(e) => e.request_id(),
1119            Self::ConflictException(e) => e.request_id(),
1120            Self::InternalServerException(e) => e.request_id(),
1121            Self::ResourceNotFoundException(e) => e.request_id(),
1122            Self::ServiceQuotaExceededException(e) => e.request_id(),
1123            Self::ThrottlingException(e) => e.request_id(),
1124            Self::ValidationException(e) => e.request_id(),
1125            Self::Unhandled(e) => e.meta.request_id(),
1126        }
1127    }
1128}