aws_sdk_autoscaling/
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 request failed because an active instance refresh or rollback for the specified Auto Scaling group was not found.</p>
7    ActiveInstanceRefreshNotFoundFault(crate::types::error::ActiveInstanceRefreshNotFoundFault),
8    /// <p>You already have an Auto Scaling group or launch configuration with this name.</p>
9    AlreadyExistsFault(crate::types::error::AlreadyExistsFault),
10    /// <p>Indicates that the parameters in the current request do not match the parameters from a previous request with the same client token within the idempotency window.</p>
11    IdempotentParameterMismatchError(crate::types::error::IdempotentParameterMismatchError),
12    /// <p>The request failed because an active instance refresh already exists for the specified Auto Scaling group.</p>
13    InstanceRefreshInProgressFault(crate::types::error::InstanceRefreshInProgressFault),
14    /// <p>The <code>NextToken</code> value is not valid.</p>
15    InvalidNextToken(crate::types::error::InvalidNextToken),
16    /// <p>The request failed because a desired configuration was not found or an incompatible launch template (uses a Systems Manager parameter instead of an AMI ID) or launch template version (<code>$Latest</code> or <code>$Default</code>) is present on the Auto Scaling group.</p>
17    IrreversibleInstanceRefreshFault(crate::types::error::IrreversibleInstanceRefreshFault),
18    /// <p>You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> in the <i>Amazon EC2 Auto Scaling API Reference</i>.</p>
19    LimitExceededFault(crate::types::error::LimitExceededFault),
20    /// <p>You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling group, instance, or load balancer).</p>
21    ResourceContentionFault(crate::types::error::ResourceContentionFault),
22    /// <p>The operation can't be performed because the resource is in use.</p>
23    ResourceInUseFault(crate::types::error::ResourceInUseFault),
24    /// <p>The operation can't be performed because there are scaling activities in progress.</p>
25    ScalingActivityInProgressFault(crate::types::error::ScalingActivityInProgressFault),
26    /// <p>The service-linked role is not yet ready for use.</p>
27    ServiceLinkedRoleFailure(crate::types::error::ServiceLinkedRoleFailure),
28    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
29    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
30    variable wildcard pattern and check `.code()`:
31     \
32    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
33     \
34    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
35    Unhandled(crate::error::sealed_unhandled::Unhandled),
36}
37impl ::std::fmt::Display for Error {
38    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
39        match self {
40            Error::ActiveInstanceRefreshNotFoundFault(inner) => inner.fmt(f),
41            Error::AlreadyExistsFault(inner) => inner.fmt(f),
42            Error::IdempotentParameterMismatchError(inner) => inner.fmt(f),
43            Error::InstanceRefreshInProgressFault(inner) => inner.fmt(f),
44            Error::InvalidNextToken(inner) => inner.fmt(f),
45            Error::IrreversibleInstanceRefreshFault(inner) => inner.fmt(f),
46            Error::LimitExceededFault(inner) => inner.fmt(f),
47            Error::ResourceContentionFault(inner) => inner.fmt(f),
48            Error::ResourceInUseFault(inner) => inner.fmt(f),
49            Error::ScalingActivityInProgressFault(inner) => inner.fmt(f),
50            Error::ServiceLinkedRoleFailure(inner) => inner.fmt(f),
51            Error::Unhandled(_) => {
52                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
53                    write!(f, "unhandled error ({code})")
54                } else {
55                    f.write_str("unhandled error")
56                }
57            }
58        }
59    }
60}
61impl From<::aws_smithy_types::error::operation::BuildError> for Error {
62    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
63        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
64            source: value.into(),
65            meta: ::std::default::Default::default(),
66        })
67    }
68}
69impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
70    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
71        match self {
72            Self::ActiveInstanceRefreshNotFoundFault(inner) => inner.meta(),
73            Self::AlreadyExistsFault(inner) => inner.meta(),
74            Self::IdempotentParameterMismatchError(inner) => inner.meta(),
75            Self::InstanceRefreshInProgressFault(inner) => inner.meta(),
76            Self::InvalidNextToken(inner) => inner.meta(),
77            Self::IrreversibleInstanceRefreshFault(inner) => inner.meta(),
78            Self::LimitExceededFault(inner) => inner.meta(),
79            Self::ResourceContentionFault(inner) => inner.meta(),
80            Self::ResourceInUseFault(inner) => inner.meta(),
81            Self::ScalingActivityInProgressFault(inner) => inner.meta(),
82            Self::ServiceLinkedRoleFailure(inner) => inner.meta(),
83            Self::Unhandled(inner) => &inner.meta,
84        }
85    }
86}
87impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_instances::AttachInstancesError, R>> for Error
88where
89    R: Send + Sync + std::fmt::Debug + 'static,
90{
91    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_instances::AttachInstancesError, R>) -> Self {
92        match err {
93            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
94            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
95                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
96                source: err.into(),
97            }),
98        }
99    }
100}
101impl From<crate::operation::attach_instances::AttachInstancesError> for Error {
102    fn from(err: crate::operation::attach_instances::AttachInstancesError) -> Self {
103        match err {
104            crate::operation::attach_instances::AttachInstancesError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
105            crate::operation::attach_instances::AttachInstancesError::ServiceLinkedRoleFailure(inner) => Error::ServiceLinkedRoleFailure(inner),
106            crate::operation::attach_instances::AttachInstancesError::Unhandled(inner) => Error::Unhandled(inner),
107        }
108    }
109}
110impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_load_balancers::AttachLoadBalancersError, R>> for Error
111where
112    R: Send + Sync + std::fmt::Debug + 'static,
113{
114    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_load_balancers::AttachLoadBalancersError, R>) -> Self {
115        match err {
116            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
117            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
118                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
119                source: err.into(),
120            }),
121        }
122    }
123}
124impl From<crate::operation::attach_load_balancers::AttachLoadBalancersError> for Error {
125    fn from(err: crate::operation::attach_load_balancers::AttachLoadBalancersError) -> Self {
126        match err {
127            crate::operation::attach_load_balancers::AttachLoadBalancersError::InstanceRefreshInProgressFault(inner) => {
128                Error::InstanceRefreshInProgressFault(inner)
129            }
130            crate::operation::attach_load_balancers::AttachLoadBalancersError::ResourceContentionFault(inner) => {
131                Error::ResourceContentionFault(inner)
132            }
133            crate::operation::attach_load_balancers::AttachLoadBalancersError::ServiceLinkedRoleFailure(inner) => {
134                Error::ServiceLinkedRoleFailure(inner)
135            }
136            crate::operation::attach_load_balancers::AttachLoadBalancersError::Unhandled(inner) => Error::Unhandled(inner),
137        }
138    }
139}
140impl<R>
141    From<
142        ::aws_smithy_runtime_api::client::result::SdkError<
143            crate::operation::attach_load_balancer_target_groups::AttachLoadBalancerTargetGroupsError,
144            R,
145        >,
146    > for Error
147where
148    R: Send + Sync + std::fmt::Debug + 'static,
149{
150    fn from(
151        err: ::aws_smithy_runtime_api::client::result::SdkError<
152            crate::operation::attach_load_balancer_target_groups::AttachLoadBalancerTargetGroupsError,
153            R,
154        >,
155    ) -> Self {
156        match err {
157            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
158            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
159                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
160                source: err.into(),
161            }),
162        }
163    }
164}
165impl From<crate::operation::attach_load_balancer_target_groups::AttachLoadBalancerTargetGroupsError> for Error {
166    fn from(err: crate::operation::attach_load_balancer_target_groups::AttachLoadBalancerTargetGroupsError) -> Self {
167        match err {
168            crate::operation::attach_load_balancer_target_groups::AttachLoadBalancerTargetGroupsError::InstanceRefreshInProgressFault(inner) => {
169                Error::InstanceRefreshInProgressFault(inner)
170            }
171            crate::operation::attach_load_balancer_target_groups::AttachLoadBalancerTargetGroupsError::ResourceContentionFault(inner) => {
172                Error::ResourceContentionFault(inner)
173            }
174            crate::operation::attach_load_balancer_target_groups::AttachLoadBalancerTargetGroupsError::ServiceLinkedRoleFailure(inner) => {
175                Error::ServiceLinkedRoleFailure(inner)
176            }
177            crate::operation::attach_load_balancer_target_groups::AttachLoadBalancerTargetGroupsError::Unhandled(inner) => Error::Unhandled(inner),
178        }
179    }
180}
181impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_traffic_sources::AttachTrafficSourcesError, R>> for Error
182where
183    R: Send + Sync + std::fmt::Debug + 'static,
184{
185    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::attach_traffic_sources::AttachTrafficSourcesError, R>) -> Self {
186        match err {
187            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
188            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
189                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
190                source: err.into(),
191            }),
192        }
193    }
194}
195impl From<crate::operation::attach_traffic_sources::AttachTrafficSourcesError> for Error {
196    fn from(err: crate::operation::attach_traffic_sources::AttachTrafficSourcesError) -> Self {
197        match err {
198            crate::operation::attach_traffic_sources::AttachTrafficSourcesError::InstanceRefreshInProgressFault(inner) => {
199                Error::InstanceRefreshInProgressFault(inner)
200            }
201            crate::operation::attach_traffic_sources::AttachTrafficSourcesError::ResourceContentionFault(inner) => {
202                Error::ResourceContentionFault(inner)
203            }
204            crate::operation::attach_traffic_sources::AttachTrafficSourcesError::ServiceLinkedRoleFailure(inner) => {
205                Error::ServiceLinkedRoleFailure(inner)
206            }
207            crate::operation::attach_traffic_sources::AttachTrafficSourcesError::Unhandled(inner) => Error::Unhandled(inner),
208        }
209    }
210}
211impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_scheduled_action::BatchDeleteScheduledActionError, R>>
212    for Error
213where
214    R: Send + Sync + std::fmt::Debug + 'static,
215{
216    fn from(
217        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_scheduled_action::BatchDeleteScheduledActionError, R>,
218    ) -> Self {
219        match err {
220            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
221            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
222                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
223                source: err.into(),
224            }),
225        }
226    }
227}
228impl From<crate::operation::batch_delete_scheduled_action::BatchDeleteScheduledActionError> for Error {
229    fn from(err: crate::operation::batch_delete_scheduled_action::BatchDeleteScheduledActionError) -> Self {
230        match err {
231            crate::operation::batch_delete_scheduled_action::BatchDeleteScheduledActionError::ResourceContentionFault(inner) => {
232                Error::ResourceContentionFault(inner)
233            }
234            crate::operation::batch_delete_scheduled_action::BatchDeleteScheduledActionError::Unhandled(inner) => Error::Unhandled(inner),
235        }
236    }
237}
238impl<R>
239    From<
240        ::aws_smithy_runtime_api::client::result::SdkError<
241            crate::operation::batch_put_scheduled_update_group_action::BatchPutScheduledUpdateGroupActionError,
242            R,
243        >,
244    > for Error
245where
246    R: Send + Sync + std::fmt::Debug + 'static,
247{
248    fn from(
249        err: ::aws_smithy_runtime_api::client::result::SdkError<
250            crate::operation::batch_put_scheduled_update_group_action::BatchPutScheduledUpdateGroupActionError,
251            R,
252        >,
253    ) -> Self {
254        match err {
255            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
256            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
257                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
258                source: err.into(),
259            }),
260        }
261    }
262}
263impl From<crate::operation::batch_put_scheduled_update_group_action::BatchPutScheduledUpdateGroupActionError> for Error {
264    fn from(err: crate::operation::batch_put_scheduled_update_group_action::BatchPutScheduledUpdateGroupActionError) -> Self {
265        match err {
266            crate::operation::batch_put_scheduled_update_group_action::BatchPutScheduledUpdateGroupActionError::AlreadyExistsFault(inner) => {
267                Error::AlreadyExistsFault(inner)
268            }
269            crate::operation::batch_put_scheduled_update_group_action::BatchPutScheduledUpdateGroupActionError::LimitExceededFault(inner) => {
270                Error::LimitExceededFault(inner)
271            }
272            crate::operation::batch_put_scheduled_update_group_action::BatchPutScheduledUpdateGroupActionError::ResourceContentionFault(inner) => {
273                Error::ResourceContentionFault(inner)
274            }
275            crate::operation::batch_put_scheduled_update_group_action::BatchPutScheduledUpdateGroupActionError::Unhandled(inner) => {
276                Error::Unhandled(inner)
277            }
278        }
279    }
280}
281impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_instance_refresh::CancelInstanceRefreshError, R>> for Error
282where
283    R: Send + Sync + std::fmt::Debug + 'static,
284{
285    fn from(
286        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_instance_refresh::CancelInstanceRefreshError, R>,
287    ) -> Self {
288        match err {
289            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
290            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
291                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
292                source: err.into(),
293            }),
294        }
295    }
296}
297impl From<crate::operation::cancel_instance_refresh::CancelInstanceRefreshError> for Error {
298    fn from(err: crate::operation::cancel_instance_refresh::CancelInstanceRefreshError) -> Self {
299        match err {
300            crate::operation::cancel_instance_refresh::CancelInstanceRefreshError::ActiveInstanceRefreshNotFoundFault(inner) => {
301                Error::ActiveInstanceRefreshNotFoundFault(inner)
302            }
303            crate::operation::cancel_instance_refresh::CancelInstanceRefreshError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
304            crate::operation::cancel_instance_refresh::CancelInstanceRefreshError::ResourceContentionFault(inner) => {
305                Error::ResourceContentionFault(inner)
306            }
307            crate::operation::cancel_instance_refresh::CancelInstanceRefreshError::Unhandled(inner) => Error::Unhandled(inner),
308        }
309    }
310}
311impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::complete_lifecycle_action::CompleteLifecycleActionError, R>>
312    for Error
313where
314    R: Send + Sync + std::fmt::Debug + 'static,
315{
316    fn from(
317        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::complete_lifecycle_action::CompleteLifecycleActionError, R>,
318    ) -> Self {
319        match err {
320            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
321            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
322                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
323                source: err.into(),
324            }),
325        }
326    }
327}
328impl From<crate::operation::complete_lifecycle_action::CompleteLifecycleActionError> for Error {
329    fn from(err: crate::operation::complete_lifecycle_action::CompleteLifecycleActionError) -> Self {
330        match err {
331            crate::operation::complete_lifecycle_action::CompleteLifecycleActionError::ResourceContentionFault(inner) => {
332                Error::ResourceContentionFault(inner)
333            }
334            crate::operation::complete_lifecycle_action::CompleteLifecycleActionError::Unhandled(inner) => Error::Unhandled(inner),
335        }
336    }
337}
338impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_scaling_group::CreateAutoScalingGroupError, R>>
339    for Error
340where
341    R: Send + Sync + std::fmt::Debug + 'static,
342{
343    fn from(
344        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_auto_scaling_group::CreateAutoScalingGroupError, R>,
345    ) -> Self {
346        match err {
347            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
348            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
349                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
350                source: err.into(),
351            }),
352        }
353    }
354}
355impl From<crate::operation::create_auto_scaling_group::CreateAutoScalingGroupError> for Error {
356    fn from(err: crate::operation::create_auto_scaling_group::CreateAutoScalingGroupError) -> Self {
357        match err {
358            crate::operation::create_auto_scaling_group::CreateAutoScalingGroupError::AlreadyExistsFault(inner) => Error::AlreadyExistsFault(inner),
359            crate::operation::create_auto_scaling_group::CreateAutoScalingGroupError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
360            crate::operation::create_auto_scaling_group::CreateAutoScalingGroupError::ResourceContentionFault(inner) => {
361                Error::ResourceContentionFault(inner)
362            }
363            crate::operation::create_auto_scaling_group::CreateAutoScalingGroupError::ServiceLinkedRoleFailure(inner) => {
364                Error::ServiceLinkedRoleFailure(inner)
365            }
366            crate::operation::create_auto_scaling_group::CreateAutoScalingGroupError::Unhandled(inner) => Error::Unhandled(inner),
367        }
368    }
369}
370impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_configuration::CreateLaunchConfigurationError, R>>
371    for Error
372where
373    R: Send + Sync + std::fmt::Debug + 'static,
374{
375    fn from(
376        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_launch_configuration::CreateLaunchConfigurationError, R>,
377    ) -> Self {
378        match err {
379            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
380            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
381                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
382                source: err.into(),
383            }),
384        }
385    }
386}
387impl From<crate::operation::create_launch_configuration::CreateLaunchConfigurationError> for Error {
388    fn from(err: crate::operation::create_launch_configuration::CreateLaunchConfigurationError) -> Self {
389        match err {
390            crate::operation::create_launch_configuration::CreateLaunchConfigurationError::AlreadyExistsFault(inner) => {
391                Error::AlreadyExistsFault(inner)
392            }
393            crate::operation::create_launch_configuration::CreateLaunchConfigurationError::LimitExceededFault(inner) => {
394                Error::LimitExceededFault(inner)
395            }
396            crate::operation::create_launch_configuration::CreateLaunchConfigurationError::ResourceContentionFault(inner) => {
397                Error::ResourceContentionFault(inner)
398            }
399            crate::operation::create_launch_configuration::CreateLaunchConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
400        }
401    }
402}
403impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_or_update_tags::CreateOrUpdateTagsError, R>> for Error
404where
405    R: Send + Sync + std::fmt::Debug + 'static,
406{
407    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_or_update_tags::CreateOrUpdateTagsError, R>) -> Self {
408        match err {
409            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
410            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
411                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
412                source: err.into(),
413            }),
414        }
415    }
416}
417impl From<crate::operation::create_or_update_tags::CreateOrUpdateTagsError> for Error {
418    fn from(err: crate::operation::create_or_update_tags::CreateOrUpdateTagsError) -> Self {
419        match err {
420            crate::operation::create_or_update_tags::CreateOrUpdateTagsError::AlreadyExistsFault(inner) => Error::AlreadyExistsFault(inner),
421            crate::operation::create_or_update_tags::CreateOrUpdateTagsError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
422            crate::operation::create_or_update_tags::CreateOrUpdateTagsError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
423            crate::operation::create_or_update_tags::CreateOrUpdateTagsError::ResourceInUseFault(inner) => Error::ResourceInUseFault(inner),
424            crate::operation::create_or_update_tags::CreateOrUpdateTagsError::Unhandled(inner) => Error::Unhandled(inner),
425        }
426    }
427}
428impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_auto_scaling_group::DeleteAutoScalingGroupError, R>>
429    for Error
430where
431    R: Send + Sync + std::fmt::Debug + 'static,
432{
433    fn from(
434        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_auto_scaling_group::DeleteAutoScalingGroupError, R>,
435    ) -> Self {
436        match err {
437            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
438            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
439                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
440                source: err.into(),
441            }),
442        }
443    }
444}
445impl From<crate::operation::delete_auto_scaling_group::DeleteAutoScalingGroupError> for Error {
446    fn from(err: crate::operation::delete_auto_scaling_group::DeleteAutoScalingGroupError) -> Self {
447        match err {
448            crate::operation::delete_auto_scaling_group::DeleteAutoScalingGroupError::ResourceContentionFault(inner) => {
449                Error::ResourceContentionFault(inner)
450            }
451            crate::operation::delete_auto_scaling_group::DeleteAutoScalingGroupError::ResourceInUseFault(inner) => Error::ResourceInUseFault(inner),
452            crate::operation::delete_auto_scaling_group::DeleteAutoScalingGroupError::ScalingActivityInProgressFault(inner) => {
453                Error::ScalingActivityInProgressFault(inner)
454            }
455            crate::operation::delete_auto_scaling_group::DeleteAutoScalingGroupError::Unhandled(inner) => Error::Unhandled(inner),
456        }
457    }
458}
459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_configuration::DeleteLaunchConfigurationError, R>>
460    for Error
461where
462    R: Send + Sync + std::fmt::Debug + 'static,
463{
464    fn from(
465        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_launch_configuration::DeleteLaunchConfigurationError, R>,
466    ) -> Self {
467        match err {
468            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
469            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
470                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
471                source: err.into(),
472            }),
473        }
474    }
475}
476impl From<crate::operation::delete_launch_configuration::DeleteLaunchConfigurationError> for Error {
477    fn from(err: crate::operation::delete_launch_configuration::DeleteLaunchConfigurationError) -> Self {
478        match err {
479            crate::operation::delete_launch_configuration::DeleteLaunchConfigurationError::ResourceContentionFault(inner) => {
480                Error::ResourceContentionFault(inner)
481            }
482            crate::operation::delete_launch_configuration::DeleteLaunchConfigurationError::ResourceInUseFault(inner) => {
483                Error::ResourceInUseFault(inner)
484            }
485            crate::operation::delete_launch_configuration::DeleteLaunchConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
486        }
487    }
488}
489impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_lifecycle_hook::DeleteLifecycleHookError, R>> for Error
490where
491    R: Send + Sync + std::fmt::Debug + 'static,
492{
493    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_lifecycle_hook::DeleteLifecycleHookError, R>) -> Self {
494        match err {
495            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
496            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
497                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
498                source: err.into(),
499            }),
500        }
501    }
502}
503impl From<crate::operation::delete_lifecycle_hook::DeleteLifecycleHookError> for Error {
504    fn from(err: crate::operation::delete_lifecycle_hook::DeleteLifecycleHookError) -> Self {
505        match err {
506            crate::operation::delete_lifecycle_hook::DeleteLifecycleHookError::ResourceContentionFault(inner) => {
507                Error::ResourceContentionFault(inner)
508            }
509            crate::operation::delete_lifecycle_hook::DeleteLifecycleHookError::Unhandled(inner) => Error::Unhandled(inner),
510        }
511    }
512}
513impl<R>
514    From<
515        ::aws_smithy_runtime_api::client::result::SdkError<
516            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError,
517            R,
518        >,
519    > for Error
520where
521    R: Send + Sync + std::fmt::Debug + 'static,
522{
523    fn from(
524        err: ::aws_smithy_runtime_api::client::result::SdkError<
525            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError,
526            R,
527        >,
528    ) -> Self {
529        match err {
530            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
531            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
532                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
533                source: err.into(),
534            }),
535        }
536    }
537}
538impl From<crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError> for Error {
539    fn from(err: crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError) -> Self {
540        match err {
541            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::ResourceContentionFault(inner) => {
542                Error::ResourceContentionFault(inner)
543            }
544            crate::operation::delete_notification_configuration::DeleteNotificationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
545        }
546    }
547}
548impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_policy::DeletePolicyError, R>> for Error
549where
550    R: Send + Sync + std::fmt::Debug + 'static,
551{
552    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_policy::DeletePolicyError, R>) -> Self {
553        match err {
554            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
555            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
556                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
557                source: err.into(),
558            }),
559        }
560    }
561}
562impl From<crate::operation::delete_policy::DeletePolicyError> for Error {
563    fn from(err: crate::operation::delete_policy::DeletePolicyError) -> Self {
564        match err {
565            crate::operation::delete_policy::DeletePolicyError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
566            crate::operation::delete_policy::DeletePolicyError::ServiceLinkedRoleFailure(inner) => Error::ServiceLinkedRoleFailure(inner),
567            crate::operation::delete_policy::DeletePolicyError::Unhandled(inner) => Error::Unhandled(inner),
568        }
569    }
570}
571impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scheduled_action::DeleteScheduledActionError, R>> for Error
572where
573    R: Send + Sync + std::fmt::Debug + 'static,
574{
575    fn from(
576        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scheduled_action::DeleteScheduledActionError, R>,
577    ) -> Self {
578        match err {
579            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
580            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
581                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
582                source: err.into(),
583            }),
584        }
585    }
586}
587impl From<crate::operation::delete_scheduled_action::DeleteScheduledActionError> for Error {
588    fn from(err: crate::operation::delete_scheduled_action::DeleteScheduledActionError) -> Self {
589        match err {
590            crate::operation::delete_scheduled_action::DeleteScheduledActionError::ResourceContentionFault(inner) => {
591                Error::ResourceContentionFault(inner)
592            }
593            crate::operation::delete_scheduled_action::DeleteScheduledActionError::Unhandled(inner) => Error::Unhandled(inner),
594        }
595    }
596}
597impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>> for Error
598where
599    R: Send + Sync + std::fmt::Debug + 'static,
600{
601    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>) -> Self {
602        match err {
603            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
604            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
605                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
606                source: err.into(),
607            }),
608        }
609    }
610}
611impl From<crate::operation::delete_tags::DeleteTagsError> for Error {
612    fn from(err: crate::operation::delete_tags::DeleteTagsError) -> Self {
613        match err {
614            crate::operation::delete_tags::DeleteTagsError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
615            crate::operation::delete_tags::DeleteTagsError::ResourceInUseFault(inner) => Error::ResourceInUseFault(inner),
616            crate::operation::delete_tags::DeleteTagsError::Unhandled(inner) => Error::Unhandled(inner),
617        }
618    }
619}
620impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_warm_pool::DeleteWarmPoolError, R>> for Error
621where
622    R: Send + Sync + std::fmt::Debug + 'static,
623{
624    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_warm_pool::DeleteWarmPoolError, R>) -> Self {
625        match err {
626            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
627            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
628                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
629                source: err.into(),
630            }),
631        }
632    }
633}
634impl From<crate::operation::delete_warm_pool::DeleteWarmPoolError> for Error {
635    fn from(err: crate::operation::delete_warm_pool::DeleteWarmPoolError) -> Self {
636        match err {
637            crate::operation::delete_warm_pool::DeleteWarmPoolError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
638            crate::operation::delete_warm_pool::DeleteWarmPoolError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
639            crate::operation::delete_warm_pool::DeleteWarmPoolError::ResourceInUseFault(inner) => Error::ResourceInUseFault(inner),
640            crate::operation::delete_warm_pool::DeleteWarmPoolError::ScalingActivityInProgressFault(inner) => {
641                Error::ScalingActivityInProgressFault(inner)
642            }
643            crate::operation::delete_warm_pool::DeleteWarmPoolError::Unhandled(inner) => Error::Unhandled(inner),
644        }
645    }
646}
647impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_limits::DescribeAccountLimitsError, R>> for Error
648where
649    R: Send + Sync + std::fmt::Debug + 'static,
650{
651    fn from(
652        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_limits::DescribeAccountLimitsError, R>,
653    ) -> Self {
654        match err {
655            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
656            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
657                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
658                source: err.into(),
659            }),
660        }
661    }
662}
663impl From<crate::operation::describe_account_limits::DescribeAccountLimitsError> for Error {
664    fn from(err: crate::operation::describe_account_limits::DescribeAccountLimitsError) -> Self {
665        match err {
666            crate::operation::describe_account_limits::DescribeAccountLimitsError::ResourceContentionFault(inner) => {
667                Error::ResourceContentionFault(inner)
668            }
669            crate::operation::describe_account_limits::DescribeAccountLimitsError::Unhandled(inner) => Error::Unhandled(inner),
670        }
671    }
672}
673impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_adjustment_types::DescribeAdjustmentTypesError, R>>
674    for Error
675where
676    R: Send + Sync + std::fmt::Debug + 'static,
677{
678    fn from(
679        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_adjustment_types::DescribeAdjustmentTypesError, R>,
680    ) -> Self {
681        match err {
682            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
683            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
684                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
685                source: err.into(),
686            }),
687        }
688    }
689}
690impl From<crate::operation::describe_adjustment_types::DescribeAdjustmentTypesError> for Error {
691    fn from(err: crate::operation::describe_adjustment_types::DescribeAdjustmentTypesError) -> Self {
692        match err {
693            crate::operation::describe_adjustment_types::DescribeAdjustmentTypesError::ResourceContentionFault(inner) => {
694                Error::ResourceContentionFault(inner)
695            }
696            crate::operation::describe_adjustment_types::DescribeAdjustmentTypesError::Unhandled(inner) => Error::Unhandled(inner),
697        }
698    }
699}
700impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_scaling_groups::DescribeAutoScalingGroupsError, R>>
701    for Error
702where
703    R: Send + Sync + std::fmt::Debug + 'static,
704{
705    fn from(
706        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_scaling_groups::DescribeAutoScalingGroupsError, R>,
707    ) -> Self {
708        match err {
709            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
710            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
711                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
712                source: err.into(),
713            }),
714        }
715    }
716}
717impl From<crate::operation::describe_auto_scaling_groups::DescribeAutoScalingGroupsError> for Error {
718    fn from(err: crate::operation::describe_auto_scaling_groups::DescribeAutoScalingGroupsError) -> Self {
719        match err {
720            crate::operation::describe_auto_scaling_groups::DescribeAutoScalingGroupsError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
721            crate::operation::describe_auto_scaling_groups::DescribeAutoScalingGroupsError::ResourceContentionFault(inner) => {
722                Error::ResourceContentionFault(inner)
723            }
724            crate::operation::describe_auto_scaling_groups::DescribeAutoScalingGroupsError::Unhandled(inner) => Error::Unhandled(inner),
725        }
726    }
727}
728impl<R>
729    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_auto_scaling_instances::DescribeAutoScalingInstancesError, R>>
730    for Error
731where
732    R: Send + Sync + std::fmt::Debug + 'static,
733{
734    fn from(
735        err: ::aws_smithy_runtime_api::client::result::SdkError<
736            crate::operation::describe_auto_scaling_instances::DescribeAutoScalingInstancesError,
737            R,
738        >,
739    ) -> Self {
740        match err {
741            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
742            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
743                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
744                source: err.into(),
745            }),
746        }
747    }
748}
749impl From<crate::operation::describe_auto_scaling_instances::DescribeAutoScalingInstancesError> for Error {
750    fn from(err: crate::operation::describe_auto_scaling_instances::DescribeAutoScalingInstancesError) -> Self {
751        match err {
752            crate::operation::describe_auto_scaling_instances::DescribeAutoScalingInstancesError::InvalidNextToken(inner) => {
753                Error::InvalidNextToken(inner)
754            }
755            crate::operation::describe_auto_scaling_instances::DescribeAutoScalingInstancesError::ResourceContentionFault(inner) => {
756                Error::ResourceContentionFault(inner)
757            }
758            crate::operation::describe_auto_scaling_instances::DescribeAutoScalingInstancesError::Unhandled(inner) => Error::Unhandled(inner),
759        }
760    }
761}
762impl<R>
763    From<
764        ::aws_smithy_runtime_api::client::result::SdkError<
765            crate::operation::describe_auto_scaling_notification_types::DescribeAutoScalingNotificationTypesError,
766            R,
767        >,
768    > for Error
769where
770    R: Send + Sync + std::fmt::Debug + 'static,
771{
772    fn from(
773        err: ::aws_smithy_runtime_api::client::result::SdkError<
774            crate::operation::describe_auto_scaling_notification_types::DescribeAutoScalingNotificationTypesError,
775            R,
776        >,
777    ) -> Self {
778        match err {
779            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
780            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
781                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
782                source: err.into(),
783            }),
784        }
785    }
786}
787impl From<crate::operation::describe_auto_scaling_notification_types::DescribeAutoScalingNotificationTypesError> for Error {
788    fn from(err: crate::operation::describe_auto_scaling_notification_types::DescribeAutoScalingNotificationTypesError) -> Self {
789        match err {
790            crate::operation::describe_auto_scaling_notification_types::DescribeAutoScalingNotificationTypesError::ResourceContentionFault(inner) => {
791                Error::ResourceContentionFault(inner)
792            }
793            crate::operation::describe_auto_scaling_notification_types::DescribeAutoScalingNotificationTypesError::Unhandled(inner) => {
794                Error::Unhandled(inner)
795            }
796        }
797    }
798}
799impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_refreshes::DescribeInstanceRefreshesError, R>>
800    for Error
801where
802    R: Send + Sync + std::fmt::Debug + 'static,
803{
804    fn from(
805        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_instance_refreshes::DescribeInstanceRefreshesError, R>,
806    ) -> Self {
807        match err {
808            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
809            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
810                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
811                source: err.into(),
812            }),
813        }
814    }
815}
816impl From<crate::operation::describe_instance_refreshes::DescribeInstanceRefreshesError> for Error {
817    fn from(err: crate::operation::describe_instance_refreshes::DescribeInstanceRefreshesError) -> Self {
818        match err {
819            crate::operation::describe_instance_refreshes::DescribeInstanceRefreshesError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
820            crate::operation::describe_instance_refreshes::DescribeInstanceRefreshesError::ResourceContentionFault(inner) => {
821                Error::ResourceContentionFault(inner)
822            }
823            crate::operation::describe_instance_refreshes::DescribeInstanceRefreshesError::Unhandled(inner) => Error::Unhandled(inner),
824        }
825    }
826}
827impl<R>
828    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_launch_configurations::DescribeLaunchConfigurationsError, R>>
829    for Error
830where
831    R: Send + Sync + std::fmt::Debug + 'static,
832{
833    fn from(
834        err: ::aws_smithy_runtime_api::client::result::SdkError<
835            crate::operation::describe_launch_configurations::DescribeLaunchConfigurationsError,
836            R,
837        >,
838    ) -> Self {
839        match err {
840            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
841            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
842                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
843                source: err.into(),
844            }),
845        }
846    }
847}
848impl From<crate::operation::describe_launch_configurations::DescribeLaunchConfigurationsError> for Error {
849    fn from(err: crate::operation::describe_launch_configurations::DescribeLaunchConfigurationsError) -> Self {
850        match err {
851            crate::operation::describe_launch_configurations::DescribeLaunchConfigurationsError::InvalidNextToken(inner) => {
852                Error::InvalidNextToken(inner)
853            }
854            crate::operation::describe_launch_configurations::DescribeLaunchConfigurationsError::ResourceContentionFault(inner) => {
855                Error::ResourceContentionFault(inner)
856            }
857            crate::operation::describe_launch_configurations::DescribeLaunchConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
858        }
859    }
860}
861impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lifecycle_hooks::DescribeLifecycleHooksError, R>> for Error
862where
863    R: Send + Sync + std::fmt::Debug + 'static,
864{
865    fn from(
866        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lifecycle_hooks::DescribeLifecycleHooksError, R>,
867    ) -> Self {
868        match err {
869            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
870            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
871                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
872                source: err.into(),
873            }),
874        }
875    }
876}
877impl From<crate::operation::describe_lifecycle_hooks::DescribeLifecycleHooksError> for Error {
878    fn from(err: crate::operation::describe_lifecycle_hooks::DescribeLifecycleHooksError) -> Self {
879        match err {
880            crate::operation::describe_lifecycle_hooks::DescribeLifecycleHooksError::ResourceContentionFault(inner) => {
881                Error::ResourceContentionFault(inner)
882            }
883            crate::operation::describe_lifecycle_hooks::DescribeLifecycleHooksError::Unhandled(inner) => Error::Unhandled(inner),
884        }
885    }
886}
887impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lifecycle_hook_types::DescribeLifecycleHookTypesError, R>>
888    for Error
889where
890    R: Send + Sync + std::fmt::Debug + 'static,
891{
892    fn from(
893        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lifecycle_hook_types::DescribeLifecycleHookTypesError, R>,
894    ) -> Self {
895        match err {
896            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
897            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
898                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
899                source: err.into(),
900            }),
901        }
902    }
903}
904impl From<crate::operation::describe_lifecycle_hook_types::DescribeLifecycleHookTypesError> for Error {
905    fn from(err: crate::operation::describe_lifecycle_hook_types::DescribeLifecycleHookTypesError) -> Self {
906        match err {
907            crate::operation::describe_lifecycle_hook_types::DescribeLifecycleHookTypesError::ResourceContentionFault(inner) => {
908                Error::ResourceContentionFault(inner)
909            }
910            crate::operation::describe_lifecycle_hook_types::DescribeLifecycleHookTypesError::Unhandled(inner) => Error::Unhandled(inner),
911        }
912    }
913}
914impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_load_balancers::DescribeLoadBalancersError, R>> for Error
915where
916    R: Send + Sync + std::fmt::Debug + 'static,
917{
918    fn from(
919        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_load_balancers::DescribeLoadBalancersError, R>,
920    ) -> Self {
921        match err {
922            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
923            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
924                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
925                source: err.into(),
926            }),
927        }
928    }
929}
930impl From<crate::operation::describe_load_balancers::DescribeLoadBalancersError> for Error {
931    fn from(err: crate::operation::describe_load_balancers::DescribeLoadBalancersError) -> Self {
932        match err {
933            crate::operation::describe_load_balancers::DescribeLoadBalancersError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
934            crate::operation::describe_load_balancers::DescribeLoadBalancersError::ResourceContentionFault(inner) => {
935                Error::ResourceContentionFault(inner)
936            }
937            crate::operation::describe_load_balancers::DescribeLoadBalancersError::Unhandled(inner) => Error::Unhandled(inner),
938        }
939    }
940}
941impl<R>
942    From<
943        ::aws_smithy_runtime_api::client::result::SdkError<
944            crate::operation::describe_load_balancer_target_groups::DescribeLoadBalancerTargetGroupsError,
945            R,
946        >,
947    > for Error
948where
949    R: Send + Sync + std::fmt::Debug + 'static,
950{
951    fn from(
952        err: ::aws_smithy_runtime_api::client::result::SdkError<
953            crate::operation::describe_load_balancer_target_groups::DescribeLoadBalancerTargetGroupsError,
954            R,
955        >,
956    ) -> Self {
957        match err {
958            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
959            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
960                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
961                source: err.into(),
962            }),
963        }
964    }
965}
966impl From<crate::operation::describe_load_balancer_target_groups::DescribeLoadBalancerTargetGroupsError> for Error {
967    fn from(err: crate::operation::describe_load_balancer_target_groups::DescribeLoadBalancerTargetGroupsError) -> Self {
968        match err {
969            crate::operation::describe_load_balancer_target_groups::DescribeLoadBalancerTargetGroupsError::InvalidNextToken(inner) => {
970                Error::InvalidNextToken(inner)
971            }
972            crate::operation::describe_load_balancer_target_groups::DescribeLoadBalancerTargetGroupsError::ResourceContentionFault(inner) => {
973                Error::ResourceContentionFault(inner)
974            }
975            crate::operation::describe_load_balancer_target_groups::DescribeLoadBalancerTargetGroupsError::Unhandled(inner) => {
976                Error::Unhandled(inner)
977            }
978        }
979    }
980}
981impl<R>
982    From<
983        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_metric_collection_types::DescribeMetricCollectionTypesError, R>,
984    > for Error
985where
986    R: Send + Sync + std::fmt::Debug + 'static,
987{
988    fn from(
989        err: ::aws_smithy_runtime_api::client::result::SdkError<
990            crate::operation::describe_metric_collection_types::DescribeMetricCollectionTypesError,
991            R,
992        >,
993    ) -> Self {
994        match err {
995            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
996            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
997                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
998                source: err.into(),
999            }),
1000        }
1001    }
1002}
1003impl From<crate::operation::describe_metric_collection_types::DescribeMetricCollectionTypesError> for Error {
1004    fn from(err: crate::operation::describe_metric_collection_types::DescribeMetricCollectionTypesError) -> Self {
1005        match err {
1006            crate::operation::describe_metric_collection_types::DescribeMetricCollectionTypesError::ResourceContentionFault(inner) => {
1007                Error::ResourceContentionFault(inner)
1008            }
1009            crate::operation::describe_metric_collection_types::DescribeMetricCollectionTypesError::Unhandled(inner) => Error::Unhandled(inner),
1010        }
1011    }
1012}
1013impl<R>
1014    From<
1015        ::aws_smithy_runtime_api::client::result::SdkError<
1016            crate::operation::describe_notification_configurations::DescribeNotificationConfigurationsError,
1017            R,
1018        >,
1019    > for Error
1020where
1021    R: Send + Sync + std::fmt::Debug + 'static,
1022{
1023    fn from(
1024        err: ::aws_smithy_runtime_api::client::result::SdkError<
1025            crate::operation::describe_notification_configurations::DescribeNotificationConfigurationsError,
1026            R,
1027        >,
1028    ) -> Self {
1029        match err {
1030            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1031            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1032                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1033                source: err.into(),
1034            }),
1035        }
1036    }
1037}
1038impl From<crate::operation::describe_notification_configurations::DescribeNotificationConfigurationsError> for Error {
1039    fn from(err: crate::operation::describe_notification_configurations::DescribeNotificationConfigurationsError) -> Self {
1040        match err {
1041            crate::operation::describe_notification_configurations::DescribeNotificationConfigurationsError::InvalidNextToken(inner) => {
1042                Error::InvalidNextToken(inner)
1043            }
1044            crate::operation::describe_notification_configurations::DescribeNotificationConfigurationsError::ResourceContentionFault(inner) => {
1045                Error::ResourceContentionFault(inner)
1046            }
1047            crate::operation::describe_notification_configurations::DescribeNotificationConfigurationsError::Unhandled(inner) => {
1048                Error::Unhandled(inner)
1049            }
1050        }
1051    }
1052}
1053impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_policies::DescribePoliciesError, R>> for Error
1054where
1055    R: Send + Sync + std::fmt::Debug + 'static,
1056{
1057    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_policies::DescribePoliciesError, R>) -> 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_policies::DescribePoliciesError> for Error {
1068    fn from(err: crate::operation::describe_policies::DescribePoliciesError) -> Self {
1069        match err {
1070            crate::operation::describe_policies::DescribePoliciesError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
1071            crate::operation::describe_policies::DescribePoliciesError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
1072            crate::operation::describe_policies::DescribePoliciesError::ServiceLinkedRoleFailure(inner) => Error::ServiceLinkedRoleFailure(inner),
1073            crate::operation::describe_policies::DescribePoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1074        }
1075    }
1076}
1077impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scaling_activities::DescribeScalingActivitiesError, R>>
1078    for Error
1079where
1080    R: Send + Sync + std::fmt::Debug + 'static,
1081{
1082    fn from(
1083        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scaling_activities::DescribeScalingActivitiesError, R>,
1084    ) -> Self {
1085        match err {
1086            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1087            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1088                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1089                source: err.into(),
1090            }),
1091        }
1092    }
1093}
1094impl From<crate::operation::describe_scaling_activities::DescribeScalingActivitiesError> for Error {
1095    fn from(err: crate::operation::describe_scaling_activities::DescribeScalingActivitiesError) -> Self {
1096        match err {
1097            crate::operation::describe_scaling_activities::DescribeScalingActivitiesError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
1098            crate::operation::describe_scaling_activities::DescribeScalingActivitiesError::ResourceContentionFault(inner) => {
1099                Error::ResourceContentionFault(inner)
1100            }
1101            crate::operation::describe_scaling_activities::DescribeScalingActivitiesError::Unhandled(inner) => Error::Unhandled(inner),
1102        }
1103    }
1104}
1105impl<R>
1106    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scaling_process_types::DescribeScalingProcessTypesError, R>>
1107    for Error
1108where
1109    R: Send + Sync + std::fmt::Debug + 'static,
1110{
1111    fn from(
1112        err: ::aws_smithy_runtime_api::client::result::SdkError<
1113            crate::operation::describe_scaling_process_types::DescribeScalingProcessTypesError,
1114            R,
1115        >,
1116    ) -> Self {
1117        match err {
1118            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1119            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1120                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1121                source: err.into(),
1122            }),
1123        }
1124    }
1125}
1126impl From<crate::operation::describe_scaling_process_types::DescribeScalingProcessTypesError> for Error {
1127    fn from(err: crate::operation::describe_scaling_process_types::DescribeScalingProcessTypesError) -> Self {
1128        match err {
1129            crate::operation::describe_scaling_process_types::DescribeScalingProcessTypesError::ResourceContentionFault(inner) => {
1130                Error::ResourceContentionFault(inner)
1131            }
1132            crate::operation::describe_scaling_process_types::DescribeScalingProcessTypesError::Unhandled(inner) => Error::Unhandled(inner),
1133        }
1134    }
1135}
1136impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_actions::DescribeScheduledActionsError, R>>
1137    for Error
1138where
1139    R: Send + Sync + std::fmt::Debug + 'static,
1140{
1141    fn from(
1142        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_actions::DescribeScheduledActionsError, R>,
1143    ) -> Self {
1144        match err {
1145            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1146            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1147                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1148                source: err.into(),
1149            }),
1150        }
1151    }
1152}
1153impl From<crate::operation::describe_scheduled_actions::DescribeScheduledActionsError> for Error {
1154    fn from(err: crate::operation::describe_scheduled_actions::DescribeScheduledActionsError) -> Self {
1155        match err {
1156            crate::operation::describe_scheduled_actions::DescribeScheduledActionsError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
1157            crate::operation::describe_scheduled_actions::DescribeScheduledActionsError::ResourceContentionFault(inner) => {
1158                Error::ResourceContentionFault(inner)
1159            }
1160            crate::operation::describe_scheduled_actions::DescribeScheduledActionsError::Unhandled(inner) => Error::Unhandled(inner),
1161        }
1162    }
1163}
1164impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>> for Error
1165where
1166    R: Send + Sync + std::fmt::Debug + 'static,
1167{
1168    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>) -> Self {
1169        match err {
1170            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1171            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1172                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1173                source: err.into(),
1174            }),
1175        }
1176    }
1177}
1178impl From<crate::operation::describe_tags::DescribeTagsError> for Error {
1179    fn from(err: crate::operation::describe_tags::DescribeTagsError) -> Self {
1180        match err {
1181            crate::operation::describe_tags::DescribeTagsError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
1182            crate::operation::describe_tags::DescribeTagsError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
1183            crate::operation::describe_tags::DescribeTagsError::Unhandled(inner) => Error::Unhandled(inner),
1184        }
1185    }
1186}
1187impl<R>
1188    From<
1189        ::aws_smithy_runtime_api::client::result::SdkError<
1190            crate::operation::describe_termination_policy_types::DescribeTerminationPolicyTypesError,
1191            R,
1192        >,
1193    > for Error
1194where
1195    R: Send + Sync + std::fmt::Debug + 'static,
1196{
1197    fn from(
1198        err: ::aws_smithy_runtime_api::client::result::SdkError<
1199            crate::operation::describe_termination_policy_types::DescribeTerminationPolicyTypesError,
1200            R,
1201        >,
1202    ) -> Self {
1203        match err {
1204            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1205            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1206                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1207                source: err.into(),
1208            }),
1209        }
1210    }
1211}
1212impl From<crate::operation::describe_termination_policy_types::DescribeTerminationPolicyTypesError> for Error {
1213    fn from(err: crate::operation::describe_termination_policy_types::DescribeTerminationPolicyTypesError) -> Self {
1214        match err {
1215            crate::operation::describe_termination_policy_types::DescribeTerminationPolicyTypesError::ResourceContentionFault(inner) => {
1216                Error::ResourceContentionFault(inner)
1217            }
1218            crate::operation::describe_termination_policy_types::DescribeTerminationPolicyTypesError::Unhandled(inner) => Error::Unhandled(inner),
1219        }
1220    }
1221}
1222impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_sources::DescribeTrafficSourcesError, R>> for Error
1223where
1224    R: Send + Sync + std::fmt::Debug + 'static,
1225{
1226    fn from(
1227        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_traffic_sources::DescribeTrafficSourcesError, R>,
1228    ) -> Self {
1229        match err {
1230            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1231            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1232                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1233                source: err.into(),
1234            }),
1235        }
1236    }
1237}
1238impl From<crate::operation::describe_traffic_sources::DescribeTrafficSourcesError> for Error {
1239    fn from(err: crate::operation::describe_traffic_sources::DescribeTrafficSourcesError) -> Self {
1240        match err {
1241            crate::operation::describe_traffic_sources::DescribeTrafficSourcesError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
1242            crate::operation::describe_traffic_sources::DescribeTrafficSourcesError::ResourceContentionFault(inner) => {
1243                Error::ResourceContentionFault(inner)
1244            }
1245            crate::operation::describe_traffic_sources::DescribeTrafficSourcesError::Unhandled(inner) => Error::Unhandled(inner),
1246        }
1247    }
1248}
1249impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_warm_pool::DescribeWarmPoolError, R>> for Error
1250where
1251    R: Send + Sync + std::fmt::Debug + 'static,
1252{
1253    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_warm_pool::DescribeWarmPoolError, R>) -> Self {
1254        match err {
1255            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1256            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1257                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1258                source: err.into(),
1259            }),
1260        }
1261    }
1262}
1263impl From<crate::operation::describe_warm_pool::DescribeWarmPoolError> for Error {
1264    fn from(err: crate::operation::describe_warm_pool::DescribeWarmPoolError) -> Self {
1265        match err {
1266            crate::operation::describe_warm_pool::DescribeWarmPoolError::InvalidNextToken(inner) => Error::InvalidNextToken(inner),
1267            crate::operation::describe_warm_pool::DescribeWarmPoolError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
1268            crate::operation::describe_warm_pool::DescribeWarmPoolError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
1269            crate::operation::describe_warm_pool::DescribeWarmPoolError::Unhandled(inner) => Error::Unhandled(inner),
1270        }
1271    }
1272}
1273impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_instances::DetachInstancesError, R>> for Error
1274where
1275    R: Send + Sync + std::fmt::Debug + 'static,
1276{
1277    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_instances::DetachInstancesError, R>) -> Self {
1278        match err {
1279            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1280            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1281                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1282                source: err.into(),
1283            }),
1284        }
1285    }
1286}
1287impl From<crate::operation::detach_instances::DetachInstancesError> for Error {
1288    fn from(err: crate::operation::detach_instances::DetachInstancesError) -> Self {
1289        match err {
1290            crate::operation::detach_instances::DetachInstancesError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
1291            crate::operation::detach_instances::DetachInstancesError::Unhandled(inner) => Error::Unhandled(inner),
1292        }
1293    }
1294}
1295impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_load_balancers::DetachLoadBalancersError, R>> for Error
1296where
1297    R: Send + Sync + std::fmt::Debug + 'static,
1298{
1299    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_load_balancers::DetachLoadBalancersError, R>) -> Self {
1300        match err {
1301            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1302            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1303                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1304                source: err.into(),
1305            }),
1306        }
1307    }
1308}
1309impl From<crate::operation::detach_load_balancers::DetachLoadBalancersError> for Error {
1310    fn from(err: crate::operation::detach_load_balancers::DetachLoadBalancersError) -> Self {
1311        match err {
1312            crate::operation::detach_load_balancers::DetachLoadBalancersError::ResourceContentionFault(inner) => {
1313                Error::ResourceContentionFault(inner)
1314            }
1315            crate::operation::detach_load_balancers::DetachLoadBalancersError::Unhandled(inner) => Error::Unhandled(inner),
1316        }
1317    }
1318}
1319impl<R>
1320    From<
1321        ::aws_smithy_runtime_api::client::result::SdkError<
1322            crate::operation::detach_load_balancer_target_groups::DetachLoadBalancerTargetGroupsError,
1323            R,
1324        >,
1325    > for Error
1326where
1327    R: Send + Sync + std::fmt::Debug + 'static,
1328{
1329    fn from(
1330        err: ::aws_smithy_runtime_api::client::result::SdkError<
1331            crate::operation::detach_load_balancer_target_groups::DetachLoadBalancerTargetGroupsError,
1332            R,
1333        >,
1334    ) -> Self {
1335        match err {
1336            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1337            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1338                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1339                source: err.into(),
1340            }),
1341        }
1342    }
1343}
1344impl From<crate::operation::detach_load_balancer_target_groups::DetachLoadBalancerTargetGroupsError> for Error {
1345    fn from(err: crate::operation::detach_load_balancer_target_groups::DetachLoadBalancerTargetGroupsError) -> Self {
1346        match err {
1347            crate::operation::detach_load_balancer_target_groups::DetachLoadBalancerTargetGroupsError::ResourceContentionFault(inner) => {
1348                Error::ResourceContentionFault(inner)
1349            }
1350            crate::operation::detach_load_balancer_target_groups::DetachLoadBalancerTargetGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1351        }
1352    }
1353}
1354impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_traffic_sources::DetachTrafficSourcesError, R>> for Error
1355where
1356    R: Send + Sync + std::fmt::Debug + 'static,
1357{
1358    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detach_traffic_sources::DetachTrafficSourcesError, R>) -> Self {
1359        match err {
1360            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1361            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1362                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1363                source: err.into(),
1364            }),
1365        }
1366    }
1367}
1368impl From<crate::operation::detach_traffic_sources::DetachTrafficSourcesError> for Error {
1369    fn from(err: crate::operation::detach_traffic_sources::DetachTrafficSourcesError) -> Self {
1370        match err {
1371            crate::operation::detach_traffic_sources::DetachTrafficSourcesError::ResourceContentionFault(inner) => {
1372                Error::ResourceContentionFault(inner)
1373            }
1374            crate::operation::detach_traffic_sources::DetachTrafficSourcesError::Unhandled(inner) => Error::Unhandled(inner),
1375        }
1376    }
1377}
1378impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_metrics_collection::DisableMetricsCollectionError, R>>
1379    for Error
1380where
1381    R: Send + Sync + std::fmt::Debug + 'static,
1382{
1383    fn from(
1384        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_metrics_collection::DisableMetricsCollectionError, R>,
1385    ) -> Self {
1386        match err {
1387            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1388            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1389                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1390                source: err.into(),
1391            }),
1392        }
1393    }
1394}
1395impl From<crate::operation::disable_metrics_collection::DisableMetricsCollectionError> for Error {
1396    fn from(err: crate::operation::disable_metrics_collection::DisableMetricsCollectionError) -> Self {
1397        match err {
1398            crate::operation::disable_metrics_collection::DisableMetricsCollectionError::ResourceContentionFault(inner) => {
1399                Error::ResourceContentionFault(inner)
1400            }
1401            crate::operation::disable_metrics_collection::DisableMetricsCollectionError::Unhandled(inner) => Error::Unhandled(inner),
1402        }
1403    }
1404}
1405impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_metrics_collection::EnableMetricsCollectionError, R>>
1406    for Error
1407where
1408    R: Send + Sync + std::fmt::Debug + 'static,
1409{
1410    fn from(
1411        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_metrics_collection::EnableMetricsCollectionError, R>,
1412    ) -> Self {
1413        match err {
1414            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1415            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1416                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1417                source: err.into(),
1418            }),
1419        }
1420    }
1421}
1422impl From<crate::operation::enable_metrics_collection::EnableMetricsCollectionError> for Error {
1423    fn from(err: crate::operation::enable_metrics_collection::EnableMetricsCollectionError) -> Self {
1424        match err {
1425            crate::operation::enable_metrics_collection::EnableMetricsCollectionError::ResourceContentionFault(inner) => {
1426                Error::ResourceContentionFault(inner)
1427            }
1428            crate::operation::enable_metrics_collection::EnableMetricsCollectionError::Unhandled(inner) => Error::Unhandled(inner),
1429        }
1430    }
1431}
1432impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enter_standby::EnterStandbyError, R>> for Error
1433where
1434    R: Send + Sync + std::fmt::Debug + 'static,
1435{
1436    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enter_standby::EnterStandbyError, R>) -> Self {
1437        match err {
1438            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1439            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1440                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1441                source: err.into(),
1442            }),
1443        }
1444    }
1445}
1446impl From<crate::operation::enter_standby::EnterStandbyError> for Error {
1447    fn from(err: crate::operation::enter_standby::EnterStandbyError) -> Self {
1448        match err {
1449            crate::operation::enter_standby::EnterStandbyError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
1450            crate::operation::enter_standby::EnterStandbyError::Unhandled(inner) => Error::Unhandled(inner),
1451        }
1452    }
1453}
1454impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_policy::ExecutePolicyError, R>> for Error
1455where
1456    R: Send + Sync + std::fmt::Debug + 'static,
1457{
1458    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_policy::ExecutePolicyError, R>) -> Self {
1459        match err {
1460            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1461            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1462                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1463                source: err.into(),
1464            }),
1465        }
1466    }
1467}
1468impl From<crate::operation::execute_policy::ExecutePolicyError> for Error {
1469    fn from(err: crate::operation::execute_policy::ExecutePolicyError) -> Self {
1470        match err {
1471            crate::operation::execute_policy::ExecutePolicyError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
1472            crate::operation::execute_policy::ExecutePolicyError::ScalingActivityInProgressFault(inner) => {
1473                Error::ScalingActivityInProgressFault(inner)
1474            }
1475            crate::operation::execute_policy::ExecutePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1476        }
1477    }
1478}
1479impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::exit_standby::ExitStandbyError, R>> for Error
1480where
1481    R: Send + Sync + std::fmt::Debug + 'static,
1482{
1483    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::exit_standby::ExitStandbyError, R>) -> Self {
1484        match err {
1485            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1486            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1487                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1488                source: err.into(),
1489            }),
1490        }
1491    }
1492}
1493impl From<crate::operation::exit_standby::ExitStandbyError> for Error {
1494    fn from(err: crate::operation::exit_standby::ExitStandbyError) -> Self {
1495        match err {
1496            crate::operation::exit_standby::ExitStandbyError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
1497            crate::operation::exit_standby::ExitStandbyError::Unhandled(inner) => Error::Unhandled(inner),
1498        }
1499    }
1500}
1501impl<R>
1502    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_predictive_scaling_forecast::GetPredictiveScalingForecastError, R>>
1503    for Error
1504where
1505    R: Send + Sync + std::fmt::Debug + 'static,
1506{
1507    fn from(
1508        err: ::aws_smithy_runtime_api::client::result::SdkError<
1509            crate::operation::get_predictive_scaling_forecast::GetPredictiveScalingForecastError,
1510            R,
1511        >,
1512    ) -> Self {
1513        match err {
1514            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1515            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1516                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1517                source: err.into(),
1518            }),
1519        }
1520    }
1521}
1522impl From<crate::operation::get_predictive_scaling_forecast::GetPredictiveScalingForecastError> for Error {
1523    fn from(err: crate::operation::get_predictive_scaling_forecast::GetPredictiveScalingForecastError) -> Self {
1524        match err {
1525            crate::operation::get_predictive_scaling_forecast::GetPredictiveScalingForecastError::ResourceContentionFault(inner) => {
1526                Error::ResourceContentionFault(inner)
1527            }
1528            crate::operation::get_predictive_scaling_forecast::GetPredictiveScalingForecastError::Unhandled(inner) => Error::Unhandled(inner),
1529        }
1530    }
1531}
1532impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::launch_instances::LaunchInstancesError, R>> for Error
1533where
1534    R: Send + Sync + std::fmt::Debug + 'static,
1535{
1536    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::launch_instances::LaunchInstancesError, R>) -> Self {
1537        match err {
1538            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1539            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1540                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1541                source: err.into(),
1542            }),
1543        }
1544    }
1545}
1546impl From<crate::operation::launch_instances::LaunchInstancesError> for Error {
1547    fn from(err: crate::operation::launch_instances::LaunchInstancesError) -> Self {
1548        match err {
1549            crate::operation::launch_instances::LaunchInstancesError::IdempotentParameterMismatchError(inner) => {
1550                Error::IdempotentParameterMismatchError(inner)
1551            }
1552            crate::operation::launch_instances::LaunchInstancesError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
1553            crate::operation::launch_instances::LaunchInstancesError::Unhandled(inner) => Error::Unhandled(inner),
1554        }
1555    }
1556}
1557impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_lifecycle_hook::PutLifecycleHookError, R>> for Error
1558where
1559    R: Send + Sync + std::fmt::Debug + 'static,
1560{
1561    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_lifecycle_hook::PutLifecycleHookError, R>) -> Self {
1562        match err {
1563            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1564            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1565                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1566                source: err.into(),
1567            }),
1568        }
1569    }
1570}
1571impl From<crate::operation::put_lifecycle_hook::PutLifecycleHookError> for Error {
1572    fn from(err: crate::operation::put_lifecycle_hook::PutLifecycleHookError) -> Self {
1573        match err {
1574            crate::operation::put_lifecycle_hook::PutLifecycleHookError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
1575            crate::operation::put_lifecycle_hook::PutLifecycleHookError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
1576            crate::operation::put_lifecycle_hook::PutLifecycleHookError::Unhandled(inner) => Error::Unhandled(inner),
1577        }
1578    }
1579}
1580impl<R>
1581    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_notification_configuration::PutNotificationConfigurationError, R>>
1582    for Error
1583where
1584    R: Send + Sync + std::fmt::Debug + 'static,
1585{
1586    fn from(
1587        err: ::aws_smithy_runtime_api::client::result::SdkError<
1588            crate::operation::put_notification_configuration::PutNotificationConfigurationError,
1589            R,
1590        >,
1591    ) -> Self {
1592        match err {
1593            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1594            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1595                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1596                source: err.into(),
1597            }),
1598        }
1599    }
1600}
1601impl From<crate::operation::put_notification_configuration::PutNotificationConfigurationError> for Error {
1602    fn from(err: crate::operation::put_notification_configuration::PutNotificationConfigurationError) -> Self {
1603        match err {
1604            crate::operation::put_notification_configuration::PutNotificationConfigurationError::LimitExceededFault(inner) => {
1605                Error::LimitExceededFault(inner)
1606            }
1607            crate::operation::put_notification_configuration::PutNotificationConfigurationError::ResourceContentionFault(inner) => {
1608                Error::ResourceContentionFault(inner)
1609            }
1610            crate::operation::put_notification_configuration::PutNotificationConfigurationError::ServiceLinkedRoleFailure(inner) => {
1611                Error::ServiceLinkedRoleFailure(inner)
1612            }
1613            crate::operation::put_notification_configuration::PutNotificationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1614        }
1615    }
1616}
1617impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_scaling_policy::PutScalingPolicyError, R>> for Error
1618where
1619    R: Send + Sync + std::fmt::Debug + 'static,
1620{
1621    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_scaling_policy::PutScalingPolicyError, R>) -> Self {
1622        match err {
1623            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1624            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1625                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1626                source: err.into(),
1627            }),
1628        }
1629    }
1630}
1631impl From<crate::operation::put_scaling_policy::PutScalingPolicyError> for Error {
1632    fn from(err: crate::operation::put_scaling_policy::PutScalingPolicyError) -> Self {
1633        match err {
1634            crate::operation::put_scaling_policy::PutScalingPolicyError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
1635            crate::operation::put_scaling_policy::PutScalingPolicyError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
1636            crate::operation::put_scaling_policy::PutScalingPolicyError::ServiceLinkedRoleFailure(inner) => Error::ServiceLinkedRoleFailure(inner),
1637            crate::operation::put_scaling_policy::PutScalingPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1638        }
1639    }
1640}
1641impl<R>
1642    From<
1643        ::aws_smithy_runtime_api::client::result::SdkError<
1644            crate::operation::put_scheduled_update_group_action::PutScheduledUpdateGroupActionError,
1645            R,
1646        >,
1647    > for Error
1648where
1649    R: Send + Sync + std::fmt::Debug + 'static,
1650{
1651    fn from(
1652        err: ::aws_smithy_runtime_api::client::result::SdkError<
1653            crate::operation::put_scheduled_update_group_action::PutScheduledUpdateGroupActionError,
1654            R,
1655        >,
1656    ) -> Self {
1657        match err {
1658            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1659            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1660                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1661                source: err.into(),
1662            }),
1663        }
1664    }
1665}
1666impl From<crate::operation::put_scheduled_update_group_action::PutScheduledUpdateGroupActionError> for Error {
1667    fn from(err: crate::operation::put_scheduled_update_group_action::PutScheduledUpdateGroupActionError) -> Self {
1668        match err {
1669            crate::operation::put_scheduled_update_group_action::PutScheduledUpdateGroupActionError::AlreadyExistsFault(inner) => {
1670                Error::AlreadyExistsFault(inner)
1671            }
1672            crate::operation::put_scheduled_update_group_action::PutScheduledUpdateGroupActionError::LimitExceededFault(inner) => {
1673                Error::LimitExceededFault(inner)
1674            }
1675            crate::operation::put_scheduled_update_group_action::PutScheduledUpdateGroupActionError::ResourceContentionFault(inner) => {
1676                Error::ResourceContentionFault(inner)
1677            }
1678            crate::operation::put_scheduled_update_group_action::PutScheduledUpdateGroupActionError::Unhandled(inner) => Error::Unhandled(inner),
1679        }
1680    }
1681}
1682impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_warm_pool::PutWarmPoolError, R>> for Error
1683where
1684    R: Send + Sync + std::fmt::Debug + 'static,
1685{
1686    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_warm_pool::PutWarmPoolError, R>) -> Self {
1687        match err {
1688            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1689            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1690                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1691                source: err.into(),
1692            }),
1693        }
1694    }
1695}
1696impl From<crate::operation::put_warm_pool::PutWarmPoolError> for Error {
1697    fn from(err: crate::operation::put_warm_pool::PutWarmPoolError) -> Self {
1698        match err {
1699            crate::operation::put_warm_pool::PutWarmPoolError::InstanceRefreshInProgressFault(inner) => Error::InstanceRefreshInProgressFault(inner),
1700            crate::operation::put_warm_pool::PutWarmPoolError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
1701            crate::operation::put_warm_pool::PutWarmPoolError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
1702            crate::operation::put_warm_pool::PutWarmPoolError::Unhandled(inner) => Error::Unhandled(inner),
1703        }
1704    }
1705}
1706impl<R>
1707    From<
1708        ::aws_smithy_runtime_api::client::result::SdkError<
1709            crate::operation::record_lifecycle_action_heartbeat::RecordLifecycleActionHeartbeatError,
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::record_lifecycle_action_heartbeat::RecordLifecycleActionHeartbeatError,
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::record_lifecycle_action_heartbeat::RecordLifecycleActionHeartbeatError> for Error {
1732    fn from(err: crate::operation::record_lifecycle_action_heartbeat::RecordLifecycleActionHeartbeatError) -> Self {
1733        match err {
1734            crate::operation::record_lifecycle_action_heartbeat::RecordLifecycleActionHeartbeatError::ResourceContentionFault(inner) => {
1735                Error::ResourceContentionFault(inner)
1736            }
1737            crate::operation::record_lifecycle_action_heartbeat::RecordLifecycleActionHeartbeatError::Unhandled(inner) => Error::Unhandled(inner),
1738        }
1739    }
1740}
1741impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resume_processes::ResumeProcessesError, R>> for Error
1742where
1743    R: Send + Sync + std::fmt::Debug + 'static,
1744{
1745    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resume_processes::ResumeProcessesError, R>) -> Self {
1746        match err {
1747            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1748            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1749                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1750                source: err.into(),
1751            }),
1752        }
1753    }
1754}
1755impl From<crate::operation::resume_processes::ResumeProcessesError> for Error {
1756    fn from(err: crate::operation::resume_processes::ResumeProcessesError) -> Self {
1757        match err {
1758            crate::operation::resume_processes::ResumeProcessesError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
1759            crate::operation::resume_processes::ResumeProcessesError::ResourceInUseFault(inner) => Error::ResourceInUseFault(inner),
1760            crate::operation::resume_processes::ResumeProcessesError::Unhandled(inner) => Error::Unhandled(inner),
1761        }
1762    }
1763}
1764impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rollback_instance_refresh::RollbackInstanceRefreshError, R>>
1765    for Error
1766where
1767    R: Send + Sync + std::fmt::Debug + 'static,
1768{
1769    fn from(
1770        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rollback_instance_refresh::RollbackInstanceRefreshError, R>,
1771    ) -> Self {
1772        match err {
1773            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1774            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1775                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1776                source: err.into(),
1777            }),
1778        }
1779    }
1780}
1781impl From<crate::operation::rollback_instance_refresh::RollbackInstanceRefreshError> for Error {
1782    fn from(err: crate::operation::rollback_instance_refresh::RollbackInstanceRefreshError) -> Self {
1783        match err {
1784            crate::operation::rollback_instance_refresh::RollbackInstanceRefreshError::ActiveInstanceRefreshNotFoundFault(inner) => {
1785                Error::ActiveInstanceRefreshNotFoundFault(inner)
1786            }
1787            crate::operation::rollback_instance_refresh::RollbackInstanceRefreshError::IrreversibleInstanceRefreshFault(inner) => {
1788                Error::IrreversibleInstanceRefreshFault(inner)
1789            }
1790            crate::operation::rollback_instance_refresh::RollbackInstanceRefreshError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
1791            crate::operation::rollback_instance_refresh::RollbackInstanceRefreshError::ResourceContentionFault(inner) => {
1792                Error::ResourceContentionFault(inner)
1793            }
1794            crate::operation::rollback_instance_refresh::RollbackInstanceRefreshError::Unhandled(inner) => Error::Unhandled(inner),
1795        }
1796    }
1797}
1798impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_desired_capacity::SetDesiredCapacityError, R>> for Error
1799where
1800    R: Send + Sync + std::fmt::Debug + 'static,
1801{
1802    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_desired_capacity::SetDesiredCapacityError, R>) -> Self {
1803        match err {
1804            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1805            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1806                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1807                source: err.into(),
1808            }),
1809        }
1810    }
1811}
1812impl From<crate::operation::set_desired_capacity::SetDesiredCapacityError> for Error {
1813    fn from(err: crate::operation::set_desired_capacity::SetDesiredCapacityError) -> Self {
1814        match err {
1815            crate::operation::set_desired_capacity::SetDesiredCapacityError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
1816            crate::operation::set_desired_capacity::SetDesiredCapacityError::ScalingActivityInProgressFault(inner) => {
1817                Error::ScalingActivityInProgressFault(inner)
1818            }
1819            crate::operation::set_desired_capacity::SetDesiredCapacityError::Unhandled(inner) => Error::Unhandled(inner),
1820        }
1821    }
1822}
1823impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_instance_health::SetInstanceHealthError, R>> for Error
1824where
1825    R: Send + Sync + std::fmt::Debug + 'static,
1826{
1827    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_instance_health::SetInstanceHealthError, R>) -> Self {
1828        match err {
1829            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1830            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1831                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1832                source: err.into(),
1833            }),
1834        }
1835    }
1836}
1837impl From<crate::operation::set_instance_health::SetInstanceHealthError> for Error {
1838    fn from(err: crate::operation::set_instance_health::SetInstanceHealthError) -> Self {
1839        match err {
1840            crate::operation::set_instance_health::SetInstanceHealthError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
1841            crate::operation::set_instance_health::SetInstanceHealthError::Unhandled(inner) => Error::Unhandled(inner),
1842        }
1843    }
1844}
1845impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_instance_protection::SetInstanceProtectionError, R>> for Error
1846where
1847    R: Send + Sync + std::fmt::Debug + 'static,
1848{
1849    fn from(
1850        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_instance_protection::SetInstanceProtectionError, R>,
1851    ) -> Self {
1852        match err {
1853            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1854            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1855                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1856                source: err.into(),
1857            }),
1858        }
1859    }
1860}
1861impl From<crate::operation::set_instance_protection::SetInstanceProtectionError> for Error {
1862    fn from(err: crate::operation::set_instance_protection::SetInstanceProtectionError) -> Self {
1863        match err {
1864            crate::operation::set_instance_protection::SetInstanceProtectionError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
1865            crate::operation::set_instance_protection::SetInstanceProtectionError::ResourceContentionFault(inner) => {
1866                Error::ResourceContentionFault(inner)
1867            }
1868            crate::operation::set_instance_protection::SetInstanceProtectionError::Unhandled(inner) => Error::Unhandled(inner),
1869        }
1870    }
1871}
1872impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_instance_refresh::StartInstanceRefreshError, R>> for Error
1873where
1874    R: Send + Sync + std::fmt::Debug + 'static,
1875{
1876    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_instance_refresh::StartInstanceRefreshError, R>) -> Self {
1877        match err {
1878            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1879            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1880                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1881                source: err.into(),
1882            }),
1883        }
1884    }
1885}
1886impl From<crate::operation::start_instance_refresh::StartInstanceRefreshError> for Error {
1887    fn from(err: crate::operation::start_instance_refresh::StartInstanceRefreshError) -> Self {
1888        match err {
1889            crate::operation::start_instance_refresh::StartInstanceRefreshError::InstanceRefreshInProgressFault(inner) => {
1890                Error::InstanceRefreshInProgressFault(inner)
1891            }
1892            crate::operation::start_instance_refresh::StartInstanceRefreshError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
1893            crate::operation::start_instance_refresh::StartInstanceRefreshError::ResourceContentionFault(inner) => {
1894                Error::ResourceContentionFault(inner)
1895            }
1896            crate::operation::start_instance_refresh::StartInstanceRefreshError::Unhandled(inner) => Error::Unhandled(inner),
1897        }
1898    }
1899}
1900impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::suspend_processes::SuspendProcessesError, R>> for Error
1901where
1902    R: Send + Sync + std::fmt::Debug + 'static,
1903{
1904    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::suspend_processes::SuspendProcessesError, R>) -> Self {
1905        match err {
1906            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1907            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1908                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1909                source: err.into(),
1910            }),
1911        }
1912    }
1913}
1914impl From<crate::operation::suspend_processes::SuspendProcessesError> for Error {
1915    fn from(err: crate::operation::suspend_processes::SuspendProcessesError) -> Self {
1916        match err {
1917            crate::operation::suspend_processes::SuspendProcessesError::ResourceContentionFault(inner) => Error::ResourceContentionFault(inner),
1918            crate::operation::suspend_processes::SuspendProcessesError::ResourceInUseFault(inner) => Error::ResourceInUseFault(inner),
1919            crate::operation::suspend_processes::SuspendProcessesError::Unhandled(inner) => Error::Unhandled(inner),
1920        }
1921    }
1922}
1923impl<R>
1924    From<
1925        ::aws_smithy_runtime_api::client::result::SdkError<
1926            crate::operation::terminate_instance_in_auto_scaling_group::TerminateInstanceInAutoScalingGroupError,
1927            R,
1928        >,
1929    > for Error
1930where
1931    R: Send + Sync + std::fmt::Debug + 'static,
1932{
1933    fn from(
1934        err: ::aws_smithy_runtime_api::client::result::SdkError<
1935            crate::operation::terminate_instance_in_auto_scaling_group::TerminateInstanceInAutoScalingGroupError,
1936            R,
1937        >,
1938    ) -> Self {
1939        match err {
1940            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1941            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1942                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1943                source: err.into(),
1944            }),
1945        }
1946    }
1947}
1948impl From<crate::operation::terminate_instance_in_auto_scaling_group::TerminateInstanceInAutoScalingGroupError> for Error {
1949    fn from(err: crate::operation::terminate_instance_in_auto_scaling_group::TerminateInstanceInAutoScalingGroupError) -> Self {
1950        match err {
1951            crate::operation::terminate_instance_in_auto_scaling_group::TerminateInstanceInAutoScalingGroupError::ResourceContentionFault(inner) => {
1952                Error::ResourceContentionFault(inner)
1953            }
1954            crate::operation::terminate_instance_in_auto_scaling_group::TerminateInstanceInAutoScalingGroupError::ScalingActivityInProgressFault(
1955                inner,
1956            ) => Error::ScalingActivityInProgressFault(inner),
1957            crate::operation::terminate_instance_in_auto_scaling_group::TerminateInstanceInAutoScalingGroupError::Unhandled(inner) => {
1958                Error::Unhandled(inner)
1959            }
1960        }
1961    }
1962}
1963impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_auto_scaling_group::UpdateAutoScalingGroupError, R>>
1964    for Error
1965where
1966    R: Send + Sync + std::fmt::Debug + 'static,
1967{
1968    fn from(
1969        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_auto_scaling_group::UpdateAutoScalingGroupError, R>,
1970    ) -> Self {
1971        match err {
1972            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1973            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1974                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1975                source: err.into(),
1976            }),
1977        }
1978    }
1979}
1980impl From<crate::operation::update_auto_scaling_group::UpdateAutoScalingGroupError> for Error {
1981    fn from(err: crate::operation::update_auto_scaling_group::UpdateAutoScalingGroupError) -> Self {
1982        match err {
1983            crate::operation::update_auto_scaling_group::UpdateAutoScalingGroupError::ResourceContentionFault(inner) => {
1984                Error::ResourceContentionFault(inner)
1985            }
1986            crate::operation::update_auto_scaling_group::UpdateAutoScalingGroupError::ScalingActivityInProgressFault(inner) => {
1987                Error::ScalingActivityInProgressFault(inner)
1988            }
1989            crate::operation::update_auto_scaling_group::UpdateAutoScalingGroupError::ServiceLinkedRoleFailure(inner) => {
1990                Error::ServiceLinkedRoleFailure(inner)
1991            }
1992            crate::operation::update_auto_scaling_group::UpdateAutoScalingGroupError::Unhandled(inner) => Error::Unhandled(inner),
1993        }
1994    }
1995}
1996impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
1997where
1998    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
1999    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
2000{
2001    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
2002        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2003            meta: ::std::default::Default::default(),
2004            source: err.into(),
2005        })
2006    }
2007}
2008impl ::std::error::Error for Error {
2009    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2010        match self {
2011            Error::ActiveInstanceRefreshNotFoundFault(inner) => inner.source(),
2012            Error::AlreadyExistsFault(inner) => inner.source(),
2013            Error::IdempotentParameterMismatchError(inner) => inner.source(),
2014            Error::InstanceRefreshInProgressFault(inner) => inner.source(),
2015            Error::InvalidNextToken(inner) => inner.source(),
2016            Error::IrreversibleInstanceRefreshFault(inner) => inner.source(),
2017            Error::LimitExceededFault(inner) => inner.source(),
2018            Error::ResourceContentionFault(inner) => inner.source(),
2019            Error::ResourceInUseFault(inner) => inner.source(),
2020            Error::ScalingActivityInProgressFault(inner) => inner.source(),
2021            Error::ServiceLinkedRoleFailure(inner) => inner.source(),
2022            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2023        }
2024    }
2025}
2026impl ::aws_types::request_id::RequestId for Error {
2027    fn request_id(&self) -> Option<&str> {
2028        match self {
2029            Self::ActiveInstanceRefreshNotFoundFault(e) => e.request_id(),
2030            Self::AlreadyExistsFault(e) => e.request_id(),
2031            Self::IdempotentParameterMismatchError(e) => e.request_id(),
2032            Self::InstanceRefreshInProgressFault(e) => e.request_id(),
2033            Self::InvalidNextToken(e) => e.request_id(),
2034            Self::IrreversibleInstanceRefreshFault(e) => e.request_id(),
2035            Self::LimitExceededFault(e) => e.request_id(),
2036            Self::ResourceContentionFault(e) => e.request_id(),
2037            Self::ResourceInUseFault(e) => e.request_id(),
2038            Self::ScalingActivityInProgressFault(e) => e.request_id(),
2039            Self::ServiceLinkedRoleFailure(e) => e.request_id(),
2040            Self::Unhandled(e) => e.meta.request_id(),
2041        }
2042    }
2043}