aws_sdk_connectcases/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>You do not have sufficient access to perform this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request. See the accompanying error message for details.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>We couldn't process your request because of an issue with the server. Try again later.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>We couldn't find the requested resource. Check that your resources exists and were created in the same Amazon Web Services Region as your request, and try your request again.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The service quota has been exceeded. For a list of service quotas, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html">Amazon Connect Service Quotas</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The rate has been exceeded for this API. Please try again after a few minutes.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>The request isn't valid. Check the syntax and try again.</p>
19    ValidationException(crate::types::error::ValidationException),
20    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
21    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22    variable wildcard pattern and check `.code()`:
23     \
24    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25     \
26    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27    Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31        match self {
32            Error::AccessDeniedException(inner) => inner.fmt(f),
33            Error::ConflictException(inner) => inner.fmt(f),
34            Error::InternalServerException(inner) => inner.fmt(f),
35            Error::ResourceNotFoundException(inner) => inner.fmt(f),
36            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37            Error::ThrottlingException(inner) => inner.fmt(f),
38            Error::ValidationException(inner) => inner.fmt(f),
39            Error::Unhandled(_) => {
40                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41                    write!(f, "unhandled error ({code})")
42                } else {
43                    f.write_str("unhandled error")
44                }
45            }
46        }
47    }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52            source: value.into(),
53            meta: ::std::default::Default::default(),
54        })
55    }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59        match self {
60            Self::AccessDeniedException(inner) => inner.meta(),
61            Self::ConflictException(inner) => inner.meta(),
62            Self::InternalServerException(inner) => inner.meta(),
63            Self::ResourceNotFoundException(inner) => inner.meta(),
64            Self::ServiceQuotaExceededException(inner) => inner.meta(),
65            Self::ThrottlingException(inner) => inner.meta(),
66            Self::ValidationException(inner) => inner.meta(),
67            Self::Unhandled(inner) => &inner.meta,
68        }
69    }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_case_rule::BatchGetCaseRuleError, R>> for Error
72where
73    R: Send + Sync + std::fmt::Debug + 'static,
74{
75    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_case_rule::BatchGetCaseRuleError, R>) -> Self {
76        match err {
77            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
78            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
79                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
80                source: err.into(),
81            }),
82        }
83    }
84}
85impl From<crate::operation::batch_get_case_rule::BatchGetCaseRuleError> for Error {
86    fn from(err: crate::operation::batch_get_case_rule::BatchGetCaseRuleError) -> Self {
87        match err {
88            crate::operation::batch_get_case_rule::BatchGetCaseRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89            crate::operation::batch_get_case_rule::BatchGetCaseRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
90            crate::operation::batch_get_case_rule::BatchGetCaseRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
91            crate::operation::batch_get_case_rule::BatchGetCaseRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
92            crate::operation::batch_get_case_rule::BatchGetCaseRuleError::ValidationException(inner) => Error::ValidationException(inner),
93            crate::operation::batch_get_case_rule::BatchGetCaseRuleError::Unhandled(inner) => Error::Unhandled(inner),
94        }
95    }
96}
97impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_field::BatchGetFieldError, R>> for Error
98where
99    R: Send + Sync + std::fmt::Debug + 'static,
100{
101    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_field::BatchGetFieldError, R>) -> Self {
102        match err {
103            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
104            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
105                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
106                source: err.into(),
107            }),
108        }
109    }
110}
111impl From<crate::operation::batch_get_field::BatchGetFieldError> for Error {
112    fn from(err: crate::operation::batch_get_field::BatchGetFieldError) -> Self {
113        match err {
114            crate::operation::batch_get_field::BatchGetFieldError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
115            crate::operation::batch_get_field::BatchGetFieldError::InternalServerException(inner) => Error::InternalServerException(inner),
116            crate::operation::batch_get_field::BatchGetFieldError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
117            crate::operation::batch_get_field::BatchGetFieldError::ThrottlingException(inner) => Error::ThrottlingException(inner),
118            crate::operation::batch_get_field::BatchGetFieldError::ValidationException(inner) => Error::ValidationException(inner),
119            crate::operation::batch_get_field::BatchGetFieldError::Unhandled(inner) => Error::Unhandled(inner),
120        }
121    }
122}
123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_put_field_options::BatchPutFieldOptionsError, R>> for Error
124where
125    R: Send + Sync + std::fmt::Debug + 'static,
126{
127    fn from(
128        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_put_field_options::BatchPutFieldOptionsError, R>,
129    ) -> Self {
130        match err {
131            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
132            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
133                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
134                source: err.into(),
135            }),
136        }
137    }
138}
139impl From<crate::operation::batch_put_field_options::BatchPutFieldOptionsError> for Error {
140    fn from(err: crate::operation::batch_put_field_options::BatchPutFieldOptionsError) -> Self {
141        match err {
142            crate::operation::batch_put_field_options::BatchPutFieldOptionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
143            crate::operation::batch_put_field_options::BatchPutFieldOptionsError::InternalServerException(inner) => {
144                Error::InternalServerException(inner)
145            }
146            crate::operation::batch_put_field_options::BatchPutFieldOptionsError::ResourceNotFoundException(inner) => {
147                Error::ResourceNotFoundException(inner)
148            }
149            crate::operation::batch_put_field_options::BatchPutFieldOptionsError::ServiceQuotaExceededException(inner) => {
150                Error::ServiceQuotaExceededException(inner)
151            }
152            crate::operation::batch_put_field_options::BatchPutFieldOptionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
153            crate::operation::batch_put_field_options::BatchPutFieldOptionsError::ValidationException(inner) => Error::ValidationException(inner),
154            crate::operation::batch_put_field_options::BatchPutFieldOptionsError::Unhandled(inner) => Error::Unhandled(inner),
155        }
156    }
157}
158impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_case::CreateCaseError, R>> for Error
159where
160    R: Send + Sync + std::fmt::Debug + 'static,
161{
162    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_case::CreateCaseError, R>) -> Self {
163        match err {
164            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
165            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
166                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
167                source: err.into(),
168            }),
169        }
170    }
171}
172impl From<crate::operation::create_case::CreateCaseError> for Error {
173    fn from(err: crate::operation::create_case::CreateCaseError) -> Self {
174        match err {
175            crate::operation::create_case::CreateCaseError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
176            crate::operation::create_case::CreateCaseError::ConflictException(inner) => Error::ConflictException(inner),
177            crate::operation::create_case::CreateCaseError::InternalServerException(inner) => Error::InternalServerException(inner),
178            crate::operation::create_case::CreateCaseError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
179            crate::operation::create_case::CreateCaseError::ThrottlingException(inner) => Error::ThrottlingException(inner),
180            crate::operation::create_case::CreateCaseError::ValidationException(inner) => Error::ValidationException(inner),
181            crate::operation::create_case::CreateCaseError::Unhandled(inner) => Error::Unhandled(inner),
182        }
183    }
184}
185impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_case_rule::CreateCaseRuleError, R>> for Error
186where
187    R: Send + Sync + std::fmt::Debug + 'static,
188{
189    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_case_rule::CreateCaseRuleError, R>) -> Self {
190        match err {
191            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
192            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
193                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
194                source: err.into(),
195            }),
196        }
197    }
198}
199impl From<crate::operation::create_case_rule::CreateCaseRuleError> for Error {
200    fn from(err: crate::operation::create_case_rule::CreateCaseRuleError) -> Self {
201        match err {
202            crate::operation::create_case_rule::CreateCaseRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
203            crate::operation::create_case_rule::CreateCaseRuleError::ConflictException(inner) => Error::ConflictException(inner),
204            crate::operation::create_case_rule::CreateCaseRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
205            crate::operation::create_case_rule::CreateCaseRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
206            crate::operation::create_case_rule::CreateCaseRuleError::ServiceQuotaExceededException(inner) => {
207                Error::ServiceQuotaExceededException(inner)
208            }
209            crate::operation::create_case_rule::CreateCaseRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
210            crate::operation::create_case_rule::CreateCaseRuleError::ValidationException(inner) => Error::ValidationException(inner),
211            crate::operation::create_case_rule::CreateCaseRuleError::Unhandled(inner) => Error::Unhandled(inner),
212        }
213    }
214}
215impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain::CreateDomainError, R>> for Error
216where
217    R: Send + Sync + std::fmt::Debug + 'static,
218{
219    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain::CreateDomainError, R>) -> Self {
220        match err {
221            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
222            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
223                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
224                source: err.into(),
225            }),
226        }
227    }
228}
229impl From<crate::operation::create_domain::CreateDomainError> for Error {
230    fn from(err: crate::operation::create_domain::CreateDomainError) -> Self {
231        match err {
232            crate::operation::create_domain::CreateDomainError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
233            crate::operation::create_domain::CreateDomainError::ConflictException(inner) => Error::ConflictException(inner),
234            crate::operation::create_domain::CreateDomainError::InternalServerException(inner) => Error::InternalServerException(inner),
235            crate::operation::create_domain::CreateDomainError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
236            crate::operation::create_domain::CreateDomainError::ThrottlingException(inner) => Error::ThrottlingException(inner),
237            crate::operation::create_domain::CreateDomainError::ValidationException(inner) => Error::ValidationException(inner),
238            crate::operation::create_domain::CreateDomainError::Unhandled(inner) => Error::Unhandled(inner),
239        }
240    }
241}
242impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_field::CreateFieldError, R>> for Error
243where
244    R: Send + Sync + std::fmt::Debug + 'static,
245{
246    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_field::CreateFieldError, R>) -> Self {
247        match err {
248            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
249            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
250                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
251                source: err.into(),
252            }),
253        }
254    }
255}
256impl From<crate::operation::create_field::CreateFieldError> for Error {
257    fn from(err: crate::operation::create_field::CreateFieldError) -> Self {
258        match err {
259            crate::operation::create_field::CreateFieldError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
260            crate::operation::create_field::CreateFieldError::ConflictException(inner) => Error::ConflictException(inner),
261            crate::operation::create_field::CreateFieldError::InternalServerException(inner) => Error::InternalServerException(inner),
262            crate::operation::create_field::CreateFieldError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
263            crate::operation::create_field::CreateFieldError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
264            crate::operation::create_field::CreateFieldError::ThrottlingException(inner) => Error::ThrottlingException(inner),
265            crate::operation::create_field::CreateFieldError::ValidationException(inner) => Error::ValidationException(inner),
266            crate::operation::create_field::CreateFieldError::Unhandled(inner) => Error::Unhandled(inner),
267        }
268    }
269}
270impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_layout::CreateLayoutError, R>> for Error
271where
272    R: Send + Sync + std::fmt::Debug + 'static,
273{
274    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_layout::CreateLayoutError, R>) -> Self {
275        match err {
276            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
277            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
278                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
279                source: err.into(),
280            }),
281        }
282    }
283}
284impl From<crate::operation::create_layout::CreateLayoutError> for Error {
285    fn from(err: crate::operation::create_layout::CreateLayoutError) -> Self {
286        match err {
287            crate::operation::create_layout::CreateLayoutError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
288            crate::operation::create_layout::CreateLayoutError::ConflictException(inner) => Error::ConflictException(inner),
289            crate::operation::create_layout::CreateLayoutError::InternalServerException(inner) => Error::InternalServerException(inner),
290            crate::operation::create_layout::CreateLayoutError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
291            crate::operation::create_layout::CreateLayoutError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
292            crate::operation::create_layout::CreateLayoutError::ThrottlingException(inner) => Error::ThrottlingException(inner),
293            crate::operation::create_layout::CreateLayoutError::ValidationException(inner) => Error::ValidationException(inner),
294            crate::operation::create_layout::CreateLayoutError::Unhandled(inner) => Error::Unhandled(inner),
295        }
296    }
297}
298impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_related_item::CreateRelatedItemError, R>> for Error
299where
300    R: Send + Sync + std::fmt::Debug + 'static,
301{
302    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_related_item::CreateRelatedItemError, R>) -> Self {
303        match err {
304            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
305            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
306                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
307                source: err.into(),
308            }),
309        }
310    }
311}
312impl From<crate::operation::create_related_item::CreateRelatedItemError> for Error {
313    fn from(err: crate::operation::create_related_item::CreateRelatedItemError) -> Self {
314        match err {
315            crate::operation::create_related_item::CreateRelatedItemError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
316            crate::operation::create_related_item::CreateRelatedItemError::InternalServerException(inner) => Error::InternalServerException(inner),
317            crate::operation::create_related_item::CreateRelatedItemError::ResourceNotFoundException(inner) => {
318                Error::ResourceNotFoundException(inner)
319            }
320            crate::operation::create_related_item::CreateRelatedItemError::ServiceQuotaExceededException(inner) => {
321                Error::ServiceQuotaExceededException(inner)
322            }
323            crate::operation::create_related_item::CreateRelatedItemError::ThrottlingException(inner) => Error::ThrottlingException(inner),
324            crate::operation::create_related_item::CreateRelatedItemError::ValidationException(inner) => Error::ValidationException(inner),
325            crate::operation::create_related_item::CreateRelatedItemError::Unhandled(inner) => Error::Unhandled(inner),
326        }
327    }
328}
329impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template::CreateTemplateError, R>> for Error
330where
331    R: Send + Sync + std::fmt::Debug + 'static,
332{
333    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template::CreateTemplateError, R>) -> 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::create_template::CreateTemplateError> for Error {
344    fn from(err: crate::operation::create_template::CreateTemplateError) -> Self {
345        match err {
346            crate::operation::create_template::CreateTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
347            crate::operation::create_template::CreateTemplateError::ConflictException(inner) => Error::ConflictException(inner),
348            crate::operation::create_template::CreateTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
349            crate::operation::create_template::CreateTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
350            crate::operation::create_template::CreateTemplateError::ServiceQuotaExceededException(inner) => {
351                Error::ServiceQuotaExceededException(inner)
352            }
353            crate::operation::create_template::CreateTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
354            crate::operation::create_template::CreateTemplateError::ValidationException(inner) => Error::ValidationException(inner),
355            crate::operation::create_template::CreateTemplateError::Unhandled(inner) => Error::Unhandled(inner),
356        }
357    }
358}
359impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_case_rule::DeleteCaseRuleError, 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::delete_case_rule::DeleteCaseRuleError, 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::delete_case_rule::DeleteCaseRuleError> for Error {
374    fn from(err: crate::operation::delete_case_rule::DeleteCaseRuleError) -> Self {
375        match err {
376            crate::operation::delete_case_rule::DeleteCaseRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
377            crate::operation::delete_case_rule::DeleteCaseRuleError::ConflictException(inner) => Error::ConflictException(inner),
378            crate::operation::delete_case_rule::DeleteCaseRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
379            crate::operation::delete_case_rule::DeleteCaseRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
380            crate::operation::delete_case_rule::DeleteCaseRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
381            crate::operation::delete_case_rule::DeleteCaseRuleError::Unhandled(inner) => Error::Unhandled(inner),
382        }
383    }
384}
385impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, 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::delete_domain::DeleteDomainError, 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::delete_domain::DeleteDomainError> for Error {
400    fn from(err: crate::operation::delete_domain::DeleteDomainError) -> Self {
401        match err {
402            crate::operation::delete_domain::DeleteDomainError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
403            crate::operation::delete_domain::DeleteDomainError::ConflictException(inner) => Error::ConflictException(inner),
404            crate::operation::delete_domain::DeleteDomainError::InternalServerException(inner) => Error::InternalServerException(inner),
405            crate::operation::delete_domain::DeleteDomainError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
406            crate::operation::delete_domain::DeleteDomainError::ThrottlingException(inner) => Error::ThrottlingException(inner),
407            crate::operation::delete_domain::DeleteDomainError::ValidationException(inner) => Error::ValidationException(inner),
408            crate::operation::delete_domain::DeleteDomainError::Unhandled(inner) => Error::Unhandled(inner),
409        }
410    }
411}
412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_field::DeleteFieldError, R>> for Error
413where
414    R: Send + Sync + std::fmt::Debug + 'static,
415{
416    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_field::DeleteFieldError, R>) -> Self {
417        match err {
418            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
419            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
420                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
421                source: err.into(),
422            }),
423        }
424    }
425}
426impl From<crate::operation::delete_field::DeleteFieldError> for Error {
427    fn from(err: crate::operation::delete_field::DeleteFieldError) -> Self {
428        match err {
429            crate::operation::delete_field::DeleteFieldError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
430            crate::operation::delete_field::DeleteFieldError::ConflictException(inner) => Error::ConflictException(inner),
431            crate::operation::delete_field::DeleteFieldError::InternalServerException(inner) => Error::InternalServerException(inner),
432            crate::operation::delete_field::DeleteFieldError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
433            crate::operation::delete_field::DeleteFieldError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
434            crate::operation::delete_field::DeleteFieldError::ThrottlingException(inner) => Error::ThrottlingException(inner),
435            crate::operation::delete_field::DeleteFieldError::ValidationException(inner) => Error::ValidationException(inner),
436            crate::operation::delete_field::DeleteFieldError::Unhandled(inner) => Error::Unhandled(inner),
437        }
438    }
439}
440impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_layout::DeleteLayoutError, R>> for Error
441where
442    R: Send + Sync + std::fmt::Debug + 'static,
443{
444    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_layout::DeleteLayoutError, R>) -> Self {
445        match err {
446            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
447            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
448                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
449                source: err.into(),
450            }),
451        }
452    }
453}
454impl From<crate::operation::delete_layout::DeleteLayoutError> for Error {
455    fn from(err: crate::operation::delete_layout::DeleteLayoutError) -> Self {
456        match err {
457            crate::operation::delete_layout::DeleteLayoutError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
458            crate::operation::delete_layout::DeleteLayoutError::ConflictException(inner) => Error::ConflictException(inner),
459            crate::operation::delete_layout::DeleteLayoutError::InternalServerException(inner) => Error::InternalServerException(inner),
460            crate::operation::delete_layout::DeleteLayoutError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
461            crate::operation::delete_layout::DeleteLayoutError::ThrottlingException(inner) => Error::ThrottlingException(inner),
462            crate::operation::delete_layout::DeleteLayoutError::ValidationException(inner) => Error::ValidationException(inner),
463            crate::operation::delete_layout::DeleteLayoutError::Unhandled(inner) => Error::Unhandled(inner),
464        }
465    }
466}
467impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template::DeleteTemplateError, R>> for Error
468where
469    R: Send + Sync + std::fmt::Debug + 'static,
470{
471    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template::DeleteTemplateError, R>) -> Self {
472        match err {
473            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
474            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
475                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
476                source: err.into(),
477            }),
478        }
479    }
480}
481impl From<crate::operation::delete_template::DeleteTemplateError> for Error {
482    fn from(err: crate::operation::delete_template::DeleteTemplateError) -> Self {
483        match err {
484            crate::operation::delete_template::DeleteTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
485            crate::operation::delete_template::DeleteTemplateError::ConflictException(inner) => Error::ConflictException(inner),
486            crate::operation::delete_template::DeleteTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
487            crate::operation::delete_template::DeleteTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
488            crate::operation::delete_template::DeleteTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
489            crate::operation::delete_template::DeleteTemplateError::ValidationException(inner) => Error::ValidationException(inner),
490            crate::operation::delete_template::DeleteTemplateError::Unhandled(inner) => Error::Unhandled(inner),
491        }
492    }
493}
494impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_case::GetCaseError, R>> for Error
495where
496    R: Send + Sync + std::fmt::Debug + 'static,
497{
498    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_case::GetCaseError, R>) -> Self {
499        match err {
500            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
501            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
502                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
503                source: err.into(),
504            }),
505        }
506    }
507}
508impl From<crate::operation::get_case::GetCaseError> for Error {
509    fn from(err: crate::operation::get_case::GetCaseError) -> Self {
510        match err {
511            crate::operation::get_case::GetCaseError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
512            crate::operation::get_case::GetCaseError::InternalServerException(inner) => Error::InternalServerException(inner),
513            crate::operation::get_case::GetCaseError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
514            crate::operation::get_case::GetCaseError::ThrottlingException(inner) => Error::ThrottlingException(inner),
515            crate::operation::get_case::GetCaseError::ValidationException(inner) => Error::ValidationException(inner),
516            crate::operation::get_case::GetCaseError::Unhandled(inner) => Error::Unhandled(inner),
517        }
518    }
519}
520impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_case_audit_events::GetCaseAuditEventsError, R>> for Error
521where
522    R: Send + Sync + std::fmt::Debug + 'static,
523{
524    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_case_audit_events::GetCaseAuditEventsError, R>) -> Self {
525        match err {
526            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
527            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
528                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
529                source: err.into(),
530            }),
531        }
532    }
533}
534impl From<crate::operation::get_case_audit_events::GetCaseAuditEventsError> for Error {
535    fn from(err: crate::operation::get_case_audit_events::GetCaseAuditEventsError) -> Self {
536        match err {
537            crate::operation::get_case_audit_events::GetCaseAuditEventsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
538            crate::operation::get_case_audit_events::GetCaseAuditEventsError::InternalServerException(inner) => Error::InternalServerException(inner),
539            crate::operation::get_case_audit_events::GetCaseAuditEventsError::ResourceNotFoundException(inner) => {
540                Error::ResourceNotFoundException(inner)
541            }
542            crate::operation::get_case_audit_events::GetCaseAuditEventsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
543            crate::operation::get_case_audit_events::GetCaseAuditEventsError::ValidationException(inner) => Error::ValidationException(inner),
544            crate::operation::get_case_audit_events::GetCaseAuditEventsError::Unhandled(inner) => Error::Unhandled(inner),
545        }
546    }
547}
548impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_case_event_configuration::GetCaseEventConfigurationError, R>>
549    for Error
550where
551    R: Send + Sync + std::fmt::Debug + 'static,
552{
553    fn from(
554        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_case_event_configuration::GetCaseEventConfigurationError, R>,
555    ) -> Self {
556        match err {
557            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
558            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
559                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
560                source: err.into(),
561            }),
562        }
563    }
564}
565impl From<crate::operation::get_case_event_configuration::GetCaseEventConfigurationError> for Error {
566    fn from(err: crate::operation::get_case_event_configuration::GetCaseEventConfigurationError) -> Self {
567        match err {
568            crate::operation::get_case_event_configuration::GetCaseEventConfigurationError::AccessDeniedException(inner) => {
569                Error::AccessDeniedException(inner)
570            }
571            crate::operation::get_case_event_configuration::GetCaseEventConfigurationError::InternalServerException(inner) => {
572                Error::InternalServerException(inner)
573            }
574            crate::operation::get_case_event_configuration::GetCaseEventConfigurationError::ResourceNotFoundException(inner) => {
575                Error::ResourceNotFoundException(inner)
576            }
577            crate::operation::get_case_event_configuration::GetCaseEventConfigurationError::ThrottlingException(inner) => {
578                Error::ThrottlingException(inner)
579            }
580            crate::operation::get_case_event_configuration::GetCaseEventConfigurationError::ValidationException(inner) => {
581                Error::ValidationException(inner)
582            }
583            crate::operation::get_case_event_configuration::GetCaseEventConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
584        }
585    }
586}
587impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain::GetDomainError, R>> for Error
588where
589    R: Send + Sync + std::fmt::Debug + 'static,
590{
591    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain::GetDomainError, R>) -> Self {
592        match err {
593            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
594            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
595                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
596                source: err.into(),
597            }),
598        }
599    }
600}
601impl From<crate::operation::get_domain::GetDomainError> for Error {
602    fn from(err: crate::operation::get_domain::GetDomainError) -> Self {
603        match err {
604            crate::operation::get_domain::GetDomainError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
605            crate::operation::get_domain::GetDomainError::InternalServerException(inner) => Error::InternalServerException(inner),
606            crate::operation::get_domain::GetDomainError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
607            crate::operation::get_domain::GetDomainError::ThrottlingException(inner) => Error::ThrottlingException(inner),
608            crate::operation::get_domain::GetDomainError::ValidationException(inner) => Error::ValidationException(inner),
609            crate::operation::get_domain::GetDomainError::Unhandled(inner) => Error::Unhandled(inner),
610        }
611    }
612}
613impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_layout::GetLayoutError, R>> for Error
614where
615    R: Send + Sync + std::fmt::Debug + 'static,
616{
617    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_layout::GetLayoutError, R>) -> Self {
618        match err {
619            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
620            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
621                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
622                source: err.into(),
623            }),
624        }
625    }
626}
627impl From<crate::operation::get_layout::GetLayoutError> for Error {
628    fn from(err: crate::operation::get_layout::GetLayoutError) -> Self {
629        match err {
630            crate::operation::get_layout::GetLayoutError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
631            crate::operation::get_layout::GetLayoutError::InternalServerException(inner) => Error::InternalServerException(inner),
632            crate::operation::get_layout::GetLayoutError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
633            crate::operation::get_layout::GetLayoutError::ThrottlingException(inner) => Error::ThrottlingException(inner),
634            crate::operation::get_layout::GetLayoutError::ValidationException(inner) => Error::ValidationException(inner),
635            crate::operation::get_layout::GetLayoutError::Unhandled(inner) => Error::Unhandled(inner),
636        }
637    }
638}
639impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, R>> for Error
640where
641    R: Send + Sync + std::fmt::Debug + 'static,
642{
643    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, R>) -> Self {
644        match err {
645            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
646            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
647                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
648                source: err.into(),
649            }),
650        }
651    }
652}
653impl From<crate::operation::get_template::GetTemplateError> for Error {
654    fn from(err: crate::operation::get_template::GetTemplateError) -> Self {
655        match err {
656            crate::operation::get_template::GetTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
657            crate::operation::get_template::GetTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
658            crate::operation::get_template::GetTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
659            crate::operation::get_template::GetTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
660            crate::operation::get_template::GetTemplateError::ValidationException(inner) => Error::ValidationException(inner),
661            crate::operation::get_template::GetTemplateError::Unhandled(inner) => Error::Unhandled(inner),
662        }
663    }
664}
665impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_case_rules::ListCaseRulesError, R>> for Error
666where
667    R: Send + Sync + std::fmt::Debug + 'static,
668{
669    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_case_rules::ListCaseRulesError, R>) -> Self {
670        match err {
671            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
672            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
673                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
674                source: err.into(),
675            }),
676        }
677    }
678}
679impl From<crate::operation::list_case_rules::ListCaseRulesError> for Error {
680    fn from(err: crate::operation::list_case_rules::ListCaseRulesError) -> Self {
681        match err {
682            crate::operation::list_case_rules::ListCaseRulesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
683            crate::operation::list_case_rules::ListCaseRulesError::InternalServerException(inner) => Error::InternalServerException(inner),
684            crate::operation::list_case_rules::ListCaseRulesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
685            crate::operation::list_case_rules::ListCaseRulesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
686            crate::operation::list_case_rules::ListCaseRulesError::ValidationException(inner) => Error::ValidationException(inner),
687            crate::operation::list_case_rules::ListCaseRulesError::Unhandled(inner) => Error::Unhandled(inner),
688        }
689    }
690}
691impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cases_for_contact::ListCasesForContactError, R>> for Error
692where
693    R: Send + Sync + std::fmt::Debug + 'static,
694{
695    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cases_for_contact::ListCasesForContactError, R>) -> Self {
696        match err {
697            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
698            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
699                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
700                source: err.into(),
701            }),
702        }
703    }
704}
705impl From<crate::operation::list_cases_for_contact::ListCasesForContactError> for Error {
706    fn from(err: crate::operation::list_cases_for_contact::ListCasesForContactError) -> Self {
707        match err {
708            crate::operation::list_cases_for_contact::ListCasesForContactError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
709            crate::operation::list_cases_for_contact::ListCasesForContactError::InternalServerException(inner) => {
710                Error::InternalServerException(inner)
711            }
712            crate::operation::list_cases_for_contact::ListCasesForContactError::ResourceNotFoundException(inner) => {
713                Error::ResourceNotFoundException(inner)
714            }
715            crate::operation::list_cases_for_contact::ListCasesForContactError::ThrottlingException(inner) => Error::ThrottlingException(inner),
716            crate::operation::list_cases_for_contact::ListCasesForContactError::ValidationException(inner) => Error::ValidationException(inner),
717            crate::operation::list_cases_for_contact::ListCasesForContactError::Unhandled(inner) => Error::Unhandled(inner),
718        }
719    }
720}
721impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>> for Error
722where
723    R: Send + Sync + std::fmt::Debug + 'static,
724{
725    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>) -> Self {
726        match err {
727            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
728            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
729                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
730                source: err.into(),
731            }),
732        }
733    }
734}
735impl From<crate::operation::list_domains::ListDomainsError> for Error {
736    fn from(err: crate::operation::list_domains::ListDomainsError) -> Self {
737        match err {
738            crate::operation::list_domains::ListDomainsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
739            crate::operation::list_domains::ListDomainsError::InternalServerException(inner) => Error::InternalServerException(inner),
740            crate::operation::list_domains::ListDomainsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
741            crate::operation::list_domains::ListDomainsError::ValidationException(inner) => Error::ValidationException(inner),
742            crate::operation::list_domains::ListDomainsError::Unhandled(inner) => Error::Unhandled(inner),
743        }
744    }
745}
746impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_field_options::ListFieldOptionsError, R>> for Error
747where
748    R: Send + Sync + std::fmt::Debug + 'static,
749{
750    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_field_options::ListFieldOptionsError, R>) -> Self {
751        match err {
752            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
753            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
754                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
755                source: err.into(),
756            }),
757        }
758    }
759}
760impl From<crate::operation::list_field_options::ListFieldOptionsError> for Error {
761    fn from(err: crate::operation::list_field_options::ListFieldOptionsError) -> Self {
762        match err {
763            crate::operation::list_field_options::ListFieldOptionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
764            crate::operation::list_field_options::ListFieldOptionsError::InternalServerException(inner) => Error::InternalServerException(inner),
765            crate::operation::list_field_options::ListFieldOptionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
766            crate::operation::list_field_options::ListFieldOptionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
767            crate::operation::list_field_options::ListFieldOptionsError::ValidationException(inner) => Error::ValidationException(inner),
768            crate::operation::list_field_options::ListFieldOptionsError::Unhandled(inner) => Error::Unhandled(inner),
769        }
770    }
771}
772impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fields::ListFieldsError, R>> for Error
773where
774    R: Send + Sync + std::fmt::Debug + 'static,
775{
776    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_fields::ListFieldsError, R>) -> Self {
777        match err {
778            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
779            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
780                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
781                source: err.into(),
782            }),
783        }
784    }
785}
786impl From<crate::operation::list_fields::ListFieldsError> for Error {
787    fn from(err: crate::operation::list_fields::ListFieldsError) -> Self {
788        match err {
789            crate::operation::list_fields::ListFieldsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
790            crate::operation::list_fields::ListFieldsError::InternalServerException(inner) => Error::InternalServerException(inner),
791            crate::operation::list_fields::ListFieldsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
792            crate::operation::list_fields::ListFieldsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
793            crate::operation::list_fields::ListFieldsError::ValidationException(inner) => Error::ValidationException(inner),
794            crate::operation::list_fields::ListFieldsError::Unhandled(inner) => Error::Unhandled(inner),
795        }
796    }
797}
798impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_layouts::ListLayoutsError, R>> for Error
799where
800    R: Send + Sync + std::fmt::Debug + 'static,
801{
802    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_layouts::ListLayoutsError, R>) -> Self {
803        match err {
804            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
805            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
806                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
807                source: err.into(),
808            }),
809        }
810    }
811}
812impl From<crate::operation::list_layouts::ListLayoutsError> for Error {
813    fn from(err: crate::operation::list_layouts::ListLayoutsError) -> Self {
814        match err {
815            crate::operation::list_layouts::ListLayoutsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
816            crate::operation::list_layouts::ListLayoutsError::InternalServerException(inner) => Error::InternalServerException(inner),
817            crate::operation::list_layouts::ListLayoutsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
818            crate::operation::list_layouts::ListLayoutsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
819            crate::operation::list_layouts::ListLayoutsError::ValidationException(inner) => Error::ValidationException(inner),
820            crate::operation::list_layouts::ListLayoutsError::Unhandled(inner) => Error::Unhandled(inner),
821        }
822    }
823}
824impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
825where
826    R: Send + Sync + std::fmt::Debug + 'static,
827{
828    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
829        match err {
830            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
831            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
832                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
833                source: err.into(),
834            }),
835        }
836    }
837}
838impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
839    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
840        match err {
841            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
842            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
843                Error::InternalServerException(inner)
844            }
845            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
846                Error::ResourceNotFoundException(inner)
847            }
848            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
849            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
850            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
851        }
852    }
853}
854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_templates::ListTemplatesError, R>> for Error
855where
856    R: Send + Sync + std::fmt::Debug + 'static,
857{
858    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_templates::ListTemplatesError, R>) -> Self {
859        match err {
860            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
861            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
862                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
863                source: err.into(),
864            }),
865        }
866    }
867}
868impl From<crate::operation::list_templates::ListTemplatesError> for Error {
869    fn from(err: crate::operation::list_templates::ListTemplatesError) -> Self {
870        match err {
871            crate::operation::list_templates::ListTemplatesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
872            crate::operation::list_templates::ListTemplatesError::InternalServerException(inner) => Error::InternalServerException(inner),
873            crate::operation::list_templates::ListTemplatesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
874            crate::operation::list_templates::ListTemplatesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
875            crate::operation::list_templates::ListTemplatesError::ValidationException(inner) => Error::ValidationException(inner),
876            crate::operation::list_templates::ListTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
877        }
878    }
879}
880impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_case_event_configuration::PutCaseEventConfigurationError, R>>
881    for Error
882where
883    R: Send + Sync + std::fmt::Debug + 'static,
884{
885    fn from(
886        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_case_event_configuration::PutCaseEventConfigurationError, R>,
887    ) -> Self {
888        match err {
889            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
890            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
891                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
892                source: err.into(),
893            }),
894        }
895    }
896}
897impl From<crate::operation::put_case_event_configuration::PutCaseEventConfigurationError> for Error {
898    fn from(err: crate::operation::put_case_event_configuration::PutCaseEventConfigurationError) -> Self {
899        match err {
900            crate::operation::put_case_event_configuration::PutCaseEventConfigurationError::AccessDeniedException(inner) => {
901                Error::AccessDeniedException(inner)
902            }
903            crate::operation::put_case_event_configuration::PutCaseEventConfigurationError::ConflictException(inner) => {
904                Error::ConflictException(inner)
905            }
906            crate::operation::put_case_event_configuration::PutCaseEventConfigurationError::InternalServerException(inner) => {
907                Error::InternalServerException(inner)
908            }
909            crate::operation::put_case_event_configuration::PutCaseEventConfigurationError::ResourceNotFoundException(inner) => {
910                Error::ResourceNotFoundException(inner)
911            }
912            crate::operation::put_case_event_configuration::PutCaseEventConfigurationError::ThrottlingException(inner) => {
913                Error::ThrottlingException(inner)
914            }
915            crate::operation::put_case_event_configuration::PutCaseEventConfigurationError::ValidationException(inner) => {
916                Error::ValidationException(inner)
917            }
918            crate::operation::put_case_event_configuration::PutCaseEventConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
919        }
920    }
921}
922impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_cases::SearchCasesError, R>> for Error
923where
924    R: Send + Sync + std::fmt::Debug + 'static,
925{
926    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_cases::SearchCasesError, R>) -> Self {
927        match err {
928            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
929            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
930                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
931                source: err.into(),
932            }),
933        }
934    }
935}
936impl From<crate::operation::search_cases::SearchCasesError> for Error {
937    fn from(err: crate::operation::search_cases::SearchCasesError) -> Self {
938        match err {
939            crate::operation::search_cases::SearchCasesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
940            crate::operation::search_cases::SearchCasesError::InternalServerException(inner) => Error::InternalServerException(inner),
941            crate::operation::search_cases::SearchCasesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
942            crate::operation::search_cases::SearchCasesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
943            crate::operation::search_cases::SearchCasesError::ValidationException(inner) => Error::ValidationException(inner),
944            crate::operation::search_cases::SearchCasesError::Unhandled(inner) => Error::Unhandled(inner),
945        }
946    }
947}
948impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_related_items::SearchRelatedItemsError, R>> for Error
949where
950    R: Send + Sync + std::fmt::Debug + 'static,
951{
952    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_related_items::SearchRelatedItemsError, R>) -> Self {
953        match err {
954            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
955            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
956                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
957                source: err.into(),
958            }),
959        }
960    }
961}
962impl From<crate::operation::search_related_items::SearchRelatedItemsError> for Error {
963    fn from(err: crate::operation::search_related_items::SearchRelatedItemsError) -> Self {
964        match err {
965            crate::operation::search_related_items::SearchRelatedItemsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
966            crate::operation::search_related_items::SearchRelatedItemsError::InternalServerException(inner) => Error::InternalServerException(inner),
967            crate::operation::search_related_items::SearchRelatedItemsError::ResourceNotFoundException(inner) => {
968                Error::ResourceNotFoundException(inner)
969            }
970            crate::operation::search_related_items::SearchRelatedItemsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
971            crate::operation::search_related_items::SearchRelatedItemsError::ValidationException(inner) => Error::ValidationException(inner),
972            crate::operation::search_related_items::SearchRelatedItemsError::Unhandled(inner) => Error::Unhandled(inner),
973        }
974    }
975}
976impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
977where
978    R: Send + Sync + std::fmt::Debug + 'static,
979{
980    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
981        match err {
982            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
983            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
984                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
985                source: err.into(),
986            }),
987        }
988    }
989}
990impl From<crate::operation::tag_resource::TagResourceError> for Error {
991    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
992        match err {
993            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
994            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
995            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
996            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
997            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
998            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
999        }
1000    }
1001}
1002impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1003where
1004    R: Send + Sync + std::fmt::Debug + 'static,
1005{
1006    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1007        match err {
1008            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1009            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1010                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1011                source: err.into(),
1012            }),
1013        }
1014    }
1015}
1016impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1017    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1018        match err {
1019            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1020            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1021            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1022            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1023            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1024            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1025        }
1026    }
1027}
1028impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_case::UpdateCaseError, R>> for Error
1029where
1030    R: Send + Sync + std::fmt::Debug + 'static,
1031{
1032    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_case::UpdateCaseError, R>) -> Self {
1033        match err {
1034            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1035            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1036                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1037                source: err.into(),
1038            }),
1039        }
1040    }
1041}
1042impl From<crate::operation::update_case::UpdateCaseError> for Error {
1043    fn from(err: crate::operation::update_case::UpdateCaseError) -> Self {
1044        match err {
1045            crate::operation::update_case::UpdateCaseError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1046            crate::operation::update_case::UpdateCaseError::InternalServerException(inner) => Error::InternalServerException(inner),
1047            crate::operation::update_case::UpdateCaseError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1048            crate::operation::update_case::UpdateCaseError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1049            crate::operation::update_case::UpdateCaseError::ValidationException(inner) => Error::ValidationException(inner),
1050            crate::operation::update_case::UpdateCaseError::Unhandled(inner) => Error::Unhandled(inner),
1051        }
1052    }
1053}
1054impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_case_rule::UpdateCaseRuleError, R>> for Error
1055where
1056    R: Send + Sync + std::fmt::Debug + 'static,
1057{
1058    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_case_rule::UpdateCaseRuleError, R>) -> Self {
1059        match err {
1060            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1061            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1062                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1063                source: err.into(),
1064            }),
1065        }
1066    }
1067}
1068impl From<crate::operation::update_case_rule::UpdateCaseRuleError> for Error {
1069    fn from(err: crate::operation::update_case_rule::UpdateCaseRuleError) -> Self {
1070        match err {
1071            crate::operation::update_case_rule::UpdateCaseRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1072            crate::operation::update_case_rule::UpdateCaseRuleError::ConflictException(inner) => Error::ConflictException(inner),
1073            crate::operation::update_case_rule::UpdateCaseRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
1074            crate::operation::update_case_rule::UpdateCaseRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1075            crate::operation::update_case_rule::UpdateCaseRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1076            crate::operation::update_case_rule::UpdateCaseRuleError::ValidationException(inner) => Error::ValidationException(inner),
1077            crate::operation::update_case_rule::UpdateCaseRuleError::Unhandled(inner) => Error::Unhandled(inner),
1078        }
1079    }
1080}
1081impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_field::UpdateFieldError, R>> for Error
1082where
1083    R: Send + Sync + std::fmt::Debug + 'static,
1084{
1085    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_field::UpdateFieldError, R>) -> Self {
1086        match err {
1087            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1088            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1089                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1090                source: err.into(),
1091            }),
1092        }
1093    }
1094}
1095impl From<crate::operation::update_field::UpdateFieldError> for Error {
1096    fn from(err: crate::operation::update_field::UpdateFieldError) -> Self {
1097        match err {
1098            crate::operation::update_field::UpdateFieldError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1099            crate::operation::update_field::UpdateFieldError::ConflictException(inner) => Error::ConflictException(inner),
1100            crate::operation::update_field::UpdateFieldError::InternalServerException(inner) => Error::InternalServerException(inner),
1101            crate::operation::update_field::UpdateFieldError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1102            crate::operation::update_field::UpdateFieldError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1103            crate::operation::update_field::UpdateFieldError::ValidationException(inner) => Error::ValidationException(inner),
1104            crate::operation::update_field::UpdateFieldError::Unhandled(inner) => Error::Unhandled(inner),
1105        }
1106    }
1107}
1108impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_layout::UpdateLayoutError, R>> for Error
1109where
1110    R: Send + Sync + std::fmt::Debug + 'static,
1111{
1112    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_layout::UpdateLayoutError, R>) -> Self {
1113        match err {
1114            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1115            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1116                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1117                source: err.into(),
1118            }),
1119        }
1120    }
1121}
1122impl From<crate::operation::update_layout::UpdateLayoutError> for Error {
1123    fn from(err: crate::operation::update_layout::UpdateLayoutError) -> Self {
1124        match err {
1125            crate::operation::update_layout::UpdateLayoutError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1126            crate::operation::update_layout::UpdateLayoutError::ConflictException(inner) => Error::ConflictException(inner),
1127            crate::operation::update_layout::UpdateLayoutError::InternalServerException(inner) => Error::InternalServerException(inner),
1128            crate::operation::update_layout::UpdateLayoutError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1129            crate::operation::update_layout::UpdateLayoutError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1130            crate::operation::update_layout::UpdateLayoutError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1131            crate::operation::update_layout::UpdateLayoutError::ValidationException(inner) => Error::ValidationException(inner),
1132            crate::operation::update_layout::UpdateLayoutError::Unhandled(inner) => Error::Unhandled(inner),
1133        }
1134    }
1135}
1136impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template::UpdateTemplateError, R>> for Error
1137where
1138    R: Send + Sync + std::fmt::Debug + 'static,
1139{
1140    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template::UpdateTemplateError, R>) -> Self {
1141        match err {
1142            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1143            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1144                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1145                source: err.into(),
1146            }),
1147        }
1148    }
1149}
1150impl From<crate::operation::update_template::UpdateTemplateError> for Error {
1151    fn from(err: crate::operation::update_template::UpdateTemplateError) -> Self {
1152        match err {
1153            crate::operation::update_template::UpdateTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1154            crate::operation::update_template::UpdateTemplateError::ConflictException(inner) => Error::ConflictException(inner),
1155            crate::operation::update_template::UpdateTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
1156            crate::operation::update_template::UpdateTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1157            crate::operation::update_template::UpdateTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1158            crate::operation::update_template::UpdateTemplateError::ValidationException(inner) => Error::ValidationException(inner),
1159            crate::operation::update_template::UpdateTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1160        }
1161    }
1162}
1163impl ::std::error::Error for Error {
1164    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1165        match self {
1166            Error::AccessDeniedException(inner) => inner.source(),
1167            Error::ConflictException(inner) => inner.source(),
1168            Error::InternalServerException(inner) => inner.source(),
1169            Error::ResourceNotFoundException(inner) => inner.source(),
1170            Error::ServiceQuotaExceededException(inner) => inner.source(),
1171            Error::ThrottlingException(inner) => inner.source(),
1172            Error::ValidationException(inner) => inner.source(),
1173            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1174        }
1175    }
1176}
1177impl ::aws_types::request_id::RequestId for Error {
1178    fn request_id(&self) -> Option<&str> {
1179        match self {
1180            Self::AccessDeniedException(e) => e.request_id(),
1181            Self::ConflictException(e) => e.request_id(),
1182            Self::InternalServerException(e) => e.request_id(),
1183            Self::ResourceNotFoundException(e) => e.request_id(),
1184            Self::ServiceQuotaExceededException(e) => e.request_id(),
1185            Self::ThrottlingException(e) => e.request_id(),
1186            Self::ValidationException(e) => e.request_id(),
1187            Self::Unhandled(e) => e.meta.request_id(),
1188        }
1189    }
1190}