aws_sdk_repostspace/
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>User does not have sufficient access to perform this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>Updating or deleting a resource can cause an inconsistent state.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>Unexpected error during processing of request.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>Request references a resource which does not exist.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>Request would cause a service quota to be exceeded.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>Request was denied due to request throttling.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>The input fails to satisfy the constraints specified by an AWS 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::batch_add_role::BatchAddRoleError, 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::batch_add_role::BatchAddRoleError, 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::batch_add_role::BatchAddRoleError> for Error {
86    fn from(err: crate::operation::batch_add_role::BatchAddRoleError) -> Self {
87        match err {
88            crate::operation::batch_add_role::BatchAddRoleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89            crate::operation::batch_add_role::BatchAddRoleError::InternalServerException(inner) => Error::InternalServerException(inner),
90            crate::operation::batch_add_role::BatchAddRoleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
91            crate::operation::batch_add_role::BatchAddRoleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
92            crate::operation::batch_add_role::BatchAddRoleError::ValidationException(inner) => Error::ValidationException(inner),
93            crate::operation::batch_add_role::BatchAddRoleError::Unhandled(inner) => Error::Unhandled(inner),
94        }
95    }
96}
97impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_remove_role::BatchRemoveRoleError, 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::batch_remove_role::BatchRemoveRoleError, 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::batch_remove_role::BatchRemoveRoleError> for Error {
112    fn from(err: crate::operation::batch_remove_role::BatchRemoveRoleError) -> Self {
113        match err {
114            crate::operation::batch_remove_role::BatchRemoveRoleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
115            crate::operation::batch_remove_role::BatchRemoveRoleError::InternalServerException(inner) => Error::InternalServerException(inner),
116            crate::operation::batch_remove_role::BatchRemoveRoleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
117            crate::operation::batch_remove_role::BatchRemoveRoleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
118            crate::operation::batch_remove_role::BatchRemoveRoleError::ValidationException(inner) => Error::ValidationException(inner),
119            crate::operation::batch_remove_role::BatchRemoveRoleError::Unhandled(inner) => Error::Unhandled(inner),
120        }
121    }
122}
123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_space::CreateSpaceError, R>> for Error
124where
125    R: Send + Sync + std::fmt::Debug + 'static,
126{
127    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_space::CreateSpaceError, R>) -> Self {
128        match err {
129            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
130            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
131                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
132                source: err.into(),
133            }),
134        }
135    }
136}
137impl From<crate::operation::create_space::CreateSpaceError> for Error {
138    fn from(err: crate::operation::create_space::CreateSpaceError) -> Self {
139        match err {
140            crate::operation::create_space::CreateSpaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
141            crate::operation::create_space::CreateSpaceError::ConflictException(inner) => Error::ConflictException(inner),
142            crate::operation::create_space::CreateSpaceError::InternalServerException(inner) => Error::InternalServerException(inner),
143            crate::operation::create_space::CreateSpaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
144            crate::operation::create_space::CreateSpaceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
145            crate::operation::create_space::CreateSpaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
146            crate::operation::create_space::CreateSpaceError::ValidationException(inner) => Error::ValidationException(inner),
147            crate::operation::create_space::CreateSpaceError::Unhandled(inner) => Error::Unhandled(inner),
148        }
149    }
150}
151impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_space::DeleteSpaceError, R>> for Error
152where
153    R: Send + Sync + std::fmt::Debug + 'static,
154{
155    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_space::DeleteSpaceError, R>) -> Self {
156        match err {
157            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
158            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
159                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
160                source: err.into(),
161            }),
162        }
163    }
164}
165impl From<crate::operation::delete_space::DeleteSpaceError> for Error {
166    fn from(err: crate::operation::delete_space::DeleteSpaceError) -> Self {
167        match err {
168            crate::operation::delete_space::DeleteSpaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
169            crate::operation::delete_space::DeleteSpaceError::InternalServerException(inner) => Error::InternalServerException(inner),
170            crate::operation::delete_space::DeleteSpaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
171            crate::operation::delete_space::DeleteSpaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
172            crate::operation::delete_space::DeleteSpaceError::ValidationException(inner) => Error::ValidationException(inner),
173            crate::operation::delete_space::DeleteSpaceError::Unhandled(inner) => Error::Unhandled(inner),
174        }
175    }
176}
177impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_admin::DeregisterAdminError, R>> for Error
178where
179    R: Send + Sync + std::fmt::Debug + 'static,
180{
181    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_admin::DeregisterAdminError, R>) -> Self {
182        match err {
183            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
184            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
185                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
186                source: err.into(),
187            }),
188        }
189    }
190}
191impl From<crate::operation::deregister_admin::DeregisterAdminError> for Error {
192    fn from(err: crate::operation::deregister_admin::DeregisterAdminError) -> Self {
193        match err {
194            crate::operation::deregister_admin::DeregisterAdminError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
195            crate::operation::deregister_admin::DeregisterAdminError::InternalServerException(inner) => Error::InternalServerException(inner),
196            crate::operation::deregister_admin::DeregisterAdminError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
197            crate::operation::deregister_admin::DeregisterAdminError::ThrottlingException(inner) => Error::ThrottlingException(inner),
198            crate::operation::deregister_admin::DeregisterAdminError::ValidationException(inner) => Error::ValidationException(inner),
199            crate::operation::deregister_admin::DeregisterAdminError::Unhandled(inner) => Error::Unhandled(inner),
200        }
201    }
202}
203impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_space::GetSpaceError, R>> for Error
204where
205    R: Send + Sync + std::fmt::Debug + 'static,
206{
207    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_space::GetSpaceError, R>) -> Self {
208        match err {
209            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
210            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
211                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
212                source: err.into(),
213            }),
214        }
215    }
216}
217impl From<crate::operation::get_space::GetSpaceError> for Error {
218    fn from(err: crate::operation::get_space::GetSpaceError) -> Self {
219        match err {
220            crate::operation::get_space::GetSpaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
221            crate::operation::get_space::GetSpaceError::InternalServerException(inner) => Error::InternalServerException(inner),
222            crate::operation::get_space::GetSpaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
223            crate::operation::get_space::GetSpaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
224            crate::operation::get_space::GetSpaceError::ValidationException(inner) => Error::ValidationException(inner),
225            crate::operation::get_space::GetSpaceError::Unhandled(inner) => Error::Unhandled(inner),
226        }
227    }
228}
229impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces::ListSpacesError, R>> for Error
230where
231    R: Send + Sync + std::fmt::Debug + 'static,
232{
233    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_spaces::ListSpacesError, R>) -> Self {
234        match err {
235            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
236            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
237                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
238                source: err.into(),
239            }),
240        }
241    }
242}
243impl From<crate::operation::list_spaces::ListSpacesError> for Error {
244    fn from(err: crate::operation::list_spaces::ListSpacesError) -> Self {
245        match err {
246            crate::operation::list_spaces::ListSpacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
247            crate::operation::list_spaces::ListSpacesError::InternalServerException(inner) => Error::InternalServerException(inner),
248            crate::operation::list_spaces::ListSpacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
249            crate::operation::list_spaces::ListSpacesError::ValidationException(inner) => Error::ValidationException(inner),
250            crate::operation::list_spaces::ListSpacesError::Unhandled(inner) => Error::Unhandled(inner),
251        }
252    }
253}
254impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
255where
256    R: Send + Sync + std::fmt::Debug + 'static,
257{
258    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
259        match err {
260            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
261            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
262                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
263                source: err.into(),
264            }),
265        }
266    }
267}
268impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
269    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
270        match err {
271            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
272            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
273                Error::InternalServerException(inner)
274            }
275            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
276                Error::ResourceNotFoundException(inner)
277            }
278            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
279            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
280            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
281        }
282    }
283}
284impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_admin::RegisterAdminError, R>> for Error
285where
286    R: Send + Sync + std::fmt::Debug + 'static,
287{
288    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_admin::RegisterAdminError, R>) -> Self {
289        match err {
290            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
291            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
292                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
293                source: err.into(),
294            }),
295        }
296    }
297}
298impl From<crate::operation::register_admin::RegisterAdminError> for Error {
299    fn from(err: crate::operation::register_admin::RegisterAdminError) -> Self {
300        match err {
301            crate::operation::register_admin::RegisterAdminError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
302            crate::operation::register_admin::RegisterAdminError::InternalServerException(inner) => Error::InternalServerException(inner),
303            crate::operation::register_admin::RegisterAdminError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
304            crate::operation::register_admin::RegisterAdminError::ThrottlingException(inner) => Error::ThrottlingException(inner),
305            crate::operation::register_admin::RegisterAdminError::ValidationException(inner) => Error::ValidationException(inner),
306            crate::operation::register_admin::RegisterAdminError::Unhandled(inner) => Error::Unhandled(inner),
307        }
308    }
309}
310impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_invites::SendInvitesError, R>> for Error
311where
312    R: Send + Sync + std::fmt::Debug + 'static,
313{
314    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_invites::SendInvitesError, R>) -> Self {
315        match err {
316            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
317            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
318                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
319                source: err.into(),
320            }),
321        }
322    }
323}
324impl From<crate::operation::send_invites::SendInvitesError> for Error {
325    fn from(err: crate::operation::send_invites::SendInvitesError) -> Self {
326        match err {
327            crate::operation::send_invites::SendInvitesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
328            crate::operation::send_invites::SendInvitesError::InternalServerException(inner) => Error::InternalServerException(inner),
329            crate::operation::send_invites::SendInvitesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
330            crate::operation::send_invites::SendInvitesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
331            crate::operation::send_invites::SendInvitesError::ValidationException(inner) => Error::ValidationException(inner),
332            crate::operation::send_invites::SendInvitesError::Unhandled(inner) => Error::Unhandled(inner),
333        }
334    }
335}
336impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
337where
338    R: Send + Sync + std::fmt::Debug + 'static,
339{
340    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
341        match err {
342            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
343            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
344                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
345                source: err.into(),
346            }),
347        }
348    }
349}
350impl From<crate::operation::tag_resource::TagResourceError> for Error {
351    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
352        match err {
353            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
354            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
355            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
356            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
357            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
358            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
359        }
360    }
361}
362impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
363where
364    R: Send + Sync + std::fmt::Debug + 'static,
365{
366    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
367        match err {
368            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
369            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
370                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
371                source: err.into(),
372            }),
373        }
374    }
375}
376impl From<crate::operation::untag_resource::UntagResourceError> for Error {
377    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
378        match err {
379            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
380            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
381            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
382            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
383            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
384            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
385        }
386    }
387}
388impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_space::UpdateSpaceError, R>> for Error
389where
390    R: Send + Sync + std::fmt::Debug + 'static,
391{
392    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_space::UpdateSpaceError, R>) -> Self {
393        match err {
394            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
395            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
396                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
397                source: err.into(),
398            }),
399        }
400    }
401}
402impl From<crate::operation::update_space::UpdateSpaceError> for Error {
403    fn from(err: crate::operation::update_space::UpdateSpaceError) -> Self {
404        match err {
405            crate::operation::update_space::UpdateSpaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
406            crate::operation::update_space::UpdateSpaceError::ConflictException(inner) => Error::ConflictException(inner),
407            crate::operation::update_space::UpdateSpaceError::InternalServerException(inner) => Error::InternalServerException(inner),
408            crate::operation::update_space::UpdateSpaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
409            crate::operation::update_space::UpdateSpaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
410            crate::operation::update_space::UpdateSpaceError::ValidationException(inner) => Error::ValidationException(inner),
411            crate::operation::update_space::UpdateSpaceError::Unhandled(inner) => Error::Unhandled(inner),
412        }
413    }
414}
415impl ::std::error::Error for Error {
416    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
417        match self {
418            Error::AccessDeniedException(inner) => inner.source(),
419            Error::ConflictException(inner) => inner.source(),
420            Error::InternalServerException(inner) => inner.source(),
421            Error::ResourceNotFoundException(inner) => inner.source(),
422            Error::ServiceQuotaExceededException(inner) => inner.source(),
423            Error::ThrottlingException(inner) => inner.source(),
424            Error::ValidationException(inner) => inner.source(),
425            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
426        }
427    }
428}
429impl ::aws_types::request_id::RequestId for Error {
430    fn request_id(&self) -> Option<&str> {
431        match self {
432            Self::AccessDeniedException(e) => e.request_id(),
433            Self::ConflictException(e) => e.request_id(),
434            Self::InternalServerException(e) => e.request_id(),
435            Self::ResourceNotFoundException(e) => e.request_id(),
436            Self::ServiceQuotaExceededException(e) => e.request_id(),
437            Self::ThrottlingException(e) => e.request_id(),
438            Self::ValidationException(e) => e.request_id(),
439            Self::Unhandled(e) => e.meta.request_id(),
440        }
441    }
442}