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