Skip to main content

aws_sdk_devopsagent/
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    /// Access to the requested resource is denied due to insufficient permissions.
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// The request conflicts with the current state of the resource.
9    ConflictException(crate::types::error::ConflictException),
10    /// This exception is thrown when the content size exceeds the allowed limit.
11    ContentSizeExceededException(crate::types::error::ContentSizeExceededException),
12    /// Calls to the customer Identity Center have failed
13    IdentityCenterServiceException(crate::types::error::IdentityCenterServiceException),
14    /// This exception is thrown when an unexpected error occurs in the processing of a request.
15    InternalServerException(crate::types::error::InternalServerException),
16    /// One or more parameters provided in the request are invalid.
17    InvalidParameterException(crate::types::error::InvalidParameterException),
18    /// The requested resource could not be found.
19    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
20    /// The request would exceed the service quota limit.
21    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
22    /// The request was throttled due to too many requests. Please slow down and try again.
23    ThrottlingException(crate::types::error::ThrottlingException),
24    /// A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints.
25    ValidationException(crate::types::error::ValidationException),
26    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
27    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
28    variable wildcard pattern and check `.code()`:
29     \
30       `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
31     \
32    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
33    Unhandled(crate::error::sealed_unhandled::Unhandled),
34}
35impl ::std::fmt::Display for Error {
36    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
37        match self {
38            Error::AccessDeniedException(inner) => inner.fmt(f),
39            Error::ConflictException(inner) => inner.fmt(f),
40            Error::ContentSizeExceededException(inner) => inner.fmt(f),
41            Error::IdentityCenterServiceException(inner) => inner.fmt(f),
42            Error::InternalServerException(inner) => inner.fmt(f),
43            Error::InvalidParameterException(inner) => inner.fmt(f),
44            Error::ResourceNotFoundException(inner) => inner.fmt(f),
45            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
46            Error::ThrottlingException(inner) => inner.fmt(f),
47            Error::ValidationException(inner) => inner.fmt(f),
48            Error::Unhandled(_) => {
49                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
50                    write!(f, "unhandled error ({code})")
51                } else {
52                    f.write_str("unhandled error")
53                }
54            }
55        }
56    }
57}
58impl From<::aws_smithy_types::error::operation::BuildError> for Error {
59    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
60        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
61            source: value.into(),
62            meta: ::std::default::Default::default(),
63        })
64    }
65}
66impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
67    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
68        match self {
69            Self::AccessDeniedException(inner) => inner.meta(),
70            Self::ConflictException(inner) => inner.meta(),
71            Self::ContentSizeExceededException(inner) => inner.meta(),
72            Self::IdentityCenterServiceException(inner) => inner.meta(),
73            Self::InternalServerException(inner) => inner.meta(),
74            Self::InvalidParameterException(inner) => inner.meta(),
75            Self::ResourceNotFoundException(inner) => inner.meta(),
76            Self::ServiceQuotaExceededException(inner) => inner.meta(),
77            Self::ThrottlingException(inner) => inner.meta(),
78            Self::ValidationException(inner) => inner.meta(),
79            Self::Unhandled(inner) => &inner.meta,
80        }
81    }
82}
83impl<R>
84    From<
85        ::aws_smithy_runtime_api::client::result::SdkError<
86            crate::operation::allow_vended_log_delivery_for_resource::AllowVendedLogDeliveryForResourceError,
87            R,
88        >,
89    > for Error
90where
91    R: Send + Sync + std::fmt::Debug + 'static,
92{
93    fn from(
94        err: ::aws_smithy_runtime_api::client::result::SdkError<
95            crate::operation::allow_vended_log_delivery_for_resource::AllowVendedLogDeliveryForResourceError,
96            R,
97        >,
98    ) -> Self {
99        match err {
100            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
101            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
102                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
103                source: err.into(),
104            }),
105        }
106    }
107}
108impl From<crate::operation::allow_vended_log_delivery_for_resource::AllowVendedLogDeliveryForResourceError> for Error {
109    fn from(err: crate::operation::allow_vended_log_delivery_for_resource::AllowVendedLogDeliveryForResourceError) -> Self {
110        match err {
111            crate::operation::allow_vended_log_delivery_for_resource::AllowVendedLogDeliveryForResourceError::AccessDeniedException(inner) => {
112                Error::AccessDeniedException(inner)
113            }
114            crate::operation::allow_vended_log_delivery_for_resource::AllowVendedLogDeliveryForResourceError::ConflictException(inner) => {
115                Error::ConflictException(inner)
116            }
117            crate::operation::allow_vended_log_delivery_for_resource::AllowVendedLogDeliveryForResourceError::ContentSizeExceededException(inner) => {
118                Error::ContentSizeExceededException(inner)
119            }
120            crate::operation::allow_vended_log_delivery_for_resource::AllowVendedLogDeliveryForResourceError::InternalServerException(inner) => {
121                Error::InternalServerException(inner)
122            }
123            crate::operation::allow_vended_log_delivery_for_resource::AllowVendedLogDeliveryForResourceError::InvalidParameterException(inner) => {
124                Error::InvalidParameterException(inner)
125            }
126            crate::operation::allow_vended_log_delivery_for_resource::AllowVendedLogDeliveryForResourceError::ResourceNotFoundException(inner) => {
127                Error::ResourceNotFoundException(inner)
128            }
129            crate::operation::allow_vended_log_delivery_for_resource::AllowVendedLogDeliveryForResourceError::ServiceQuotaExceededException(
130                inner,
131            ) => Error::ServiceQuotaExceededException(inner),
132            crate::operation::allow_vended_log_delivery_for_resource::AllowVendedLogDeliveryForResourceError::ThrottlingException(inner) => {
133                Error::ThrottlingException(inner)
134            }
135            crate::operation::allow_vended_log_delivery_for_resource::AllowVendedLogDeliveryForResourceError::Unhandled(inner) => {
136                Error::Unhandled(inner)
137            }
138        }
139    }
140}
141impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_service::AssociateServiceError, R>> for Error
142where
143    R: Send + Sync + std::fmt::Debug + 'static,
144{
145    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_service::AssociateServiceError, R>) -> Self {
146        match err {
147            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
148            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
149                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
150                source: err.into(),
151            }),
152        }
153    }
154}
155impl From<crate::operation::associate_service::AssociateServiceError> for Error {
156    fn from(err: crate::operation::associate_service::AssociateServiceError) -> Self {
157        match err {
158            crate::operation::associate_service::AssociateServiceError::ConflictException(inner) => Error::ConflictException(inner),
159            crate::operation::associate_service::AssociateServiceError::InternalServerException(inner) => Error::InternalServerException(inner),
160            crate::operation::associate_service::AssociateServiceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
161            crate::operation::associate_service::AssociateServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
162            crate::operation::associate_service::AssociateServiceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
163            crate::operation::associate_service::AssociateServiceError::ValidationException(inner) => Error::ValidationException(inner),
164            crate::operation::associate_service::AssociateServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
165            crate::operation::associate_service::AssociateServiceError::ContentSizeExceededException(inner) => {
166                Error::ContentSizeExceededException(inner)
167            }
168            crate::operation::associate_service::AssociateServiceError::ServiceQuotaExceededException(inner) => {
169                Error::ServiceQuotaExceededException(inner)
170            }
171            crate::operation::associate_service::AssociateServiceError::Unhandled(inner) => Error::Unhandled(inner),
172        }
173    }
174}
175impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent_space::CreateAgentSpaceError, R>> for Error
176where
177    R: Send + Sync + std::fmt::Debug + 'static,
178{
179    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent_space::CreateAgentSpaceError, R>) -> Self {
180        match err {
181            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
182            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
183                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
184                source: err.into(),
185            }),
186        }
187    }
188}
189impl From<crate::operation::create_agent_space::CreateAgentSpaceError> for Error {
190    fn from(err: crate::operation::create_agent_space::CreateAgentSpaceError) -> Self {
191        match err {
192            crate::operation::create_agent_space::CreateAgentSpaceError::ConflictException(inner) => Error::ConflictException(inner),
193            crate::operation::create_agent_space::CreateAgentSpaceError::InternalServerException(inner) => Error::InternalServerException(inner),
194            crate::operation::create_agent_space::CreateAgentSpaceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
195            crate::operation::create_agent_space::CreateAgentSpaceError::ServiceQuotaExceededException(inner) => {
196                Error::ServiceQuotaExceededException(inner)
197            }
198            crate::operation::create_agent_space::CreateAgentSpaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
199            crate::operation::create_agent_space::CreateAgentSpaceError::ValidationException(inner) => Error::ValidationException(inner),
200            crate::operation::create_agent_space::CreateAgentSpaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
201            crate::operation::create_agent_space::CreateAgentSpaceError::ContentSizeExceededException(inner) => {
202                Error::ContentSizeExceededException(inner)
203            }
204            crate::operation::create_agent_space::CreateAgentSpaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
205            crate::operation::create_agent_space::CreateAgentSpaceError::Unhandled(inner) => Error::Unhandled(inner),
206        }
207    }
208}
209impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_backlog_task::CreateBacklogTaskError, R>> for Error
210where
211    R: Send + Sync + std::fmt::Debug + 'static,
212{
213    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_backlog_task::CreateBacklogTaskError, R>) -> Self {
214        match err {
215            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
216            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
217                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
218                source: err.into(),
219            }),
220        }
221    }
222}
223impl From<crate::operation::create_backlog_task::CreateBacklogTaskError> for Error {
224    fn from(err: crate::operation::create_backlog_task::CreateBacklogTaskError) -> Self {
225        match err {
226            crate::operation::create_backlog_task::CreateBacklogTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
227            crate::operation::create_backlog_task::CreateBacklogTaskError::ConflictException(inner) => Error::ConflictException(inner),
228            crate::operation::create_backlog_task::CreateBacklogTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
229            crate::operation::create_backlog_task::CreateBacklogTaskError::ResourceNotFoundException(inner) => {
230                Error::ResourceNotFoundException(inner)
231            }
232            crate::operation::create_backlog_task::CreateBacklogTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
233            crate::operation::create_backlog_task::CreateBacklogTaskError::ValidationException(inner) => Error::ValidationException(inner),
234            crate::operation::create_backlog_task::CreateBacklogTaskError::ContentSizeExceededException(inner) => {
235                Error::ContentSizeExceededException(inner)
236            }
237            crate::operation::create_backlog_task::CreateBacklogTaskError::InvalidParameterException(inner) => {
238                Error::InvalidParameterException(inner)
239            }
240            crate::operation::create_backlog_task::CreateBacklogTaskError::ServiceQuotaExceededException(inner) => {
241                Error::ServiceQuotaExceededException(inner)
242            }
243            crate::operation::create_backlog_task::CreateBacklogTaskError::Unhandled(inner) => Error::Unhandled(inner),
244        }
245    }
246}
247impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_chat::CreateChatError, R>> for Error
248where
249    R: Send + Sync + std::fmt::Debug + 'static,
250{
251    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_chat::CreateChatError, R>) -> Self {
252        match err {
253            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
254            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
255                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
256                source: err.into(),
257            }),
258        }
259    }
260}
261impl From<crate::operation::create_chat::CreateChatError> for Error {
262    fn from(err: crate::operation::create_chat::CreateChatError) -> Self {
263        match err {
264            crate::operation::create_chat::CreateChatError::InternalServerException(inner) => Error::InternalServerException(inner),
265            crate::operation::create_chat::CreateChatError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
266            crate::operation::create_chat::CreateChatError::ThrottlingException(inner) => Error::ThrottlingException(inner),
267            crate::operation::create_chat::CreateChatError::ValidationException(inner) => Error::ValidationException(inner),
268            crate::operation::create_chat::CreateChatError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
269            crate::operation::create_chat::CreateChatError::ConflictException(inner) => Error::ConflictException(inner),
270            crate::operation::create_chat::CreateChatError::ContentSizeExceededException(inner) => Error::ContentSizeExceededException(inner),
271            crate::operation::create_chat::CreateChatError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
272            crate::operation::create_chat::CreateChatError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
273            crate::operation::create_chat::CreateChatError::Unhandled(inner) => Error::Unhandled(inner),
274        }
275    }
276}
277impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_private_connection::CreatePrivateConnectionError, R>>
278    for Error
279where
280    R: Send + Sync + std::fmt::Debug + 'static,
281{
282    fn from(
283        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_private_connection::CreatePrivateConnectionError, R>,
284    ) -> Self {
285        match err {
286            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
287            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
288                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
289                source: err.into(),
290            }),
291        }
292    }
293}
294impl From<crate::operation::create_private_connection::CreatePrivateConnectionError> for Error {
295    fn from(err: crate::operation::create_private_connection::CreatePrivateConnectionError) -> Self {
296        match err {
297            crate::operation::create_private_connection::CreatePrivateConnectionError::AccessDeniedException(inner) => {
298                Error::AccessDeniedException(inner)
299            }
300            crate::operation::create_private_connection::CreatePrivateConnectionError::InternalServerException(inner) => {
301                Error::InternalServerException(inner)
302            }
303            crate::operation::create_private_connection::CreatePrivateConnectionError::ThrottlingException(inner) => {
304                Error::ThrottlingException(inner)
305            }
306            crate::operation::create_private_connection::CreatePrivateConnectionError::ValidationException(inner) => {
307                Error::ValidationException(inner)
308            }
309            crate::operation::create_private_connection::CreatePrivateConnectionError::ConflictException(inner) => Error::ConflictException(inner),
310            crate::operation::create_private_connection::CreatePrivateConnectionError::ContentSizeExceededException(inner) => {
311                Error::ContentSizeExceededException(inner)
312            }
313            crate::operation::create_private_connection::CreatePrivateConnectionError::InvalidParameterException(inner) => {
314                Error::InvalidParameterException(inner)
315            }
316            crate::operation::create_private_connection::CreatePrivateConnectionError::ResourceNotFoundException(inner) => {
317                Error::ResourceNotFoundException(inner)
318            }
319            crate::operation::create_private_connection::CreatePrivateConnectionError::ServiceQuotaExceededException(inner) => {
320                Error::ServiceQuotaExceededException(inner)
321            }
322            crate::operation::create_private_connection::CreatePrivateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
323        }
324    }
325}
326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent_space::DeleteAgentSpaceError, R>> for Error
327where
328    R: Send + Sync + std::fmt::Debug + 'static,
329{
330    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent_space::DeleteAgentSpaceError, R>) -> Self {
331        match err {
332            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
333            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
334                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
335                source: err.into(),
336            }),
337        }
338    }
339}
340impl From<crate::operation::delete_agent_space::DeleteAgentSpaceError> for Error {
341    fn from(err: crate::operation::delete_agent_space::DeleteAgentSpaceError) -> Self {
342        match err {
343            crate::operation::delete_agent_space::DeleteAgentSpaceError::ConflictException(inner) => Error::ConflictException(inner),
344            crate::operation::delete_agent_space::DeleteAgentSpaceError::InternalServerException(inner) => Error::InternalServerException(inner),
345            crate::operation::delete_agent_space::DeleteAgentSpaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
346            crate::operation::delete_agent_space::DeleteAgentSpaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
347            crate::operation::delete_agent_space::DeleteAgentSpaceError::ValidationException(inner) => Error::ValidationException(inner),
348            crate::operation::delete_agent_space::DeleteAgentSpaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
349            crate::operation::delete_agent_space::DeleteAgentSpaceError::ContentSizeExceededException(inner) => {
350                Error::ContentSizeExceededException(inner)
351            }
352            crate::operation::delete_agent_space::DeleteAgentSpaceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
353            crate::operation::delete_agent_space::DeleteAgentSpaceError::ServiceQuotaExceededException(inner) => {
354                Error::ServiceQuotaExceededException(inner)
355            }
356            crate::operation::delete_agent_space::DeleteAgentSpaceError::Unhandled(inner) => Error::Unhandled(inner),
357        }
358    }
359}
360impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_private_connection::DeletePrivateConnectionError, R>>
361    for Error
362where
363    R: Send + Sync + std::fmt::Debug + 'static,
364{
365    fn from(
366        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_private_connection::DeletePrivateConnectionError, R>,
367    ) -> Self {
368        match err {
369            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
370            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
371                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
372                source: err.into(),
373            }),
374        }
375    }
376}
377impl From<crate::operation::delete_private_connection::DeletePrivateConnectionError> for Error {
378    fn from(err: crate::operation::delete_private_connection::DeletePrivateConnectionError) -> Self {
379        match err {
380            crate::operation::delete_private_connection::DeletePrivateConnectionError::AccessDeniedException(inner) => {
381                Error::AccessDeniedException(inner)
382            }
383            crate::operation::delete_private_connection::DeletePrivateConnectionError::InternalServerException(inner) => {
384                Error::InternalServerException(inner)
385            }
386            crate::operation::delete_private_connection::DeletePrivateConnectionError::ResourceNotFoundException(inner) => {
387                Error::ResourceNotFoundException(inner)
388            }
389            crate::operation::delete_private_connection::DeletePrivateConnectionError::ThrottlingException(inner) => {
390                Error::ThrottlingException(inner)
391            }
392            crate::operation::delete_private_connection::DeletePrivateConnectionError::ValidationException(inner) => {
393                Error::ValidationException(inner)
394            }
395            crate::operation::delete_private_connection::DeletePrivateConnectionError::ConflictException(inner) => Error::ConflictException(inner),
396            crate::operation::delete_private_connection::DeletePrivateConnectionError::ContentSizeExceededException(inner) => {
397                Error::ContentSizeExceededException(inner)
398            }
399            crate::operation::delete_private_connection::DeletePrivateConnectionError::InvalidParameterException(inner) => {
400                Error::InvalidParameterException(inner)
401            }
402            crate::operation::delete_private_connection::DeletePrivateConnectionError::ServiceQuotaExceededException(inner) => {
403                Error::ServiceQuotaExceededException(inner)
404            }
405            crate::operation::delete_private_connection::DeletePrivateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
406        }
407    }
408}
409impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_service::DeregisterServiceError, R>> for Error
410where
411    R: Send + Sync + std::fmt::Debug + 'static,
412{
413    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_service::DeregisterServiceError, R>) -> Self {
414        match err {
415            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
416            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
417                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
418                source: err.into(),
419            }),
420        }
421    }
422}
423impl From<crate::operation::deregister_service::DeregisterServiceError> for Error {
424    fn from(err: crate::operation::deregister_service::DeregisterServiceError) -> Self {
425        match err {
426            crate::operation::deregister_service::DeregisterServiceError::ConflictException(inner) => Error::ConflictException(inner),
427            crate::operation::deregister_service::DeregisterServiceError::InternalServerException(inner) => Error::InternalServerException(inner),
428            crate::operation::deregister_service::DeregisterServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
429            crate::operation::deregister_service::DeregisterServiceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
430            crate::operation::deregister_service::DeregisterServiceError::ValidationException(inner) => Error::ValidationException(inner),
431            crate::operation::deregister_service::DeregisterServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
432            crate::operation::deregister_service::DeregisterServiceError::ContentSizeExceededException(inner) => {
433                Error::ContentSizeExceededException(inner)
434            }
435            crate::operation::deregister_service::DeregisterServiceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
436            crate::operation::deregister_service::DeregisterServiceError::ServiceQuotaExceededException(inner) => {
437                Error::ServiceQuotaExceededException(inner)
438            }
439            crate::operation::deregister_service::DeregisterServiceError::Unhandled(inner) => Error::Unhandled(inner),
440        }
441    }
442}
443impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_private_connection::DescribePrivateConnectionError, R>>
444    for Error
445where
446    R: Send + Sync + std::fmt::Debug + 'static,
447{
448    fn from(
449        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_private_connection::DescribePrivateConnectionError, R>,
450    ) -> Self {
451        match err {
452            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
453            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
454                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
455                source: err.into(),
456            }),
457        }
458    }
459}
460impl From<crate::operation::describe_private_connection::DescribePrivateConnectionError> for Error {
461    fn from(err: crate::operation::describe_private_connection::DescribePrivateConnectionError) -> Self {
462        match err {
463            crate::operation::describe_private_connection::DescribePrivateConnectionError::AccessDeniedException(inner) => {
464                Error::AccessDeniedException(inner)
465            }
466            crate::operation::describe_private_connection::DescribePrivateConnectionError::InternalServerException(inner) => {
467                Error::InternalServerException(inner)
468            }
469            crate::operation::describe_private_connection::DescribePrivateConnectionError::ResourceNotFoundException(inner) => {
470                Error::ResourceNotFoundException(inner)
471            }
472            crate::operation::describe_private_connection::DescribePrivateConnectionError::ThrottlingException(inner) => {
473                Error::ThrottlingException(inner)
474            }
475            crate::operation::describe_private_connection::DescribePrivateConnectionError::ValidationException(inner) => {
476                Error::ValidationException(inner)
477            }
478            crate::operation::describe_private_connection::DescribePrivateConnectionError::ConflictException(inner) => {
479                Error::ConflictException(inner)
480            }
481            crate::operation::describe_private_connection::DescribePrivateConnectionError::ContentSizeExceededException(inner) => {
482                Error::ContentSizeExceededException(inner)
483            }
484            crate::operation::describe_private_connection::DescribePrivateConnectionError::InvalidParameterException(inner) => {
485                Error::InvalidParameterException(inner)
486            }
487            crate::operation::describe_private_connection::DescribePrivateConnectionError::ServiceQuotaExceededException(inner) => {
488                Error::ServiceQuotaExceededException(inner)
489            }
490            crate::operation::describe_private_connection::DescribePrivateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
491        }
492    }
493}
494impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_support_level::DescribeSupportLevelError, R>> for Error
495where
496    R: Send + Sync + std::fmt::Debug + 'static,
497{
498    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_support_level::DescribeSupportLevelError, R>) -> Self {
499        match err {
500            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
501            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
502                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
503                source: err.into(),
504            }),
505        }
506    }
507}
508impl From<crate::operation::describe_support_level::DescribeSupportLevelError> for Error {
509    fn from(err: crate::operation::describe_support_level::DescribeSupportLevelError) -> Self {
510        match err {
511            crate::operation::describe_support_level::DescribeSupportLevelError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
512            crate::operation::describe_support_level::DescribeSupportLevelError::InternalServerException(inner) => {
513                Error::InternalServerException(inner)
514            }
515            crate::operation::describe_support_level::DescribeSupportLevelError::ResourceNotFoundException(inner) => {
516                Error::ResourceNotFoundException(inner)
517            }
518            crate::operation::describe_support_level::DescribeSupportLevelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
519            crate::operation::describe_support_level::DescribeSupportLevelError::ValidationException(inner) => Error::ValidationException(inner),
520            crate::operation::describe_support_level::DescribeSupportLevelError::ConflictException(inner) => Error::ConflictException(inner),
521            crate::operation::describe_support_level::DescribeSupportLevelError::ContentSizeExceededException(inner) => {
522                Error::ContentSizeExceededException(inner)
523            }
524            crate::operation::describe_support_level::DescribeSupportLevelError::InvalidParameterException(inner) => {
525                Error::InvalidParameterException(inner)
526            }
527            crate::operation::describe_support_level::DescribeSupportLevelError::ServiceQuotaExceededException(inner) => {
528                Error::ServiceQuotaExceededException(inner)
529            }
530            crate::operation::describe_support_level::DescribeSupportLevelError::Unhandled(inner) => Error::Unhandled(inner),
531        }
532    }
533}
534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_operator_app::DisableOperatorAppError, R>> for Error
535where
536    R: Send + Sync + std::fmt::Debug + 'static,
537{
538    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_operator_app::DisableOperatorAppError, R>) -> Self {
539        match err {
540            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
541            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
542                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
543                source: err.into(),
544            }),
545        }
546    }
547}
548impl From<crate::operation::disable_operator_app::DisableOperatorAppError> for Error {
549    fn from(err: crate::operation::disable_operator_app::DisableOperatorAppError) -> Self {
550        match err {
551            crate::operation::disable_operator_app::DisableOperatorAppError::IdentityCenterServiceException(inner) => {
552                Error::IdentityCenterServiceException(inner)
553            }
554            crate::operation::disable_operator_app::DisableOperatorAppError::InternalServerException(inner) => Error::InternalServerException(inner),
555            crate::operation::disable_operator_app::DisableOperatorAppError::ThrottlingException(inner) => Error::ThrottlingException(inner),
556            crate::operation::disable_operator_app::DisableOperatorAppError::ValidationException(inner) => Error::ValidationException(inner),
557            crate::operation::disable_operator_app::DisableOperatorAppError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
558            crate::operation::disable_operator_app::DisableOperatorAppError::ConflictException(inner) => Error::ConflictException(inner),
559            crate::operation::disable_operator_app::DisableOperatorAppError::ContentSizeExceededException(inner) => {
560                Error::ContentSizeExceededException(inner)
561            }
562            crate::operation::disable_operator_app::DisableOperatorAppError::InvalidParameterException(inner) => {
563                Error::InvalidParameterException(inner)
564            }
565            crate::operation::disable_operator_app::DisableOperatorAppError::ResourceNotFoundException(inner) => {
566                Error::ResourceNotFoundException(inner)
567            }
568            crate::operation::disable_operator_app::DisableOperatorAppError::ServiceQuotaExceededException(inner) => {
569                Error::ServiceQuotaExceededException(inner)
570            }
571            crate::operation::disable_operator_app::DisableOperatorAppError::Unhandled(inner) => Error::Unhandled(inner),
572        }
573    }
574}
575impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_service::DisassociateServiceError, R>> for Error
576where
577    R: Send + Sync + std::fmt::Debug + 'static,
578{
579    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_service::DisassociateServiceError, R>) -> Self {
580        match err {
581            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
582            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
583                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
584                source: err.into(),
585            }),
586        }
587    }
588}
589impl From<crate::operation::disassociate_service::DisassociateServiceError> for Error {
590    fn from(err: crate::operation::disassociate_service::DisassociateServiceError) -> Self {
591        match err {
592            crate::operation::disassociate_service::DisassociateServiceError::InternalServerException(inner) => Error::InternalServerException(inner),
593            crate::operation::disassociate_service::DisassociateServiceError::ResourceNotFoundException(inner) => {
594                Error::ResourceNotFoundException(inner)
595            }
596            crate::operation::disassociate_service::DisassociateServiceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
597            crate::operation::disassociate_service::DisassociateServiceError::ValidationException(inner) => Error::ValidationException(inner),
598            crate::operation::disassociate_service::DisassociateServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
599            crate::operation::disassociate_service::DisassociateServiceError::ConflictException(inner) => Error::ConflictException(inner),
600            crate::operation::disassociate_service::DisassociateServiceError::ContentSizeExceededException(inner) => {
601                Error::ContentSizeExceededException(inner)
602            }
603            crate::operation::disassociate_service::DisassociateServiceError::InvalidParameterException(inner) => {
604                Error::InvalidParameterException(inner)
605            }
606            crate::operation::disassociate_service::DisassociateServiceError::ServiceQuotaExceededException(inner) => {
607                Error::ServiceQuotaExceededException(inner)
608            }
609            crate::operation::disassociate_service::DisassociateServiceError::Unhandled(inner) => Error::Unhandled(inner),
610        }
611    }
612}
613impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_operator_app::EnableOperatorAppError, R>> for Error
614where
615    R: Send + Sync + std::fmt::Debug + 'static,
616{
617    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_operator_app::EnableOperatorAppError, R>) -> Self {
618        match err {
619            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
620            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
621                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
622                source: err.into(),
623            }),
624        }
625    }
626}
627impl From<crate::operation::enable_operator_app::EnableOperatorAppError> for Error {
628    fn from(err: crate::operation::enable_operator_app::EnableOperatorAppError) -> Self {
629        match err {
630            crate::operation::enable_operator_app::EnableOperatorAppError::IdentityCenterServiceException(inner) => {
631                Error::IdentityCenterServiceException(inner)
632            }
633            crate::operation::enable_operator_app::EnableOperatorAppError::InternalServerException(inner) => Error::InternalServerException(inner),
634            crate::operation::enable_operator_app::EnableOperatorAppError::ThrottlingException(inner) => Error::ThrottlingException(inner),
635            crate::operation::enable_operator_app::EnableOperatorAppError::ValidationException(inner) => Error::ValidationException(inner),
636            crate::operation::enable_operator_app::EnableOperatorAppError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
637            crate::operation::enable_operator_app::EnableOperatorAppError::ConflictException(inner) => Error::ConflictException(inner),
638            crate::operation::enable_operator_app::EnableOperatorAppError::ContentSizeExceededException(inner) => {
639                Error::ContentSizeExceededException(inner)
640            }
641            crate::operation::enable_operator_app::EnableOperatorAppError::InvalidParameterException(inner) => {
642                Error::InvalidParameterException(inner)
643            }
644            crate::operation::enable_operator_app::EnableOperatorAppError::ResourceNotFoundException(inner) => {
645                Error::ResourceNotFoundException(inner)
646            }
647            crate::operation::enable_operator_app::EnableOperatorAppError::ServiceQuotaExceededException(inner) => {
648                Error::ServiceQuotaExceededException(inner)
649            }
650            crate::operation::enable_operator_app::EnableOperatorAppError::Unhandled(inner) => Error::Unhandled(inner),
651        }
652    }
653}
654impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::end_chat_for_case::EndChatForCaseError, R>> for Error
655where
656    R: Send + Sync + std::fmt::Debug + 'static,
657{
658    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::end_chat_for_case::EndChatForCaseError, R>) -> Self {
659        match err {
660            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
661            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
662                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
663                source: err.into(),
664            }),
665        }
666    }
667}
668impl From<crate::operation::end_chat_for_case::EndChatForCaseError> for Error {
669    fn from(err: crate::operation::end_chat_for_case::EndChatForCaseError) -> Self {
670        match err {
671            crate::operation::end_chat_for_case::EndChatForCaseError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
672            crate::operation::end_chat_for_case::EndChatForCaseError::InternalServerException(inner) => Error::InternalServerException(inner),
673            crate::operation::end_chat_for_case::EndChatForCaseError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
674            crate::operation::end_chat_for_case::EndChatForCaseError::ThrottlingException(inner) => Error::ThrottlingException(inner),
675            crate::operation::end_chat_for_case::EndChatForCaseError::ValidationException(inner) => Error::ValidationException(inner),
676            crate::operation::end_chat_for_case::EndChatForCaseError::ConflictException(inner) => Error::ConflictException(inner),
677            crate::operation::end_chat_for_case::EndChatForCaseError::ContentSizeExceededException(inner) => {
678                Error::ContentSizeExceededException(inner)
679            }
680            crate::operation::end_chat_for_case::EndChatForCaseError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
681            crate::operation::end_chat_for_case::EndChatForCaseError::ServiceQuotaExceededException(inner) => {
682                Error::ServiceQuotaExceededException(inner)
683            }
684            crate::operation::end_chat_for_case::EndChatForCaseError::Unhandled(inner) => Error::Unhandled(inner),
685        }
686    }
687}
688impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_usage::GetAccountUsageError, R>> for Error
689where
690    R: Send + Sync + std::fmt::Debug + 'static,
691{
692    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_usage::GetAccountUsageError, R>) -> Self {
693        match err {
694            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
695            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
696                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
697                source: err.into(),
698            }),
699        }
700    }
701}
702impl From<crate::operation::get_account_usage::GetAccountUsageError> for Error {
703    fn from(err: crate::operation::get_account_usage::GetAccountUsageError) -> Self {
704        match err {
705            crate::operation::get_account_usage::GetAccountUsageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
706            crate::operation::get_account_usage::GetAccountUsageError::InternalServerException(inner) => Error::InternalServerException(inner),
707            crate::operation::get_account_usage::GetAccountUsageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
708            crate::operation::get_account_usage::GetAccountUsageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
709            crate::operation::get_account_usage::GetAccountUsageError::ValidationException(inner) => Error::ValidationException(inner),
710            crate::operation::get_account_usage::GetAccountUsageError::ConflictException(inner) => Error::ConflictException(inner),
711            crate::operation::get_account_usage::GetAccountUsageError::ContentSizeExceededException(inner) => {
712                Error::ContentSizeExceededException(inner)
713            }
714            crate::operation::get_account_usage::GetAccountUsageError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
715            crate::operation::get_account_usage::GetAccountUsageError::ServiceQuotaExceededException(inner) => {
716                Error::ServiceQuotaExceededException(inner)
717            }
718            crate::operation::get_account_usage::GetAccountUsageError::Unhandled(inner) => Error::Unhandled(inner),
719        }
720    }
721}
722impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_agent_space::GetAgentSpaceError, R>> for Error
723where
724    R: Send + Sync + std::fmt::Debug + 'static,
725{
726    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_agent_space::GetAgentSpaceError, R>) -> Self {
727        match err {
728            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
729            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
730                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
731                source: err.into(),
732            }),
733        }
734    }
735}
736impl From<crate::operation::get_agent_space::GetAgentSpaceError> for Error {
737    fn from(err: crate::operation::get_agent_space::GetAgentSpaceError) -> Self {
738        match err {
739            crate::operation::get_agent_space::GetAgentSpaceError::InternalServerException(inner) => Error::InternalServerException(inner),
740            crate::operation::get_agent_space::GetAgentSpaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
741            crate::operation::get_agent_space::GetAgentSpaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
742            crate::operation::get_agent_space::GetAgentSpaceError::ValidationException(inner) => Error::ValidationException(inner),
743            crate::operation::get_agent_space::GetAgentSpaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
744            crate::operation::get_agent_space::GetAgentSpaceError::ConflictException(inner) => Error::ConflictException(inner),
745            crate::operation::get_agent_space::GetAgentSpaceError::ContentSizeExceededException(inner) => Error::ContentSizeExceededException(inner),
746            crate::operation::get_agent_space::GetAgentSpaceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
747            crate::operation::get_agent_space::GetAgentSpaceError::ServiceQuotaExceededException(inner) => {
748                Error::ServiceQuotaExceededException(inner)
749            }
750            crate::operation::get_agent_space::GetAgentSpaceError::Unhandled(inner) => Error::Unhandled(inner),
751        }
752    }
753}
754impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_association::GetAssociationError, R>> for Error
755where
756    R: Send + Sync + std::fmt::Debug + 'static,
757{
758    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_association::GetAssociationError, R>) -> Self {
759        match err {
760            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
761            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
762                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
763                source: err.into(),
764            }),
765        }
766    }
767}
768impl From<crate::operation::get_association::GetAssociationError> for Error {
769    fn from(err: crate::operation::get_association::GetAssociationError) -> Self {
770        match err {
771            crate::operation::get_association::GetAssociationError::InternalServerException(inner) => Error::InternalServerException(inner),
772            crate::operation::get_association::GetAssociationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
773            crate::operation::get_association::GetAssociationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
774            crate::operation::get_association::GetAssociationError::ValidationException(inner) => Error::ValidationException(inner),
775            crate::operation::get_association::GetAssociationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
776            crate::operation::get_association::GetAssociationError::ConflictException(inner) => Error::ConflictException(inner),
777            crate::operation::get_association::GetAssociationError::ContentSizeExceededException(inner) => Error::ContentSizeExceededException(inner),
778            crate::operation::get_association::GetAssociationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
779            crate::operation::get_association::GetAssociationError::ServiceQuotaExceededException(inner) => {
780                Error::ServiceQuotaExceededException(inner)
781            }
782            crate::operation::get_association::GetAssociationError::Unhandled(inner) => Error::Unhandled(inner),
783        }
784    }
785}
786impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_backlog_task::GetBacklogTaskError, R>> for Error
787where
788    R: Send + Sync + std::fmt::Debug + 'static,
789{
790    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_backlog_task::GetBacklogTaskError, R>) -> Self {
791        match err {
792            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
793            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
794                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
795                source: err.into(),
796            }),
797        }
798    }
799}
800impl From<crate::operation::get_backlog_task::GetBacklogTaskError> for Error {
801    fn from(err: crate::operation::get_backlog_task::GetBacklogTaskError) -> Self {
802        match err {
803            crate::operation::get_backlog_task::GetBacklogTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
804            crate::operation::get_backlog_task::GetBacklogTaskError::ConflictException(inner) => Error::ConflictException(inner),
805            crate::operation::get_backlog_task::GetBacklogTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
806            crate::operation::get_backlog_task::GetBacklogTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
807            crate::operation::get_backlog_task::GetBacklogTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
808            crate::operation::get_backlog_task::GetBacklogTaskError::ValidationException(inner) => Error::ValidationException(inner),
809            crate::operation::get_backlog_task::GetBacklogTaskError::ContentSizeExceededException(inner) => {
810                Error::ContentSizeExceededException(inner)
811            }
812            crate::operation::get_backlog_task::GetBacklogTaskError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
813            crate::operation::get_backlog_task::GetBacklogTaskError::ServiceQuotaExceededException(inner) => {
814                Error::ServiceQuotaExceededException(inner)
815            }
816            crate::operation::get_backlog_task::GetBacklogTaskError::Unhandled(inner) => Error::Unhandled(inner),
817        }
818    }
819}
820impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_operator_app::GetOperatorAppError, R>> for Error
821where
822    R: Send + Sync + std::fmt::Debug + 'static,
823{
824    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_operator_app::GetOperatorAppError, R>) -> Self {
825        match err {
826            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
827            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
828                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
829                source: err.into(),
830            }),
831        }
832    }
833}
834impl From<crate::operation::get_operator_app::GetOperatorAppError> for Error {
835    fn from(err: crate::operation::get_operator_app::GetOperatorAppError) -> Self {
836        match err {
837            crate::operation::get_operator_app::GetOperatorAppError::InternalServerException(inner) => Error::InternalServerException(inner),
838            crate::operation::get_operator_app::GetOperatorAppError::ThrottlingException(inner) => Error::ThrottlingException(inner),
839            crate::operation::get_operator_app::GetOperatorAppError::ValidationException(inner) => Error::ValidationException(inner),
840            crate::operation::get_operator_app::GetOperatorAppError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
841            crate::operation::get_operator_app::GetOperatorAppError::ConflictException(inner) => Error::ConflictException(inner),
842            crate::operation::get_operator_app::GetOperatorAppError::ContentSizeExceededException(inner) => {
843                Error::ContentSizeExceededException(inner)
844            }
845            crate::operation::get_operator_app::GetOperatorAppError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
846            crate::operation::get_operator_app::GetOperatorAppError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
847            crate::operation::get_operator_app::GetOperatorAppError::ServiceQuotaExceededException(inner) => {
848                Error::ServiceQuotaExceededException(inner)
849            }
850            crate::operation::get_operator_app::GetOperatorAppError::Unhandled(inner) => Error::Unhandled(inner),
851        }
852    }
853}
854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_recommendation::GetRecommendationError, R>> for Error
855where
856    R: Send + Sync + std::fmt::Debug + 'static,
857{
858    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_recommendation::GetRecommendationError, R>) -> Self {
859        match err {
860            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
861            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
862                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
863                source: err.into(),
864            }),
865        }
866    }
867}
868impl From<crate::operation::get_recommendation::GetRecommendationError> for Error {
869    fn from(err: crate::operation::get_recommendation::GetRecommendationError) -> Self {
870        match err {
871            crate::operation::get_recommendation::GetRecommendationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
872            crate::operation::get_recommendation::GetRecommendationError::InternalServerException(inner) => Error::InternalServerException(inner),
873            crate::operation::get_recommendation::GetRecommendationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
874            crate::operation::get_recommendation::GetRecommendationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
875            crate::operation::get_recommendation::GetRecommendationError::ValidationException(inner) => Error::ValidationException(inner),
876            crate::operation::get_recommendation::GetRecommendationError::ConflictException(inner) => Error::ConflictException(inner),
877            crate::operation::get_recommendation::GetRecommendationError::ContentSizeExceededException(inner) => {
878                Error::ContentSizeExceededException(inner)
879            }
880            crate::operation::get_recommendation::GetRecommendationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
881            crate::operation::get_recommendation::GetRecommendationError::ServiceQuotaExceededException(inner) => {
882                Error::ServiceQuotaExceededException(inner)
883            }
884            crate::operation::get_recommendation::GetRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
885        }
886    }
887}
888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service::GetServiceError, R>> for Error
889where
890    R: Send + Sync + std::fmt::Debug + 'static,
891{
892    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_service::GetServiceError, R>) -> Self {
893        match err {
894            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
895            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
896                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
897                source: err.into(),
898            }),
899        }
900    }
901}
902impl From<crate::operation::get_service::GetServiceError> for Error {
903    fn from(err: crate::operation::get_service::GetServiceError) -> Self {
904        match err {
905            crate::operation::get_service::GetServiceError::InternalServerException(inner) => Error::InternalServerException(inner),
906            crate::operation::get_service::GetServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
907            crate::operation::get_service::GetServiceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
908            crate::operation::get_service::GetServiceError::ValidationException(inner) => Error::ValidationException(inner),
909            crate::operation::get_service::GetServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
910            crate::operation::get_service::GetServiceError::ConflictException(inner) => Error::ConflictException(inner),
911            crate::operation::get_service::GetServiceError::ContentSizeExceededException(inner) => Error::ContentSizeExceededException(inner),
912            crate::operation::get_service::GetServiceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
913            crate::operation::get_service::GetServiceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
914            crate::operation::get_service::GetServiceError::Unhandled(inner) => Error::Unhandled(inner),
915        }
916    }
917}
918impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::initiate_chat_for_case::InitiateChatForCaseError, R>> for Error
919where
920    R: Send + Sync + std::fmt::Debug + 'static,
921{
922    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::initiate_chat_for_case::InitiateChatForCaseError, R>) -> Self {
923        match err {
924            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
925            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
926                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
927                source: err.into(),
928            }),
929        }
930    }
931}
932impl From<crate::operation::initiate_chat_for_case::InitiateChatForCaseError> for Error {
933    fn from(err: crate::operation::initiate_chat_for_case::InitiateChatForCaseError) -> Self {
934        match err {
935            crate::operation::initiate_chat_for_case::InitiateChatForCaseError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
936            crate::operation::initiate_chat_for_case::InitiateChatForCaseError::ConflictException(inner) => Error::ConflictException(inner),
937            crate::operation::initiate_chat_for_case::InitiateChatForCaseError::InternalServerException(inner) => {
938                Error::InternalServerException(inner)
939            }
940            crate::operation::initiate_chat_for_case::InitiateChatForCaseError::ResourceNotFoundException(inner) => {
941                Error::ResourceNotFoundException(inner)
942            }
943            crate::operation::initiate_chat_for_case::InitiateChatForCaseError::ThrottlingException(inner) => Error::ThrottlingException(inner),
944            crate::operation::initiate_chat_for_case::InitiateChatForCaseError::ValidationException(inner) => Error::ValidationException(inner),
945            crate::operation::initiate_chat_for_case::InitiateChatForCaseError::ContentSizeExceededException(inner) => {
946                Error::ContentSizeExceededException(inner)
947            }
948            crate::operation::initiate_chat_for_case::InitiateChatForCaseError::InvalidParameterException(inner) => {
949                Error::InvalidParameterException(inner)
950            }
951            crate::operation::initiate_chat_for_case::InitiateChatForCaseError::ServiceQuotaExceededException(inner) => {
952                Error::ServiceQuotaExceededException(inner)
953            }
954            crate::operation::initiate_chat_for_case::InitiateChatForCaseError::Unhandled(inner) => Error::Unhandled(inner),
955        }
956    }
957}
958impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_spaces::ListAgentSpacesError, R>> for Error
959where
960    R: Send + Sync + std::fmt::Debug + 'static,
961{
962    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agent_spaces::ListAgentSpacesError, R>) -> Self {
963        match err {
964            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
965            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
966                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
967                source: err.into(),
968            }),
969        }
970    }
971}
972impl From<crate::operation::list_agent_spaces::ListAgentSpacesError> for Error {
973    fn from(err: crate::operation::list_agent_spaces::ListAgentSpacesError) -> Self {
974        match err {
975            crate::operation::list_agent_spaces::ListAgentSpacesError::InternalServerException(inner) => Error::InternalServerException(inner),
976            crate::operation::list_agent_spaces::ListAgentSpacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
977            crate::operation::list_agent_spaces::ListAgentSpacesError::ValidationException(inner) => Error::ValidationException(inner),
978            crate::operation::list_agent_spaces::ListAgentSpacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
979            crate::operation::list_agent_spaces::ListAgentSpacesError::ConflictException(inner) => Error::ConflictException(inner),
980            crate::operation::list_agent_spaces::ListAgentSpacesError::ContentSizeExceededException(inner) => {
981                Error::ContentSizeExceededException(inner)
982            }
983            crate::operation::list_agent_spaces::ListAgentSpacesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
984            crate::operation::list_agent_spaces::ListAgentSpacesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
985            crate::operation::list_agent_spaces::ListAgentSpacesError::ServiceQuotaExceededException(inner) => {
986                Error::ServiceQuotaExceededException(inner)
987            }
988            crate::operation::list_agent_spaces::ListAgentSpacesError::Unhandled(inner) => Error::Unhandled(inner),
989        }
990    }
991}
992impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associations::ListAssociationsError, R>> for Error
993where
994    R: Send + Sync + std::fmt::Debug + 'static,
995{
996    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associations::ListAssociationsError, R>) -> Self {
997        match err {
998            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
999            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1000                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1001                source: err.into(),
1002            }),
1003        }
1004    }
1005}
1006impl From<crate::operation::list_associations::ListAssociationsError> for Error {
1007    fn from(err: crate::operation::list_associations::ListAssociationsError) -> Self {
1008        match err {
1009            crate::operation::list_associations::ListAssociationsError::InternalServerException(inner) => Error::InternalServerException(inner),
1010            crate::operation::list_associations::ListAssociationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1011            crate::operation::list_associations::ListAssociationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1012            crate::operation::list_associations::ListAssociationsError::ValidationException(inner) => Error::ValidationException(inner),
1013            crate::operation::list_associations::ListAssociationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1014            crate::operation::list_associations::ListAssociationsError::ConflictException(inner) => Error::ConflictException(inner),
1015            crate::operation::list_associations::ListAssociationsError::ContentSizeExceededException(inner) => {
1016                Error::ContentSizeExceededException(inner)
1017            }
1018            crate::operation::list_associations::ListAssociationsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1019            crate::operation::list_associations::ListAssociationsError::ServiceQuotaExceededException(inner) => {
1020                Error::ServiceQuotaExceededException(inner)
1021            }
1022            crate::operation::list_associations::ListAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1023        }
1024    }
1025}
1026impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backlog_tasks::ListBacklogTasksError, R>> for Error
1027where
1028    R: Send + Sync + std::fmt::Debug + 'static,
1029{
1030    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backlog_tasks::ListBacklogTasksError, R>) -> Self {
1031        match err {
1032            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1033            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1034                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1035                source: err.into(),
1036            }),
1037        }
1038    }
1039}
1040impl From<crate::operation::list_backlog_tasks::ListBacklogTasksError> for Error {
1041    fn from(err: crate::operation::list_backlog_tasks::ListBacklogTasksError) -> Self {
1042        match err {
1043            crate::operation::list_backlog_tasks::ListBacklogTasksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1044            crate::operation::list_backlog_tasks::ListBacklogTasksError::InternalServerException(inner) => Error::InternalServerException(inner),
1045            crate::operation::list_backlog_tasks::ListBacklogTasksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1046            crate::operation::list_backlog_tasks::ListBacklogTasksError::ValidationException(inner) => Error::ValidationException(inner),
1047            crate::operation::list_backlog_tasks::ListBacklogTasksError::ConflictException(inner) => Error::ConflictException(inner),
1048            crate::operation::list_backlog_tasks::ListBacklogTasksError::ContentSizeExceededException(inner) => {
1049                Error::ContentSizeExceededException(inner)
1050            }
1051            crate::operation::list_backlog_tasks::ListBacklogTasksError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1052            crate::operation::list_backlog_tasks::ListBacklogTasksError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1053            crate::operation::list_backlog_tasks::ListBacklogTasksError::ServiceQuotaExceededException(inner) => {
1054                Error::ServiceQuotaExceededException(inner)
1055            }
1056            crate::operation::list_backlog_tasks::ListBacklogTasksError::Unhandled(inner) => Error::Unhandled(inner),
1057        }
1058    }
1059}
1060impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_chats::ListChatsError, R>> for Error
1061where
1062    R: Send + Sync + std::fmt::Debug + 'static,
1063{
1064    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_chats::ListChatsError, R>) -> Self {
1065        match err {
1066            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1067            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1068                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1069                source: err.into(),
1070            }),
1071        }
1072    }
1073}
1074impl From<crate::operation::list_chats::ListChatsError> for Error {
1075    fn from(err: crate::operation::list_chats::ListChatsError) -> Self {
1076        match err {
1077            crate::operation::list_chats::ListChatsError::InternalServerException(inner) => Error::InternalServerException(inner),
1078            crate::operation::list_chats::ListChatsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1079            crate::operation::list_chats::ListChatsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1080            crate::operation::list_chats::ListChatsError::ValidationException(inner) => Error::ValidationException(inner),
1081            crate::operation::list_chats::ListChatsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1082            crate::operation::list_chats::ListChatsError::ConflictException(inner) => Error::ConflictException(inner),
1083            crate::operation::list_chats::ListChatsError::ContentSizeExceededException(inner) => Error::ContentSizeExceededException(inner),
1084            crate::operation::list_chats::ListChatsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1085            crate::operation::list_chats::ListChatsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1086            crate::operation::list_chats::ListChatsError::Unhandled(inner) => Error::Unhandled(inner),
1087        }
1088    }
1089}
1090impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_executions::ListExecutionsError, R>> for Error
1091where
1092    R: Send + Sync + std::fmt::Debug + 'static,
1093{
1094    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_executions::ListExecutionsError, R>) -> Self {
1095        match err {
1096            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1097            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1098                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1099                source: err.into(),
1100            }),
1101        }
1102    }
1103}
1104impl From<crate::operation::list_executions::ListExecutionsError> for Error {
1105    fn from(err: crate::operation::list_executions::ListExecutionsError) -> Self {
1106        match err {
1107            crate::operation::list_executions::ListExecutionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1108            crate::operation::list_executions::ListExecutionsError::ConflictException(inner) => Error::ConflictException(inner),
1109            crate::operation::list_executions::ListExecutionsError::InternalServerException(inner) => Error::InternalServerException(inner),
1110            crate::operation::list_executions::ListExecutionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1111            crate::operation::list_executions::ListExecutionsError::ValidationException(inner) => Error::ValidationException(inner),
1112            crate::operation::list_executions::ListExecutionsError::ContentSizeExceededException(inner) => Error::ContentSizeExceededException(inner),
1113            crate::operation::list_executions::ListExecutionsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1114            crate::operation::list_executions::ListExecutionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1115            crate::operation::list_executions::ListExecutionsError::ServiceQuotaExceededException(inner) => {
1116                Error::ServiceQuotaExceededException(inner)
1117            }
1118            crate::operation::list_executions::ListExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
1119        }
1120    }
1121}
1122impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_goals::ListGoalsError, R>> for Error
1123where
1124    R: Send + Sync + std::fmt::Debug + 'static,
1125{
1126    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_goals::ListGoalsError, R>) -> Self {
1127        match err {
1128            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1129            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1130                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1131                source: err.into(),
1132            }),
1133        }
1134    }
1135}
1136impl From<crate::operation::list_goals::ListGoalsError> for Error {
1137    fn from(err: crate::operation::list_goals::ListGoalsError) -> Self {
1138        match err {
1139            crate::operation::list_goals::ListGoalsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1140            crate::operation::list_goals::ListGoalsError::InternalServerException(inner) => Error::InternalServerException(inner),
1141            crate::operation::list_goals::ListGoalsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1142            crate::operation::list_goals::ListGoalsError::ValidationException(inner) => Error::ValidationException(inner),
1143            crate::operation::list_goals::ListGoalsError::ConflictException(inner) => Error::ConflictException(inner),
1144            crate::operation::list_goals::ListGoalsError::ContentSizeExceededException(inner) => Error::ContentSizeExceededException(inner),
1145            crate::operation::list_goals::ListGoalsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1146            crate::operation::list_goals::ListGoalsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1147            crate::operation::list_goals::ListGoalsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1148            crate::operation::list_goals::ListGoalsError::Unhandled(inner) => Error::Unhandled(inner),
1149        }
1150    }
1151}
1152impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_journal_records::ListJournalRecordsError, R>> for Error
1153where
1154    R: Send + Sync + std::fmt::Debug + 'static,
1155{
1156    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_journal_records::ListJournalRecordsError, R>) -> Self {
1157        match err {
1158            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1159            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1160                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1161                source: err.into(),
1162            }),
1163        }
1164    }
1165}
1166impl From<crate::operation::list_journal_records::ListJournalRecordsError> for Error {
1167    fn from(err: crate::operation::list_journal_records::ListJournalRecordsError) -> Self {
1168        match err {
1169            crate::operation::list_journal_records::ListJournalRecordsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1170            crate::operation::list_journal_records::ListJournalRecordsError::ConflictException(inner) => Error::ConflictException(inner),
1171            crate::operation::list_journal_records::ListJournalRecordsError::InternalServerException(inner) => Error::InternalServerException(inner),
1172            crate::operation::list_journal_records::ListJournalRecordsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1173            crate::operation::list_journal_records::ListJournalRecordsError::ValidationException(inner) => Error::ValidationException(inner),
1174            crate::operation::list_journal_records::ListJournalRecordsError::ContentSizeExceededException(inner) => {
1175                Error::ContentSizeExceededException(inner)
1176            }
1177            crate::operation::list_journal_records::ListJournalRecordsError::InvalidParameterException(inner) => {
1178                Error::InvalidParameterException(inner)
1179            }
1180            crate::operation::list_journal_records::ListJournalRecordsError::ResourceNotFoundException(inner) => {
1181                Error::ResourceNotFoundException(inner)
1182            }
1183            crate::operation::list_journal_records::ListJournalRecordsError::ServiceQuotaExceededException(inner) => {
1184                Error::ServiceQuotaExceededException(inner)
1185            }
1186            crate::operation::list_journal_records::ListJournalRecordsError::Unhandled(inner) => Error::Unhandled(inner),
1187        }
1188    }
1189}
1190impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pending_messages::ListPendingMessagesError, R>> for Error
1191where
1192    R: Send + Sync + std::fmt::Debug + 'static,
1193{
1194    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pending_messages::ListPendingMessagesError, R>) -> Self {
1195        match err {
1196            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1197            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1198                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1199                source: err.into(),
1200            }),
1201        }
1202    }
1203}
1204impl From<crate::operation::list_pending_messages::ListPendingMessagesError> for Error {
1205    fn from(err: crate::operation::list_pending_messages::ListPendingMessagesError) -> Self {
1206        match err {
1207            crate::operation::list_pending_messages::ListPendingMessagesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1208            crate::operation::list_pending_messages::ListPendingMessagesError::InternalServerException(inner) => {
1209                Error::InternalServerException(inner)
1210            }
1211            crate::operation::list_pending_messages::ListPendingMessagesError::ResourceNotFoundException(inner) => {
1212                Error::ResourceNotFoundException(inner)
1213            }
1214            crate::operation::list_pending_messages::ListPendingMessagesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1215            crate::operation::list_pending_messages::ListPendingMessagesError::ValidationException(inner) => Error::ValidationException(inner),
1216            crate::operation::list_pending_messages::ListPendingMessagesError::ConflictException(inner) => Error::ConflictException(inner),
1217            crate::operation::list_pending_messages::ListPendingMessagesError::ContentSizeExceededException(inner) => {
1218                Error::ContentSizeExceededException(inner)
1219            }
1220            crate::operation::list_pending_messages::ListPendingMessagesError::InvalidParameterException(inner) => {
1221                Error::InvalidParameterException(inner)
1222            }
1223            crate::operation::list_pending_messages::ListPendingMessagesError::ServiceQuotaExceededException(inner) => {
1224                Error::ServiceQuotaExceededException(inner)
1225            }
1226            crate::operation::list_pending_messages::ListPendingMessagesError::Unhandled(inner) => Error::Unhandled(inner),
1227        }
1228    }
1229}
1230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_private_connections::ListPrivateConnectionsError, R>> for Error
1231where
1232    R: Send + Sync + std::fmt::Debug + 'static,
1233{
1234    fn from(
1235        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_private_connections::ListPrivateConnectionsError, R>,
1236    ) -> Self {
1237        match err {
1238            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1239            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1240                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1241                source: err.into(),
1242            }),
1243        }
1244    }
1245}
1246impl From<crate::operation::list_private_connections::ListPrivateConnectionsError> for Error {
1247    fn from(err: crate::operation::list_private_connections::ListPrivateConnectionsError) -> Self {
1248        match err {
1249            crate::operation::list_private_connections::ListPrivateConnectionsError::AccessDeniedException(inner) => {
1250                Error::AccessDeniedException(inner)
1251            }
1252            crate::operation::list_private_connections::ListPrivateConnectionsError::InternalServerException(inner) => {
1253                Error::InternalServerException(inner)
1254            }
1255            crate::operation::list_private_connections::ListPrivateConnectionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1256            crate::operation::list_private_connections::ListPrivateConnectionsError::ValidationException(inner) => Error::ValidationException(inner),
1257            crate::operation::list_private_connections::ListPrivateConnectionsError::ConflictException(inner) => Error::ConflictException(inner),
1258            crate::operation::list_private_connections::ListPrivateConnectionsError::ContentSizeExceededException(inner) => {
1259                Error::ContentSizeExceededException(inner)
1260            }
1261            crate::operation::list_private_connections::ListPrivateConnectionsError::InvalidParameterException(inner) => {
1262                Error::InvalidParameterException(inner)
1263            }
1264            crate::operation::list_private_connections::ListPrivateConnectionsError::ResourceNotFoundException(inner) => {
1265                Error::ResourceNotFoundException(inner)
1266            }
1267            crate::operation::list_private_connections::ListPrivateConnectionsError::ServiceQuotaExceededException(inner) => {
1268                Error::ServiceQuotaExceededException(inner)
1269            }
1270            crate::operation::list_private_connections::ListPrivateConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
1271        }
1272    }
1273}
1274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommendations::ListRecommendationsError, R>> for Error
1275where
1276    R: Send + Sync + std::fmt::Debug + 'static,
1277{
1278    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommendations::ListRecommendationsError, R>) -> Self {
1279        match err {
1280            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1281            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1282                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1283                source: err.into(),
1284            }),
1285        }
1286    }
1287}
1288impl From<crate::operation::list_recommendations::ListRecommendationsError> for Error {
1289    fn from(err: crate::operation::list_recommendations::ListRecommendationsError) -> Self {
1290        match err {
1291            crate::operation::list_recommendations::ListRecommendationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1292            crate::operation::list_recommendations::ListRecommendationsError::InternalServerException(inner) => Error::InternalServerException(inner),
1293            crate::operation::list_recommendations::ListRecommendationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1294            crate::operation::list_recommendations::ListRecommendationsError::ValidationException(inner) => Error::ValidationException(inner),
1295            crate::operation::list_recommendations::ListRecommendationsError::ConflictException(inner) => Error::ConflictException(inner),
1296            crate::operation::list_recommendations::ListRecommendationsError::ContentSizeExceededException(inner) => {
1297                Error::ContentSizeExceededException(inner)
1298            }
1299            crate::operation::list_recommendations::ListRecommendationsError::InvalidParameterException(inner) => {
1300                Error::InvalidParameterException(inner)
1301            }
1302            crate::operation::list_recommendations::ListRecommendationsError::ResourceNotFoundException(inner) => {
1303                Error::ResourceNotFoundException(inner)
1304            }
1305            crate::operation::list_recommendations::ListRecommendationsError::ServiceQuotaExceededException(inner) => {
1306                Error::ServiceQuotaExceededException(inner)
1307            }
1308            crate::operation::list_recommendations::ListRecommendationsError::Unhandled(inner) => Error::Unhandled(inner),
1309        }
1310    }
1311}
1312impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_services::ListServicesError, R>> for Error
1313where
1314    R: Send + Sync + std::fmt::Debug + 'static,
1315{
1316    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_services::ListServicesError, R>) -> Self {
1317        match err {
1318            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1319            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1320                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1321                source: err.into(),
1322            }),
1323        }
1324    }
1325}
1326impl From<crate::operation::list_services::ListServicesError> for Error {
1327    fn from(err: crate::operation::list_services::ListServicesError) -> Self {
1328        match err {
1329            crate::operation::list_services::ListServicesError::InternalServerException(inner) => Error::InternalServerException(inner),
1330            crate::operation::list_services::ListServicesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1331            crate::operation::list_services::ListServicesError::ValidationException(inner) => Error::ValidationException(inner),
1332            crate::operation::list_services::ListServicesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1333            crate::operation::list_services::ListServicesError::ConflictException(inner) => Error::ConflictException(inner),
1334            crate::operation::list_services::ListServicesError::ContentSizeExceededException(inner) => Error::ContentSizeExceededException(inner),
1335            crate::operation::list_services::ListServicesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1336            crate::operation::list_services::ListServicesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1337            crate::operation::list_services::ListServicesError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1338            crate::operation::list_services::ListServicesError::Unhandled(inner) => Error::Unhandled(inner),
1339        }
1340    }
1341}
1342impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1343where
1344    R: Send + Sync + std::fmt::Debug + 'static,
1345{
1346    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1347        match err {
1348            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1349            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1350                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1351                source: err.into(),
1352            }),
1353        }
1354    }
1355}
1356impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1357    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1358        match err {
1359            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1360            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
1361                Error::InternalServerException(inner)
1362            }
1363            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1364                Error::ResourceNotFoundException(inner)
1365            }
1366            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
1367            crate::operation::list_tags_for_resource::ListTagsForResourceError::ConflictException(inner) => Error::ConflictException(inner),
1368            crate::operation::list_tags_for_resource::ListTagsForResourceError::ContentSizeExceededException(inner) => {
1369                Error::ContentSizeExceededException(inner)
1370            }
1371            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidParameterException(inner) => {
1372                Error::InvalidParameterException(inner)
1373            }
1374            crate::operation::list_tags_for_resource::ListTagsForResourceError::ServiceQuotaExceededException(inner) => {
1375                Error::ServiceQuotaExceededException(inner)
1376            }
1377            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1378            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1379        }
1380    }
1381}
1382impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_webhooks::ListWebhooksError, R>> for Error
1383where
1384    R: Send + Sync + std::fmt::Debug + 'static,
1385{
1386    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_webhooks::ListWebhooksError, R>) -> Self {
1387        match err {
1388            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1389            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1390                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1391                source: err.into(),
1392            }),
1393        }
1394    }
1395}
1396impl From<crate::operation::list_webhooks::ListWebhooksError> for Error {
1397    fn from(err: crate::operation::list_webhooks::ListWebhooksError) -> Self {
1398        match err {
1399            crate::operation::list_webhooks::ListWebhooksError::InternalServerException(inner) => Error::InternalServerException(inner),
1400            crate::operation::list_webhooks::ListWebhooksError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1401            crate::operation::list_webhooks::ListWebhooksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1402            crate::operation::list_webhooks::ListWebhooksError::ValidationException(inner) => Error::ValidationException(inner),
1403            crate::operation::list_webhooks::ListWebhooksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1404            crate::operation::list_webhooks::ListWebhooksError::ConflictException(inner) => Error::ConflictException(inner),
1405            crate::operation::list_webhooks::ListWebhooksError::ContentSizeExceededException(inner) => Error::ContentSizeExceededException(inner),
1406            crate::operation::list_webhooks::ListWebhooksError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1407            crate::operation::list_webhooks::ListWebhooksError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1408            crate::operation::list_webhooks::ListWebhooksError::Unhandled(inner) => Error::Unhandled(inner),
1409        }
1410    }
1411}
1412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_service::RegisterServiceError, R>> for Error
1413where
1414    R: Send + Sync + std::fmt::Debug + 'static,
1415{
1416    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_service::RegisterServiceError, R>) -> Self {
1417        match err {
1418            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1419            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1420                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1421                source: err.into(),
1422            }),
1423        }
1424    }
1425}
1426impl From<crate::operation::register_service::RegisterServiceError> for Error {
1427    fn from(err: crate::operation::register_service::RegisterServiceError) -> Self {
1428        match err {
1429            crate::operation::register_service::RegisterServiceError::InternalServerException(inner) => Error::InternalServerException(inner),
1430            crate::operation::register_service::RegisterServiceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1431            crate::operation::register_service::RegisterServiceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1432            crate::operation::register_service::RegisterServiceError::ValidationException(inner) => Error::ValidationException(inner),
1433            crate::operation::register_service::RegisterServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1434            crate::operation::register_service::RegisterServiceError::ConflictException(inner) => Error::ConflictException(inner),
1435            crate::operation::register_service::RegisterServiceError::ContentSizeExceededException(inner) => {
1436                Error::ContentSizeExceededException(inner)
1437            }
1438            crate::operation::register_service::RegisterServiceError::ServiceQuotaExceededException(inner) => {
1439                Error::ServiceQuotaExceededException(inner)
1440            }
1441            crate::operation::register_service::RegisterServiceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1442            crate::operation::register_service::RegisterServiceError::Unhandled(inner) => Error::Unhandled(inner),
1443        }
1444    }
1445}
1446impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_message::SendMessageError, R>> for Error
1447where
1448    R: Send + Sync + std::fmt::Debug + 'static,
1449{
1450    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::send_message::SendMessageError, R>) -> Self {
1451        match err {
1452            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1453            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1454                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1455                source: err.into(),
1456            }),
1457        }
1458    }
1459}
1460impl From<crate::operation::send_message::SendMessageError> for Error {
1461    fn from(err: crate::operation::send_message::SendMessageError) -> Self {
1462        match err {
1463            crate::operation::send_message::SendMessageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1464            crate::operation::send_message::SendMessageError::InternalServerException(inner) => Error::InternalServerException(inner),
1465            crate::operation::send_message::SendMessageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1466            crate::operation::send_message::SendMessageError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1467            crate::operation::send_message::SendMessageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1468            crate::operation::send_message::SendMessageError::ValidationException(inner) => Error::ValidationException(inner),
1469            crate::operation::send_message::SendMessageError::ConflictException(inner) => Error::ConflictException(inner),
1470            crate::operation::send_message::SendMessageError::ContentSizeExceededException(inner) => Error::ContentSizeExceededException(inner),
1471            crate::operation::send_message::SendMessageError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1472            crate::operation::send_message::SendMessageError::Unhandled(inner) => Error::Unhandled(inner),
1473        }
1474    }
1475}
1476impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1477where
1478    R: Send + Sync + std::fmt::Debug + 'static,
1479{
1480    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1481        match err {
1482            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1483            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1484                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1485                source: err.into(),
1486            }),
1487        }
1488    }
1489}
1490impl From<crate::operation::tag_resource::TagResourceError> for Error {
1491    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1492        match err {
1493            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1494            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1495            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1496            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1497            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1498            crate::operation::tag_resource::TagResourceError::ContentSizeExceededException(inner) => Error::ContentSizeExceededException(inner),
1499            crate::operation::tag_resource::TagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1500            crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1501            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1502            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1503        }
1504    }
1505}
1506impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1507where
1508    R: Send + Sync + std::fmt::Debug + 'static,
1509{
1510    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1511        match err {
1512            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1513            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1514                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1515                source: err.into(),
1516            }),
1517        }
1518    }
1519}
1520impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1521    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1522        match err {
1523            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1524            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1525            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1526            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1527            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1528            crate::operation::untag_resource::UntagResourceError::ContentSizeExceededException(inner) => Error::ContentSizeExceededException(inner),
1529            crate::operation::untag_resource::UntagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1530            crate::operation::untag_resource::UntagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1531            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1532            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1533        }
1534    }
1535}
1536impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent_space::UpdateAgentSpaceError, R>> for Error
1537where
1538    R: Send + Sync + std::fmt::Debug + 'static,
1539{
1540    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent_space::UpdateAgentSpaceError, R>) -> Self {
1541        match err {
1542            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1543            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1544                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1545                source: err.into(),
1546            }),
1547        }
1548    }
1549}
1550impl From<crate::operation::update_agent_space::UpdateAgentSpaceError> for Error {
1551    fn from(err: crate::operation::update_agent_space::UpdateAgentSpaceError) -> Self {
1552        match err {
1553            crate::operation::update_agent_space::UpdateAgentSpaceError::ConflictException(inner) => Error::ConflictException(inner),
1554            crate::operation::update_agent_space::UpdateAgentSpaceError::InternalServerException(inner) => Error::InternalServerException(inner),
1555            crate::operation::update_agent_space::UpdateAgentSpaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1556            crate::operation::update_agent_space::UpdateAgentSpaceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1557            crate::operation::update_agent_space::UpdateAgentSpaceError::ValidationException(inner) => Error::ValidationException(inner),
1558            crate::operation::update_agent_space::UpdateAgentSpaceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1559            crate::operation::update_agent_space::UpdateAgentSpaceError::ContentSizeExceededException(inner) => {
1560                Error::ContentSizeExceededException(inner)
1561            }
1562            crate::operation::update_agent_space::UpdateAgentSpaceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1563            crate::operation::update_agent_space::UpdateAgentSpaceError::ServiceQuotaExceededException(inner) => {
1564                Error::ServiceQuotaExceededException(inner)
1565            }
1566            crate::operation::update_agent_space::UpdateAgentSpaceError::Unhandled(inner) => Error::Unhandled(inner),
1567        }
1568    }
1569}
1570impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_association::UpdateAssociationError, R>> for Error
1571where
1572    R: Send + Sync + std::fmt::Debug + 'static,
1573{
1574    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_association::UpdateAssociationError, R>) -> Self {
1575        match err {
1576            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1577            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1578                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1579                source: err.into(),
1580            }),
1581        }
1582    }
1583}
1584impl From<crate::operation::update_association::UpdateAssociationError> for Error {
1585    fn from(err: crate::operation::update_association::UpdateAssociationError) -> Self {
1586        match err {
1587            crate::operation::update_association::UpdateAssociationError::InternalServerException(inner) => Error::InternalServerException(inner),
1588            crate::operation::update_association::UpdateAssociationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1589            crate::operation::update_association::UpdateAssociationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1590            crate::operation::update_association::UpdateAssociationError::ValidationException(inner) => Error::ValidationException(inner),
1591            crate::operation::update_association::UpdateAssociationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1592            crate::operation::update_association::UpdateAssociationError::ConflictException(inner) => Error::ConflictException(inner),
1593            crate::operation::update_association::UpdateAssociationError::ContentSizeExceededException(inner) => {
1594                Error::ContentSizeExceededException(inner)
1595            }
1596            crate::operation::update_association::UpdateAssociationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1597            crate::operation::update_association::UpdateAssociationError::ServiceQuotaExceededException(inner) => {
1598                Error::ServiceQuotaExceededException(inner)
1599            }
1600            crate::operation::update_association::UpdateAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1601        }
1602    }
1603}
1604impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_backlog_task::UpdateBacklogTaskError, R>> for Error
1605where
1606    R: Send + Sync + std::fmt::Debug + 'static,
1607{
1608    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_backlog_task::UpdateBacklogTaskError, R>) -> Self {
1609        match err {
1610            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1611            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1612                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1613                source: err.into(),
1614            }),
1615        }
1616    }
1617}
1618impl From<crate::operation::update_backlog_task::UpdateBacklogTaskError> for Error {
1619    fn from(err: crate::operation::update_backlog_task::UpdateBacklogTaskError) -> Self {
1620        match err {
1621            crate::operation::update_backlog_task::UpdateBacklogTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1622            crate::operation::update_backlog_task::UpdateBacklogTaskError::ConflictException(inner) => Error::ConflictException(inner),
1623            crate::operation::update_backlog_task::UpdateBacklogTaskError::InternalServerException(inner) => Error::InternalServerException(inner),
1624            crate::operation::update_backlog_task::UpdateBacklogTaskError::ResourceNotFoundException(inner) => {
1625                Error::ResourceNotFoundException(inner)
1626            }
1627            crate::operation::update_backlog_task::UpdateBacklogTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1628            crate::operation::update_backlog_task::UpdateBacklogTaskError::ValidationException(inner) => Error::ValidationException(inner),
1629            crate::operation::update_backlog_task::UpdateBacklogTaskError::ContentSizeExceededException(inner) => {
1630                Error::ContentSizeExceededException(inner)
1631            }
1632            crate::operation::update_backlog_task::UpdateBacklogTaskError::InvalidParameterException(inner) => {
1633                Error::InvalidParameterException(inner)
1634            }
1635            crate::operation::update_backlog_task::UpdateBacklogTaskError::ServiceQuotaExceededException(inner) => {
1636                Error::ServiceQuotaExceededException(inner)
1637            }
1638            crate::operation::update_backlog_task::UpdateBacklogTaskError::Unhandled(inner) => Error::Unhandled(inner),
1639        }
1640    }
1641}
1642impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_goal::UpdateGoalError, R>> for Error
1643where
1644    R: Send + Sync + std::fmt::Debug + 'static,
1645{
1646    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_goal::UpdateGoalError, R>) -> 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::update_goal::UpdateGoalError> for Error {
1657    fn from(err: crate::operation::update_goal::UpdateGoalError) -> Self {
1658        match err {
1659            crate::operation::update_goal::UpdateGoalError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1660            crate::operation::update_goal::UpdateGoalError::ConflictException(inner) => Error::ConflictException(inner),
1661            crate::operation::update_goal::UpdateGoalError::InternalServerException(inner) => Error::InternalServerException(inner),
1662            crate::operation::update_goal::UpdateGoalError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1663            crate::operation::update_goal::UpdateGoalError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1664            crate::operation::update_goal::UpdateGoalError::ValidationException(inner) => Error::ValidationException(inner),
1665            crate::operation::update_goal::UpdateGoalError::ContentSizeExceededException(inner) => Error::ContentSizeExceededException(inner),
1666            crate::operation::update_goal::UpdateGoalError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1667            crate::operation::update_goal::UpdateGoalError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1668            crate::operation::update_goal::UpdateGoalError::Unhandled(inner) => Error::Unhandled(inner),
1669        }
1670    }
1671}
1672impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_operator_app_idp_config::UpdateOperatorAppIdpConfigError, R>>
1673    for Error
1674where
1675    R: Send + Sync + std::fmt::Debug + 'static,
1676{
1677    fn from(
1678        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_operator_app_idp_config::UpdateOperatorAppIdpConfigError, R>,
1679    ) -> Self {
1680        match err {
1681            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1682            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1683                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1684                source: err.into(),
1685            }),
1686        }
1687    }
1688}
1689impl From<crate::operation::update_operator_app_idp_config::UpdateOperatorAppIdpConfigError> for Error {
1690    fn from(err: crate::operation::update_operator_app_idp_config::UpdateOperatorAppIdpConfigError) -> Self {
1691        match err {
1692            crate::operation::update_operator_app_idp_config::UpdateOperatorAppIdpConfigError::InternalServerException(inner) => {
1693                Error::InternalServerException(inner)
1694            }
1695            crate::operation::update_operator_app_idp_config::UpdateOperatorAppIdpConfigError::ResourceNotFoundException(inner) => {
1696                Error::ResourceNotFoundException(inner)
1697            }
1698            crate::operation::update_operator_app_idp_config::UpdateOperatorAppIdpConfigError::ThrottlingException(inner) => {
1699                Error::ThrottlingException(inner)
1700            }
1701            crate::operation::update_operator_app_idp_config::UpdateOperatorAppIdpConfigError::ValidationException(inner) => {
1702                Error::ValidationException(inner)
1703            }
1704            crate::operation::update_operator_app_idp_config::UpdateOperatorAppIdpConfigError::AccessDeniedException(inner) => {
1705                Error::AccessDeniedException(inner)
1706            }
1707            crate::operation::update_operator_app_idp_config::UpdateOperatorAppIdpConfigError::ConflictException(inner) => {
1708                Error::ConflictException(inner)
1709            }
1710            crate::operation::update_operator_app_idp_config::UpdateOperatorAppIdpConfigError::ContentSizeExceededException(inner) => {
1711                Error::ContentSizeExceededException(inner)
1712            }
1713            crate::operation::update_operator_app_idp_config::UpdateOperatorAppIdpConfigError::InvalidParameterException(inner) => {
1714                Error::InvalidParameterException(inner)
1715            }
1716            crate::operation::update_operator_app_idp_config::UpdateOperatorAppIdpConfigError::ServiceQuotaExceededException(inner) => {
1717                Error::ServiceQuotaExceededException(inner)
1718            }
1719            crate::operation::update_operator_app_idp_config::UpdateOperatorAppIdpConfigError::Unhandled(inner) => Error::Unhandled(inner),
1720        }
1721    }
1722}
1723impl<R>
1724    From<
1725        ::aws_smithy_runtime_api::client::result::SdkError<
1726            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError,
1727            R,
1728        >,
1729    > for Error
1730where
1731    R: Send + Sync + std::fmt::Debug + 'static,
1732{
1733    fn from(
1734        err: ::aws_smithy_runtime_api::client::result::SdkError<
1735            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError,
1736            R,
1737        >,
1738    ) -> Self {
1739        match err {
1740            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1741            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1742                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1743                source: err.into(),
1744            }),
1745        }
1746    }
1747}
1748impl From<crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError> for Error {
1749    fn from(err: crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError) -> Self {
1750        match err {
1751            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::AccessDeniedException(inner) => {
1752                Error::AccessDeniedException(inner)
1753            }
1754            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::InternalServerException(inner) => {
1755                Error::InternalServerException(inner)
1756            }
1757            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::ResourceNotFoundException(inner) => {
1758                Error::ResourceNotFoundException(inner)
1759            }
1760            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::ThrottlingException(inner) => {
1761                Error::ThrottlingException(inner)
1762            }
1763            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::ValidationException(inner) => {
1764                Error::ValidationException(inner)
1765            }
1766            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::ConflictException(inner) => {
1767                Error::ConflictException(inner)
1768            }
1769            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::ContentSizeExceededException(inner) => {
1770                Error::ContentSizeExceededException(inner)
1771            }
1772            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::InvalidParameterException(inner) => {
1773                Error::InvalidParameterException(inner)
1774            }
1775            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::ServiceQuotaExceededException(
1776                inner,
1777            ) => Error::ServiceQuotaExceededException(inner),
1778            crate::operation::update_private_connection_certificate::UpdatePrivateConnectionCertificateError::Unhandled(inner) => {
1779                Error::Unhandled(inner)
1780            }
1781        }
1782    }
1783}
1784impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_recommendation::UpdateRecommendationError, R>> for Error
1785where
1786    R: Send + Sync + std::fmt::Debug + 'static,
1787{
1788    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_recommendation::UpdateRecommendationError, R>) -> Self {
1789        match err {
1790            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1791            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1792                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1793                source: err.into(),
1794            }),
1795        }
1796    }
1797}
1798impl From<crate::operation::update_recommendation::UpdateRecommendationError> for Error {
1799    fn from(err: crate::operation::update_recommendation::UpdateRecommendationError) -> Self {
1800        match err {
1801            crate::operation::update_recommendation::UpdateRecommendationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1802            crate::operation::update_recommendation::UpdateRecommendationError::ConflictException(inner) => Error::ConflictException(inner),
1803            crate::operation::update_recommendation::UpdateRecommendationError::InternalServerException(inner) => {
1804                Error::InternalServerException(inner)
1805            }
1806            crate::operation::update_recommendation::UpdateRecommendationError::ResourceNotFoundException(inner) => {
1807                Error::ResourceNotFoundException(inner)
1808            }
1809            crate::operation::update_recommendation::UpdateRecommendationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1810            crate::operation::update_recommendation::UpdateRecommendationError::ValidationException(inner) => Error::ValidationException(inner),
1811            crate::operation::update_recommendation::UpdateRecommendationError::ContentSizeExceededException(inner) => {
1812                Error::ContentSizeExceededException(inner)
1813            }
1814            crate::operation::update_recommendation::UpdateRecommendationError::InvalidParameterException(inner) => {
1815                Error::InvalidParameterException(inner)
1816            }
1817            crate::operation::update_recommendation::UpdateRecommendationError::ServiceQuotaExceededException(inner) => {
1818                Error::ServiceQuotaExceededException(inner)
1819            }
1820            crate::operation::update_recommendation::UpdateRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
1821        }
1822    }
1823}
1824impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::validate_aws_associations::ValidateAwsAssociationsError, R>>
1825    for Error
1826where
1827    R: Send + Sync + std::fmt::Debug + 'static,
1828{
1829    fn from(
1830        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::validate_aws_associations::ValidateAwsAssociationsError, R>,
1831    ) -> Self {
1832        match err {
1833            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1834            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1835                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1836                source: err.into(),
1837            }),
1838        }
1839    }
1840}
1841impl From<crate::operation::validate_aws_associations::ValidateAwsAssociationsError> for Error {
1842    fn from(err: crate::operation::validate_aws_associations::ValidateAwsAssociationsError) -> Self {
1843        match err {
1844            crate::operation::validate_aws_associations::ValidateAwsAssociationsError::InternalServerException(inner) => {
1845                Error::InternalServerException(inner)
1846            }
1847            crate::operation::validate_aws_associations::ValidateAwsAssociationsError::ResourceNotFoundException(inner) => {
1848                Error::ResourceNotFoundException(inner)
1849            }
1850            crate::operation::validate_aws_associations::ValidateAwsAssociationsError::ThrottlingException(inner) => {
1851                Error::ThrottlingException(inner)
1852            }
1853            crate::operation::validate_aws_associations::ValidateAwsAssociationsError::ValidationException(inner) => {
1854                Error::ValidationException(inner)
1855            }
1856            crate::operation::validate_aws_associations::ValidateAwsAssociationsError::AccessDeniedException(inner) => {
1857                Error::AccessDeniedException(inner)
1858            }
1859            crate::operation::validate_aws_associations::ValidateAwsAssociationsError::ConflictException(inner) => Error::ConflictException(inner),
1860            crate::operation::validate_aws_associations::ValidateAwsAssociationsError::ContentSizeExceededException(inner) => {
1861                Error::ContentSizeExceededException(inner)
1862            }
1863            crate::operation::validate_aws_associations::ValidateAwsAssociationsError::InvalidParameterException(inner) => {
1864                Error::InvalidParameterException(inner)
1865            }
1866            crate::operation::validate_aws_associations::ValidateAwsAssociationsError::ServiceQuotaExceededException(inner) => {
1867                Error::ServiceQuotaExceededException(inner)
1868            }
1869            crate::operation::validate_aws_associations::ValidateAwsAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1870        }
1871    }
1872}
1873impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::SendMessageEventsError, R>> for Error
1874where
1875    R: Send + Sync + std::fmt::Debug + 'static,
1876{
1877    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::SendMessageEventsError, R>) -> Self {
1878        match err {
1879            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1880            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1881                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1882                source: err.into(),
1883            }),
1884        }
1885    }
1886}
1887impl From<crate::types::error::SendMessageEventsError> for Error {
1888    fn from(err: crate::types::error::SendMessageEventsError) -> Self {
1889        match err {
1890            crate::types::error::SendMessageEventsError::Unhandled(inner) => Error::Unhandled(inner),
1891        }
1892    }
1893}
1894impl ::std::error::Error for Error {
1895    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1896        match self {
1897            Error::AccessDeniedException(inner) => inner.source(),
1898            Error::ConflictException(inner) => inner.source(),
1899            Error::ContentSizeExceededException(inner) => inner.source(),
1900            Error::IdentityCenterServiceException(inner) => inner.source(),
1901            Error::InternalServerException(inner) => inner.source(),
1902            Error::InvalidParameterException(inner) => inner.source(),
1903            Error::ResourceNotFoundException(inner) => inner.source(),
1904            Error::ServiceQuotaExceededException(inner) => inner.source(),
1905            Error::ThrottlingException(inner) => inner.source(),
1906            Error::ValidationException(inner) => inner.source(),
1907            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1908        }
1909    }
1910}
1911impl ::aws_types::request_id::RequestId for Error {
1912    fn request_id(&self) -> Option<&str> {
1913        match self {
1914            Self::AccessDeniedException(e) => e.request_id(),
1915            Self::ConflictException(e) => e.request_id(),
1916            Self::ContentSizeExceededException(e) => e.request_id(),
1917            Self::IdentityCenterServiceException(e) => e.request_id(),
1918            Self::InternalServerException(e) => e.request_id(),
1919            Self::InvalidParameterException(e) => e.request_id(),
1920            Self::ResourceNotFoundException(e) => e.request_id(),
1921            Self::ServiceQuotaExceededException(e) => e.request_id(),
1922            Self::ThrottlingException(e) => e.request_id(),
1923            Self::ValidationException(e) => e.request_id(),
1924            Self::Unhandled(e) => e.meta.request_id(),
1925        }
1926    }
1927}