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