aws_sdk_observabilityadmin/
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>Indicates 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 for Amazon Web Services resources</a> in the IAM user guide.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The requested operation conflicts with the current state of the specified resource or with another request.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>Indicates the request has failed to process because of an unknown server error, exception, or failure.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The specified resource (such as a telemetry rule) could not be found.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The requested operation would exceed the allowed quota for the specified resource type.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The request throughput limit was exceeded.</p>
17    TooManyRequestsException(crate::types::error::TooManyRequestsException),
18    /// <p>Indicates input validation failed. Check your request parameters and retry the 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::TooManyRequestsException(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::TooManyRequestsException(inner) => inner.meta(),
66            Self::ValidationException(inner) => inner.meta(),
67            Self::Unhandled(inner) => &inner.meta,
68        }
69    }
70}
71impl<R>
72    From<
73        ::aws_smithy_runtime_api::client::result::SdkError<
74            crate::operation::create_centralization_rule_for_organization::CreateCentralizationRuleForOrganizationError,
75            R,
76        >,
77    > for Error
78where
79    R: Send + Sync + std::fmt::Debug + 'static,
80{
81    fn from(
82        err: ::aws_smithy_runtime_api::client::result::SdkError<
83            crate::operation::create_centralization_rule_for_organization::CreateCentralizationRuleForOrganizationError,
84            R,
85        >,
86    ) -> Self {
87        match err {
88            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
89            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
90                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
91                source: err.into(),
92            }),
93        }
94    }
95}
96impl From<crate::operation::create_centralization_rule_for_organization::CreateCentralizationRuleForOrganizationError> for Error {
97    fn from(err: crate::operation::create_centralization_rule_for_organization::CreateCentralizationRuleForOrganizationError) -> Self {
98        match err {
99            crate::operation::create_centralization_rule_for_organization::CreateCentralizationRuleForOrganizationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
100            crate::operation::create_centralization_rule_for_organization::CreateCentralizationRuleForOrganizationError::ConflictException(inner) => Error::ConflictException(inner),
101            crate::operation::create_centralization_rule_for_organization::CreateCentralizationRuleForOrganizationError::InternalServerException(inner) => Error::InternalServerException(inner),
102            crate::operation::create_centralization_rule_for_organization::CreateCentralizationRuleForOrganizationError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
103            crate::operation::create_centralization_rule_for_organization::CreateCentralizationRuleForOrganizationError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
104            crate::operation::create_centralization_rule_for_organization::CreateCentralizationRuleForOrganizationError::ValidationException(inner) => Error::ValidationException(inner),
105            crate::operation::create_centralization_rule_for_organization::CreateCentralizationRuleForOrganizationError::Unhandled(inner) => Error::Unhandled(inner),
106        }
107    }
108}
109impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_telemetry_rule::CreateTelemetryRuleError, 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::create_telemetry_rule::CreateTelemetryRuleError, 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::create_telemetry_rule::CreateTelemetryRuleError> for Error {
124    fn from(err: crate::operation::create_telemetry_rule::CreateTelemetryRuleError) -> Self {
125        match err {
126            crate::operation::create_telemetry_rule::CreateTelemetryRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
127            crate::operation::create_telemetry_rule::CreateTelemetryRuleError::ConflictException(inner) => Error::ConflictException(inner),
128            crate::operation::create_telemetry_rule::CreateTelemetryRuleError::InternalServerException(inner) => {
129                Error::InternalServerException(inner)
130            }
131            crate::operation::create_telemetry_rule::CreateTelemetryRuleError::ServiceQuotaExceededException(inner) => {
132                Error::ServiceQuotaExceededException(inner)
133            }
134            crate::operation::create_telemetry_rule::CreateTelemetryRuleError::TooManyRequestsException(inner) => {
135                Error::TooManyRequestsException(inner)
136            }
137            crate::operation::create_telemetry_rule::CreateTelemetryRuleError::ValidationException(inner) => Error::ValidationException(inner),
138            crate::operation::create_telemetry_rule::CreateTelemetryRuleError::Unhandled(inner) => Error::Unhandled(inner),
139        }
140    }
141}
142impl<R>
143    From<
144        ::aws_smithy_runtime_api::client::result::SdkError<
145            crate::operation::create_telemetry_rule_for_organization::CreateTelemetryRuleForOrganizationError,
146            R,
147        >,
148    > for Error
149where
150    R: Send + Sync + std::fmt::Debug + 'static,
151{
152    fn from(
153        err: ::aws_smithy_runtime_api::client::result::SdkError<
154            crate::operation::create_telemetry_rule_for_organization::CreateTelemetryRuleForOrganizationError,
155            R,
156        >,
157    ) -> Self {
158        match err {
159            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
160            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
161                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
162                source: err.into(),
163            }),
164        }
165    }
166}
167impl From<crate::operation::create_telemetry_rule_for_organization::CreateTelemetryRuleForOrganizationError> for Error {
168    fn from(err: crate::operation::create_telemetry_rule_for_organization::CreateTelemetryRuleForOrganizationError) -> Self {
169        match err {
170            crate::operation::create_telemetry_rule_for_organization::CreateTelemetryRuleForOrganizationError::AccessDeniedException(inner) => {
171                Error::AccessDeniedException(inner)
172            }
173            crate::operation::create_telemetry_rule_for_organization::CreateTelemetryRuleForOrganizationError::ConflictException(inner) => {
174                Error::ConflictException(inner)
175            }
176            crate::operation::create_telemetry_rule_for_organization::CreateTelemetryRuleForOrganizationError::InternalServerException(inner) => {
177                Error::InternalServerException(inner)
178            }
179            crate::operation::create_telemetry_rule_for_organization::CreateTelemetryRuleForOrganizationError::ServiceQuotaExceededException(
180                inner,
181            ) => Error::ServiceQuotaExceededException(inner),
182            crate::operation::create_telemetry_rule_for_organization::CreateTelemetryRuleForOrganizationError::TooManyRequestsException(inner) => {
183                Error::TooManyRequestsException(inner)
184            }
185            crate::operation::create_telemetry_rule_for_organization::CreateTelemetryRuleForOrganizationError::ValidationException(inner) => {
186                Error::ValidationException(inner)
187            }
188            crate::operation::create_telemetry_rule_for_organization::CreateTelemetryRuleForOrganizationError::Unhandled(inner) => {
189                Error::Unhandled(inner)
190            }
191        }
192    }
193}
194impl<R>
195    From<
196        ::aws_smithy_runtime_api::client::result::SdkError<
197            crate::operation::delete_centralization_rule_for_organization::DeleteCentralizationRuleForOrganizationError,
198            R,
199        >,
200    > for Error
201where
202    R: Send + Sync + std::fmt::Debug + 'static,
203{
204    fn from(
205        err: ::aws_smithy_runtime_api::client::result::SdkError<
206            crate::operation::delete_centralization_rule_for_organization::DeleteCentralizationRuleForOrganizationError,
207            R,
208        >,
209    ) -> Self {
210        match err {
211            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
212            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
213                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
214                source: err.into(),
215            }),
216        }
217    }
218}
219impl From<crate::operation::delete_centralization_rule_for_organization::DeleteCentralizationRuleForOrganizationError> for Error {
220    fn from(err: crate::operation::delete_centralization_rule_for_organization::DeleteCentralizationRuleForOrganizationError) -> Self {
221        match err {
222            crate::operation::delete_centralization_rule_for_organization::DeleteCentralizationRuleForOrganizationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
223            crate::operation::delete_centralization_rule_for_organization::DeleteCentralizationRuleForOrganizationError::InternalServerException(inner) => Error::InternalServerException(inner),
224            crate::operation::delete_centralization_rule_for_organization::DeleteCentralizationRuleForOrganizationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
225            crate::operation::delete_centralization_rule_for_organization::DeleteCentralizationRuleForOrganizationError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
226            crate::operation::delete_centralization_rule_for_organization::DeleteCentralizationRuleForOrganizationError::ValidationException(inner) => Error::ValidationException(inner),
227            crate::operation::delete_centralization_rule_for_organization::DeleteCentralizationRuleForOrganizationError::Unhandled(inner) => Error::Unhandled(inner),
228        }
229    }
230}
231impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_telemetry_rule::DeleteTelemetryRuleError, R>> for Error
232where
233    R: Send + Sync + std::fmt::Debug + 'static,
234{
235    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_telemetry_rule::DeleteTelemetryRuleError, R>) -> Self {
236        match err {
237            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
238            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
239                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
240                source: err.into(),
241            }),
242        }
243    }
244}
245impl From<crate::operation::delete_telemetry_rule::DeleteTelemetryRuleError> for Error {
246    fn from(err: crate::operation::delete_telemetry_rule::DeleteTelemetryRuleError) -> Self {
247        match err {
248            crate::operation::delete_telemetry_rule::DeleteTelemetryRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
249            crate::operation::delete_telemetry_rule::DeleteTelemetryRuleError::InternalServerException(inner) => {
250                Error::InternalServerException(inner)
251            }
252            crate::operation::delete_telemetry_rule::DeleteTelemetryRuleError::ResourceNotFoundException(inner) => {
253                Error::ResourceNotFoundException(inner)
254            }
255            crate::operation::delete_telemetry_rule::DeleteTelemetryRuleError::TooManyRequestsException(inner) => {
256                Error::TooManyRequestsException(inner)
257            }
258            crate::operation::delete_telemetry_rule::DeleteTelemetryRuleError::ValidationException(inner) => Error::ValidationException(inner),
259            crate::operation::delete_telemetry_rule::DeleteTelemetryRuleError::Unhandled(inner) => Error::Unhandled(inner),
260        }
261    }
262}
263impl<R>
264    From<
265        ::aws_smithy_runtime_api::client::result::SdkError<
266            crate::operation::delete_telemetry_rule_for_organization::DeleteTelemetryRuleForOrganizationError,
267            R,
268        >,
269    > for Error
270where
271    R: Send + Sync + std::fmt::Debug + 'static,
272{
273    fn from(
274        err: ::aws_smithy_runtime_api::client::result::SdkError<
275            crate::operation::delete_telemetry_rule_for_organization::DeleteTelemetryRuleForOrganizationError,
276            R,
277        >,
278    ) -> Self {
279        match err {
280            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
281            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
282                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
283                source: err.into(),
284            }),
285        }
286    }
287}
288impl From<crate::operation::delete_telemetry_rule_for_organization::DeleteTelemetryRuleForOrganizationError> for Error {
289    fn from(err: crate::operation::delete_telemetry_rule_for_organization::DeleteTelemetryRuleForOrganizationError) -> Self {
290        match err {
291            crate::operation::delete_telemetry_rule_for_organization::DeleteTelemetryRuleForOrganizationError::AccessDeniedException(inner) => {
292                Error::AccessDeniedException(inner)
293            }
294            crate::operation::delete_telemetry_rule_for_organization::DeleteTelemetryRuleForOrganizationError::InternalServerException(inner) => {
295                Error::InternalServerException(inner)
296            }
297            crate::operation::delete_telemetry_rule_for_organization::DeleteTelemetryRuleForOrganizationError::ResourceNotFoundException(inner) => {
298                Error::ResourceNotFoundException(inner)
299            }
300            crate::operation::delete_telemetry_rule_for_organization::DeleteTelemetryRuleForOrganizationError::TooManyRequestsException(inner) => {
301                Error::TooManyRequestsException(inner)
302            }
303            crate::operation::delete_telemetry_rule_for_organization::DeleteTelemetryRuleForOrganizationError::ValidationException(inner) => {
304                Error::ValidationException(inner)
305            }
306            crate::operation::delete_telemetry_rule_for_organization::DeleteTelemetryRuleForOrganizationError::Unhandled(inner) => {
307                Error::Unhandled(inner)
308            }
309        }
310    }
311}
312impl<R>
313    From<
314        ::aws_smithy_runtime_api::client::result::SdkError<
315            crate::operation::get_centralization_rule_for_organization::GetCentralizationRuleForOrganizationError,
316            R,
317        >,
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<
324            crate::operation::get_centralization_rule_for_organization::GetCentralizationRuleForOrganizationError,
325            R,
326        >,
327    ) -> Self {
328        match err {
329            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
330            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
331                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
332                source: err.into(),
333            }),
334        }
335    }
336}
337impl From<crate::operation::get_centralization_rule_for_organization::GetCentralizationRuleForOrganizationError> for Error {
338    fn from(err: crate::operation::get_centralization_rule_for_organization::GetCentralizationRuleForOrganizationError) -> Self {
339        match err {
340            crate::operation::get_centralization_rule_for_organization::GetCentralizationRuleForOrganizationError::AccessDeniedException(inner) => {
341                Error::AccessDeniedException(inner)
342            }
343            crate::operation::get_centralization_rule_for_organization::GetCentralizationRuleForOrganizationError::InternalServerException(inner) => {
344                Error::InternalServerException(inner)
345            }
346            crate::operation::get_centralization_rule_for_organization::GetCentralizationRuleForOrganizationError::ResourceNotFoundException(
347                inner,
348            ) => Error::ResourceNotFoundException(inner),
349            crate::operation::get_centralization_rule_for_organization::GetCentralizationRuleForOrganizationError::TooManyRequestsException(
350                inner,
351            ) => Error::TooManyRequestsException(inner),
352            crate::operation::get_centralization_rule_for_organization::GetCentralizationRuleForOrganizationError::ValidationException(inner) => {
353                Error::ValidationException(inner)
354            }
355            crate::operation::get_centralization_rule_for_organization::GetCentralizationRuleForOrganizationError::Unhandled(inner) => {
356                Error::Unhandled(inner)
357            }
358        }
359    }
360}
361impl<R>
362    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_telemetry_enrichment_status::GetTelemetryEnrichmentStatusError, R>>
363    for Error
364where
365    R: Send + Sync + std::fmt::Debug + 'static,
366{
367    fn from(
368        err: ::aws_smithy_runtime_api::client::result::SdkError<
369            crate::operation::get_telemetry_enrichment_status::GetTelemetryEnrichmentStatusError,
370            R,
371        >,
372    ) -> Self {
373        match err {
374            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
375            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
376                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
377                source: err.into(),
378            }),
379        }
380    }
381}
382impl From<crate::operation::get_telemetry_enrichment_status::GetTelemetryEnrichmentStatusError> for Error {
383    fn from(err: crate::operation::get_telemetry_enrichment_status::GetTelemetryEnrichmentStatusError) -> Self {
384        match err {
385            crate::operation::get_telemetry_enrichment_status::GetTelemetryEnrichmentStatusError::AccessDeniedException(inner) => {
386                Error::AccessDeniedException(inner)
387            }
388            crate::operation::get_telemetry_enrichment_status::GetTelemetryEnrichmentStatusError::InternalServerException(inner) => {
389                Error::InternalServerException(inner)
390            }
391            crate::operation::get_telemetry_enrichment_status::GetTelemetryEnrichmentStatusError::ResourceNotFoundException(inner) => {
392                Error::ResourceNotFoundException(inner)
393            }
394            crate::operation::get_telemetry_enrichment_status::GetTelemetryEnrichmentStatusError::TooManyRequestsException(inner) => {
395                Error::TooManyRequestsException(inner)
396            }
397            crate::operation::get_telemetry_enrichment_status::GetTelemetryEnrichmentStatusError::Unhandled(inner) => Error::Unhandled(inner),
398        }
399    }
400}
401impl<R>
402    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_telemetry_evaluation_status::GetTelemetryEvaluationStatusError, R>>
403    for Error
404where
405    R: Send + Sync + std::fmt::Debug + 'static,
406{
407    fn from(
408        err: ::aws_smithy_runtime_api::client::result::SdkError<
409            crate::operation::get_telemetry_evaluation_status::GetTelemetryEvaluationStatusError,
410            R,
411        >,
412    ) -> Self {
413        match err {
414            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
415            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
416                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
417                source: err.into(),
418            }),
419        }
420    }
421}
422impl From<crate::operation::get_telemetry_evaluation_status::GetTelemetryEvaluationStatusError> for Error {
423    fn from(err: crate::operation::get_telemetry_evaluation_status::GetTelemetryEvaluationStatusError) -> Self {
424        match err {
425            crate::operation::get_telemetry_evaluation_status::GetTelemetryEvaluationStatusError::AccessDeniedException(inner) => {
426                Error::AccessDeniedException(inner)
427            }
428            crate::operation::get_telemetry_evaluation_status::GetTelemetryEvaluationStatusError::InternalServerException(inner) => {
429                Error::InternalServerException(inner)
430            }
431            crate::operation::get_telemetry_evaluation_status::GetTelemetryEvaluationStatusError::TooManyRequestsException(inner) => {
432                Error::TooManyRequestsException(inner)
433            }
434            crate::operation::get_telemetry_evaluation_status::GetTelemetryEvaluationStatusError::Unhandled(inner) => Error::Unhandled(inner),
435        }
436    }
437}
438impl<R>
439    From<
440        ::aws_smithy_runtime_api::client::result::SdkError<
441            crate::operation::get_telemetry_evaluation_status_for_organization::GetTelemetryEvaluationStatusForOrganizationError,
442            R,
443        >,
444    > for Error
445where
446    R: Send + Sync + std::fmt::Debug + 'static,
447{
448    fn from(
449        err: ::aws_smithy_runtime_api::client::result::SdkError<
450            crate::operation::get_telemetry_evaluation_status_for_organization::GetTelemetryEvaluationStatusForOrganizationError,
451            R,
452        >,
453    ) -> Self {
454        match err {
455            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
456            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
457                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
458                source: err.into(),
459            }),
460        }
461    }
462}
463impl From<crate::operation::get_telemetry_evaluation_status_for_organization::GetTelemetryEvaluationStatusForOrganizationError> for Error {
464    fn from(err: crate::operation::get_telemetry_evaluation_status_for_organization::GetTelemetryEvaluationStatusForOrganizationError) -> Self {
465        match err {
466            crate::operation::get_telemetry_evaluation_status_for_organization::GetTelemetryEvaluationStatusForOrganizationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
467            crate::operation::get_telemetry_evaluation_status_for_organization::GetTelemetryEvaluationStatusForOrganizationError::InternalServerException(inner) => Error::InternalServerException(inner),
468            crate::operation::get_telemetry_evaluation_status_for_organization::GetTelemetryEvaluationStatusForOrganizationError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
469            crate::operation::get_telemetry_evaluation_status_for_organization::GetTelemetryEvaluationStatusForOrganizationError::ValidationException(inner) => Error::ValidationException(inner),
470            crate::operation::get_telemetry_evaluation_status_for_organization::GetTelemetryEvaluationStatusForOrganizationError::Unhandled(inner) => Error::Unhandled(inner),
471        }
472    }
473}
474impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_telemetry_rule::GetTelemetryRuleError, R>> for Error
475where
476    R: Send + Sync + std::fmt::Debug + 'static,
477{
478    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_telemetry_rule::GetTelemetryRuleError, R>) -> Self {
479        match err {
480            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
481            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
482                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
483                source: err.into(),
484            }),
485        }
486    }
487}
488impl From<crate::operation::get_telemetry_rule::GetTelemetryRuleError> for Error {
489    fn from(err: crate::operation::get_telemetry_rule::GetTelemetryRuleError) -> Self {
490        match err {
491            crate::operation::get_telemetry_rule::GetTelemetryRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
492            crate::operation::get_telemetry_rule::GetTelemetryRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
493            crate::operation::get_telemetry_rule::GetTelemetryRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
494            crate::operation::get_telemetry_rule::GetTelemetryRuleError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
495            crate::operation::get_telemetry_rule::GetTelemetryRuleError::ValidationException(inner) => Error::ValidationException(inner),
496            crate::operation::get_telemetry_rule::GetTelemetryRuleError::Unhandled(inner) => Error::Unhandled(inner),
497        }
498    }
499}
500impl<R>
501    From<
502        ::aws_smithy_runtime_api::client::result::SdkError<
503            crate::operation::get_telemetry_rule_for_organization::GetTelemetryRuleForOrganizationError,
504            R,
505        >,
506    > for Error
507where
508    R: Send + Sync + std::fmt::Debug + 'static,
509{
510    fn from(
511        err: ::aws_smithy_runtime_api::client::result::SdkError<
512            crate::operation::get_telemetry_rule_for_organization::GetTelemetryRuleForOrganizationError,
513            R,
514        >,
515    ) -> Self {
516        match err {
517            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
518            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
519                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
520                source: err.into(),
521            }),
522        }
523    }
524}
525impl From<crate::operation::get_telemetry_rule_for_organization::GetTelemetryRuleForOrganizationError> for Error {
526    fn from(err: crate::operation::get_telemetry_rule_for_organization::GetTelemetryRuleForOrganizationError) -> Self {
527        match err {
528            crate::operation::get_telemetry_rule_for_organization::GetTelemetryRuleForOrganizationError::AccessDeniedException(inner) => {
529                Error::AccessDeniedException(inner)
530            }
531            crate::operation::get_telemetry_rule_for_organization::GetTelemetryRuleForOrganizationError::InternalServerException(inner) => {
532                Error::InternalServerException(inner)
533            }
534            crate::operation::get_telemetry_rule_for_organization::GetTelemetryRuleForOrganizationError::ResourceNotFoundException(inner) => {
535                Error::ResourceNotFoundException(inner)
536            }
537            crate::operation::get_telemetry_rule_for_organization::GetTelemetryRuleForOrganizationError::TooManyRequestsException(inner) => {
538                Error::TooManyRequestsException(inner)
539            }
540            crate::operation::get_telemetry_rule_for_organization::GetTelemetryRuleForOrganizationError::ValidationException(inner) => {
541                Error::ValidationException(inner)
542            }
543            crate::operation::get_telemetry_rule_for_organization::GetTelemetryRuleForOrganizationError::Unhandled(inner) => Error::Unhandled(inner),
544        }
545    }
546}
547impl<R>
548    From<
549        ::aws_smithy_runtime_api::client::result::SdkError<
550            crate::operation::list_centralization_rules_for_organization::ListCentralizationRulesForOrganizationError,
551            R,
552        >,
553    > for Error
554where
555    R: Send + Sync + std::fmt::Debug + 'static,
556{
557    fn from(
558        err: ::aws_smithy_runtime_api::client::result::SdkError<
559            crate::operation::list_centralization_rules_for_organization::ListCentralizationRulesForOrganizationError,
560            R,
561        >,
562    ) -> Self {
563        match err {
564            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
565            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
566                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
567                source: err.into(),
568            }),
569        }
570    }
571}
572impl From<crate::operation::list_centralization_rules_for_organization::ListCentralizationRulesForOrganizationError> for Error {
573    fn from(err: crate::operation::list_centralization_rules_for_organization::ListCentralizationRulesForOrganizationError) -> Self {
574        match err {
575            crate::operation::list_centralization_rules_for_organization::ListCentralizationRulesForOrganizationError::AccessDeniedException(
576                inner,
577            ) => Error::AccessDeniedException(inner),
578            crate::operation::list_centralization_rules_for_organization::ListCentralizationRulesForOrganizationError::InternalServerException(
579                inner,
580            ) => Error::InternalServerException(inner),
581            crate::operation::list_centralization_rules_for_organization::ListCentralizationRulesForOrganizationError::TooManyRequestsException(
582                inner,
583            ) => Error::TooManyRequestsException(inner),
584            crate::operation::list_centralization_rules_for_organization::ListCentralizationRulesForOrganizationError::ValidationException(inner) => {
585                Error::ValidationException(inner)
586            }
587            crate::operation::list_centralization_rules_for_organization::ListCentralizationRulesForOrganizationError::Unhandled(inner) => {
588                Error::Unhandled(inner)
589            }
590        }
591    }
592}
593impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_telemetry::ListResourceTelemetryError, R>> for Error
594where
595    R: Send + Sync + std::fmt::Debug + 'static,
596{
597    fn from(
598        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_telemetry::ListResourceTelemetryError, R>,
599    ) -> Self {
600        match err {
601            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
602            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
603                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
604                source: err.into(),
605            }),
606        }
607    }
608}
609impl From<crate::operation::list_resource_telemetry::ListResourceTelemetryError> for Error {
610    fn from(err: crate::operation::list_resource_telemetry::ListResourceTelemetryError) -> Self {
611        match err {
612            crate::operation::list_resource_telemetry::ListResourceTelemetryError::AccessDeniedException(inner) => {
613                Error::AccessDeniedException(inner)
614            }
615            crate::operation::list_resource_telemetry::ListResourceTelemetryError::InternalServerException(inner) => {
616                Error::InternalServerException(inner)
617            }
618            crate::operation::list_resource_telemetry::ListResourceTelemetryError::TooManyRequestsException(inner) => {
619                Error::TooManyRequestsException(inner)
620            }
621            crate::operation::list_resource_telemetry::ListResourceTelemetryError::ValidationException(inner) => Error::ValidationException(inner),
622            crate::operation::list_resource_telemetry::ListResourceTelemetryError::Unhandled(inner) => Error::Unhandled(inner),
623        }
624    }
625}
626impl<R>
627    From<
628        ::aws_smithy_runtime_api::client::result::SdkError<
629            crate::operation::list_resource_telemetry_for_organization::ListResourceTelemetryForOrganizationError,
630            R,
631        >,
632    > for Error
633where
634    R: Send + Sync + std::fmt::Debug + 'static,
635{
636    fn from(
637        err: ::aws_smithy_runtime_api::client::result::SdkError<
638            crate::operation::list_resource_telemetry_for_organization::ListResourceTelemetryForOrganizationError,
639            R,
640        >,
641    ) -> Self {
642        match err {
643            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
644            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
645                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
646                source: err.into(),
647            }),
648        }
649    }
650}
651impl From<crate::operation::list_resource_telemetry_for_organization::ListResourceTelemetryForOrganizationError> for Error {
652    fn from(err: crate::operation::list_resource_telemetry_for_organization::ListResourceTelemetryForOrganizationError) -> Self {
653        match err {
654            crate::operation::list_resource_telemetry_for_organization::ListResourceTelemetryForOrganizationError::AccessDeniedException(inner) => {
655                Error::AccessDeniedException(inner)
656            }
657            crate::operation::list_resource_telemetry_for_organization::ListResourceTelemetryForOrganizationError::InternalServerException(inner) => {
658                Error::InternalServerException(inner)
659            }
660            crate::operation::list_resource_telemetry_for_organization::ListResourceTelemetryForOrganizationError::TooManyRequestsException(
661                inner,
662            ) => Error::TooManyRequestsException(inner),
663            crate::operation::list_resource_telemetry_for_organization::ListResourceTelemetryForOrganizationError::ValidationException(inner) => {
664                Error::ValidationException(inner)
665            }
666            crate::operation::list_resource_telemetry_for_organization::ListResourceTelemetryForOrganizationError::Unhandled(inner) => {
667                Error::Unhandled(inner)
668            }
669        }
670    }
671}
672impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
673where
674    R: Send + Sync + std::fmt::Debug + 'static,
675{
676    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
677        match err {
678            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
679            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
680                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
681                source: err.into(),
682            }),
683        }
684    }
685}
686impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
687    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
688        match err {
689            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
690            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
691                Error::InternalServerException(inner)
692            }
693            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
694                Error::ResourceNotFoundException(inner)
695            }
696            crate::operation::list_tags_for_resource::ListTagsForResourceError::TooManyRequestsException(inner) => {
697                Error::TooManyRequestsException(inner)
698            }
699            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
700            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
701        }
702    }
703}
704impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_telemetry_rules::ListTelemetryRulesError, R>> for Error
705where
706    R: Send + Sync + std::fmt::Debug + 'static,
707{
708    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_telemetry_rules::ListTelemetryRulesError, R>) -> Self {
709        match err {
710            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
711            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
712                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
713                source: err.into(),
714            }),
715        }
716    }
717}
718impl From<crate::operation::list_telemetry_rules::ListTelemetryRulesError> for Error {
719    fn from(err: crate::operation::list_telemetry_rules::ListTelemetryRulesError) -> Self {
720        match err {
721            crate::operation::list_telemetry_rules::ListTelemetryRulesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
722            crate::operation::list_telemetry_rules::ListTelemetryRulesError::InternalServerException(inner) => Error::InternalServerException(inner),
723            crate::operation::list_telemetry_rules::ListTelemetryRulesError::TooManyRequestsException(inner) => {
724                Error::TooManyRequestsException(inner)
725            }
726            crate::operation::list_telemetry_rules::ListTelemetryRulesError::ValidationException(inner) => Error::ValidationException(inner),
727            crate::operation::list_telemetry_rules::ListTelemetryRulesError::Unhandled(inner) => Error::Unhandled(inner),
728        }
729    }
730}
731impl<R>
732    From<
733        ::aws_smithy_runtime_api::client::result::SdkError<
734            crate::operation::list_telemetry_rules_for_organization::ListTelemetryRulesForOrganizationError,
735            R,
736        >,
737    > for Error
738where
739    R: Send + Sync + std::fmt::Debug + 'static,
740{
741    fn from(
742        err: ::aws_smithy_runtime_api::client::result::SdkError<
743            crate::operation::list_telemetry_rules_for_organization::ListTelemetryRulesForOrganizationError,
744            R,
745        >,
746    ) -> Self {
747        match err {
748            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
749            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
750                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
751                source: err.into(),
752            }),
753        }
754    }
755}
756impl From<crate::operation::list_telemetry_rules_for_organization::ListTelemetryRulesForOrganizationError> for Error {
757    fn from(err: crate::operation::list_telemetry_rules_for_organization::ListTelemetryRulesForOrganizationError) -> Self {
758        match err {
759            crate::operation::list_telemetry_rules_for_organization::ListTelemetryRulesForOrganizationError::AccessDeniedException(inner) => {
760                Error::AccessDeniedException(inner)
761            }
762            crate::operation::list_telemetry_rules_for_organization::ListTelemetryRulesForOrganizationError::InternalServerException(inner) => {
763                Error::InternalServerException(inner)
764            }
765            crate::operation::list_telemetry_rules_for_organization::ListTelemetryRulesForOrganizationError::TooManyRequestsException(inner) => {
766                Error::TooManyRequestsException(inner)
767            }
768            crate::operation::list_telemetry_rules_for_organization::ListTelemetryRulesForOrganizationError::ValidationException(inner) => {
769                Error::ValidationException(inner)
770            }
771            crate::operation::list_telemetry_rules_for_organization::ListTelemetryRulesForOrganizationError::Unhandled(inner) => {
772                Error::Unhandled(inner)
773            }
774        }
775    }
776}
777impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_telemetry_enrichment::StartTelemetryEnrichmentError, R>>
778    for Error
779where
780    R: Send + Sync + std::fmt::Debug + 'static,
781{
782    fn from(
783        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_telemetry_enrichment::StartTelemetryEnrichmentError, R>,
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::start_telemetry_enrichment::StartTelemetryEnrichmentError> for Error {
795    fn from(err: crate::operation::start_telemetry_enrichment::StartTelemetryEnrichmentError) -> Self {
796        match err {
797            crate::operation::start_telemetry_enrichment::StartTelemetryEnrichmentError::AccessDeniedException(inner) => {
798                Error::AccessDeniedException(inner)
799            }
800            crate::operation::start_telemetry_enrichment::StartTelemetryEnrichmentError::ConflictException(inner) => Error::ConflictException(inner),
801            crate::operation::start_telemetry_enrichment::StartTelemetryEnrichmentError::InternalServerException(inner) => {
802                Error::InternalServerException(inner)
803            }
804            crate::operation::start_telemetry_enrichment::StartTelemetryEnrichmentError::TooManyRequestsException(inner) => {
805                Error::TooManyRequestsException(inner)
806            }
807            crate::operation::start_telemetry_enrichment::StartTelemetryEnrichmentError::Unhandled(inner) => Error::Unhandled(inner),
808        }
809    }
810}
811impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_telemetry_evaluation::StartTelemetryEvaluationError, R>>
812    for Error
813where
814    R: Send + Sync + std::fmt::Debug + 'static,
815{
816    fn from(
817        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_telemetry_evaluation::StartTelemetryEvaluationError, R>,
818    ) -> Self {
819        match err {
820            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
821            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
822                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
823                source: err.into(),
824            }),
825        }
826    }
827}
828impl From<crate::operation::start_telemetry_evaluation::StartTelemetryEvaluationError> for Error {
829    fn from(err: crate::operation::start_telemetry_evaluation::StartTelemetryEvaluationError) -> Self {
830        match err {
831            crate::operation::start_telemetry_evaluation::StartTelemetryEvaluationError::AccessDeniedException(inner) => {
832                Error::AccessDeniedException(inner)
833            }
834            crate::operation::start_telemetry_evaluation::StartTelemetryEvaluationError::InternalServerException(inner) => {
835                Error::InternalServerException(inner)
836            }
837            crate::operation::start_telemetry_evaluation::StartTelemetryEvaluationError::TooManyRequestsException(inner) => {
838                Error::TooManyRequestsException(inner)
839            }
840            crate::operation::start_telemetry_evaluation::StartTelemetryEvaluationError::ValidationException(inner) => {
841                Error::ValidationException(inner)
842            }
843            crate::operation::start_telemetry_evaluation::StartTelemetryEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
844        }
845    }
846}
847impl<R>
848    From<
849        ::aws_smithy_runtime_api::client::result::SdkError<
850            crate::operation::start_telemetry_evaluation_for_organization::StartTelemetryEvaluationForOrganizationError,
851            R,
852        >,
853    > for Error
854where
855    R: Send + Sync + std::fmt::Debug + 'static,
856{
857    fn from(
858        err: ::aws_smithy_runtime_api::client::result::SdkError<
859            crate::operation::start_telemetry_evaluation_for_organization::StartTelemetryEvaluationForOrganizationError,
860            R,
861        >,
862    ) -> Self {
863        match err {
864            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
865            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
866                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
867                source: err.into(),
868            }),
869        }
870    }
871}
872impl From<crate::operation::start_telemetry_evaluation_for_organization::StartTelemetryEvaluationForOrganizationError> for Error {
873    fn from(err: crate::operation::start_telemetry_evaluation_for_organization::StartTelemetryEvaluationForOrganizationError) -> Self {
874        match err {
875            crate::operation::start_telemetry_evaluation_for_organization::StartTelemetryEvaluationForOrganizationError::AccessDeniedException(
876                inner,
877            ) => Error::AccessDeniedException(inner),
878            crate::operation::start_telemetry_evaluation_for_organization::StartTelemetryEvaluationForOrganizationError::InternalServerException(
879                inner,
880            ) => Error::InternalServerException(inner),
881            crate::operation::start_telemetry_evaluation_for_organization::StartTelemetryEvaluationForOrganizationError::TooManyRequestsException(
882                inner,
883            ) => Error::TooManyRequestsException(inner),
884            crate::operation::start_telemetry_evaluation_for_organization::StartTelemetryEvaluationForOrganizationError::ValidationException(
885                inner,
886            ) => Error::ValidationException(inner),
887            crate::operation::start_telemetry_evaluation_for_organization::StartTelemetryEvaluationForOrganizationError::Unhandled(inner) => {
888                Error::Unhandled(inner)
889            }
890        }
891    }
892}
893impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_telemetry_enrichment::StopTelemetryEnrichmentError, R>>
894    for Error
895where
896    R: Send + Sync + std::fmt::Debug + 'static,
897{
898    fn from(
899        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_telemetry_enrichment::StopTelemetryEnrichmentError, R>,
900    ) -> Self {
901        match err {
902            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
903            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
904                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
905                source: err.into(),
906            }),
907        }
908    }
909}
910impl From<crate::operation::stop_telemetry_enrichment::StopTelemetryEnrichmentError> for Error {
911    fn from(err: crate::operation::stop_telemetry_enrichment::StopTelemetryEnrichmentError) -> Self {
912        match err {
913            crate::operation::stop_telemetry_enrichment::StopTelemetryEnrichmentError::AccessDeniedException(inner) => {
914                Error::AccessDeniedException(inner)
915            }
916            crate::operation::stop_telemetry_enrichment::StopTelemetryEnrichmentError::ConflictException(inner) => Error::ConflictException(inner),
917            crate::operation::stop_telemetry_enrichment::StopTelemetryEnrichmentError::InternalServerException(inner) => {
918                Error::InternalServerException(inner)
919            }
920            crate::operation::stop_telemetry_enrichment::StopTelemetryEnrichmentError::TooManyRequestsException(inner) => {
921                Error::TooManyRequestsException(inner)
922            }
923            crate::operation::stop_telemetry_enrichment::StopTelemetryEnrichmentError::Unhandled(inner) => Error::Unhandled(inner),
924        }
925    }
926}
927impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_telemetry_evaluation::StopTelemetryEvaluationError, R>>
928    for Error
929where
930    R: Send + Sync + std::fmt::Debug + 'static,
931{
932    fn from(
933        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_telemetry_evaluation::StopTelemetryEvaluationError, R>,
934    ) -> Self {
935        match err {
936            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
937            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
938                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
939                source: err.into(),
940            }),
941        }
942    }
943}
944impl From<crate::operation::stop_telemetry_evaluation::StopTelemetryEvaluationError> for Error {
945    fn from(err: crate::operation::stop_telemetry_evaluation::StopTelemetryEvaluationError) -> Self {
946        match err {
947            crate::operation::stop_telemetry_evaluation::StopTelemetryEvaluationError::AccessDeniedException(inner) => {
948                Error::AccessDeniedException(inner)
949            }
950            crate::operation::stop_telemetry_evaluation::StopTelemetryEvaluationError::InternalServerException(inner) => {
951                Error::InternalServerException(inner)
952            }
953            crate::operation::stop_telemetry_evaluation::StopTelemetryEvaluationError::TooManyRequestsException(inner) => {
954                Error::TooManyRequestsException(inner)
955            }
956            crate::operation::stop_telemetry_evaluation::StopTelemetryEvaluationError::ValidationException(inner) => {
957                Error::ValidationException(inner)
958            }
959            crate::operation::stop_telemetry_evaluation::StopTelemetryEvaluationError::Unhandled(inner) => Error::Unhandled(inner),
960        }
961    }
962}
963impl<R>
964    From<
965        ::aws_smithy_runtime_api::client::result::SdkError<
966            crate::operation::stop_telemetry_evaluation_for_organization::StopTelemetryEvaluationForOrganizationError,
967            R,
968        >,
969    > for Error
970where
971    R: Send + Sync + std::fmt::Debug + 'static,
972{
973    fn from(
974        err: ::aws_smithy_runtime_api::client::result::SdkError<
975            crate::operation::stop_telemetry_evaluation_for_organization::StopTelemetryEvaluationForOrganizationError,
976            R,
977        >,
978    ) -> Self {
979        match err {
980            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
981            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
982                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
983                source: err.into(),
984            }),
985        }
986    }
987}
988impl From<crate::operation::stop_telemetry_evaluation_for_organization::StopTelemetryEvaluationForOrganizationError> for Error {
989    fn from(err: crate::operation::stop_telemetry_evaluation_for_organization::StopTelemetryEvaluationForOrganizationError) -> Self {
990        match err {
991            crate::operation::stop_telemetry_evaluation_for_organization::StopTelemetryEvaluationForOrganizationError::AccessDeniedException(
992                inner,
993            ) => Error::AccessDeniedException(inner),
994            crate::operation::stop_telemetry_evaluation_for_organization::StopTelemetryEvaluationForOrganizationError::InternalServerException(
995                inner,
996            ) => Error::InternalServerException(inner),
997            crate::operation::stop_telemetry_evaluation_for_organization::StopTelemetryEvaluationForOrganizationError::TooManyRequestsException(
998                inner,
999            ) => Error::TooManyRequestsException(inner),
1000            crate::operation::stop_telemetry_evaluation_for_organization::StopTelemetryEvaluationForOrganizationError::ValidationException(inner) => {
1001                Error::ValidationException(inner)
1002            }
1003            crate::operation::stop_telemetry_evaluation_for_organization::StopTelemetryEvaluationForOrganizationError::Unhandled(inner) => {
1004                Error::Unhandled(inner)
1005            }
1006        }
1007    }
1008}
1009impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1010where
1011    R: Send + Sync + std::fmt::Debug + 'static,
1012{
1013    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1014        match err {
1015            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1016            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1017                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1018                source: err.into(),
1019            }),
1020        }
1021    }
1022}
1023impl From<crate::operation::tag_resource::TagResourceError> for Error {
1024    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1025        match err {
1026            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1027            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1028            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1029            crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1030            crate::operation::tag_resource::TagResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1031            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1032            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1033        }
1034    }
1035}
1036impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1037where
1038    R: Send + Sync + std::fmt::Debug + 'static,
1039{
1040    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1041        match err {
1042            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1043            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1044                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1045                source: err.into(),
1046            }),
1047        }
1048    }
1049}
1050impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1051    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1052        match err {
1053            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1054            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1055            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1056            crate::operation::untag_resource::UntagResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1057            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1058            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1059        }
1060    }
1061}
1062impl<R>
1063    From<
1064        ::aws_smithy_runtime_api::client::result::SdkError<
1065            crate::operation::update_centralization_rule_for_organization::UpdateCentralizationRuleForOrganizationError,
1066            R,
1067        >,
1068    > for Error
1069where
1070    R: Send + Sync + std::fmt::Debug + 'static,
1071{
1072    fn from(
1073        err: ::aws_smithy_runtime_api::client::result::SdkError<
1074            crate::operation::update_centralization_rule_for_organization::UpdateCentralizationRuleForOrganizationError,
1075            R,
1076        >,
1077    ) -> Self {
1078        match err {
1079            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1080            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1081                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1082                source: err.into(),
1083            }),
1084        }
1085    }
1086}
1087impl From<crate::operation::update_centralization_rule_for_organization::UpdateCentralizationRuleForOrganizationError> for Error {
1088    fn from(err: crate::operation::update_centralization_rule_for_organization::UpdateCentralizationRuleForOrganizationError) -> Self {
1089        match err {
1090            crate::operation::update_centralization_rule_for_organization::UpdateCentralizationRuleForOrganizationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1091            crate::operation::update_centralization_rule_for_organization::UpdateCentralizationRuleForOrganizationError::InternalServerException(inner) => Error::InternalServerException(inner),
1092            crate::operation::update_centralization_rule_for_organization::UpdateCentralizationRuleForOrganizationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1093            crate::operation::update_centralization_rule_for_organization::UpdateCentralizationRuleForOrganizationError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1094            crate::operation::update_centralization_rule_for_organization::UpdateCentralizationRuleForOrganizationError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1095            crate::operation::update_centralization_rule_for_organization::UpdateCentralizationRuleForOrganizationError::ValidationException(inner) => Error::ValidationException(inner),
1096            crate::operation::update_centralization_rule_for_organization::UpdateCentralizationRuleForOrganizationError::Unhandled(inner) => Error::Unhandled(inner),
1097        }
1098    }
1099}
1100impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_telemetry_rule::UpdateTelemetryRuleError, R>> for Error
1101where
1102    R: Send + Sync + std::fmt::Debug + 'static,
1103{
1104    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_telemetry_rule::UpdateTelemetryRuleError, R>) -> Self {
1105        match err {
1106            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1107            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1108                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1109                source: err.into(),
1110            }),
1111        }
1112    }
1113}
1114impl From<crate::operation::update_telemetry_rule::UpdateTelemetryRuleError> for Error {
1115    fn from(err: crate::operation::update_telemetry_rule::UpdateTelemetryRuleError) -> Self {
1116        match err {
1117            crate::operation::update_telemetry_rule::UpdateTelemetryRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1118            crate::operation::update_telemetry_rule::UpdateTelemetryRuleError::InternalServerException(inner) => {
1119                Error::InternalServerException(inner)
1120            }
1121            crate::operation::update_telemetry_rule::UpdateTelemetryRuleError::ResourceNotFoundException(inner) => {
1122                Error::ResourceNotFoundException(inner)
1123            }
1124            crate::operation::update_telemetry_rule::UpdateTelemetryRuleError::ServiceQuotaExceededException(inner) => {
1125                Error::ServiceQuotaExceededException(inner)
1126            }
1127            crate::operation::update_telemetry_rule::UpdateTelemetryRuleError::TooManyRequestsException(inner) => {
1128                Error::TooManyRequestsException(inner)
1129            }
1130            crate::operation::update_telemetry_rule::UpdateTelemetryRuleError::ValidationException(inner) => Error::ValidationException(inner),
1131            crate::operation::update_telemetry_rule::UpdateTelemetryRuleError::Unhandled(inner) => Error::Unhandled(inner),
1132        }
1133    }
1134}
1135impl<R>
1136    From<
1137        ::aws_smithy_runtime_api::client::result::SdkError<
1138            crate::operation::update_telemetry_rule_for_organization::UpdateTelemetryRuleForOrganizationError,
1139            R,
1140        >,
1141    > for Error
1142where
1143    R: Send + Sync + std::fmt::Debug + 'static,
1144{
1145    fn from(
1146        err: ::aws_smithy_runtime_api::client::result::SdkError<
1147            crate::operation::update_telemetry_rule_for_organization::UpdateTelemetryRuleForOrganizationError,
1148            R,
1149        >,
1150    ) -> Self {
1151        match err {
1152            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1153            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1154                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1155                source: err.into(),
1156            }),
1157        }
1158    }
1159}
1160impl From<crate::operation::update_telemetry_rule_for_organization::UpdateTelemetryRuleForOrganizationError> for Error {
1161    fn from(err: crate::operation::update_telemetry_rule_for_organization::UpdateTelemetryRuleForOrganizationError) -> Self {
1162        match err {
1163            crate::operation::update_telemetry_rule_for_organization::UpdateTelemetryRuleForOrganizationError::AccessDeniedException(inner) => {
1164                Error::AccessDeniedException(inner)
1165            }
1166            crate::operation::update_telemetry_rule_for_organization::UpdateTelemetryRuleForOrganizationError::InternalServerException(inner) => {
1167                Error::InternalServerException(inner)
1168            }
1169            crate::operation::update_telemetry_rule_for_organization::UpdateTelemetryRuleForOrganizationError::ResourceNotFoundException(inner) => {
1170                Error::ResourceNotFoundException(inner)
1171            }
1172            crate::operation::update_telemetry_rule_for_organization::UpdateTelemetryRuleForOrganizationError::ServiceQuotaExceededException(
1173                inner,
1174            ) => Error::ServiceQuotaExceededException(inner),
1175            crate::operation::update_telemetry_rule_for_organization::UpdateTelemetryRuleForOrganizationError::TooManyRequestsException(inner) => {
1176                Error::TooManyRequestsException(inner)
1177            }
1178            crate::operation::update_telemetry_rule_for_organization::UpdateTelemetryRuleForOrganizationError::ValidationException(inner) => {
1179                Error::ValidationException(inner)
1180            }
1181            crate::operation::update_telemetry_rule_for_organization::UpdateTelemetryRuleForOrganizationError::Unhandled(inner) => {
1182                Error::Unhandled(inner)
1183            }
1184        }
1185    }
1186}
1187impl ::std::error::Error for Error {
1188    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1189        match self {
1190            Error::AccessDeniedException(inner) => inner.source(),
1191            Error::ConflictException(inner) => inner.source(),
1192            Error::InternalServerException(inner) => inner.source(),
1193            Error::ResourceNotFoundException(inner) => inner.source(),
1194            Error::ServiceQuotaExceededException(inner) => inner.source(),
1195            Error::TooManyRequestsException(inner) => inner.source(),
1196            Error::ValidationException(inner) => inner.source(),
1197            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1198        }
1199    }
1200}
1201impl ::aws_types::request_id::RequestId for Error {
1202    fn request_id(&self) -> Option<&str> {
1203        match self {
1204            Self::AccessDeniedException(e) => e.request_id(),
1205            Self::ConflictException(e) => e.request_id(),
1206            Self::InternalServerException(e) => e.request_id(),
1207            Self::ResourceNotFoundException(e) => e.request_id(),
1208            Self::ServiceQuotaExceededException(e) => e.request_id(),
1209            Self::TooManyRequestsException(e) => e.request_id(),
1210            Self::ValidationException(e) => e.request_id(),
1211            Self::Unhandled(e) => e.meta.request_id(),
1212        }
1213    }
1214}