aws_sdk_resourceexplorer2/
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>The credentials that you used to call this operation don't have the minimum required permissions.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>If you attempted to create a view, then the request failed because either you specified parameters that didn’t match the original request, or you attempted to create a view with a name that already exists in this Amazon Web Services Region.</p>
9    /// <p>If you attempted to create an index, then the request failed because either you specified parameters that didn't match the original request, or an index already exists in the current Amazon Web Services Region.</p>
10    /// <p>If you attempted to update an index type to <code>AGGREGATOR</code>, then the request failed because you already have an <code>AGGREGATOR</code> index in a different Amazon Web Services Region.</p>
11    ConflictException(crate::types::error::ConflictException),
12    /// <p>The request failed because of internal service error. Try your request again later.</p>
13    InternalServerException(crate::types::error::InternalServerException),
14    /// <p>You specified a resource that doesn't exist. Check the ID or ARN that you used to identity the resource, and try again.</p>
15    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
16    /// <p>The request failed because it exceeds a service quota.</p>
17    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
18    /// <p>The request failed because you exceeded a rate limit for this operation. For more information, see <a href="https://docs.aws.amazon.com/resource-explorer/latest/userguide/quotas.html">Quotas for Resource Explorer</a>.</p>
19    ThrottlingException(crate::types::error::ThrottlingException),
20    /// <p>The principal making the request isn't permitted to perform the operation.</p>
21    UnauthorizedException(crate::types::error::UnauthorizedException),
22    /// <p>You provided an invalid value for one of the operation's parameters. Check the syntax for the operation, and try again.</p>
23    ValidationException(crate::types::error::ValidationException),
24    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
25    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
26    variable wildcard pattern and check `.code()`:
27     \
28    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
29     \
30    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
31    Unhandled(crate::error::sealed_unhandled::Unhandled),
32}
33impl ::std::fmt::Display for Error {
34    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
35        match self {
36            Error::AccessDeniedException(inner) => inner.fmt(f),
37            Error::ConflictException(inner) => inner.fmt(f),
38            Error::InternalServerException(inner) => inner.fmt(f),
39            Error::ResourceNotFoundException(inner) => inner.fmt(f),
40            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
41            Error::ThrottlingException(inner) => inner.fmt(f),
42            Error::UnauthorizedException(inner) => inner.fmt(f),
43            Error::ValidationException(inner) => inner.fmt(f),
44            Error::Unhandled(_) => {
45                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
46                    write!(f, "unhandled error ({code})")
47                } else {
48                    f.write_str("unhandled error")
49                }
50            }
51        }
52    }
53}
54impl From<::aws_smithy_types::error::operation::BuildError> for Error {
55    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
56        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
57            source: value.into(),
58            meta: ::std::default::Default::default(),
59        })
60    }
61}
62impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
63    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
64        match self {
65            Self::AccessDeniedException(inner) => inner.meta(),
66            Self::ConflictException(inner) => inner.meta(),
67            Self::InternalServerException(inner) => inner.meta(),
68            Self::ResourceNotFoundException(inner) => inner.meta(),
69            Self::ServiceQuotaExceededException(inner) => inner.meta(),
70            Self::ThrottlingException(inner) => inner.meta(),
71            Self::UnauthorizedException(inner) => inner.meta(),
72            Self::ValidationException(inner) => inner.meta(),
73            Self::Unhandled(inner) => &inner.meta,
74        }
75    }
76}
77impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_default_view::AssociateDefaultViewError, R>> for Error
78where
79    R: Send + Sync + std::fmt::Debug + 'static,
80{
81    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_default_view::AssociateDefaultViewError, R>) -> Self {
82        match err {
83            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
84            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
85                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
86                source: err.into(),
87            }),
88        }
89    }
90}
91impl From<crate::operation::associate_default_view::AssociateDefaultViewError> for Error {
92    fn from(err: crate::operation::associate_default_view::AssociateDefaultViewError) -> Self {
93        match err {
94            crate::operation::associate_default_view::AssociateDefaultViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
95            crate::operation::associate_default_view::AssociateDefaultViewError::InternalServerException(inner) => {
96                Error::InternalServerException(inner)
97            }
98            crate::operation::associate_default_view::AssociateDefaultViewError::ResourceNotFoundException(inner) => {
99                Error::ResourceNotFoundException(inner)
100            }
101            crate::operation::associate_default_view::AssociateDefaultViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
102            crate::operation::associate_default_view::AssociateDefaultViewError::ValidationException(inner) => Error::ValidationException(inner),
103            crate::operation::associate_default_view::AssociateDefaultViewError::Unhandled(inner) => Error::Unhandled(inner),
104        }
105    }
106}
107impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_view::BatchGetViewError, R>> for Error
108where
109    R: Send + Sync + std::fmt::Debug + 'static,
110{
111    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_view::BatchGetViewError, R>) -> Self {
112        match err {
113            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
114            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
115                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
116                source: err.into(),
117            }),
118        }
119    }
120}
121impl From<crate::operation::batch_get_view::BatchGetViewError> for Error {
122    fn from(err: crate::operation::batch_get_view::BatchGetViewError) -> Self {
123        match err {
124            crate::operation::batch_get_view::BatchGetViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
125            crate::operation::batch_get_view::BatchGetViewError::InternalServerException(inner) => Error::InternalServerException(inner),
126            crate::operation::batch_get_view::BatchGetViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
127            crate::operation::batch_get_view::BatchGetViewError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
128            crate::operation::batch_get_view::BatchGetViewError::ValidationException(inner) => Error::ValidationException(inner),
129            crate::operation::batch_get_view::BatchGetViewError::Unhandled(inner) => Error::Unhandled(inner),
130        }
131    }
132}
133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_index::CreateIndexError, R>> for Error
134where
135    R: Send + Sync + std::fmt::Debug + 'static,
136{
137    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_index::CreateIndexError, R>) -> Self {
138        match err {
139            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
140            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
141                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
142                source: err.into(),
143            }),
144        }
145    }
146}
147impl From<crate::operation::create_index::CreateIndexError> for Error {
148    fn from(err: crate::operation::create_index::CreateIndexError) -> Self {
149        match err {
150            crate::operation::create_index::CreateIndexError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
151            crate::operation::create_index::CreateIndexError::ConflictException(inner) => Error::ConflictException(inner),
152            crate::operation::create_index::CreateIndexError::InternalServerException(inner) => Error::InternalServerException(inner),
153            crate::operation::create_index::CreateIndexError::ThrottlingException(inner) => Error::ThrottlingException(inner),
154            crate::operation::create_index::CreateIndexError::ValidationException(inner) => Error::ValidationException(inner),
155            crate::operation::create_index::CreateIndexError::Unhandled(inner) => Error::Unhandled(inner),
156        }
157    }
158}
159impl<R>
160    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_resource_explorer_setup::CreateResourceExplorerSetupError, R>>
161    for Error
162where
163    R: Send + Sync + std::fmt::Debug + 'static,
164{
165    fn from(
166        err: ::aws_smithy_runtime_api::client::result::SdkError<
167            crate::operation::create_resource_explorer_setup::CreateResourceExplorerSetupError,
168            R,
169        >,
170    ) -> Self {
171        match err {
172            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
173            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
174                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
175                source: err.into(),
176            }),
177        }
178    }
179}
180impl From<crate::operation::create_resource_explorer_setup::CreateResourceExplorerSetupError> for Error {
181    fn from(err: crate::operation::create_resource_explorer_setup::CreateResourceExplorerSetupError) -> Self {
182        match err {
183            crate::operation::create_resource_explorer_setup::CreateResourceExplorerSetupError::AccessDeniedException(inner) => {
184                Error::AccessDeniedException(inner)
185            }
186            crate::operation::create_resource_explorer_setup::CreateResourceExplorerSetupError::ConflictException(inner) => {
187                Error::ConflictException(inner)
188            }
189            crate::operation::create_resource_explorer_setup::CreateResourceExplorerSetupError::InternalServerException(inner) => {
190                Error::InternalServerException(inner)
191            }
192            crate::operation::create_resource_explorer_setup::CreateResourceExplorerSetupError::ThrottlingException(inner) => {
193                Error::ThrottlingException(inner)
194            }
195            crate::operation::create_resource_explorer_setup::CreateResourceExplorerSetupError::ValidationException(inner) => {
196                Error::ValidationException(inner)
197            }
198            crate::operation::create_resource_explorer_setup::CreateResourceExplorerSetupError::Unhandled(inner) => Error::Unhandled(inner),
199        }
200    }
201}
202impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_view::CreateViewError, R>> for Error
203where
204    R: Send + Sync + std::fmt::Debug + 'static,
205{
206    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_view::CreateViewError, R>) -> Self {
207        match err {
208            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
209            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
210                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
211                source: err.into(),
212            }),
213        }
214    }
215}
216impl From<crate::operation::create_view::CreateViewError> for Error {
217    fn from(err: crate::operation::create_view::CreateViewError) -> Self {
218        match err {
219            crate::operation::create_view::CreateViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
220            crate::operation::create_view::CreateViewError::ConflictException(inner) => Error::ConflictException(inner),
221            crate::operation::create_view::CreateViewError::InternalServerException(inner) => Error::InternalServerException(inner),
222            crate::operation::create_view::CreateViewError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
223            crate::operation::create_view::CreateViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
224            crate::operation::create_view::CreateViewError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
225            crate::operation::create_view::CreateViewError::ValidationException(inner) => Error::ValidationException(inner),
226            crate::operation::create_view::CreateViewError::Unhandled(inner) => Error::Unhandled(inner),
227        }
228    }
229}
230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_index::DeleteIndexError, R>> for Error
231where
232    R: Send + Sync + std::fmt::Debug + 'static,
233{
234    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_index::DeleteIndexError, R>) -> Self {
235        match err {
236            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
237            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
238                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
239                source: err.into(),
240            }),
241        }
242    }
243}
244impl From<crate::operation::delete_index::DeleteIndexError> for Error {
245    fn from(err: crate::operation::delete_index::DeleteIndexError) -> Self {
246        match err {
247            crate::operation::delete_index::DeleteIndexError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
248            crate::operation::delete_index::DeleteIndexError::InternalServerException(inner) => Error::InternalServerException(inner),
249            crate::operation::delete_index::DeleteIndexError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
250            crate::operation::delete_index::DeleteIndexError::ThrottlingException(inner) => Error::ThrottlingException(inner),
251            crate::operation::delete_index::DeleteIndexError::ValidationException(inner) => Error::ValidationException(inner),
252            crate::operation::delete_index::DeleteIndexError::Unhandled(inner) => Error::Unhandled(inner),
253        }
254    }
255}
256impl<R>
257    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_explorer_setup::DeleteResourceExplorerSetupError, R>>
258    for Error
259where
260    R: Send + Sync + std::fmt::Debug + 'static,
261{
262    fn from(
263        err: ::aws_smithy_runtime_api::client::result::SdkError<
264            crate::operation::delete_resource_explorer_setup::DeleteResourceExplorerSetupError,
265            R,
266        >,
267    ) -> Self {
268        match err {
269            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
270            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
271                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
272                source: err.into(),
273            }),
274        }
275    }
276}
277impl From<crate::operation::delete_resource_explorer_setup::DeleteResourceExplorerSetupError> for Error {
278    fn from(err: crate::operation::delete_resource_explorer_setup::DeleteResourceExplorerSetupError) -> Self {
279        match err {
280            crate::operation::delete_resource_explorer_setup::DeleteResourceExplorerSetupError::AccessDeniedException(inner) => {
281                Error::AccessDeniedException(inner)
282            }
283            crate::operation::delete_resource_explorer_setup::DeleteResourceExplorerSetupError::ConflictException(inner) => {
284                Error::ConflictException(inner)
285            }
286            crate::operation::delete_resource_explorer_setup::DeleteResourceExplorerSetupError::InternalServerException(inner) => {
287                Error::InternalServerException(inner)
288            }
289            crate::operation::delete_resource_explorer_setup::DeleteResourceExplorerSetupError::ThrottlingException(inner) => {
290                Error::ThrottlingException(inner)
291            }
292            crate::operation::delete_resource_explorer_setup::DeleteResourceExplorerSetupError::ValidationException(inner) => {
293                Error::ValidationException(inner)
294            }
295            crate::operation::delete_resource_explorer_setup::DeleteResourceExplorerSetupError::Unhandled(inner) => Error::Unhandled(inner),
296        }
297    }
298}
299impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_view::DeleteViewError, R>> for Error
300where
301    R: Send + Sync + std::fmt::Debug + 'static,
302{
303    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_view::DeleteViewError, R>) -> Self {
304        match err {
305            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
306            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
307                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
308                source: err.into(),
309            }),
310        }
311    }
312}
313impl From<crate::operation::delete_view::DeleteViewError> for Error {
314    fn from(err: crate::operation::delete_view::DeleteViewError) -> Self {
315        match err {
316            crate::operation::delete_view::DeleteViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
317            crate::operation::delete_view::DeleteViewError::InternalServerException(inner) => Error::InternalServerException(inner),
318            crate::operation::delete_view::DeleteViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
319            crate::operation::delete_view::DeleteViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
320            crate::operation::delete_view::DeleteViewError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
321            crate::operation::delete_view::DeleteViewError::ValidationException(inner) => Error::ValidationException(inner),
322            crate::operation::delete_view::DeleteViewError::Unhandled(inner) => Error::Unhandled(inner),
323        }
324    }
325}
326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_default_view::DisassociateDefaultViewError, R>>
327    for Error
328where
329    R: Send + Sync + std::fmt::Debug + 'static,
330{
331    fn from(
332        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_default_view::DisassociateDefaultViewError, R>,
333    ) -> Self {
334        match err {
335            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
336            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
337                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
338                source: err.into(),
339            }),
340        }
341    }
342}
343impl From<crate::operation::disassociate_default_view::DisassociateDefaultViewError> for Error {
344    fn from(err: crate::operation::disassociate_default_view::DisassociateDefaultViewError) -> Self {
345        match err {
346            crate::operation::disassociate_default_view::DisassociateDefaultViewError::AccessDeniedException(inner) => {
347                Error::AccessDeniedException(inner)
348            }
349            crate::operation::disassociate_default_view::DisassociateDefaultViewError::InternalServerException(inner) => {
350                Error::InternalServerException(inner)
351            }
352            crate::operation::disassociate_default_view::DisassociateDefaultViewError::ResourceNotFoundException(inner) => {
353                Error::ResourceNotFoundException(inner)
354            }
355            crate::operation::disassociate_default_view::DisassociateDefaultViewError::ThrottlingException(inner) => {
356                Error::ThrottlingException(inner)
357            }
358            crate::operation::disassociate_default_view::DisassociateDefaultViewError::ValidationException(inner) => {
359                Error::ValidationException(inner)
360            }
361            crate::operation::disassociate_default_view::DisassociateDefaultViewError::Unhandled(inner) => Error::Unhandled(inner),
362        }
363    }
364}
365impl<R>
366    From<
367        ::aws_smithy_runtime_api::client::result::SdkError<
368            crate::operation::get_account_level_service_configuration::GetAccountLevelServiceConfigurationError,
369            R,
370        >,
371    > for Error
372where
373    R: Send + Sync + std::fmt::Debug + 'static,
374{
375    fn from(
376        err: ::aws_smithy_runtime_api::client::result::SdkError<
377            crate::operation::get_account_level_service_configuration::GetAccountLevelServiceConfigurationError,
378            R,
379        >,
380    ) -> Self {
381        match err {
382            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
383            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
384                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
385                source: err.into(),
386            }),
387        }
388    }
389}
390impl From<crate::operation::get_account_level_service_configuration::GetAccountLevelServiceConfigurationError> for Error {
391    fn from(err: crate::operation::get_account_level_service_configuration::GetAccountLevelServiceConfigurationError) -> Self {
392        match err {
393            crate::operation::get_account_level_service_configuration::GetAccountLevelServiceConfigurationError::AccessDeniedException(inner) => {
394                Error::AccessDeniedException(inner)
395            }
396            crate::operation::get_account_level_service_configuration::GetAccountLevelServiceConfigurationError::InternalServerException(inner) => {
397                Error::InternalServerException(inner)
398            }
399            crate::operation::get_account_level_service_configuration::GetAccountLevelServiceConfigurationError::ResourceNotFoundException(inner) => {
400                Error::ResourceNotFoundException(inner)
401            }
402            crate::operation::get_account_level_service_configuration::GetAccountLevelServiceConfigurationError::ThrottlingException(inner) => {
403                Error::ThrottlingException(inner)
404            }
405            crate::operation::get_account_level_service_configuration::GetAccountLevelServiceConfigurationError::Unhandled(inner) => {
406                Error::Unhandled(inner)
407            }
408        }
409    }
410}
411impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_default_view::GetDefaultViewError, R>> for Error
412where
413    R: Send + Sync + std::fmt::Debug + 'static,
414{
415    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_default_view::GetDefaultViewError, R>) -> Self {
416        match err {
417            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
418            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
419                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
420                source: err.into(),
421            }),
422        }
423    }
424}
425impl From<crate::operation::get_default_view::GetDefaultViewError> for Error {
426    fn from(err: crate::operation::get_default_view::GetDefaultViewError) -> Self {
427        match err {
428            crate::operation::get_default_view::GetDefaultViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
429            crate::operation::get_default_view::GetDefaultViewError::InternalServerException(inner) => Error::InternalServerException(inner),
430            crate::operation::get_default_view::GetDefaultViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
431            crate::operation::get_default_view::GetDefaultViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
432            crate::operation::get_default_view::GetDefaultViewError::ValidationException(inner) => Error::ValidationException(inner),
433            crate::operation::get_default_view::GetDefaultViewError::Unhandled(inner) => Error::Unhandled(inner),
434        }
435    }
436}
437impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_index::GetIndexError, R>> for Error
438where
439    R: Send + Sync + std::fmt::Debug + 'static,
440{
441    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_index::GetIndexError, R>) -> Self {
442        match err {
443            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
444            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
445                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
446                source: err.into(),
447            }),
448        }
449    }
450}
451impl From<crate::operation::get_index::GetIndexError> for Error {
452    fn from(err: crate::operation::get_index::GetIndexError) -> Self {
453        match err {
454            crate::operation::get_index::GetIndexError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
455            crate::operation::get_index::GetIndexError::InternalServerException(inner) => Error::InternalServerException(inner),
456            crate::operation::get_index::GetIndexError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
457            crate::operation::get_index::GetIndexError::ThrottlingException(inner) => Error::ThrottlingException(inner),
458            crate::operation::get_index::GetIndexError::ValidationException(inner) => Error::ValidationException(inner),
459            crate::operation::get_index::GetIndexError::Unhandled(inner) => Error::Unhandled(inner),
460        }
461    }
462}
463impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_view::GetManagedViewError, R>> for Error
464where
465    R: Send + Sync + std::fmt::Debug + 'static,
466{
467    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_managed_view::GetManagedViewError, R>) -> Self {
468        match err {
469            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
470            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
471                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
472                source: err.into(),
473            }),
474        }
475    }
476}
477impl From<crate::operation::get_managed_view::GetManagedViewError> for Error {
478    fn from(err: crate::operation::get_managed_view::GetManagedViewError) -> Self {
479        match err {
480            crate::operation::get_managed_view::GetManagedViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
481            crate::operation::get_managed_view::GetManagedViewError::InternalServerException(inner) => Error::InternalServerException(inner),
482            crate::operation::get_managed_view::GetManagedViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
483            crate::operation::get_managed_view::GetManagedViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
484            crate::operation::get_managed_view::GetManagedViewError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
485            crate::operation::get_managed_view::GetManagedViewError::ValidationException(inner) => Error::ValidationException(inner),
486            crate::operation::get_managed_view::GetManagedViewError::Unhandled(inner) => Error::Unhandled(inner),
487        }
488    }
489}
490impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_explorer_setup::GetResourceExplorerSetupError, R>>
491    for Error
492where
493    R: Send + Sync + std::fmt::Debug + 'static,
494{
495    fn from(
496        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_explorer_setup::GetResourceExplorerSetupError, R>,
497    ) -> Self {
498        match err {
499            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
500            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
501                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
502                source: err.into(),
503            }),
504        }
505    }
506}
507impl From<crate::operation::get_resource_explorer_setup::GetResourceExplorerSetupError> for Error {
508    fn from(err: crate::operation::get_resource_explorer_setup::GetResourceExplorerSetupError) -> Self {
509        match err {
510            crate::operation::get_resource_explorer_setup::GetResourceExplorerSetupError::AccessDeniedException(inner) => {
511                Error::AccessDeniedException(inner)
512            }
513            crate::operation::get_resource_explorer_setup::GetResourceExplorerSetupError::InternalServerException(inner) => {
514                Error::InternalServerException(inner)
515            }
516            crate::operation::get_resource_explorer_setup::GetResourceExplorerSetupError::ResourceNotFoundException(inner) => {
517                Error::ResourceNotFoundException(inner)
518            }
519            crate::operation::get_resource_explorer_setup::GetResourceExplorerSetupError::ThrottlingException(inner) => {
520                Error::ThrottlingException(inner)
521            }
522            crate::operation::get_resource_explorer_setup::GetResourceExplorerSetupError::ValidationException(inner) => {
523                Error::ValidationException(inner)
524            }
525            crate::operation::get_resource_explorer_setup::GetResourceExplorerSetupError::Unhandled(inner) => Error::Unhandled(inner),
526        }
527    }
528}
529impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_index::GetServiceIndexError, R>> for Error
530where
531    R: Send + Sync + std::fmt::Debug + 'static,
532{
533    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_index::GetServiceIndexError, R>) -> Self {
534        match err {
535            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
536            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
537                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
538                source: err.into(),
539            }),
540        }
541    }
542}
543impl From<crate::operation::get_service_index::GetServiceIndexError> for Error {
544    fn from(err: crate::operation::get_service_index::GetServiceIndexError) -> Self {
545        match err {
546            crate::operation::get_service_index::GetServiceIndexError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
547            crate::operation::get_service_index::GetServiceIndexError::InternalServerException(inner) => Error::InternalServerException(inner),
548            crate::operation::get_service_index::GetServiceIndexError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
549            crate::operation::get_service_index::GetServiceIndexError::ThrottlingException(inner) => Error::ThrottlingException(inner),
550            crate::operation::get_service_index::GetServiceIndexError::ValidationException(inner) => Error::ValidationException(inner),
551            crate::operation::get_service_index::GetServiceIndexError::Unhandled(inner) => Error::Unhandled(inner),
552        }
553    }
554}
555impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_view::GetServiceViewError, R>> for Error
556where
557    R: Send + Sync + std::fmt::Debug + 'static,
558{
559    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_view::GetServiceViewError, R>) -> Self {
560        match err {
561            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
562            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
563                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
564                source: err.into(),
565            }),
566        }
567    }
568}
569impl From<crate::operation::get_service_view::GetServiceViewError> for Error {
570    fn from(err: crate::operation::get_service_view::GetServiceViewError) -> Self {
571        match err {
572            crate::operation::get_service_view::GetServiceViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
573            crate::operation::get_service_view::GetServiceViewError::InternalServerException(inner) => Error::InternalServerException(inner),
574            crate::operation::get_service_view::GetServiceViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
575            crate::operation::get_service_view::GetServiceViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
576            crate::operation::get_service_view::GetServiceViewError::ValidationException(inner) => Error::ValidationException(inner),
577            crate::operation::get_service_view::GetServiceViewError::Unhandled(inner) => Error::Unhandled(inner),
578        }
579    }
580}
581impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_view::GetViewError, R>> for Error
582where
583    R: Send + Sync + std::fmt::Debug + 'static,
584{
585    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_view::GetViewError, R>) -> Self {
586        match err {
587            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
588            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
589                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
590                source: err.into(),
591            }),
592        }
593    }
594}
595impl From<crate::operation::get_view::GetViewError> for Error {
596    fn from(err: crate::operation::get_view::GetViewError) -> Self {
597        match err {
598            crate::operation::get_view::GetViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
599            crate::operation::get_view::GetViewError::InternalServerException(inner) => Error::InternalServerException(inner),
600            crate::operation::get_view::GetViewError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
601            crate::operation::get_view::GetViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
602            crate::operation::get_view::GetViewError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
603            crate::operation::get_view::GetViewError::ValidationException(inner) => Error::ValidationException(inner),
604            crate::operation::get_view::GetViewError::Unhandled(inner) => Error::Unhandled(inner),
605        }
606    }
607}
608impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_indexes::ListIndexesError, R>> for Error
609where
610    R: Send + Sync + std::fmt::Debug + 'static,
611{
612    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_indexes::ListIndexesError, R>) -> Self {
613        match err {
614            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
615            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
616                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
617                source: err.into(),
618            }),
619        }
620    }
621}
622impl From<crate::operation::list_indexes::ListIndexesError> for Error {
623    fn from(err: crate::operation::list_indexes::ListIndexesError) -> Self {
624        match err {
625            crate::operation::list_indexes::ListIndexesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
626            crate::operation::list_indexes::ListIndexesError::InternalServerException(inner) => Error::InternalServerException(inner),
627            crate::operation::list_indexes::ListIndexesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
628            crate::operation::list_indexes::ListIndexesError::ValidationException(inner) => Error::ValidationException(inner),
629            crate::operation::list_indexes::ListIndexesError::Unhandled(inner) => Error::Unhandled(inner),
630        }
631    }
632}
633impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_indexes_for_members::ListIndexesForMembersError, R>> for Error
634where
635    R: Send + Sync + std::fmt::Debug + 'static,
636{
637    fn from(
638        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_indexes_for_members::ListIndexesForMembersError, R>,
639    ) -> Self {
640        match err {
641            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
642            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
643                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
644                source: err.into(),
645            }),
646        }
647    }
648}
649impl From<crate::operation::list_indexes_for_members::ListIndexesForMembersError> for Error {
650    fn from(err: crate::operation::list_indexes_for_members::ListIndexesForMembersError) -> Self {
651        match err {
652            crate::operation::list_indexes_for_members::ListIndexesForMembersError::AccessDeniedException(inner) => {
653                Error::AccessDeniedException(inner)
654            }
655            crate::operation::list_indexes_for_members::ListIndexesForMembersError::InternalServerException(inner) => {
656                Error::InternalServerException(inner)
657            }
658            crate::operation::list_indexes_for_members::ListIndexesForMembersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
659            crate::operation::list_indexes_for_members::ListIndexesForMembersError::ValidationException(inner) => Error::ValidationException(inner),
660            crate::operation::list_indexes_for_members::ListIndexesForMembersError::Unhandled(inner) => Error::Unhandled(inner),
661        }
662    }
663}
664impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_views::ListManagedViewsError, R>> for Error
665where
666    R: Send + Sync + std::fmt::Debug + 'static,
667{
668    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_views::ListManagedViewsError, R>) -> Self {
669        match err {
670            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
671            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
672                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
673                source: err.into(),
674            }),
675        }
676    }
677}
678impl From<crate::operation::list_managed_views::ListManagedViewsError> for Error {
679    fn from(err: crate::operation::list_managed_views::ListManagedViewsError) -> Self {
680        match err {
681            crate::operation::list_managed_views::ListManagedViewsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
682            crate::operation::list_managed_views::ListManagedViewsError::InternalServerException(inner) => Error::InternalServerException(inner),
683            crate::operation::list_managed_views::ListManagedViewsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
684            crate::operation::list_managed_views::ListManagedViewsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
685            crate::operation::list_managed_views::ListManagedViewsError::ValidationException(inner) => Error::ValidationException(inner),
686            crate::operation::list_managed_views::ListManagedViewsError::Unhandled(inner) => Error::Unhandled(inner),
687        }
688    }
689}
690impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resources::ListResourcesError, R>> for Error
691where
692    R: Send + Sync + std::fmt::Debug + 'static,
693{
694    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resources::ListResourcesError, R>) -> Self {
695        match err {
696            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
697            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
698                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
699                source: err.into(),
700            }),
701        }
702    }
703}
704impl From<crate::operation::list_resources::ListResourcesError> for Error {
705    fn from(err: crate::operation::list_resources::ListResourcesError) -> Self {
706        match err {
707            crate::operation::list_resources::ListResourcesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
708            crate::operation::list_resources::ListResourcesError::InternalServerException(inner) => Error::InternalServerException(inner),
709            crate::operation::list_resources::ListResourcesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
710            crate::operation::list_resources::ListResourcesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
711            crate::operation::list_resources::ListResourcesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
712            crate::operation::list_resources::ListResourcesError::ValidationException(inner) => Error::ValidationException(inner),
713            crate::operation::list_resources::ListResourcesError::Unhandled(inner) => Error::Unhandled(inner),
714        }
715    }
716}
717impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_indexes::ListServiceIndexesError, R>> for Error
718where
719    R: Send + Sync + std::fmt::Debug + 'static,
720{
721    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_indexes::ListServiceIndexesError, R>) -> Self {
722        match err {
723            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
724            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
725                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
726                source: err.into(),
727            }),
728        }
729    }
730}
731impl From<crate::operation::list_service_indexes::ListServiceIndexesError> for Error {
732    fn from(err: crate::operation::list_service_indexes::ListServiceIndexesError) -> Self {
733        match err {
734            crate::operation::list_service_indexes::ListServiceIndexesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
735            crate::operation::list_service_indexes::ListServiceIndexesError::InternalServerException(inner) => Error::InternalServerException(inner),
736            crate::operation::list_service_indexes::ListServiceIndexesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
737            crate::operation::list_service_indexes::ListServiceIndexesError::ValidationException(inner) => Error::ValidationException(inner),
738            crate::operation::list_service_indexes::ListServiceIndexesError::Unhandled(inner) => Error::Unhandled(inner),
739        }
740    }
741}
742impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_views::ListServiceViewsError, 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::list_service_views::ListServiceViewsError, 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::list_service_views::ListServiceViewsError> for Error {
757    fn from(err: crate::operation::list_service_views::ListServiceViewsError) -> Self {
758        match err {
759            crate::operation::list_service_views::ListServiceViewsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
760            crate::operation::list_service_views::ListServiceViewsError::InternalServerException(inner) => Error::InternalServerException(inner),
761            crate::operation::list_service_views::ListServiceViewsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
762            crate::operation::list_service_views::ListServiceViewsError::ValidationException(inner) => Error::ValidationException(inner),
763            crate::operation::list_service_views::ListServiceViewsError::Unhandled(inner) => Error::Unhandled(inner),
764        }
765    }
766}
767impl<R>
768    From<
769        ::aws_smithy_runtime_api::client::result::SdkError<
770            crate::operation::list_streaming_access_for_services::ListStreamingAccessForServicesError,
771            R,
772        >,
773    > for Error
774where
775    R: Send + Sync + std::fmt::Debug + 'static,
776{
777    fn from(
778        err: ::aws_smithy_runtime_api::client::result::SdkError<
779            crate::operation::list_streaming_access_for_services::ListStreamingAccessForServicesError,
780            R,
781        >,
782    ) -> Self {
783        match err {
784            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
785            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
786                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
787                source: err.into(),
788            }),
789        }
790    }
791}
792impl From<crate::operation::list_streaming_access_for_services::ListStreamingAccessForServicesError> for Error {
793    fn from(err: crate::operation::list_streaming_access_for_services::ListStreamingAccessForServicesError) -> Self {
794        match err {
795            crate::operation::list_streaming_access_for_services::ListStreamingAccessForServicesError::AccessDeniedException(inner) => {
796                Error::AccessDeniedException(inner)
797            }
798            crate::operation::list_streaming_access_for_services::ListStreamingAccessForServicesError::InternalServerException(inner) => {
799                Error::InternalServerException(inner)
800            }
801            crate::operation::list_streaming_access_for_services::ListStreamingAccessForServicesError::ValidationException(inner) => {
802                Error::ValidationException(inner)
803            }
804            crate::operation::list_streaming_access_for_services::ListStreamingAccessForServicesError::Unhandled(inner) => Error::Unhandled(inner),
805        }
806    }
807}
808impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_supported_resource_types::ListSupportedResourceTypesError, R>>
809    for Error
810where
811    R: Send + Sync + std::fmt::Debug + 'static,
812{
813    fn from(
814        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_supported_resource_types::ListSupportedResourceTypesError, R>,
815    ) -> Self {
816        match err {
817            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
818            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
819                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
820                source: err.into(),
821            }),
822        }
823    }
824}
825impl From<crate::operation::list_supported_resource_types::ListSupportedResourceTypesError> for Error {
826    fn from(err: crate::operation::list_supported_resource_types::ListSupportedResourceTypesError) -> Self {
827        match err {
828            crate::operation::list_supported_resource_types::ListSupportedResourceTypesError::AccessDeniedException(inner) => {
829                Error::AccessDeniedException(inner)
830            }
831            crate::operation::list_supported_resource_types::ListSupportedResourceTypesError::InternalServerException(inner) => {
832                Error::InternalServerException(inner)
833            }
834            crate::operation::list_supported_resource_types::ListSupportedResourceTypesError::ThrottlingException(inner) => {
835                Error::ThrottlingException(inner)
836            }
837            crate::operation::list_supported_resource_types::ListSupportedResourceTypesError::ValidationException(inner) => {
838                Error::ValidationException(inner)
839            }
840            crate::operation::list_supported_resource_types::ListSupportedResourceTypesError::Unhandled(inner) => Error::Unhandled(inner),
841        }
842    }
843}
844impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
845where
846    R: Send + Sync + std::fmt::Debug + 'static,
847{
848    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
849        match err {
850            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
851            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
852                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
853                source: err.into(),
854            }),
855        }
856    }
857}
858impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
859    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
860        match err {
861            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
862            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
863                Error::InternalServerException(inner)
864            }
865            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
866                Error::ResourceNotFoundException(inner)
867            }
868            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
869            crate::operation::list_tags_for_resource::ListTagsForResourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
870            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
871            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
872        }
873    }
874}
875impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_views::ListViewsError, R>> for Error
876where
877    R: Send + Sync + std::fmt::Debug + 'static,
878{
879    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_views::ListViewsError, R>) -> Self {
880        match err {
881            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
882            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
883                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
884                source: err.into(),
885            }),
886        }
887    }
888}
889impl From<crate::operation::list_views::ListViewsError> for Error {
890    fn from(err: crate::operation::list_views::ListViewsError) -> Self {
891        match err {
892            crate::operation::list_views::ListViewsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
893            crate::operation::list_views::ListViewsError::InternalServerException(inner) => Error::InternalServerException(inner),
894            crate::operation::list_views::ListViewsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
895            crate::operation::list_views::ListViewsError::ValidationException(inner) => Error::ValidationException(inner),
896            crate::operation::list_views::ListViewsError::Unhandled(inner) => Error::Unhandled(inner),
897        }
898    }
899}
900impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search::SearchError, R>> for Error
901where
902    R: Send + Sync + std::fmt::Debug + 'static,
903{
904    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search::SearchError, R>) -> Self {
905        match err {
906            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
907            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
908                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
909                source: err.into(),
910            }),
911        }
912    }
913}
914impl From<crate::operation::search::SearchError> for Error {
915    fn from(err: crate::operation::search::SearchError) -> Self {
916        match err {
917            crate::operation::search::SearchError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
918            crate::operation::search::SearchError::InternalServerException(inner) => Error::InternalServerException(inner),
919            crate::operation::search::SearchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
920            crate::operation::search::SearchError::ThrottlingException(inner) => Error::ThrottlingException(inner),
921            crate::operation::search::SearchError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
922            crate::operation::search::SearchError::ValidationException(inner) => Error::ValidationException(inner),
923            crate::operation::search::SearchError::Unhandled(inner) => Error::Unhandled(inner),
924        }
925    }
926}
927impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
928where
929    R: Send + Sync + std::fmt::Debug + 'static,
930{
931    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
932        match err {
933            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
934            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
935                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
936                source: err.into(),
937            }),
938        }
939    }
940}
941impl From<crate::operation::tag_resource::TagResourceError> for Error {
942    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
943        match err {
944            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
945            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
946            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
947            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
948            crate::operation::tag_resource::TagResourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
949            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
950            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
951        }
952    }
953}
954impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
955where
956    R: Send + Sync + std::fmt::Debug + 'static,
957{
958    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
959        match err {
960            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
961            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
962                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
963                source: err.into(),
964            }),
965        }
966    }
967}
968impl From<crate::operation::untag_resource::UntagResourceError> for Error {
969    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
970        match err {
971            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
972            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
973            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
974            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
975            crate::operation::untag_resource::UntagResourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
976            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
977            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
978        }
979    }
980}
981impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_index_type::UpdateIndexTypeError, R>> for Error
982where
983    R: Send + Sync + std::fmt::Debug + 'static,
984{
985    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_index_type::UpdateIndexTypeError, R>) -> Self {
986        match err {
987            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
988            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
989                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
990                source: err.into(),
991            }),
992        }
993    }
994}
995impl From<crate::operation::update_index_type::UpdateIndexTypeError> for Error {
996    fn from(err: crate::operation::update_index_type::UpdateIndexTypeError) -> Self {
997        match err {
998            crate::operation::update_index_type::UpdateIndexTypeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
999            crate::operation::update_index_type::UpdateIndexTypeError::ConflictException(inner) => Error::ConflictException(inner),
1000            crate::operation::update_index_type::UpdateIndexTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
1001            crate::operation::update_index_type::UpdateIndexTypeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1002            crate::operation::update_index_type::UpdateIndexTypeError::ServiceQuotaExceededException(inner) => {
1003                Error::ServiceQuotaExceededException(inner)
1004            }
1005            crate::operation::update_index_type::UpdateIndexTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1006            crate::operation::update_index_type::UpdateIndexTypeError::ValidationException(inner) => Error::ValidationException(inner),
1007            crate::operation::update_index_type::UpdateIndexTypeError::Unhandled(inner) => Error::Unhandled(inner),
1008        }
1009    }
1010}
1011impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_view::UpdateViewError, R>> for Error
1012where
1013    R: Send + Sync + std::fmt::Debug + 'static,
1014{
1015    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_view::UpdateViewError, R>) -> Self {
1016        match err {
1017            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1018            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1019                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1020                source: err.into(),
1021            }),
1022        }
1023    }
1024}
1025impl From<crate::operation::update_view::UpdateViewError> for Error {
1026    fn from(err: crate::operation::update_view::UpdateViewError) -> Self {
1027        match err {
1028            crate::operation::update_view::UpdateViewError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1029            crate::operation::update_view::UpdateViewError::InternalServerException(inner) => Error::InternalServerException(inner),
1030            crate::operation::update_view::UpdateViewError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1031            crate::operation::update_view::UpdateViewError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1032            crate::operation::update_view::UpdateViewError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1033            crate::operation::update_view::UpdateViewError::ValidationException(inner) => Error::ValidationException(inner),
1034            crate::operation::update_view::UpdateViewError::Unhandled(inner) => Error::Unhandled(inner),
1035        }
1036    }
1037}
1038impl ::std::error::Error for Error {
1039    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1040        match self {
1041            Error::AccessDeniedException(inner) => inner.source(),
1042            Error::ConflictException(inner) => inner.source(),
1043            Error::InternalServerException(inner) => inner.source(),
1044            Error::ResourceNotFoundException(inner) => inner.source(),
1045            Error::ServiceQuotaExceededException(inner) => inner.source(),
1046            Error::ThrottlingException(inner) => inner.source(),
1047            Error::UnauthorizedException(inner) => inner.source(),
1048            Error::ValidationException(inner) => inner.source(),
1049            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1050        }
1051    }
1052}
1053impl ::aws_types::request_id::RequestId for Error {
1054    fn request_id(&self) -> Option<&str> {
1055        match self {
1056            Self::AccessDeniedException(e) => e.request_id(),
1057            Self::ConflictException(e) => e.request_id(),
1058            Self::InternalServerException(e) => e.request_id(),
1059            Self::ResourceNotFoundException(e) => e.request_id(),
1060            Self::ServiceQuotaExceededException(e) => e.request_id(),
1061            Self::ThrottlingException(e) => e.request_id(),
1062            Self::UnauthorizedException(e) => e.request_id(),
1063            Self::ValidationException(e) => e.request_id(),
1064            Self::Unhandled(e) => e.meta.request_id(),
1065        }
1066    }
1067}