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