aws_sdk_ecs/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>You don't have authorization to perform the requested action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>You can apply up to 10 custom attributes for each resource. You can view the attributes of a resource with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListAttributes.html">ListAttributes</a>. You can remove existing attributes on a resource with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteAttributes.html">DeleteAttributes</a>.</p>
9    AttributeLimitExceededException(crate::types::error::AttributeLimitExceededException),
10    /// <p>Your Amazon Web Services account was blocked. For more information, contact <a href="http://aws.amazon.com/contact-us/"> Amazon Web Services Support</a>.</p>
11    BlockedException(crate::types::error::BlockedException),
12    /// <p>These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.</p>
13    ClientException(crate::types::error::ClientException),
14    /// <p>The cluster contains one or more capacity providers that prevent the requested operation. This exception occurs when you try to delete a cluster that still has active capacity providers, including Amazon ECS Managed Instances capacity providers. You must first delete all capacity providers from the cluster before you can delete the cluster itself.</p>
15    ClusterContainsCapacityProviderException(crate::types::error::ClusterContainsCapacityProviderException),
16    /// <p>You can't delete a cluster that has registered container instances. First, deregister the container instances before you can delete the cluster. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeregisterContainerInstance.html">DeregisterContainerInstance</a>.</p>
17    ClusterContainsContainerInstancesException(crate::types::error::ClusterContainsContainerInstancesException),
18    /// <p>You can't delete a cluster that contains services. First, update the service to reduce its desired task count to 0, and then delete the service. For more information, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_UpdateService.html">UpdateService</a> and <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DeleteService.html">DeleteService</a>.</p>
19    ClusterContainsServicesException(crate::types::error::ClusterContainsServicesException),
20    /// <p>You can't delete a cluster that has active tasks.</p>
21    ClusterContainsTasksException(crate::types::error::ClusterContainsTasksException),
22    /// <p>The specified cluster wasn't found. You can view your available clusters with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListClusters.html">ListClusters</a>. Amazon ECS clusters are Region specific.</p>
23    ClusterNotFoundException(crate::types::error::ClusterNotFoundException),
24    /// <p>The request could not be processed because of conflict in the current state of the resource.</p>
25    ConflictException(crate::types::error::ConflictException),
26    /// <p>The specified parameter isn't valid. Review the available parameters for the API request.</p>
27    /// <p>For more information about service event errors, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-event-messages-list.html">Amazon ECS service event messages</a>.</p>
28    InvalidParameterException(crate::types::error::InvalidParameterException),
29    /// <p>The limit for the resource was exceeded.</p>
30    LimitExceededException(crate::types::error::LimitExceededException),
31    /// <p>Amazon ECS can't determine the current version of the Amazon ECS container agent on the container instance and doesn't have enough information to proceed with an update. This could be because the agent running on the container instance is a previous or custom version that doesn't use our version information.</p>
32    MissingVersionException(crate::types::error::MissingVersionException),
33    /// <p>The specified namespace wasn't found.</p>
34    NamespaceNotFoundException(crate::types::error::NamespaceNotFoundException),
35    /// <p>There's no update available for this Amazon ECS container agent. This might be because the agent is already running the latest version or because it's so old that there's no update path to the current version.</p>
36    NoUpdateAvailableException(crate::types::error::NoUpdateAvailableException),
37    /// <p>The specified platform version doesn't satisfy the required capabilities of the task definition.</p>
38    PlatformTaskDefinitionIncompatibilityException(crate::types::error::PlatformTaskDefinitionIncompatibilityException),
39    /// <p>The specified platform version doesn't exist.</p>
40    PlatformUnknownException(crate::types::error::PlatformUnknownException),
41    /// <p>The specified resource is in-use and can't be removed.</p>
42    ResourceInUseException(crate::types::error::ResourceInUseException),
43    /// <p>The specified resource wasn't found.</p>
44    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
45    /// <p>These errors are usually caused by a server issue.</p>
46    ServerException(crate::types::error::ServerException),
47    /// <p>The service deploy ARN that you specified in the <code>StopServiceDeployment</code> doesn't exist. You can use <code>ListServiceDeployments</code> to retrieve the service deployment ARNs.</p>
48    ServiceDeploymentNotFoundException(crate::types::error::ServiceDeploymentNotFoundException),
49    /// <p>The specified service isn't active. You can't update a service that's inactive. If you have previously deleted a service, you can re-create it with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html">CreateService</a>.</p>
50    ServiceNotActiveException(crate::types::error::ServiceNotActiveException),
51    /// <p>The specified service wasn't found. You can view your available services with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListServices.html">ListServices</a>. Amazon ECS services are cluster specific and Region specific.</p>
52    ServiceNotFoundException(crate::types::error::ServiceNotFoundException),
53    /// <p>The execute command cannot run. This error can be caused by any of the following configuration issues:</p>
54    /// <ul>
55    /// <li>
56    /// <p>Incorrect IAM permissions</p></li>
57    /// <li>
58    /// <p>The SSM agent is not installed or is not running</p></li>
59    /// <li>
60    /// <p>There is an interface Amazon VPC endpoint for Amazon ECS, but there is not one for Systems Manager Session Manager</p></li>
61    /// </ul>
62    /// <p>For information about how to troubleshoot the issues, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.html">Troubleshooting issues with ECS Exec</a> in the <i>Amazon Elastic Container Service Developer Guide</i>.</p>
63    TargetNotConnectedException(crate::types::error::TargetNotConnectedException),
64    /// <p>The specified target wasn't found. You can view your available container instances with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ListContainerInstances.html">ListContainerInstances</a>. Amazon ECS container instances are cluster-specific and Region-specific.</p>
65    TargetNotFoundException(crate::types::error::TargetNotFoundException),
66    /// <p>The specified task set wasn't found. You can view your available task sets with <a href="https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTaskSets.html">DescribeTaskSets</a>. Task sets are specific to each cluster, service and Region.</p>
67    TaskSetNotFoundException(crate::types::error::TaskSetNotFoundException),
68    /// <p>The specified task isn't supported in this Region.</p>
69    UnsupportedFeatureException(crate::types::error::UnsupportedFeatureException),
70    /// <p>There's already a current Amazon ECS container agent update in progress on the container instance that's specified. If the container agent becomes disconnected while it's in a transitional stage, such as <code>PENDING</code> or <code>STAGING</code>, the update process can get stuck in that state. However, when the agent reconnects, it resumes where it stopped previously.</p>
71    UpdateInProgressException(crate::types::error::UpdateInProgressException),
72    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
73    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
74    variable wildcard pattern and check `.code()`:
75     \
76    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
77     \
78    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
79    Unhandled(crate::error::sealed_unhandled::Unhandled),
80}
81impl ::std::fmt::Display for Error {
82    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
83        match self {
84            Error::AccessDeniedException(inner) => inner.fmt(f),
85            Error::AttributeLimitExceededException(inner) => inner.fmt(f),
86            Error::BlockedException(inner) => inner.fmt(f),
87            Error::ClientException(inner) => inner.fmt(f),
88            Error::ClusterContainsCapacityProviderException(inner) => inner.fmt(f),
89            Error::ClusterContainsContainerInstancesException(inner) => inner.fmt(f),
90            Error::ClusterContainsServicesException(inner) => inner.fmt(f),
91            Error::ClusterContainsTasksException(inner) => inner.fmt(f),
92            Error::ClusterNotFoundException(inner) => inner.fmt(f),
93            Error::ConflictException(inner) => inner.fmt(f),
94            Error::InvalidParameterException(inner) => inner.fmt(f),
95            Error::LimitExceededException(inner) => inner.fmt(f),
96            Error::MissingVersionException(inner) => inner.fmt(f),
97            Error::NamespaceNotFoundException(inner) => inner.fmt(f),
98            Error::NoUpdateAvailableException(inner) => inner.fmt(f),
99            Error::PlatformTaskDefinitionIncompatibilityException(inner) => inner.fmt(f),
100            Error::PlatformUnknownException(inner) => inner.fmt(f),
101            Error::ResourceInUseException(inner) => inner.fmt(f),
102            Error::ResourceNotFoundException(inner) => inner.fmt(f),
103            Error::ServerException(inner) => inner.fmt(f),
104            Error::ServiceDeploymentNotFoundException(inner) => inner.fmt(f),
105            Error::ServiceNotActiveException(inner) => inner.fmt(f),
106            Error::ServiceNotFoundException(inner) => inner.fmt(f),
107            Error::TargetNotConnectedException(inner) => inner.fmt(f),
108            Error::TargetNotFoundException(inner) => inner.fmt(f),
109            Error::TaskSetNotFoundException(inner) => inner.fmt(f),
110            Error::UnsupportedFeatureException(inner) => inner.fmt(f),
111            Error::UpdateInProgressException(inner) => inner.fmt(f),
112            Error::Unhandled(_) => {
113                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
114                    write!(f, "unhandled error ({code})")
115                } else {
116                    f.write_str("unhandled error")
117                }
118            }
119        }
120    }
121}
122impl From<::aws_smithy_types::error::operation::BuildError> for Error {
123    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
124        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
125            source: value.into(),
126            meta: ::std::default::Default::default(),
127        })
128    }
129}
130impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
131    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
132        match self {
133            Self::AccessDeniedException(inner) => inner.meta(),
134            Self::AttributeLimitExceededException(inner) => inner.meta(),
135            Self::BlockedException(inner) => inner.meta(),
136            Self::ClientException(inner) => inner.meta(),
137            Self::ClusterContainsCapacityProviderException(inner) => inner.meta(),
138            Self::ClusterContainsContainerInstancesException(inner) => inner.meta(),
139            Self::ClusterContainsServicesException(inner) => inner.meta(),
140            Self::ClusterContainsTasksException(inner) => inner.meta(),
141            Self::ClusterNotFoundException(inner) => inner.meta(),
142            Self::ConflictException(inner) => inner.meta(),
143            Self::InvalidParameterException(inner) => inner.meta(),
144            Self::LimitExceededException(inner) => inner.meta(),
145            Self::MissingVersionException(inner) => inner.meta(),
146            Self::NamespaceNotFoundException(inner) => inner.meta(),
147            Self::NoUpdateAvailableException(inner) => inner.meta(),
148            Self::PlatformTaskDefinitionIncompatibilityException(inner) => inner.meta(),
149            Self::PlatformUnknownException(inner) => inner.meta(),
150            Self::ResourceInUseException(inner) => inner.meta(),
151            Self::ResourceNotFoundException(inner) => inner.meta(),
152            Self::ServerException(inner) => inner.meta(),
153            Self::ServiceDeploymentNotFoundException(inner) => inner.meta(),
154            Self::ServiceNotActiveException(inner) => inner.meta(),
155            Self::ServiceNotFoundException(inner) => inner.meta(),
156            Self::TargetNotConnectedException(inner) => inner.meta(),
157            Self::TargetNotFoundException(inner) => inner.meta(),
158            Self::TaskSetNotFoundException(inner) => inner.meta(),
159            Self::UnsupportedFeatureException(inner) => inner.meta(),
160            Self::UpdateInProgressException(inner) => inner.meta(),
161            Self::Unhandled(inner) => &inner.meta,
162        }
163    }
164}
165impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_capacity_provider::CreateCapacityProviderError, R>> for Error
166where
167    R: Send + Sync + std::fmt::Debug + 'static,
168{
169    fn from(
170        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_capacity_provider::CreateCapacityProviderError, R>,
171    ) -> Self {
172        match err {
173            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
174            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
175                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
176                source: err.into(),
177            }),
178        }
179    }
180}
181impl From<crate::operation::create_capacity_provider::CreateCapacityProviderError> for Error {
182    fn from(err: crate::operation::create_capacity_provider::CreateCapacityProviderError) -> Self {
183        match err {
184            crate::operation::create_capacity_provider::CreateCapacityProviderError::ClientException(inner) => Error::ClientException(inner),
185            crate::operation::create_capacity_provider::CreateCapacityProviderError::ClusterNotFoundException(inner) => {
186                Error::ClusterNotFoundException(inner)
187            }
188            crate::operation::create_capacity_provider::CreateCapacityProviderError::InvalidParameterException(inner) => {
189                Error::InvalidParameterException(inner)
190            }
191            crate::operation::create_capacity_provider::CreateCapacityProviderError::LimitExceededException(inner) => {
192                Error::LimitExceededException(inner)
193            }
194            crate::operation::create_capacity_provider::CreateCapacityProviderError::ServerException(inner) => Error::ServerException(inner),
195            crate::operation::create_capacity_provider::CreateCapacityProviderError::UnsupportedFeatureException(inner) => {
196                Error::UnsupportedFeatureException(inner)
197            }
198            crate::operation::create_capacity_provider::CreateCapacityProviderError::UpdateInProgressException(inner) => {
199                Error::UpdateInProgressException(inner)
200            }
201            crate::operation::create_capacity_provider::CreateCapacityProviderError::Unhandled(inner) => Error::Unhandled(inner),
202        }
203    }
204}
205impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster::CreateClusterError, R>> for Error
206where
207    R: Send + Sync + std::fmt::Debug + 'static,
208{
209    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster::CreateClusterError, R>) -> Self {
210        match err {
211            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
212            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
213                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
214                source: err.into(),
215            }),
216        }
217    }
218}
219impl From<crate::operation::create_cluster::CreateClusterError> for Error {
220    fn from(err: crate::operation::create_cluster::CreateClusterError) -> Self {
221        match err {
222            crate::operation::create_cluster::CreateClusterError::ClientException(inner) => Error::ClientException(inner),
223            crate::operation::create_cluster::CreateClusterError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
224            crate::operation::create_cluster::CreateClusterError::NamespaceNotFoundException(inner) => Error::NamespaceNotFoundException(inner),
225            crate::operation::create_cluster::CreateClusterError::ServerException(inner) => Error::ServerException(inner),
226            crate::operation::create_cluster::CreateClusterError::Unhandled(inner) => Error::Unhandled(inner),
227        }
228    }
229}
230impl<R>
231    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_express_gateway_service::CreateExpressGatewayServiceError, R>>
232    for Error
233where
234    R: Send + Sync + std::fmt::Debug + 'static,
235{
236    fn from(
237        err: ::aws_smithy_runtime_api::client::result::SdkError<
238            crate::operation::create_express_gateway_service::CreateExpressGatewayServiceError,
239            R,
240        >,
241    ) -> Self {
242        match err {
243            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
244            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
245                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
246                source: err.into(),
247            }),
248        }
249    }
250}
251impl From<crate::operation::create_express_gateway_service::CreateExpressGatewayServiceError> for Error {
252    fn from(err: crate::operation::create_express_gateway_service::CreateExpressGatewayServiceError) -> Self {
253        match err {
254            crate::operation::create_express_gateway_service::CreateExpressGatewayServiceError::AccessDeniedException(inner) => {
255                Error::AccessDeniedException(inner)
256            }
257            crate::operation::create_express_gateway_service::CreateExpressGatewayServiceError::ClientException(inner) => {
258                Error::ClientException(inner)
259            }
260            crate::operation::create_express_gateway_service::CreateExpressGatewayServiceError::ClusterNotFoundException(inner) => {
261                Error::ClusterNotFoundException(inner)
262            }
263            crate::operation::create_express_gateway_service::CreateExpressGatewayServiceError::InvalidParameterException(inner) => {
264                Error::InvalidParameterException(inner)
265            }
266            crate::operation::create_express_gateway_service::CreateExpressGatewayServiceError::PlatformTaskDefinitionIncompatibilityException(
267                inner,
268            ) => Error::PlatformTaskDefinitionIncompatibilityException(inner),
269            crate::operation::create_express_gateway_service::CreateExpressGatewayServiceError::PlatformUnknownException(inner) => {
270                Error::PlatformUnknownException(inner)
271            }
272            crate::operation::create_express_gateway_service::CreateExpressGatewayServiceError::ServerException(inner) => {
273                Error::ServerException(inner)
274            }
275            crate::operation::create_express_gateway_service::CreateExpressGatewayServiceError::UnsupportedFeatureException(inner) => {
276                Error::UnsupportedFeatureException(inner)
277            }
278            crate::operation::create_express_gateway_service::CreateExpressGatewayServiceError::Unhandled(inner) => Error::Unhandled(inner),
279        }
280    }
281}
282impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service::CreateServiceError, R>> for Error
283where
284    R: Send + Sync + std::fmt::Debug + 'static,
285{
286    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_service::CreateServiceError, R>) -> Self {
287        match err {
288            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
289            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
290                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
291                source: err.into(),
292            }),
293        }
294    }
295}
296impl From<crate::operation::create_service::CreateServiceError> for Error {
297    fn from(err: crate::operation::create_service::CreateServiceError) -> Self {
298        match err {
299            crate::operation::create_service::CreateServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
300            crate::operation::create_service::CreateServiceError::ClientException(inner) => Error::ClientException(inner),
301            crate::operation::create_service::CreateServiceError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
302            crate::operation::create_service::CreateServiceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
303            crate::operation::create_service::CreateServiceError::NamespaceNotFoundException(inner) => Error::NamespaceNotFoundException(inner),
304            crate::operation::create_service::CreateServiceError::PlatformTaskDefinitionIncompatibilityException(inner) => {
305                Error::PlatformTaskDefinitionIncompatibilityException(inner)
306            }
307            crate::operation::create_service::CreateServiceError::PlatformUnknownException(inner) => Error::PlatformUnknownException(inner),
308            crate::operation::create_service::CreateServiceError::ServerException(inner) => Error::ServerException(inner),
309            crate::operation::create_service::CreateServiceError::UnsupportedFeatureException(inner) => Error::UnsupportedFeatureException(inner),
310            crate::operation::create_service::CreateServiceError::Unhandled(inner) => Error::Unhandled(inner),
311        }
312    }
313}
314impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_task_set::CreateTaskSetError, R>> for Error
315where
316    R: Send + Sync + std::fmt::Debug + 'static,
317{
318    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_task_set::CreateTaskSetError, R>) -> 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::create_task_set::CreateTaskSetError> for Error {
329    fn from(err: crate::operation::create_task_set::CreateTaskSetError) -> Self {
330        match err {
331            crate::operation::create_task_set::CreateTaskSetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
332            crate::operation::create_task_set::CreateTaskSetError::ClientException(inner) => Error::ClientException(inner),
333            crate::operation::create_task_set::CreateTaskSetError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
334            crate::operation::create_task_set::CreateTaskSetError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
335            crate::operation::create_task_set::CreateTaskSetError::NamespaceNotFoundException(inner) => Error::NamespaceNotFoundException(inner),
336            crate::operation::create_task_set::CreateTaskSetError::PlatformTaskDefinitionIncompatibilityException(inner) => {
337                Error::PlatformTaskDefinitionIncompatibilityException(inner)
338            }
339            crate::operation::create_task_set::CreateTaskSetError::PlatformUnknownException(inner) => Error::PlatformUnknownException(inner),
340            crate::operation::create_task_set::CreateTaskSetError::ServerException(inner) => Error::ServerException(inner),
341            crate::operation::create_task_set::CreateTaskSetError::ServiceNotActiveException(inner) => Error::ServiceNotActiveException(inner),
342            crate::operation::create_task_set::CreateTaskSetError::ServiceNotFoundException(inner) => Error::ServiceNotFoundException(inner),
343            crate::operation::create_task_set::CreateTaskSetError::UnsupportedFeatureException(inner) => Error::UnsupportedFeatureException(inner),
344            crate::operation::create_task_set::CreateTaskSetError::Unhandled(inner) => Error::Unhandled(inner),
345        }
346    }
347}
348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_account_setting::DeleteAccountSettingError, R>> for Error
349where
350    R: Send + Sync + std::fmt::Debug + 'static,
351{
352    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_account_setting::DeleteAccountSettingError, R>) -> Self {
353        match err {
354            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
355            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
356                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
357                source: err.into(),
358            }),
359        }
360    }
361}
362impl From<crate::operation::delete_account_setting::DeleteAccountSettingError> for Error {
363    fn from(err: crate::operation::delete_account_setting::DeleteAccountSettingError) -> Self {
364        match err {
365            crate::operation::delete_account_setting::DeleteAccountSettingError::ClientException(inner) => Error::ClientException(inner),
366            crate::operation::delete_account_setting::DeleteAccountSettingError::InvalidParameterException(inner) => {
367                Error::InvalidParameterException(inner)
368            }
369            crate::operation::delete_account_setting::DeleteAccountSettingError::ServerException(inner) => Error::ServerException(inner),
370            crate::operation::delete_account_setting::DeleteAccountSettingError::Unhandled(inner) => Error::Unhandled(inner),
371        }
372    }
373}
374impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_attributes::DeleteAttributesError, R>> for Error
375where
376    R: Send + Sync + std::fmt::Debug + 'static,
377{
378    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_attributes::DeleteAttributesError, R>) -> Self {
379        match err {
380            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
381            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
382                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
383                source: err.into(),
384            }),
385        }
386    }
387}
388impl From<crate::operation::delete_attributes::DeleteAttributesError> for Error {
389    fn from(err: crate::operation::delete_attributes::DeleteAttributesError) -> Self {
390        match err {
391            crate::operation::delete_attributes::DeleteAttributesError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
392            crate::operation::delete_attributes::DeleteAttributesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
393            crate::operation::delete_attributes::DeleteAttributesError::TargetNotFoundException(inner) => Error::TargetNotFoundException(inner),
394            crate::operation::delete_attributes::DeleteAttributesError::Unhandled(inner) => Error::Unhandled(inner),
395        }
396    }
397}
398impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_capacity_provider::DeleteCapacityProviderError, R>> for Error
399where
400    R: Send + Sync + std::fmt::Debug + 'static,
401{
402    fn from(
403        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_capacity_provider::DeleteCapacityProviderError, R>,
404    ) -> Self {
405        match err {
406            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
407            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
408                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
409                source: err.into(),
410            }),
411        }
412    }
413}
414impl From<crate::operation::delete_capacity_provider::DeleteCapacityProviderError> for Error {
415    fn from(err: crate::operation::delete_capacity_provider::DeleteCapacityProviderError) -> Self {
416        match err {
417            crate::operation::delete_capacity_provider::DeleteCapacityProviderError::ClientException(inner) => Error::ClientException(inner),
418            crate::operation::delete_capacity_provider::DeleteCapacityProviderError::ClusterNotFoundException(inner) => {
419                Error::ClusterNotFoundException(inner)
420            }
421            crate::operation::delete_capacity_provider::DeleteCapacityProviderError::InvalidParameterException(inner) => {
422                Error::InvalidParameterException(inner)
423            }
424            crate::operation::delete_capacity_provider::DeleteCapacityProviderError::ServerException(inner) => Error::ServerException(inner),
425            crate::operation::delete_capacity_provider::DeleteCapacityProviderError::UnsupportedFeatureException(inner) => {
426                Error::UnsupportedFeatureException(inner)
427            }
428            crate::operation::delete_capacity_provider::DeleteCapacityProviderError::Unhandled(inner) => Error::Unhandled(inner),
429        }
430    }
431}
432impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster::DeleteClusterError, R>> for Error
433where
434    R: Send + Sync + std::fmt::Debug + 'static,
435{
436    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster::DeleteClusterError, R>) -> Self {
437        match err {
438            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
439            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
440                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
441                source: err.into(),
442            }),
443        }
444    }
445}
446impl From<crate::operation::delete_cluster::DeleteClusterError> for Error {
447    fn from(err: crate::operation::delete_cluster::DeleteClusterError) -> Self {
448        match err {
449            crate::operation::delete_cluster::DeleteClusterError::ClientException(inner) => Error::ClientException(inner),
450            crate::operation::delete_cluster::DeleteClusterError::ClusterContainsCapacityProviderException(inner) => {
451                Error::ClusterContainsCapacityProviderException(inner)
452            }
453            crate::operation::delete_cluster::DeleteClusterError::ClusterContainsContainerInstancesException(inner) => {
454                Error::ClusterContainsContainerInstancesException(inner)
455            }
456            crate::operation::delete_cluster::DeleteClusterError::ClusterContainsServicesException(inner) => {
457                Error::ClusterContainsServicesException(inner)
458            }
459            crate::operation::delete_cluster::DeleteClusterError::ClusterContainsTasksException(inner) => Error::ClusterContainsTasksException(inner),
460            crate::operation::delete_cluster::DeleteClusterError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
461            crate::operation::delete_cluster::DeleteClusterError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
462            crate::operation::delete_cluster::DeleteClusterError::ServerException(inner) => Error::ServerException(inner),
463            crate::operation::delete_cluster::DeleteClusterError::UpdateInProgressException(inner) => Error::UpdateInProgressException(inner),
464            crate::operation::delete_cluster::DeleteClusterError::Unhandled(inner) => Error::Unhandled(inner),
465        }
466    }
467}
468impl<R>
469    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_express_gateway_service::DeleteExpressGatewayServiceError, R>>
470    for Error
471where
472    R: Send + Sync + std::fmt::Debug + 'static,
473{
474    fn from(
475        err: ::aws_smithy_runtime_api::client::result::SdkError<
476            crate::operation::delete_express_gateway_service::DeleteExpressGatewayServiceError,
477            R,
478        >,
479    ) -> Self {
480        match err {
481            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
482            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
483                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
484                source: err.into(),
485            }),
486        }
487    }
488}
489impl From<crate::operation::delete_express_gateway_service::DeleteExpressGatewayServiceError> for Error {
490    fn from(err: crate::operation::delete_express_gateway_service::DeleteExpressGatewayServiceError) -> Self {
491        match err {
492            crate::operation::delete_express_gateway_service::DeleteExpressGatewayServiceError::AccessDeniedException(inner) => {
493                Error::AccessDeniedException(inner)
494            }
495            crate::operation::delete_express_gateway_service::DeleteExpressGatewayServiceError::ClientException(inner) => {
496                Error::ClientException(inner)
497            }
498            crate::operation::delete_express_gateway_service::DeleteExpressGatewayServiceError::ClusterNotFoundException(inner) => {
499                Error::ClusterNotFoundException(inner)
500            }
501            crate::operation::delete_express_gateway_service::DeleteExpressGatewayServiceError::InvalidParameterException(inner) => {
502                Error::InvalidParameterException(inner)
503            }
504            crate::operation::delete_express_gateway_service::DeleteExpressGatewayServiceError::ServerException(inner) => {
505                Error::ServerException(inner)
506            }
507            crate::operation::delete_express_gateway_service::DeleteExpressGatewayServiceError::ServiceNotActiveException(inner) => {
508                Error::ServiceNotActiveException(inner)
509            }
510            crate::operation::delete_express_gateway_service::DeleteExpressGatewayServiceError::ServiceNotFoundException(inner) => {
511                Error::ServiceNotFoundException(inner)
512            }
513            crate::operation::delete_express_gateway_service::DeleteExpressGatewayServiceError::UnsupportedFeatureException(inner) => {
514                Error::UnsupportedFeatureException(inner)
515            }
516            crate::operation::delete_express_gateway_service::DeleteExpressGatewayServiceError::Unhandled(inner) => Error::Unhandled(inner),
517        }
518    }
519}
520impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service::DeleteServiceError, R>> for Error
521where
522    R: Send + Sync + std::fmt::Debug + 'static,
523{
524    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_service::DeleteServiceError, R>) -> Self {
525        match err {
526            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
527            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
528                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
529                source: err.into(),
530            }),
531        }
532    }
533}
534impl From<crate::operation::delete_service::DeleteServiceError> for Error {
535    fn from(err: crate::operation::delete_service::DeleteServiceError) -> Self {
536        match err {
537            crate::operation::delete_service::DeleteServiceError::ClientException(inner) => Error::ClientException(inner),
538            crate::operation::delete_service::DeleteServiceError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
539            crate::operation::delete_service::DeleteServiceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
540            crate::operation::delete_service::DeleteServiceError::ServerException(inner) => Error::ServerException(inner),
541            crate::operation::delete_service::DeleteServiceError::ServiceNotFoundException(inner) => Error::ServiceNotFoundException(inner),
542            crate::operation::delete_service::DeleteServiceError::Unhandled(inner) => Error::Unhandled(inner),
543        }
544    }
545}
546impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_task_definitions::DeleteTaskDefinitionsError, R>> for Error
547where
548    R: Send + Sync + std::fmt::Debug + 'static,
549{
550    fn from(
551        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_task_definitions::DeleteTaskDefinitionsError, R>,
552    ) -> 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_task_definitions::DeleteTaskDefinitionsError> for Error {
563    fn from(err: crate::operation::delete_task_definitions::DeleteTaskDefinitionsError) -> Self {
564        match err {
565            crate::operation::delete_task_definitions::DeleteTaskDefinitionsError::AccessDeniedException(inner) => {
566                Error::AccessDeniedException(inner)
567            }
568            crate::operation::delete_task_definitions::DeleteTaskDefinitionsError::ClientException(inner) => Error::ClientException(inner),
569            crate::operation::delete_task_definitions::DeleteTaskDefinitionsError::InvalidParameterException(inner) => {
570                Error::InvalidParameterException(inner)
571            }
572            crate::operation::delete_task_definitions::DeleteTaskDefinitionsError::ServerException(inner) => Error::ServerException(inner),
573            crate::operation::delete_task_definitions::DeleteTaskDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
574        }
575    }
576}
577impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_task_set::DeleteTaskSetError, R>> for Error
578where
579    R: Send + Sync + std::fmt::Debug + 'static,
580{
581    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_task_set::DeleteTaskSetError, R>) -> Self {
582        match err {
583            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
584            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
585                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
586                source: err.into(),
587            }),
588        }
589    }
590}
591impl From<crate::operation::delete_task_set::DeleteTaskSetError> for Error {
592    fn from(err: crate::operation::delete_task_set::DeleteTaskSetError) -> Self {
593        match err {
594            crate::operation::delete_task_set::DeleteTaskSetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
595            crate::operation::delete_task_set::DeleteTaskSetError::ClientException(inner) => Error::ClientException(inner),
596            crate::operation::delete_task_set::DeleteTaskSetError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
597            crate::operation::delete_task_set::DeleteTaskSetError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
598            crate::operation::delete_task_set::DeleteTaskSetError::ServerException(inner) => Error::ServerException(inner),
599            crate::operation::delete_task_set::DeleteTaskSetError::ServiceNotActiveException(inner) => Error::ServiceNotActiveException(inner),
600            crate::operation::delete_task_set::DeleteTaskSetError::ServiceNotFoundException(inner) => Error::ServiceNotFoundException(inner),
601            crate::operation::delete_task_set::DeleteTaskSetError::TaskSetNotFoundException(inner) => Error::TaskSetNotFoundException(inner),
602            crate::operation::delete_task_set::DeleteTaskSetError::UnsupportedFeatureException(inner) => Error::UnsupportedFeatureException(inner),
603            crate::operation::delete_task_set::DeleteTaskSetError::Unhandled(inner) => Error::Unhandled(inner),
604        }
605    }
606}
607impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_container_instance::DeregisterContainerInstanceError, R>>
608    for Error
609where
610    R: Send + Sync + std::fmt::Debug + 'static,
611{
612    fn from(
613        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_container_instance::DeregisterContainerInstanceError, R>,
614    ) -> Self {
615        match err {
616            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
617            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
618                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
619                source: err.into(),
620            }),
621        }
622    }
623}
624impl From<crate::operation::deregister_container_instance::DeregisterContainerInstanceError> for Error {
625    fn from(err: crate::operation::deregister_container_instance::DeregisterContainerInstanceError) -> Self {
626        match err {
627            crate::operation::deregister_container_instance::DeregisterContainerInstanceError::ClientException(inner) => {
628                Error::ClientException(inner)
629            }
630            crate::operation::deregister_container_instance::DeregisterContainerInstanceError::ClusterNotFoundException(inner) => {
631                Error::ClusterNotFoundException(inner)
632            }
633            crate::operation::deregister_container_instance::DeregisterContainerInstanceError::InvalidParameterException(inner) => {
634                Error::InvalidParameterException(inner)
635            }
636            crate::operation::deregister_container_instance::DeregisterContainerInstanceError::ServerException(inner) => {
637                Error::ServerException(inner)
638            }
639            crate::operation::deregister_container_instance::DeregisterContainerInstanceError::Unhandled(inner) => Error::Unhandled(inner),
640        }
641    }
642}
643impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_task_definition::DeregisterTaskDefinitionError, R>>
644    for Error
645where
646    R: Send + Sync + std::fmt::Debug + 'static,
647{
648    fn from(
649        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_task_definition::DeregisterTaskDefinitionError, R>,
650    ) -> Self {
651        match err {
652            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
653            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
654                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
655                source: err.into(),
656            }),
657        }
658    }
659}
660impl From<crate::operation::deregister_task_definition::DeregisterTaskDefinitionError> for Error {
661    fn from(err: crate::operation::deregister_task_definition::DeregisterTaskDefinitionError) -> Self {
662        match err {
663            crate::operation::deregister_task_definition::DeregisterTaskDefinitionError::ClientException(inner) => Error::ClientException(inner),
664            crate::operation::deregister_task_definition::DeregisterTaskDefinitionError::InvalidParameterException(inner) => {
665                Error::InvalidParameterException(inner)
666            }
667            crate::operation::deregister_task_definition::DeregisterTaskDefinitionError::ServerException(inner) => Error::ServerException(inner),
668            crate::operation::deregister_task_definition::DeregisterTaskDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
669        }
670    }
671}
672impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_providers::DescribeCapacityProvidersError, R>>
673    for Error
674where
675    R: Send + Sync + std::fmt::Debug + 'static,
676{
677    fn from(
678        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_providers::DescribeCapacityProvidersError, R>,
679    ) -> Self {
680        match err {
681            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
682            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
683                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
684                source: err.into(),
685            }),
686        }
687    }
688}
689impl From<crate::operation::describe_capacity_providers::DescribeCapacityProvidersError> for Error {
690    fn from(err: crate::operation::describe_capacity_providers::DescribeCapacityProvidersError) -> Self {
691        match err {
692            crate::operation::describe_capacity_providers::DescribeCapacityProvidersError::ClientException(inner) => Error::ClientException(inner),
693            crate::operation::describe_capacity_providers::DescribeCapacityProvidersError::ClusterNotFoundException(inner) => {
694                Error::ClusterNotFoundException(inner)
695            }
696            crate::operation::describe_capacity_providers::DescribeCapacityProvidersError::InvalidParameterException(inner) => {
697                Error::InvalidParameterException(inner)
698            }
699            crate::operation::describe_capacity_providers::DescribeCapacityProvidersError::ServerException(inner) => Error::ServerException(inner),
700            crate::operation::describe_capacity_providers::DescribeCapacityProvidersError::UnsupportedFeatureException(inner) => {
701                Error::UnsupportedFeatureException(inner)
702            }
703            crate::operation::describe_capacity_providers::DescribeCapacityProvidersError::Unhandled(inner) => Error::Unhandled(inner),
704        }
705    }
706}
707impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_clusters::DescribeClustersError, R>> for Error
708where
709    R: Send + Sync + std::fmt::Debug + 'static,
710{
711    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_clusters::DescribeClustersError, R>) -> Self {
712        match err {
713            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
714            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
715                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
716                source: err.into(),
717            }),
718        }
719    }
720}
721impl From<crate::operation::describe_clusters::DescribeClustersError> for Error {
722    fn from(err: crate::operation::describe_clusters::DescribeClustersError) -> Self {
723        match err {
724            crate::operation::describe_clusters::DescribeClustersError::ClientException(inner) => Error::ClientException(inner),
725            crate::operation::describe_clusters::DescribeClustersError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
726            crate::operation::describe_clusters::DescribeClustersError::ServerException(inner) => Error::ServerException(inner),
727            crate::operation::describe_clusters::DescribeClustersError::Unhandled(inner) => Error::Unhandled(inner),
728        }
729    }
730}
731impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_container_instances::DescribeContainerInstancesError, R>>
732    for Error
733where
734    R: Send + Sync + std::fmt::Debug + 'static,
735{
736    fn from(
737        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_container_instances::DescribeContainerInstancesError, R>,
738    ) -> Self {
739        match err {
740            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
741            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
742                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
743                source: err.into(),
744            }),
745        }
746    }
747}
748impl From<crate::operation::describe_container_instances::DescribeContainerInstancesError> for Error {
749    fn from(err: crate::operation::describe_container_instances::DescribeContainerInstancesError) -> Self {
750        match err {
751            crate::operation::describe_container_instances::DescribeContainerInstancesError::ClientException(inner) => Error::ClientException(inner),
752            crate::operation::describe_container_instances::DescribeContainerInstancesError::ClusterNotFoundException(inner) => {
753                Error::ClusterNotFoundException(inner)
754            }
755            crate::operation::describe_container_instances::DescribeContainerInstancesError::InvalidParameterException(inner) => {
756                Error::InvalidParameterException(inner)
757            }
758            crate::operation::describe_container_instances::DescribeContainerInstancesError::ServerException(inner) => Error::ServerException(inner),
759            crate::operation::describe_container_instances::DescribeContainerInstancesError::Unhandled(inner) => Error::Unhandled(inner),
760        }
761    }
762}
763impl<R>
764    From<
765        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_express_gateway_service::DescribeExpressGatewayServiceError, R>,
766    > for Error
767where
768    R: Send + Sync + std::fmt::Debug + 'static,
769{
770    fn from(
771        err: ::aws_smithy_runtime_api::client::result::SdkError<
772            crate::operation::describe_express_gateway_service::DescribeExpressGatewayServiceError,
773            R,
774        >,
775    ) -> Self {
776        match err {
777            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
778            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
779                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
780                source: err.into(),
781            }),
782        }
783    }
784}
785impl From<crate::operation::describe_express_gateway_service::DescribeExpressGatewayServiceError> for Error {
786    fn from(err: crate::operation::describe_express_gateway_service::DescribeExpressGatewayServiceError) -> Self {
787        match err {
788            crate::operation::describe_express_gateway_service::DescribeExpressGatewayServiceError::AccessDeniedException(inner) => {
789                Error::AccessDeniedException(inner)
790            }
791            crate::operation::describe_express_gateway_service::DescribeExpressGatewayServiceError::ClientException(inner) => {
792                Error::ClientException(inner)
793            }
794            crate::operation::describe_express_gateway_service::DescribeExpressGatewayServiceError::ClusterNotFoundException(inner) => {
795                Error::ClusterNotFoundException(inner)
796            }
797            crate::operation::describe_express_gateway_service::DescribeExpressGatewayServiceError::InvalidParameterException(inner) => {
798                Error::InvalidParameterException(inner)
799            }
800            crate::operation::describe_express_gateway_service::DescribeExpressGatewayServiceError::ResourceNotFoundException(inner) => {
801                Error::ResourceNotFoundException(inner)
802            }
803            crate::operation::describe_express_gateway_service::DescribeExpressGatewayServiceError::ServerException(inner) => {
804                Error::ServerException(inner)
805            }
806            crate::operation::describe_express_gateway_service::DescribeExpressGatewayServiceError::UnsupportedFeatureException(inner) => {
807                Error::UnsupportedFeatureException(inner)
808            }
809            crate::operation::describe_express_gateway_service::DescribeExpressGatewayServiceError::Unhandled(inner) => Error::Unhandled(inner),
810        }
811    }
812}
813impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_service_deployments::DescribeServiceDeploymentsError, R>>
814    for Error
815where
816    R: Send + Sync + std::fmt::Debug + 'static,
817{
818    fn from(
819        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_service_deployments::DescribeServiceDeploymentsError, R>,
820    ) -> Self {
821        match err {
822            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
823            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
824                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
825                source: err.into(),
826            }),
827        }
828    }
829}
830impl From<crate::operation::describe_service_deployments::DescribeServiceDeploymentsError> for Error {
831    fn from(err: crate::operation::describe_service_deployments::DescribeServiceDeploymentsError) -> Self {
832        match err {
833            crate::operation::describe_service_deployments::DescribeServiceDeploymentsError::AccessDeniedException(inner) => {
834                Error::AccessDeniedException(inner)
835            }
836            crate::operation::describe_service_deployments::DescribeServiceDeploymentsError::ClientException(inner) => Error::ClientException(inner),
837            crate::operation::describe_service_deployments::DescribeServiceDeploymentsError::ClusterNotFoundException(inner) => {
838                Error::ClusterNotFoundException(inner)
839            }
840            crate::operation::describe_service_deployments::DescribeServiceDeploymentsError::InvalidParameterException(inner) => {
841                Error::InvalidParameterException(inner)
842            }
843            crate::operation::describe_service_deployments::DescribeServiceDeploymentsError::ServerException(inner) => Error::ServerException(inner),
844            crate::operation::describe_service_deployments::DescribeServiceDeploymentsError::ServiceNotFoundException(inner) => {
845                Error::ServiceNotFoundException(inner)
846            }
847            crate::operation::describe_service_deployments::DescribeServiceDeploymentsError::UnsupportedFeatureException(inner) => {
848                Error::UnsupportedFeatureException(inner)
849            }
850            crate::operation::describe_service_deployments::DescribeServiceDeploymentsError::Unhandled(inner) => Error::Unhandled(inner),
851        }
852    }
853}
854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_service_revisions::DescribeServiceRevisionsError, R>>
855    for Error
856where
857    R: Send + Sync + std::fmt::Debug + 'static,
858{
859    fn from(
860        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_service_revisions::DescribeServiceRevisionsError, R>,
861    ) -> Self {
862        match err {
863            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
864            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
865                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
866                source: err.into(),
867            }),
868        }
869    }
870}
871impl From<crate::operation::describe_service_revisions::DescribeServiceRevisionsError> for Error {
872    fn from(err: crate::operation::describe_service_revisions::DescribeServiceRevisionsError) -> Self {
873        match err {
874            crate::operation::describe_service_revisions::DescribeServiceRevisionsError::AccessDeniedException(inner) => {
875                Error::AccessDeniedException(inner)
876            }
877            crate::operation::describe_service_revisions::DescribeServiceRevisionsError::ClientException(inner) => Error::ClientException(inner),
878            crate::operation::describe_service_revisions::DescribeServiceRevisionsError::ClusterNotFoundException(inner) => {
879                Error::ClusterNotFoundException(inner)
880            }
881            crate::operation::describe_service_revisions::DescribeServiceRevisionsError::InvalidParameterException(inner) => {
882                Error::InvalidParameterException(inner)
883            }
884            crate::operation::describe_service_revisions::DescribeServiceRevisionsError::ServerException(inner) => Error::ServerException(inner),
885            crate::operation::describe_service_revisions::DescribeServiceRevisionsError::ServiceNotFoundException(inner) => {
886                Error::ServiceNotFoundException(inner)
887            }
888            crate::operation::describe_service_revisions::DescribeServiceRevisionsError::UnsupportedFeatureException(inner) => {
889                Error::UnsupportedFeatureException(inner)
890            }
891            crate::operation::describe_service_revisions::DescribeServiceRevisionsError::Unhandled(inner) => Error::Unhandled(inner),
892        }
893    }
894}
895impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_services::DescribeServicesError, R>> for Error
896where
897    R: Send + Sync + std::fmt::Debug + 'static,
898{
899    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_services::DescribeServicesError, R>) -> Self {
900        match err {
901            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
902            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
903                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
904                source: err.into(),
905            }),
906        }
907    }
908}
909impl From<crate::operation::describe_services::DescribeServicesError> for Error {
910    fn from(err: crate::operation::describe_services::DescribeServicesError) -> Self {
911        match err {
912            crate::operation::describe_services::DescribeServicesError::ClientException(inner) => Error::ClientException(inner),
913            crate::operation::describe_services::DescribeServicesError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
914            crate::operation::describe_services::DescribeServicesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
915            crate::operation::describe_services::DescribeServicesError::ServerException(inner) => Error::ServerException(inner),
916            crate::operation::describe_services::DescribeServicesError::Unhandled(inner) => Error::Unhandled(inner),
917        }
918    }
919}
920impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_task_definition::DescribeTaskDefinitionError, R>> for Error
921where
922    R: Send + Sync + std::fmt::Debug + 'static,
923{
924    fn from(
925        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_task_definition::DescribeTaskDefinitionError, R>,
926    ) -> Self {
927        match err {
928            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
929            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
930                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
931                source: err.into(),
932            }),
933        }
934    }
935}
936impl From<crate::operation::describe_task_definition::DescribeTaskDefinitionError> for Error {
937    fn from(err: crate::operation::describe_task_definition::DescribeTaskDefinitionError) -> Self {
938        match err {
939            crate::operation::describe_task_definition::DescribeTaskDefinitionError::ClientException(inner) => Error::ClientException(inner),
940            crate::operation::describe_task_definition::DescribeTaskDefinitionError::InvalidParameterException(inner) => {
941                Error::InvalidParameterException(inner)
942            }
943            crate::operation::describe_task_definition::DescribeTaskDefinitionError::ServerException(inner) => Error::ServerException(inner),
944            crate::operation::describe_task_definition::DescribeTaskDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
945        }
946    }
947}
948impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tasks::DescribeTasksError, R>> for Error
949where
950    R: Send + Sync + std::fmt::Debug + 'static,
951{
952    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tasks::DescribeTasksError, R>) -> Self {
953        match err {
954            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
955            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
956                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
957                source: err.into(),
958            }),
959        }
960    }
961}
962impl From<crate::operation::describe_tasks::DescribeTasksError> for Error {
963    fn from(err: crate::operation::describe_tasks::DescribeTasksError) -> Self {
964        match err {
965            crate::operation::describe_tasks::DescribeTasksError::ClientException(inner) => Error::ClientException(inner),
966            crate::operation::describe_tasks::DescribeTasksError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
967            crate::operation::describe_tasks::DescribeTasksError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
968            crate::operation::describe_tasks::DescribeTasksError::ServerException(inner) => Error::ServerException(inner),
969            crate::operation::describe_tasks::DescribeTasksError::Unhandled(inner) => Error::Unhandled(inner),
970        }
971    }
972}
973impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_task_sets::DescribeTaskSetsError, R>> for Error
974where
975    R: Send + Sync + std::fmt::Debug + 'static,
976{
977    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_task_sets::DescribeTaskSetsError, R>) -> Self {
978        match err {
979            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
980            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
981                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
982                source: err.into(),
983            }),
984        }
985    }
986}
987impl From<crate::operation::describe_task_sets::DescribeTaskSetsError> for Error {
988    fn from(err: crate::operation::describe_task_sets::DescribeTaskSetsError) -> Self {
989        match err {
990            crate::operation::describe_task_sets::DescribeTaskSetsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
991            crate::operation::describe_task_sets::DescribeTaskSetsError::ClientException(inner) => Error::ClientException(inner),
992            crate::operation::describe_task_sets::DescribeTaskSetsError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
993            crate::operation::describe_task_sets::DescribeTaskSetsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
994            crate::operation::describe_task_sets::DescribeTaskSetsError::ServerException(inner) => Error::ServerException(inner),
995            crate::operation::describe_task_sets::DescribeTaskSetsError::ServiceNotActiveException(inner) => Error::ServiceNotActiveException(inner),
996            crate::operation::describe_task_sets::DescribeTaskSetsError::ServiceNotFoundException(inner) => Error::ServiceNotFoundException(inner),
997            crate::operation::describe_task_sets::DescribeTaskSetsError::UnsupportedFeatureException(inner) => {
998                Error::UnsupportedFeatureException(inner)
999            }
1000            crate::operation::describe_task_sets::DescribeTaskSetsError::Unhandled(inner) => Error::Unhandled(inner),
1001        }
1002    }
1003}
1004impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::discover_poll_endpoint::DiscoverPollEndpointError, R>> for Error
1005where
1006    R: Send + Sync + std::fmt::Debug + 'static,
1007{
1008    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::discover_poll_endpoint::DiscoverPollEndpointError, R>) -> Self {
1009        match err {
1010            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1011            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1012                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1013                source: err.into(),
1014            }),
1015        }
1016    }
1017}
1018impl From<crate::operation::discover_poll_endpoint::DiscoverPollEndpointError> for Error {
1019    fn from(err: crate::operation::discover_poll_endpoint::DiscoverPollEndpointError) -> Self {
1020        match err {
1021            crate::operation::discover_poll_endpoint::DiscoverPollEndpointError::ClientException(inner) => Error::ClientException(inner),
1022            crate::operation::discover_poll_endpoint::DiscoverPollEndpointError::ServerException(inner) => Error::ServerException(inner),
1023            crate::operation::discover_poll_endpoint::DiscoverPollEndpointError::Unhandled(inner) => Error::Unhandled(inner),
1024        }
1025    }
1026}
1027impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_command::ExecuteCommandError, R>> for Error
1028where
1029    R: Send + Sync + std::fmt::Debug + 'static,
1030{
1031    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_command::ExecuteCommandError, R>) -> Self {
1032        match err {
1033            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1034            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1035                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1036                source: err.into(),
1037            }),
1038        }
1039    }
1040}
1041impl From<crate::operation::execute_command::ExecuteCommandError> for Error {
1042    fn from(err: crate::operation::execute_command::ExecuteCommandError) -> Self {
1043        match err {
1044            crate::operation::execute_command::ExecuteCommandError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1045            crate::operation::execute_command::ExecuteCommandError::ClientException(inner) => Error::ClientException(inner),
1046            crate::operation::execute_command::ExecuteCommandError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
1047            crate::operation::execute_command::ExecuteCommandError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1048            crate::operation::execute_command::ExecuteCommandError::ServerException(inner) => Error::ServerException(inner),
1049            crate::operation::execute_command::ExecuteCommandError::TargetNotConnectedException(inner) => Error::TargetNotConnectedException(inner),
1050            crate::operation::execute_command::ExecuteCommandError::Unhandled(inner) => Error::Unhandled(inner),
1051        }
1052    }
1053}
1054impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_task_protection::GetTaskProtectionError, R>> for Error
1055where
1056    R: Send + Sync + std::fmt::Debug + 'static,
1057{
1058    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_task_protection::GetTaskProtectionError, R>) -> Self {
1059        match err {
1060            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1061            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1062                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1063                source: err.into(),
1064            }),
1065        }
1066    }
1067}
1068impl From<crate::operation::get_task_protection::GetTaskProtectionError> for Error {
1069    fn from(err: crate::operation::get_task_protection::GetTaskProtectionError) -> Self {
1070        match err {
1071            crate::operation::get_task_protection::GetTaskProtectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1072            crate::operation::get_task_protection::GetTaskProtectionError::ClientException(inner) => Error::ClientException(inner),
1073            crate::operation::get_task_protection::GetTaskProtectionError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
1074            crate::operation::get_task_protection::GetTaskProtectionError::InvalidParameterException(inner) => {
1075                Error::InvalidParameterException(inner)
1076            }
1077            crate::operation::get_task_protection::GetTaskProtectionError::ResourceNotFoundException(inner) => {
1078                Error::ResourceNotFoundException(inner)
1079            }
1080            crate::operation::get_task_protection::GetTaskProtectionError::ServerException(inner) => Error::ServerException(inner),
1081            crate::operation::get_task_protection::GetTaskProtectionError::UnsupportedFeatureException(inner) => {
1082                Error::UnsupportedFeatureException(inner)
1083            }
1084            crate::operation::get_task_protection::GetTaskProtectionError::Unhandled(inner) => Error::Unhandled(inner),
1085        }
1086    }
1087}
1088impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_account_settings::ListAccountSettingsError, R>> for Error
1089where
1090    R: Send + Sync + std::fmt::Debug + 'static,
1091{
1092    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_account_settings::ListAccountSettingsError, R>) -> Self {
1093        match err {
1094            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1095            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1096                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1097                source: err.into(),
1098            }),
1099        }
1100    }
1101}
1102impl From<crate::operation::list_account_settings::ListAccountSettingsError> for Error {
1103    fn from(err: crate::operation::list_account_settings::ListAccountSettingsError) -> Self {
1104        match err {
1105            crate::operation::list_account_settings::ListAccountSettingsError::ClientException(inner) => Error::ClientException(inner),
1106            crate::operation::list_account_settings::ListAccountSettingsError::InvalidParameterException(inner) => {
1107                Error::InvalidParameterException(inner)
1108            }
1109            crate::operation::list_account_settings::ListAccountSettingsError::ServerException(inner) => Error::ServerException(inner),
1110            crate::operation::list_account_settings::ListAccountSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1111        }
1112    }
1113}
1114impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_attributes::ListAttributesError, R>> for Error
1115where
1116    R: Send + Sync + std::fmt::Debug + 'static,
1117{
1118    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_attributes::ListAttributesError, R>) -> Self {
1119        match err {
1120            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1121            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1122                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1123                source: err.into(),
1124            }),
1125        }
1126    }
1127}
1128impl From<crate::operation::list_attributes::ListAttributesError> for Error {
1129    fn from(err: crate::operation::list_attributes::ListAttributesError) -> Self {
1130        match err {
1131            crate::operation::list_attributes::ListAttributesError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
1132            crate::operation::list_attributes::ListAttributesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1133            crate::operation::list_attributes::ListAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1134        }
1135    }
1136}
1137impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_clusters::ListClustersError, R>> for Error
1138where
1139    R: Send + Sync + std::fmt::Debug + 'static,
1140{
1141    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_clusters::ListClustersError, R>) -> Self {
1142        match err {
1143            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1144            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1145                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1146                source: err.into(),
1147            }),
1148        }
1149    }
1150}
1151impl From<crate::operation::list_clusters::ListClustersError> for Error {
1152    fn from(err: crate::operation::list_clusters::ListClustersError) -> Self {
1153        match err {
1154            crate::operation::list_clusters::ListClustersError::ClientException(inner) => Error::ClientException(inner),
1155            crate::operation::list_clusters::ListClustersError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1156            crate::operation::list_clusters::ListClustersError::ServerException(inner) => Error::ServerException(inner),
1157            crate::operation::list_clusters::ListClustersError::Unhandled(inner) => Error::Unhandled(inner),
1158        }
1159    }
1160}
1161impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_container_instances::ListContainerInstancesError, R>> for Error
1162where
1163    R: Send + Sync + std::fmt::Debug + 'static,
1164{
1165    fn from(
1166        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_container_instances::ListContainerInstancesError, R>,
1167    ) -> Self {
1168        match err {
1169            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1170            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1171                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1172                source: err.into(),
1173            }),
1174        }
1175    }
1176}
1177impl From<crate::operation::list_container_instances::ListContainerInstancesError> for Error {
1178    fn from(err: crate::operation::list_container_instances::ListContainerInstancesError) -> Self {
1179        match err {
1180            crate::operation::list_container_instances::ListContainerInstancesError::ClientException(inner) => Error::ClientException(inner),
1181            crate::operation::list_container_instances::ListContainerInstancesError::ClusterNotFoundException(inner) => {
1182                Error::ClusterNotFoundException(inner)
1183            }
1184            crate::operation::list_container_instances::ListContainerInstancesError::InvalidParameterException(inner) => {
1185                Error::InvalidParameterException(inner)
1186            }
1187            crate::operation::list_container_instances::ListContainerInstancesError::ServerException(inner) => Error::ServerException(inner),
1188            crate::operation::list_container_instances::ListContainerInstancesError::Unhandled(inner) => Error::Unhandled(inner),
1189        }
1190    }
1191}
1192impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_deployments::ListServiceDeploymentsError, R>> for Error
1193where
1194    R: Send + Sync + std::fmt::Debug + 'static,
1195{
1196    fn from(
1197        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_service_deployments::ListServiceDeploymentsError, R>,
1198    ) -> Self {
1199        match err {
1200            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1201            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1202                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1203                source: err.into(),
1204            }),
1205        }
1206    }
1207}
1208impl From<crate::operation::list_service_deployments::ListServiceDeploymentsError> for Error {
1209    fn from(err: crate::operation::list_service_deployments::ListServiceDeploymentsError) -> Self {
1210        match err {
1211            crate::operation::list_service_deployments::ListServiceDeploymentsError::AccessDeniedException(inner) => {
1212                Error::AccessDeniedException(inner)
1213            }
1214            crate::operation::list_service_deployments::ListServiceDeploymentsError::ClientException(inner) => Error::ClientException(inner),
1215            crate::operation::list_service_deployments::ListServiceDeploymentsError::InvalidParameterException(inner) => {
1216                Error::InvalidParameterException(inner)
1217            }
1218            crate::operation::list_service_deployments::ListServiceDeploymentsError::ServerException(inner) => Error::ServerException(inner),
1219            crate::operation::list_service_deployments::ListServiceDeploymentsError::ServiceNotFoundException(inner) => {
1220                Error::ServiceNotFoundException(inner)
1221            }
1222            crate::operation::list_service_deployments::ListServiceDeploymentsError::UnsupportedFeatureException(inner) => {
1223                Error::UnsupportedFeatureException(inner)
1224            }
1225            crate::operation::list_service_deployments::ListServiceDeploymentsError::Unhandled(inner) => Error::Unhandled(inner),
1226        }
1227    }
1228}
1229impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_services::ListServicesError, R>> for Error
1230where
1231    R: Send + Sync + std::fmt::Debug + 'static,
1232{
1233    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_services::ListServicesError, R>) -> Self {
1234        match err {
1235            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1236            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1237                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1238                source: err.into(),
1239            }),
1240        }
1241    }
1242}
1243impl From<crate::operation::list_services::ListServicesError> for Error {
1244    fn from(err: crate::operation::list_services::ListServicesError) -> Self {
1245        match err {
1246            crate::operation::list_services::ListServicesError::ClientException(inner) => Error::ClientException(inner),
1247            crate::operation::list_services::ListServicesError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
1248            crate::operation::list_services::ListServicesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1249            crate::operation::list_services::ListServicesError::ServerException(inner) => Error::ServerException(inner),
1250            crate::operation::list_services::ListServicesError::Unhandled(inner) => Error::Unhandled(inner),
1251        }
1252    }
1253}
1254impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_services_by_namespace::ListServicesByNamespaceError, R>>
1255    for Error
1256where
1257    R: Send + Sync + std::fmt::Debug + 'static,
1258{
1259    fn from(
1260        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_services_by_namespace::ListServicesByNamespaceError, R>,
1261    ) -> Self {
1262        match err {
1263            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1264            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1265                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1266                source: err.into(),
1267            }),
1268        }
1269    }
1270}
1271impl From<crate::operation::list_services_by_namespace::ListServicesByNamespaceError> for Error {
1272    fn from(err: crate::operation::list_services_by_namespace::ListServicesByNamespaceError) -> Self {
1273        match err {
1274            crate::operation::list_services_by_namespace::ListServicesByNamespaceError::ClientException(inner) => Error::ClientException(inner),
1275            crate::operation::list_services_by_namespace::ListServicesByNamespaceError::InvalidParameterException(inner) => {
1276                Error::InvalidParameterException(inner)
1277            }
1278            crate::operation::list_services_by_namespace::ListServicesByNamespaceError::NamespaceNotFoundException(inner) => {
1279                Error::NamespaceNotFoundException(inner)
1280            }
1281            crate::operation::list_services_by_namespace::ListServicesByNamespaceError::ServerException(inner) => Error::ServerException(inner),
1282            crate::operation::list_services_by_namespace::ListServicesByNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
1283        }
1284    }
1285}
1286impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1287where
1288    R: Send + Sync + std::fmt::Debug + 'static,
1289{
1290    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1291        match err {
1292            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1293            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1294                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1295                source: err.into(),
1296            }),
1297        }
1298    }
1299}
1300impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1301    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1302        match err {
1303            crate::operation::list_tags_for_resource::ListTagsForResourceError::ClientException(inner) => Error::ClientException(inner),
1304            crate::operation::list_tags_for_resource::ListTagsForResourceError::ClusterNotFoundException(inner) => {
1305                Error::ClusterNotFoundException(inner)
1306            }
1307            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidParameterException(inner) => {
1308                Error::InvalidParameterException(inner)
1309            }
1310            crate::operation::list_tags_for_resource::ListTagsForResourceError::ServerException(inner) => Error::ServerException(inner),
1311            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1312        }
1313    }
1314}
1315impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_task_definition_families::ListTaskDefinitionFamiliesError, R>>
1316    for Error
1317where
1318    R: Send + Sync + std::fmt::Debug + 'static,
1319{
1320    fn from(
1321        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_task_definition_families::ListTaskDefinitionFamiliesError, R>,
1322    ) -> Self {
1323        match err {
1324            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1325            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1326                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1327                source: err.into(),
1328            }),
1329        }
1330    }
1331}
1332impl From<crate::operation::list_task_definition_families::ListTaskDefinitionFamiliesError> for Error {
1333    fn from(err: crate::operation::list_task_definition_families::ListTaskDefinitionFamiliesError) -> Self {
1334        match err {
1335            crate::operation::list_task_definition_families::ListTaskDefinitionFamiliesError::ClientException(inner) => Error::ClientException(inner),
1336            crate::operation::list_task_definition_families::ListTaskDefinitionFamiliesError::InvalidParameterException(inner) => {
1337                Error::InvalidParameterException(inner)
1338            }
1339            crate::operation::list_task_definition_families::ListTaskDefinitionFamiliesError::ServerException(inner) => Error::ServerException(inner),
1340            crate::operation::list_task_definition_families::ListTaskDefinitionFamiliesError::Unhandled(inner) => Error::Unhandled(inner),
1341        }
1342    }
1343}
1344impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_task_definitions::ListTaskDefinitionsError, R>> for Error
1345where
1346    R: Send + Sync + std::fmt::Debug + 'static,
1347{
1348    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_task_definitions::ListTaskDefinitionsError, R>) -> Self {
1349        match err {
1350            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1351            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1352                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1353                source: err.into(),
1354            }),
1355        }
1356    }
1357}
1358impl From<crate::operation::list_task_definitions::ListTaskDefinitionsError> for Error {
1359    fn from(err: crate::operation::list_task_definitions::ListTaskDefinitionsError) -> Self {
1360        match err {
1361            crate::operation::list_task_definitions::ListTaskDefinitionsError::ClientException(inner) => Error::ClientException(inner),
1362            crate::operation::list_task_definitions::ListTaskDefinitionsError::InvalidParameterException(inner) => {
1363                Error::InvalidParameterException(inner)
1364            }
1365            crate::operation::list_task_definitions::ListTaskDefinitionsError::ServerException(inner) => Error::ServerException(inner),
1366            crate::operation::list_task_definitions::ListTaskDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
1367        }
1368    }
1369}
1370impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tasks::ListTasksError, R>> for Error
1371where
1372    R: Send + Sync + std::fmt::Debug + 'static,
1373{
1374    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tasks::ListTasksError, R>) -> Self {
1375        match err {
1376            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1377            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1378                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1379                source: err.into(),
1380            }),
1381        }
1382    }
1383}
1384impl From<crate::operation::list_tasks::ListTasksError> for Error {
1385    fn from(err: crate::operation::list_tasks::ListTasksError) -> Self {
1386        match err {
1387            crate::operation::list_tasks::ListTasksError::ClientException(inner) => Error::ClientException(inner),
1388            crate::operation::list_tasks::ListTasksError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
1389            crate::operation::list_tasks::ListTasksError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1390            crate::operation::list_tasks::ListTasksError::ServerException(inner) => Error::ServerException(inner),
1391            crate::operation::list_tasks::ListTasksError::ServiceNotFoundException(inner) => Error::ServiceNotFoundException(inner),
1392            crate::operation::list_tasks::ListTasksError::Unhandled(inner) => Error::Unhandled(inner),
1393        }
1394    }
1395}
1396impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_setting::PutAccountSettingError, R>> for Error
1397where
1398    R: Send + Sync + std::fmt::Debug + 'static,
1399{
1400    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_setting::PutAccountSettingError, R>) -> Self {
1401        match err {
1402            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1403            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1404                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1405                source: err.into(),
1406            }),
1407        }
1408    }
1409}
1410impl From<crate::operation::put_account_setting::PutAccountSettingError> for Error {
1411    fn from(err: crate::operation::put_account_setting::PutAccountSettingError) -> Self {
1412        match err {
1413            crate::operation::put_account_setting::PutAccountSettingError::ClientException(inner) => Error::ClientException(inner),
1414            crate::operation::put_account_setting::PutAccountSettingError::InvalidParameterException(inner) => {
1415                Error::InvalidParameterException(inner)
1416            }
1417            crate::operation::put_account_setting::PutAccountSettingError::ServerException(inner) => Error::ServerException(inner),
1418            crate::operation::put_account_setting::PutAccountSettingError::Unhandled(inner) => Error::Unhandled(inner),
1419        }
1420    }
1421}
1422impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_setting_default::PutAccountSettingDefaultError, R>>
1423    for Error
1424where
1425    R: Send + Sync + std::fmt::Debug + 'static,
1426{
1427    fn from(
1428        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_setting_default::PutAccountSettingDefaultError, R>,
1429    ) -> Self {
1430        match err {
1431            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1432            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1433                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1434                source: err.into(),
1435            }),
1436        }
1437    }
1438}
1439impl From<crate::operation::put_account_setting_default::PutAccountSettingDefaultError> for Error {
1440    fn from(err: crate::operation::put_account_setting_default::PutAccountSettingDefaultError) -> Self {
1441        match err {
1442            crate::operation::put_account_setting_default::PutAccountSettingDefaultError::ClientException(inner) => Error::ClientException(inner),
1443            crate::operation::put_account_setting_default::PutAccountSettingDefaultError::InvalidParameterException(inner) => {
1444                Error::InvalidParameterException(inner)
1445            }
1446            crate::operation::put_account_setting_default::PutAccountSettingDefaultError::ServerException(inner) => Error::ServerException(inner),
1447            crate::operation::put_account_setting_default::PutAccountSettingDefaultError::Unhandled(inner) => Error::Unhandled(inner),
1448        }
1449    }
1450}
1451impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_attributes::PutAttributesError, R>> for Error
1452where
1453    R: Send + Sync + std::fmt::Debug + 'static,
1454{
1455    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_attributes::PutAttributesError, R>) -> Self {
1456        match err {
1457            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1458            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1459                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1460                source: err.into(),
1461            }),
1462        }
1463    }
1464}
1465impl From<crate::operation::put_attributes::PutAttributesError> for Error {
1466    fn from(err: crate::operation::put_attributes::PutAttributesError) -> Self {
1467        match err {
1468            crate::operation::put_attributes::PutAttributesError::AttributeLimitExceededException(inner) => {
1469                Error::AttributeLimitExceededException(inner)
1470            }
1471            crate::operation::put_attributes::PutAttributesError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
1472            crate::operation::put_attributes::PutAttributesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1473            crate::operation::put_attributes::PutAttributesError::TargetNotFoundException(inner) => Error::TargetNotFoundException(inner),
1474            crate::operation::put_attributes::PutAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1475        }
1476    }
1477}
1478impl<R>
1479    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError, R>>
1480    for Error
1481where
1482    R: Send + Sync + std::fmt::Debug + 'static,
1483{
1484    fn from(
1485        err: ::aws_smithy_runtime_api::client::result::SdkError<
1486            crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError,
1487            R,
1488        >,
1489    ) -> Self {
1490        match err {
1491            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1492            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1493                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1494                source: err.into(),
1495            }),
1496        }
1497    }
1498}
1499impl From<crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError> for Error {
1500    fn from(err: crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError) -> Self {
1501        match err {
1502            crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError::ClientException(inner) => {
1503                Error::ClientException(inner)
1504            }
1505            crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError::ClusterNotFoundException(inner) => {
1506                Error::ClusterNotFoundException(inner)
1507            }
1508            crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError::InvalidParameterException(inner) => {
1509                Error::InvalidParameterException(inner)
1510            }
1511            crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError::ResourceInUseException(inner) => {
1512                Error::ResourceInUseException(inner)
1513            }
1514            crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError::ServerException(inner) => {
1515                Error::ServerException(inner)
1516            }
1517            crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError::UpdateInProgressException(inner) => {
1518                Error::UpdateInProgressException(inner)
1519            }
1520            crate::operation::put_cluster_capacity_providers::PutClusterCapacityProvidersError::Unhandled(inner) => Error::Unhandled(inner),
1521        }
1522    }
1523}
1524impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_container_instance::RegisterContainerInstanceError, R>>
1525    for Error
1526where
1527    R: Send + Sync + std::fmt::Debug + 'static,
1528{
1529    fn from(
1530        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_container_instance::RegisterContainerInstanceError, R>,
1531    ) -> Self {
1532        match err {
1533            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1534            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1535                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1536                source: err.into(),
1537            }),
1538        }
1539    }
1540}
1541impl From<crate::operation::register_container_instance::RegisterContainerInstanceError> for Error {
1542    fn from(err: crate::operation::register_container_instance::RegisterContainerInstanceError) -> Self {
1543        match err {
1544            crate::operation::register_container_instance::RegisterContainerInstanceError::ClientException(inner) => Error::ClientException(inner),
1545            crate::operation::register_container_instance::RegisterContainerInstanceError::InvalidParameterException(inner) => {
1546                Error::InvalidParameterException(inner)
1547            }
1548            crate::operation::register_container_instance::RegisterContainerInstanceError::ServerException(inner) => Error::ServerException(inner),
1549            crate::operation::register_container_instance::RegisterContainerInstanceError::Unhandled(inner) => Error::Unhandled(inner),
1550        }
1551    }
1552}
1553impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_task_definition::RegisterTaskDefinitionError, R>> for Error
1554where
1555    R: Send + Sync + std::fmt::Debug + 'static,
1556{
1557    fn from(
1558        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_task_definition::RegisterTaskDefinitionError, R>,
1559    ) -> Self {
1560        match err {
1561            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1562            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1563                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1564                source: err.into(),
1565            }),
1566        }
1567    }
1568}
1569impl From<crate::operation::register_task_definition::RegisterTaskDefinitionError> for Error {
1570    fn from(err: crate::operation::register_task_definition::RegisterTaskDefinitionError) -> Self {
1571        match err {
1572            crate::operation::register_task_definition::RegisterTaskDefinitionError::ClientException(inner) => Error::ClientException(inner),
1573            crate::operation::register_task_definition::RegisterTaskDefinitionError::InvalidParameterException(inner) => {
1574                Error::InvalidParameterException(inner)
1575            }
1576            crate::operation::register_task_definition::RegisterTaskDefinitionError::ServerException(inner) => Error::ServerException(inner),
1577            crate::operation::register_task_definition::RegisterTaskDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1578        }
1579    }
1580}
1581impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_task::RunTaskError, R>> for Error
1582where
1583    R: Send + Sync + std::fmt::Debug + 'static,
1584{
1585    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::run_task::RunTaskError, R>) -> Self {
1586        match err {
1587            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1588            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1589                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1590                source: err.into(),
1591            }),
1592        }
1593    }
1594}
1595impl From<crate::operation::run_task::RunTaskError> for Error {
1596    fn from(err: crate::operation::run_task::RunTaskError) -> Self {
1597        match err {
1598            crate::operation::run_task::RunTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1599            crate::operation::run_task::RunTaskError::BlockedException(inner) => Error::BlockedException(inner),
1600            crate::operation::run_task::RunTaskError::ClientException(inner) => Error::ClientException(inner),
1601            crate::operation::run_task::RunTaskError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
1602            crate::operation::run_task::RunTaskError::ConflictException(inner) => Error::ConflictException(inner),
1603            crate::operation::run_task::RunTaskError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1604            crate::operation::run_task::RunTaskError::PlatformTaskDefinitionIncompatibilityException(inner) => {
1605                Error::PlatformTaskDefinitionIncompatibilityException(inner)
1606            }
1607            crate::operation::run_task::RunTaskError::PlatformUnknownException(inner) => Error::PlatformUnknownException(inner),
1608            crate::operation::run_task::RunTaskError::ServerException(inner) => Error::ServerException(inner),
1609            crate::operation::run_task::RunTaskError::UnsupportedFeatureException(inner) => Error::UnsupportedFeatureException(inner),
1610            crate::operation::run_task::RunTaskError::Unhandled(inner) => Error::Unhandled(inner),
1611        }
1612    }
1613}
1614impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_task::StartTaskError, R>> for Error
1615where
1616    R: Send + Sync + std::fmt::Debug + 'static,
1617{
1618    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_task::StartTaskError, R>) -> Self {
1619        match err {
1620            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1621            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1622                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1623                source: err.into(),
1624            }),
1625        }
1626    }
1627}
1628impl From<crate::operation::start_task::StartTaskError> for Error {
1629    fn from(err: crate::operation::start_task::StartTaskError) -> Self {
1630        match err {
1631            crate::operation::start_task::StartTaskError::ClientException(inner) => Error::ClientException(inner),
1632            crate::operation::start_task::StartTaskError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
1633            crate::operation::start_task::StartTaskError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1634            crate::operation::start_task::StartTaskError::ServerException(inner) => Error::ServerException(inner),
1635            crate::operation::start_task::StartTaskError::UnsupportedFeatureException(inner) => Error::UnsupportedFeatureException(inner),
1636            crate::operation::start_task::StartTaskError::Unhandled(inner) => Error::Unhandled(inner),
1637        }
1638    }
1639}
1640impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_service_deployment::StopServiceDeploymentError, R>> for Error
1641where
1642    R: Send + Sync + std::fmt::Debug + 'static,
1643{
1644    fn from(
1645        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_service_deployment::StopServiceDeploymentError, R>,
1646    ) -> Self {
1647        match err {
1648            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1649            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1650                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1651                source: err.into(),
1652            }),
1653        }
1654    }
1655}
1656impl From<crate::operation::stop_service_deployment::StopServiceDeploymentError> for Error {
1657    fn from(err: crate::operation::stop_service_deployment::StopServiceDeploymentError) -> Self {
1658        match err {
1659            crate::operation::stop_service_deployment::StopServiceDeploymentError::AccessDeniedException(inner) => {
1660                Error::AccessDeniedException(inner)
1661            }
1662            crate::operation::stop_service_deployment::StopServiceDeploymentError::ClientException(inner) => Error::ClientException(inner),
1663            crate::operation::stop_service_deployment::StopServiceDeploymentError::ConflictException(inner) => Error::ConflictException(inner),
1664            crate::operation::stop_service_deployment::StopServiceDeploymentError::InvalidParameterException(inner) => {
1665                Error::InvalidParameterException(inner)
1666            }
1667            crate::operation::stop_service_deployment::StopServiceDeploymentError::ServerException(inner) => Error::ServerException(inner),
1668            crate::operation::stop_service_deployment::StopServiceDeploymentError::ServiceDeploymentNotFoundException(inner) => {
1669                Error::ServiceDeploymentNotFoundException(inner)
1670            }
1671            crate::operation::stop_service_deployment::StopServiceDeploymentError::UnsupportedFeatureException(inner) => {
1672                Error::UnsupportedFeatureException(inner)
1673            }
1674            crate::operation::stop_service_deployment::StopServiceDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
1675        }
1676    }
1677}
1678impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_task::StopTaskError, R>> for Error
1679where
1680    R: Send + Sync + std::fmt::Debug + 'static,
1681{
1682    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_task::StopTaskError, R>) -> Self {
1683        match err {
1684            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1685            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1686                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1687                source: err.into(),
1688            }),
1689        }
1690    }
1691}
1692impl From<crate::operation::stop_task::StopTaskError> for Error {
1693    fn from(err: crate::operation::stop_task::StopTaskError) -> Self {
1694        match err {
1695            crate::operation::stop_task::StopTaskError::ClientException(inner) => Error::ClientException(inner),
1696            crate::operation::stop_task::StopTaskError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
1697            crate::operation::stop_task::StopTaskError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1698            crate::operation::stop_task::StopTaskError::ServerException(inner) => Error::ServerException(inner),
1699            crate::operation::stop_task::StopTaskError::Unhandled(inner) => Error::Unhandled(inner),
1700        }
1701    }
1702}
1703impl<R>
1704    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::submit_attachment_state_changes::SubmitAttachmentStateChangesError, R>>
1705    for Error
1706where
1707    R: Send + Sync + std::fmt::Debug + 'static,
1708{
1709    fn from(
1710        err: ::aws_smithy_runtime_api::client::result::SdkError<
1711            crate::operation::submit_attachment_state_changes::SubmitAttachmentStateChangesError,
1712            R,
1713        >,
1714    ) -> Self {
1715        match err {
1716            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1717            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1718                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1719                source: err.into(),
1720            }),
1721        }
1722    }
1723}
1724impl From<crate::operation::submit_attachment_state_changes::SubmitAttachmentStateChangesError> for Error {
1725    fn from(err: crate::operation::submit_attachment_state_changes::SubmitAttachmentStateChangesError) -> Self {
1726        match err {
1727            crate::operation::submit_attachment_state_changes::SubmitAttachmentStateChangesError::AccessDeniedException(inner) => {
1728                Error::AccessDeniedException(inner)
1729            }
1730            crate::operation::submit_attachment_state_changes::SubmitAttachmentStateChangesError::ClientException(inner) => {
1731                Error::ClientException(inner)
1732            }
1733            crate::operation::submit_attachment_state_changes::SubmitAttachmentStateChangesError::InvalidParameterException(inner) => {
1734                Error::InvalidParameterException(inner)
1735            }
1736            crate::operation::submit_attachment_state_changes::SubmitAttachmentStateChangesError::ServerException(inner) => {
1737                Error::ServerException(inner)
1738            }
1739            crate::operation::submit_attachment_state_changes::SubmitAttachmentStateChangesError::Unhandled(inner) => Error::Unhandled(inner),
1740        }
1741    }
1742}
1743impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::submit_container_state_change::SubmitContainerStateChangeError, R>>
1744    for Error
1745where
1746    R: Send + Sync + std::fmt::Debug + 'static,
1747{
1748    fn from(
1749        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::submit_container_state_change::SubmitContainerStateChangeError, R>,
1750    ) -> Self {
1751        match err {
1752            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1753            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1754                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1755                source: err.into(),
1756            }),
1757        }
1758    }
1759}
1760impl From<crate::operation::submit_container_state_change::SubmitContainerStateChangeError> for Error {
1761    fn from(err: crate::operation::submit_container_state_change::SubmitContainerStateChangeError) -> Self {
1762        match err {
1763            crate::operation::submit_container_state_change::SubmitContainerStateChangeError::AccessDeniedException(inner) => {
1764                Error::AccessDeniedException(inner)
1765            }
1766            crate::operation::submit_container_state_change::SubmitContainerStateChangeError::ClientException(inner) => Error::ClientException(inner),
1767            crate::operation::submit_container_state_change::SubmitContainerStateChangeError::ServerException(inner) => Error::ServerException(inner),
1768            crate::operation::submit_container_state_change::SubmitContainerStateChangeError::Unhandled(inner) => Error::Unhandled(inner),
1769        }
1770    }
1771}
1772impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::submit_task_state_change::SubmitTaskStateChangeError, R>> for Error
1773where
1774    R: Send + Sync + std::fmt::Debug + 'static,
1775{
1776    fn from(
1777        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::submit_task_state_change::SubmitTaskStateChangeError, R>,
1778    ) -> Self {
1779        match err {
1780            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1781            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1782                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1783                source: err.into(),
1784            }),
1785        }
1786    }
1787}
1788impl From<crate::operation::submit_task_state_change::SubmitTaskStateChangeError> for Error {
1789    fn from(err: crate::operation::submit_task_state_change::SubmitTaskStateChangeError) -> Self {
1790        match err {
1791            crate::operation::submit_task_state_change::SubmitTaskStateChangeError::AccessDeniedException(inner) => {
1792                Error::AccessDeniedException(inner)
1793            }
1794            crate::operation::submit_task_state_change::SubmitTaskStateChangeError::ClientException(inner) => Error::ClientException(inner),
1795            crate::operation::submit_task_state_change::SubmitTaskStateChangeError::InvalidParameterException(inner) => {
1796                Error::InvalidParameterException(inner)
1797            }
1798            crate::operation::submit_task_state_change::SubmitTaskStateChangeError::ServerException(inner) => Error::ServerException(inner),
1799            crate::operation::submit_task_state_change::SubmitTaskStateChangeError::Unhandled(inner) => Error::Unhandled(inner),
1800        }
1801    }
1802}
1803impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1804where
1805    R: Send + Sync + std::fmt::Debug + 'static,
1806{
1807    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1808        match err {
1809            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1810            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1811                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1812                source: err.into(),
1813            }),
1814        }
1815    }
1816}
1817impl From<crate::operation::tag_resource::TagResourceError> for Error {
1818    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1819        match err {
1820            crate::operation::tag_resource::TagResourceError::ClientException(inner) => Error::ClientException(inner),
1821            crate::operation::tag_resource::TagResourceError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
1822            crate::operation::tag_resource::TagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1823            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1824            crate::operation::tag_resource::TagResourceError::ServerException(inner) => Error::ServerException(inner),
1825            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1826        }
1827    }
1828}
1829impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1830where
1831    R: Send + Sync + std::fmt::Debug + 'static,
1832{
1833    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1834        match err {
1835            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1836            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1837                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1838                source: err.into(),
1839            }),
1840        }
1841    }
1842}
1843impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1844    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1845        match err {
1846            crate::operation::untag_resource::UntagResourceError::ClientException(inner) => Error::ClientException(inner),
1847            crate::operation::untag_resource::UntagResourceError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
1848            crate::operation::untag_resource::UntagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1849            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1850            crate::operation::untag_resource::UntagResourceError::ServerException(inner) => Error::ServerException(inner),
1851            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1852        }
1853    }
1854}
1855impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_capacity_provider::UpdateCapacityProviderError, R>> for Error
1856where
1857    R: Send + Sync + std::fmt::Debug + 'static,
1858{
1859    fn from(
1860        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_capacity_provider::UpdateCapacityProviderError, R>,
1861    ) -> Self {
1862        match err {
1863            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1864            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1865                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1866                source: err.into(),
1867            }),
1868        }
1869    }
1870}
1871impl From<crate::operation::update_capacity_provider::UpdateCapacityProviderError> for Error {
1872    fn from(err: crate::operation::update_capacity_provider::UpdateCapacityProviderError) -> Self {
1873        match err {
1874            crate::operation::update_capacity_provider::UpdateCapacityProviderError::ClientException(inner) => Error::ClientException(inner),
1875            crate::operation::update_capacity_provider::UpdateCapacityProviderError::ClusterNotFoundException(inner) => {
1876                Error::ClusterNotFoundException(inner)
1877            }
1878            crate::operation::update_capacity_provider::UpdateCapacityProviderError::InvalidParameterException(inner) => {
1879                Error::InvalidParameterException(inner)
1880            }
1881            crate::operation::update_capacity_provider::UpdateCapacityProviderError::ServerException(inner) => Error::ServerException(inner),
1882            crate::operation::update_capacity_provider::UpdateCapacityProviderError::UnsupportedFeatureException(inner) => {
1883                Error::UnsupportedFeatureException(inner)
1884            }
1885            crate::operation::update_capacity_provider::UpdateCapacityProviderError::Unhandled(inner) => Error::Unhandled(inner),
1886        }
1887    }
1888}
1889impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster::UpdateClusterError, R>> for Error
1890where
1891    R: Send + Sync + std::fmt::Debug + 'static,
1892{
1893    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster::UpdateClusterError, R>) -> Self {
1894        match err {
1895            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1896            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1897                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1898                source: err.into(),
1899            }),
1900        }
1901    }
1902}
1903impl From<crate::operation::update_cluster::UpdateClusterError> for Error {
1904    fn from(err: crate::operation::update_cluster::UpdateClusterError) -> Self {
1905        match err {
1906            crate::operation::update_cluster::UpdateClusterError::ClientException(inner) => Error::ClientException(inner),
1907            crate::operation::update_cluster::UpdateClusterError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
1908            crate::operation::update_cluster::UpdateClusterError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1909            crate::operation::update_cluster::UpdateClusterError::NamespaceNotFoundException(inner) => Error::NamespaceNotFoundException(inner),
1910            crate::operation::update_cluster::UpdateClusterError::ServerException(inner) => Error::ServerException(inner),
1911            crate::operation::update_cluster::UpdateClusterError::Unhandled(inner) => Error::Unhandled(inner),
1912        }
1913    }
1914}
1915impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_settings::UpdateClusterSettingsError, R>> for Error
1916where
1917    R: Send + Sync + std::fmt::Debug + 'static,
1918{
1919    fn from(
1920        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_settings::UpdateClusterSettingsError, R>,
1921    ) -> Self {
1922        match err {
1923            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1924            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1925                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1926                source: err.into(),
1927            }),
1928        }
1929    }
1930}
1931impl From<crate::operation::update_cluster_settings::UpdateClusterSettingsError> for Error {
1932    fn from(err: crate::operation::update_cluster_settings::UpdateClusterSettingsError) -> Self {
1933        match err {
1934            crate::operation::update_cluster_settings::UpdateClusterSettingsError::ClientException(inner) => Error::ClientException(inner),
1935            crate::operation::update_cluster_settings::UpdateClusterSettingsError::ClusterNotFoundException(inner) => {
1936                Error::ClusterNotFoundException(inner)
1937            }
1938            crate::operation::update_cluster_settings::UpdateClusterSettingsError::InvalidParameterException(inner) => {
1939                Error::InvalidParameterException(inner)
1940            }
1941            crate::operation::update_cluster_settings::UpdateClusterSettingsError::ServerException(inner) => Error::ServerException(inner),
1942            crate::operation::update_cluster_settings::UpdateClusterSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1943        }
1944    }
1945}
1946impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_container_agent::UpdateContainerAgentError, R>> for Error
1947where
1948    R: Send + Sync + std::fmt::Debug + 'static,
1949{
1950    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_container_agent::UpdateContainerAgentError, R>) -> Self {
1951        match err {
1952            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1953            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1954                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1955                source: err.into(),
1956            }),
1957        }
1958    }
1959}
1960impl From<crate::operation::update_container_agent::UpdateContainerAgentError> for Error {
1961    fn from(err: crate::operation::update_container_agent::UpdateContainerAgentError) -> Self {
1962        match err {
1963            crate::operation::update_container_agent::UpdateContainerAgentError::ClientException(inner) => Error::ClientException(inner),
1964            crate::operation::update_container_agent::UpdateContainerAgentError::ClusterNotFoundException(inner) => {
1965                Error::ClusterNotFoundException(inner)
1966            }
1967            crate::operation::update_container_agent::UpdateContainerAgentError::InvalidParameterException(inner) => {
1968                Error::InvalidParameterException(inner)
1969            }
1970            crate::operation::update_container_agent::UpdateContainerAgentError::MissingVersionException(inner) => {
1971                Error::MissingVersionException(inner)
1972            }
1973            crate::operation::update_container_agent::UpdateContainerAgentError::NoUpdateAvailableException(inner) => {
1974                Error::NoUpdateAvailableException(inner)
1975            }
1976            crate::operation::update_container_agent::UpdateContainerAgentError::ServerException(inner) => Error::ServerException(inner),
1977            crate::operation::update_container_agent::UpdateContainerAgentError::UpdateInProgressException(inner) => {
1978                Error::UpdateInProgressException(inner)
1979            }
1980            crate::operation::update_container_agent::UpdateContainerAgentError::Unhandled(inner) => Error::Unhandled(inner),
1981        }
1982    }
1983}
1984impl<R>
1985    From<
1986        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_container_instances_state::UpdateContainerInstancesStateError, R>,
1987    > for Error
1988where
1989    R: Send + Sync + std::fmt::Debug + 'static,
1990{
1991    fn from(
1992        err: ::aws_smithy_runtime_api::client::result::SdkError<
1993            crate::operation::update_container_instances_state::UpdateContainerInstancesStateError,
1994            R,
1995        >,
1996    ) -> Self {
1997        match err {
1998            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1999            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2000                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2001                source: err.into(),
2002            }),
2003        }
2004    }
2005}
2006impl From<crate::operation::update_container_instances_state::UpdateContainerInstancesStateError> for Error {
2007    fn from(err: crate::operation::update_container_instances_state::UpdateContainerInstancesStateError) -> Self {
2008        match err {
2009            crate::operation::update_container_instances_state::UpdateContainerInstancesStateError::ClientException(inner) => {
2010                Error::ClientException(inner)
2011            }
2012            crate::operation::update_container_instances_state::UpdateContainerInstancesStateError::ClusterNotFoundException(inner) => {
2013                Error::ClusterNotFoundException(inner)
2014            }
2015            crate::operation::update_container_instances_state::UpdateContainerInstancesStateError::InvalidParameterException(inner) => {
2016                Error::InvalidParameterException(inner)
2017            }
2018            crate::operation::update_container_instances_state::UpdateContainerInstancesStateError::ServerException(inner) => {
2019                Error::ServerException(inner)
2020            }
2021            crate::operation::update_container_instances_state::UpdateContainerInstancesStateError::Unhandled(inner) => Error::Unhandled(inner),
2022        }
2023    }
2024}
2025impl<R>
2026    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_express_gateway_service::UpdateExpressGatewayServiceError, R>>
2027    for Error
2028where
2029    R: Send + Sync + std::fmt::Debug + 'static,
2030{
2031    fn from(
2032        err: ::aws_smithy_runtime_api::client::result::SdkError<
2033            crate::operation::update_express_gateway_service::UpdateExpressGatewayServiceError,
2034            R,
2035        >,
2036    ) -> Self {
2037        match err {
2038            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2039            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2040                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2041                source: err.into(),
2042            }),
2043        }
2044    }
2045}
2046impl From<crate::operation::update_express_gateway_service::UpdateExpressGatewayServiceError> for Error {
2047    fn from(err: crate::operation::update_express_gateway_service::UpdateExpressGatewayServiceError) -> Self {
2048        match err {
2049            crate::operation::update_express_gateway_service::UpdateExpressGatewayServiceError::AccessDeniedException(inner) => {
2050                Error::AccessDeniedException(inner)
2051            }
2052            crate::operation::update_express_gateway_service::UpdateExpressGatewayServiceError::ClientException(inner) => {
2053                Error::ClientException(inner)
2054            }
2055            crate::operation::update_express_gateway_service::UpdateExpressGatewayServiceError::ClusterNotFoundException(inner) => {
2056                Error::ClusterNotFoundException(inner)
2057            }
2058            crate::operation::update_express_gateway_service::UpdateExpressGatewayServiceError::InvalidParameterException(inner) => {
2059                Error::InvalidParameterException(inner)
2060            }
2061            crate::operation::update_express_gateway_service::UpdateExpressGatewayServiceError::ServerException(inner) => {
2062                Error::ServerException(inner)
2063            }
2064            crate::operation::update_express_gateway_service::UpdateExpressGatewayServiceError::ServiceNotActiveException(inner) => {
2065                Error::ServiceNotActiveException(inner)
2066            }
2067            crate::operation::update_express_gateway_service::UpdateExpressGatewayServiceError::ServiceNotFoundException(inner) => {
2068                Error::ServiceNotFoundException(inner)
2069            }
2070            crate::operation::update_express_gateway_service::UpdateExpressGatewayServiceError::UnsupportedFeatureException(inner) => {
2071                Error::UnsupportedFeatureException(inner)
2072            }
2073            crate::operation::update_express_gateway_service::UpdateExpressGatewayServiceError::Unhandled(inner) => Error::Unhandled(inner),
2074        }
2075    }
2076}
2077impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service::UpdateServiceError, R>> for Error
2078where
2079    R: Send + Sync + std::fmt::Debug + 'static,
2080{
2081    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service::UpdateServiceError, R>) -> Self {
2082        match err {
2083            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2084            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2085                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2086                source: err.into(),
2087            }),
2088        }
2089    }
2090}
2091impl From<crate::operation::update_service::UpdateServiceError> for Error {
2092    fn from(err: crate::operation::update_service::UpdateServiceError) -> Self {
2093        match err {
2094            crate::operation::update_service::UpdateServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2095            crate::operation::update_service::UpdateServiceError::ClientException(inner) => Error::ClientException(inner),
2096            crate::operation::update_service::UpdateServiceError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
2097            crate::operation::update_service::UpdateServiceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2098            crate::operation::update_service::UpdateServiceError::NamespaceNotFoundException(inner) => Error::NamespaceNotFoundException(inner),
2099            crate::operation::update_service::UpdateServiceError::PlatformTaskDefinitionIncompatibilityException(inner) => {
2100                Error::PlatformTaskDefinitionIncompatibilityException(inner)
2101            }
2102            crate::operation::update_service::UpdateServiceError::PlatformUnknownException(inner) => Error::PlatformUnknownException(inner),
2103            crate::operation::update_service::UpdateServiceError::ServerException(inner) => Error::ServerException(inner),
2104            crate::operation::update_service::UpdateServiceError::ServiceNotActiveException(inner) => Error::ServiceNotActiveException(inner),
2105            crate::operation::update_service::UpdateServiceError::ServiceNotFoundException(inner) => Error::ServiceNotFoundException(inner),
2106            crate::operation::update_service::UpdateServiceError::UnsupportedFeatureException(inner) => Error::UnsupportedFeatureException(inner),
2107            crate::operation::update_service::UpdateServiceError::Unhandled(inner) => Error::Unhandled(inner),
2108        }
2109    }
2110}
2111impl<R>
2112    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetError, R>>
2113    for Error
2114where
2115    R: Send + Sync + std::fmt::Debug + 'static,
2116{
2117    fn from(
2118        err: ::aws_smithy_runtime_api::client::result::SdkError<
2119            crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetError,
2120            R,
2121        >,
2122    ) -> Self {
2123        match err {
2124            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2125            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2126                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2127                source: err.into(),
2128            }),
2129        }
2130    }
2131}
2132impl From<crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetError> for Error {
2133    fn from(err: crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetError) -> Self {
2134        match err {
2135            crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetError::AccessDeniedException(inner) => {
2136                Error::AccessDeniedException(inner)
2137            }
2138            crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetError::ClientException(inner) => {
2139                Error::ClientException(inner)
2140            }
2141            crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetError::ClusterNotFoundException(inner) => {
2142                Error::ClusterNotFoundException(inner)
2143            }
2144            crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetError::InvalidParameterException(inner) => {
2145                Error::InvalidParameterException(inner)
2146            }
2147            crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetError::ServerException(inner) => {
2148                Error::ServerException(inner)
2149            }
2150            crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetError::ServiceNotActiveException(inner) => {
2151                Error::ServiceNotActiveException(inner)
2152            }
2153            crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetError::ServiceNotFoundException(inner) => {
2154                Error::ServiceNotFoundException(inner)
2155            }
2156            crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetError::TaskSetNotFoundException(inner) => {
2157                Error::TaskSetNotFoundException(inner)
2158            }
2159            crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetError::UnsupportedFeatureException(inner) => {
2160                Error::UnsupportedFeatureException(inner)
2161            }
2162            crate::operation::update_service_primary_task_set::UpdateServicePrimaryTaskSetError::Unhandled(inner) => Error::Unhandled(inner),
2163        }
2164    }
2165}
2166impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_task_protection::UpdateTaskProtectionError, R>> for Error
2167where
2168    R: Send + Sync + std::fmt::Debug + 'static,
2169{
2170    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_task_protection::UpdateTaskProtectionError, R>) -> Self {
2171        match err {
2172            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2173            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2174                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2175                source: err.into(),
2176            }),
2177        }
2178    }
2179}
2180impl From<crate::operation::update_task_protection::UpdateTaskProtectionError> for Error {
2181    fn from(err: crate::operation::update_task_protection::UpdateTaskProtectionError) -> Self {
2182        match err {
2183            crate::operation::update_task_protection::UpdateTaskProtectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2184            crate::operation::update_task_protection::UpdateTaskProtectionError::ClientException(inner) => Error::ClientException(inner),
2185            crate::operation::update_task_protection::UpdateTaskProtectionError::ClusterNotFoundException(inner) => {
2186                Error::ClusterNotFoundException(inner)
2187            }
2188            crate::operation::update_task_protection::UpdateTaskProtectionError::InvalidParameterException(inner) => {
2189                Error::InvalidParameterException(inner)
2190            }
2191            crate::operation::update_task_protection::UpdateTaskProtectionError::ResourceNotFoundException(inner) => {
2192                Error::ResourceNotFoundException(inner)
2193            }
2194            crate::operation::update_task_protection::UpdateTaskProtectionError::ServerException(inner) => Error::ServerException(inner),
2195            crate::operation::update_task_protection::UpdateTaskProtectionError::UnsupportedFeatureException(inner) => {
2196                Error::UnsupportedFeatureException(inner)
2197            }
2198            crate::operation::update_task_protection::UpdateTaskProtectionError::Unhandled(inner) => Error::Unhandled(inner),
2199        }
2200    }
2201}
2202impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_task_set::UpdateTaskSetError, R>> for Error
2203where
2204    R: Send + Sync + std::fmt::Debug + 'static,
2205{
2206    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_task_set::UpdateTaskSetError, R>) -> Self {
2207        match err {
2208            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2209            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2210                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2211                source: err.into(),
2212            }),
2213        }
2214    }
2215}
2216impl From<crate::operation::update_task_set::UpdateTaskSetError> for Error {
2217    fn from(err: crate::operation::update_task_set::UpdateTaskSetError) -> Self {
2218        match err {
2219            crate::operation::update_task_set::UpdateTaskSetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2220            crate::operation::update_task_set::UpdateTaskSetError::ClientException(inner) => Error::ClientException(inner),
2221            crate::operation::update_task_set::UpdateTaskSetError::ClusterNotFoundException(inner) => Error::ClusterNotFoundException(inner),
2222            crate::operation::update_task_set::UpdateTaskSetError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2223            crate::operation::update_task_set::UpdateTaskSetError::ServerException(inner) => Error::ServerException(inner),
2224            crate::operation::update_task_set::UpdateTaskSetError::ServiceNotActiveException(inner) => Error::ServiceNotActiveException(inner),
2225            crate::operation::update_task_set::UpdateTaskSetError::ServiceNotFoundException(inner) => Error::ServiceNotFoundException(inner),
2226            crate::operation::update_task_set::UpdateTaskSetError::TaskSetNotFoundException(inner) => Error::TaskSetNotFoundException(inner),
2227            crate::operation::update_task_set::UpdateTaskSetError::UnsupportedFeatureException(inner) => Error::UnsupportedFeatureException(inner),
2228            crate::operation::update_task_set::UpdateTaskSetError::Unhandled(inner) => Error::Unhandled(inner),
2229        }
2230    }
2231}
2232impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
2233where
2234    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
2235    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
2236{
2237    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
2238        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2239            meta: ::std::default::Default::default(),
2240            source: err.into(),
2241        })
2242    }
2243}
2244impl ::std::error::Error for Error {
2245    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2246        match self {
2247            Error::AccessDeniedException(inner) => inner.source(),
2248            Error::AttributeLimitExceededException(inner) => inner.source(),
2249            Error::BlockedException(inner) => inner.source(),
2250            Error::ClientException(inner) => inner.source(),
2251            Error::ClusterContainsCapacityProviderException(inner) => inner.source(),
2252            Error::ClusterContainsContainerInstancesException(inner) => inner.source(),
2253            Error::ClusterContainsServicesException(inner) => inner.source(),
2254            Error::ClusterContainsTasksException(inner) => inner.source(),
2255            Error::ClusterNotFoundException(inner) => inner.source(),
2256            Error::ConflictException(inner) => inner.source(),
2257            Error::InvalidParameterException(inner) => inner.source(),
2258            Error::LimitExceededException(inner) => inner.source(),
2259            Error::MissingVersionException(inner) => inner.source(),
2260            Error::NamespaceNotFoundException(inner) => inner.source(),
2261            Error::NoUpdateAvailableException(inner) => inner.source(),
2262            Error::PlatformTaskDefinitionIncompatibilityException(inner) => inner.source(),
2263            Error::PlatformUnknownException(inner) => inner.source(),
2264            Error::ResourceInUseException(inner) => inner.source(),
2265            Error::ResourceNotFoundException(inner) => inner.source(),
2266            Error::ServerException(inner) => inner.source(),
2267            Error::ServiceDeploymentNotFoundException(inner) => inner.source(),
2268            Error::ServiceNotActiveException(inner) => inner.source(),
2269            Error::ServiceNotFoundException(inner) => inner.source(),
2270            Error::TargetNotConnectedException(inner) => inner.source(),
2271            Error::TargetNotFoundException(inner) => inner.source(),
2272            Error::TaskSetNotFoundException(inner) => inner.source(),
2273            Error::UnsupportedFeatureException(inner) => inner.source(),
2274            Error::UpdateInProgressException(inner) => inner.source(),
2275            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2276        }
2277    }
2278}
2279impl ::aws_types::request_id::RequestId for Error {
2280    fn request_id(&self) -> Option<&str> {
2281        match self {
2282            Self::AccessDeniedException(e) => e.request_id(),
2283            Self::AttributeLimitExceededException(e) => e.request_id(),
2284            Self::BlockedException(e) => e.request_id(),
2285            Self::ClientException(e) => e.request_id(),
2286            Self::ClusterContainsCapacityProviderException(e) => e.request_id(),
2287            Self::ClusterContainsContainerInstancesException(e) => e.request_id(),
2288            Self::ClusterContainsServicesException(e) => e.request_id(),
2289            Self::ClusterContainsTasksException(e) => e.request_id(),
2290            Self::ClusterNotFoundException(e) => e.request_id(),
2291            Self::ConflictException(e) => e.request_id(),
2292            Self::InvalidParameterException(e) => e.request_id(),
2293            Self::LimitExceededException(e) => e.request_id(),
2294            Self::MissingVersionException(e) => e.request_id(),
2295            Self::NamespaceNotFoundException(e) => e.request_id(),
2296            Self::NoUpdateAvailableException(e) => e.request_id(),
2297            Self::PlatformTaskDefinitionIncompatibilityException(e) => e.request_id(),
2298            Self::PlatformUnknownException(e) => e.request_id(),
2299            Self::ResourceInUseException(e) => e.request_id(),
2300            Self::ResourceNotFoundException(e) => e.request_id(),
2301            Self::ServerException(e) => e.request_id(),
2302            Self::ServiceDeploymentNotFoundException(e) => e.request_id(),
2303            Self::ServiceNotActiveException(e) => e.request_id(),
2304            Self::ServiceNotFoundException(e) => e.request_id(),
2305            Self::TargetNotConnectedException(e) => e.request_id(),
2306            Self::TargetNotFoundException(e) => e.request_id(),
2307            Self::TaskSetNotFoundException(e) => e.request_id(),
2308            Self::UnsupportedFeatureException(e) => e.request_id(),
2309            Self::UpdateInProgressException(e) => e.request_id(),
2310            Self::Unhandled(e) => e.meta.request_id(),
2311        }
2312    }
2313}