aws_sdk_codestarconnections/
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>Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time.</p>
9    ConcurrentModificationException(crate::types::error::ConcurrentModificationException),
10    /// <p>The conditional check failed. Try again later.</p>
11    ConditionalCheckFailedException(crate::types::error::ConditionalCheckFailedException),
12    /// <p>Two conflicting operations have been made on the same resource.</p>
13    ConflictException(crate::types::error::ConflictException),
14    /// <p>Received an internal server exception. Try again later.</p>
15    InternalServerException(crate::types::error::InternalServerException),
16    /// <p>The input is not valid. Verify that the action is typed correctly.</p>
17    InvalidInputException(crate::types::error::InvalidInputException),
18    /// <p>Exceeded the maximum limit for connections.</p>
19    LimitExceededException(crate::types::error::LimitExceededException),
20    /// <p>Unable to create resource. Resource already exists.</p>
21    ResourceAlreadyExistsException(crate::types::error::ResourceAlreadyExistsException),
22    /// <p>Resource not found. Verify the connection resource ARN and try again.</p>
23    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
24    /// <p>Resource not found. Verify the ARN for the host resource and try again.</p>
25    ResourceUnavailableException(crate::types::error::ResourceUnavailableException),
26    /// <p>Retrying the latest commit failed. Try again later.</p>
27    RetryLatestCommitFailedException(crate::types::error::RetryLatestCommitFailedException),
28    /// <p>Unable to continue. The sync blocker does not exist.</p>
29    SyncBlockerDoesNotExistException(crate::types::error::SyncBlockerDoesNotExistException),
30    /// <p>Unable to continue. The sync blocker still exists.</p>
31    SyncConfigurationStillExistsException(crate::types::error::SyncConfigurationStillExistsException),
32    /// <p>The request was denied due to request throttling.</p>
33    ThrottlingException(crate::types::error::ThrottlingException),
34    /// <p>The operation is not supported. Check the connection status and try again.</p>
35    UnsupportedOperationException(crate::types::error::UnsupportedOperationException),
36    /// <p>The specified provider type is not supported for connections.</p>
37    UnsupportedProviderTypeException(crate::types::error::UnsupportedProviderTypeException),
38    /// <p>The update is out of sync. Try syncing again.</p>
39    UpdateOutOfSyncException(crate::types::error::UpdateOutOfSyncException),
40    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
41    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
42    variable wildcard pattern and check `.code()`:
43     \
44    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
45     \
46    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
47    Unhandled(crate::error::sealed_unhandled::Unhandled),
48}
49impl ::std::fmt::Display for Error {
50    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
51        match self {
52            Error::AccessDeniedException(inner) => inner.fmt(f),
53            Error::ConcurrentModificationException(inner) => inner.fmt(f),
54            Error::ConditionalCheckFailedException(inner) => inner.fmt(f),
55            Error::ConflictException(inner) => inner.fmt(f),
56            Error::InternalServerException(inner) => inner.fmt(f),
57            Error::InvalidInputException(inner) => inner.fmt(f),
58            Error::LimitExceededException(inner) => inner.fmt(f),
59            Error::ResourceAlreadyExistsException(inner) => inner.fmt(f),
60            Error::ResourceNotFoundException(inner) => inner.fmt(f),
61            Error::ResourceUnavailableException(inner) => inner.fmt(f),
62            Error::RetryLatestCommitFailedException(inner) => inner.fmt(f),
63            Error::SyncBlockerDoesNotExistException(inner) => inner.fmt(f),
64            Error::SyncConfigurationStillExistsException(inner) => inner.fmt(f),
65            Error::ThrottlingException(inner) => inner.fmt(f),
66            Error::UnsupportedOperationException(inner) => inner.fmt(f),
67            Error::UnsupportedProviderTypeException(inner) => inner.fmt(f),
68            Error::UpdateOutOfSyncException(inner) => inner.fmt(f),
69            Error::Unhandled(_) => {
70                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
71                    write!(f, "unhandled error ({code})")
72                } else {
73                    f.write_str("unhandled error")
74                }
75            }
76        }
77    }
78}
79impl From<::aws_smithy_types::error::operation::BuildError> for Error {
80    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
81        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
82            source: value.into(),
83            meta: ::std::default::Default::default(),
84        })
85    }
86}
87impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
88    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
89        match self {
90            Self::AccessDeniedException(inner) => inner.meta(),
91            Self::ConcurrentModificationException(inner) => inner.meta(),
92            Self::ConditionalCheckFailedException(inner) => inner.meta(),
93            Self::ConflictException(inner) => inner.meta(),
94            Self::InternalServerException(inner) => inner.meta(),
95            Self::InvalidInputException(inner) => inner.meta(),
96            Self::LimitExceededException(inner) => inner.meta(),
97            Self::ResourceAlreadyExistsException(inner) => inner.meta(),
98            Self::ResourceNotFoundException(inner) => inner.meta(),
99            Self::ResourceUnavailableException(inner) => inner.meta(),
100            Self::RetryLatestCommitFailedException(inner) => inner.meta(),
101            Self::SyncBlockerDoesNotExistException(inner) => inner.meta(),
102            Self::SyncConfigurationStillExistsException(inner) => inner.meta(),
103            Self::ThrottlingException(inner) => inner.meta(),
104            Self::UnsupportedOperationException(inner) => inner.meta(),
105            Self::UnsupportedProviderTypeException(inner) => inner.meta(),
106            Self::UpdateOutOfSyncException(inner) => inner.meta(),
107            Self::Unhandled(inner) => &inner.meta,
108        }
109    }
110}
111impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>> for Error
112where
113    R: Send + Sync + std::fmt::Debug + 'static,
114{
115    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>) -> 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_connection::CreateConnectionError> for Error {
126    fn from(err: crate::operation::create_connection::CreateConnectionError) -> Self {
127        match err {
128            crate::operation::create_connection::CreateConnectionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
129            crate::operation::create_connection::CreateConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
130            crate::operation::create_connection::CreateConnectionError::ResourceUnavailableException(inner) => {
131                Error::ResourceUnavailableException(inner)
132            }
133            crate::operation::create_connection::CreateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
134        }
135    }
136}
137impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_host::CreateHostError, R>> for Error
138where
139    R: Send + Sync + std::fmt::Debug + 'static,
140{
141    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_host::CreateHostError, R>) -> Self {
142        match err {
143            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
144            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
145                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
146                source: err.into(),
147            }),
148        }
149    }
150}
151impl From<crate::operation::create_host::CreateHostError> for Error {
152    fn from(err: crate::operation::create_host::CreateHostError) -> Self {
153        match err {
154            crate::operation::create_host::CreateHostError::LimitExceededException(inner) => Error::LimitExceededException(inner),
155            crate::operation::create_host::CreateHostError::Unhandled(inner) => Error::Unhandled(inner),
156        }
157    }
158}
159impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_repository_link::CreateRepositoryLinkError, R>> for Error
160where
161    R: Send + Sync + std::fmt::Debug + 'static,
162{
163    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_repository_link::CreateRepositoryLinkError, R>) -> Self {
164        match err {
165            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
166            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
167                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
168                source: err.into(),
169            }),
170        }
171    }
172}
173impl From<crate::operation::create_repository_link::CreateRepositoryLinkError> for Error {
174    fn from(err: crate::operation::create_repository_link::CreateRepositoryLinkError) -> Self {
175        match err {
176            crate::operation::create_repository_link::CreateRepositoryLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
177            crate::operation::create_repository_link::CreateRepositoryLinkError::ConcurrentModificationException(inner) => {
178                Error::ConcurrentModificationException(inner)
179            }
180            crate::operation::create_repository_link::CreateRepositoryLinkError::InternalServerException(inner) => {
181                Error::InternalServerException(inner)
182            }
183            crate::operation::create_repository_link::CreateRepositoryLinkError::InvalidInputException(inner) => Error::InvalidInputException(inner),
184            crate::operation::create_repository_link::CreateRepositoryLinkError::LimitExceededException(inner) => {
185                Error::LimitExceededException(inner)
186            }
187            crate::operation::create_repository_link::CreateRepositoryLinkError::ResourceAlreadyExistsException(inner) => {
188                Error::ResourceAlreadyExistsException(inner)
189            }
190            crate::operation::create_repository_link::CreateRepositoryLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
191            crate::operation::create_repository_link::CreateRepositoryLinkError::Unhandled(inner) => Error::Unhandled(inner),
192        }
193    }
194}
195impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_sync_configuration::CreateSyncConfigurationError, R>>
196    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_sync_configuration::CreateSyncConfigurationError, 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_sync_configuration::CreateSyncConfigurationError> for Error {
213    fn from(err: crate::operation::create_sync_configuration::CreateSyncConfigurationError) -> Self {
214        match err {
215            crate::operation::create_sync_configuration::CreateSyncConfigurationError::AccessDeniedException(inner) => {
216                Error::AccessDeniedException(inner)
217            }
218            crate::operation::create_sync_configuration::CreateSyncConfigurationError::ConcurrentModificationException(inner) => {
219                Error::ConcurrentModificationException(inner)
220            }
221            crate::operation::create_sync_configuration::CreateSyncConfigurationError::InternalServerException(inner) => {
222                Error::InternalServerException(inner)
223            }
224            crate::operation::create_sync_configuration::CreateSyncConfigurationError::InvalidInputException(inner) => {
225                Error::InvalidInputException(inner)
226            }
227            crate::operation::create_sync_configuration::CreateSyncConfigurationError::LimitExceededException(inner) => {
228                Error::LimitExceededException(inner)
229            }
230            crate::operation::create_sync_configuration::CreateSyncConfigurationError::ResourceAlreadyExistsException(inner) => {
231                Error::ResourceAlreadyExistsException(inner)
232            }
233            crate::operation::create_sync_configuration::CreateSyncConfigurationError::ThrottlingException(inner) => {
234                Error::ThrottlingException(inner)
235            }
236            crate::operation::create_sync_configuration::CreateSyncConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
237        }
238    }
239}
240impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>> for Error
241where
242    R: Send + Sync + std::fmt::Debug + 'static,
243{
244    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>) -> Self {
245        match err {
246            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
247            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
248                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
249                source: err.into(),
250            }),
251        }
252    }
253}
254impl From<crate::operation::delete_connection::DeleteConnectionError> for Error {
255    fn from(err: crate::operation::delete_connection::DeleteConnectionError) -> Self {
256        match err {
257            crate::operation::delete_connection::DeleteConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
258            crate::operation::delete_connection::DeleteConnectionError::Unhandled(inner) => Error::Unhandled(inner),
259        }
260    }
261}
262impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_host::DeleteHostError, R>> for Error
263where
264    R: Send + Sync + std::fmt::Debug + 'static,
265{
266    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_host::DeleteHostError, R>) -> Self {
267        match err {
268            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
269            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
270                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
271                source: err.into(),
272            }),
273        }
274    }
275}
276impl From<crate::operation::delete_host::DeleteHostError> for Error {
277    fn from(err: crate::operation::delete_host::DeleteHostError) -> Self {
278        match err {
279            crate::operation::delete_host::DeleteHostError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
280            crate::operation::delete_host::DeleteHostError::ResourceUnavailableException(inner) => Error::ResourceUnavailableException(inner),
281            crate::operation::delete_host::DeleteHostError::Unhandled(inner) => Error::Unhandled(inner),
282        }
283    }
284}
285impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_repository_link::DeleteRepositoryLinkError, R>> for Error
286where
287    R: Send + Sync + std::fmt::Debug + 'static,
288{
289    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_repository_link::DeleteRepositoryLinkError, R>) -> Self {
290        match err {
291            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
292            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
293                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
294                source: err.into(),
295            }),
296        }
297    }
298}
299impl From<crate::operation::delete_repository_link::DeleteRepositoryLinkError> for Error {
300    fn from(err: crate::operation::delete_repository_link::DeleteRepositoryLinkError) -> Self {
301        match err {
302            crate::operation::delete_repository_link::DeleteRepositoryLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
303            crate::operation::delete_repository_link::DeleteRepositoryLinkError::ConcurrentModificationException(inner) => {
304                Error::ConcurrentModificationException(inner)
305            }
306            crate::operation::delete_repository_link::DeleteRepositoryLinkError::InternalServerException(inner) => {
307                Error::InternalServerException(inner)
308            }
309            crate::operation::delete_repository_link::DeleteRepositoryLinkError::InvalidInputException(inner) => Error::InvalidInputException(inner),
310            crate::operation::delete_repository_link::DeleteRepositoryLinkError::ResourceNotFoundException(inner) => {
311                Error::ResourceNotFoundException(inner)
312            }
313            crate::operation::delete_repository_link::DeleteRepositoryLinkError::SyncConfigurationStillExistsException(inner) => {
314                Error::SyncConfigurationStillExistsException(inner)
315            }
316            crate::operation::delete_repository_link::DeleteRepositoryLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
317            crate::operation::delete_repository_link::DeleteRepositoryLinkError::UnsupportedProviderTypeException(inner) => {
318                Error::UnsupportedProviderTypeException(inner)
319            }
320            crate::operation::delete_repository_link::DeleteRepositoryLinkError::Unhandled(inner) => Error::Unhandled(inner),
321        }
322    }
323}
324impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_sync_configuration::DeleteSyncConfigurationError, R>>
325    for Error
326where
327    R: Send + Sync + std::fmt::Debug + 'static,
328{
329    fn from(
330        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_sync_configuration::DeleteSyncConfigurationError, R>,
331    ) -> Self {
332        match err {
333            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
334            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
335                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
336                source: err.into(),
337            }),
338        }
339    }
340}
341impl From<crate::operation::delete_sync_configuration::DeleteSyncConfigurationError> for Error {
342    fn from(err: crate::operation::delete_sync_configuration::DeleteSyncConfigurationError) -> Self {
343        match err {
344            crate::operation::delete_sync_configuration::DeleteSyncConfigurationError::AccessDeniedException(inner) => {
345                Error::AccessDeniedException(inner)
346            }
347            crate::operation::delete_sync_configuration::DeleteSyncConfigurationError::ConcurrentModificationException(inner) => {
348                Error::ConcurrentModificationException(inner)
349            }
350            crate::operation::delete_sync_configuration::DeleteSyncConfigurationError::InternalServerException(inner) => {
351                Error::InternalServerException(inner)
352            }
353            crate::operation::delete_sync_configuration::DeleteSyncConfigurationError::InvalidInputException(inner) => {
354                Error::InvalidInputException(inner)
355            }
356            crate::operation::delete_sync_configuration::DeleteSyncConfigurationError::LimitExceededException(inner) => {
357                Error::LimitExceededException(inner)
358            }
359            crate::operation::delete_sync_configuration::DeleteSyncConfigurationError::ThrottlingException(inner) => {
360                Error::ThrottlingException(inner)
361            }
362            crate::operation::delete_sync_configuration::DeleteSyncConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
363        }
364    }
365}
366impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connection::GetConnectionError, R>> for Error
367where
368    R: Send + Sync + std::fmt::Debug + 'static,
369{
370    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connection::GetConnectionError, R>) -> Self {
371        match err {
372            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
373            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
374                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
375                source: err.into(),
376            }),
377        }
378    }
379}
380impl From<crate::operation::get_connection::GetConnectionError> for Error {
381    fn from(err: crate::operation::get_connection::GetConnectionError) -> Self {
382        match err {
383            crate::operation::get_connection::GetConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
384            crate::operation::get_connection::GetConnectionError::ResourceUnavailableException(inner) => Error::ResourceUnavailableException(inner),
385            crate::operation::get_connection::GetConnectionError::Unhandled(inner) => Error::Unhandled(inner),
386        }
387    }
388}
389impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_host::GetHostError, R>> for Error
390where
391    R: Send + Sync + std::fmt::Debug + 'static,
392{
393    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_host::GetHostError, R>) -> Self {
394        match err {
395            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
396            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
397                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
398                source: err.into(),
399            }),
400        }
401    }
402}
403impl From<crate::operation::get_host::GetHostError> for Error {
404    fn from(err: crate::operation::get_host::GetHostError) -> Self {
405        match err {
406            crate::operation::get_host::GetHostError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
407            crate::operation::get_host::GetHostError::ResourceUnavailableException(inner) => Error::ResourceUnavailableException(inner),
408            crate::operation::get_host::GetHostError::Unhandled(inner) => Error::Unhandled(inner),
409        }
410    }
411}
412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_repository_link::GetRepositoryLinkError, R>> for Error
413where
414    R: Send + Sync + std::fmt::Debug + 'static,
415{
416    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_repository_link::GetRepositoryLinkError, R>) -> Self {
417        match err {
418            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
419            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
420                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
421                source: err.into(),
422            }),
423        }
424    }
425}
426impl From<crate::operation::get_repository_link::GetRepositoryLinkError> for Error {
427    fn from(err: crate::operation::get_repository_link::GetRepositoryLinkError) -> Self {
428        match err {
429            crate::operation::get_repository_link::GetRepositoryLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
430            crate::operation::get_repository_link::GetRepositoryLinkError::ConcurrentModificationException(inner) => {
431                Error::ConcurrentModificationException(inner)
432            }
433            crate::operation::get_repository_link::GetRepositoryLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
434            crate::operation::get_repository_link::GetRepositoryLinkError::InvalidInputException(inner) => Error::InvalidInputException(inner),
435            crate::operation::get_repository_link::GetRepositoryLinkError::ResourceNotFoundException(inner) => {
436                Error::ResourceNotFoundException(inner)
437            }
438            crate::operation::get_repository_link::GetRepositoryLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
439            crate::operation::get_repository_link::GetRepositoryLinkError::Unhandled(inner) => Error::Unhandled(inner),
440        }
441    }
442}
443impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_repository_sync_status::GetRepositorySyncStatusError, R>>
444    for Error
445where
446    R: Send + Sync + std::fmt::Debug + 'static,
447{
448    fn from(
449        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_repository_sync_status::GetRepositorySyncStatusError, R>,
450    ) -> Self {
451        match err {
452            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
453            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
454                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
455                source: err.into(),
456            }),
457        }
458    }
459}
460impl From<crate::operation::get_repository_sync_status::GetRepositorySyncStatusError> for Error {
461    fn from(err: crate::operation::get_repository_sync_status::GetRepositorySyncStatusError) -> Self {
462        match err {
463            crate::operation::get_repository_sync_status::GetRepositorySyncStatusError::AccessDeniedException(inner) => {
464                Error::AccessDeniedException(inner)
465            }
466            crate::operation::get_repository_sync_status::GetRepositorySyncStatusError::InternalServerException(inner) => {
467                Error::InternalServerException(inner)
468            }
469            crate::operation::get_repository_sync_status::GetRepositorySyncStatusError::InvalidInputException(inner) => {
470                Error::InvalidInputException(inner)
471            }
472            crate::operation::get_repository_sync_status::GetRepositorySyncStatusError::ResourceNotFoundException(inner) => {
473                Error::ResourceNotFoundException(inner)
474            }
475            crate::operation::get_repository_sync_status::GetRepositorySyncStatusError::ThrottlingException(inner) => {
476                Error::ThrottlingException(inner)
477            }
478            crate::operation::get_repository_sync_status::GetRepositorySyncStatusError::Unhandled(inner) => Error::Unhandled(inner),
479        }
480    }
481}
482impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_sync_status::GetResourceSyncStatusError, R>> for Error
483where
484    R: Send + Sync + std::fmt::Debug + 'static,
485{
486    fn from(
487        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_sync_status::GetResourceSyncStatusError, R>,
488    ) -> Self {
489        match err {
490            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
491            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
492                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
493                source: err.into(),
494            }),
495        }
496    }
497}
498impl From<crate::operation::get_resource_sync_status::GetResourceSyncStatusError> for Error {
499    fn from(err: crate::operation::get_resource_sync_status::GetResourceSyncStatusError) -> Self {
500        match err {
501            crate::operation::get_resource_sync_status::GetResourceSyncStatusError::AccessDeniedException(inner) => {
502                Error::AccessDeniedException(inner)
503            }
504            crate::operation::get_resource_sync_status::GetResourceSyncStatusError::InternalServerException(inner) => {
505                Error::InternalServerException(inner)
506            }
507            crate::operation::get_resource_sync_status::GetResourceSyncStatusError::InvalidInputException(inner) => {
508                Error::InvalidInputException(inner)
509            }
510            crate::operation::get_resource_sync_status::GetResourceSyncStatusError::ResourceNotFoundException(inner) => {
511                Error::ResourceNotFoundException(inner)
512            }
513            crate::operation::get_resource_sync_status::GetResourceSyncStatusError::ThrottlingException(inner) => Error::ThrottlingException(inner),
514            crate::operation::get_resource_sync_status::GetResourceSyncStatusError::Unhandled(inner) => Error::Unhandled(inner),
515        }
516    }
517}
518impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sync_blocker_summary::GetSyncBlockerSummaryError, R>> for Error
519where
520    R: Send + Sync + std::fmt::Debug + 'static,
521{
522    fn from(
523        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sync_blocker_summary::GetSyncBlockerSummaryError, R>,
524    ) -> Self {
525        match err {
526            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
527            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
528                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
529                source: err.into(),
530            }),
531        }
532    }
533}
534impl From<crate::operation::get_sync_blocker_summary::GetSyncBlockerSummaryError> for Error {
535    fn from(err: crate::operation::get_sync_blocker_summary::GetSyncBlockerSummaryError) -> Self {
536        match err {
537            crate::operation::get_sync_blocker_summary::GetSyncBlockerSummaryError::AccessDeniedException(inner) => {
538                Error::AccessDeniedException(inner)
539            }
540            crate::operation::get_sync_blocker_summary::GetSyncBlockerSummaryError::InternalServerException(inner) => {
541                Error::InternalServerException(inner)
542            }
543            crate::operation::get_sync_blocker_summary::GetSyncBlockerSummaryError::InvalidInputException(inner) => {
544                Error::InvalidInputException(inner)
545            }
546            crate::operation::get_sync_blocker_summary::GetSyncBlockerSummaryError::ResourceNotFoundException(inner) => {
547                Error::ResourceNotFoundException(inner)
548            }
549            crate::operation::get_sync_blocker_summary::GetSyncBlockerSummaryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
550            crate::operation::get_sync_blocker_summary::GetSyncBlockerSummaryError::Unhandled(inner) => Error::Unhandled(inner),
551        }
552    }
553}
554impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sync_configuration::GetSyncConfigurationError, R>> for Error
555where
556    R: Send + Sync + std::fmt::Debug + 'static,
557{
558    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sync_configuration::GetSyncConfigurationError, R>) -> Self {
559        match err {
560            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
561            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
562                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
563                source: err.into(),
564            }),
565        }
566    }
567}
568impl From<crate::operation::get_sync_configuration::GetSyncConfigurationError> for Error {
569    fn from(err: crate::operation::get_sync_configuration::GetSyncConfigurationError) -> Self {
570        match err {
571            crate::operation::get_sync_configuration::GetSyncConfigurationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
572            crate::operation::get_sync_configuration::GetSyncConfigurationError::InternalServerException(inner) => {
573                Error::InternalServerException(inner)
574            }
575            crate::operation::get_sync_configuration::GetSyncConfigurationError::InvalidInputException(inner) => Error::InvalidInputException(inner),
576            crate::operation::get_sync_configuration::GetSyncConfigurationError::ResourceNotFoundException(inner) => {
577                Error::ResourceNotFoundException(inner)
578            }
579            crate::operation::get_sync_configuration::GetSyncConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
580            crate::operation::get_sync_configuration::GetSyncConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
581        }
582    }
583}
584impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connections::ListConnectionsError, R>> for Error
585where
586    R: Send + Sync + std::fmt::Debug + 'static,
587{
588    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connections::ListConnectionsError, R>) -> Self {
589        match err {
590            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
591            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
592                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
593                source: err.into(),
594            }),
595        }
596    }
597}
598impl From<crate::operation::list_connections::ListConnectionsError> for Error {
599    fn from(err: crate::operation::list_connections::ListConnectionsError) -> Self {
600        match err {
601            crate::operation::list_connections::ListConnectionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
602            crate::operation::list_connections::ListConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
603        }
604    }
605}
606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hosts::ListHostsError, R>> for Error
607where
608    R: Send + Sync + std::fmt::Debug + 'static,
609{
610    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hosts::ListHostsError, R>) -> Self {
611        match err {
612            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
613            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
614                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
615                source: err.into(),
616            }),
617        }
618    }
619}
620impl From<crate::operation::list_hosts::ListHostsError> for Error {
621    fn from(err: crate::operation::list_hosts::ListHostsError) -> Self {
622        match err {
623            crate::operation::list_hosts::ListHostsError::Unhandled(inner) => Error::Unhandled(inner),
624        }
625    }
626}
627impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_repository_links::ListRepositoryLinksError, R>> for Error
628where
629    R: Send + Sync + std::fmt::Debug + 'static,
630{
631    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_repository_links::ListRepositoryLinksError, R>) -> Self {
632        match err {
633            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
634            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
635                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
636                source: err.into(),
637            }),
638        }
639    }
640}
641impl From<crate::operation::list_repository_links::ListRepositoryLinksError> for Error {
642    fn from(err: crate::operation::list_repository_links::ListRepositoryLinksError) -> Self {
643        match err {
644            crate::operation::list_repository_links::ListRepositoryLinksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
645            crate::operation::list_repository_links::ListRepositoryLinksError::ConcurrentModificationException(inner) => {
646                Error::ConcurrentModificationException(inner)
647            }
648            crate::operation::list_repository_links::ListRepositoryLinksError::InternalServerException(inner) => {
649                Error::InternalServerException(inner)
650            }
651            crate::operation::list_repository_links::ListRepositoryLinksError::InvalidInputException(inner) => Error::InvalidInputException(inner),
652            crate::operation::list_repository_links::ListRepositoryLinksError::ResourceNotFoundException(inner) => {
653                Error::ResourceNotFoundException(inner)
654            }
655            crate::operation::list_repository_links::ListRepositoryLinksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
656            crate::operation::list_repository_links::ListRepositoryLinksError::Unhandled(inner) => Error::Unhandled(inner),
657        }
658    }
659}
660impl<R>
661    From<
662        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError, R>,
663    > for Error
664where
665    R: Send + Sync + std::fmt::Debug + 'static,
666{
667    fn from(
668        err: ::aws_smithy_runtime_api::client::result::SdkError<
669            crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError,
670            R,
671        >,
672    ) -> Self {
673        match err {
674            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
675            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
676                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
677                source: err.into(),
678            }),
679        }
680    }
681}
682impl From<crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError> for Error {
683    fn from(err: crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError) -> Self {
684        match err {
685            crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError::AccessDeniedException(inner) => {
686                Error::AccessDeniedException(inner)
687            }
688            crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError::InternalServerException(inner) => {
689                Error::InternalServerException(inner)
690            }
691            crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError::InvalidInputException(inner) => {
692                Error::InvalidInputException(inner)
693            }
694            crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError::ResourceNotFoundException(inner) => {
695                Error::ResourceNotFoundException(inner)
696            }
697            crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError::ThrottlingException(inner) => {
698                Error::ThrottlingException(inner)
699            }
700            crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
701        }
702    }
703}
704impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sync_configurations::ListSyncConfigurationsError, R>> for Error
705where
706    R: Send + Sync + std::fmt::Debug + 'static,
707{
708    fn from(
709        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_sync_configurations::ListSyncConfigurationsError, R>,
710    ) -> Self {
711        match err {
712            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
713            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
714                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
715                source: err.into(),
716            }),
717        }
718    }
719}
720impl From<crate::operation::list_sync_configurations::ListSyncConfigurationsError> for Error {
721    fn from(err: crate::operation::list_sync_configurations::ListSyncConfigurationsError) -> Self {
722        match err {
723            crate::operation::list_sync_configurations::ListSyncConfigurationsError::AccessDeniedException(inner) => {
724                Error::AccessDeniedException(inner)
725            }
726            crate::operation::list_sync_configurations::ListSyncConfigurationsError::InternalServerException(inner) => {
727                Error::InternalServerException(inner)
728            }
729            crate::operation::list_sync_configurations::ListSyncConfigurationsError::InvalidInputException(inner) => {
730                Error::InvalidInputException(inner)
731            }
732            crate::operation::list_sync_configurations::ListSyncConfigurationsError::ResourceNotFoundException(inner) => {
733                Error::ResourceNotFoundException(inner)
734            }
735            crate::operation::list_sync_configurations::ListSyncConfigurationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
736            crate::operation::list_sync_configurations::ListSyncConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
737        }
738    }
739}
740impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
741where
742    R: Send + Sync + std::fmt::Debug + 'static,
743{
744    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
745        match err {
746            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
747            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
748                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
749                source: err.into(),
750            }),
751        }
752    }
753}
754impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
755    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
756        match err {
757            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
758                Error::ResourceNotFoundException(inner)
759            }
760            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
761        }
762    }
763}
764impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
765where
766    R: Send + Sync + std::fmt::Debug + 'static,
767{
768    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
769        match err {
770            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
771            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
772                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
773                source: err.into(),
774            }),
775        }
776    }
777}
778impl From<crate::operation::tag_resource::TagResourceError> for Error {
779    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
780        match err {
781            crate::operation::tag_resource::TagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
782            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
783            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
784        }
785    }
786}
787impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
788where
789    R: Send + Sync + std::fmt::Debug + 'static,
790{
791    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
792        match err {
793            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
794            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
795                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
796                source: err.into(),
797            }),
798        }
799    }
800}
801impl From<crate::operation::untag_resource::UntagResourceError> for Error {
802    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
803        match err {
804            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
805            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
806        }
807    }
808}
809impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_host::UpdateHostError, R>> for Error
810where
811    R: Send + Sync + std::fmt::Debug + 'static,
812{
813    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_host::UpdateHostError, R>) -> Self {
814        match err {
815            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
816            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
817                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
818                source: err.into(),
819            }),
820        }
821    }
822}
823impl From<crate::operation::update_host::UpdateHostError> for Error {
824    fn from(err: crate::operation::update_host::UpdateHostError) -> Self {
825        match err {
826            crate::operation::update_host::UpdateHostError::ConflictException(inner) => Error::ConflictException(inner),
827            crate::operation::update_host::UpdateHostError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
828            crate::operation::update_host::UpdateHostError::ResourceUnavailableException(inner) => Error::ResourceUnavailableException(inner),
829            crate::operation::update_host::UpdateHostError::UnsupportedOperationException(inner) => Error::UnsupportedOperationException(inner),
830            crate::operation::update_host::UpdateHostError::Unhandled(inner) => Error::Unhandled(inner),
831        }
832    }
833}
834impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_repository_link::UpdateRepositoryLinkError, R>> for Error
835where
836    R: Send + Sync + std::fmt::Debug + 'static,
837{
838    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_repository_link::UpdateRepositoryLinkError, R>) -> Self {
839        match err {
840            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
841            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
842                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
843                source: err.into(),
844            }),
845        }
846    }
847}
848impl From<crate::operation::update_repository_link::UpdateRepositoryLinkError> for Error {
849    fn from(err: crate::operation::update_repository_link::UpdateRepositoryLinkError) -> Self {
850        match err {
851            crate::operation::update_repository_link::UpdateRepositoryLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
852            crate::operation::update_repository_link::UpdateRepositoryLinkError::ConditionalCheckFailedException(inner) => {
853                Error::ConditionalCheckFailedException(inner)
854            }
855            crate::operation::update_repository_link::UpdateRepositoryLinkError::InternalServerException(inner) => {
856                Error::InternalServerException(inner)
857            }
858            crate::operation::update_repository_link::UpdateRepositoryLinkError::InvalidInputException(inner) => Error::InvalidInputException(inner),
859            crate::operation::update_repository_link::UpdateRepositoryLinkError::ResourceNotFoundException(inner) => {
860                Error::ResourceNotFoundException(inner)
861            }
862            crate::operation::update_repository_link::UpdateRepositoryLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
863            crate::operation::update_repository_link::UpdateRepositoryLinkError::UpdateOutOfSyncException(inner) => {
864                Error::UpdateOutOfSyncException(inner)
865            }
866            crate::operation::update_repository_link::UpdateRepositoryLinkError::Unhandled(inner) => Error::Unhandled(inner),
867        }
868    }
869}
870impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_sync_blocker::UpdateSyncBlockerError, R>> for Error
871where
872    R: Send + Sync + std::fmt::Debug + 'static,
873{
874    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_sync_blocker::UpdateSyncBlockerError, R>) -> Self {
875        match err {
876            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
877            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
878                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
879                source: err.into(),
880            }),
881        }
882    }
883}
884impl From<crate::operation::update_sync_blocker::UpdateSyncBlockerError> for Error {
885    fn from(err: crate::operation::update_sync_blocker::UpdateSyncBlockerError) -> Self {
886        match err {
887            crate::operation::update_sync_blocker::UpdateSyncBlockerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
888            crate::operation::update_sync_blocker::UpdateSyncBlockerError::InternalServerException(inner) => Error::InternalServerException(inner),
889            crate::operation::update_sync_blocker::UpdateSyncBlockerError::InvalidInputException(inner) => Error::InvalidInputException(inner),
890            crate::operation::update_sync_blocker::UpdateSyncBlockerError::ResourceNotFoundException(inner) => {
891                Error::ResourceNotFoundException(inner)
892            }
893            crate::operation::update_sync_blocker::UpdateSyncBlockerError::RetryLatestCommitFailedException(inner) => {
894                Error::RetryLatestCommitFailedException(inner)
895            }
896            crate::operation::update_sync_blocker::UpdateSyncBlockerError::SyncBlockerDoesNotExistException(inner) => {
897                Error::SyncBlockerDoesNotExistException(inner)
898            }
899            crate::operation::update_sync_blocker::UpdateSyncBlockerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
900            crate::operation::update_sync_blocker::UpdateSyncBlockerError::Unhandled(inner) => Error::Unhandled(inner),
901        }
902    }
903}
904impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_sync_configuration::UpdateSyncConfigurationError, R>>
905    for Error
906where
907    R: Send + Sync + std::fmt::Debug + 'static,
908{
909    fn from(
910        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_sync_configuration::UpdateSyncConfigurationError, R>,
911    ) -> Self {
912        match err {
913            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
914            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
915                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
916                source: err.into(),
917            }),
918        }
919    }
920}
921impl From<crate::operation::update_sync_configuration::UpdateSyncConfigurationError> for Error {
922    fn from(err: crate::operation::update_sync_configuration::UpdateSyncConfigurationError) -> Self {
923        match err {
924            crate::operation::update_sync_configuration::UpdateSyncConfigurationError::AccessDeniedException(inner) => {
925                Error::AccessDeniedException(inner)
926            }
927            crate::operation::update_sync_configuration::UpdateSyncConfigurationError::ConcurrentModificationException(inner) => {
928                Error::ConcurrentModificationException(inner)
929            }
930            crate::operation::update_sync_configuration::UpdateSyncConfigurationError::InternalServerException(inner) => {
931                Error::InternalServerException(inner)
932            }
933            crate::operation::update_sync_configuration::UpdateSyncConfigurationError::InvalidInputException(inner) => {
934                Error::InvalidInputException(inner)
935            }
936            crate::operation::update_sync_configuration::UpdateSyncConfigurationError::ResourceNotFoundException(inner) => {
937                Error::ResourceNotFoundException(inner)
938            }
939            crate::operation::update_sync_configuration::UpdateSyncConfigurationError::ThrottlingException(inner) => {
940                Error::ThrottlingException(inner)
941            }
942            crate::operation::update_sync_configuration::UpdateSyncConfigurationError::UpdateOutOfSyncException(inner) => {
943                Error::UpdateOutOfSyncException(inner)
944            }
945            crate::operation::update_sync_configuration::UpdateSyncConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
946        }
947    }
948}
949impl ::std::error::Error for Error {
950    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
951        match self {
952            Error::AccessDeniedException(inner) => inner.source(),
953            Error::ConcurrentModificationException(inner) => inner.source(),
954            Error::ConditionalCheckFailedException(inner) => inner.source(),
955            Error::ConflictException(inner) => inner.source(),
956            Error::InternalServerException(inner) => inner.source(),
957            Error::InvalidInputException(inner) => inner.source(),
958            Error::LimitExceededException(inner) => inner.source(),
959            Error::ResourceAlreadyExistsException(inner) => inner.source(),
960            Error::ResourceNotFoundException(inner) => inner.source(),
961            Error::ResourceUnavailableException(inner) => inner.source(),
962            Error::RetryLatestCommitFailedException(inner) => inner.source(),
963            Error::SyncBlockerDoesNotExistException(inner) => inner.source(),
964            Error::SyncConfigurationStillExistsException(inner) => inner.source(),
965            Error::ThrottlingException(inner) => inner.source(),
966            Error::UnsupportedOperationException(inner) => inner.source(),
967            Error::UnsupportedProviderTypeException(inner) => inner.source(),
968            Error::UpdateOutOfSyncException(inner) => inner.source(),
969            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
970        }
971    }
972}
973impl ::aws_types::request_id::RequestId for Error {
974    fn request_id(&self) -> Option<&str> {
975        match self {
976            Self::AccessDeniedException(e) => e.request_id(),
977            Self::ConcurrentModificationException(e) => e.request_id(),
978            Self::ConditionalCheckFailedException(e) => e.request_id(),
979            Self::ConflictException(e) => e.request_id(),
980            Self::InternalServerException(e) => e.request_id(),
981            Self::InvalidInputException(e) => e.request_id(),
982            Self::LimitExceededException(e) => e.request_id(),
983            Self::ResourceAlreadyExistsException(e) => e.request_id(),
984            Self::ResourceNotFoundException(e) => e.request_id(),
985            Self::ResourceUnavailableException(e) => e.request_id(),
986            Self::RetryLatestCommitFailedException(e) => e.request_id(),
987            Self::SyncBlockerDoesNotExistException(e) => e.request_id(),
988            Self::SyncConfigurationStillExistsException(e) => e.request_id(),
989            Self::ThrottlingException(e) => e.request_id(),
990            Self::UnsupportedOperationException(e) => e.request_id(),
991            Self::UnsupportedProviderTypeException(e) => e.request_id(),
992            Self::UpdateOutOfSyncException(e) => e.request_id(),
993            Self::Unhandled(e) => e.meta.request_id(),
994        }
995    }
996}