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