aws_sdk_proton/
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>There <i>isn't</i> sufficient access for performing this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The request <i>couldn't</i> be made due to a conflicting operation or resource.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>The request failed to register with the service.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The requested resource <i>wasn't</i> found.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>A quota was exceeded. For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-limits.html">Proton Quotas</a> in the <i>Proton User Guide</i>.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The request was denied due to request throttling.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>The input is invalid or an out-of-range value was supplied for the input parameter.</p>
19    ValidationException(crate::types::error::ValidationException),
20    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
21    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22    variable wildcard pattern and check `.code()`:
23     \
24    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25     \
26    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27    Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31        match self {
32            Error::AccessDeniedException(inner) => inner.fmt(f),
33            Error::ConflictException(inner) => inner.fmt(f),
34            Error::InternalServerException(inner) => inner.fmt(f),
35            Error::ResourceNotFoundException(inner) => inner.fmt(f),
36            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37            Error::ThrottlingException(inner) => inner.fmt(f),
38            Error::ValidationException(inner) => inner.fmt(f),
39            Error::Unhandled(_) => {
40                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41                    write!(f, "unhandled error ({code})")
42                } else {
43                    f.write_str("unhandled error")
44                }
45            }
46        }
47    }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52            source: value.into(),
53            meta: ::std::default::Default::default(),
54        })
55    }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59        match self {
60            Self::AccessDeniedException(inner) => inner.meta(),
61            Self::ConflictException(inner) => inner.meta(),
62            Self::InternalServerException(inner) => inner.meta(),
63            Self::ResourceNotFoundException(inner) => inner.meta(),
64            Self::ServiceQuotaExceededException(inner) => inner.meta(),
65            Self::ThrottlingException(inner) => inner.meta(),
66            Self::ValidationException(inner) => inner.meta(),
67            Self::Unhandled(inner) => &inner.meta,
68        }
69    }
70}
71impl<R>
72    From<
73        ::aws_smithy_runtime_api::client::result::SdkError<
74            crate::operation::accept_environment_account_connection::AcceptEnvironmentAccountConnectionError,
75            R,
76        >,
77    > for Error
78where
79    R: Send + Sync + std::fmt::Debug + 'static,
80{
81    fn from(
82        err: ::aws_smithy_runtime_api::client::result::SdkError<
83            crate::operation::accept_environment_account_connection::AcceptEnvironmentAccountConnectionError,
84            R,
85        >,
86    ) -> Self {
87        match err {
88            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
89            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
90                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
91                source: err.into(),
92            }),
93        }
94    }
95}
96impl From<crate::operation::accept_environment_account_connection::AcceptEnvironmentAccountConnectionError> for Error {
97    fn from(err: crate::operation::accept_environment_account_connection::AcceptEnvironmentAccountConnectionError) -> Self {
98        match err {
99            crate::operation::accept_environment_account_connection::AcceptEnvironmentAccountConnectionError::AccessDeniedException(inner) => {
100                Error::AccessDeniedException(inner)
101            }
102            crate::operation::accept_environment_account_connection::AcceptEnvironmentAccountConnectionError::ConflictException(inner) => {
103                Error::ConflictException(inner)
104            }
105            crate::operation::accept_environment_account_connection::AcceptEnvironmentAccountConnectionError::InternalServerException(inner) => {
106                Error::InternalServerException(inner)
107            }
108            crate::operation::accept_environment_account_connection::AcceptEnvironmentAccountConnectionError::ResourceNotFoundException(inner) => {
109                Error::ResourceNotFoundException(inner)
110            }
111            crate::operation::accept_environment_account_connection::AcceptEnvironmentAccountConnectionError::ThrottlingException(inner) => {
112                Error::ThrottlingException(inner)
113            }
114            crate::operation::accept_environment_account_connection::AcceptEnvironmentAccountConnectionError::ValidationException(inner) => {
115                Error::ValidationException(inner)
116            }
117            crate::operation::accept_environment_account_connection::AcceptEnvironmentAccountConnectionError::Unhandled(inner) => {
118                Error::Unhandled(inner)
119            }
120        }
121    }
122}
123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_component_deployment::CancelComponentDeploymentError, R>>
124    for Error
125where
126    R: Send + Sync + std::fmt::Debug + 'static,
127{
128    fn from(
129        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_component_deployment::CancelComponentDeploymentError, R>,
130    ) -> Self {
131        match err {
132            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
133            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
134                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
135                source: err.into(),
136            }),
137        }
138    }
139}
140impl From<crate::operation::cancel_component_deployment::CancelComponentDeploymentError> for Error {
141    fn from(err: crate::operation::cancel_component_deployment::CancelComponentDeploymentError) -> Self {
142        match err {
143            crate::operation::cancel_component_deployment::CancelComponentDeploymentError::AccessDeniedException(inner) => {
144                Error::AccessDeniedException(inner)
145            }
146            crate::operation::cancel_component_deployment::CancelComponentDeploymentError::ConflictException(inner) => {
147                Error::ConflictException(inner)
148            }
149            crate::operation::cancel_component_deployment::CancelComponentDeploymentError::InternalServerException(inner) => {
150                Error::InternalServerException(inner)
151            }
152            crate::operation::cancel_component_deployment::CancelComponentDeploymentError::ResourceNotFoundException(inner) => {
153                Error::ResourceNotFoundException(inner)
154            }
155            crate::operation::cancel_component_deployment::CancelComponentDeploymentError::ThrottlingException(inner) => {
156                Error::ThrottlingException(inner)
157            }
158            crate::operation::cancel_component_deployment::CancelComponentDeploymentError::ValidationException(inner) => {
159                Error::ValidationException(inner)
160            }
161            crate::operation::cancel_component_deployment::CancelComponentDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
162        }
163    }
164}
165impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_environment_deployment::CancelEnvironmentDeploymentError, R>>
166    for Error
167where
168    R: Send + Sync + std::fmt::Debug + 'static,
169{
170    fn from(
171        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_environment_deployment::CancelEnvironmentDeploymentError, R>,
172    ) -> Self {
173        match err {
174            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
175            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
176                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
177                source: err.into(),
178            }),
179        }
180    }
181}
182impl From<crate::operation::cancel_environment_deployment::CancelEnvironmentDeploymentError> for Error {
183    fn from(err: crate::operation::cancel_environment_deployment::CancelEnvironmentDeploymentError) -> Self {
184        match err {
185            crate::operation::cancel_environment_deployment::CancelEnvironmentDeploymentError::AccessDeniedException(inner) => {
186                Error::AccessDeniedException(inner)
187            }
188            crate::operation::cancel_environment_deployment::CancelEnvironmentDeploymentError::ConflictException(inner) => {
189                Error::ConflictException(inner)
190            }
191            crate::operation::cancel_environment_deployment::CancelEnvironmentDeploymentError::InternalServerException(inner) => {
192                Error::InternalServerException(inner)
193            }
194            crate::operation::cancel_environment_deployment::CancelEnvironmentDeploymentError::ResourceNotFoundException(inner) => {
195                Error::ResourceNotFoundException(inner)
196            }
197            crate::operation::cancel_environment_deployment::CancelEnvironmentDeploymentError::ThrottlingException(inner) => {
198                Error::ThrottlingException(inner)
199            }
200            crate::operation::cancel_environment_deployment::CancelEnvironmentDeploymentError::ValidationException(inner) => {
201                Error::ValidationException(inner)
202            }
203            crate::operation::cancel_environment_deployment::CancelEnvironmentDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
204        }
205    }
206}
207impl<R>
208    From<
209        ::aws_smithy_runtime_api::client::result::SdkError<
210            crate::operation::cancel_service_instance_deployment::CancelServiceInstanceDeploymentError,
211            R,
212        >,
213    > for Error
214where
215    R: Send + Sync + std::fmt::Debug + 'static,
216{
217    fn from(
218        err: ::aws_smithy_runtime_api::client::result::SdkError<
219            crate::operation::cancel_service_instance_deployment::CancelServiceInstanceDeploymentError,
220            R,
221        >,
222    ) -> Self {
223        match err {
224            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
225            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
226                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
227                source: err.into(),
228            }),
229        }
230    }
231}
232impl From<crate::operation::cancel_service_instance_deployment::CancelServiceInstanceDeploymentError> for Error {
233    fn from(err: crate::operation::cancel_service_instance_deployment::CancelServiceInstanceDeploymentError) -> Self {
234        match err {
235            crate::operation::cancel_service_instance_deployment::CancelServiceInstanceDeploymentError::AccessDeniedException(inner) => {
236                Error::AccessDeniedException(inner)
237            }
238            crate::operation::cancel_service_instance_deployment::CancelServiceInstanceDeploymentError::ConflictException(inner) => {
239                Error::ConflictException(inner)
240            }
241            crate::operation::cancel_service_instance_deployment::CancelServiceInstanceDeploymentError::InternalServerException(inner) => {
242                Error::InternalServerException(inner)
243            }
244            crate::operation::cancel_service_instance_deployment::CancelServiceInstanceDeploymentError::ResourceNotFoundException(inner) => {
245                Error::ResourceNotFoundException(inner)
246            }
247            crate::operation::cancel_service_instance_deployment::CancelServiceInstanceDeploymentError::ThrottlingException(inner) => {
248                Error::ThrottlingException(inner)
249            }
250            crate::operation::cancel_service_instance_deployment::CancelServiceInstanceDeploymentError::ValidationException(inner) => {
251                Error::ValidationException(inner)
252            }
253            crate::operation::cancel_service_instance_deployment::CancelServiceInstanceDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
254        }
255    }
256}
257impl<R>
258    From<
259        ::aws_smithy_runtime_api::client::result::SdkError<
260            crate::operation::cancel_service_pipeline_deployment::CancelServicePipelineDeploymentError,
261            R,
262        >,
263    > for Error
264where
265    R: Send + Sync + std::fmt::Debug + 'static,
266{
267    fn from(
268        err: ::aws_smithy_runtime_api::client::result::SdkError<
269            crate::operation::cancel_service_pipeline_deployment::CancelServicePipelineDeploymentError,
270            R,
271        >,
272    ) -> Self {
273        match err {
274            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
275            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
276                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
277                source: err.into(),
278            }),
279        }
280    }
281}
282impl From<crate::operation::cancel_service_pipeline_deployment::CancelServicePipelineDeploymentError> for Error {
283    fn from(err: crate::operation::cancel_service_pipeline_deployment::CancelServicePipelineDeploymentError) -> Self {
284        match err {
285            crate::operation::cancel_service_pipeline_deployment::CancelServicePipelineDeploymentError::AccessDeniedException(inner) => {
286                Error::AccessDeniedException(inner)
287            }
288            crate::operation::cancel_service_pipeline_deployment::CancelServicePipelineDeploymentError::ConflictException(inner) => {
289                Error::ConflictException(inner)
290            }
291            crate::operation::cancel_service_pipeline_deployment::CancelServicePipelineDeploymentError::InternalServerException(inner) => {
292                Error::InternalServerException(inner)
293            }
294            crate::operation::cancel_service_pipeline_deployment::CancelServicePipelineDeploymentError::ResourceNotFoundException(inner) => {
295                Error::ResourceNotFoundException(inner)
296            }
297            crate::operation::cancel_service_pipeline_deployment::CancelServicePipelineDeploymentError::ThrottlingException(inner) => {
298                Error::ThrottlingException(inner)
299            }
300            crate::operation::cancel_service_pipeline_deployment::CancelServicePipelineDeploymentError::ValidationException(inner) => {
301                Error::ValidationException(inner)
302            }
303            crate::operation::cancel_service_pipeline_deployment::CancelServicePipelineDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
304        }
305    }
306}
307impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_component::CreateComponentError, R>> for Error
308where
309    R: Send + Sync + std::fmt::Debug + 'static,
310{
311    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_component::CreateComponentError, R>) -> Self {
312        match err {
313            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
314            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
315                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
316                source: err.into(),
317            }),
318        }
319    }
320}
321impl From<crate::operation::create_component::CreateComponentError> for Error {
322    fn from(err: crate::operation::create_component::CreateComponentError) -> Self {
323        match err {
324            crate::operation::create_component::CreateComponentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
325            crate::operation::create_component::CreateComponentError::ConflictException(inner) => Error::ConflictException(inner),
326            crate::operation::create_component::CreateComponentError::InternalServerException(inner) => Error::InternalServerException(inner),
327            crate::operation::create_component::CreateComponentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
328            crate::operation::create_component::CreateComponentError::ServiceQuotaExceededException(inner) => {
329                Error::ServiceQuotaExceededException(inner)
330            }
331            crate::operation::create_component::CreateComponentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
332            crate::operation::create_component::CreateComponentError::ValidationException(inner) => Error::ValidationException(inner),
333            crate::operation::create_component::CreateComponentError::Unhandled(inner) => Error::Unhandled(inner),
334        }
335    }
336}
337impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_environment::CreateEnvironmentError, R>> for Error
338where
339    R: Send + Sync + std::fmt::Debug + 'static,
340{
341    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_environment::CreateEnvironmentError, R>) -> Self {
342        match err {
343            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
344            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
345                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
346                source: err.into(),
347            }),
348        }
349    }
350}
351impl From<crate::operation::create_environment::CreateEnvironmentError> for Error {
352    fn from(err: crate::operation::create_environment::CreateEnvironmentError) -> Self {
353        match err {
354            crate::operation::create_environment::CreateEnvironmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
355            crate::operation::create_environment::CreateEnvironmentError::ConflictException(inner) => Error::ConflictException(inner),
356            crate::operation::create_environment::CreateEnvironmentError::InternalServerException(inner) => Error::InternalServerException(inner),
357            crate::operation::create_environment::CreateEnvironmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
358            crate::operation::create_environment::CreateEnvironmentError::ServiceQuotaExceededException(inner) => {
359                Error::ServiceQuotaExceededException(inner)
360            }
361            crate::operation::create_environment::CreateEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
362            crate::operation::create_environment::CreateEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
363            crate::operation::create_environment::CreateEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
364        }
365    }
366}
367impl<R>
368    From<
369        ::aws_smithy_runtime_api::client::result::SdkError<
370            crate::operation::create_environment_account_connection::CreateEnvironmentAccountConnectionError,
371            R,
372        >,
373    > for Error
374where
375    R: Send + Sync + std::fmt::Debug + 'static,
376{
377    fn from(
378        err: ::aws_smithy_runtime_api::client::result::SdkError<
379            crate::operation::create_environment_account_connection::CreateEnvironmentAccountConnectionError,
380            R,
381        >,
382    ) -> Self {
383        match err {
384            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
385            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
386                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
387                source: err.into(),
388            }),
389        }
390    }
391}
392impl From<crate::operation::create_environment_account_connection::CreateEnvironmentAccountConnectionError> for Error {
393    fn from(err: crate::operation::create_environment_account_connection::CreateEnvironmentAccountConnectionError) -> Self {
394        match err {
395            crate::operation::create_environment_account_connection::CreateEnvironmentAccountConnectionError::AccessDeniedException(inner) => {
396                Error::AccessDeniedException(inner)
397            }
398            crate::operation::create_environment_account_connection::CreateEnvironmentAccountConnectionError::ConflictException(inner) => {
399                Error::ConflictException(inner)
400            }
401            crate::operation::create_environment_account_connection::CreateEnvironmentAccountConnectionError::InternalServerException(inner) => {
402                Error::InternalServerException(inner)
403            }
404            crate::operation::create_environment_account_connection::CreateEnvironmentAccountConnectionError::ServiceQuotaExceededException(
405                inner,
406            ) => Error::ServiceQuotaExceededException(inner),
407            crate::operation::create_environment_account_connection::CreateEnvironmentAccountConnectionError::ThrottlingException(inner) => {
408                Error::ThrottlingException(inner)
409            }
410            crate::operation::create_environment_account_connection::CreateEnvironmentAccountConnectionError::ValidationException(inner) => {
411                Error::ValidationException(inner)
412            }
413            crate::operation::create_environment_account_connection::CreateEnvironmentAccountConnectionError::Unhandled(inner) => {
414                Error::Unhandled(inner)
415            }
416        }
417    }
418}
419impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_environment_template::CreateEnvironmentTemplateError, R>>
420    for Error
421where
422    R: Send + Sync + std::fmt::Debug + 'static,
423{
424    fn from(
425        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_environment_template::CreateEnvironmentTemplateError, R>,
426    ) -> Self {
427        match err {
428            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
429            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
430                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
431                source: err.into(),
432            }),
433        }
434    }
435}
436impl From<crate::operation::create_environment_template::CreateEnvironmentTemplateError> for Error {
437    fn from(err: crate::operation::create_environment_template::CreateEnvironmentTemplateError) -> Self {
438        match err {
439            crate::operation::create_environment_template::CreateEnvironmentTemplateError::AccessDeniedException(inner) => {
440                Error::AccessDeniedException(inner)
441            }
442            crate::operation::create_environment_template::CreateEnvironmentTemplateError::ConflictException(inner) => {
443                Error::ConflictException(inner)
444            }
445            crate::operation::create_environment_template::CreateEnvironmentTemplateError::InternalServerException(inner) => {
446                Error::InternalServerException(inner)
447            }
448            crate::operation::create_environment_template::CreateEnvironmentTemplateError::ServiceQuotaExceededException(inner) => {
449                Error::ServiceQuotaExceededException(inner)
450            }
451            crate::operation::create_environment_template::CreateEnvironmentTemplateError::ThrottlingException(inner) => {
452                Error::ThrottlingException(inner)
453            }
454            crate::operation::create_environment_template::CreateEnvironmentTemplateError::ValidationException(inner) => {
455                Error::ValidationException(inner)
456            }
457            crate::operation::create_environment_template::CreateEnvironmentTemplateError::Unhandled(inner) => Error::Unhandled(inner),
458        }
459    }
460}
461impl<R>
462    From<
463        ::aws_smithy_runtime_api::client::result::SdkError<
464            crate::operation::create_environment_template_version::CreateEnvironmentTemplateVersionError,
465            R,
466        >,
467    > for Error
468where
469    R: Send + Sync + std::fmt::Debug + 'static,
470{
471    fn from(
472        err: ::aws_smithy_runtime_api::client::result::SdkError<
473            crate::operation::create_environment_template_version::CreateEnvironmentTemplateVersionError,
474            R,
475        >,
476    ) -> Self {
477        match err {
478            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
479            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
480                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
481                source: err.into(),
482            }),
483        }
484    }
485}
486impl From<crate::operation::create_environment_template_version::CreateEnvironmentTemplateVersionError> for Error {
487    fn from(err: crate::operation::create_environment_template_version::CreateEnvironmentTemplateVersionError) -> Self {
488        match err {
489            crate::operation::create_environment_template_version::CreateEnvironmentTemplateVersionError::AccessDeniedException(inner) => {
490                Error::AccessDeniedException(inner)
491            }
492            crate::operation::create_environment_template_version::CreateEnvironmentTemplateVersionError::ConflictException(inner) => {
493                Error::ConflictException(inner)
494            }
495            crate::operation::create_environment_template_version::CreateEnvironmentTemplateVersionError::InternalServerException(inner) => {
496                Error::InternalServerException(inner)
497            }
498            crate::operation::create_environment_template_version::CreateEnvironmentTemplateVersionError::ResourceNotFoundException(inner) => {
499                Error::ResourceNotFoundException(inner)
500            }
501            crate::operation::create_environment_template_version::CreateEnvironmentTemplateVersionError::ServiceQuotaExceededException(inner) => {
502                Error::ServiceQuotaExceededException(inner)
503            }
504            crate::operation::create_environment_template_version::CreateEnvironmentTemplateVersionError::ThrottlingException(inner) => {
505                Error::ThrottlingException(inner)
506            }
507            crate::operation::create_environment_template_version::CreateEnvironmentTemplateVersionError::ValidationException(inner) => {
508                Error::ValidationException(inner)
509            }
510            crate::operation::create_environment_template_version::CreateEnvironmentTemplateVersionError::Unhandled(inner) => Error::Unhandled(inner),
511        }
512    }
513}
514impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_repository::CreateRepositoryError, R>> for Error
515where
516    R: Send + Sync + std::fmt::Debug + 'static,
517{
518    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_repository::CreateRepositoryError, R>) -> Self {
519        match err {
520            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
521            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
522                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
523                source: err.into(),
524            }),
525        }
526    }
527}
528impl From<crate::operation::create_repository::CreateRepositoryError> for Error {
529    fn from(err: crate::operation::create_repository::CreateRepositoryError) -> Self {
530        match err {
531            crate::operation::create_repository::CreateRepositoryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
532            crate::operation::create_repository::CreateRepositoryError::ConflictException(inner) => Error::ConflictException(inner),
533            crate::operation::create_repository::CreateRepositoryError::InternalServerException(inner) => Error::InternalServerException(inner),
534            crate::operation::create_repository::CreateRepositoryError::ServiceQuotaExceededException(inner) => {
535                Error::ServiceQuotaExceededException(inner)
536            }
537            crate::operation::create_repository::CreateRepositoryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
538            crate::operation::create_repository::CreateRepositoryError::ValidationException(inner) => Error::ValidationException(inner),
539            crate::operation::create_repository::CreateRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
540        }
541    }
542}
543impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service::CreateServiceError, R>> for Error
544where
545    R: Send + Sync + std::fmt::Debug + 'static,
546{
547    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service::CreateServiceError, R>) -> Self {
548        match err {
549            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
550            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
551                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
552                source: err.into(),
553            }),
554        }
555    }
556}
557impl From<crate::operation::create_service::CreateServiceError> for Error {
558    fn from(err: crate::operation::create_service::CreateServiceError) -> Self {
559        match err {
560            crate::operation::create_service::CreateServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
561            crate::operation::create_service::CreateServiceError::ConflictException(inner) => Error::ConflictException(inner),
562            crate::operation::create_service::CreateServiceError::InternalServerException(inner) => Error::InternalServerException(inner),
563            crate::operation::create_service::CreateServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
564            crate::operation::create_service::CreateServiceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
565            crate::operation::create_service::CreateServiceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
566            crate::operation::create_service::CreateServiceError::ValidationException(inner) => Error::ValidationException(inner),
567            crate::operation::create_service::CreateServiceError::Unhandled(inner) => Error::Unhandled(inner),
568        }
569    }
570}
571impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service_instance::CreateServiceInstanceError, R>> for Error
572where
573    R: Send + Sync + std::fmt::Debug + 'static,
574{
575    fn from(
576        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service_instance::CreateServiceInstanceError, R>,
577    ) -> Self {
578        match err {
579            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
580            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
581                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
582                source: err.into(),
583            }),
584        }
585    }
586}
587impl From<crate::operation::create_service_instance::CreateServiceInstanceError> for Error {
588    fn from(err: crate::operation::create_service_instance::CreateServiceInstanceError) -> Self {
589        match err {
590            crate::operation::create_service_instance::CreateServiceInstanceError::AccessDeniedException(inner) => {
591                Error::AccessDeniedException(inner)
592            }
593            crate::operation::create_service_instance::CreateServiceInstanceError::ConflictException(inner) => Error::ConflictException(inner),
594            crate::operation::create_service_instance::CreateServiceInstanceError::InternalServerException(inner) => {
595                Error::InternalServerException(inner)
596            }
597            crate::operation::create_service_instance::CreateServiceInstanceError::ResourceNotFoundException(inner) => {
598                Error::ResourceNotFoundException(inner)
599            }
600            crate::operation::create_service_instance::CreateServiceInstanceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
601            crate::operation::create_service_instance::CreateServiceInstanceError::ValidationException(inner) => Error::ValidationException(inner),
602            crate::operation::create_service_instance::CreateServiceInstanceError::Unhandled(inner) => Error::Unhandled(inner),
603        }
604    }
605}
606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service_sync_config::CreateServiceSyncConfigError, R>>
607    for Error
608where
609    R: Send + Sync + std::fmt::Debug + 'static,
610{
611    fn from(
612        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service_sync_config::CreateServiceSyncConfigError, R>,
613    ) -> Self {
614        match err {
615            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
616            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
617                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
618                source: err.into(),
619            }),
620        }
621    }
622}
623impl From<crate::operation::create_service_sync_config::CreateServiceSyncConfigError> for Error {
624    fn from(err: crate::operation::create_service_sync_config::CreateServiceSyncConfigError) -> Self {
625        match err {
626            crate::operation::create_service_sync_config::CreateServiceSyncConfigError::AccessDeniedException(inner) => {
627                Error::AccessDeniedException(inner)
628            }
629            crate::operation::create_service_sync_config::CreateServiceSyncConfigError::ConflictException(inner) => Error::ConflictException(inner),
630            crate::operation::create_service_sync_config::CreateServiceSyncConfigError::InternalServerException(inner) => {
631                Error::InternalServerException(inner)
632            }
633            crate::operation::create_service_sync_config::CreateServiceSyncConfigError::ServiceQuotaExceededException(inner) => {
634                Error::ServiceQuotaExceededException(inner)
635            }
636            crate::operation::create_service_sync_config::CreateServiceSyncConfigError::ThrottlingException(inner) => {
637                Error::ThrottlingException(inner)
638            }
639            crate::operation::create_service_sync_config::CreateServiceSyncConfigError::ValidationException(inner) => {
640                Error::ValidationException(inner)
641            }
642            crate::operation::create_service_sync_config::CreateServiceSyncConfigError::Unhandled(inner) => Error::Unhandled(inner),
643        }
644    }
645}
646impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service_template::CreateServiceTemplateError, R>> for Error
647where
648    R: Send + Sync + std::fmt::Debug + 'static,
649{
650    fn from(
651        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service_template::CreateServiceTemplateError, R>,
652    ) -> Self {
653        match err {
654            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
655            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
656                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
657                source: err.into(),
658            }),
659        }
660    }
661}
662impl From<crate::operation::create_service_template::CreateServiceTemplateError> for Error {
663    fn from(err: crate::operation::create_service_template::CreateServiceTemplateError) -> Self {
664        match err {
665            crate::operation::create_service_template::CreateServiceTemplateError::AccessDeniedException(inner) => {
666                Error::AccessDeniedException(inner)
667            }
668            crate::operation::create_service_template::CreateServiceTemplateError::ConflictException(inner) => Error::ConflictException(inner),
669            crate::operation::create_service_template::CreateServiceTemplateError::InternalServerException(inner) => {
670                Error::InternalServerException(inner)
671            }
672            crate::operation::create_service_template::CreateServiceTemplateError::ServiceQuotaExceededException(inner) => {
673                Error::ServiceQuotaExceededException(inner)
674            }
675            crate::operation::create_service_template::CreateServiceTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
676            crate::operation::create_service_template::CreateServiceTemplateError::ValidationException(inner) => Error::ValidationException(inner),
677            crate::operation::create_service_template::CreateServiceTemplateError::Unhandled(inner) => Error::Unhandled(inner),
678        }
679    }
680}
681impl<R>
682    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service_template_version::CreateServiceTemplateVersionError, R>>
683    for Error
684where
685    R: Send + Sync + std::fmt::Debug + 'static,
686{
687    fn from(
688        err: ::aws_smithy_runtime_api::client::result::SdkError<
689            crate::operation::create_service_template_version::CreateServiceTemplateVersionError,
690            R,
691        >,
692    ) -> Self {
693        match err {
694            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
695            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
696                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
697                source: err.into(),
698            }),
699        }
700    }
701}
702impl From<crate::operation::create_service_template_version::CreateServiceTemplateVersionError> for Error {
703    fn from(err: crate::operation::create_service_template_version::CreateServiceTemplateVersionError) -> Self {
704        match err {
705            crate::operation::create_service_template_version::CreateServiceTemplateVersionError::AccessDeniedException(inner) => {
706                Error::AccessDeniedException(inner)
707            }
708            crate::operation::create_service_template_version::CreateServiceTemplateVersionError::ConflictException(inner) => {
709                Error::ConflictException(inner)
710            }
711            crate::operation::create_service_template_version::CreateServiceTemplateVersionError::InternalServerException(inner) => {
712                Error::InternalServerException(inner)
713            }
714            crate::operation::create_service_template_version::CreateServiceTemplateVersionError::ResourceNotFoundException(inner) => {
715                Error::ResourceNotFoundException(inner)
716            }
717            crate::operation::create_service_template_version::CreateServiceTemplateVersionError::ServiceQuotaExceededException(inner) => {
718                Error::ServiceQuotaExceededException(inner)
719            }
720            crate::operation::create_service_template_version::CreateServiceTemplateVersionError::ThrottlingException(inner) => {
721                Error::ThrottlingException(inner)
722            }
723            crate::operation::create_service_template_version::CreateServiceTemplateVersionError::ValidationException(inner) => {
724                Error::ValidationException(inner)
725            }
726            crate::operation::create_service_template_version::CreateServiceTemplateVersionError::Unhandled(inner) => Error::Unhandled(inner),
727        }
728    }
729}
730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template_sync_config::CreateTemplateSyncConfigError, R>>
731    for Error
732where
733    R: Send + Sync + std::fmt::Debug + 'static,
734{
735    fn from(
736        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_template_sync_config::CreateTemplateSyncConfigError, R>,
737    ) -> Self {
738        match err {
739            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
740            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
741                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
742                source: err.into(),
743            }),
744        }
745    }
746}
747impl From<crate::operation::create_template_sync_config::CreateTemplateSyncConfigError> for Error {
748    fn from(err: crate::operation::create_template_sync_config::CreateTemplateSyncConfigError) -> Self {
749        match err {
750            crate::operation::create_template_sync_config::CreateTemplateSyncConfigError::AccessDeniedException(inner) => {
751                Error::AccessDeniedException(inner)
752            }
753            crate::operation::create_template_sync_config::CreateTemplateSyncConfigError::ConflictException(inner) => Error::ConflictException(inner),
754            crate::operation::create_template_sync_config::CreateTemplateSyncConfigError::InternalServerException(inner) => {
755                Error::InternalServerException(inner)
756            }
757            crate::operation::create_template_sync_config::CreateTemplateSyncConfigError::ServiceQuotaExceededException(inner) => {
758                Error::ServiceQuotaExceededException(inner)
759            }
760            crate::operation::create_template_sync_config::CreateTemplateSyncConfigError::ThrottlingException(inner) => {
761                Error::ThrottlingException(inner)
762            }
763            crate::operation::create_template_sync_config::CreateTemplateSyncConfigError::ValidationException(inner) => {
764                Error::ValidationException(inner)
765            }
766            crate::operation::create_template_sync_config::CreateTemplateSyncConfigError::Unhandled(inner) => Error::Unhandled(inner),
767        }
768    }
769}
770impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_component::DeleteComponentError, R>> for Error
771where
772    R: Send + Sync + std::fmt::Debug + 'static,
773{
774    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_component::DeleteComponentError, R>) -> Self {
775        match err {
776            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
777            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
778                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
779                source: err.into(),
780            }),
781        }
782    }
783}
784impl From<crate::operation::delete_component::DeleteComponentError> for Error {
785    fn from(err: crate::operation::delete_component::DeleteComponentError) -> Self {
786        match err {
787            crate::operation::delete_component::DeleteComponentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
788            crate::operation::delete_component::DeleteComponentError::ConflictException(inner) => Error::ConflictException(inner),
789            crate::operation::delete_component::DeleteComponentError::InternalServerException(inner) => Error::InternalServerException(inner),
790            crate::operation::delete_component::DeleteComponentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
791            crate::operation::delete_component::DeleteComponentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
792            crate::operation::delete_component::DeleteComponentError::ValidationException(inner) => Error::ValidationException(inner),
793            crate::operation::delete_component::DeleteComponentError::Unhandled(inner) => Error::Unhandled(inner),
794        }
795    }
796}
797impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_deployment::DeleteDeploymentError, R>> for Error
798where
799    R: Send + Sync + std::fmt::Debug + 'static,
800{
801    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_deployment::DeleteDeploymentError, R>) -> Self {
802        match err {
803            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
804            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
805                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
806                source: err.into(),
807            }),
808        }
809    }
810}
811impl From<crate::operation::delete_deployment::DeleteDeploymentError> for Error {
812    fn from(err: crate::operation::delete_deployment::DeleteDeploymentError) -> Self {
813        match err {
814            crate::operation::delete_deployment::DeleteDeploymentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
815            crate::operation::delete_deployment::DeleteDeploymentError::InternalServerException(inner) => Error::InternalServerException(inner),
816            crate::operation::delete_deployment::DeleteDeploymentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
817            crate::operation::delete_deployment::DeleteDeploymentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
818            crate::operation::delete_deployment::DeleteDeploymentError::ValidationException(inner) => Error::ValidationException(inner),
819            crate::operation::delete_deployment::DeleteDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
820        }
821    }
822}
823impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_environment::DeleteEnvironmentError, R>> for Error
824where
825    R: Send + Sync + std::fmt::Debug + 'static,
826{
827    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_environment::DeleteEnvironmentError, R>) -> Self {
828        match err {
829            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
830            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
831                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
832                source: err.into(),
833            }),
834        }
835    }
836}
837impl From<crate::operation::delete_environment::DeleteEnvironmentError> for Error {
838    fn from(err: crate::operation::delete_environment::DeleteEnvironmentError) -> Self {
839        match err {
840            crate::operation::delete_environment::DeleteEnvironmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
841            crate::operation::delete_environment::DeleteEnvironmentError::ConflictException(inner) => Error::ConflictException(inner),
842            crate::operation::delete_environment::DeleteEnvironmentError::InternalServerException(inner) => Error::InternalServerException(inner),
843            crate::operation::delete_environment::DeleteEnvironmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
844            crate::operation::delete_environment::DeleteEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
845            crate::operation::delete_environment::DeleteEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
846            crate::operation::delete_environment::DeleteEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
847        }
848    }
849}
850impl<R>
851    From<
852        ::aws_smithy_runtime_api::client::result::SdkError<
853            crate::operation::delete_environment_account_connection::DeleteEnvironmentAccountConnectionError,
854            R,
855        >,
856    > for Error
857where
858    R: Send + Sync + std::fmt::Debug + 'static,
859{
860    fn from(
861        err: ::aws_smithy_runtime_api::client::result::SdkError<
862            crate::operation::delete_environment_account_connection::DeleteEnvironmentAccountConnectionError,
863            R,
864        >,
865    ) -> Self {
866        match err {
867            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
868            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
869                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
870                source: err.into(),
871            }),
872        }
873    }
874}
875impl From<crate::operation::delete_environment_account_connection::DeleteEnvironmentAccountConnectionError> for Error {
876    fn from(err: crate::operation::delete_environment_account_connection::DeleteEnvironmentAccountConnectionError) -> Self {
877        match err {
878            crate::operation::delete_environment_account_connection::DeleteEnvironmentAccountConnectionError::AccessDeniedException(inner) => {
879                Error::AccessDeniedException(inner)
880            }
881            crate::operation::delete_environment_account_connection::DeleteEnvironmentAccountConnectionError::ConflictException(inner) => {
882                Error::ConflictException(inner)
883            }
884            crate::operation::delete_environment_account_connection::DeleteEnvironmentAccountConnectionError::InternalServerException(inner) => {
885                Error::InternalServerException(inner)
886            }
887            crate::operation::delete_environment_account_connection::DeleteEnvironmentAccountConnectionError::ResourceNotFoundException(inner) => {
888                Error::ResourceNotFoundException(inner)
889            }
890            crate::operation::delete_environment_account_connection::DeleteEnvironmentAccountConnectionError::ThrottlingException(inner) => {
891                Error::ThrottlingException(inner)
892            }
893            crate::operation::delete_environment_account_connection::DeleteEnvironmentAccountConnectionError::ValidationException(inner) => {
894                Error::ValidationException(inner)
895            }
896            crate::operation::delete_environment_account_connection::DeleteEnvironmentAccountConnectionError::Unhandled(inner) => {
897                Error::Unhandled(inner)
898            }
899        }
900    }
901}
902impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_environment_template::DeleteEnvironmentTemplateError, R>>
903    for Error
904where
905    R: Send + Sync + std::fmt::Debug + 'static,
906{
907    fn from(
908        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_environment_template::DeleteEnvironmentTemplateError, R>,
909    ) -> Self {
910        match err {
911            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
912            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
913                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
914                source: err.into(),
915            }),
916        }
917    }
918}
919impl From<crate::operation::delete_environment_template::DeleteEnvironmentTemplateError> for Error {
920    fn from(err: crate::operation::delete_environment_template::DeleteEnvironmentTemplateError) -> Self {
921        match err {
922            crate::operation::delete_environment_template::DeleteEnvironmentTemplateError::AccessDeniedException(inner) => {
923                Error::AccessDeniedException(inner)
924            }
925            crate::operation::delete_environment_template::DeleteEnvironmentTemplateError::ConflictException(inner) => {
926                Error::ConflictException(inner)
927            }
928            crate::operation::delete_environment_template::DeleteEnvironmentTemplateError::InternalServerException(inner) => {
929                Error::InternalServerException(inner)
930            }
931            crate::operation::delete_environment_template::DeleteEnvironmentTemplateError::ResourceNotFoundException(inner) => {
932                Error::ResourceNotFoundException(inner)
933            }
934            crate::operation::delete_environment_template::DeleteEnvironmentTemplateError::ThrottlingException(inner) => {
935                Error::ThrottlingException(inner)
936            }
937            crate::operation::delete_environment_template::DeleteEnvironmentTemplateError::ValidationException(inner) => {
938                Error::ValidationException(inner)
939            }
940            crate::operation::delete_environment_template::DeleteEnvironmentTemplateError::Unhandled(inner) => Error::Unhandled(inner),
941        }
942    }
943}
944impl<R>
945    From<
946        ::aws_smithy_runtime_api::client::result::SdkError<
947            crate::operation::delete_environment_template_version::DeleteEnvironmentTemplateVersionError,
948            R,
949        >,
950    > for Error
951where
952    R: Send + Sync + std::fmt::Debug + 'static,
953{
954    fn from(
955        err: ::aws_smithy_runtime_api::client::result::SdkError<
956            crate::operation::delete_environment_template_version::DeleteEnvironmentTemplateVersionError,
957            R,
958        >,
959    ) -> Self {
960        match err {
961            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
962            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
963                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
964                source: err.into(),
965            }),
966        }
967    }
968}
969impl From<crate::operation::delete_environment_template_version::DeleteEnvironmentTemplateVersionError> for Error {
970    fn from(err: crate::operation::delete_environment_template_version::DeleteEnvironmentTemplateVersionError) -> Self {
971        match err {
972            crate::operation::delete_environment_template_version::DeleteEnvironmentTemplateVersionError::AccessDeniedException(inner) => {
973                Error::AccessDeniedException(inner)
974            }
975            crate::operation::delete_environment_template_version::DeleteEnvironmentTemplateVersionError::ConflictException(inner) => {
976                Error::ConflictException(inner)
977            }
978            crate::operation::delete_environment_template_version::DeleteEnvironmentTemplateVersionError::InternalServerException(inner) => {
979                Error::InternalServerException(inner)
980            }
981            crate::operation::delete_environment_template_version::DeleteEnvironmentTemplateVersionError::ResourceNotFoundException(inner) => {
982                Error::ResourceNotFoundException(inner)
983            }
984            crate::operation::delete_environment_template_version::DeleteEnvironmentTemplateVersionError::ThrottlingException(inner) => {
985                Error::ThrottlingException(inner)
986            }
987            crate::operation::delete_environment_template_version::DeleteEnvironmentTemplateVersionError::ValidationException(inner) => {
988                Error::ValidationException(inner)
989            }
990            crate::operation::delete_environment_template_version::DeleteEnvironmentTemplateVersionError::Unhandled(inner) => Error::Unhandled(inner),
991        }
992    }
993}
994impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_repository::DeleteRepositoryError, R>> for Error
995where
996    R: Send + Sync + std::fmt::Debug + 'static,
997{
998    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_repository::DeleteRepositoryError, R>) -> Self {
999        match err {
1000            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1001            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1002                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1003                source: err.into(),
1004            }),
1005        }
1006    }
1007}
1008impl From<crate::operation::delete_repository::DeleteRepositoryError> for Error {
1009    fn from(err: crate::operation::delete_repository::DeleteRepositoryError) -> Self {
1010        match err {
1011            crate::operation::delete_repository::DeleteRepositoryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1012            crate::operation::delete_repository::DeleteRepositoryError::ConflictException(inner) => Error::ConflictException(inner),
1013            crate::operation::delete_repository::DeleteRepositoryError::InternalServerException(inner) => Error::InternalServerException(inner),
1014            crate::operation::delete_repository::DeleteRepositoryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1015            crate::operation::delete_repository::DeleteRepositoryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1016            crate::operation::delete_repository::DeleteRepositoryError::ValidationException(inner) => Error::ValidationException(inner),
1017            crate::operation::delete_repository::DeleteRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
1018        }
1019    }
1020}
1021impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service::DeleteServiceError, R>> for Error
1022where
1023    R: Send + Sync + std::fmt::Debug + 'static,
1024{
1025    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service::DeleteServiceError, R>) -> Self {
1026        match err {
1027            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1028            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1029                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1030                source: err.into(),
1031            }),
1032        }
1033    }
1034}
1035impl From<crate::operation::delete_service::DeleteServiceError> for Error {
1036    fn from(err: crate::operation::delete_service::DeleteServiceError) -> Self {
1037        match err {
1038            crate::operation::delete_service::DeleteServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1039            crate::operation::delete_service::DeleteServiceError::ConflictException(inner) => Error::ConflictException(inner),
1040            crate::operation::delete_service::DeleteServiceError::InternalServerException(inner) => Error::InternalServerException(inner),
1041            crate::operation::delete_service::DeleteServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1042            crate::operation::delete_service::DeleteServiceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1043            crate::operation::delete_service::DeleteServiceError::ValidationException(inner) => Error::ValidationException(inner),
1044            crate::operation::delete_service::DeleteServiceError::Unhandled(inner) => Error::Unhandled(inner),
1045        }
1046    }
1047}
1048impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service_sync_config::DeleteServiceSyncConfigError, R>>
1049    for Error
1050where
1051    R: Send + Sync + std::fmt::Debug + 'static,
1052{
1053    fn from(
1054        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service_sync_config::DeleteServiceSyncConfigError, R>,
1055    ) -> Self {
1056        match err {
1057            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1058            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1059                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1060                source: err.into(),
1061            }),
1062        }
1063    }
1064}
1065impl From<crate::operation::delete_service_sync_config::DeleteServiceSyncConfigError> for Error {
1066    fn from(err: crate::operation::delete_service_sync_config::DeleteServiceSyncConfigError) -> Self {
1067        match err {
1068            crate::operation::delete_service_sync_config::DeleteServiceSyncConfigError::AccessDeniedException(inner) => {
1069                Error::AccessDeniedException(inner)
1070            }
1071            crate::operation::delete_service_sync_config::DeleteServiceSyncConfigError::ConflictException(inner) => Error::ConflictException(inner),
1072            crate::operation::delete_service_sync_config::DeleteServiceSyncConfigError::InternalServerException(inner) => {
1073                Error::InternalServerException(inner)
1074            }
1075            crate::operation::delete_service_sync_config::DeleteServiceSyncConfigError::ResourceNotFoundException(inner) => {
1076                Error::ResourceNotFoundException(inner)
1077            }
1078            crate::operation::delete_service_sync_config::DeleteServiceSyncConfigError::ThrottlingException(inner) => {
1079                Error::ThrottlingException(inner)
1080            }
1081            crate::operation::delete_service_sync_config::DeleteServiceSyncConfigError::ValidationException(inner) => {
1082                Error::ValidationException(inner)
1083            }
1084            crate::operation::delete_service_sync_config::DeleteServiceSyncConfigError::Unhandled(inner) => Error::Unhandled(inner),
1085        }
1086    }
1087}
1088impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service_template::DeleteServiceTemplateError, R>> for Error
1089where
1090    R: Send + Sync + std::fmt::Debug + 'static,
1091{
1092    fn from(
1093        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service_template::DeleteServiceTemplateError, R>,
1094    ) -> Self {
1095        match err {
1096            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1097            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1098                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1099                source: err.into(),
1100            }),
1101        }
1102    }
1103}
1104impl From<crate::operation::delete_service_template::DeleteServiceTemplateError> for Error {
1105    fn from(err: crate::operation::delete_service_template::DeleteServiceTemplateError) -> Self {
1106        match err {
1107            crate::operation::delete_service_template::DeleteServiceTemplateError::AccessDeniedException(inner) => {
1108                Error::AccessDeniedException(inner)
1109            }
1110            crate::operation::delete_service_template::DeleteServiceTemplateError::ConflictException(inner) => Error::ConflictException(inner),
1111            crate::operation::delete_service_template::DeleteServiceTemplateError::InternalServerException(inner) => {
1112                Error::InternalServerException(inner)
1113            }
1114            crate::operation::delete_service_template::DeleteServiceTemplateError::ResourceNotFoundException(inner) => {
1115                Error::ResourceNotFoundException(inner)
1116            }
1117            crate::operation::delete_service_template::DeleteServiceTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1118            crate::operation::delete_service_template::DeleteServiceTemplateError::ValidationException(inner) => Error::ValidationException(inner),
1119            crate::operation::delete_service_template::DeleteServiceTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1120        }
1121    }
1122}
1123impl<R>
1124    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service_template_version::DeleteServiceTemplateVersionError, R>>
1125    for Error
1126where
1127    R: Send + Sync + std::fmt::Debug + 'static,
1128{
1129    fn from(
1130        err: ::aws_smithy_runtime_api::client::result::SdkError<
1131            crate::operation::delete_service_template_version::DeleteServiceTemplateVersionError,
1132            R,
1133        >,
1134    ) -> Self {
1135        match err {
1136            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1137            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1138                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1139                source: err.into(),
1140            }),
1141        }
1142    }
1143}
1144impl From<crate::operation::delete_service_template_version::DeleteServiceTemplateVersionError> for Error {
1145    fn from(err: crate::operation::delete_service_template_version::DeleteServiceTemplateVersionError) -> Self {
1146        match err {
1147            crate::operation::delete_service_template_version::DeleteServiceTemplateVersionError::AccessDeniedException(inner) => {
1148                Error::AccessDeniedException(inner)
1149            }
1150            crate::operation::delete_service_template_version::DeleteServiceTemplateVersionError::ConflictException(inner) => {
1151                Error::ConflictException(inner)
1152            }
1153            crate::operation::delete_service_template_version::DeleteServiceTemplateVersionError::InternalServerException(inner) => {
1154                Error::InternalServerException(inner)
1155            }
1156            crate::operation::delete_service_template_version::DeleteServiceTemplateVersionError::ResourceNotFoundException(inner) => {
1157                Error::ResourceNotFoundException(inner)
1158            }
1159            crate::operation::delete_service_template_version::DeleteServiceTemplateVersionError::ThrottlingException(inner) => {
1160                Error::ThrottlingException(inner)
1161            }
1162            crate::operation::delete_service_template_version::DeleteServiceTemplateVersionError::ValidationException(inner) => {
1163                Error::ValidationException(inner)
1164            }
1165            crate::operation::delete_service_template_version::DeleteServiceTemplateVersionError::Unhandled(inner) => Error::Unhandled(inner),
1166        }
1167    }
1168}
1169impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template_sync_config::DeleteTemplateSyncConfigError, R>>
1170    for Error
1171where
1172    R: Send + Sync + std::fmt::Debug + 'static,
1173{
1174    fn from(
1175        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_template_sync_config::DeleteTemplateSyncConfigError, R>,
1176    ) -> Self {
1177        match err {
1178            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1179            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1180                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1181                source: err.into(),
1182            }),
1183        }
1184    }
1185}
1186impl From<crate::operation::delete_template_sync_config::DeleteTemplateSyncConfigError> for Error {
1187    fn from(err: crate::operation::delete_template_sync_config::DeleteTemplateSyncConfigError) -> Self {
1188        match err {
1189            crate::operation::delete_template_sync_config::DeleteTemplateSyncConfigError::AccessDeniedException(inner) => {
1190                Error::AccessDeniedException(inner)
1191            }
1192            crate::operation::delete_template_sync_config::DeleteTemplateSyncConfigError::ConflictException(inner) => Error::ConflictException(inner),
1193            crate::operation::delete_template_sync_config::DeleteTemplateSyncConfigError::InternalServerException(inner) => {
1194                Error::InternalServerException(inner)
1195            }
1196            crate::operation::delete_template_sync_config::DeleteTemplateSyncConfigError::ResourceNotFoundException(inner) => {
1197                Error::ResourceNotFoundException(inner)
1198            }
1199            crate::operation::delete_template_sync_config::DeleteTemplateSyncConfigError::ThrottlingException(inner) => {
1200                Error::ThrottlingException(inner)
1201            }
1202            crate::operation::delete_template_sync_config::DeleteTemplateSyncConfigError::ValidationException(inner) => {
1203                Error::ValidationException(inner)
1204            }
1205            crate::operation::delete_template_sync_config::DeleteTemplateSyncConfigError::Unhandled(inner) => Error::Unhandled(inner),
1206        }
1207    }
1208}
1209impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_settings::GetAccountSettingsError, R>> for Error
1210where
1211    R: Send + Sync + std::fmt::Debug + 'static,
1212{
1213    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_settings::GetAccountSettingsError, R>) -> Self {
1214        match err {
1215            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1216            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1217                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1218                source: err.into(),
1219            }),
1220        }
1221    }
1222}
1223impl From<crate::operation::get_account_settings::GetAccountSettingsError> for Error {
1224    fn from(err: crate::operation::get_account_settings::GetAccountSettingsError) -> Self {
1225        match err {
1226            crate::operation::get_account_settings::GetAccountSettingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1227            crate::operation::get_account_settings::GetAccountSettingsError::InternalServerException(inner) => Error::InternalServerException(inner),
1228            crate::operation::get_account_settings::GetAccountSettingsError::ResourceNotFoundException(inner) => {
1229                Error::ResourceNotFoundException(inner)
1230            }
1231            crate::operation::get_account_settings::GetAccountSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1232            crate::operation::get_account_settings::GetAccountSettingsError::ValidationException(inner) => Error::ValidationException(inner),
1233            crate::operation::get_account_settings::GetAccountSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1234        }
1235    }
1236}
1237impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_component::GetComponentError, R>> for Error
1238where
1239    R: Send + Sync + std::fmt::Debug + 'static,
1240{
1241    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_component::GetComponentError, R>) -> Self {
1242        match err {
1243            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1244            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1245                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1246                source: err.into(),
1247            }),
1248        }
1249    }
1250}
1251impl From<crate::operation::get_component::GetComponentError> for Error {
1252    fn from(err: crate::operation::get_component::GetComponentError) -> Self {
1253        match err {
1254            crate::operation::get_component::GetComponentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1255            crate::operation::get_component::GetComponentError::InternalServerException(inner) => Error::InternalServerException(inner),
1256            crate::operation::get_component::GetComponentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1257            crate::operation::get_component::GetComponentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1258            crate::operation::get_component::GetComponentError::ValidationException(inner) => Error::ValidationException(inner),
1259            crate::operation::get_component::GetComponentError::Unhandled(inner) => Error::Unhandled(inner),
1260        }
1261    }
1262}
1263impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_deployment::GetDeploymentError, R>> for Error
1264where
1265    R: Send + Sync + std::fmt::Debug + 'static,
1266{
1267    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_deployment::GetDeploymentError, R>) -> Self {
1268        match err {
1269            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1270            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1271                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1272                source: err.into(),
1273            }),
1274        }
1275    }
1276}
1277impl From<crate::operation::get_deployment::GetDeploymentError> for Error {
1278    fn from(err: crate::operation::get_deployment::GetDeploymentError) -> Self {
1279        match err {
1280            crate::operation::get_deployment::GetDeploymentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1281            crate::operation::get_deployment::GetDeploymentError::InternalServerException(inner) => Error::InternalServerException(inner),
1282            crate::operation::get_deployment::GetDeploymentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1283            crate::operation::get_deployment::GetDeploymentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1284            crate::operation::get_deployment::GetDeploymentError::ValidationException(inner) => Error::ValidationException(inner),
1285            crate::operation::get_deployment::GetDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
1286        }
1287    }
1288}
1289impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_environment::GetEnvironmentError, R>> for Error
1290where
1291    R: Send + Sync + std::fmt::Debug + 'static,
1292{
1293    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_environment::GetEnvironmentError, R>) -> Self {
1294        match err {
1295            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1296            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1297                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1298                source: err.into(),
1299            }),
1300        }
1301    }
1302}
1303impl From<crate::operation::get_environment::GetEnvironmentError> for Error {
1304    fn from(err: crate::operation::get_environment::GetEnvironmentError) -> Self {
1305        match err {
1306            crate::operation::get_environment::GetEnvironmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1307            crate::operation::get_environment::GetEnvironmentError::InternalServerException(inner) => Error::InternalServerException(inner),
1308            crate::operation::get_environment::GetEnvironmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1309            crate::operation::get_environment::GetEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1310            crate::operation::get_environment::GetEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
1311            crate::operation::get_environment::GetEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
1312        }
1313    }
1314}
1315impl<R>
1316    From<
1317        ::aws_smithy_runtime_api::client::result::SdkError<
1318            crate::operation::get_environment_account_connection::GetEnvironmentAccountConnectionError,
1319            R,
1320        >,
1321    > for Error
1322where
1323    R: Send + Sync + std::fmt::Debug + 'static,
1324{
1325    fn from(
1326        err: ::aws_smithy_runtime_api::client::result::SdkError<
1327            crate::operation::get_environment_account_connection::GetEnvironmentAccountConnectionError,
1328            R,
1329        >,
1330    ) -> Self {
1331        match err {
1332            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1333            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1334                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1335                source: err.into(),
1336            }),
1337        }
1338    }
1339}
1340impl From<crate::operation::get_environment_account_connection::GetEnvironmentAccountConnectionError> for Error {
1341    fn from(err: crate::operation::get_environment_account_connection::GetEnvironmentAccountConnectionError) -> Self {
1342        match err {
1343            crate::operation::get_environment_account_connection::GetEnvironmentAccountConnectionError::AccessDeniedException(inner) => {
1344                Error::AccessDeniedException(inner)
1345            }
1346            crate::operation::get_environment_account_connection::GetEnvironmentAccountConnectionError::InternalServerException(inner) => {
1347                Error::InternalServerException(inner)
1348            }
1349            crate::operation::get_environment_account_connection::GetEnvironmentAccountConnectionError::ResourceNotFoundException(inner) => {
1350                Error::ResourceNotFoundException(inner)
1351            }
1352            crate::operation::get_environment_account_connection::GetEnvironmentAccountConnectionError::ThrottlingException(inner) => {
1353                Error::ThrottlingException(inner)
1354            }
1355            crate::operation::get_environment_account_connection::GetEnvironmentAccountConnectionError::ValidationException(inner) => {
1356                Error::ValidationException(inner)
1357            }
1358            crate::operation::get_environment_account_connection::GetEnvironmentAccountConnectionError::Unhandled(inner) => Error::Unhandled(inner),
1359        }
1360    }
1361}
1362impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_environment_template::GetEnvironmentTemplateError, R>> for Error
1363where
1364    R: Send + Sync + std::fmt::Debug + 'static,
1365{
1366    fn from(
1367        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_environment_template::GetEnvironmentTemplateError, R>,
1368    ) -> Self {
1369        match err {
1370            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1371            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1372                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1373                source: err.into(),
1374            }),
1375        }
1376    }
1377}
1378impl From<crate::operation::get_environment_template::GetEnvironmentTemplateError> for Error {
1379    fn from(err: crate::operation::get_environment_template::GetEnvironmentTemplateError) -> Self {
1380        match err {
1381            crate::operation::get_environment_template::GetEnvironmentTemplateError::AccessDeniedException(inner) => {
1382                Error::AccessDeniedException(inner)
1383            }
1384            crate::operation::get_environment_template::GetEnvironmentTemplateError::InternalServerException(inner) => {
1385                Error::InternalServerException(inner)
1386            }
1387            crate::operation::get_environment_template::GetEnvironmentTemplateError::ResourceNotFoundException(inner) => {
1388                Error::ResourceNotFoundException(inner)
1389            }
1390            crate::operation::get_environment_template::GetEnvironmentTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1391            crate::operation::get_environment_template::GetEnvironmentTemplateError::ValidationException(inner) => Error::ValidationException(inner),
1392            crate::operation::get_environment_template::GetEnvironmentTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1393        }
1394    }
1395}
1396impl<R>
1397    From<
1398        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_environment_template_version::GetEnvironmentTemplateVersionError, R>,
1399    > for Error
1400where
1401    R: Send + Sync + std::fmt::Debug + 'static,
1402{
1403    fn from(
1404        err: ::aws_smithy_runtime_api::client::result::SdkError<
1405            crate::operation::get_environment_template_version::GetEnvironmentTemplateVersionError,
1406            R,
1407        >,
1408    ) -> Self {
1409        match err {
1410            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1411            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1412                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1413                source: err.into(),
1414            }),
1415        }
1416    }
1417}
1418impl From<crate::operation::get_environment_template_version::GetEnvironmentTemplateVersionError> for Error {
1419    fn from(err: crate::operation::get_environment_template_version::GetEnvironmentTemplateVersionError) -> Self {
1420        match err {
1421            crate::operation::get_environment_template_version::GetEnvironmentTemplateVersionError::AccessDeniedException(inner) => {
1422                Error::AccessDeniedException(inner)
1423            }
1424            crate::operation::get_environment_template_version::GetEnvironmentTemplateVersionError::InternalServerException(inner) => {
1425                Error::InternalServerException(inner)
1426            }
1427            crate::operation::get_environment_template_version::GetEnvironmentTemplateVersionError::ResourceNotFoundException(inner) => {
1428                Error::ResourceNotFoundException(inner)
1429            }
1430            crate::operation::get_environment_template_version::GetEnvironmentTemplateVersionError::ThrottlingException(inner) => {
1431                Error::ThrottlingException(inner)
1432            }
1433            crate::operation::get_environment_template_version::GetEnvironmentTemplateVersionError::ValidationException(inner) => {
1434                Error::ValidationException(inner)
1435            }
1436            crate::operation::get_environment_template_version::GetEnvironmentTemplateVersionError::Unhandled(inner) => Error::Unhandled(inner),
1437        }
1438    }
1439}
1440impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_repository::GetRepositoryError, R>> for Error
1441where
1442    R: Send + Sync + std::fmt::Debug + 'static,
1443{
1444    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_repository::GetRepositoryError, R>) -> Self {
1445        match err {
1446            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1447            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1448                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1449                source: err.into(),
1450            }),
1451        }
1452    }
1453}
1454impl From<crate::operation::get_repository::GetRepositoryError> for Error {
1455    fn from(err: crate::operation::get_repository::GetRepositoryError) -> Self {
1456        match err {
1457            crate::operation::get_repository::GetRepositoryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1458            crate::operation::get_repository::GetRepositoryError::InternalServerException(inner) => Error::InternalServerException(inner),
1459            crate::operation::get_repository::GetRepositoryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1460            crate::operation::get_repository::GetRepositoryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1461            crate::operation::get_repository::GetRepositoryError::ValidationException(inner) => Error::ValidationException(inner),
1462            crate::operation::get_repository::GetRepositoryError::Unhandled(inner) => Error::Unhandled(inner),
1463        }
1464    }
1465}
1466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_repository_sync_status::GetRepositorySyncStatusError, R>>
1467    for Error
1468where
1469    R: Send + Sync + std::fmt::Debug + 'static,
1470{
1471    fn from(
1472        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_repository_sync_status::GetRepositorySyncStatusError, R>,
1473    ) -> Self {
1474        match err {
1475            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1476            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1477                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1478                source: err.into(),
1479            }),
1480        }
1481    }
1482}
1483impl From<crate::operation::get_repository_sync_status::GetRepositorySyncStatusError> for Error {
1484    fn from(err: crate::operation::get_repository_sync_status::GetRepositorySyncStatusError) -> Self {
1485        match err {
1486            crate::operation::get_repository_sync_status::GetRepositorySyncStatusError::AccessDeniedException(inner) => {
1487                Error::AccessDeniedException(inner)
1488            }
1489            crate::operation::get_repository_sync_status::GetRepositorySyncStatusError::InternalServerException(inner) => {
1490                Error::InternalServerException(inner)
1491            }
1492            crate::operation::get_repository_sync_status::GetRepositorySyncStatusError::ResourceNotFoundException(inner) => {
1493                Error::ResourceNotFoundException(inner)
1494            }
1495            crate::operation::get_repository_sync_status::GetRepositorySyncStatusError::ThrottlingException(inner) => {
1496                Error::ThrottlingException(inner)
1497            }
1498            crate::operation::get_repository_sync_status::GetRepositorySyncStatusError::ValidationException(inner) => {
1499                Error::ValidationException(inner)
1500            }
1501            crate::operation::get_repository_sync_status::GetRepositorySyncStatusError::Unhandled(inner) => Error::Unhandled(inner),
1502        }
1503    }
1504}
1505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resources_summary::GetResourcesSummaryError, R>> for Error
1506where
1507    R: Send + Sync + std::fmt::Debug + 'static,
1508{
1509    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resources_summary::GetResourcesSummaryError, R>) -> Self {
1510        match err {
1511            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1512            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1513                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1514                source: err.into(),
1515            }),
1516        }
1517    }
1518}
1519impl From<crate::operation::get_resources_summary::GetResourcesSummaryError> for Error {
1520    fn from(err: crate::operation::get_resources_summary::GetResourcesSummaryError) -> Self {
1521        match err {
1522            crate::operation::get_resources_summary::GetResourcesSummaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1523            crate::operation::get_resources_summary::GetResourcesSummaryError::InternalServerException(inner) => {
1524                Error::InternalServerException(inner)
1525            }
1526            crate::operation::get_resources_summary::GetResourcesSummaryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1527            crate::operation::get_resources_summary::GetResourcesSummaryError::ValidationException(inner) => Error::ValidationException(inner),
1528            crate::operation::get_resources_summary::GetResourcesSummaryError::Unhandled(inner) => Error::Unhandled(inner),
1529        }
1530    }
1531}
1532impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service::GetServiceError, R>> for Error
1533where
1534    R: Send + Sync + std::fmt::Debug + 'static,
1535{
1536    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service::GetServiceError, R>) -> Self {
1537        match err {
1538            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1539            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1540                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1541                source: err.into(),
1542            }),
1543        }
1544    }
1545}
1546impl From<crate::operation::get_service::GetServiceError> for Error {
1547    fn from(err: crate::operation::get_service::GetServiceError) -> Self {
1548        match err {
1549            crate::operation::get_service::GetServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1550            crate::operation::get_service::GetServiceError::InternalServerException(inner) => Error::InternalServerException(inner),
1551            crate::operation::get_service::GetServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1552            crate::operation::get_service::GetServiceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1553            crate::operation::get_service::GetServiceError::ValidationException(inner) => Error::ValidationException(inner),
1554            crate::operation::get_service::GetServiceError::Unhandled(inner) => Error::Unhandled(inner),
1555        }
1556    }
1557}
1558impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_instance::GetServiceInstanceError, R>> for Error
1559where
1560    R: Send + Sync + std::fmt::Debug + 'static,
1561{
1562    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_instance::GetServiceInstanceError, R>) -> Self {
1563        match err {
1564            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1565            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1566                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1567                source: err.into(),
1568            }),
1569        }
1570    }
1571}
1572impl From<crate::operation::get_service_instance::GetServiceInstanceError> for Error {
1573    fn from(err: crate::operation::get_service_instance::GetServiceInstanceError) -> Self {
1574        match err {
1575            crate::operation::get_service_instance::GetServiceInstanceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1576            crate::operation::get_service_instance::GetServiceInstanceError::InternalServerException(inner) => Error::InternalServerException(inner),
1577            crate::operation::get_service_instance::GetServiceInstanceError::ResourceNotFoundException(inner) => {
1578                Error::ResourceNotFoundException(inner)
1579            }
1580            crate::operation::get_service_instance::GetServiceInstanceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1581            crate::operation::get_service_instance::GetServiceInstanceError::ValidationException(inner) => Error::ValidationException(inner),
1582            crate::operation::get_service_instance::GetServiceInstanceError::Unhandled(inner) => Error::Unhandled(inner),
1583        }
1584    }
1585}
1586impl<R>
1587    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_instance_sync_status::GetServiceInstanceSyncStatusError, R>>
1588    for Error
1589where
1590    R: Send + Sync + std::fmt::Debug + 'static,
1591{
1592    fn from(
1593        err: ::aws_smithy_runtime_api::client::result::SdkError<
1594            crate::operation::get_service_instance_sync_status::GetServiceInstanceSyncStatusError,
1595            R,
1596        >,
1597    ) -> Self {
1598        match err {
1599            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1600            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1601                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1602                source: err.into(),
1603            }),
1604        }
1605    }
1606}
1607impl From<crate::operation::get_service_instance_sync_status::GetServiceInstanceSyncStatusError> for Error {
1608    fn from(err: crate::operation::get_service_instance_sync_status::GetServiceInstanceSyncStatusError) -> Self {
1609        match err {
1610            crate::operation::get_service_instance_sync_status::GetServiceInstanceSyncStatusError::AccessDeniedException(inner) => {
1611                Error::AccessDeniedException(inner)
1612            }
1613            crate::operation::get_service_instance_sync_status::GetServiceInstanceSyncStatusError::InternalServerException(inner) => {
1614                Error::InternalServerException(inner)
1615            }
1616            crate::operation::get_service_instance_sync_status::GetServiceInstanceSyncStatusError::ResourceNotFoundException(inner) => {
1617                Error::ResourceNotFoundException(inner)
1618            }
1619            crate::operation::get_service_instance_sync_status::GetServiceInstanceSyncStatusError::ThrottlingException(inner) => {
1620                Error::ThrottlingException(inner)
1621            }
1622            crate::operation::get_service_instance_sync_status::GetServiceInstanceSyncStatusError::ValidationException(inner) => {
1623                Error::ValidationException(inner)
1624            }
1625            crate::operation::get_service_instance_sync_status::GetServiceInstanceSyncStatusError::Unhandled(inner) => Error::Unhandled(inner),
1626        }
1627    }
1628}
1629impl<R>
1630    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_sync_blocker_summary::GetServiceSyncBlockerSummaryError, R>>
1631    for Error
1632where
1633    R: Send + Sync + std::fmt::Debug + 'static,
1634{
1635    fn from(
1636        err: ::aws_smithy_runtime_api::client::result::SdkError<
1637            crate::operation::get_service_sync_blocker_summary::GetServiceSyncBlockerSummaryError,
1638            R,
1639        >,
1640    ) -> Self {
1641        match err {
1642            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1643            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1644                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1645                source: err.into(),
1646            }),
1647        }
1648    }
1649}
1650impl From<crate::operation::get_service_sync_blocker_summary::GetServiceSyncBlockerSummaryError> for Error {
1651    fn from(err: crate::operation::get_service_sync_blocker_summary::GetServiceSyncBlockerSummaryError) -> Self {
1652        match err {
1653            crate::operation::get_service_sync_blocker_summary::GetServiceSyncBlockerSummaryError::AccessDeniedException(inner) => {
1654                Error::AccessDeniedException(inner)
1655            }
1656            crate::operation::get_service_sync_blocker_summary::GetServiceSyncBlockerSummaryError::InternalServerException(inner) => {
1657                Error::InternalServerException(inner)
1658            }
1659            crate::operation::get_service_sync_blocker_summary::GetServiceSyncBlockerSummaryError::ResourceNotFoundException(inner) => {
1660                Error::ResourceNotFoundException(inner)
1661            }
1662            crate::operation::get_service_sync_blocker_summary::GetServiceSyncBlockerSummaryError::ThrottlingException(inner) => {
1663                Error::ThrottlingException(inner)
1664            }
1665            crate::operation::get_service_sync_blocker_summary::GetServiceSyncBlockerSummaryError::ValidationException(inner) => {
1666                Error::ValidationException(inner)
1667            }
1668            crate::operation::get_service_sync_blocker_summary::GetServiceSyncBlockerSummaryError::Unhandled(inner) => Error::Unhandled(inner),
1669        }
1670    }
1671}
1672impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_sync_config::GetServiceSyncConfigError, R>> for Error
1673where
1674    R: Send + Sync + std::fmt::Debug + 'static,
1675{
1676    fn from(
1677        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_sync_config::GetServiceSyncConfigError, R>,
1678    ) -> Self {
1679        match err {
1680            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1681            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1682                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1683                source: err.into(),
1684            }),
1685        }
1686    }
1687}
1688impl From<crate::operation::get_service_sync_config::GetServiceSyncConfigError> for Error {
1689    fn from(err: crate::operation::get_service_sync_config::GetServiceSyncConfigError) -> Self {
1690        match err {
1691            crate::operation::get_service_sync_config::GetServiceSyncConfigError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1692            crate::operation::get_service_sync_config::GetServiceSyncConfigError::InternalServerException(inner) => {
1693                Error::InternalServerException(inner)
1694            }
1695            crate::operation::get_service_sync_config::GetServiceSyncConfigError::ResourceNotFoundException(inner) => {
1696                Error::ResourceNotFoundException(inner)
1697            }
1698            crate::operation::get_service_sync_config::GetServiceSyncConfigError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1699            crate::operation::get_service_sync_config::GetServiceSyncConfigError::ValidationException(inner) => Error::ValidationException(inner),
1700            crate::operation::get_service_sync_config::GetServiceSyncConfigError::Unhandled(inner) => Error::Unhandled(inner),
1701        }
1702    }
1703}
1704impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_template::GetServiceTemplateError, R>> for Error
1705where
1706    R: Send + Sync + std::fmt::Debug + 'static,
1707{
1708    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_template::GetServiceTemplateError, R>) -> Self {
1709        match err {
1710            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1711            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1712                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1713                source: err.into(),
1714            }),
1715        }
1716    }
1717}
1718impl From<crate::operation::get_service_template::GetServiceTemplateError> for Error {
1719    fn from(err: crate::operation::get_service_template::GetServiceTemplateError) -> Self {
1720        match err {
1721            crate::operation::get_service_template::GetServiceTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1722            crate::operation::get_service_template::GetServiceTemplateError::InternalServerException(inner) => Error::InternalServerException(inner),
1723            crate::operation::get_service_template::GetServiceTemplateError::ResourceNotFoundException(inner) => {
1724                Error::ResourceNotFoundException(inner)
1725            }
1726            crate::operation::get_service_template::GetServiceTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1727            crate::operation::get_service_template::GetServiceTemplateError::ValidationException(inner) => Error::ValidationException(inner),
1728            crate::operation::get_service_template::GetServiceTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1729        }
1730    }
1731}
1732impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_template_version::GetServiceTemplateVersionError, R>>
1733    for Error
1734where
1735    R: Send + Sync + std::fmt::Debug + 'static,
1736{
1737    fn from(
1738        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service_template_version::GetServiceTemplateVersionError, R>,
1739    ) -> Self {
1740        match err {
1741            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1742            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1743                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1744                source: err.into(),
1745            }),
1746        }
1747    }
1748}
1749impl From<crate::operation::get_service_template_version::GetServiceTemplateVersionError> for Error {
1750    fn from(err: crate::operation::get_service_template_version::GetServiceTemplateVersionError) -> Self {
1751        match err {
1752            crate::operation::get_service_template_version::GetServiceTemplateVersionError::AccessDeniedException(inner) => {
1753                Error::AccessDeniedException(inner)
1754            }
1755            crate::operation::get_service_template_version::GetServiceTemplateVersionError::InternalServerException(inner) => {
1756                Error::InternalServerException(inner)
1757            }
1758            crate::operation::get_service_template_version::GetServiceTemplateVersionError::ResourceNotFoundException(inner) => {
1759                Error::ResourceNotFoundException(inner)
1760            }
1761            crate::operation::get_service_template_version::GetServiceTemplateVersionError::ThrottlingException(inner) => {
1762                Error::ThrottlingException(inner)
1763            }
1764            crate::operation::get_service_template_version::GetServiceTemplateVersionError::ValidationException(inner) => {
1765                Error::ValidationException(inner)
1766            }
1767            crate::operation::get_service_template_version::GetServiceTemplateVersionError::Unhandled(inner) => Error::Unhandled(inner),
1768        }
1769    }
1770}
1771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template_sync_config::GetTemplateSyncConfigError, R>> for Error
1772where
1773    R: Send + Sync + std::fmt::Debug + 'static,
1774{
1775    fn from(
1776        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template_sync_config::GetTemplateSyncConfigError, R>,
1777    ) -> Self {
1778        match err {
1779            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1780            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1781                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1782                source: err.into(),
1783            }),
1784        }
1785    }
1786}
1787impl From<crate::operation::get_template_sync_config::GetTemplateSyncConfigError> for Error {
1788    fn from(err: crate::operation::get_template_sync_config::GetTemplateSyncConfigError) -> Self {
1789        match err {
1790            crate::operation::get_template_sync_config::GetTemplateSyncConfigError::AccessDeniedException(inner) => {
1791                Error::AccessDeniedException(inner)
1792            }
1793            crate::operation::get_template_sync_config::GetTemplateSyncConfigError::InternalServerException(inner) => {
1794                Error::InternalServerException(inner)
1795            }
1796            crate::operation::get_template_sync_config::GetTemplateSyncConfigError::ResourceNotFoundException(inner) => {
1797                Error::ResourceNotFoundException(inner)
1798            }
1799            crate::operation::get_template_sync_config::GetTemplateSyncConfigError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1800            crate::operation::get_template_sync_config::GetTemplateSyncConfigError::ValidationException(inner) => Error::ValidationException(inner),
1801            crate::operation::get_template_sync_config::GetTemplateSyncConfigError::Unhandled(inner) => Error::Unhandled(inner),
1802        }
1803    }
1804}
1805impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template_sync_status::GetTemplateSyncStatusError, R>> for Error
1806where
1807    R: Send + Sync + std::fmt::Debug + 'static,
1808{
1809    fn from(
1810        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template_sync_status::GetTemplateSyncStatusError, R>,
1811    ) -> Self {
1812        match err {
1813            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1814            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1815                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1816                source: err.into(),
1817            }),
1818        }
1819    }
1820}
1821impl From<crate::operation::get_template_sync_status::GetTemplateSyncStatusError> for Error {
1822    fn from(err: crate::operation::get_template_sync_status::GetTemplateSyncStatusError) -> Self {
1823        match err {
1824            crate::operation::get_template_sync_status::GetTemplateSyncStatusError::AccessDeniedException(inner) => {
1825                Error::AccessDeniedException(inner)
1826            }
1827            crate::operation::get_template_sync_status::GetTemplateSyncStatusError::InternalServerException(inner) => {
1828                Error::InternalServerException(inner)
1829            }
1830            crate::operation::get_template_sync_status::GetTemplateSyncStatusError::ResourceNotFoundException(inner) => {
1831                Error::ResourceNotFoundException(inner)
1832            }
1833            crate::operation::get_template_sync_status::GetTemplateSyncStatusError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1834            crate::operation::get_template_sync_status::GetTemplateSyncStatusError::ValidationException(inner) => Error::ValidationException(inner),
1835            crate::operation::get_template_sync_status::GetTemplateSyncStatusError::Unhandled(inner) => Error::Unhandled(inner),
1836        }
1837    }
1838}
1839impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_component_outputs::ListComponentOutputsError, R>> for Error
1840where
1841    R: Send + Sync + std::fmt::Debug + 'static,
1842{
1843    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_component_outputs::ListComponentOutputsError, R>) -> Self {
1844        match err {
1845            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1846            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1847                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1848                source: err.into(),
1849            }),
1850        }
1851    }
1852}
1853impl From<crate::operation::list_component_outputs::ListComponentOutputsError> for Error {
1854    fn from(err: crate::operation::list_component_outputs::ListComponentOutputsError) -> Self {
1855        match err {
1856            crate::operation::list_component_outputs::ListComponentOutputsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1857            crate::operation::list_component_outputs::ListComponentOutputsError::InternalServerException(inner) => {
1858                Error::InternalServerException(inner)
1859            }
1860            crate::operation::list_component_outputs::ListComponentOutputsError::ResourceNotFoundException(inner) => {
1861                Error::ResourceNotFoundException(inner)
1862            }
1863            crate::operation::list_component_outputs::ListComponentOutputsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1864            crate::operation::list_component_outputs::ListComponentOutputsError::ValidationException(inner) => Error::ValidationException(inner),
1865            crate::operation::list_component_outputs::ListComponentOutputsError::Unhandled(inner) => Error::Unhandled(inner),
1866        }
1867    }
1868}
1869impl<R>
1870    From<
1871        ::aws_smithy_runtime_api::client::result::SdkError<
1872            crate::operation::list_component_provisioned_resources::ListComponentProvisionedResourcesError,
1873            R,
1874        >,
1875    > for Error
1876where
1877    R: Send + Sync + std::fmt::Debug + 'static,
1878{
1879    fn from(
1880        err: ::aws_smithy_runtime_api::client::result::SdkError<
1881            crate::operation::list_component_provisioned_resources::ListComponentProvisionedResourcesError,
1882            R,
1883        >,
1884    ) -> Self {
1885        match err {
1886            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1887            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1888                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1889                source: err.into(),
1890            }),
1891        }
1892    }
1893}
1894impl From<crate::operation::list_component_provisioned_resources::ListComponentProvisionedResourcesError> for Error {
1895    fn from(err: crate::operation::list_component_provisioned_resources::ListComponentProvisionedResourcesError) -> Self {
1896        match err {
1897            crate::operation::list_component_provisioned_resources::ListComponentProvisionedResourcesError::AccessDeniedException(inner) => {
1898                Error::AccessDeniedException(inner)
1899            }
1900            crate::operation::list_component_provisioned_resources::ListComponentProvisionedResourcesError::InternalServerException(inner) => {
1901                Error::InternalServerException(inner)
1902            }
1903            crate::operation::list_component_provisioned_resources::ListComponentProvisionedResourcesError::ResourceNotFoundException(inner) => {
1904                Error::ResourceNotFoundException(inner)
1905            }
1906            crate::operation::list_component_provisioned_resources::ListComponentProvisionedResourcesError::ThrottlingException(inner) => {
1907                Error::ThrottlingException(inner)
1908            }
1909            crate::operation::list_component_provisioned_resources::ListComponentProvisionedResourcesError::ValidationException(inner) => {
1910                Error::ValidationException(inner)
1911            }
1912            crate::operation::list_component_provisioned_resources::ListComponentProvisionedResourcesError::Unhandled(inner) => {
1913                Error::Unhandled(inner)
1914            }
1915        }
1916    }
1917}
1918impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_components::ListComponentsError, R>> for Error
1919where
1920    R: Send + Sync + std::fmt::Debug + 'static,
1921{
1922    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_components::ListComponentsError, R>) -> Self {
1923        match err {
1924            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1925            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1926                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1927                source: err.into(),
1928            }),
1929        }
1930    }
1931}
1932impl From<crate::operation::list_components::ListComponentsError> for Error {
1933    fn from(err: crate::operation::list_components::ListComponentsError) -> Self {
1934        match err {
1935            crate::operation::list_components::ListComponentsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1936            crate::operation::list_components::ListComponentsError::InternalServerException(inner) => Error::InternalServerException(inner),
1937            crate::operation::list_components::ListComponentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1938            crate::operation::list_components::ListComponentsError::ValidationException(inner) => Error::ValidationException(inner),
1939            crate::operation::list_components::ListComponentsError::Unhandled(inner) => Error::Unhandled(inner),
1940        }
1941    }
1942}
1943impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_deployments::ListDeploymentsError, R>> for Error
1944where
1945    R: Send + Sync + std::fmt::Debug + 'static,
1946{
1947    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_deployments::ListDeploymentsError, R>) -> Self {
1948        match err {
1949            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1950            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1951                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1952                source: err.into(),
1953            }),
1954        }
1955    }
1956}
1957impl From<crate::operation::list_deployments::ListDeploymentsError> for Error {
1958    fn from(err: crate::operation::list_deployments::ListDeploymentsError) -> Self {
1959        match err {
1960            crate::operation::list_deployments::ListDeploymentsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1961            crate::operation::list_deployments::ListDeploymentsError::InternalServerException(inner) => Error::InternalServerException(inner),
1962            crate::operation::list_deployments::ListDeploymentsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1963            crate::operation::list_deployments::ListDeploymentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1964            crate::operation::list_deployments::ListDeploymentsError::ValidationException(inner) => Error::ValidationException(inner),
1965            crate::operation::list_deployments::ListDeploymentsError::Unhandled(inner) => Error::Unhandled(inner),
1966        }
1967    }
1968}
1969impl<R>
1970    From<
1971        ::aws_smithy_runtime_api::client::result::SdkError<
1972            crate::operation::list_environment_account_connections::ListEnvironmentAccountConnectionsError,
1973            R,
1974        >,
1975    > for Error
1976where
1977    R: Send + Sync + std::fmt::Debug + 'static,
1978{
1979    fn from(
1980        err: ::aws_smithy_runtime_api::client::result::SdkError<
1981            crate::operation::list_environment_account_connections::ListEnvironmentAccountConnectionsError,
1982            R,
1983        >,
1984    ) -> Self {
1985        match err {
1986            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1987            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1988                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1989                source: err.into(),
1990            }),
1991        }
1992    }
1993}
1994impl From<crate::operation::list_environment_account_connections::ListEnvironmentAccountConnectionsError> for Error {
1995    fn from(err: crate::operation::list_environment_account_connections::ListEnvironmentAccountConnectionsError) -> Self {
1996        match err {
1997            crate::operation::list_environment_account_connections::ListEnvironmentAccountConnectionsError::AccessDeniedException(inner) => {
1998                Error::AccessDeniedException(inner)
1999            }
2000            crate::operation::list_environment_account_connections::ListEnvironmentAccountConnectionsError::InternalServerException(inner) => {
2001                Error::InternalServerException(inner)
2002            }
2003            crate::operation::list_environment_account_connections::ListEnvironmentAccountConnectionsError::ThrottlingException(inner) => {
2004                Error::ThrottlingException(inner)
2005            }
2006            crate::operation::list_environment_account_connections::ListEnvironmentAccountConnectionsError::ValidationException(inner) => {
2007                Error::ValidationException(inner)
2008            }
2009            crate::operation::list_environment_account_connections::ListEnvironmentAccountConnectionsError::Unhandled(inner) => {
2010                Error::Unhandled(inner)
2011            }
2012        }
2013    }
2014}
2015impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_environment_outputs::ListEnvironmentOutputsError, R>> for Error
2016where
2017    R: Send + Sync + std::fmt::Debug + 'static,
2018{
2019    fn from(
2020        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_environment_outputs::ListEnvironmentOutputsError, R>,
2021    ) -> Self {
2022        match err {
2023            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2024            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2025                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2026                source: err.into(),
2027            }),
2028        }
2029    }
2030}
2031impl From<crate::operation::list_environment_outputs::ListEnvironmentOutputsError> for Error {
2032    fn from(err: crate::operation::list_environment_outputs::ListEnvironmentOutputsError) -> Self {
2033        match err {
2034            crate::operation::list_environment_outputs::ListEnvironmentOutputsError::AccessDeniedException(inner) => {
2035                Error::AccessDeniedException(inner)
2036            }
2037            crate::operation::list_environment_outputs::ListEnvironmentOutputsError::InternalServerException(inner) => {
2038                Error::InternalServerException(inner)
2039            }
2040            crate::operation::list_environment_outputs::ListEnvironmentOutputsError::ResourceNotFoundException(inner) => {
2041                Error::ResourceNotFoundException(inner)
2042            }
2043            crate::operation::list_environment_outputs::ListEnvironmentOutputsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2044            crate::operation::list_environment_outputs::ListEnvironmentOutputsError::ValidationException(inner) => Error::ValidationException(inner),
2045            crate::operation::list_environment_outputs::ListEnvironmentOutputsError::Unhandled(inner) => Error::Unhandled(inner),
2046        }
2047    }
2048}
2049impl<R>
2050    From<
2051        ::aws_smithy_runtime_api::client::result::SdkError<
2052            crate::operation::list_environment_provisioned_resources::ListEnvironmentProvisionedResourcesError,
2053            R,
2054        >,
2055    > for Error
2056where
2057    R: Send + Sync + std::fmt::Debug + 'static,
2058{
2059    fn from(
2060        err: ::aws_smithy_runtime_api::client::result::SdkError<
2061            crate::operation::list_environment_provisioned_resources::ListEnvironmentProvisionedResourcesError,
2062            R,
2063        >,
2064    ) -> Self {
2065        match err {
2066            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2067            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2068                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2069                source: err.into(),
2070            }),
2071        }
2072    }
2073}
2074impl From<crate::operation::list_environment_provisioned_resources::ListEnvironmentProvisionedResourcesError> for Error {
2075    fn from(err: crate::operation::list_environment_provisioned_resources::ListEnvironmentProvisionedResourcesError) -> Self {
2076        match err {
2077            crate::operation::list_environment_provisioned_resources::ListEnvironmentProvisionedResourcesError::AccessDeniedException(inner) => {
2078                Error::AccessDeniedException(inner)
2079            }
2080            crate::operation::list_environment_provisioned_resources::ListEnvironmentProvisionedResourcesError::InternalServerException(inner) => {
2081                Error::InternalServerException(inner)
2082            }
2083            crate::operation::list_environment_provisioned_resources::ListEnvironmentProvisionedResourcesError::ResourceNotFoundException(inner) => {
2084                Error::ResourceNotFoundException(inner)
2085            }
2086            crate::operation::list_environment_provisioned_resources::ListEnvironmentProvisionedResourcesError::ThrottlingException(inner) => {
2087                Error::ThrottlingException(inner)
2088            }
2089            crate::operation::list_environment_provisioned_resources::ListEnvironmentProvisionedResourcesError::ValidationException(inner) => {
2090                Error::ValidationException(inner)
2091            }
2092            crate::operation::list_environment_provisioned_resources::ListEnvironmentProvisionedResourcesError::Unhandled(inner) => {
2093                Error::Unhandled(inner)
2094            }
2095        }
2096    }
2097}
2098impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_environments::ListEnvironmentsError, R>> for Error
2099where
2100    R: Send + Sync + std::fmt::Debug + 'static,
2101{
2102    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_environments::ListEnvironmentsError, R>) -> Self {
2103        match err {
2104            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2105            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2106                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2107                source: err.into(),
2108            }),
2109        }
2110    }
2111}
2112impl From<crate::operation::list_environments::ListEnvironmentsError> for Error {
2113    fn from(err: crate::operation::list_environments::ListEnvironmentsError) -> Self {
2114        match err {
2115            crate::operation::list_environments::ListEnvironmentsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2116            crate::operation::list_environments::ListEnvironmentsError::InternalServerException(inner) => Error::InternalServerException(inner),
2117            crate::operation::list_environments::ListEnvironmentsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2118            crate::operation::list_environments::ListEnvironmentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2119            crate::operation::list_environments::ListEnvironmentsError::ValidationException(inner) => Error::ValidationException(inner),
2120            crate::operation::list_environments::ListEnvironmentsError::Unhandled(inner) => Error::Unhandled(inner),
2121        }
2122    }
2123}
2124impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_environment_templates::ListEnvironmentTemplatesError, R>>
2125    for Error
2126where
2127    R: Send + Sync + std::fmt::Debug + 'static,
2128{
2129    fn from(
2130        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_environment_templates::ListEnvironmentTemplatesError, R>,
2131    ) -> Self {
2132        match err {
2133            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2134            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2135                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2136                source: err.into(),
2137            }),
2138        }
2139    }
2140}
2141impl From<crate::operation::list_environment_templates::ListEnvironmentTemplatesError> for Error {
2142    fn from(err: crate::operation::list_environment_templates::ListEnvironmentTemplatesError) -> Self {
2143        match err {
2144            crate::operation::list_environment_templates::ListEnvironmentTemplatesError::AccessDeniedException(inner) => {
2145                Error::AccessDeniedException(inner)
2146            }
2147            crate::operation::list_environment_templates::ListEnvironmentTemplatesError::InternalServerException(inner) => {
2148                Error::InternalServerException(inner)
2149            }
2150            crate::operation::list_environment_templates::ListEnvironmentTemplatesError::ThrottlingException(inner) => {
2151                Error::ThrottlingException(inner)
2152            }
2153            crate::operation::list_environment_templates::ListEnvironmentTemplatesError::ValidationException(inner) => {
2154                Error::ValidationException(inner)
2155            }
2156            crate::operation::list_environment_templates::ListEnvironmentTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
2157        }
2158    }
2159}
2160impl<R>
2161    From<
2162        ::aws_smithy_runtime_api::client::result::SdkError<
2163            crate::operation::list_environment_template_versions::ListEnvironmentTemplateVersionsError,
2164            R,
2165        >,
2166    > for Error
2167where
2168    R: Send + Sync + std::fmt::Debug + 'static,
2169{
2170    fn from(
2171        err: ::aws_smithy_runtime_api::client::result::SdkError<
2172            crate::operation::list_environment_template_versions::ListEnvironmentTemplateVersionsError,
2173            R,
2174        >,
2175    ) -> Self {
2176        match err {
2177            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2178            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2179                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2180                source: err.into(),
2181            }),
2182        }
2183    }
2184}
2185impl From<crate::operation::list_environment_template_versions::ListEnvironmentTemplateVersionsError> for Error {
2186    fn from(err: crate::operation::list_environment_template_versions::ListEnvironmentTemplateVersionsError) -> Self {
2187        match err {
2188            crate::operation::list_environment_template_versions::ListEnvironmentTemplateVersionsError::AccessDeniedException(inner) => {
2189                Error::AccessDeniedException(inner)
2190            }
2191            crate::operation::list_environment_template_versions::ListEnvironmentTemplateVersionsError::InternalServerException(inner) => {
2192                Error::InternalServerException(inner)
2193            }
2194            crate::operation::list_environment_template_versions::ListEnvironmentTemplateVersionsError::ResourceNotFoundException(inner) => {
2195                Error::ResourceNotFoundException(inner)
2196            }
2197            crate::operation::list_environment_template_versions::ListEnvironmentTemplateVersionsError::ThrottlingException(inner) => {
2198                Error::ThrottlingException(inner)
2199            }
2200            crate::operation::list_environment_template_versions::ListEnvironmentTemplateVersionsError::ValidationException(inner) => {
2201                Error::ValidationException(inner)
2202            }
2203            crate::operation::list_environment_template_versions::ListEnvironmentTemplateVersionsError::Unhandled(inner) => Error::Unhandled(inner),
2204        }
2205    }
2206}
2207impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_repositories::ListRepositoriesError, R>> for Error
2208where
2209    R: Send + Sync + std::fmt::Debug + 'static,
2210{
2211    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_repositories::ListRepositoriesError, R>) -> Self {
2212        match err {
2213            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2214            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2215                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2216                source: err.into(),
2217            }),
2218        }
2219    }
2220}
2221impl From<crate::operation::list_repositories::ListRepositoriesError> for Error {
2222    fn from(err: crate::operation::list_repositories::ListRepositoriesError) -> Self {
2223        match err {
2224            crate::operation::list_repositories::ListRepositoriesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2225            crate::operation::list_repositories::ListRepositoriesError::InternalServerException(inner) => Error::InternalServerException(inner),
2226            crate::operation::list_repositories::ListRepositoriesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2227            crate::operation::list_repositories::ListRepositoriesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2228            crate::operation::list_repositories::ListRepositoriesError::ValidationException(inner) => Error::ValidationException(inner),
2229            crate::operation::list_repositories::ListRepositoriesError::Unhandled(inner) => Error::Unhandled(inner),
2230        }
2231    }
2232}
2233impl<R>
2234    From<
2235        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError, R>,
2236    > for Error
2237where
2238    R: Send + Sync + std::fmt::Debug + 'static,
2239{
2240    fn from(
2241        err: ::aws_smithy_runtime_api::client::result::SdkError<
2242            crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError,
2243            R,
2244        >,
2245    ) -> Self {
2246        match err {
2247            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2248            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2249                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2250                source: err.into(),
2251            }),
2252        }
2253    }
2254}
2255impl From<crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError> for Error {
2256    fn from(err: crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError) -> Self {
2257        match err {
2258            crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError::AccessDeniedException(inner) => {
2259                Error::AccessDeniedException(inner)
2260            }
2261            crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError::InternalServerException(inner) => {
2262                Error::InternalServerException(inner)
2263            }
2264            crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError::ThrottlingException(inner) => {
2265                Error::ThrottlingException(inner)
2266            }
2267            crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError::ValidationException(inner) => {
2268                Error::ValidationException(inner)
2269            }
2270            crate::operation::list_repository_sync_definitions::ListRepositorySyncDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
2271        }
2272    }
2273}
2274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_instance_outputs::ListServiceInstanceOutputsError, R>>
2275    for Error
2276where
2277    R: Send + Sync + std::fmt::Debug + 'static,
2278{
2279    fn from(
2280        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_instance_outputs::ListServiceInstanceOutputsError, R>,
2281    ) -> Self {
2282        match err {
2283            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2284            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2285                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2286                source: err.into(),
2287            }),
2288        }
2289    }
2290}
2291impl From<crate::operation::list_service_instance_outputs::ListServiceInstanceOutputsError> for Error {
2292    fn from(err: crate::operation::list_service_instance_outputs::ListServiceInstanceOutputsError) -> Self {
2293        match err {
2294            crate::operation::list_service_instance_outputs::ListServiceInstanceOutputsError::AccessDeniedException(inner) => {
2295                Error::AccessDeniedException(inner)
2296            }
2297            crate::operation::list_service_instance_outputs::ListServiceInstanceOutputsError::InternalServerException(inner) => {
2298                Error::InternalServerException(inner)
2299            }
2300            crate::operation::list_service_instance_outputs::ListServiceInstanceOutputsError::ResourceNotFoundException(inner) => {
2301                Error::ResourceNotFoundException(inner)
2302            }
2303            crate::operation::list_service_instance_outputs::ListServiceInstanceOutputsError::ThrottlingException(inner) => {
2304                Error::ThrottlingException(inner)
2305            }
2306            crate::operation::list_service_instance_outputs::ListServiceInstanceOutputsError::ValidationException(inner) => {
2307                Error::ValidationException(inner)
2308            }
2309            crate::operation::list_service_instance_outputs::ListServiceInstanceOutputsError::Unhandled(inner) => Error::Unhandled(inner),
2310        }
2311    }
2312}
2313impl<R>
2314    From<
2315        ::aws_smithy_runtime_api::client::result::SdkError<
2316            crate::operation::list_service_instance_provisioned_resources::ListServiceInstanceProvisionedResourcesError,
2317            R,
2318        >,
2319    > for Error
2320where
2321    R: Send + Sync + std::fmt::Debug + 'static,
2322{
2323    fn from(
2324        err: ::aws_smithy_runtime_api::client::result::SdkError<
2325            crate::operation::list_service_instance_provisioned_resources::ListServiceInstanceProvisionedResourcesError,
2326            R,
2327        >,
2328    ) -> Self {
2329        match err {
2330            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2331            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2332                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2333                source: err.into(),
2334            }),
2335        }
2336    }
2337}
2338impl From<crate::operation::list_service_instance_provisioned_resources::ListServiceInstanceProvisionedResourcesError> for Error {
2339    fn from(err: crate::operation::list_service_instance_provisioned_resources::ListServiceInstanceProvisionedResourcesError) -> Self {
2340        match err {
2341            crate::operation::list_service_instance_provisioned_resources::ListServiceInstanceProvisionedResourcesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2342            crate::operation::list_service_instance_provisioned_resources::ListServiceInstanceProvisionedResourcesError::InternalServerException(inner) => Error::InternalServerException(inner),
2343            crate::operation::list_service_instance_provisioned_resources::ListServiceInstanceProvisionedResourcesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2344            crate::operation::list_service_instance_provisioned_resources::ListServiceInstanceProvisionedResourcesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2345            crate::operation::list_service_instance_provisioned_resources::ListServiceInstanceProvisionedResourcesError::ValidationException(inner) => Error::ValidationException(inner),
2346            crate::operation::list_service_instance_provisioned_resources::ListServiceInstanceProvisionedResourcesError::Unhandled(inner) => Error::Unhandled(inner),
2347        }
2348    }
2349}
2350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_instances::ListServiceInstancesError, R>> for Error
2351where
2352    R: Send + Sync + std::fmt::Debug + 'static,
2353{
2354    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_instances::ListServiceInstancesError, R>) -> Self {
2355        match err {
2356            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2357            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2358                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2359                source: err.into(),
2360            }),
2361        }
2362    }
2363}
2364impl From<crate::operation::list_service_instances::ListServiceInstancesError> for Error {
2365    fn from(err: crate::operation::list_service_instances::ListServiceInstancesError) -> Self {
2366        match err {
2367            crate::operation::list_service_instances::ListServiceInstancesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2368            crate::operation::list_service_instances::ListServiceInstancesError::InternalServerException(inner) => {
2369                Error::InternalServerException(inner)
2370            }
2371            crate::operation::list_service_instances::ListServiceInstancesError::ResourceNotFoundException(inner) => {
2372                Error::ResourceNotFoundException(inner)
2373            }
2374            crate::operation::list_service_instances::ListServiceInstancesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2375            crate::operation::list_service_instances::ListServiceInstancesError::ValidationException(inner) => Error::ValidationException(inner),
2376            crate::operation::list_service_instances::ListServiceInstancesError::Unhandled(inner) => Error::Unhandled(inner),
2377        }
2378    }
2379}
2380impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_pipeline_outputs::ListServicePipelineOutputsError, R>>
2381    for Error
2382where
2383    R: Send + Sync + std::fmt::Debug + 'static,
2384{
2385    fn from(
2386        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_pipeline_outputs::ListServicePipelineOutputsError, R>,
2387    ) -> Self {
2388        match err {
2389            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2390            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2391                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2392                source: err.into(),
2393            }),
2394        }
2395    }
2396}
2397impl From<crate::operation::list_service_pipeline_outputs::ListServicePipelineOutputsError> for Error {
2398    fn from(err: crate::operation::list_service_pipeline_outputs::ListServicePipelineOutputsError) -> Self {
2399        match err {
2400            crate::operation::list_service_pipeline_outputs::ListServicePipelineOutputsError::AccessDeniedException(inner) => {
2401                Error::AccessDeniedException(inner)
2402            }
2403            crate::operation::list_service_pipeline_outputs::ListServicePipelineOutputsError::InternalServerException(inner) => {
2404                Error::InternalServerException(inner)
2405            }
2406            crate::operation::list_service_pipeline_outputs::ListServicePipelineOutputsError::ResourceNotFoundException(inner) => {
2407                Error::ResourceNotFoundException(inner)
2408            }
2409            crate::operation::list_service_pipeline_outputs::ListServicePipelineOutputsError::ThrottlingException(inner) => {
2410                Error::ThrottlingException(inner)
2411            }
2412            crate::operation::list_service_pipeline_outputs::ListServicePipelineOutputsError::ValidationException(inner) => {
2413                Error::ValidationException(inner)
2414            }
2415            crate::operation::list_service_pipeline_outputs::ListServicePipelineOutputsError::Unhandled(inner) => Error::Unhandled(inner),
2416        }
2417    }
2418}
2419impl<R>
2420    From<
2421        ::aws_smithy_runtime_api::client::result::SdkError<
2422            crate::operation::list_service_pipeline_provisioned_resources::ListServicePipelineProvisionedResourcesError,
2423            R,
2424        >,
2425    > for Error
2426where
2427    R: Send + Sync + std::fmt::Debug + 'static,
2428{
2429    fn from(
2430        err: ::aws_smithy_runtime_api::client::result::SdkError<
2431            crate::operation::list_service_pipeline_provisioned_resources::ListServicePipelineProvisionedResourcesError,
2432            R,
2433        >,
2434    ) -> Self {
2435        match err {
2436            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2437            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2438                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2439                source: err.into(),
2440            }),
2441        }
2442    }
2443}
2444impl From<crate::operation::list_service_pipeline_provisioned_resources::ListServicePipelineProvisionedResourcesError> for Error {
2445    fn from(err: crate::operation::list_service_pipeline_provisioned_resources::ListServicePipelineProvisionedResourcesError) -> Self {
2446        match err {
2447            crate::operation::list_service_pipeline_provisioned_resources::ListServicePipelineProvisionedResourcesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2448            crate::operation::list_service_pipeline_provisioned_resources::ListServicePipelineProvisionedResourcesError::InternalServerException(inner) => Error::InternalServerException(inner),
2449            crate::operation::list_service_pipeline_provisioned_resources::ListServicePipelineProvisionedResourcesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2450            crate::operation::list_service_pipeline_provisioned_resources::ListServicePipelineProvisionedResourcesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2451            crate::operation::list_service_pipeline_provisioned_resources::ListServicePipelineProvisionedResourcesError::ValidationException(inner) => Error::ValidationException(inner),
2452            crate::operation::list_service_pipeline_provisioned_resources::ListServicePipelineProvisionedResourcesError::Unhandled(inner) => Error::Unhandled(inner),
2453        }
2454    }
2455}
2456impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_services::ListServicesError, R>> for Error
2457where
2458    R: Send + Sync + std::fmt::Debug + 'static,
2459{
2460    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_services::ListServicesError, R>) -> Self {
2461        match err {
2462            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2463            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2464                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2465                source: err.into(),
2466            }),
2467        }
2468    }
2469}
2470impl From<crate::operation::list_services::ListServicesError> for Error {
2471    fn from(err: crate::operation::list_services::ListServicesError) -> Self {
2472        match err {
2473            crate::operation::list_services::ListServicesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2474            crate::operation::list_services::ListServicesError::InternalServerException(inner) => Error::InternalServerException(inner),
2475            crate::operation::list_services::ListServicesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2476            crate::operation::list_services::ListServicesError::ValidationException(inner) => Error::ValidationException(inner),
2477            crate::operation::list_services::ListServicesError::Unhandled(inner) => Error::Unhandled(inner),
2478        }
2479    }
2480}
2481impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_templates::ListServiceTemplatesError, R>> for Error
2482where
2483    R: Send + Sync + std::fmt::Debug + 'static,
2484{
2485    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_templates::ListServiceTemplatesError, R>) -> Self {
2486        match err {
2487            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2488            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2489                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2490                source: err.into(),
2491            }),
2492        }
2493    }
2494}
2495impl From<crate::operation::list_service_templates::ListServiceTemplatesError> for Error {
2496    fn from(err: crate::operation::list_service_templates::ListServiceTemplatesError) -> Self {
2497        match err {
2498            crate::operation::list_service_templates::ListServiceTemplatesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2499            crate::operation::list_service_templates::ListServiceTemplatesError::InternalServerException(inner) => {
2500                Error::InternalServerException(inner)
2501            }
2502            crate::operation::list_service_templates::ListServiceTemplatesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2503            crate::operation::list_service_templates::ListServiceTemplatesError::ValidationException(inner) => Error::ValidationException(inner),
2504            crate::operation::list_service_templates::ListServiceTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
2505        }
2506    }
2507}
2508impl<R>
2509    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_template_versions::ListServiceTemplateVersionsError, R>>
2510    for Error
2511where
2512    R: Send + Sync + std::fmt::Debug + 'static,
2513{
2514    fn from(
2515        err: ::aws_smithy_runtime_api::client::result::SdkError<
2516            crate::operation::list_service_template_versions::ListServiceTemplateVersionsError,
2517            R,
2518        >,
2519    ) -> Self {
2520        match err {
2521            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2522            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2523                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2524                source: err.into(),
2525            }),
2526        }
2527    }
2528}
2529impl From<crate::operation::list_service_template_versions::ListServiceTemplateVersionsError> for Error {
2530    fn from(err: crate::operation::list_service_template_versions::ListServiceTemplateVersionsError) -> Self {
2531        match err {
2532            crate::operation::list_service_template_versions::ListServiceTemplateVersionsError::AccessDeniedException(inner) => {
2533                Error::AccessDeniedException(inner)
2534            }
2535            crate::operation::list_service_template_versions::ListServiceTemplateVersionsError::InternalServerException(inner) => {
2536                Error::InternalServerException(inner)
2537            }
2538            crate::operation::list_service_template_versions::ListServiceTemplateVersionsError::ResourceNotFoundException(inner) => {
2539                Error::ResourceNotFoundException(inner)
2540            }
2541            crate::operation::list_service_template_versions::ListServiceTemplateVersionsError::ThrottlingException(inner) => {
2542                Error::ThrottlingException(inner)
2543            }
2544            crate::operation::list_service_template_versions::ListServiceTemplateVersionsError::ValidationException(inner) => {
2545                Error::ValidationException(inner)
2546            }
2547            crate::operation::list_service_template_versions::ListServiceTemplateVersionsError::Unhandled(inner) => Error::Unhandled(inner),
2548        }
2549    }
2550}
2551impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2552where
2553    R: Send + Sync + std::fmt::Debug + 'static,
2554{
2555    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2556        match err {
2557            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2558            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2559                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2560                source: err.into(),
2561            }),
2562        }
2563    }
2564}
2565impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2566    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2567        match err {
2568            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2569            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
2570                Error::InternalServerException(inner)
2571            }
2572            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2573                Error::ResourceNotFoundException(inner)
2574            }
2575            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2576            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
2577            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2578        }
2579    }
2580}
2581impl<R>
2582    From<
2583        ::aws_smithy_runtime_api::client::result::SdkError<
2584            crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError,
2585            R,
2586        >,
2587    > for Error
2588where
2589    R: Send + Sync + std::fmt::Debug + 'static,
2590{
2591    fn from(
2592        err: ::aws_smithy_runtime_api::client::result::SdkError<
2593            crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError,
2594            R,
2595        >,
2596    ) -> Self {
2597        match err {
2598            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2599            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2600                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2601                source: err.into(),
2602            }),
2603        }
2604    }
2605}
2606impl From<crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError> for Error {
2607    fn from(err: crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError) -> Self {
2608        match err {
2609            crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError::AccessDeniedException(inner) => {
2610                Error::AccessDeniedException(inner)
2611            }
2612            crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError::ConflictException(inner) => {
2613                Error::ConflictException(inner)
2614            }
2615            crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError::InternalServerException(inner) => {
2616                Error::InternalServerException(inner)
2617            }
2618            crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError::ResourceNotFoundException(
2619                inner,
2620            ) => Error::ResourceNotFoundException(inner),
2621            crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError::ServiceQuotaExceededException(
2622                inner,
2623            ) => Error::ServiceQuotaExceededException(inner),
2624            crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError::ThrottlingException(inner) => {
2625                Error::ThrottlingException(inner)
2626            }
2627            crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError::ValidationException(inner) => {
2628                Error::ValidationException(inner)
2629            }
2630            crate::operation::notify_resource_deployment_status_change::NotifyResourceDeploymentStatusChangeError::Unhandled(inner) => {
2631                Error::Unhandled(inner)
2632            }
2633        }
2634    }
2635}
2636impl<R>
2637    From<
2638        ::aws_smithy_runtime_api::client::result::SdkError<
2639            crate::operation::reject_environment_account_connection::RejectEnvironmentAccountConnectionError,
2640            R,
2641        >,
2642    > for Error
2643where
2644    R: Send + Sync + std::fmt::Debug + 'static,
2645{
2646    fn from(
2647        err: ::aws_smithy_runtime_api::client::result::SdkError<
2648            crate::operation::reject_environment_account_connection::RejectEnvironmentAccountConnectionError,
2649            R,
2650        >,
2651    ) -> Self {
2652        match err {
2653            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2654            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2655                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2656                source: err.into(),
2657            }),
2658        }
2659    }
2660}
2661impl From<crate::operation::reject_environment_account_connection::RejectEnvironmentAccountConnectionError> for Error {
2662    fn from(err: crate::operation::reject_environment_account_connection::RejectEnvironmentAccountConnectionError) -> Self {
2663        match err {
2664            crate::operation::reject_environment_account_connection::RejectEnvironmentAccountConnectionError::AccessDeniedException(inner) => {
2665                Error::AccessDeniedException(inner)
2666            }
2667            crate::operation::reject_environment_account_connection::RejectEnvironmentAccountConnectionError::ConflictException(inner) => {
2668                Error::ConflictException(inner)
2669            }
2670            crate::operation::reject_environment_account_connection::RejectEnvironmentAccountConnectionError::InternalServerException(inner) => {
2671                Error::InternalServerException(inner)
2672            }
2673            crate::operation::reject_environment_account_connection::RejectEnvironmentAccountConnectionError::ResourceNotFoundException(inner) => {
2674                Error::ResourceNotFoundException(inner)
2675            }
2676            crate::operation::reject_environment_account_connection::RejectEnvironmentAccountConnectionError::ThrottlingException(inner) => {
2677                Error::ThrottlingException(inner)
2678            }
2679            crate::operation::reject_environment_account_connection::RejectEnvironmentAccountConnectionError::ValidationException(inner) => {
2680                Error::ValidationException(inner)
2681            }
2682            crate::operation::reject_environment_account_connection::RejectEnvironmentAccountConnectionError::Unhandled(inner) => {
2683                Error::Unhandled(inner)
2684            }
2685        }
2686    }
2687}
2688impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2689where
2690    R: Send + Sync + std::fmt::Debug + 'static,
2691{
2692    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2693        match err {
2694            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2695            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2696                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2697                source: err.into(),
2698            }),
2699        }
2700    }
2701}
2702impl From<crate::operation::tag_resource::TagResourceError> for Error {
2703    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2704        match err {
2705            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2706            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
2707            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
2708            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2709            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2710            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
2711            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2712        }
2713    }
2714}
2715impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2716where
2717    R: Send + Sync + std::fmt::Debug + 'static,
2718{
2719    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2720        match err {
2721            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2722            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2723                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2724                source: err.into(),
2725            }),
2726        }
2727    }
2728}
2729impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2730    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2731        match err {
2732            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2733            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
2734            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
2735            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2736            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2737            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
2738            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2739        }
2740    }
2741}
2742impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account_settings::UpdateAccountSettingsError, R>> for Error
2743where
2744    R: Send + Sync + std::fmt::Debug + 'static,
2745{
2746    fn from(
2747        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account_settings::UpdateAccountSettingsError, R>,
2748    ) -> Self {
2749        match err {
2750            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2751            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2752                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2753                source: err.into(),
2754            }),
2755        }
2756    }
2757}
2758impl From<crate::operation::update_account_settings::UpdateAccountSettingsError> for Error {
2759    fn from(err: crate::operation::update_account_settings::UpdateAccountSettingsError) -> Self {
2760        match err {
2761            crate::operation::update_account_settings::UpdateAccountSettingsError::AccessDeniedException(inner) => {
2762                Error::AccessDeniedException(inner)
2763            }
2764            crate::operation::update_account_settings::UpdateAccountSettingsError::ConflictException(inner) => Error::ConflictException(inner),
2765            crate::operation::update_account_settings::UpdateAccountSettingsError::InternalServerException(inner) => {
2766                Error::InternalServerException(inner)
2767            }
2768            crate::operation::update_account_settings::UpdateAccountSettingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2769            crate::operation::update_account_settings::UpdateAccountSettingsError::ValidationException(inner) => Error::ValidationException(inner),
2770            crate::operation::update_account_settings::UpdateAccountSettingsError::Unhandled(inner) => Error::Unhandled(inner),
2771        }
2772    }
2773}
2774impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_component::UpdateComponentError, R>> for Error
2775where
2776    R: Send + Sync + std::fmt::Debug + 'static,
2777{
2778    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_component::UpdateComponentError, R>) -> Self {
2779        match err {
2780            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2781            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2782                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2783                source: err.into(),
2784            }),
2785        }
2786    }
2787}
2788impl From<crate::operation::update_component::UpdateComponentError> for Error {
2789    fn from(err: crate::operation::update_component::UpdateComponentError) -> Self {
2790        match err {
2791            crate::operation::update_component::UpdateComponentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2792            crate::operation::update_component::UpdateComponentError::ConflictException(inner) => Error::ConflictException(inner),
2793            crate::operation::update_component::UpdateComponentError::InternalServerException(inner) => Error::InternalServerException(inner),
2794            crate::operation::update_component::UpdateComponentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2795            crate::operation::update_component::UpdateComponentError::ServiceQuotaExceededException(inner) => {
2796                Error::ServiceQuotaExceededException(inner)
2797            }
2798            crate::operation::update_component::UpdateComponentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2799            crate::operation::update_component::UpdateComponentError::ValidationException(inner) => Error::ValidationException(inner),
2800            crate::operation::update_component::UpdateComponentError::Unhandled(inner) => Error::Unhandled(inner),
2801        }
2802    }
2803}
2804impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_environment::UpdateEnvironmentError, R>> for Error
2805where
2806    R: Send + Sync + std::fmt::Debug + 'static,
2807{
2808    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_environment::UpdateEnvironmentError, R>) -> Self {
2809        match err {
2810            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2811            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2812                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2813                source: err.into(),
2814            }),
2815        }
2816    }
2817}
2818impl From<crate::operation::update_environment::UpdateEnvironmentError> for Error {
2819    fn from(err: crate::operation::update_environment::UpdateEnvironmentError) -> Self {
2820        match err {
2821            crate::operation::update_environment::UpdateEnvironmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2822            crate::operation::update_environment::UpdateEnvironmentError::ConflictException(inner) => Error::ConflictException(inner),
2823            crate::operation::update_environment::UpdateEnvironmentError::InternalServerException(inner) => Error::InternalServerException(inner),
2824            crate::operation::update_environment::UpdateEnvironmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2825            crate::operation::update_environment::UpdateEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2826            crate::operation::update_environment::UpdateEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
2827            crate::operation::update_environment::UpdateEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
2828        }
2829    }
2830}
2831impl<R>
2832    From<
2833        ::aws_smithy_runtime_api::client::result::SdkError<
2834            crate::operation::update_environment_account_connection::UpdateEnvironmentAccountConnectionError,
2835            R,
2836        >,
2837    > for Error
2838where
2839    R: Send + Sync + std::fmt::Debug + 'static,
2840{
2841    fn from(
2842        err: ::aws_smithy_runtime_api::client::result::SdkError<
2843            crate::operation::update_environment_account_connection::UpdateEnvironmentAccountConnectionError,
2844            R,
2845        >,
2846    ) -> Self {
2847        match err {
2848            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2849            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2850                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2851                source: err.into(),
2852            }),
2853        }
2854    }
2855}
2856impl From<crate::operation::update_environment_account_connection::UpdateEnvironmentAccountConnectionError> for Error {
2857    fn from(err: crate::operation::update_environment_account_connection::UpdateEnvironmentAccountConnectionError) -> Self {
2858        match err {
2859            crate::operation::update_environment_account_connection::UpdateEnvironmentAccountConnectionError::AccessDeniedException(inner) => {
2860                Error::AccessDeniedException(inner)
2861            }
2862            crate::operation::update_environment_account_connection::UpdateEnvironmentAccountConnectionError::ConflictException(inner) => {
2863                Error::ConflictException(inner)
2864            }
2865            crate::operation::update_environment_account_connection::UpdateEnvironmentAccountConnectionError::InternalServerException(inner) => {
2866                Error::InternalServerException(inner)
2867            }
2868            crate::operation::update_environment_account_connection::UpdateEnvironmentAccountConnectionError::ResourceNotFoundException(inner) => {
2869                Error::ResourceNotFoundException(inner)
2870            }
2871            crate::operation::update_environment_account_connection::UpdateEnvironmentAccountConnectionError::ThrottlingException(inner) => {
2872                Error::ThrottlingException(inner)
2873            }
2874            crate::operation::update_environment_account_connection::UpdateEnvironmentAccountConnectionError::ValidationException(inner) => {
2875                Error::ValidationException(inner)
2876            }
2877            crate::operation::update_environment_account_connection::UpdateEnvironmentAccountConnectionError::Unhandled(inner) => {
2878                Error::Unhandled(inner)
2879            }
2880        }
2881    }
2882}
2883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_environment_template::UpdateEnvironmentTemplateError, R>>
2884    for Error
2885where
2886    R: Send + Sync + std::fmt::Debug + 'static,
2887{
2888    fn from(
2889        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_environment_template::UpdateEnvironmentTemplateError, R>,
2890    ) -> Self {
2891        match err {
2892            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2893            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2894                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2895                source: err.into(),
2896            }),
2897        }
2898    }
2899}
2900impl From<crate::operation::update_environment_template::UpdateEnvironmentTemplateError> for Error {
2901    fn from(err: crate::operation::update_environment_template::UpdateEnvironmentTemplateError) -> Self {
2902        match err {
2903            crate::operation::update_environment_template::UpdateEnvironmentTemplateError::AccessDeniedException(inner) => {
2904                Error::AccessDeniedException(inner)
2905            }
2906            crate::operation::update_environment_template::UpdateEnvironmentTemplateError::ConflictException(inner) => {
2907                Error::ConflictException(inner)
2908            }
2909            crate::operation::update_environment_template::UpdateEnvironmentTemplateError::InternalServerException(inner) => {
2910                Error::InternalServerException(inner)
2911            }
2912            crate::operation::update_environment_template::UpdateEnvironmentTemplateError::ResourceNotFoundException(inner) => {
2913                Error::ResourceNotFoundException(inner)
2914            }
2915            crate::operation::update_environment_template::UpdateEnvironmentTemplateError::ThrottlingException(inner) => {
2916                Error::ThrottlingException(inner)
2917            }
2918            crate::operation::update_environment_template::UpdateEnvironmentTemplateError::ValidationException(inner) => {
2919                Error::ValidationException(inner)
2920            }
2921            crate::operation::update_environment_template::UpdateEnvironmentTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2922        }
2923    }
2924}
2925impl<R>
2926    From<
2927        ::aws_smithy_runtime_api::client::result::SdkError<
2928            crate::operation::update_environment_template_version::UpdateEnvironmentTemplateVersionError,
2929            R,
2930        >,
2931    > for Error
2932where
2933    R: Send + Sync + std::fmt::Debug + 'static,
2934{
2935    fn from(
2936        err: ::aws_smithy_runtime_api::client::result::SdkError<
2937            crate::operation::update_environment_template_version::UpdateEnvironmentTemplateVersionError,
2938            R,
2939        >,
2940    ) -> Self {
2941        match err {
2942            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2943            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2944                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2945                source: err.into(),
2946            }),
2947        }
2948    }
2949}
2950impl From<crate::operation::update_environment_template_version::UpdateEnvironmentTemplateVersionError> for Error {
2951    fn from(err: crate::operation::update_environment_template_version::UpdateEnvironmentTemplateVersionError) -> Self {
2952        match err {
2953            crate::operation::update_environment_template_version::UpdateEnvironmentTemplateVersionError::AccessDeniedException(inner) => {
2954                Error::AccessDeniedException(inner)
2955            }
2956            crate::operation::update_environment_template_version::UpdateEnvironmentTemplateVersionError::ConflictException(inner) => {
2957                Error::ConflictException(inner)
2958            }
2959            crate::operation::update_environment_template_version::UpdateEnvironmentTemplateVersionError::InternalServerException(inner) => {
2960                Error::InternalServerException(inner)
2961            }
2962            crate::operation::update_environment_template_version::UpdateEnvironmentTemplateVersionError::ResourceNotFoundException(inner) => {
2963                Error::ResourceNotFoundException(inner)
2964            }
2965            crate::operation::update_environment_template_version::UpdateEnvironmentTemplateVersionError::ThrottlingException(inner) => {
2966                Error::ThrottlingException(inner)
2967            }
2968            crate::operation::update_environment_template_version::UpdateEnvironmentTemplateVersionError::ValidationException(inner) => {
2969                Error::ValidationException(inner)
2970            }
2971            crate::operation::update_environment_template_version::UpdateEnvironmentTemplateVersionError::Unhandled(inner) => Error::Unhandled(inner),
2972        }
2973    }
2974}
2975impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service::UpdateServiceError, R>> for Error
2976where
2977    R: Send + Sync + std::fmt::Debug + 'static,
2978{
2979    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service::UpdateServiceError, R>) -> Self {
2980        match err {
2981            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2982            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2983                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2984                source: err.into(),
2985            }),
2986        }
2987    }
2988}
2989impl From<crate::operation::update_service::UpdateServiceError> for Error {
2990    fn from(err: crate::operation::update_service::UpdateServiceError) -> Self {
2991        match err {
2992            crate::operation::update_service::UpdateServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2993            crate::operation::update_service::UpdateServiceError::ConflictException(inner) => Error::ConflictException(inner),
2994            crate::operation::update_service::UpdateServiceError::InternalServerException(inner) => Error::InternalServerException(inner),
2995            crate::operation::update_service::UpdateServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2996            crate::operation::update_service::UpdateServiceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2997            crate::operation::update_service::UpdateServiceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2998            crate::operation::update_service::UpdateServiceError::ValidationException(inner) => Error::ValidationException(inner),
2999            crate::operation::update_service::UpdateServiceError::Unhandled(inner) => Error::Unhandled(inner),
3000        }
3001    }
3002}
3003impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service_instance::UpdateServiceInstanceError, R>> for Error
3004where
3005    R: Send + Sync + std::fmt::Debug + 'static,
3006{
3007    fn from(
3008        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service_instance::UpdateServiceInstanceError, R>,
3009    ) -> Self {
3010        match err {
3011            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3012            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3013                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3014                source: err.into(),
3015            }),
3016        }
3017    }
3018}
3019impl From<crate::operation::update_service_instance::UpdateServiceInstanceError> for Error {
3020    fn from(err: crate::operation::update_service_instance::UpdateServiceInstanceError) -> Self {
3021        match err {
3022            crate::operation::update_service_instance::UpdateServiceInstanceError::AccessDeniedException(inner) => {
3023                Error::AccessDeniedException(inner)
3024            }
3025            crate::operation::update_service_instance::UpdateServiceInstanceError::ConflictException(inner) => Error::ConflictException(inner),
3026            crate::operation::update_service_instance::UpdateServiceInstanceError::InternalServerException(inner) => {
3027                Error::InternalServerException(inner)
3028            }
3029            crate::operation::update_service_instance::UpdateServiceInstanceError::ResourceNotFoundException(inner) => {
3030                Error::ResourceNotFoundException(inner)
3031            }
3032            crate::operation::update_service_instance::UpdateServiceInstanceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3033            crate::operation::update_service_instance::UpdateServiceInstanceError::ValidationException(inner) => Error::ValidationException(inner),
3034            crate::operation::update_service_instance::UpdateServiceInstanceError::Unhandled(inner) => Error::Unhandled(inner),
3035        }
3036    }
3037}
3038impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service_pipeline::UpdateServicePipelineError, R>> for Error
3039where
3040    R: Send + Sync + std::fmt::Debug + 'static,
3041{
3042    fn from(
3043        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service_pipeline::UpdateServicePipelineError, R>,
3044    ) -> Self {
3045        match err {
3046            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3047            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3048                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3049                source: err.into(),
3050            }),
3051        }
3052    }
3053}
3054impl From<crate::operation::update_service_pipeline::UpdateServicePipelineError> for Error {
3055    fn from(err: crate::operation::update_service_pipeline::UpdateServicePipelineError) -> Self {
3056        match err {
3057            crate::operation::update_service_pipeline::UpdateServicePipelineError::AccessDeniedException(inner) => {
3058                Error::AccessDeniedException(inner)
3059            }
3060            crate::operation::update_service_pipeline::UpdateServicePipelineError::ConflictException(inner) => Error::ConflictException(inner),
3061            crate::operation::update_service_pipeline::UpdateServicePipelineError::InternalServerException(inner) => {
3062                Error::InternalServerException(inner)
3063            }
3064            crate::operation::update_service_pipeline::UpdateServicePipelineError::ResourceNotFoundException(inner) => {
3065                Error::ResourceNotFoundException(inner)
3066            }
3067            crate::operation::update_service_pipeline::UpdateServicePipelineError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3068            crate::operation::update_service_pipeline::UpdateServicePipelineError::ValidationException(inner) => Error::ValidationException(inner),
3069            crate::operation::update_service_pipeline::UpdateServicePipelineError::Unhandled(inner) => Error::Unhandled(inner),
3070        }
3071    }
3072}
3073impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service_sync_blocker::UpdateServiceSyncBlockerError, R>>
3074    for Error
3075where
3076    R: Send + Sync + std::fmt::Debug + 'static,
3077{
3078    fn from(
3079        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service_sync_blocker::UpdateServiceSyncBlockerError, R>,
3080    ) -> Self {
3081        match err {
3082            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3083            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3084                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3085                source: err.into(),
3086            }),
3087        }
3088    }
3089}
3090impl From<crate::operation::update_service_sync_blocker::UpdateServiceSyncBlockerError> for Error {
3091    fn from(err: crate::operation::update_service_sync_blocker::UpdateServiceSyncBlockerError) -> Self {
3092        match err {
3093            crate::operation::update_service_sync_blocker::UpdateServiceSyncBlockerError::AccessDeniedException(inner) => {
3094                Error::AccessDeniedException(inner)
3095            }
3096            crate::operation::update_service_sync_blocker::UpdateServiceSyncBlockerError::ConflictException(inner) => Error::ConflictException(inner),
3097            crate::operation::update_service_sync_blocker::UpdateServiceSyncBlockerError::InternalServerException(inner) => {
3098                Error::InternalServerException(inner)
3099            }
3100            crate::operation::update_service_sync_blocker::UpdateServiceSyncBlockerError::ResourceNotFoundException(inner) => {
3101                Error::ResourceNotFoundException(inner)
3102            }
3103            crate::operation::update_service_sync_blocker::UpdateServiceSyncBlockerError::ThrottlingException(inner) => {
3104                Error::ThrottlingException(inner)
3105            }
3106            crate::operation::update_service_sync_blocker::UpdateServiceSyncBlockerError::ValidationException(inner) => {
3107                Error::ValidationException(inner)
3108            }
3109            crate::operation::update_service_sync_blocker::UpdateServiceSyncBlockerError::Unhandled(inner) => Error::Unhandled(inner),
3110        }
3111    }
3112}
3113impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service_sync_config::UpdateServiceSyncConfigError, R>>
3114    for Error
3115where
3116    R: Send + Sync + std::fmt::Debug + 'static,
3117{
3118    fn from(
3119        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service_sync_config::UpdateServiceSyncConfigError, R>,
3120    ) -> Self {
3121        match err {
3122            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3123            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3124                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3125                source: err.into(),
3126            }),
3127        }
3128    }
3129}
3130impl From<crate::operation::update_service_sync_config::UpdateServiceSyncConfigError> for Error {
3131    fn from(err: crate::operation::update_service_sync_config::UpdateServiceSyncConfigError) -> Self {
3132        match err {
3133            crate::operation::update_service_sync_config::UpdateServiceSyncConfigError::AccessDeniedException(inner) => {
3134                Error::AccessDeniedException(inner)
3135            }
3136            crate::operation::update_service_sync_config::UpdateServiceSyncConfigError::ConflictException(inner) => Error::ConflictException(inner),
3137            crate::operation::update_service_sync_config::UpdateServiceSyncConfigError::InternalServerException(inner) => {
3138                Error::InternalServerException(inner)
3139            }
3140            crate::operation::update_service_sync_config::UpdateServiceSyncConfigError::ResourceNotFoundException(inner) => {
3141                Error::ResourceNotFoundException(inner)
3142            }
3143            crate::operation::update_service_sync_config::UpdateServiceSyncConfigError::ThrottlingException(inner) => {
3144                Error::ThrottlingException(inner)
3145            }
3146            crate::operation::update_service_sync_config::UpdateServiceSyncConfigError::ValidationException(inner) => {
3147                Error::ValidationException(inner)
3148            }
3149            crate::operation::update_service_sync_config::UpdateServiceSyncConfigError::Unhandled(inner) => Error::Unhandled(inner),
3150        }
3151    }
3152}
3153impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service_template::UpdateServiceTemplateError, R>> for Error
3154where
3155    R: Send + Sync + std::fmt::Debug + 'static,
3156{
3157    fn from(
3158        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service_template::UpdateServiceTemplateError, R>,
3159    ) -> Self {
3160        match err {
3161            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3162            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3163                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3164                source: err.into(),
3165            }),
3166        }
3167    }
3168}
3169impl From<crate::operation::update_service_template::UpdateServiceTemplateError> for Error {
3170    fn from(err: crate::operation::update_service_template::UpdateServiceTemplateError) -> Self {
3171        match err {
3172            crate::operation::update_service_template::UpdateServiceTemplateError::AccessDeniedException(inner) => {
3173                Error::AccessDeniedException(inner)
3174            }
3175            crate::operation::update_service_template::UpdateServiceTemplateError::ConflictException(inner) => Error::ConflictException(inner),
3176            crate::operation::update_service_template::UpdateServiceTemplateError::InternalServerException(inner) => {
3177                Error::InternalServerException(inner)
3178            }
3179            crate::operation::update_service_template::UpdateServiceTemplateError::ResourceNotFoundException(inner) => {
3180                Error::ResourceNotFoundException(inner)
3181            }
3182            crate::operation::update_service_template::UpdateServiceTemplateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3183            crate::operation::update_service_template::UpdateServiceTemplateError::ValidationException(inner) => Error::ValidationException(inner),
3184            crate::operation::update_service_template::UpdateServiceTemplateError::Unhandled(inner) => Error::Unhandled(inner),
3185        }
3186    }
3187}
3188impl<R>
3189    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service_template_version::UpdateServiceTemplateVersionError, R>>
3190    for Error
3191where
3192    R: Send + Sync + std::fmt::Debug + 'static,
3193{
3194    fn from(
3195        err: ::aws_smithy_runtime_api::client::result::SdkError<
3196            crate::operation::update_service_template_version::UpdateServiceTemplateVersionError,
3197            R,
3198        >,
3199    ) -> Self {
3200        match err {
3201            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3202            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3203                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3204                source: err.into(),
3205            }),
3206        }
3207    }
3208}
3209impl From<crate::operation::update_service_template_version::UpdateServiceTemplateVersionError> for Error {
3210    fn from(err: crate::operation::update_service_template_version::UpdateServiceTemplateVersionError) -> Self {
3211        match err {
3212            crate::operation::update_service_template_version::UpdateServiceTemplateVersionError::AccessDeniedException(inner) => {
3213                Error::AccessDeniedException(inner)
3214            }
3215            crate::operation::update_service_template_version::UpdateServiceTemplateVersionError::ConflictException(inner) => {
3216                Error::ConflictException(inner)
3217            }
3218            crate::operation::update_service_template_version::UpdateServiceTemplateVersionError::InternalServerException(inner) => {
3219                Error::InternalServerException(inner)
3220            }
3221            crate::operation::update_service_template_version::UpdateServiceTemplateVersionError::ResourceNotFoundException(inner) => {
3222                Error::ResourceNotFoundException(inner)
3223            }
3224            crate::operation::update_service_template_version::UpdateServiceTemplateVersionError::ThrottlingException(inner) => {
3225                Error::ThrottlingException(inner)
3226            }
3227            crate::operation::update_service_template_version::UpdateServiceTemplateVersionError::ValidationException(inner) => {
3228                Error::ValidationException(inner)
3229            }
3230            crate::operation::update_service_template_version::UpdateServiceTemplateVersionError::Unhandled(inner) => Error::Unhandled(inner),
3231        }
3232    }
3233}
3234impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template_sync_config::UpdateTemplateSyncConfigError, R>>
3235    for Error
3236where
3237    R: Send + Sync + std::fmt::Debug + 'static,
3238{
3239    fn from(
3240        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_template_sync_config::UpdateTemplateSyncConfigError, R>,
3241    ) -> Self {
3242        match err {
3243            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3244            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3245                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3246                source: err.into(),
3247            }),
3248        }
3249    }
3250}
3251impl From<crate::operation::update_template_sync_config::UpdateTemplateSyncConfigError> for Error {
3252    fn from(err: crate::operation::update_template_sync_config::UpdateTemplateSyncConfigError) -> Self {
3253        match err {
3254            crate::operation::update_template_sync_config::UpdateTemplateSyncConfigError::AccessDeniedException(inner) => {
3255                Error::AccessDeniedException(inner)
3256            }
3257            crate::operation::update_template_sync_config::UpdateTemplateSyncConfigError::ConflictException(inner) => Error::ConflictException(inner),
3258            crate::operation::update_template_sync_config::UpdateTemplateSyncConfigError::InternalServerException(inner) => {
3259                Error::InternalServerException(inner)
3260            }
3261            crate::operation::update_template_sync_config::UpdateTemplateSyncConfigError::ResourceNotFoundException(inner) => {
3262                Error::ResourceNotFoundException(inner)
3263            }
3264            crate::operation::update_template_sync_config::UpdateTemplateSyncConfigError::ThrottlingException(inner) => {
3265                Error::ThrottlingException(inner)
3266            }
3267            crate::operation::update_template_sync_config::UpdateTemplateSyncConfigError::ValidationException(inner) => {
3268                Error::ValidationException(inner)
3269            }
3270            crate::operation::update_template_sync_config::UpdateTemplateSyncConfigError::Unhandled(inner) => Error::Unhandled(inner),
3271        }
3272    }
3273}
3274impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
3275where
3276    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
3277    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
3278{
3279    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
3280        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3281            meta: ::std::default::Default::default(),
3282            source: err.into(),
3283        })
3284    }
3285}
3286impl ::std::error::Error for Error {
3287    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3288        match self {
3289            Error::AccessDeniedException(inner) => inner.source(),
3290            Error::ConflictException(inner) => inner.source(),
3291            Error::InternalServerException(inner) => inner.source(),
3292            Error::ResourceNotFoundException(inner) => inner.source(),
3293            Error::ServiceQuotaExceededException(inner) => inner.source(),
3294            Error::ThrottlingException(inner) => inner.source(),
3295            Error::ValidationException(inner) => inner.source(),
3296            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3297        }
3298    }
3299}
3300impl ::aws_types::request_id::RequestId for Error {
3301    fn request_id(&self) -> Option<&str> {
3302        match self {
3303            Self::AccessDeniedException(e) => e.request_id(),
3304            Self::ConflictException(e) => e.request_id(),
3305            Self::InternalServerException(e) => e.request_id(),
3306            Self::ResourceNotFoundException(e) => e.request_id(),
3307            Self::ServiceQuotaExceededException(e) => e.request_id(),
3308            Self::ThrottlingException(e) => e.request_id(),
3309            Self::ValidationException(e) => e.request_id(),
3310            Self::Unhandled(e) => e.meta.request_id(),
3311        }
3312    }
3313}