aws_sdk_cloudformation/
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>The resource with the name requested already exists.</p>
7    AlreadyExistsException(crate::types::error::AlreadyExistsException),
8    /// <p>An error occurred during a CloudFormation registry operation.</p>
9    CfnRegistryException(crate::types::error::CfnRegistryException),
10    /// <p>The specified change set name or ID doesn't exit. To view valid change sets for a stack, use the <code>ListChangeSets</code> operation.</p>
11    ChangeSetNotFoundException(crate::types::error::ChangeSetNotFoundException),
12    /// <p>No more than 5 generated templates can be in an <code>InProgress</code> or <code>Pending</code> status at one time. This error is also returned if a generated template that is in an <code>InProgress</code> or <code>Pending</code> status is attempted to be updated or deleted.</p>
13    ConcurrentResourcesLimitExceededException(crate::types::error::ConcurrentResourcesLimitExceededException),
14    /// <p>The specified resource exists, but has been changed.</p>
15    CreatedButModifiedException(crate::types::error::CreatedButModifiedException),
16    /// <p>The generated template was not found.</p>
17    GeneratedTemplateNotFoundException(crate::types::error::GeneratedTemplateNotFoundException),
18    /// <p>The specified target doesn't have any requested Hook invocations.</p>
19    HookResultNotFoundException(crate::types::error::HookResultNotFoundException),
20    /// <p>The template contains resources with capabilities that weren't specified in the Capabilities parameter.</p>
21    InsufficientCapabilitiesException(crate::types::error::InsufficientCapabilitiesException),
22    /// <p>The specified change set can't be used to update the stack. For example, the change set status might be <code>CREATE_IN_PROGRESS</code>, or the stack status might be <code>UPDATE_IN_PROGRESS</code>.</p>
23    InvalidChangeSetStatusException(crate::types::error::InvalidChangeSetStatusException),
24    /// <p>The specified operation isn't valid.</p>
25    InvalidOperationException(crate::types::error::InvalidOperationException),
26    /// <p>Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>. CloudFormation doesn't return this error to users.</p>
27    InvalidStateTransitionException(crate::types::error::InvalidStateTransitionException),
28    /// <p>The quota for the resource has already been reached.</p>
29    /// <p>For information about resource and stack limitations, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation quotas</a> in the <i>CloudFormation User Guide</i>.</p>
30    LimitExceededException(crate::types::error::LimitExceededException),
31    /// <p>The specified name is already in use.</p>
32    NameAlreadyExistsException(crate::types::error::NameAlreadyExistsException),
33    /// <p>The specified operation ID already exists.</p>
34    OperationIdAlreadyExistsException(crate::types::error::OperationIdAlreadyExistsException),
35    /// <p>Another operation is currently in progress for this StackSet. Only one operation can be performed for a stack set at a given time.</p>
36    OperationInProgressException(crate::types::error::OperationInProgressException),
37    /// <p>The specified ID refers to an operation that doesn't exist.</p>
38    OperationNotFoundException(crate::types::error::OperationNotFoundException),
39    /// <p>Error reserved for use by the <a href="https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/what-is-cloudformation-cli.html">CloudFormation CLI</a>. CloudFormation doesn't return this error to users.</p>
40    OperationStatusCheckFailedException(crate::types::error::OperationStatusCheckFailedException),
41    /// <p>A resource scan is currently in progress. Only one can be run at a time for an account in a Region.</p>
42    ResourceScanInProgressException(crate::types::error::ResourceScanInProgressException),
43    /// <p>The limit on resource scans has been exceeded. Reasons include:</p>
44    /// <ul>
45    /// <li>
46    /// <p>Exceeded the daily quota for resource scans.</p></li>
47    /// <li>
48    /// <p>A resource scan recently failed. You must wait 10 minutes before starting a new resource scan.</p></li>
49    /// <li>
50    /// <p>The last resource scan failed after exceeding 100,000 resources. When this happens, you must wait 24 hours before starting a new resource scan.</p></li>
51    /// </ul>
52    ResourceScanLimitExceededException(crate::types::error::ResourceScanLimitExceededException),
53    /// <p>The resource scan was not found.</p>
54    ResourceScanNotFoundException(crate::types::error::ResourceScanNotFoundException),
55    /// <p>The specified stack instance doesn't exist.</p>
56    StackInstanceNotFoundException(crate::types::error::StackInstanceNotFoundException),
57    /// <p>The specified stack ARN doesn't exist or stack doesn't exist corresponding to the ARN in input.</p>
58    StackNotFoundException(crate::types::error::StackNotFoundException),
59    /// <p>The specified stack refactor can't be found.</p>
60    StackRefactorNotFoundException(crate::types::error::StackRefactorNotFoundException),
61    /// <p>You can't yet delete this StackSet, because it still contains one or more stack instances. Delete all stack instances from the StackSet before deleting the StackSet.</p>
62    StackSetNotEmptyException(crate::types::error::StackSetNotEmptyException),
63    /// <p>The specified StackSet doesn't exist.</p>
64    StackSetNotFoundException(crate::types::error::StackSetNotFoundException),
65    /// <p>Another operation has been performed on this StackSet since the specified operation was performed.</p>
66    StaleRequestException(crate::types::error::StaleRequestException),
67    /// <p>A client request token already exists.</p>
68    TokenAlreadyExistsException(crate::types::error::TokenAlreadyExistsException),
69    /// <p>The specified extension configuration can't be found.</p>
70    TypeConfigurationNotFoundException(crate::types::error::TypeConfigurationNotFoundException),
71    /// <p>The specified extension doesn't exist in the CloudFormation registry.</p>
72    TypeNotFoundException(crate::types::error::TypeNotFoundException),
73    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
74    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
75    variable wildcard pattern and check `.code()`:
76     \
77    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
78     \
79    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
80    Unhandled(crate::error::sealed_unhandled::Unhandled),
81}
82impl ::std::fmt::Display for Error {
83    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
84        match self {
85            Error::AlreadyExistsException(inner) => inner.fmt(f),
86            Error::CfnRegistryException(inner) => inner.fmt(f),
87            Error::ChangeSetNotFoundException(inner) => inner.fmt(f),
88            Error::ConcurrentResourcesLimitExceededException(inner) => inner.fmt(f),
89            Error::CreatedButModifiedException(inner) => inner.fmt(f),
90            Error::GeneratedTemplateNotFoundException(inner) => inner.fmt(f),
91            Error::HookResultNotFoundException(inner) => inner.fmt(f),
92            Error::InsufficientCapabilitiesException(inner) => inner.fmt(f),
93            Error::InvalidChangeSetStatusException(inner) => inner.fmt(f),
94            Error::InvalidOperationException(inner) => inner.fmt(f),
95            Error::InvalidStateTransitionException(inner) => inner.fmt(f),
96            Error::LimitExceededException(inner) => inner.fmt(f),
97            Error::NameAlreadyExistsException(inner) => inner.fmt(f),
98            Error::OperationIdAlreadyExistsException(inner) => inner.fmt(f),
99            Error::OperationInProgressException(inner) => inner.fmt(f),
100            Error::OperationNotFoundException(inner) => inner.fmt(f),
101            Error::OperationStatusCheckFailedException(inner) => inner.fmt(f),
102            Error::ResourceScanInProgressException(inner) => inner.fmt(f),
103            Error::ResourceScanLimitExceededException(inner) => inner.fmt(f),
104            Error::ResourceScanNotFoundException(inner) => inner.fmt(f),
105            Error::StackInstanceNotFoundException(inner) => inner.fmt(f),
106            Error::StackNotFoundException(inner) => inner.fmt(f),
107            Error::StackRefactorNotFoundException(inner) => inner.fmt(f),
108            Error::StackSetNotEmptyException(inner) => inner.fmt(f),
109            Error::StackSetNotFoundException(inner) => inner.fmt(f),
110            Error::StaleRequestException(inner) => inner.fmt(f),
111            Error::TokenAlreadyExistsException(inner) => inner.fmt(f),
112            Error::TypeConfigurationNotFoundException(inner) => inner.fmt(f),
113            Error::TypeNotFoundException(inner) => inner.fmt(f),
114            Error::Unhandled(_) => {
115                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
116                    write!(f, "unhandled error ({code})")
117                } else {
118                    f.write_str("unhandled error")
119                }
120            }
121        }
122    }
123}
124impl From<::aws_smithy_types::error::operation::BuildError> for Error {
125    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
126        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
127            source: value.into(),
128            meta: ::std::default::Default::default(),
129        })
130    }
131}
132impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
133    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
134        match self {
135            Self::AlreadyExistsException(inner) => inner.meta(),
136            Self::CfnRegistryException(inner) => inner.meta(),
137            Self::ChangeSetNotFoundException(inner) => inner.meta(),
138            Self::ConcurrentResourcesLimitExceededException(inner) => inner.meta(),
139            Self::CreatedButModifiedException(inner) => inner.meta(),
140            Self::GeneratedTemplateNotFoundException(inner) => inner.meta(),
141            Self::HookResultNotFoundException(inner) => inner.meta(),
142            Self::InsufficientCapabilitiesException(inner) => inner.meta(),
143            Self::InvalidChangeSetStatusException(inner) => inner.meta(),
144            Self::InvalidOperationException(inner) => inner.meta(),
145            Self::InvalidStateTransitionException(inner) => inner.meta(),
146            Self::LimitExceededException(inner) => inner.meta(),
147            Self::NameAlreadyExistsException(inner) => inner.meta(),
148            Self::OperationIdAlreadyExistsException(inner) => inner.meta(),
149            Self::OperationInProgressException(inner) => inner.meta(),
150            Self::OperationNotFoundException(inner) => inner.meta(),
151            Self::OperationStatusCheckFailedException(inner) => inner.meta(),
152            Self::ResourceScanInProgressException(inner) => inner.meta(),
153            Self::ResourceScanLimitExceededException(inner) => inner.meta(),
154            Self::ResourceScanNotFoundException(inner) => inner.meta(),
155            Self::StackInstanceNotFoundException(inner) => inner.meta(),
156            Self::StackNotFoundException(inner) => inner.meta(),
157            Self::StackRefactorNotFoundException(inner) => inner.meta(),
158            Self::StackSetNotEmptyException(inner) => inner.meta(),
159            Self::StackSetNotFoundException(inner) => inner.meta(),
160            Self::StaleRequestException(inner) => inner.meta(),
161            Self::TokenAlreadyExistsException(inner) => inner.meta(),
162            Self::TypeConfigurationNotFoundException(inner) => inner.meta(),
163            Self::TypeNotFoundException(inner) => inner.meta(),
164            Self::Unhandled(inner) => &inner.meta,
165        }
166    }
167}
168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::activate_organizations_access::ActivateOrganizationsAccessError, R>>
169    for Error
170where
171    R: Send + Sync + std::fmt::Debug + 'static,
172{
173    fn from(
174        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::activate_organizations_access::ActivateOrganizationsAccessError, R>,
175    ) -> Self {
176        match err {
177            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
178            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
179                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
180                source: err.into(),
181            }),
182        }
183    }
184}
185impl From<crate::operation::activate_organizations_access::ActivateOrganizationsAccessError> for Error {
186    fn from(err: crate::operation::activate_organizations_access::ActivateOrganizationsAccessError) -> Self {
187        match err {
188            crate::operation::activate_organizations_access::ActivateOrganizationsAccessError::InvalidOperationException(inner) => {
189                Error::InvalidOperationException(inner)
190            }
191            crate::operation::activate_organizations_access::ActivateOrganizationsAccessError::OperationNotFoundException(inner) => {
192                Error::OperationNotFoundException(inner)
193            }
194            crate::operation::activate_organizations_access::ActivateOrganizationsAccessError::Unhandled(inner) => Error::Unhandled(inner),
195        }
196    }
197}
198impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::activate_type::ActivateTypeError, R>> for Error
199where
200    R: Send + Sync + std::fmt::Debug + 'static,
201{
202    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::activate_type::ActivateTypeError, R>) -> Self {
203        match err {
204            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
205            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
206                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
207                source: err.into(),
208            }),
209        }
210    }
211}
212impl From<crate::operation::activate_type::ActivateTypeError> for Error {
213    fn from(err: crate::operation::activate_type::ActivateTypeError) -> Self {
214        match err {
215            crate::operation::activate_type::ActivateTypeError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
216            crate::operation::activate_type::ActivateTypeError::TypeNotFoundException(inner) => Error::TypeNotFoundException(inner),
217            crate::operation::activate_type::ActivateTypeError::Unhandled(inner) => Error::Unhandled(inner),
218        }
219    }
220}
221impl<R>
222    From<
223        ::aws_smithy_runtime_api::client::result::SdkError<
224            crate::operation::batch_describe_type_configurations::BatchDescribeTypeConfigurationsError,
225            R,
226        >,
227    > for Error
228where
229    R: Send + Sync + std::fmt::Debug + 'static,
230{
231    fn from(
232        err: ::aws_smithy_runtime_api::client::result::SdkError<
233            crate::operation::batch_describe_type_configurations::BatchDescribeTypeConfigurationsError,
234            R,
235        >,
236    ) -> Self {
237        match err {
238            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
239            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
240                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
241                source: err.into(),
242            }),
243        }
244    }
245}
246impl From<crate::operation::batch_describe_type_configurations::BatchDescribeTypeConfigurationsError> for Error {
247    fn from(err: crate::operation::batch_describe_type_configurations::BatchDescribeTypeConfigurationsError) -> Self {
248        match err {
249            crate::operation::batch_describe_type_configurations::BatchDescribeTypeConfigurationsError::CfnRegistryException(inner) => {
250                Error::CfnRegistryException(inner)
251            }
252            crate::operation::batch_describe_type_configurations::BatchDescribeTypeConfigurationsError::TypeConfigurationNotFoundException(inner) => {
253                Error::TypeConfigurationNotFoundException(inner)
254            }
255            crate::operation::batch_describe_type_configurations::BatchDescribeTypeConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
256        }
257    }
258}
259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_update_stack::CancelUpdateStackError, R>> for Error
260where
261    R: Send + Sync + std::fmt::Debug + 'static,
262{
263    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_update_stack::CancelUpdateStackError, R>) -> Self {
264        match err {
265            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
266            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
267                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
268                source: err.into(),
269            }),
270        }
271    }
272}
273impl From<crate::operation::cancel_update_stack::CancelUpdateStackError> for Error {
274    fn from(err: crate::operation::cancel_update_stack::CancelUpdateStackError) -> Self {
275        match err {
276            crate::operation::cancel_update_stack::CancelUpdateStackError::TokenAlreadyExistsException(inner) => {
277                Error::TokenAlreadyExistsException(inner)
278            }
279            crate::operation::cancel_update_stack::CancelUpdateStackError::Unhandled(inner) => Error::Unhandled(inner),
280        }
281    }
282}
283impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::continue_update_rollback::ContinueUpdateRollbackError, R>> for Error
284where
285    R: Send + Sync + std::fmt::Debug + 'static,
286{
287    fn from(
288        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::continue_update_rollback::ContinueUpdateRollbackError, R>,
289    ) -> Self {
290        match err {
291            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
292            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
293                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
294                source: err.into(),
295            }),
296        }
297    }
298}
299impl From<crate::operation::continue_update_rollback::ContinueUpdateRollbackError> for Error {
300    fn from(err: crate::operation::continue_update_rollback::ContinueUpdateRollbackError) -> Self {
301        match err {
302            crate::operation::continue_update_rollback::ContinueUpdateRollbackError::TokenAlreadyExistsException(inner) => {
303                Error::TokenAlreadyExistsException(inner)
304            }
305            crate::operation::continue_update_rollback::ContinueUpdateRollbackError::Unhandled(inner) => Error::Unhandled(inner),
306        }
307    }
308}
309impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_change_set::CreateChangeSetError, R>> for Error
310where
311    R: Send + Sync + std::fmt::Debug + 'static,
312{
313    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_change_set::CreateChangeSetError, R>) -> Self {
314        match err {
315            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
316            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
317                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
318                source: err.into(),
319            }),
320        }
321    }
322}
323impl From<crate::operation::create_change_set::CreateChangeSetError> for Error {
324    fn from(err: crate::operation::create_change_set::CreateChangeSetError) -> Self {
325        match err {
326            crate::operation::create_change_set::CreateChangeSetError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
327            crate::operation::create_change_set::CreateChangeSetError::InsufficientCapabilitiesException(inner) => {
328                Error::InsufficientCapabilitiesException(inner)
329            }
330            crate::operation::create_change_set::CreateChangeSetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
331            crate::operation::create_change_set::CreateChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
332        }
333    }
334}
335impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_generated_template::CreateGeneratedTemplateError, R>>
336    for Error
337where
338    R: Send + Sync + std::fmt::Debug + 'static,
339{
340    fn from(
341        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_generated_template::CreateGeneratedTemplateError, R>,
342    ) -> Self {
343        match err {
344            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
345            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
346                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
347                source: err.into(),
348            }),
349        }
350    }
351}
352impl From<crate::operation::create_generated_template::CreateGeneratedTemplateError> for Error {
353    fn from(err: crate::operation::create_generated_template::CreateGeneratedTemplateError) -> Self {
354        match err {
355            crate::operation::create_generated_template::CreateGeneratedTemplateError::AlreadyExistsException(inner) => {
356                Error::AlreadyExistsException(inner)
357            }
358            crate::operation::create_generated_template::CreateGeneratedTemplateError::ConcurrentResourcesLimitExceededException(inner) => {
359                Error::ConcurrentResourcesLimitExceededException(inner)
360            }
361            crate::operation::create_generated_template::CreateGeneratedTemplateError::LimitExceededException(inner) => {
362                Error::LimitExceededException(inner)
363            }
364            crate::operation::create_generated_template::CreateGeneratedTemplateError::Unhandled(inner) => Error::Unhandled(inner),
365        }
366    }
367}
368impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack::CreateStackError, R>> for Error
369where
370    R: Send + Sync + std::fmt::Debug + 'static,
371{
372    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack::CreateStackError, R>) -> Self {
373        match err {
374            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
375            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
376                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
377                source: err.into(),
378            }),
379        }
380    }
381}
382impl From<crate::operation::create_stack::CreateStackError> for Error {
383    fn from(err: crate::operation::create_stack::CreateStackError) -> Self {
384        match err {
385            crate::operation::create_stack::CreateStackError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
386            crate::operation::create_stack::CreateStackError::InsufficientCapabilitiesException(inner) => {
387                Error::InsufficientCapabilitiesException(inner)
388            }
389            crate::operation::create_stack::CreateStackError::LimitExceededException(inner) => Error::LimitExceededException(inner),
390            crate::operation::create_stack::CreateStackError::TokenAlreadyExistsException(inner) => Error::TokenAlreadyExistsException(inner),
391            crate::operation::create_stack::CreateStackError::Unhandled(inner) => Error::Unhandled(inner),
392        }
393    }
394}
395impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack_instances::CreateStackInstancesError, R>> for Error
396where
397    R: Send + Sync + std::fmt::Debug + 'static,
398{
399    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack_instances::CreateStackInstancesError, R>) -> Self {
400        match err {
401            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
402            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
403                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
404                source: err.into(),
405            }),
406        }
407    }
408}
409impl From<crate::operation::create_stack_instances::CreateStackInstancesError> for Error {
410    fn from(err: crate::operation::create_stack_instances::CreateStackInstancesError) -> Self {
411        match err {
412            crate::operation::create_stack_instances::CreateStackInstancesError::InvalidOperationException(inner) => {
413                Error::InvalidOperationException(inner)
414            }
415            crate::operation::create_stack_instances::CreateStackInstancesError::LimitExceededException(inner) => {
416                Error::LimitExceededException(inner)
417            }
418            crate::operation::create_stack_instances::CreateStackInstancesError::OperationIdAlreadyExistsException(inner) => {
419                Error::OperationIdAlreadyExistsException(inner)
420            }
421            crate::operation::create_stack_instances::CreateStackInstancesError::OperationInProgressException(inner) => {
422                Error::OperationInProgressException(inner)
423            }
424            crate::operation::create_stack_instances::CreateStackInstancesError::StackSetNotFoundException(inner) => {
425                Error::StackSetNotFoundException(inner)
426            }
427            crate::operation::create_stack_instances::CreateStackInstancesError::StaleRequestException(inner) => Error::StaleRequestException(inner),
428            crate::operation::create_stack_instances::CreateStackInstancesError::Unhandled(inner) => Error::Unhandled(inner),
429        }
430    }
431}
432impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack_refactor::CreateStackRefactorError, R>> for Error
433where
434    R: Send + Sync + std::fmt::Debug + 'static,
435{
436    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack_refactor::CreateStackRefactorError, R>) -> Self {
437        match err {
438            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
439            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
440                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
441                source: err.into(),
442            }),
443        }
444    }
445}
446impl From<crate::operation::create_stack_refactor::CreateStackRefactorError> for Error {
447    fn from(err: crate::operation::create_stack_refactor::CreateStackRefactorError) -> Self {
448        match err {
449            crate::operation::create_stack_refactor::CreateStackRefactorError::Unhandled(inner) => Error::Unhandled(inner),
450        }
451    }
452}
453impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack_set::CreateStackSetError, R>> for Error
454where
455    R: Send + Sync + std::fmt::Debug + 'static,
456{
457    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack_set::CreateStackSetError, R>) -> Self {
458        match err {
459            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
460            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
461                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
462                source: err.into(),
463            }),
464        }
465    }
466}
467impl From<crate::operation::create_stack_set::CreateStackSetError> for Error {
468    fn from(err: crate::operation::create_stack_set::CreateStackSetError) -> Self {
469        match err {
470            crate::operation::create_stack_set::CreateStackSetError::CreatedButModifiedException(inner) => Error::CreatedButModifiedException(inner),
471            crate::operation::create_stack_set::CreateStackSetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
472            crate::operation::create_stack_set::CreateStackSetError::NameAlreadyExistsException(inner) => Error::NameAlreadyExistsException(inner),
473            crate::operation::create_stack_set::CreateStackSetError::Unhandled(inner) => Error::Unhandled(inner),
474        }
475    }
476}
477impl<R>
478    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deactivate_organizations_access::DeactivateOrganizationsAccessError, R>>
479    for Error
480where
481    R: Send + Sync + std::fmt::Debug + 'static,
482{
483    fn from(
484        err: ::aws_smithy_runtime_api::client::result::SdkError<
485            crate::operation::deactivate_organizations_access::DeactivateOrganizationsAccessError,
486            R,
487        >,
488    ) -> Self {
489        match err {
490            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
491            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
492                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
493                source: err.into(),
494            }),
495        }
496    }
497}
498impl From<crate::operation::deactivate_organizations_access::DeactivateOrganizationsAccessError> for Error {
499    fn from(err: crate::operation::deactivate_organizations_access::DeactivateOrganizationsAccessError) -> Self {
500        match err {
501            crate::operation::deactivate_organizations_access::DeactivateOrganizationsAccessError::InvalidOperationException(inner) => {
502                Error::InvalidOperationException(inner)
503            }
504            crate::operation::deactivate_organizations_access::DeactivateOrganizationsAccessError::OperationNotFoundException(inner) => {
505                Error::OperationNotFoundException(inner)
506            }
507            crate::operation::deactivate_organizations_access::DeactivateOrganizationsAccessError::Unhandled(inner) => Error::Unhandled(inner),
508        }
509    }
510}
511impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deactivate_type::DeactivateTypeError, R>> for Error
512where
513    R: Send + Sync + std::fmt::Debug + 'static,
514{
515    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deactivate_type::DeactivateTypeError, R>) -> Self {
516        match err {
517            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
518            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
519                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
520                source: err.into(),
521            }),
522        }
523    }
524}
525impl From<crate::operation::deactivate_type::DeactivateTypeError> for Error {
526    fn from(err: crate::operation::deactivate_type::DeactivateTypeError) -> Self {
527        match err {
528            crate::operation::deactivate_type::DeactivateTypeError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
529            crate::operation::deactivate_type::DeactivateTypeError::TypeNotFoundException(inner) => Error::TypeNotFoundException(inner),
530            crate::operation::deactivate_type::DeactivateTypeError::Unhandled(inner) => Error::Unhandled(inner),
531        }
532    }
533}
534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_change_set::DeleteChangeSetError, R>> for Error
535where
536    R: Send + Sync + std::fmt::Debug + 'static,
537{
538    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_change_set::DeleteChangeSetError, R>) -> Self {
539        match err {
540            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
541            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
542                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
543                source: err.into(),
544            }),
545        }
546    }
547}
548impl From<crate::operation::delete_change_set::DeleteChangeSetError> for Error {
549    fn from(err: crate::operation::delete_change_set::DeleteChangeSetError) -> Self {
550        match err {
551            crate::operation::delete_change_set::DeleteChangeSetError::InvalidChangeSetStatusException(inner) => {
552                Error::InvalidChangeSetStatusException(inner)
553            }
554            crate::operation::delete_change_set::DeleteChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
555        }
556    }
557}
558impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_generated_template::DeleteGeneratedTemplateError, R>>
559    for Error
560where
561    R: Send + Sync + std::fmt::Debug + 'static,
562{
563    fn from(
564        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_generated_template::DeleteGeneratedTemplateError, R>,
565    ) -> Self {
566        match err {
567            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
568            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
569                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
570                source: err.into(),
571            }),
572        }
573    }
574}
575impl From<crate::operation::delete_generated_template::DeleteGeneratedTemplateError> for Error {
576    fn from(err: crate::operation::delete_generated_template::DeleteGeneratedTemplateError) -> Self {
577        match err {
578            crate::operation::delete_generated_template::DeleteGeneratedTemplateError::ConcurrentResourcesLimitExceededException(inner) => {
579                Error::ConcurrentResourcesLimitExceededException(inner)
580            }
581            crate::operation::delete_generated_template::DeleteGeneratedTemplateError::GeneratedTemplateNotFoundException(inner) => {
582                Error::GeneratedTemplateNotFoundException(inner)
583            }
584            crate::operation::delete_generated_template::DeleteGeneratedTemplateError::Unhandled(inner) => Error::Unhandled(inner),
585        }
586    }
587}
588impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack::DeleteStackError, R>> for Error
589where
590    R: Send + Sync + std::fmt::Debug + 'static,
591{
592    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack::DeleteStackError, R>) -> Self {
593        match err {
594            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
595            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
596                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
597                source: err.into(),
598            }),
599        }
600    }
601}
602impl From<crate::operation::delete_stack::DeleteStackError> for Error {
603    fn from(err: crate::operation::delete_stack::DeleteStackError) -> Self {
604        match err {
605            crate::operation::delete_stack::DeleteStackError::TokenAlreadyExistsException(inner) => Error::TokenAlreadyExistsException(inner),
606            crate::operation::delete_stack::DeleteStackError::Unhandled(inner) => Error::Unhandled(inner),
607        }
608    }
609}
610impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack_instances::DeleteStackInstancesError, R>> for Error
611where
612    R: Send + Sync + std::fmt::Debug + 'static,
613{
614    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack_instances::DeleteStackInstancesError, R>) -> Self {
615        match err {
616            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
617            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
618                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
619                source: err.into(),
620            }),
621        }
622    }
623}
624impl From<crate::operation::delete_stack_instances::DeleteStackInstancesError> for Error {
625    fn from(err: crate::operation::delete_stack_instances::DeleteStackInstancesError) -> Self {
626        match err {
627            crate::operation::delete_stack_instances::DeleteStackInstancesError::InvalidOperationException(inner) => {
628                Error::InvalidOperationException(inner)
629            }
630            crate::operation::delete_stack_instances::DeleteStackInstancesError::OperationIdAlreadyExistsException(inner) => {
631                Error::OperationIdAlreadyExistsException(inner)
632            }
633            crate::operation::delete_stack_instances::DeleteStackInstancesError::OperationInProgressException(inner) => {
634                Error::OperationInProgressException(inner)
635            }
636            crate::operation::delete_stack_instances::DeleteStackInstancesError::StackSetNotFoundException(inner) => {
637                Error::StackSetNotFoundException(inner)
638            }
639            crate::operation::delete_stack_instances::DeleteStackInstancesError::StaleRequestException(inner) => Error::StaleRequestException(inner),
640            crate::operation::delete_stack_instances::DeleteStackInstancesError::Unhandled(inner) => Error::Unhandled(inner),
641        }
642    }
643}
644impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack_set::DeleteStackSetError, R>> for Error
645where
646    R: Send + Sync + std::fmt::Debug + 'static,
647{
648    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack_set::DeleteStackSetError, R>) -> Self {
649        match err {
650            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
651            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
652                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
653                source: err.into(),
654            }),
655        }
656    }
657}
658impl From<crate::operation::delete_stack_set::DeleteStackSetError> for Error {
659    fn from(err: crate::operation::delete_stack_set::DeleteStackSetError) -> Self {
660        match err {
661            crate::operation::delete_stack_set::DeleteStackSetError::OperationInProgressException(inner) => {
662                Error::OperationInProgressException(inner)
663            }
664            crate::operation::delete_stack_set::DeleteStackSetError::StackSetNotEmptyException(inner) => Error::StackSetNotEmptyException(inner),
665            crate::operation::delete_stack_set::DeleteStackSetError::Unhandled(inner) => Error::Unhandled(inner),
666        }
667    }
668}
669impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_type::DeregisterTypeError, R>> for Error
670where
671    R: Send + Sync + std::fmt::Debug + 'static,
672{
673    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_type::DeregisterTypeError, R>) -> Self {
674        match err {
675            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
676            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
677                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
678                source: err.into(),
679            }),
680        }
681    }
682}
683impl From<crate::operation::deregister_type::DeregisterTypeError> for Error {
684    fn from(err: crate::operation::deregister_type::DeregisterTypeError) -> Self {
685        match err {
686            crate::operation::deregister_type::DeregisterTypeError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
687            crate::operation::deregister_type::DeregisterTypeError::TypeNotFoundException(inner) => Error::TypeNotFoundException(inner),
688            crate::operation::deregister_type::DeregisterTypeError::Unhandled(inner) => Error::Unhandled(inner),
689        }
690    }
691}
692impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_limits::DescribeAccountLimitsError, R>> for Error
693where
694    R: Send + Sync + std::fmt::Debug + 'static,
695{
696    fn from(
697        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_limits::DescribeAccountLimitsError, R>,
698    ) -> Self {
699        match err {
700            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
701            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
702                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
703                source: err.into(),
704            }),
705        }
706    }
707}
708impl From<crate::operation::describe_account_limits::DescribeAccountLimitsError> for Error {
709    fn from(err: crate::operation::describe_account_limits::DescribeAccountLimitsError) -> Self {
710        match err {
711            crate::operation::describe_account_limits::DescribeAccountLimitsError::Unhandled(inner) => Error::Unhandled(inner),
712        }
713    }
714}
715impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_change_set::DescribeChangeSetError, R>> for Error
716where
717    R: Send + Sync + std::fmt::Debug + 'static,
718{
719    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_change_set::DescribeChangeSetError, R>) -> Self {
720        match err {
721            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
722            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
723                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
724                source: err.into(),
725            }),
726        }
727    }
728}
729impl From<crate::operation::describe_change_set::DescribeChangeSetError> for Error {
730    fn from(err: crate::operation::describe_change_set::DescribeChangeSetError) -> Self {
731        match err {
732            crate::operation::describe_change_set::DescribeChangeSetError::ChangeSetNotFoundException(inner) => {
733                Error::ChangeSetNotFoundException(inner)
734            }
735            crate::operation::describe_change_set::DescribeChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
736        }
737    }
738}
739impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_change_set_hooks::DescribeChangeSetHooksError, R>>
740    for Error
741where
742    R: Send + Sync + std::fmt::Debug + 'static,
743{
744    fn from(
745        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_change_set_hooks::DescribeChangeSetHooksError, R>,
746    ) -> Self {
747        match err {
748            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
749            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
750                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
751                source: err.into(),
752            }),
753        }
754    }
755}
756impl From<crate::operation::describe_change_set_hooks::DescribeChangeSetHooksError> for Error {
757    fn from(err: crate::operation::describe_change_set_hooks::DescribeChangeSetHooksError) -> Self {
758        match err {
759            crate::operation::describe_change_set_hooks::DescribeChangeSetHooksError::ChangeSetNotFoundException(inner) => {
760                Error::ChangeSetNotFoundException(inner)
761            }
762            crate::operation::describe_change_set_hooks::DescribeChangeSetHooksError::Unhandled(inner) => Error::Unhandled(inner),
763        }
764    }
765}
766impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_events::DescribeEventsError, R>> for Error
767where
768    R: Send + Sync + std::fmt::Debug + 'static,
769{
770    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_events::DescribeEventsError, R>) -> Self {
771        match err {
772            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
773            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
774                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
775                source: err.into(),
776            }),
777        }
778    }
779}
780impl From<crate::operation::describe_events::DescribeEventsError> for Error {
781    fn from(err: crate::operation::describe_events::DescribeEventsError) -> Self {
782        match err {
783            crate::operation::describe_events::DescribeEventsError::Unhandled(inner) => Error::Unhandled(inner),
784        }
785    }
786}
787impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_generated_template::DescribeGeneratedTemplateError, R>>
788    for Error
789where
790    R: Send + Sync + std::fmt::Debug + 'static,
791{
792    fn from(
793        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_generated_template::DescribeGeneratedTemplateError, R>,
794    ) -> Self {
795        match err {
796            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
797            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
798                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
799                source: err.into(),
800            }),
801        }
802    }
803}
804impl From<crate::operation::describe_generated_template::DescribeGeneratedTemplateError> for Error {
805    fn from(err: crate::operation::describe_generated_template::DescribeGeneratedTemplateError) -> Self {
806        match err {
807            crate::operation::describe_generated_template::DescribeGeneratedTemplateError::GeneratedTemplateNotFoundException(inner) => {
808                Error::GeneratedTemplateNotFoundException(inner)
809            }
810            crate::operation::describe_generated_template::DescribeGeneratedTemplateError::Unhandled(inner) => Error::Unhandled(inner),
811        }
812    }
813}
814impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_organizations_access::DescribeOrganizationsAccessError, R>>
815    for Error
816where
817    R: Send + Sync + std::fmt::Debug + 'static,
818{
819    fn from(
820        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_organizations_access::DescribeOrganizationsAccessError, R>,
821    ) -> Self {
822        match err {
823            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
824            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
825                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
826                source: err.into(),
827            }),
828        }
829    }
830}
831impl From<crate::operation::describe_organizations_access::DescribeOrganizationsAccessError> for Error {
832    fn from(err: crate::operation::describe_organizations_access::DescribeOrganizationsAccessError) -> Self {
833        match err {
834            crate::operation::describe_organizations_access::DescribeOrganizationsAccessError::InvalidOperationException(inner) => {
835                Error::InvalidOperationException(inner)
836            }
837            crate::operation::describe_organizations_access::DescribeOrganizationsAccessError::OperationNotFoundException(inner) => {
838                Error::OperationNotFoundException(inner)
839            }
840            crate::operation::describe_organizations_access::DescribeOrganizationsAccessError::Unhandled(inner) => Error::Unhandled(inner),
841        }
842    }
843}
844impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_publisher::DescribePublisherError, R>> for Error
845where
846    R: Send + Sync + std::fmt::Debug + 'static,
847{
848    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_publisher::DescribePublisherError, R>) -> Self {
849        match err {
850            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
851            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
852                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
853                source: err.into(),
854            }),
855        }
856    }
857}
858impl From<crate::operation::describe_publisher::DescribePublisherError> for Error {
859    fn from(err: crate::operation::describe_publisher::DescribePublisherError) -> Self {
860        match err {
861            crate::operation::describe_publisher::DescribePublisherError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
862            crate::operation::describe_publisher::DescribePublisherError::Unhandled(inner) => Error::Unhandled(inner),
863        }
864    }
865}
866impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_scan::DescribeResourceScanError, R>> for Error
867where
868    R: Send + Sync + std::fmt::Debug + 'static,
869{
870    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_scan::DescribeResourceScanError, R>) -> Self {
871        match err {
872            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
873            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
874                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
875                source: err.into(),
876            }),
877        }
878    }
879}
880impl From<crate::operation::describe_resource_scan::DescribeResourceScanError> for Error {
881    fn from(err: crate::operation::describe_resource_scan::DescribeResourceScanError) -> Self {
882        match err {
883            crate::operation::describe_resource_scan::DescribeResourceScanError::ResourceScanNotFoundException(inner) => {
884                Error::ResourceScanNotFoundException(inner)
885            }
886            crate::operation::describe_resource_scan::DescribeResourceScanError::Unhandled(inner) => Error::Unhandled(inner),
887        }
888    }
889}
890impl<R>
891    From<
892        ::aws_smithy_runtime_api::client::result::SdkError<
893            crate::operation::describe_stack_drift_detection_status::DescribeStackDriftDetectionStatusError,
894            R,
895        >,
896    > for Error
897where
898    R: Send + Sync + std::fmt::Debug + 'static,
899{
900    fn from(
901        err: ::aws_smithy_runtime_api::client::result::SdkError<
902            crate::operation::describe_stack_drift_detection_status::DescribeStackDriftDetectionStatusError,
903            R,
904        >,
905    ) -> Self {
906        match err {
907            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
908            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
909                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
910                source: err.into(),
911            }),
912        }
913    }
914}
915impl From<crate::operation::describe_stack_drift_detection_status::DescribeStackDriftDetectionStatusError> for Error {
916    fn from(err: crate::operation::describe_stack_drift_detection_status::DescribeStackDriftDetectionStatusError) -> Self {
917        match err {
918            crate::operation::describe_stack_drift_detection_status::DescribeStackDriftDetectionStatusError::Unhandled(inner) => {
919                Error::Unhandled(inner)
920            }
921        }
922    }
923}
924impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_events::DescribeStackEventsError, R>> for Error
925where
926    R: Send + Sync + std::fmt::Debug + 'static,
927{
928    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_events::DescribeStackEventsError, R>) -> Self {
929        match err {
930            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
931            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
932                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
933                source: err.into(),
934            }),
935        }
936    }
937}
938impl From<crate::operation::describe_stack_events::DescribeStackEventsError> for Error {
939    fn from(err: crate::operation::describe_stack_events::DescribeStackEventsError) -> Self {
940        match err {
941            crate::operation::describe_stack_events::DescribeStackEventsError::Unhandled(inner) => Error::Unhandled(inner),
942        }
943    }
944}
945impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_instance::DescribeStackInstanceError, R>> for Error
946where
947    R: Send + Sync + std::fmt::Debug + 'static,
948{
949    fn from(
950        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_instance::DescribeStackInstanceError, R>,
951    ) -> Self {
952        match err {
953            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
954            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
955                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
956                source: err.into(),
957            }),
958        }
959    }
960}
961impl From<crate::operation::describe_stack_instance::DescribeStackInstanceError> for Error {
962    fn from(err: crate::operation::describe_stack_instance::DescribeStackInstanceError) -> Self {
963        match err {
964            crate::operation::describe_stack_instance::DescribeStackInstanceError::StackInstanceNotFoundException(inner) => {
965                Error::StackInstanceNotFoundException(inner)
966            }
967            crate::operation::describe_stack_instance::DescribeStackInstanceError::StackSetNotFoundException(inner) => {
968                Error::StackSetNotFoundException(inner)
969            }
970            crate::operation::describe_stack_instance::DescribeStackInstanceError::Unhandled(inner) => Error::Unhandled(inner),
971        }
972    }
973}
974impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_refactor::DescribeStackRefactorError, R>> for Error
975where
976    R: Send + Sync + std::fmt::Debug + 'static,
977{
978    fn from(
979        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_refactor::DescribeStackRefactorError, R>,
980    ) -> Self {
981        match err {
982            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
983            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
984                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
985                source: err.into(),
986            }),
987        }
988    }
989}
990impl From<crate::operation::describe_stack_refactor::DescribeStackRefactorError> for Error {
991    fn from(err: crate::operation::describe_stack_refactor::DescribeStackRefactorError) -> Self {
992        match err {
993            crate::operation::describe_stack_refactor::DescribeStackRefactorError::StackRefactorNotFoundException(inner) => {
994                Error::StackRefactorNotFoundException(inner)
995            }
996            crate::operation::describe_stack_refactor::DescribeStackRefactorError::Unhandled(inner) => Error::Unhandled(inner),
997        }
998    }
999}
1000impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_resource::DescribeStackResourceError, R>> for Error
1001where
1002    R: Send + Sync + std::fmt::Debug + 'static,
1003{
1004    fn from(
1005        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_resource::DescribeStackResourceError, R>,
1006    ) -> Self {
1007        match err {
1008            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1009            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1010                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1011                source: err.into(),
1012            }),
1013        }
1014    }
1015}
1016impl From<crate::operation::describe_stack_resource::DescribeStackResourceError> for Error {
1017    fn from(err: crate::operation::describe_stack_resource::DescribeStackResourceError) -> Self {
1018        match err {
1019            crate::operation::describe_stack_resource::DescribeStackResourceError::Unhandled(inner) => Error::Unhandled(inner),
1020        }
1021    }
1022}
1023impl<R>
1024    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_resource_drifts::DescribeStackResourceDriftsError, R>>
1025    for Error
1026where
1027    R: Send + Sync + std::fmt::Debug + 'static,
1028{
1029    fn from(
1030        err: ::aws_smithy_runtime_api::client::result::SdkError<
1031            crate::operation::describe_stack_resource_drifts::DescribeStackResourceDriftsError,
1032            R,
1033        >,
1034    ) -> Self {
1035        match err {
1036            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1037            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1038                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1039                source: err.into(),
1040            }),
1041        }
1042    }
1043}
1044impl From<crate::operation::describe_stack_resource_drifts::DescribeStackResourceDriftsError> for Error {
1045    fn from(err: crate::operation::describe_stack_resource_drifts::DescribeStackResourceDriftsError) -> Self {
1046        match err {
1047            crate::operation::describe_stack_resource_drifts::DescribeStackResourceDriftsError::Unhandled(inner) => Error::Unhandled(inner),
1048        }
1049    }
1050}
1051impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_resources::DescribeStackResourcesError, R>> for Error
1052where
1053    R: Send + Sync + std::fmt::Debug + 'static,
1054{
1055    fn from(
1056        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_resources::DescribeStackResourcesError, R>,
1057    ) -> Self {
1058        match err {
1059            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1060            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1061                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1062                source: err.into(),
1063            }),
1064        }
1065    }
1066}
1067impl From<crate::operation::describe_stack_resources::DescribeStackResourcesError> for Error {
1068    fn from(err: crate::operation::describe_stack_resources::DescribeStackResourcesError) -> Self {
1069        match err {
1070            crate::operation::describe_stack_resources::DescribeStackResourcesError::Unhandled(inner) => Error::Unhandled(inner),
1071        }
1072    }
1073}
1074impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stacks::DescribeStacksError, R>> for Error
1075where
1076    R: Send + Sync + std::fmt::Debug + 'static,
1077{
1078    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stacks::DescribeStacksError, R>) -> Self {
1079        match err {
1080            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1081            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1082                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1083                source: err.into(),
1084            }),
1085        }
1086    }
1087}
1088impl From<crate::operation::describe_stacks::DescribeStacksError> for Error {
1089    fn from(err: crate::operation::describe_stacks::DescribeStacksError) -> Self {
1090        match err {
1091            crate::operation::describe_stacks::DescribeStacksError::Unhandled(inner) => Error::Unhandled(inner),
1092        }
1093    }
1094}
1095impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_set::DescribeStackSetError, R>> for Error
1096where
1097    R: Send + Sync + std::fmt::Debug + 'static,
1098{
1099    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_set::DescribeStackSetError, R>) -> Self {
1100        match err {
1101            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1102            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1103                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1104                source: err.into(),
1105            }),
1106        }
1107    }
1108}
1109impl From<crate::operation::describe_stack_set::DescribeStackSetError> for Error {
1110    fn from(err: crate::operation::describe_stack_set::DescribeStackSetError) -> Self {
1111        match err {
1112            crate::operation::describe_stack_set::DescribeStackSetError::StackSetNotFoundException(inner) => Error::StackSetNotFoundException(inner),
1113            crate::operation::describe_stack_set::DescribeStackSetError::Unhandled(inner) => Error::Unhandled(inner),
1114        }
1115    }
1116}
1117impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_set_operation::DescribeStackSetOperationError, R>>
1118    for Error
1119where
1120    R: Send + Sync + std::fmt::Debug + 'static,
1121{
1122    fn from(
1123        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stack_set_operation::DescribeStackSetOperationError, R>,
1124    ) -> Self {
1125        match err {
1126            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1127            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1128                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1129                source: err.into(),
1130            }),
1131        }
1132    }
1133}
1134impl From<crate::operation::describe_stack_set_operation::DescribeStackSetOperationError> for Error {
1135    fn from(err: crate::operation::describe_stack_set_operation::DescribeStackSetOperationError) -> Self {
1136        match err {
1137            crate::operation::describe_stack_set_operation::DescribeStackSetOperationError::OperationNotFoundException(inner) => {
1138                Error::OperationNotFoundException(inner)
1139            }
1140            crate::operation::describe_stack_set_operation::DescribeStackSetOperationError::StackSetNotFoundException(inner) => {
1141                Error::StackSetNotFoundException(inner)
1142            }
1143            crate::operation::describe_stack_set_operation::DescribeStackSetOperationError::Unhandled(inner) => Error::Unhandled(inner),
1144        }
1145    }
1146}
1147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_type::DescribeTypeError, R>> for Error
1148where
1149    R: Send + Sync + std::fmt::Debug + 'static,
1150{
1151    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_type::DescribeTypeError, R>) -> Self {
1152        match err {
1153            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1154            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1155                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1156                source: err.into(),
1157            }),
1158        }
1159    }
1160}
1161impl From<crate::operation::describe_type::DescribeTypeError> for Error {
1162    fn from(err: crate::operation::describe_type::DescribeTypeError) -> Self {
1163        match err {
1164            crate::operation::describe_type::DescribeTypeError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
1165            crate::operation::describe_type::DescribeTypeError::TypeNotFoundException(inner) => Error::TypeNotFoundException(inner),
1166            crate::operation::describe_type::DescribeTypeError::Unhandled(inner) => Error::Unhandled(inner),
1167        }
1168    }
1169}
1170impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_type_registration::DescribeTypeRegistrationError, R>>
1171    for Error
1172where
1173    R: Send + Sync + std::fmt::Debug + 'static,
1174{
1175    fn from(
1176        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_type_registration::DescribeTypeRegistrationError, R>,
1177    ) -> Self {
1178        match err {
1179            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1180            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1181                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1182                source: err.into(),
1183            }),
1184        }
1185    }
1186}
1187impl From<crate::operation::describe_type_registration::DescribeTypeRegistrationError> for Error {
1188    fn from(err: crate::operation::describe_type_registration::DescribeTypeRegistrationError) -> Self {
1189        match err {
1190            crate::operation::describe_type_registration::DescribeTypeRegistrationError::CfnRegistryException(inner) => {
1191                Error::CfnRegistryException(inner)
1192            }
1193            crate::operation::describe_type_registration::DescribeTypeRegistrationError::Unhandled(inner) => Error::Unhandled(inner),
1194        }
1195    }
1196}
1197impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_stack_drift::DetectStackDriftError, R>> for Error
1198where
1199    R: Send + Sync + std::fmt::Debug + 'static,
1200{
1201    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_stack_drift::DetectStackDriftError, R>) -> Self {
1202        match err {
1203            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1204            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1205                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1206                source: err.into(),
1207            }),
1208        }
1209    }
1210}
1211impl From<crate::operation::detect_stack_drift::DetectStackDriftError> for Error {
1212    fn from(err: crate::operation::detect_stack_drift::DetectStackDriftError) -> Self {
1213        match err {
1214            crate::operation::detect_stack_drift::DetectStackDriftError::Unhandled(inner) => Error::Unhandled(inner),
1215        }
1216    }
1217}
1218impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_stack_resource_drift::DetectStackResourceDriftError, R>>
1219    for Error
1220where
1221    R: Send + Sync + std::fmt::Debug + 'static,
1222{
1223    fn from(
1224        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_stack_resource_drift::DetectStackResourceDriftError, R>,
1225    ) -> Self {
1226        match err {
1227            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1228            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1229                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1230                source: err.into(),
1231            }),
1232        }
1233    }
1234}
1235impl From<crate::operation::detect_stack_resource_drift::DetectStackResourceDriftError> for Error {
1236    fn from(err: crate::operation::detect_stack_resource_drift::DetectStackResourceDriftError) -> Self {
1237        match err {
1238            crate::operation::detect_stack_resource_drift::DetectStackResourceDriftError::Unhandled(inner) => Error::Unhandled(inner),
1239        }
1240    }
1241}
1242impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_stack_set_drift::DetectStackSetDriftError, R>> for Error
1243where
1244    R: Send + Sync + std::fmt::Debug + 'static,
1245{
1246    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_stack_set_drift::DetectStackSetDriftError, R>) -> Self {
1247        match err {
1248            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1249            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1250                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1251                source: err.into(),
1252            }),
1253        }
1254    }
1255}
1256impl From<crate::operation::detect_stack_set_drift::DetectStackSetDriftError> for Error {
1257    fn from(err: crate::operation::detect_stack_set_drift::DetectStackSetDriftError) -> Self {
1258        match err {
1259            crate::operation::detect_stack_set_drift::DetectStackSetDriftError::InvalidOperationException(inner) => {
1260                Error::InvalidOperationException(inner)
1261            }
1262            crate::operation::detect_stack_set_drift::DetectStackSetDriftError::OperationInProgressException(inner) => {
1263                Error::OperationInProgressException(inner)
1264            }
1265            crate::operation::detect_stack_set_drift::DetectStackSetDriftError::StackSetNotFoundException(inner) => {
1266                Error::StackSetNotFoundException(inner)
1267            }
1268            crate::operation::detect_stack_set_drift::DetectStackSetDriftError::Unhandled(inner) => Error::Unhandled(inner),
1269        }
1270    }
1271}
1272impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::estimate_template_cost::EstimateTemplateCostError, R>> for Error
1273where
1274    R: Send + Sync + std::fmt::Debug + 'static,
1275{
1276    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::estimate_template_cost::EstimateTemplateCostError, R>) -> Self {
1277        match err {
1278            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1279            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1280                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1281                source: err.into(),
1282            }),
1283        }
1284    }
1285}
1286impl From<crate::operation::estimate_template_cost::EstimateTemplateCostError> for Error {
1287    fn from(err: crate::operation::estimate_template_cost::EstimateTemplateCostError) -> Self {
1288        match err {
1289            crate::operation::estimate_template_cost::EstimateTemplateCostError::Unhandled(inner) => Error::Unhandled(inner),
1290        }
1291    }
1292}
1293impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_change_set::ExecuteChangeSetError, R>> for Error
1294where
1295    R: Send + Sync + std::fmt::Debug + 'static,
1296{
1297    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_change_set::ExecuteChangeSetError, R>) -> Self {
1298        match err {
1299            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1300            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1301                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1302                source: err.into(),
1303            }),
1304        }
1305    }
1306}
1307impl From<crate::operation::execute_change_set::ExecuteChangeSetError> for Error {
1308    fn from(err: crate::operation::execute_change_set::ExecuteChangeSetError) -> Self {
1309        match err {
1310            crate::operation::execute_change_set::ExecuteChangeSetError::ChangeSetNotFoundException(inner) => {
1311                Error::ChangeSetNotFoundException(inner)
1312            }
1313            crate::operation::execute_change_set::ExecuteChangeSetError::InsufficientCapabilitiesException(inner) => {
1314                Error::InsufficientCapabilitiesException(inner)
1315            }
1316            crate::operation::execute_change_set::ExecuteChangeSetError::InvalidChangeSetStatusException(inner) => {
1317                Error::InvalidChangeSetStatusException(inner)
1318            }
1319            crate::operation::execute_change_set::ExecuteChangeSetError::TokenAlreadyExistsException(inner) => {
1320                Error::TokenAlreadyExistsException(inner)
1321            }
1322            crate::operation::execute_change_set::ExecuteChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
1323        }
1324    }
1325}
1326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_stack_refactor::ExecuteStackRefactorError, R>> for Error
1327where
1328    R: Send + Sync + std::fmt::Debug + 'static,
1329{
1330    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_stack_refactor::ExecuteStackRefactorError, R>) -> 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::execute_stack_refactor::ExecuteStackRefactorError> for Error {
1341    fn from(err: crate::operation::execute_stack_refactor::ExecuteStackRefactorError) -> Self {
1342        match err {
1343            crate::operation::execute_stack_refactor::ExecuteStackRefactorError::Unhandled(inner) => Error::Unhandled(inner),
1344        }
1345    }
1346}
1347impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_generated_template::GetGeneratedTemplateError, R>> for Error
1348where
1349    R: Send + Sync + std::fmt::Debug + 'static,
1350{
1351    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_generated_template::GetGeneratedTemplateError, R>) -> Self {
1352        match err {
1353            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1354            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1355                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1356                source: err.into(),
1357            }),
1358        }
1359    }
1360}
1361impl From<crate::operation::get_generated_template::GetGeneratedTemplateError> for Error {
1362    fn from(err: crate::operation::get_generated_template::GetGeneratedTemplateError) -> Self {
1363        match err {
1364            crate::operation::get_generated_template::GetGeneratedTemplateError::GeneratedTemplateNotFoundException(inner) => {
1365                Error::GeneratedTemplateNotFoundException(inner)
1366            }
1367            crate::operation::get_generated_template::GetGeneratedTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1368        }
1369    }
1370}
1371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_hook_result::GetHookResultError, R>> for Error
1372where
1373    R: Send + Sync + std::fmt::Debug + 'static,
1374{
1375    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_hook_result::GetHookResultError, R>) -> Self {
1376        match err {
1377            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1378            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1379                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1380                source: err.into(),
1381            }),
1382        }
1383    }
1384}
1385impl From<crate::operation::get_hook_result::GetHookResultError> for Error {
1386    fn from(err: crate::operation::get_hook_result::GetHookResultError) -> Self {
1387        match err {
1388            crate::operation::get_hook_result::GetHookResultError::HookResultNotFoundException(inner) => Error::HookResultNotFoundException(inner),
1389            crate::operation::get_hook_result::GetHookResultError::Unhandled(inner) => Error::Unhandled(inner),
1390        }
1391    }
1392}
1393impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_stack_policy::GetStackPolicyError, R>> for Error
1394where
1395    R: Send + Sync + std::fmt::Debug + 'static,
1396{
1397    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_stack_policy::GetStackPolicyError, R>) -> Self {
1398        match err {
1399            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1400            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1401                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1402                source: err.into(),
1403            }),
1404        }
1405    }
1406}
1407impl From<crate::operation::get_stack_policy::GetStackPolicyError> for Error {
1408    fn from(err: crate::operation::get_stack_policy::GetStackPolicyError) -> Self {
1409        match err {
1410            crate::operation::get_stack_policy::GetStackPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1411        }
1412    }
1413}
1414impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, R>> for Error
1415where
1416    R: Send + Sync + std::fmt::Debug + 'static,
1417{
1418    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template::GetTemplateError, R>) -> Self {
1419        match err {
1420            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1421            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1422                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1423                source: err.into(),
1424            }),
1425        }
1426    }
1427}
1428impl From<crate::operation::get_template::GetTemplateError> for Error {
1429    fn from(err: crate::operation::get_template::GetTemplateError) -> Self {
1430        match err {
1431            crate::operation::get_template::GetTemplateError::ChangeSetNotFoundException(inner) => Error::ChangeSetNotFoundException(inner),
1432            crate::operation::get_template::GetTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1433        }
1434    }
1435}
1436impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template_summary::GetTemplateSummaryError, R>> for Error
1437where
1438    R: Send + Sync + std::fmt::Debug + 'static,
1439{
1440    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_template_summary::GetTemplateSummaryError, R>) -> Self {
1441        match err {
1442            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1443            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1444                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1445                source: err.into(),
1446            }),
1447        }
1448    }
1449}
1450impl From<crate::operation::get_template_summary::GetTemplateSummaryError> for Error {
1451    fn from(err: crate::operation::get_template_summary::GetTemplateSummaryError) -> Self {
1452        match err {
1453            crate::operation::get_template_summary::GetTemplateSummaryError::StackSetNotFoundException(inner) => {
1454                Error::StackSetNotFoundException(inner)
1455            }
1456            crate::operation::get_template_summary::GetTemplateSummaryError::Unhandled(inner) => Error::Unhandled(inner),
1457        }
1458    }
1459}
1460impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError, R>>
1461    for Error
1462where
1463    R: Send + Sync + std::fmt::Debug + 'static,
1464{
1465    fn from(
1466        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError, R>,
1467    ) -> Self {
1468        match err {
1469            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1470            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1471                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1472                source: err.into(),
1473            }),
1474        }
1475    }
1476}
1477impl From<crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError> for Error {
1478    fn from(err: crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError) -> Self {
1479        match err {
1480            crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError::InvalidOperationException(inner) => {
1481                Error::InvalidOperationException(inner)
1482            }
1483            crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError::LimitExceededException(inner) => {
1484                Error::LimitExceededException(inner)
1485            }
1486            crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError::OperationIdAlreadyExistsException(inner) => {
1487                Error::OperationIdAlreadyExistsException(inner)
1488            }
1489            crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError::OperationInProgressException(inner) => {
1490                Error::OperationInProgressException(inner)
1491            }
1492            crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError::StackNotFoundException(inner) => {
1493                Error::StackNotFoundException(inner)
1494            }
1495            crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError::StackSetNotFoundException(inner) => {
1496                Error::StackSetNotFoundException(inner)
1497            }
1498            crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError::StaleRequestException(inner) => {
1499                Error::StaleRequestException(inner)
1500            }
1501            crate::operation::import_stacks_to_stack_set::ImportStacksToStackSetError::Unhandled(inner) => Error::Unhandled(inner),
1502        }
1503    }
1504}
1505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_change_sets::ListChangeSetsError, 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::list_change_sets::ListChangeSetsError, 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::list_change_sets::ListChangeSetsError> for Error {
1520    fn from(err: crate::operation::list_change_sets::ListChangeSetsError) -> Self {
1521        match err {
1522            crate::operation::list_change_sets::ListChangeSetsError::Unhandled(inner) => Error::Unhandled(inner),
1523        }
1524    }
1525}
1526impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_exports::ListExportsError, R>> for Error
1527where
1528    R: Send + Sync + std::fmt::Debug + 'static,
1529{
1530    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_exports::ListExportsError, R>) -> Self {
1531        match err {
1532            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1533            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1534                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1535                source: err.into(),
1536            }),
1537        }
1538    }
1539}
1540impl From<crate::operation::list_exports::ListExportsError> for Error {
1541    fn from(err: crate::operation::list_exports::ListExportsError) -> Self {
1542        match err {
1543            crate::operation::list_exports::ListExportsError::Unhandled(inner) => Error::Unhandled(inner),
1544        }
1545    }
1546}
1547impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_generated_templates::ListGeneratedTemplatesError, R>> for Error
1548where
1549    R: Send + Sync + std::fmt::Debug + 'static,
1550{
1551    fn from(
1552        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_generated_templates::ListGeneratedTemplatesError, R>,
1553    ) -> Self {
1554        match err {
1555            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1556            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1557                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1558                source: err.into(),
1559            }),
1560        }
1561    }
1562}
1563impl From<crate::operation::list_generated_templates::ListGeneratedTemplatesError> for Error {
1564    fn from(err: crate::operation::list_generated_templates::ListGeneratedTemplatesError) -> Self {
1565        match err {
1566            crate::operation::list_generated_templates::ListGeneratedTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
1567        }
1568    }
1569}
1570impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hook_results::ListHookResultsError, R>> for Error
1571where
1572    R: Send + Sync + std::fmt::Debug + 'static,
1573{
1574    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_hook_results::ListHookResultsError, R>) -> Self {
1575        match err {
1576            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1577            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1578                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1579                source: err.into(),
1580            }),
1581        }
1582    }
1583}
1584impl From<crate::operation::list_hook_results::ListHookResultsError> for Error {
1585    fn from(err: crate::operation::list_hook_results::ListHookResultsError) -> Self {
1586        match err {
1587            crate::operation::list_hook_results::ListHookResultsError::HookResultNotFoundException(inner) => {
1588                Error::HookResultNotFoundException(inner)
1589            }
1590            crate::operation::list_hook_results::ListHookResultsError::Unhandled(inner) => Error::Unhandled(inner),
1591        }
1592    }
1593}
1594impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_imports::ListImportsError, R>> for Error
1595where
1596    R: Send + Sync + std::fmt::Debug + 'static,
1597{
1598    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_imports::ListImportsError, R>) -> Self {
1599        match err {
1600            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1601            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1602                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1603                source: err.into(),
1604            }),
1605        }
1606    }
1607}
1608impl From<crate::operation::list_imports::ListImportsError> for Error {
1609    fn from(err: crate::operation::list_imports::ListImportsError) -> Self {
1610        match err {
1611            crate::operation::list_imports::ListImportsError::Unhandled(inner) => Error::Unhandled(inner),
1612        }
1613    }
1614}
1615impl<R>
1616    From<
1617        ::aws_smithy_runtime_api::client::result::SdkError<
1618            crate::operation::list_resource_scan_related_resources::ListResourceScanRelatedResourcesError,
1619            R,
1620        >,
1621    > for Error
1622where
1623    R: Send + Sync + std::fmt::Debug + 'static,
1624{
1625    fn from(
1626        err: ::aws_smithy_runtime_api::client::result::SdkError<
1627            crate::operation::list_resource_scan_related_resources::ListResourceScanRelatedResourcesError,
1628            R,
1629        >,
1630    ) -> Self {
1631        match err {
1632            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1633            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1634                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1635                source: err.into(),
1636            }),
1637        }
1638    }
1639}
1640impl From<crate::operation::list_resource_scan_related_resources::ListResourceScanRelatedResourcesError> for Error {
1641    fn from(err: crate::operation::list_resource_scan_related_resources::ListResourceScanRelatedResourcesError) -> Self {
1642        match err {
1643            crate::operation::list_resource_scan_related_resources::ListResourceScanRelatedResourcesError::ResourceScanInProgressException(inner) => {
1644                Error::ResourceScanInProgressException(inner)
1645            }
1646            crate::operation::list_resource_scan_related_resources::ListResourceScanRelatedResourcesError::ResourceScanNotFoundException(inner) => {
1647                Error::ResourceScanNotFoundException(inner)
1648            }
1649            crate::operation::list_resource_scan_related_resources::ListResourceScanRelatedResourcesError::Unhandled(inner) => {
1650                Error::Unhandled(inner)
1651            }
1652        }
1653    }
1654}
1655impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_scan_resources::ListResourceScanResourcesError, R>>
1656    for Error
1657where
1658    R: Send + Sync + std::fmt::Debug + 'static,
1659{
1660    fn from(
1661        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_scan_resources::ListResourceScanResourcesError, R>,
1662    ) -> Self {
1663        match err {
1664            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1665            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1666                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1667                source: err.into(),
1668            }),
1669        }
1670    }
1671}
1672impl From<crate::operation::list_resource_scan_resources::ListResourceScanResourcesError> for Error {
1673    fn from(err: crate::operation::list_resource_scan_resources::ListResourceScanResourcesError) -> Self {
1674        match err {
1675            crate::operation::list_resource_scan_resources::ListResourceScanResourcesError::ResourceScanInProgressException(inner) => {
1676                Error::ResourceScanInProgressException(inner)
1677            }
1678            crate::operation::list_resource_scan_resources::ListResourceScanResourcesError::ResourceScanNotFoundException(inner) => {
1679                Error::ResourceScanNotFoundException(inner)
1680            }
1681            crate::operation::list_resource_scan_resources::ListResourceScanResourcesError::Unhandled(inner) => Error::Unhandled(inner),
1682        }
1683    }
1684}
1685impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_scans::ListResourceScansError, R>> for Error
1686where
1687    R: Send + Sync + std::fmt::Debug + 'static,
1688{
1689    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_resource_scans::ListResourceScansError, R>) -> Self {
1690        match err {
1691            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1692            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1693                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1694                source: err.into(),
1695            }),
1696        }
1697    }
1698}
1699impl From<crate::operation::list_resource_scans::ListResourceScansError> for Error {
1700    fn from(err: crate::operation::list_resource_scans::ListResourceScansError) -> Self {
1701        match err {
1702            crate::operation::list_resource_scans::ListResourceScansError::Unhandled(inner) => Error::Unhandled(inner),
1703        }
1704    }
1705}
1706impl<R>
1707    From<
1708        ::aws_smithy_runtime_api::client::result::SdkError<
1709            crate::operation::list_stack_instance_resource_drifts::ListStackInstanceResourceDriftsError,
1710            R,
1711        >,
1712    > for Error
1713where
1714    R: Send + Sync + std::fmt::Debug + 'static,
1715{
1716    fn from(
1717        err: ::aws_smithy_runtime_api::client::result::SdkError<
1718            crate::operation::list_stack_instance_resource_drifts::ListStackInstanceResourceDriftsError,
1719            R,
1720        >,
1721    ) -> Self {
1722        match err {
1723            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1724            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1725                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1726                source: err.into(),
1727            }),
1728        }
1729    }
1730}
1731impl From<crate::operation::list_stack_instance_resource_drifts::ListStackInstanceResourceDriftsError> for Error {
1732    fn from(err: crate::operation::list_stack_instance_resource_drifts::ListStackInstanceResourceDriftsError) -> Self {
1733        match err {
1734            crate::operation::list_stack_instance_resource_drifts::ListStackInstanceResourceDriftsError::OperationNotFoundException(inner) => {
1735                Error::OperationNotFoundException(inner)
1736            }
1737            crate::operation::list_stack_instance_resource_drifts::ListStackInstanceResourceDriftsError::StackInstanceNotFoundException(inner) => {
1738                Error::StackInstanceNotFoundException(inner)
1739            }
1740            crate::operation::list_stack_instance_resource_drifts::ListStackInstanceResourceDriftsError::StackSetNotFoundException(inner) => {
1741                Error::StackSetNotFoundException(inner)
1742            }
1743            crate::operation::list_stack_instance_resource_drifts::ListStackInstanceResourceDriftsError::Unhandled(inner) => Error::Unhandled(inner),
1744        }
1745    }
1746}
1747impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_instances::ListStackInstancesError, R>> for Error
1748where
1749    R: Send + Sync + std::fmt::Debug + 'static,
1750{
1751    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_instances::ListStackInstancesError, R>) -> Self {
1752        match err {
1753            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1754            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1755                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1756                source: err.into(),
1757            }),
1758        }
1759    }
1760}
1761impl From<crate::operation::list_stack_instances::ListStackInstancesError> for Error {
1762    fn from(err: crate::operation::list_stack_instances::ListStackInstancesError) -> Self {
1763        match err {
1764            crate::operation::list_stack_instances::ListStackInstancesError::StackSetNotFoundException(inner) => {
1765                Error::StackSetNotFoundException(inner)
1766            }
1767            crate::operation::list_stack_instances::ListStackInstancesError::Unhandled(inner) => Error::Unhandled(inner),
1768        }
1769    }
1770}
1771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_refactor_actions::ListStackRefactorActionsError, R>>
1772    for Error
1773where
1774    R: Send + Sync + std::fmt::Debug + 'static,
1775{
1776    fn from(
1777        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_refactor_actions::ListStackRefactorActionsError, R>,
1778    ) -> Self {
1779        match err {
1780            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1781            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1782                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1783                source: err.into(),
1784            }),
1785        }
1786    }
1787}
1788impl From<crate::operation::list_stack_refactor_actions::ListStackRefactorActionsError> for Error {
1789    fn from(err: crate::operation::list_stack_refactor_actions::ListStackRefactorActionsError) -> Self {
1790        match err {
1791            crate::operation::list_stack_refactor_actions::ListStackRefactorActionsError::Unhandled(inner) => Error::Unhandled(inner),
1792        }
1793    }
1794}
1795impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_refactors::ListStackRefactorsError, R>> for Error
1796where
1797    R: Send + Sync + std::fmt::Debug + 'static,
1798{
1799    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_refactors::ListStackRefactorsError, R>) -> Self {
1800        match err {
1801            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1802            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1803                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1804                source: err.into(),
1805            }),
1806        }
1807    }
1808}
1809impl From<crate::operation::list_stack_refactors::ListStackRefactorsError> for Error {
1810    fn from(err: crate::operation::list_stack_refactors::ListStackRefactorsError) -> Self {
1811        match err {
1812            crate::operation::list_stack_refactors::ListStackRefactorsError::Unhandled(inner) => Error::Unhandled(inner),
1813        }
1814    }
1815}
1816impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_resources::ListStackResourcesError, R>> for Error
1817where
1818    R: Send + Sync + std::fmt::Debug + 'static,
1819{
1820    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_resources::ListStackResourcesError, R>) -> Self {
1821        match err {
1822            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1823            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1824                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1825                source: err.into(),
1826            }),
1827        }
1828    }
1829}
1830impl From<crate::operation::list_stack_resources::ListStackResourcesError> for Error {
1831    fn from(err: crate::operation::list_stack_resources::ListStackResourcesError) -> Self {
1832        match err {
1833            crate::operation::list_stack_resources::ListStackResourcesError::Unhandled(inner) => Error::Unhandled(inner),
1834        }
1835    }
1836}
1837impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stacks::ListStacksError, R>> for Error
1838where
1839    R: Send + Sync + std::fmt::Debug + 'static,
1840{
1841    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stacks::ListStacksError, R>) -> Self {
1842        match err {
1843            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1844            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1845                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1846                source: err.into(),
1847            }),
1848        }
1849    }
1850}
1851impl From<crate::operation::list_stacks::ListStacksError> for Error {
1852    fn from(err: crate::operation::list_stacks::ListStacksError) -> Self {
1853        match err {
1854            crate::operation::list_stacks::ListStacksError::Unhandled(inner) => Error::Unhandled(inner),
1855        }
1856    }
1857}
1858impl<R>
1859    From<
1860        ::aws_smithy_runtime_api::client::result::SdkError<
1861            crate::operation::list_stack_set_auto_deployment_targets::ListStackSetAutoDeploymentTargetsError,
1862            R,
1863        >,
1864    > for Error
1865where
1866    R: Send + Sync + std::fmt::Debug + 'static,
1867{
1868    fn from(
1869        err: ::aws_smithy_runtime_api::client::result::SdkError<
1870            crate::operation::list_stack_set_auto_deployment_targets::ListStackSetAutoDeploymentTargetsError,
1871            R,
1872        >,
1873    ) -> Self {
1874        match err {
1875            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1876            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1877                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1878                source: err.into(),
1879            }),
1880        }
1881    }
1882}
1883impl From<crate::operation::list_stack_set_auto_deployment_targets::ListStackSetAutoDeploymentTargetsError> for Error {
1884    fn from(err: crate::operation::list_stack_set_auto_deployment_targets::ListStackSetAutoDeploymentTargetsError) -> Self {
1885        match err {
1886            crate::operation::list_stack_set_auto_deployment_targets::ListStackSetAutoDeploymentTargetsError::StackSetNotFoundException(inner) => {
1887                Error::StackSetNotFoundException(inner)
1888            }
1889            crate::operation::list_stack_set_auto_deployment_targets::ListStackSetAutoDeploymentTargetsError::Unhandled(inner) => {
1890                Error::Unhandled(inner)
1891            }
1892        }
1893    }
1894}
1895impl<R>
1896    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_set_operation_results::ListStackSetOperationResultsError, R>>
1897    for Error
1898where
1899    R: Send + Sync + std::fmt::Debug + 'static,
1900{
1901    fn from(
1902        err: ::aws_smithy_runtime_api::client::result::SdkError<
1903            crate::operation::list_stack_set_operation_results::ListStackSetOperationResultsError,
1904            R,
1905        >,
1906    ) -> Self {
1907        match err {
1908            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1909            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1910                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1911                source: err.into(),
1912            }),
1913        }
1914    }
1915}
1916impl From<crate::operation::list_stack_set_operation_results::ListStackSetOperationResultsError> for Error {
1917    fn from(err: crate::operation::list_stack_set_operation_results::ListStackSetOperationResultsError) -> Self {
1918        match err {
1919            crate::operation::list_stack_set_operation_results::ListStackSetOperationResultsError::OperationNotFoundException(inner) => {
1920                Error::OperationNotFoundException(inner)
1921            }
1922            crate::operation::list_stack_set_operation_results::ListStackSetOperationResultsError::StackSetNotFoundException(inner) => {
1923                Error::StackSetNotFoundException(inner)
1924            }
1925            crate::operation::list_stack_set_operation_results::ListStackSetOperationResultsError::Unhandled(inner) => Error::Unhandled(inner),
1926        }
1927    }
1928}
1929impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_set_operations::ListStackSetOperationsError, R>>
1930    for Error
1931where
1932    R: Send + Sync + std::fmt::Debug + 'static,
1933{
1934    fn from(
1935        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_set_operations::ListStackSetOperationsError, R>,
1936    ) -> Self {
1937        match err {
1938            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1939            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1940                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1941                source: err.into(),
1942            }),
1943        }
1944    }
1945}
1946impl From<crate::operation::list_stack_set_operations::ListStackSetOperationsError> for Error {
1947    fn from(err: crate::operation::list_stack_set_operations::ListStackSetOperationsError) -> Self {
1948        match err {
1949            crate::operation::list_stack_set_operations::ListStackSetOperationsError::StackSetNotFoundException(inner) => {
1950                Error::StackSetNotFoundException(inner)
1951            }
1952            crate::operation::list_stack_set_operations::ListStackSetOperationsError::Unhandled(inner) => Error::Unhandled(inner),
1953        }
1954    }
1955}
1956impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_sets::ListStackSetsError, R>> for Error
1957where
1958    R: Send + Sync + std::fmt::Debug + 'static,
1959{
1960    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stack_sets::ListStackSetsError, R>) -> Self {
1961        match err {
1962            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1963            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1964                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1965                source: err.into(),
1966            }),
1967        }
1968    }
1969}
1970impl From<crate::operation::list_stack_sets::ListStackSetsError> for Error {
1971    fn from(err: crate::operation::list_stack_sets::ListStackSetsError) -> Self {
1972        match err {
1973            crate::operation::list_stack_sets::ListStackSetsError::Unhandled(inner) => Error::Unhandled(inner),
1974        }
1975    }
1976}
1977impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_type_registrations::ListTypeRegistrationsError, R>> for Error
1978where
1979    R: Send + Sync + std::fmt::Debug + 'static,
1980{
1981    fn from(
1982        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_type_registrations::ListTypeRegistrationsError, R>,
1983    ) -> Self {
1984        match err {
1985            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1986            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1987                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1988                source: err.into(),
1989            }),
1990        }
1991    }
1992}
1993impl From<crate::operation::list_type_registrations::ListTypeRegistrationsError> for Error {
1994    fn from(err: crate::operation::list_type_registrations::ListTypeRegistrationsError) -> Self {
1995        match err {
1996            crate::operation::list_type_registrations::ListTypeRegistrationsError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
1997            crate::operation::list_type_registrations::ListTypeRegistrationsError::Unhandled(inner) => Error::Unhandled(inner),
1998        }
1999    }
2000}
2001impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_types::ListTypesError, R>> for Error
2002where
2003    R: Send + Sync + std::fmt::Debug + 'static,
2004{
2005    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_types::ListTypesError, R>) -> Self {
2006        match err {
2007            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2008            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2009                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2010                source: err.into(),
2011            }),
2012        }
2013    }
2014}
2015impl From<crate::operation::list_types::ListTypesError> for Error {
2016    fn from(err: crate::operation::list_types::ListTypesError) -> Self {
2017        match err {
2018            crate::operation::list_types::ListTypesError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
2019            crate::operation::list_types::ListTypesError::Unhandled(inner) => Error::Unhandled(inner),
2020        }
2021    }
2022}
2023impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_type_versions::ListTypeVersionsError, R>> for Error
2024where
2025    R: Send + Sync + std::fmt::Debug + 'static,
2026{
2027    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_type_versions::ListTypeVersionsError, R>) -> Self {
2028        match err {
2029            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2030            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2031                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2032                source: err.into(),
2033            }),
2034        }
2035    }
2036}
2037impl From<crate::operation::list_type_versions::ListTypeVersionsError> for Error {
2038    fn from(err: crate::operation::list_type_versions::ListTypeVersionsError) -> Self {
2039        match err {
2040            crate::operation::list_type_versions::ListTypeVersionsError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
2041            crate::operation::list_type_versions::ListTypeVersionsError::Unhandled(inner) => Error::Unhandled(inner),
2042        }
2043    }
2044}
2045impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::publish_type::PublishTypeError, R>> for Error
2046where
2047    R: Send + Sync + std::fmt::Debug + 'static,
2048{
2049    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::publish_type::PublishTypeError, R>) -> Self {
2050        match err {
2051            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2052            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2053                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2054                source: err.into(),
2055            }),
2056        }
2057    }
2058}
2059impl From<crate::operation::publish_type::PublishTypeError> for Error {
2060    fn from(err: crate::operation::publish_type::PublishTypeError) -> Self {
2061        match err {
2062            crate::operation::publish_type::PublishTypeError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
2063            crate::operation::publish_type::PublishTypeError::TypeNotFoundException(inner) => Error::TypeNotFoundException(inner),
2064            crate::operation::publish_type::PublishTypeError::Unhandled(inner) => Error::Unhandled(inner),
2065        }
2066    }
2067}
2068impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::record_handler_progress::RecordHandlerProgressError, R>> for Error
2069where
2070    R: Send + Sync + std::fmt::Debug + 'static,
2071{
2072    fn from(
2073        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::record_handler_progress::RecordHandlerProgressError, R>,
2074    ) -> Self {
2075        match err {
2076            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2077            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2078                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2079                source: err.into(),
2080            }),
2081        }
2082    }
2083}
2084impl From<crate::operation::record_handler_progress::RecordHandlerProgressError> for Error {
2085    fn from(err: crate::operation::record_handler_progress::RecordHandlerProgressError) -> Self {
2086        match err {
2087            crate::operation::record_handler_progress::RecordHandlerProgressError::InvalidStateTransitionException(inner) => {
2088                Error::InvalidStateTransitionException(inner)
2089            }
2090            crate::operation::record_handler_progress::RecordHandlerProgressError::OperationStatusCheckFailedException(inner) => {
2091                Error::OperationStatusCheckFailedException(inner)
2092            }
2093            crate::operation::record_handler_progress::RecordHandlerProgressError::Unhandled(inner) => Error::Unhandled(inner),
2094        }
2095    }
2096}
2097impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_publisher::RegisterPublisherError, R>> for Error
2098where
2099    R: Send + Sync + std::fmt::Debug + 'static,
2100{
2101    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_publisher::RegisterPublisherError, R>) -> Self {
2102        match err {
2103            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2104            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2105                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2106                source: err.into(),
2107            }),
2108        }
2109    }
2110}
2111impl From<crate::operation::register_publisher::RegisterPublisherError> for Error {
2112    fn from(err: crate::operation::register_publisher::RegisterPublisherError) -> Self {
2113        match err {
2114            crate::operation::register_publisher::RegisterPublisherError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
2115            crate::operation::register_publisher::RegisterPublisherError::Unhandled(inner) => Error::Unhandled(inner),
2116        }
2117    }
2118}
2119impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_type::RegisterTypeError, R>> for Error
2120where
2121    R: Send + Sync + std::fmt::Debug + 'static,
2122{
2123    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_type::RegisterTypeError, R>) -> Self {
2124        match err {
2125            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2126            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2127                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2128                source: err.into(),
2129            }),
2130        }
2131    }
2132}
2133impl From<crate::operation::register_type::RegisterTypeError> for Error {
2134    fn from(err: crate::operation::register_type::RegisterTypeError) -> Self {
2135        match err {
2136            crate::operation::register_type::RegisterTypeError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
2137            crate::operation::register_type::RegisterTypeError::Unhandled(inner) => Error::Unhandled(inner),
2138        }
2139    }
2140}
2141impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rollback_stack::RollbackStackError, R>> for Error
2142where
2143    R: Send + Sync + std::fmt::Debug + 'static,
2144{
2145    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rollback_stack::RollbackStackError, R>) -> Self {
2146        match err {
2147            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2148            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2149                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2150                source: err.into(),
2151            }),
2152        }
2153    }
2154}
2155impl From<crate::operation::rollback_stack::RollbackStackError> for Error {
2156    fn from(err: crate::operation::rollback_stack::RollbackStackError) -> Self {
2157        match err {
2158            crate::operation::rollback_stack::RollbackStackError::TokenAlreadyExistsException(inner) => Error::TokenAlreadyExistsException(inner),
2159            crate::operation::rollback_stack::RollbackStackError::Unhandled(inner) => Error::Unhandled(inner),
2160        }
2161    }
2162}
2163impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_stack_policy::SetStackPolicyError, R>> for Error
2164where
2165    R: Send + Sync + std::fmt::Debug + 'static,
2166{
2167    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_stack_policy::SetStackPolicyError, R>) -> Self {
2168        match err {
2169            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2170            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2171                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2172                source: err.into(),
2173            }),
2174        }
2175    }
2176}
2177impl From<crate::operation::set_stack_policy::SetStackPolicyError> for Error {
2178    fn from(err: crate::operation::set_stack_policy::SetStackPolicyError) -> Self {
2179        match err {
2180            crate::operation::set_stack_policy::SetStackPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2181        }
2182    }
2183}
2184impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_type_configuration::SetTypeConfigurationError, R>> for Error
2185where
2186    R: Send + Sync + std::fmt::Debug + 'static,
2187{
2188    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_type_configuration::SetTypeConfigurationError, R>) -> Self {
2189        match err {
2190            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2191            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2192                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2193                source: err.into(),
2194            }),
2195        }
2196    }
2197}
2198impl From<crate::operation::set_type_configuration::SetTypeConfigurationError> for Error {
2199    fn from(err: crate::operation::set_type_configuration::SetTypeConfigurationError) -> Self {
2200        match err {
2201            crate::operation::set_type_configuration::SetTypeConfigurationError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
2202            crate::operation::set_type_configuration::SetTypeConfigurationError::TypeNotFoundException(inner) => Error::TypeNotFoundException(inner),
2203            crate::operation::set_type_configuration::SetTypeConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2204        }
2205    }
2206}
2207impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_type_default_version::SetTypeDefaultVersionError, R>> for Error
2208where
2209    R: Send + Sync + std::fmt::Debug + 'static,
2210{
2211    fn from(
2212        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_type_default_version::SetTypeDefaultVersionError, R>,
2213    ) -> Self {
2214        match err {
2215            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2216            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2217                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2218                source: err.into(),
2219            }),
2220        }
2221    }
2222}
2223impl From<crate::operation::set_type_default_version::SetTypeDefaultVersionError> for Error {
2224    fn from(err: crate::operation::set_type_default_version::SetTypeDefaultVersionError) -> Self {
2225        match err {
2226            crate::operation::set_type_default_version::SetTypeDefaultVersionError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
2227            crate::operation::set_type_default_version::SetTypeDefaultVersionError::TypeNotFoundException(inner) => {
2228                Error::TypeNotFoundException(inner)
2229            }
2230            crate::operation::set_type_default_version::SetTypeDefaultVersionError::Unhandled(inner) => Error::Unhandled(inner),
2231        }
2232    }
2233}
2234impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::signal_resource::SignalResourceError, R>> for Error
2235where
2236    R: Send + Sync + std::fmt::Debug + 'static,
2237{
2238    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::signal_resource::SignalResourceError, R>) -> Self {
2239        match err {
2240            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2241            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2242                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2243                source: err.into(),
2244            }),
2245        }
2246    }
2247}
2248impl From<crate::operation::signal_resource::SignalResourceError> for Error {
2249    fn from(err: crate::operation::signal_resource::SignalResourceError) -> Self {
2250        match err {
2251            crate::operation::signal_resource::SignalResourceError::Unhandled(inner) => Error::Unhandled(inner),
2252        }
2253    }
2254}
2255impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_resource_scan::StartResourceScanError, R>> for Error
2256where
2257    R: Send + Sync + std::fmt::Debug + 'static,
2258{
2259    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_resource_scan::StartResourceScanError, R>) -> Self {
2260        match err {
2261            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2262            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2263                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2264                source: err.into(),
2265            }),
2266        }
2267    }
2268}
2269impl From<crate::operation::start_resource_scan::StartResourceScanError> for Error {
2270    fn from(err: crate::operation::start_resource_scan::StartResourceScanError) -> Self {
2271        match err {
2272            crate::operation::start_resource_scan::StartResourceScanError::ResourceScanInProgressException(inner) => {
2273                Error::ResourceScanInProgressException(inner)
2274            }
2275            crate::operation::start_resource_scan::StartResourceScanError::ResourceScanLimitExceededException(inner) => {
2276                Error::ResourceScanLimitExceededException(inner)
2277            }
2278            crate::operation::start_resource_scan::StartResourceScanError::Unhandled(inner) => Error::Unhandled(inner),
2279        }
2280    }
2281}
2282impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_stack_set_operation::StopStackSetOperationError, R>> for Error
2283where
2284    R: Send + Sync + std::fmt::Debug + 'static,
2285{
2286    fn from(
2287        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_stack_set_operation::StopStackSetOperationError, R>,
2288    ) -> Self {
2289        match err {
2290            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2291            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2292                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2293                source: err.into(),
2294            }),
2295        }
2296    }
2297}
2298impl From<crate::operation::stop_stack_set_operation::StopStackSetOperationError> for Error {
2299    fn from(err: crate::operation::stop_stack_set_operation::StopStackSetOperationError) -> Self {
2300        match err {
2301            crate::operation::stop_stack_set_operation::StopStackSetOperationError::InvalidOperationException(inner) => {
2302                Error::InvalidOperationException(inner)
2303            }
2304            crate::operation::stop_stack_set_operation::StopStackSetOperationError::OperationNotFoundException(inner) => {
2305                Error::OperationNotFoundException(inner)
2306            }
2307            crate::operation::stop_stack_set_operation::StopStackSetOperationError::StackSetNotFoundException(inner) => {
2308                Error::StackSetNotFoundException(inner)
2309            }
2310            crate::operation::stop_stack_set_operation::StopStackSetOperationError::Unhandled(inner) => Error::Unhandled(inner),
2311        }
2312    }
2313}
2314impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_type::TestTypeError, R>> for Error
2315where
2316    R: Send + Sync + std::fmt::Debug + 'static,
2317{
2318    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_type::TestTypeError, R>) -> Self {
2319        match err {
2320            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2321            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2322                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2323                source: err.into(),
2324            }),
2325        }
2326    }
2327}
2328impl From<crate::operation::test_type::TestTypeError> for Error {
2329    fn from(err: crate::operation::test_type::TestTypeError) -> Self {
2330        match err {
2331            crate::operation::test_type::TestTypeError::CfnRegistryException(inner) => Error::CfnRegistryException(inner),
2332            crate::operation::test_type::TestTypeError::TypeNotFoundException(inner) => Error::TypeNotFoundException(inner),
2333            crate::operation::test_type::TestTypeError::Unhandled(inner) => Error::Unhandled(inner),
2334        }
2335    }
2336}
2337impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_generated_template::UpdateGeneratedTemplateError, R>>
2338    for Error
2339where
2340    R: Send + Sync + std::fmt::Debug + 'static,
2341{
2342    fn from(
2343        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_generated_template::UpdateGeneratedTemplateError, R>,
2344    ) -> Self {
2345        match err {
2346            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2347            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2348                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2349                source: err.into(),
2350            }),
2351        }
2352    }
2353}
2354impl From<crate::operation::update_generated_template::UpdateGeneratedTemplateError> for Error {
2355    fn from(err: crate::operation::update_generated_template::UpdateGeneratedTemplateError) -> Self {
2356        match err {
2357            crate::operation::update_generated_template::UpdateGeneratedTemplateError::AlreadyExistsException(inner) => {
2358                Error::AlreadyExistsException(inner)
2359            }
2360            crate::operation::update_generated_template::UpdateGeneratedTemplateError::GeneratedTemplateNotFoundException(inner) => {
2361                Error::GeneratedTemplateNotFoundException(inner)
2362            }
2363            crate::operation::update_generated_template::UpdateGeneratedTemplateError::LimitExceededException(inner) => {
2364                Error::LimitExceededException(inner)
2365            }
2366            crate::operation::update_generated_template::UpdateGeneratedTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2367        }
2368    }
2369}
2370impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack::UpdateStackError, R>> for Error
2371where
2372    R: Send + Sync + std::fmt::Debug + 'static,
2373{
2374    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack::UpdateStackError, R>) -> Self {
2375        match err {
2376            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2377            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2378                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2379                source: err.into(),
2380            }),
2381        }
2382    }
2383}
2384impl From<crate::operation::update_stack::UpdateStackError> for Error {
2385    fn from(err: crate::operation::update_stack::UpdateStackError) -> Self {
2386        match err {
2387            crate::operation::update_stack::UpdateStackError::InsufficientCapabilitiesException(inner) => {
2388                Error::InsufficientCapabilitiesException(inner)
2389            }
2390            crate::operation::update_stack::UpdateStackError::TokenAlreadyExistsException(inner) => Error::TokenAlreadyExistsException(inner),
2391            crate::operation::update_stack::UpdateStackError::Unhandled(inner) => Error::Unhandled(inner),
2392        }
2393    }
2394}
2395impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack_instances::UpdateStackInstancesError, R>> for Error
2396where
2397    R: Send + Sync + std::fmt::Debug + 'static,
2398{
2399    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack_instances::UpdateStackInstancesError, R>) -> Self {
2400        match err {
2401            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2402            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2403                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2404                source: err.into(),
2405            }),
2406        }
2407    }
2408}
2409impl From<crate::operation::update_stack_instances::UpdateStackInstancesError> for Error {
2410    fn from(err: crate::operation::update_stack_instances::UpdateStackInstancesError) -> Self {
2411        match err {
2412            crate::operation::update_stack_instances::UpdateStackInstancesError::InvalidOperationException(inner) => {
2413                Error::InvalidOperationException(inner)
2414            }
2415            crate::operation::update_stack_instances::UpdateStackInstancesError::OperationIdAlreadyExistsException(inner) => {
2416                Error::OperationIdAlreadyExistsException(inner)
2417            }
2418            crate::operation::update_stack_instances::UpdateStackInstancesError::OperationInProgressException(inner) => {
2419                Error::OperationInProgressException(inner)
2420            }
2421            crate::operation::update_stack_instances::UpdateStackInstancesError::StackInstanceNotFoundException(inner) => {
2422                Error::StackInstanceNotFoundException(inner)
2423            }
2424            crate::operation::update_stack_instances::UpdateStackInstancesError::StackSetNotFoundException(inner) => {
2425                Error::StackSetNotFoundException(inner)
2426            }
2427            crate::operation::update_stack_instances::UpdateStackInstancesError::StaleRequestException(inner) => Error::StaleRequestException(inner),
2428            crate::operation::update_stack_instances::UpdateStackInstancesError::Unhandled(inner) => Error::Unhandled(inner),
2429        }
2430    }
2431}
2432impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack_set::UpdateStackSetError, R>> for Error
2433where
2434    R: Send + Sync + std::fmt::Debug + 'static,
2435{
2436    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack_set::UpdateStackSetError, R>) -> Self {
2437        match err {
2438            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2439            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2440                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2441                source: err.into(),
2442            }),
2443        }
2444    }
2445}
2446impl From<crate::operation::update_stack_set::UpdateStackSetError> for Error {
2447    fn from(err: crate::operation::update_stack_set::UpdateStackSetError) -> Self {
2448        match err {
2449            crate::operation::update_stack_set::UpdateStackSetError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
2450            crate::operation::update_stack_set::UpdateStackSetError::OperationIdAlreadyExistsException(inner) => {
2451                Error::OperationIdAlreadyExistsException(inner)
2452            }
2453            crate::operation::update_stack_set::UpdateStackSetError::OperationInProgressException(inner) => {
2454                Error::OperationInProgressException(inner)
2455            }
2456            crate::operation::update_stack_set::UpdateStackSetError::StackInstanceNotFoundException(inner) => {
2457                Error::StackInstanceNotFoundException(inner)
2458            }
2459            crate::operation::update_stack_set::UpdateStackSetError::StackSetNotFoundException(inner) => Error::StackSetNotFoundException(inner),
2460            crate::operation::update_stack_set::UpdateStackSetError::StaleRequestException(inner) => Error::StaleRequestException(inner),
2461            crate::operation::update_stack_set::UpdateStackSetError::Unhandled(inner) => Error::Unhandled(inner),
2462        }
2463    }
2464}
2465impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_termination_protection::UpdateTerminationProtectionError, R>>
2466    for Error
2467where
2468    R: Send + Sync + std::fmt::Debug + 'static,
2469{
2470    fn from(
2471        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_termination_protection::UpdateTerminationProtectionError, R>,
2472    ) -> Self {
2473        match err {
2474            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2475            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2476                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2477                source: err.into(),
2478            }),
2479        }
2480    }
2481}
2482impl From<crate::operation::update_termination_protection::UpdateTerminationProtectionError> for Error {
2483    fn from(err: crate::operation::update_termination_protection::UpdateTerminationProtectionError) -> Self {
2484        match err {
2485            crate::operation::update_termination_protection::UpdateTerminationProtectionError::Unhandled(inner) => Error::Unhandled(inner),
2486        }
2487    }
2488}
2489impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::validate_template::ValidateTemplateError, R>> for Error
2490where
2491    R: Send + Sync + std::fmt::Debug + 'static,
2492{
2493    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::validate_template::ValidateTemplateError, R>) -> Self {
2494        match err {
2495            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2496            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2497                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2498                source: err.into(),
2499            }),
2500        }
2501    }
2502}
2503impl From<crate::operation::validate_template::ValidateTemplateError> for Error {
2504    fn from(err: crate::operation::validate_template::ValidateTemplateError) -> Self {
2505        match err {
2506            crate::operation::validate_template::ValidateTemplateError::Unhandled(inner) => Error::Unhandled(inner),
2507        }
2508    }
2509}
2510impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
2511where
2512    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
2513    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
2514{
2515    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
2516        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2517            meta: ::std::default::Default::default(),
2518            source: err.into(),
2519        })
2520    }
2521}
2522impl ::std::error::Error for Error {
2523    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2524        match self {
2525            Error::AlreadyExistsException(inner) => inner.source(),
2526            Error::CfnRegistryException(inner) => inner.source(),
2527            Error::ChangeSetNotFoundException(inner) => inner.source(),
2528            Error::ConcurrentResourcesLimitExceededException(inner) => inner.source(),
2529            Error::CreatedButModifiedException(inner) => inner.source(),
2530            Error::GeneratedTemplateNotFoundException(inner) => inner.source(),
2531            Error::HookResultNotFoundException(inner) => inner.source(),
2532            Error::InsufficientCapabilitiesException(inner) => inner.source(),
2533            Error::InvalidChangeSetStatusException(inner) => inner.source(),
2534            Error::InvalidOperationException(inner) => inner.source(),
2535            Error::InvalidStateTransitionException(inner) => inner.source(),
2536            Error::LimitExceededException(inner) => inner.source(),
2537            Error::NameAlreadyExistsException(inner) => inner.source(),
2538            Error::OperationIdAlreadyExistsException(inner) => inner.source(),
2539            Error::OperationInProgressException(inner) => inner.source(),
2540            Error::OperationNotFoundException(inner) => inner.source(),
2541            Error::OperationStatusCheckFailedException(inner) => inner.source(),
2542            Error::ResourceScanInProgressException(inner) => inner.source(),
2543            Error::ResourceScanLimitExceededException(inner) => inner.source(),
2544            Error::ResourceScanNotFoundException(inner) => inner.source(),
2545            Error::StackInstanceNotFoundException(inner) => inner.source(),
2546            Error::StackNotFoundException(inner) => inner.source(),
2547            Error::StackRefactorNotFoundException(inner) => inner.source(),
2548            Error::StackSetNotEmptyException(inner) => inner.source(),
2549            Error::StackSetNotFoundException(inner) => inner.source(),
2550            Error::StaleRequestException(inner) => inner.source(),
2551            Error::TokenAlreadyExistsException(inner) => inner.source(),
2552            Error::TypeConfigurationNotFoundException(inner) => inner.source(),
2553            Error::TypeNotFoundException(inner) => inner.source(),
2554            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2555        }
2556    }
2557}
2558impl ::aws_types::request_id::RequestId for Error {
2559    fn request_id(&self) -> Option<&str> {
2560        match self {
2561            Self::AlreadyExistsException(e) => e.request_id(),
2562            Self::CfnRegistryException(e) => e.request_id(),
2563            Self::ChangeSetNotFoundException(e) => e.request_id(),
2564            Self::ConcurrentResourcesLimitExceededException(e) => e.request_id(),
2565            Self::CreatedButModifiedException(e) => e.request_id(),
2566            Self::GeneratedTemplateNotFoundException(e) => e.request_id(),
2567            Self::HookResultNotFoundException(e) => e.request_id(),
2568            Self::InsufficientCapabilitiesException(e) => e.request_id(),
2569            Self::InvalidChangeSetStatusException(e) => e.request_id(),
2570            Self::InvalidOperationException(e) => e.request_id(),
2571            Self::InvalidStateTransitionException(e) => e.request_id(),
2572            Self::LimitExceededException(e) => e.request_id(),
2573            Self::NameAlreadyExistsException(e) => e.request_id(),
2574            Self::OperationIdAlreadyExistsException(e) => e.request_id(),
2575            Self::OperationInProgressException(e) => e.request_id(),
2576            Self::OperationNotFoundException(e) => e.request_id(),
2577            Self::OperationStatusCheckFailedException(e) => e.request_id(),
2578            Self::ResourceScanInProgressException(e) => e.request_id(),
2579            Self::ResourceScanLimitExceededException(e) => e.request_id(),
2580            Self::ResourceScanNotFoundException(e) => e.request_id(),
2581            Self::StackInstanceNotFoundException(e) => e.request_id(),
2582            Self::StackNotFoundException(e) => e.request_id(),
2583            Self::StackRefactorNotFoundException(e) => e.request_id(),
2584            Self::StackSetNotEmptyException(e) => e.request_id(),
2585            Self::StackSetNotFoundException(e) => e.request_id(),
2586            Self::StaleRequestException(e) => e.request_id(),
2587            Self::TokenAlreadyExistsException(e) => e.request_id(),
2588            Self::TypeConfigurationNotFoundException(e) => e.request_id(),
2589            Self::TypeNotFoundException(e) => e.request_id(),
2590            Self::Unhandled(e) => e.meta.request_id(),
2591        }
2592    }
2593}