aws_sdk_codegurusecurity/
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>The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>The server encountered an internal error and is unable to complete the request.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The resource specified in the request was not found.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The request was denied due to request throttling.</p>
15    ThrottlingException(crate::types::error::ThrottlingException),
16    /// <p>The input fails to satisfy the specified constraints.</p>
17    ValidationException(crate::types::error::ValidationException),
18    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
19    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
20    variable wildcard pattern and check `.code()`:
21     \
22    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
23     \
24    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
25    Unhandled(crate::error::sealed_unhandled::Unhandled),
26}
27impl ::std::fmt::Display for Error {
28    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
29        match self {
30            Error::AccessDeniedException(inner) => inner.fmt(f),
31            Error::ConflictException(inner) => inner.fmt(f),
32            Error::InternalServerException(inner) => inner.fmt(f),
33            Error::ResourceNotFoundException(inner) => inner.fmt(f),
34            Error::ThrottlingException(inner) => inner.fmt(f),
35            Error::ValidationException(inner) => inner.fmt(f),
36            Error::Unhandled(_) => {
37                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
38                    write!(f, "unhandled error ({code})")
39                } else {
40                    f.write_str("unhandled error")
41                }
42            }
43        }
44    }
45}
46impl From<::aws_smithy_types::error::operation::BuildError> for Error {
47    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
48        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
49            source: value.into(),
50            meta: ::std::default::Default::default(),
51        })
52    }
53}
54impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
55    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
56        match self {
57            Self::AccessDeniedException(inner) => inner.meta(),
58            Self::ConflictException(inner) => inner.meta(),
59            Self::InternalServerException(inner) => inner.meta(),
60            Self::ResourceNotFoundException(inner) => inner.meta(),
61            Self::ThrottlingException(inner) => inner.meta(),
62            Self::ValidationException(inner) => inner.meta(),
63            Self::Unhandled(inner) => &inner.meta,
64        }
65    }
66}
67impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_findings::BatchGetFindingsError, R>> for Error
68where
69    R: Send + Sync + std::fmt::Debug + 'static,
70{
71    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_findings::BatchGetFindingsError, R>) -> Self {
72        match err {
73            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
74            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
75                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
76                source: err.into(),
77            }),
78        }
79    }
80}
81impl From<crate::operation::batch_get_findings::BatchGetFindingsError> for Error {
82    fn from(err: crate::operation::batch_get_findings::BatchGetFindingsError) -> Self {
83        match err {
84            crate::operation::batch_get_findings::BatchGetFindingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
85            crate::operation::batch_get_findings::BatchGetFindingsError::InternalServerException(inner) => Error::InternalServerException(inner),
86            crate::operation::batch_get_findings::BatchGetFindingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
87            crate::operation::batch_get_findings::BatchGetFindingsError::ValidationException(inner) => Error::ValidationException(inner),
88            crate::operation::batch_get_findings::BatchGetFindingsError::Unhandled(inner) => Error::Unhandled(inner),
89        }
90    }
91}
92impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scan::CreateScanError, R>> for Error
93where
94    R: Send + Sync + std::fmt::Debug + 'static,
95{
96    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scan::CreateScanError, R>) -> Self {
97        match err {
98            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
99            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
100                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
101                source: err.into(),
102            }),
103        }
104    }
105}
106impl From<crate::operation::create_scan::CreateScanError> for Error {
107    fn from(err: crate::operation::create_scan::CreateScanError) -> Self {
108        match err {
109            crate::operation::create_scan::CreateScanError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
110            crate::operation::create_scan::CreateScanError::ConflictException(inner) => Error::ConflictException(inner),
111            crate::operation::create_scan::CreateScanError::InternalServerException(inner) => Error::InternalServerException(inner),
112            crate::operation::create_scan::CreateScanError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
113            crate::operation::create_scan::CreateScanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
114            crate::operation::create_scan::CreateScanError::ValidationException(inner) => Error::ValidationException(inner),
115            crate::operation::create_scan::CreateScanError::Unhandled(inner) => Error::Unhandled(inner),
116        }
117    }
118}
119impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_upload_url::CreateUploadUrlError, R>> for Error
120where
121    R: Send + Sync + std::fmt::Debug + 'static,
122{
123    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_upload_url::CreateUploadUrlError, R>) -> Self {
124        match err {
125            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
126            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
127                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
128                source: err.into(),
129            }),
130        }
131    }
132}
133impl From<crate::operation::create_upload_url::CreateUploadUrlError> for Error {
134    fn from(err: crate::operation::create_upload_url::CreateUploadUrlError) -> Self {
135        match err {
136            crate::operation::create_upload_url::CreateUploadUrlError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
137            crate::operation::create_upload_url::CreateUploadUrlError::InternalServerException(inner) => Error::InternalServerException(inner),
138            crate::operation::create_upload_url::CreateUploadUrlError::ThrottlingException(inner) => Error::ThrottlingException(inner),
139            crate::operation::create_upload_url::CreateUploadUrlError::ValidationException(inner) => Error::ValidationException(inner),
140            crate::operation::create_upload_url::CreateUploadUrlError::Unhandled(inner) => Error::Unhandled(inner),
141        }
142    }
143}
144impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_configuration::GetAccountConfigurationError, R>>
145    for Error
146where
147    R: Send + Sync + std::fmt::Debug + 'static,
148{
149    fn from(
150        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_configuration::GetAccountConfigurationError, R>,
151    ) -> Self {
152        match err {
153            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
154            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
155                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
156                source: err.into(),
157            }),
158        }
159    }
160}
161impl From<crate::operation::get_account_configuration::GetAccountConfigurationError> for Error {
162    fn from(err: crate::operation::get_account_configuration::GetAccountConfigurationError) -> Self {
163        match err {
164            crate::operation::get_account_configuration::GetAccountConfigurationError::AccessDeniedException(inner) => {
165                Error::AccessDeniedException(inner)
166            }
167            crate::operation::get_account_configuration::GetAccountConfigurationError::InternalServerException(inner) => {
168                Error::InternalServerException(inner)
169            }
170            crate::operation::get_account_configuration::GetAccountConfigurationError::ThrottlingException(inner) => {
171                Error::ThrottlingException(inner)
172            }
173            crate::operation::get_account_configuration::GetAccountConfigurationError::ValidationException(inner) => {
174                Error::ValidationException(inner)
175            }
176            crate::operation::get_account_configuration::GetAccountConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
177        }
178    }
179}
180impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_findings::GetFindingsError, R>> for Error
181where
182    R: Send + Sync + std::fmt::Debug + 'static,
183{
184    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_findings::GetFindingsError, R>) -> Self {
185        match err {
186            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
187            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
188                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
189                source: err.into(),
190            }),
191        }
192    }
193}
194impl From<crate::operation::get_findings::GetFindingsError> for Error {
195    fn from(err: crate::operation::get_findings::GetFindingsError) -> Self {
196        match err {
197            crate::operation::get_findings::GetFindingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
198            crate::operation::get_findings::GetFindingsError::ConflictException(inner) => Error::ConflictException(inner),
199            crate::operation::get_findings::GetFindingsError::InternalServerException(inner) => Error::InternalServerException(inner),
200            crate::operation::get_findings::GetFindingsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
201            crate::operation::get_findings::GetFindingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
202            crate::operation::get_findings::GetFindingsError::ValidationException(inner) => Error::ValidationException(inner),
203            crate::operation::get_findings::GetFindingsError::Unhandled(inner) => Error::Unhandled(inner),
204        }
205    }
206}
207impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metrics_summary::GetMetricsSummaryError, R>> for Error
208where
209    R: Send + Sync + std::fmt::Debug + 'static,
210{
211    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metrics_summary::GetMetricsSummaryError, R>) -> Self {
212        match err {
213            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
214            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
215                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
216                source: err.into(),
217            }),
218        }
219    }
220}
221impl From<crate::operation::get_metrics_summary::GetMetricsSummaryError> for Error {
222    fn from(err: crate::operation::get_metrics_summary::GetMetricsSummaryError) -> Self {
223        match err {
224            crate::operation::get_metrics_summary::GetMetricsSummaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
225            crate::operation::get_metrics_summary::GetMetricsSummaryError::InternalServerException(inner) => Error::InternalServerException(inner),
226            crate::operation::get_metrics_summary::GetMetricsSummaryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
227            crate::operation::get_metrics_summary::GetMetricsSummaryError::ValidationException(inner) => Error::ValidationException(inner),
228            crate::operation::get_metrics_summary::GetMetricsSummaryError::Unhandled(inner) => Error::Unhandled(inner),
229        }
230    }
231}
232impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scan::GetScanError, R>> for Error
233where
234    R: Send + Sync + std::fmt::Debug + 'static,
235{
236    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scan::GetScanError, R>) -> Self {
237        match err {
238            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
239            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
240                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
241                source: err.into(),
242            }),
243        }
244    }
245}
246impl From<crate::operation::get_scan::GetScanError> for Error {
247    fn from(err: crate::operation::get_scan::GetScanError) -> Self {
248        match err {
249            crate::operation::get_scan::GetScanError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
250            crate::operation::get_scan::GetScanError::InternalServerException(inner) => Error::InternalServerException(inner),
251            crate::operation::get_scan::GetScanError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
252            crate::operation::get_scan::GetScanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
253            crate::operation::get_scan::GetScanError::ValidationException(inner) => Error::ValidationException(inner),
254            crate::operation::get_scan::GetScanError::Unhandled(inner) => Error::Unhandled(inner),
255        }
256    }
257}
258impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_findings_metrics::ListFindingsMetricsError, R>> for Error
259where
260    R: Send + Sync + std::fmt::Debug + 'static,
261{
262    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_findings_metrics::ListFindingsMetricsError, R>) -> Self {
263        match err {
264            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
265            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
266                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
267                source: err.into(),
268            }),
269        }
270    }
271}
272impl From<crate::operation::list_findings_metrics::ListFindingsMetricsError> for Error {
273    fn from(err: crate::operation::list_findings_metrics::ListFindingsMetricsError) -> Self {
274        match err {
275            crate::operation::list_findings_metrics::ListFindingsMetricsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
276            crate::operation::list_findings_metrics::ListFindingsMetricsError::InternalServerException(inner) => {
277                Error::InternalServerException(inner)
278            }
279            crate::operation::list_findings_metrics::ListFindingsMetricsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
280            crate::operation::list_findings_metrics::ListFindingsMetricsError::ValidationException(inner) => Error::ValidationException(inner),
281            crate::operation::list_findings_metrics::ListFindingsMetricsError::Unhandled(inner) => Error::Unhandled(inner),
282        }
283    }
284}
285impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scans::ListScansError, R>> for Error
286where
287    R: Send + Sync + std::fmt::Debug + 'static,
288{
289    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scans::ListScansError, R>) -> Self {
290        match err {
291            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
292            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
293                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
294                source: err.into(),
295            }),
296        }
297    }
298}
299impl From<crate::operation::list_scans::ListScansError> for Error {
300    fn from(err: crate::operation::list_scans::ListScansError) -> Self {
301        match err {
302            crate::operation::list_scans::ListScansError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
303            crate::operation::list_scans::ListScansError::InternalServerException(inner) => Error::InternalServerException(inner),
304            crate::operation::list_scans::ListScansError::ThrottlingException(inner) => Error::ThrottlingException(inner),
305            crate::operation::list_scans::ListScansError::ValidationException(inner) => Error::ValidationException(inner),
306            crate::operation::list_scans::ListScansError::Unhandled(inner) => Error::Unhandled(inner),
307        }
308    }
309}
310impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, 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::list_tags_for_resource::ListTagsForResourceError, 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::list_tags_for_resource::ListTagsForResourceError> for Error {
325    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
326        match err {
327            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
328            crate::operation::list_tags_for_resource::ListTagsForResourceError::ConflictException(inner) => Error::ConflictException(inner),
329            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
330                Error::InternalServerException(inner)
331            }
332            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
333                Error::ResourceNotFoundException(inner)
334            }
335            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
336            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
337            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
338        }
339    }
340}
341impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
342where
343    R: Send + Sync + std::fmt::Debug + 'static,
344{
345    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
346        match err {
347            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
348            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
349                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
350                source: err.into(),
351            }),
352        }
353    }
354}
355impl From<crate::operation::tag_resource::TagResourceError> for Error {
356    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
357        match err {
358            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
359            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
360            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
361            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
362            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
363            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
364            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
365        }
366    }
367}
368impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
369where
370    R: Send + Sync + std::fmt::Debug + 'static,
371{
372    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
373        match err {
374            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
375            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
376                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
377                source: err.into(),
378            }),
379        }
380    }
381}
382impl From<crate::operation::untag_resource::UntagResourceError> for Error {
383    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
384        match err {
385            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
386            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
387            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
388            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
389            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
390            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
391            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
392        }
393    }
394}
395impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account_configuration::UpdateAccountConfigurationError, R>>
396    for Error
397where
398    R: Send + Sync + std::fmt::Debug + 'static,
399{
400    fn from(
401        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account_configuration::UpdateAccountConfigurationError, R>,
402    ) -> Self {
403        match err {
404            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
405            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
406                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
407                source: err.into(),
408            }),
409        }
410    }
411}
412impl From<crate::operation::update_account_configuration::UpdateAccountConfigurationError> for Error {
413    fn from(err: crate::operation::update_account_configuration::UpdateAccountConfigurationError) -> Self {
414        match err {
415            crate::operation::update_account_configuration::UpdateAccountConfigurationError::AccessDeniedException(inner) => {
416                Error::AccessDeniedException(inner)
417            }
418            crate::operation::update_account_configuration::UpdateAccountConfigurationError::InternalServerException(inner) => {
419                Error::InternalServerException(inner)
420            }
421            crate::operation::update_account_configuration::UpdateAccountConfigurationError::ResourceNotFoundException(inner) => {
422                Error::ResourceNotFoundException(inner)
423            }
424            crate::operation::update_account_configuration::UpdateAccountConfigurationError::ThrottlingException(inner) => {
425                Error::ThrottlingException(inner)
426            }
427            crate::operation::update_account_configuration::UpdateAccountConfigurationError::ValidationException(inner) => {
428                Error::ValidationException(inner)
429            }
430            crate::operation::update_account_configuration::UpdateAccountConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
431        }
432    }
433}
434impl ::std::error::Error for Error {
435    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
436        match self {
437            Error::AccessDeniedException(inner) => inner.source(),
438            Error::ConflictException(inner) => inner.source(),
439            Error::InternalServerException(inner) => inner.source(),
440            Error::ResourceNotFoundException(inner) => inner.source(),
441            Error::ThrottlingException(inner) => inner.source(),
442            Error::ValidationException(inner) => inner.source(),
443            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
444        }
445    }
446}
447impl ::aws_types::request_id::RequestId for Error {
448    fn request_id(&self) -> Option<&str> {
449        match self {
450            Self::AccessDeniedException(e) => e.request_id(),
451            Self::ConflictException(e) => e.request_id(),
452            Self::InternalServerException(e) => e.request_id(),
453            Self::ResourceNotFoundException(e) => e.request_id(),
454            Self::ThrottlingException(e) => e.request_id(),
455            Self::ValidationException(e) => e.request_id(),
456            Self::Unhandled(e) => e.meta.request_id(),
457        }
458    }
459}