Skip to main content

aws_sdk_elementalinference/
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 request could not be completed due to a conflict.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.</p>
11    InternalServerErrorException(crate::types::error::InternalServerErrorException),
12    /// <p>The resource specified in the action doesn't exist.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The request was rejected because it would exceed one or more service quotas for your account. Review your service quotas and either delete unused resources or request a quota increase.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.</p>
17    TooManyRequestException(crate::types::error::TooManyRequestException),
18    /// <p>The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.</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::InternalServerErrorException(inner) => inner.fmt(f),
35            Error::ResourceNotFoundException(inner) => inner.fmt(f),
36            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37            Error::TooManyRequestException(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::InternalServerErrorException(inner) => inner.meta(),
63            Self::ResourceNotFoundException(inner) => inner.meta(),
64            Self::ServiceQuotaExceededException(inner) => inner.meta(),
65            Self::TooManyRequestException(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::associate_feed::AssociateFeedError, 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::associate_feed::AssociateFeedError, 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::associate_feed::AssociateFeedError> for Error {
86    fn from(err: crate::operation::associate_feed::AssociateFeedError) -> Self {
87        match err {
88            crate::operation::associate_feed::AssociateFeedError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89            crate::operation::associate_feed::AssociateFeedError::ConflictException(inner) => Error::ConflictException(inner),
90            crate::operation::associate_feed::AssociateFeedError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
91            crate::operation::associate_feed::AssociateFeedError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
92            crate::operation::associate_feed::AssociateFeedError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
93            crate::operation::associate_feed::AssociateFeedError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
94            crate::operation::associate_feed::AssociateFeedError::ValidationException(inner) => Error::ValidationException(inner),
95            crate::operation::associate_feed::AssociateFeedError::Unhandled(inner) => Error::Unhandled(inner),
96        }
97    }
98}
99impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dictionary::CreateDictionaryError, R>> for Error
100where
101    R: Send + Sync + std::fmt::Debug + 'static,
102{
103    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dictionary::CreateDictionaryError, R>) -> Self {
104        match err {
105            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
106            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
107                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
108                source: err.into(),
109            }),
110        }
111    }
112}
113impl From<crate::operation::create_dictionary::CreateDictionaryError> for Error {
114    fn from(err: crate::operation::create_dictionary::CreateDictionaryError) -> Self {
115        match err {
116            crate::operation::create_dictionary::CreateDictionaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
117            crate::operation::create_dictionary::CreateDictionaryError::ConflictException(inner) => Error::ConflictException(inner),
118            crate::operation::create_dictionary::CreateDictionaryError::InternalServerErrorException(inner) => {
119                Error::InternalServerErrorException(inner)
120            }
121            crate::operation::create_dictionary::CreateDictionaryError::ServiceQuotaExceededException(inner) => {
122                Error::ServiceQuotaExceededException(inner)
123            }
124            crate::operation::create_dictionary::CreateDictionaryError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
125            crate::operation::create_dictionary::CreateDictionaryError::ValidationException(inner) => Error::ValidationException(inner),
126            crate::operation::create_dictionary::CreateDictionaryError::Unhandled(inner) => Error::Unhandled(inner),
127        }
128    }
129}
130impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_feed::CreateFeedError, R>> for Error
131where
132    R: Send + Sync + std::fmt::Debug + 'static,
133{
134    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_feed::CreateFeedError, R>) -> Self {
135        match err {
136            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
137            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
138                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
139                source: err.into(),
140            }),
141        }
142    }
143}
144impl From<crate::operation::create_feed::CreateFeedError> for Error {
145    fn from(err: crate::operation::create_feed::CreateFeedError) -> Self {
146        match err {
147            crate::operation::create_feed::CreateFeedError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
148            crate::operation::create_feed::CreateFeedError::ConflictException(inner) => Error::ConflictException(inner),
149            crate::operation::create_feed::CreateFeedError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
150            crate::operation::create_feed::CreateFeedError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
151            crate::operation::create_feed::CreateFeedError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
152            crate::operation::create_feed::CreateFeedError::ValidationException(inner) => Error::ValidationException(inner),
153            crate::operation::create_feed::CreateFeedError::Unhandled(inner) => Error::Unhandled(inner),
154        }
155    }
156}
157impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dictionary::DeleteDictionaryError, R>> for Error
158where
159    R: Send + Sync + std::fmt::Debug + 'static,
160{
161    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dictionary::DeleteDictionaryError, R>) -> Self {
162        match err {
163            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
164            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
165                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
166                source: err.into(),
167            }),
168        }
169    }
170}
171impl From<crate::operation::delete_dictionary::DeleteDictionaryError> for Error {
172    fn from(err: crate::operation::delete_dictionary::DeleteDictionaryError) -> Self {
173        match err {
174            crate::operation::delete_dictionary::DeleteDictionaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
175            crate::operation::delete_dictionary::DeleteDictionaryError::ConflictException(inner) => Error::ConflictException(inner),
176            crate::operation::delete_dictionary::DeleteDictionaryError::InternalServerErrorException(inner) => {
177                Error::InternalServerErrorException(inner)
178            }
179            crate::operation::delete_dictionary::DeleteDictionaryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
180            crate::operation::delete_dictionary::DeleteDictionaryError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
181            crate::operation::delete_dictionary::DeleteDictionaryError::ValidationException(inner) => Error::ValidationException(inner),
182            crate::operation::delete_dictionary::DeleteDictionaryError::Unhandled(inner) => Error::Unhandled(inner),
183        }
184    }
185}
186impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feed::DeleteFeedError, R>> for Error
187where
188    R: Send + Sync + std::fmt::Debug + 'static,
189{
190    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_feed::DeleteFeedError, R>) -> Self {
191        match err {
192            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
193            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
194                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
195                source: err.into(),
196            }),
197        }
198    }
199}
200impl From<crate::operation::delete_feed::DeleteFeedError> for Error {
201    fn from(err: crate::operation::delete_feed::DeleteFeedError) -> Self {
202        match err {
203            crate::operation::delete_feed::DeleteFeedError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
204            crate::operation::delete_feed::DeleteFeedError::ConflictException(inner) => Error::ConflictException(inner),
205            crate::operation::delete_feed::DeleteFeedError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
206            crate::operation::delete_feed::DeleteFeedError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
207            crate::operation::delete_feed::DeleteFeedError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
208            crate::operation::delete_feed::DeleteFeedError::ValidationException(inner) => Error::ValidationException(inner),
209            crate::operation::delete_feed::DeleteFeedError::Unhandled(inner) => Error::Unhandled(inner),
210        }
211    }
212}
213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_feed::DisassociateFeedError, R>> for Error
214where
215    R: Send + Sync + std::fmt::Debug + 'static,
216{
217    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_feed::DisassociateFeedError, R>) -> Self {
218        match err {
219            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
220            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
221                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
222                source: err.into(),
223            }),
224        }
225    }
226}
227impl From<crate::operation::disassociate_feed::DisassociateFeedError> for Error {
228    fn from(err: crate::operation::disassociate_feed::DisassociateFeedError) -> Self {
229        match err {
230            crate::operation::disassociate_feed::DisassociateFeedError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
231            crate::operation::disassociate_feed::DisassociateFeedError::ConflictException(inner) => Error::ConflictException(inner),
232            crate::operation::disassociate_feed::DisassociateFeedError::InternalServerErrorException(inner) => {
233                Error::InternalServerErrorException(inner)
234            }
235            crate::operation::disassociate_feed::DisassociateFeedError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
236            crate::operation::disassociate_feed::DisassociateFeedError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
237            crate::operation::disassociate_feed::DisassociateFeedError::ValidationException(inner) => Error::ValidationException(inner),
238            crate::operation::disassociate_feed::DisassociateFeedError::Unhandled(inner) => Error::Unhandled(inner),
239        }
240    }
241}
242impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_dictionary_entries::ExportDictionaryEntriesError, R>>
243    for Error
244where
245    R: Send + Sync + std::fmt::Debug + 'static,
246{
247    fn from(
248        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_dictionary_entries::ExportDictionaryEntriesError, R>,
249    ) -> Self {
250        match err {
251            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
252            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
253                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
254                source: err.into(),
255            }),
256        }
257    }
258}
259impl From<crate::operation::export_dictionary_entries::ExportDictionaryEntriesError> for Error {
260    fn from(err: crate::operation::export_dictionary_entries::ExportDictionaryEntriesError) -> Self {
261        match err {
262            crate::operation::export_dictionary_entries::ExportDictionaryEntriesError::AccessDeniedException(inner) => {
263                Error::AccessDeniedException(inner)
264            }
265            crate::operation::export_dictionary_entries::ExportDictionaryEntriesError::InternalServerErrorException(inner) => {
266                Error::InternalServerErrorException(inner)
267            }
268            crate::operation::export_dictionary_entries::ExportDictionaryEntriesError::ResourceNotFoundException(inner) => {
269                Error::ResourceNotFoundException(inner)
270            }
271            crate::operation::export_dictionary_entries::ExportDictionaryEntriesError::TooManyRequestException(inner) => {
272                Error::TooManyRequestException(inner)
273            }
274            crate::operation::export_dictionary_entries::ExportDictionaryEntriesError::ValidationException(inner) => {
275                Error::ValidationException(inner)
276            }
277            crate::operation::export_dictionary_entries::ExportDictionaryEntriesError::Unhandled(inner) => Error::Unhandled(inner),
278        }
279    }
280}
281impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dictionary::GetDictionaryError, R>> for Error
282where
283    R: Send + Sync + std::fmt::Debug + 'static,
284{
285    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_dictionary::GetDictionaryError, R>) -> Self {
286        match err {
287            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
288            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
289                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
290                source: err.into(),
291            }),
292        }
293    }
294}
295impl From<crate::operation::get_dictionary::GetDictionaryError> for Error {
296    fn from(err: crate::operation::get_dictionary::GetDictionaryError) -> Self {
297        match err {
298            crate::operation::get_dictionary::GetDictionaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
299            crate::operation::get_dictionary::GetDictionaryError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
300            crate::operation::get_dictionary::GetDictionaryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
301            crate::operation::get_dictionary::GetDictionaryError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
302            crate::operation::get_dictionary::GetDictionaryError::ValidationException(inner) => Error::ValidationException(inner),
303            crate::operation::get_dictionary::GetDictionaryError::Unhandled(inner) => Error::Unhandled(inner),
304        }
305    }
306}
307impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_feed::GetFeedError, R>> for Error
308where
309    R: Send + Sync + std::fmt::Debug + 'static,
310{
311    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_feed::GetFeedError, R>) -> Self {
312        match err {
313            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
314            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
315                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
316                source: err.into(),
317            }),
318        }
319    }
320}
321impl From<crate::operation::get_feed::GetFeedError> for Error {
322    fn from(err: crate::operation::get_feed::GetFeedError) -> Self {
323        match err {
324            crate::operation::get_feed::GetFeedError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
325            crate::operation::get_feed::GetFeedError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
326            crate::operation::get_feed::GetFeedError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
327            crate::operation::get_feed::GetFeedError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
328            crate::operation::get_feed::GetFeedError::Unhandled(inner) => Error::Unhandled(inner),
329        }
330    }
331}
332impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dictionaries::ListDictionariesError, R>> for Error
333where
334    R: Send + Sync + std::fmt::Debug + 'static,
335{
336    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dictionaries::ListDictionariesError, R>) -> Self {
337        match err {
338            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
339            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
340                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
341                source: err.into(),
342            }),
343        }
344    }
345}
346impl From<crate::operation::list_dictionaries::ListDictionariesError> for Error {
347    fn from(err: crate::operation::list_dictionaries::ListDictionariesError) -> Self {
348        match err {
349            crate::operation::list_dictionaries::ListDictionariesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
350            crate::operation::list_dictionaries::ListDictionariesError::InternalServerErrorException(inner) => {
351                Error::InternalServerErrorException(inner)
352            }
353            crate::operation::list_dictionaries::ListDictionariesError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
354            crate::operation::list_dictionaries::ListDictionariesError::ValidationException(inner) => Error::ValidationException(inner),
355            crate::operation::list_dictionaries::ListDictionariesError::Unhandled(inner) => Error::Unhandled(inner),
356        }
357    }
358}
359impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_feeds::ListFeedsError, R>> for Error
360where
361    R: Send + Sync + std::fmt::Debug + 'static,
362{
363    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_feeds::ListFeedsError, R>) -> Self {
364        match err {
365            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
366            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
367                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
368                source: err.into(),
369            }),
370        }
371    }
372}
373impl From<crate::operation::list_feeds::ListFeedsError> for Error {
374    fn from(err: crate::operation::list_feeds::ListFeedsError) -> Self {
375        match err {
376            crate::operation::list_feeds::ListFeedsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
377            crate::operation::list_feeds::ListFeedsError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
378            crate::operation::list_feeds::ListFeedsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
379            crate::operation::list_feeds::ListFeedsError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
380            crate::operation::list_feeds::ListFeedsError::ValidationException(inner) => Error::ValidationException(inner),
381            crate::operation::list_feeds::ListFeedsError::Unhandled(inner) => Error::Unhandled(inner),
382        }
383    }
384}
385impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
386where
387    R: Send + Sync + std::fmt::Debug + 'static,
388{
389    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
390        match err {
391            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
392            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
393                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
394                source: err.into(),
395            }),
396        }
397    }
398}
399impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
400    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
401        match err {
402            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
403            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerErrorException(inner) => {
404                Error::InternalServerErrorException(inner)
405            }
406            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
407                Error::ResourceNotFoundException(inner)
408            }
409            crate::operation::list_tags_for_resource::ListTagsForResourceError::TooManyRequestException(inner) => {
410                Error::TooManyRequestException(inner)
411            }
412            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
413            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
414        }
415    }
416}
417impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
418where
419    R: Send + Sync + std::fmt::Debug + 'static,
420{
421    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
422        match err {
423            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
424            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
425                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
426                source: err.into(),
427            }),
428        }
429    }
430}
431impl From<crate::operation::tag_resource::TagResourceError> for Error {
432    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
433        match err {
434            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
435            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
436            crate::operation::tag_resource::TagResourceError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
437            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
438            crate::operation::tag_resource::TagResourceError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
439            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
440            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
441        }
442    }
443}
444impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
445where
446    R: Send + Sync + std::fmt::Debug + 'static,
447{
448    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
449        match err {
450            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
451            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
452                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
453                source: err.into(),
454            }),
455        }
456    }
457}
458impl From<crate::operation::untag_resource::UntagResourceError> for Error {
459    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
460        match err {
461            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
462            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
463            crate::operation::untag_resource::UntagResourceError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
464            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
465            crate::operation::untag_resource::UntagResourceError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
466            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
467            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
468        }
469    }
470}
471impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dictionary::UpdateDictionaryError, R>> for Error
472where
473    R: Send + Sync + std::fmt::Debug + 'static,
474{
475    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dictionary::UpdateDictionaryError, R>) -> Self {
476        match err {
477            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
478            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
479                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
480                source: err.into(),
481            }),
482        }
483    }
484}
485impl From<crate::operation::update_dictionary::UpdateDictionaryError> for Error {
486    fn from(err: crate::operation::update_dictionary::UpdateDictionaryError) -> Self {
487        match err {
488            crate::operation::update_dictionary::UpdateDictionaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
489            crate::operation::update_dictionary::UpdateDictionaryError::ConflictException(inner) => Error::ConflictException(inner),
490            crate::operation::update_dictionary::UpdateDictionaryError::InternalServerErrorException(inner) => {
491                Error::InternalServerErrorException(inner)
492            }
493            crate::operation::update_dictionary::UpdateDictionaryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
494            crate::operation::update_dictionary::UpdateDictionaryError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
495            crate::operation::update_dictionary::UpdateDictionaryError::ValidationException(inner) => Error::ValidationException(inner),
496            crate::operation::update_dictionary::UpdateDictionaryError::Unhandled(inner) => Error::Unhandled(inner),
497        }
498    }
499}
500impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feed::UpdateFeedError, R>> for Error
501where
502    R: Send + Sync + std::fmt::Debug + 'static,
503{
504    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_feed::UpdateFeedError, R>) -> Self {
505        match err {
506            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
507            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
508                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
509                source: err.into(),
510            }),
511        }
512    }
513}
514impl From<crate::operation::update_feed::UpdateFeedError> for Error {
515    fn from(err: crate::operation::update_feed::UpdateFeedError) -> Self {
516        match err {
517            crate::operation::update_feed::UpdateFeedError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
518            crate::operation::update_feed::UpdateFeedError::ConflictException(inner) => Error::ConflictException(inner),
519            crate::operation::update_feed::UpdateFeedError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
520            crate::operation::update_feed::UpdateFeedError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
521            crate::operation::update_feed::UpdateFeedError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
522            crate::operation::update_feed::UpdateFeedError::TooManyRequestException(inner) => Error::TooManyRequestException(inner),
523            crate::operation::update_feed::UpdateFeedError::ValidationException(inner) => Error::ValidationException(inner),
524            crate::operation::update_feed::UpdateFeedError::Unhandled(inner) => Error::Unhandled(inner),
525        }
526    }
527}
528impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
529where
530    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
531    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
532{
533    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
534        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
535            meta: ::std::default::Default::default(),
536            source: err.into(),
537        })
538    }
539}
540impl ::std::error::Error for Error {
541    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
542        match self {
543            Error::AccessDeniedException(inner) => inner.source(),
544            Error::ConflictException(inner) => inner.source(),
545            Error::InternalServerErrorException(inner) => inner.source(),
546            Error::ResourceNotFoundException(inner) => inner.source(),
547            Error::ServiceQuotaExceededException(inner) => inner.source(),
548            Error::TooManyRequestException(inner) => inner.source(),
549            Error::ValidationException(inner) => inner.source(),
550            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
551        }
552    }
553}
554impl ::aws_types::request_id::RequestId for Error {
555    fn request_id(&self) -> Option<&str> {
556        match self {
557            Self::AccessDeniedException(e) => e.request_id(),
558            Self::ConflictException(e) => e.request_id(),
559            Self::InternalServerErrorException(e) => e.request_id(),
560            Self::ResourceNotFoundException(e) => e.request_id(),
561            Self::ServiceQuotaExceededException(e) => e.request_id(),
562            Self::TooManyRequestException(e) => e.request_id(),
563            Self::ValidationException(e) => e.request_id(),
564            Self::Unhandled(e) => e.meta.request_id(),
565        }
566    }
567}