aws_sdk_chatbot/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>There was an issue processing your request.</p>
7    ConflictException(crate::types::error::ConflictException),
8    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
9    CreateChimeWebhookConfigurationException(crate::types::error::CreateChimeWebhookConfigurationException),
10    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
11    CreateSlackChannelConfigurationException(crate::types::error::CreateSlackChannelConfigurationException),
12    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
13    CreateTeamsChannelConfigurationException(crate::types::error::CreateTeamsChannelConfigurationException),
14    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
15    DeleteChimeWebhookConfigurationException(crate::types::error::DeleteChimeWebhookConfigurationException),
16    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
17    DeleteMicrosoftTeamsUserIdentityException(crate::types::error::DeleteMicrosoftTeamsUserIdentityException),
18    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
19    DeleteSlackChannelConfigurationException(crate::types::error::DeleteSlackChannelConfigurationException),
20    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
21    DeleteSlackUserIdentityException(crate::types::error::DeleteSlackUserIdentityException),
22    /// <p>There was an issue deleting your Slack workspace.</p>
23    DeleteSlackWorkspaceAuthorizationFault(crate::types::error::DeleteSlackWorkspaceAuthorizationFault),
24    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
25    DeleteTeamsChannelConfigurationException(crate::types::error::DeleteTeamsChannelConfigurationException),
26    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
27    DeleteTeamsConfiguredTeamException(crate::types::error::DeleteTeamsConfiguredTeamException),
28    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
29    DescribeChimeWebhookConfigurationsException(crate::types::error::DescribeChimeWebhookConfigurationsException),
30    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
31    DescribeSlackChannelConfigurationsException(crate::types::error::DescribeSlackChannelConfigurationsException),
32    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
33    DescribeSlackUserIdentitiesException(crate::types::error::DescribeSlackUserIdentitiesException),
34    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
35    DescribeSlackWorkspacesException(crate::types::error::DescribeSlackWorkspacesException),
36    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
37    GetAccountPreferencesException(crate::types::error::GetAccountPreferencesException),
38    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
39    GetTeamsChannelConfigurationException(crate::types::error::GetTeamsChannelConfigurationException),
40    /// <p>Unexpected error during processing of request.</p>
41    InternalServiceError(crate::types::error::InternalServiceError),
42    /// <p>Your request input doesn't meet the constraints required by AWS Chatbot.</p>
43    InvalidParameterException(crate::types::error::InvalidParameterException),
44    /// <p>Your request input doesn't meet the constraints required by AWS Chatbot.</p>
45    InvalidRequestException(crate::types::error::InvalidRequestException),
46    /// <p>You have exceeded a service limit for AWS Chatbot.</p>
47    LimitExceededException(crate::types::error::LimitExceededException),
48    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
49    ListMicrosoftTeamsConfiguredTeamsException(crate::types::error::ListMicrosoftTeamsConfiguredTeamsException),
50    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
51    ListMicrosoftTeamsUserIdentitiesException(crate::types::error::ListMicrosoftTeamsUserIdentitiesException),
52    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
53    ListTeamsChannelConfigurationsException(crate::types::error::ListTeamsChannelConfigurationsException),
54    /// <p>We were unable to find the resource for your request</p>
55    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
56    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
57    ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
58    /// <p>The supplied list of tags contains too many tags.</p>
59    TooManyTagsException(crate::types::error::TooManyTagsException),
60    /// <p>The request was rejected because it doesn't have valid credentials for the target resource.</p>
61    UnauthorizedException(crate::types::error::UnauthorizedException),
62    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
63    UpdateAccountPreferencesException(crate::types::error::UpdateAccountPreferencesException),
64    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
65    UpdateChimeWebhookConfigurationException(crate::types::error::UpdateChimeWebhookConfigurationException),
66    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
67    UpdateSlackChannelConfigurationException(crate::types::error::UpdateSlackChannelConfigurationException),
68    /// <p>We can’t process your request right now because of a server issue. Try again later.</p>
69    UpdateTeamsChannelConfigurationException(crate::types::error::UpdateTeamsChannelConfigurationException),
70    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
71    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
72    variable wildcard pattern and check `.code()`:
73     \
74    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
75     \
76    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
77    Unhandled(crate::error::sealed_unhandled::Unhandled),
78}
79impl ::std::fmt::Display for Error {
80    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
81        match self {
82            Error::ConflictException(inner) => inner.fmt(f),
83            Error::CreateChimeWebhookConfigurationException(inner) => inner.fmt(f),
84            Error::CreateSlackChannelConfigurationException(inner) => inner.fmt(f),
85            Error::CreateTeamsChannelConfigurationException(inner) => inner.fmt(f),
86            Error::DeleteChimeWebhookConfigurationException(inner) => inner.fmt(f),
87            Error::DeleteMicrosoftTeamsUserIdentityException(inner) => inner.fmt(f),
88            Error::DeleteSlackChannelConfigurationException(inner) => inner.fmt(f),
89            Error::DeleteSlackUserIdentityException(inner) => inner.fmt(f),
90            Error::DeleteSlackWorkspaceAuthorizationFault(inner) => inner.fmt(f),
91            Error::DeleteTeamsChannelConfigurationException(inner) => inner.fmt(f),
92            Error::DeleteTeamsConfiguredTeamException(inner) => inner.fmt(f),
93            Error::DescribeChimeWebhookConfigurationsException(inner) => inner.fmt(f),
94            Error::DescribeSlackChannelConfigurationsException(inner) => inner.fmt(f),
95            Error::DescribeSlackUserIdentitiesException(inner) => inner.fmt(f),
96            Error::DescribeSlackWorkspacesException(inner) => inner.fmt(f),
97            Error::GetAccountPreferencesException(inner) => inner.fmt(f),
98            Error::GetTeamsChannelConfigurationException(inner) => inner.fmt(f),
99            Error::InternalServiceError(inner) => inner.fmt(f),
100            Error::InvalidParameterException(inner) => inner.fmt(f),
101            Error::InvalidRequestException(inner) => inner.fmt(f),
102            Error::LimitExceededException(inner) => inner.fmt(f),
103            Error::ListMicrosoftTeamsConfiguredTeamsException(inner) => inner.fmt(f),
104            Error::ListMicrosoftTeamsUserIdentitiesException(inner) => inner.fmt(f),
105            Error::ListTeamsChannelConfigurationsException(inner) => inner.fmt(f),
106            Error::ResourceNotFoundException(inner) => inner.fmt(f),
107            Error::ServiceUnavailableException(inner) => inner.fmt(f),
108            Error::TooManyTagsException(inner) => inner.fmt(f),
109            Error::UnauthorizedException(inner) => inner.fmt(f),
110            Error::UpdateAccountPreferencesException(inner) => inner.fmt(f),
111            Error::UpdateChimeWebhookConfigurationException(inner) => inner.fmt(f),
112            Error::UpdateSlackChannelConfigurationException(inner) => inner.fmt(f),
113            Error::UpdateTeamsChannelConfigurationException(inner) => inner.fmt(f),
114            Error::Unhandled(_) => {
115                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
116                    write!(f, "unhandled error ({code})")
117                } else {
118                    f.write_str("unhandled error")
119                }
120            }
121        }
122    }
123}
124impl From<::aws_smithy_types::error::operation::BuildError> for Error {
125    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
126        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
127            source: value.into(),
128            meta: ::std::default::Default::default(),
129        })
130    }
131}
132impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
133    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
134        match self {
135            Self::ConflictException(inner) => inner.meta(),
136            Self::CreateChimeWebhookConfigurationException(inner) => inner.meta(),
137            Self::CreateSlackChannelConfigurationException(inner) => inner.meta(),
138            Self::CreateTeamsChannelConfigurationException(inner) => inner.meta(),
139            Self::DeleteChimeWebhookConfigurationException(inner) => inner.meta(),
140            Self::DeleteMicrosoftTeamsUserIdentityException(inner) => inner.meta(),
141            Self::DeleteSlackChannelConfigurationException(inner) => inner.meta(),
142            Self::DeleteSlackUserIdentityException(inner) => inner.meta(),
143            Self::DeleteSlackWorkspaceAuthorizationFault(inner) => inner.meta(),
144            Self::DeleteTeamsChannelConfigurationException(inner) => inner.meta(),
145            Self::DeleteTeamsConfiguredTeamException(inner) => inner.meta(),
146            Self::DescribeChimeWebhookConfigurationsException(inner) => inner.meta(),
147            Self::DescribeSlackChannelConfigurationsException(inner) => inner.meta(),
148            Self::DescribeSlackUserIdentitiesException(inner) => inner.meta(),
149            Self::DescribeSlackWorkspacesException(inner) => inner.meta(),
150            Self::GetAccountPreferencesException(inner) => inner.meta(),
151            Self::GetTeamsChannelConfigurationException(inner) => inner.meta(),
152            Self::InternalServiceError(inner) => inner.meta(),
153            Self::InvalidParameterException(inner) => inner.meta(),
154            Self::InvalidRequestException(inner) => inner.meta(),
155            Self::LimitExceededException(inner) => inner.meta(),
156            Self::ListMicrosoftTeamsConfiguredTeamsException(inner) => inner.meta(),
157            Self::ListMicrosoftTeamsUserIdentitiesException(inner) => inner.meta(),
158            Self::ListTeamsChannelConfigurationsException(inner) => inner.meta(),
159            Self::ResourceNotFoundException(inner) => inner.meta(),
160            Self::ServiceUnavailableException(inner) => inner.meta(),
161            Self::TooManyTagsException(inner) => inner.meta(),
162            Self::UnauthorizedException(inner) => inner.meta(),
163            Self::UpdateAccountPreferencesException(inner) => inner.meta(),
164            Self::UpdateChimeWebhookConfigurationException(inner) => inner.meta(),
165            Self::UpdateSlackChannelConfigurationException(inner) => inner.meta(),
166            Self::UpdateTeamsChannelConfigurationException(inner) => inner.meta(),
167            Self::Unhandled(inner) => &inner.meta,
168        }
169    }
170}
171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_to_configuration::AssociateToConfigurationError, R>>
172    for Error
173where
174    R: Send + Sync + std::fmt::Debug + 'static,
175{
176    fn from(
177        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_to_configuration::AssociateToConfigurationError, R>,
178    ) -> Self {
179        match err {
180            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
181            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
182                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
183                source: err.into(),
184            }),
185        }
186    }
187}
188impl From<crate::operation::associate_to_configuration::AssociateToConfigurationError> for Error {
189    fn from(err: crate::operation::associate_to_configuration::AssociateToConfigurationError) -> Self {
190        match err {
191            crate::operation::associate_to_configuration::AssociateToConfigurationError::InternalServiceError(inner) => {
192                Error::InternalServiceError(inner)
193            }
194            crate::operation::associate_to_configuration::AssociateToConfigurationError::InvalidRequestException(inner) => {
195                Error::InvalidRequestException(inner)
196            }
197            crate::operation::associate_to_configuration::AssociateToConfigurationError::UnauthorizedException(inner) => {
198                Error::UnauthorizedException(inner)
199            }
200            crate::operation::associate_to_configuration::AssociateToConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
201        }
202    }
203}
204impl<R>
205    From<
206        ::aws_smithy_runtime_api::client::result::SdkError<
207            crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationError,
208            R,
209        >,
210    > for Error
211where
212    R: Send + Sync + std::fmt::Debug + 'static,
213{
214    fn from(
215        err: ::aws_smithy_runtime_api::client::result::SdkError<
216            crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationError,
217            R,
218        >,
219    ) -> Self {
220        match err {
221            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
222            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
223                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
224                source: err.into(),
225            }),
226        }
227    }
228}
229impl From<crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationError> for Error {
230    fn from(err: crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationError) -> Self {
231        match err {
232            crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationError::ConflictException(inner) => {
233                Error::ConflictException(inner)
234            }
235            crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationError::CreateChimeWebhookConfigurationException(
236                inner,
237            ) => Error::CreateChimeWebhookConfigurationException(inner),
238            crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationError::InvalidParameterException(inner) => {
239                Error::InvalidParameterException(inner)
240            }
241            crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationError::InvalidRequestException(inner) => {
242                Error::InvalidRequestException(inner)
243            }
244            crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationError::LimitExceededException(inner) => {
245                Error::LimitExceededException(inner)
246            }
247            crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
248        }
249    }
250}
251impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_action::CreateCustomActionError, R>> for Error
252where
253    R: Send + Sync + std::fmt::Debug + 'static,
254{
255    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_action::CreateCustomActionError, R>) -> Self {
256        match err {
257            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
258            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
259                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
260                source: err.into(),
261            }),
262        }
263    }
264}
265impl From<crate::operation::create_custom_action::CreateCustomActionError> for Error {
266    fn from(err: crate::operation::create_custom_action::CreateCustomActionError) -> Self {
267        match err {
268            crate::operation::create_custom_action::CreateCustomActionError::ConflictException(inner) => Error::ConflictException(inner),
269            crate::operation::create_custom_action::CreateCustomActionError::InternalServiceError(inner) => Error::InternalServiceError(inner),
270            crate::operation::create_custom_action::CreateCustomActionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
271            crate::operation::create_custom_action::CreateCustomActionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
272            crate::operation::create_custom_action::CreateCustomActionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
273            crate::operation::create_custom_action::CreateCustomActionError::Unhandled(inner) => Error::Unhandled(inner),
274        }
275    }
276}
277impl<R>
278    From<
279        ::aws_smithy_runtime_api::client::result::SdkError<
280            crate::operation::create_microsoft_teams_channel_configuration::CreateMicrosoftTeamsChannelConfigurationError,
281            R,
282        >,
283    > for Error
284where
285    R: Send + Sync + std::fmt::Debug + 'static,
286{
287    fn from(
288        err: ::aws_smithy_runtime_api::client::result::SdkError<
289            crate::operation::create_microsoft_teams_channel_configuration::CreateMicrosoftTeamsChannelConfigurationError,
290            R,
291        >,
292    ) -> Self {
293        match err {
294            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
295            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
296                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
297                source: err.into(),
298            }),
299        }
300    }
301}
302impl From<crate::operation::create_microsoft_teams_channel_configuration::CreateMicrosoftTeamsChannelConfigurationError> for Error {
303    fn from(err: crate::operation::create_microsoft_teams_channel_configuration::CreateMicrosoftTeamsChannelConfigurationError) -> Self {
304        match err {
305            crate::operation::create_microsoft_teams_channel_configuration::CreateMicrosoftTeamsChannelConfigurationError::ConflictException(inner) => Error::ConflictException(inner),
306            crate::operation::create_microsoft_teams_channel_configuration::CreateMicrosoftTeamsChannelConfigurationError::CreateTeamsChannelConfigurationException(inner) => Error::CreateTeamsChannelConfigurationException(inner),
307            crate::operation::create_microsoft_teams_channel_configuration::CreateMicrosoftTeamsChannelConfigurationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
308            crate::operation::create_microsoft_teams_channel_configuration::CreateMicrosoftTeamsChannelConfigurationError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
309            crate::operation::create_microsoft_teams_channel_configuration::CreateMicrosoftTeamsChannelConfigurationError::LimitExceededException(inner) => Error::LimitExceededException(inner),
310            crate::operation::create_microsoft_teams_channel_configuration::CreateMicrosoftTeamsChannelConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
311        }
312    }
313}
314impl<R>
315    From<
316        ::aws_smithy_runtime_api::client::result::SdkError<
317            crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationError,
318            R,
319        >,
320    > for Error
321where
322    R: Send + Sync + std::fmt::Debug + 'static,
323{
324    fn from(
325        err: ::aws_smithy_runtime_api::client::result::SdkError<
326            crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationError,
327            R,
328        >,
329    ) -> Self {
330        match err {
331            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
332            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
333                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
334                source: err.into(),
335            }),
336        }
337    }
338}
339impl From<crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationError> for Error {
340    fn from(err: crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationError) -> Self {
341        match err {
342            crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationError::ConflictException(inner) => {
343                Error::ConflictException(inner)
344            }
345            crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationError::CreateSlackChannelConfigurationException(
346                inner,
347            ) => Error::CreateSlackChannelConfigurationException(inner),
348            crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationError::InvalidParameterException(inner) => {
349                Error::InvalidParameterException(inner)
350            }
351            crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationError::InvalidRequestException(inner) => {
352                Error::InvalidRequestException(inner)
353            }
354            crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationError::LimitExceededException(inner) => {
355                Error::LimitExceededException(inner)
356            }
357            crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
358        }
359    }
360}
361impl<R>
362    From<
363        ::aws_smithy_runtime_api::client::result::SdkError<
364            crate::operation::delete_chime_webhook_configuration::DeleteChimeWebhookConfigurationError,
365            R,
366        >,
367    > for Error
368where
369    R: Send + Sync + std::fmt::Debug + 'static,
370{
371    fn from(
372        err: ::aws_smithy_runtime_api::client::result::SdkError<
373            crate::operation::delete_chime_webhook_configuration::DeleteChimeWebhookConfigurationError,
374            R,
375        >,
376    ) -> Self {
377        match err {
378            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
379            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
380                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
381                source: err.into(),
382            }),
383        }
384    }
385}
386impl From<crate::operation::delete_chime_webhook_configuration::DeleteChimeWebhookConfigurationError> for Error {
387    fn from(err: crate::operation::delete_chime_webhook_configuration::DeleteChimeWebhookConfigurationError) -> Self {
388        match err {
389            crate::operation::delete_chime_webhook_configuration::DeleteChimeWebhookConfigurationError::DeleteChimeWebhookConfigurationException(
390                inner,
391            ) => Error::DeleteChimeWebhookConfigurationException(inner),
392            crate::operation::delete_chime_webhook_configuration::DeleteChimeWebhookConfigurationError::InvalidParameterException(inner) => {
393                Error::InvalidParameterException(inner)
394            }
395            crate::operation::delete_chime_webhook_configuration::DeleteChimeWebhookConfigurationError::InvalidRequestException(inner) => {
396                Error::InvalidRequestException(inner)
397            }
398            crate::operation::delete_chime_webhook_configuration::DeleteChimeWebhookConfigurationError::ResourceNotFoundException(inner) => {
399                Error::ResourceNotFoundException(inner)
400            }
401            crate::operation::delete_chime_webhook_configuration::DeleteChimeWebhookConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
402        }
403    }
404}
405impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_action::DeleteCustomActionError, R>> for Error
406where
407    R: Send + Sync + std::fmt::Debug + 'static,
408{
409    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_action::DeleteCustomActionError, R>) -> Self {
410        match err {
411            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
412            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
413                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
414                source: err.into(),
415            }),
416        }
417    }
418}
419impl From<crate::operation::delete_custom_action::DeleteCustomActionError> for Error {
420    fn from(err: crate::operation::delete_custom_action::DeleteCustomActionError) -> Self {
421        match err {
422            crate::operation::delete_custom_action::DeleteCustomActionError::InternalServiceError(inner) => Error::InternalServiceError(inner),
423            crate::operation::delete_custom_action::DeleteCustomActionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
424            crate::operation::delete_custom_action::DeleteCustomActionError::ResourceNotFoundException(inner) => {
425                Error::ResourceNotFoundException(inner)
426            }
427            crate::operation::delete_custom_action::DeleteCustomActionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
428            crate::operation::delete_custom_action::DeleteCustomActionError::Unhandled(inner) => Error::Unhandled(inner),
429        }
430    }
431}
432impl<R>
433    From<
434        ::aws_smithy_runtime_api::client::result::SdkError<
435            crate::operation::delete_microsoft_teams_channel_configuration::DeleteMicrosoftTeamsChannelConfigurationError,
436            R,
437        >,
438    > for Error
439where
440    R: Send + Sync + std::fmt::Debug + 'static,
441{
442    fn from(
443        err: ::aws_smithy_runtime_api::client::result::SdkError<
444            crate::operation::delete_microsoft_teams_channel_configuration::DeleteMicrosoftTeamsChannelConfigurationError,
445            R,
446        >,
447    ) -> Self {
448        match err {
449            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
450            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
451                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
452                source: err.into(),
453            }),
454        }
455    }
456}
457impl From<crate::operation::delete_microsoft_teams_channel_configuration::DeleteMicrosoftTeamsChannelConfigurationError> for Error {
458    fn from(err: crate::operation::delete_microsoft_teams_channel_configuration::DeleteMicrosoftTeamsChannelConfigurationError) -> Self {
459        match err {
460            crate::operation::delete_microsoft_teams_channel_configuration::DeleteMicrosoftTeamsChannelConfigurationError::DeleteTeamsChannelConfigurationException(inner) => Error::DeleteTeamsChannelConfigurationException(inner),
461            crate::operation::delete_microsoft_teams_channel_configuration::DeleteMicrosoftTeamsChannelConfigurationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
462            crate::operation::delete_microsoft_teams_channel_configuration::DeleteMicrosoftTeamsChannelConfigurationError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
463            crate::operation::delete_microsoft_teams_channel_configuration::DeleteMicrosoftTeamsChannelConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
464            crate::operation::delete_microsoft_teams_channel_configuration::DeleteMicrosoftTeamsChannelConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
465        }
466    }
467}
468impl<R>
469    From<
470        ::aws_smithy_runtime_api::client::result::SdkError<
471            crate::operation::delete_microsoft_teams_configured_team::DeleteMicrosoftTeamsConfiguredTeamError,
472            R,
473        >,
474    > for Error
475where
476    R: Send + Sync + std::fmt::Debug + 'static,
477{
478    fn from(
479        err: ::aws_smithy_runtime_api::client::result::SdkError<
480            crate::operation::delete_microsoft_teams_configured_team::DeleteMicrosoftTeamsConfiguredTeamError,
481            R,
482        >,
483    ) -> Self {
484        match err {
485            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
486            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
487                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
488                source: err.into(),
489            }),
490        }
491    }
492}
493impl From<crate::operation::delete_microsoft_teams_configured_team::DeleteMicrosoftTeamsConfiguredTeamError> for Error {
494    fn from(err: crate::operation::delete_microsoft_teams_configured_team::DeleteMicrosoftTeamsConfiguredTeamError) -> Self {
495        match err {
496            crate::operation::delete_microsoft_teams_configured_team::DeleteMicrosoftTeamsConfiguredTeamError::DeleteTeamsConfiguredTeamException(
497                inner,
498            ) => Error::DeleteTeamsConfiguredTeamException(inner),
499            crate::operation::delete_microsoft_teams_configured_team::DeleteMicrosoftTeamsConfiguredTeamError::InvalidParameterException(inner) => {
500                Error::InvalidParameterException(inner)
501            }
502            crate::operation::delete_microsoft_teams_configured_team::DeleteMicrosoftTeamsConfiguredTeamError::Unhandled(inner) => {
503                Error::Unhandled(inner)
504            }
505        }
506    }
507}
508impl<R>
509    From<
510        ::aws_smithy_runtime_api::client::result::SdkError<
511            crate::operation::delete_microsoft_teams_user_identity::DeleteMicrosoftTeamsUserIdentityError,
512            R,
513        >,
514    > for Error
515where
516    R: Send + Sync + std::fmt::Debug + 'static,
517{
518    fn from(
519        err: ::aws_smithy_runtime_api::client::result::SdkError<
520            crate::operation::delete_microsoft_teams_user_identity::DeleteMicrosoftTeamsUserIdentityError,
521            R,
522        >,
523    ) -> Self {
524        match err {
525            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
526            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
527                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
528                source: err.into(),
529            }),
530        }
531    }
532}
533impl From<crate::operation::delete_microsoft_teams_user_identity::DeleteMicrosoftTeamsUserIdentityError> for Error {
534    fn from(err: crate::operation::delete_microsoft_teams_user_identity::DeleteMicrosoftTeamsUserIdentityError) -> Self {
535        match err {
536            crate::operation::delete_microsoft_teams_user_identity::DeleteMicrosoftTeamsUserIdentityError::DeleteMicrosoftTeamsUserIdentityException(inner) => Error::DeleteMicrosoftTeamsUserIdentityException(inner),
537            crate::operation::delete_microsoft_teams_user_identity::DeleteMicrosoftTeamsUserIdentityError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
538            crate::operation::delete_microsoft_teams_user_identity::DeleteMicrosoftTeamsUserIdentityError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
539            crate::operation::delete_microsoft_teams_user_identity::DeleteMicrosoftTeamsUserIdentityError::Unhandled(inner) => Error::Unhandled(inner),
540        }
541    }
542}
543impl<R>
544    From<
545        ::aws_smithy_runtime_api::client::result::SdkError<
546            crate::operation::delete_slack_channel_configuration::DeleteSlackChannelConfigurationError,
547            R,
548        >,
549    > for Error
550where
551    R: Send + Sync + std::fmt::Debug + 'static,
552{
553    fn from(
554        err: ::aws_smithy_runtime_api::client::result::SdkError<
555            crate::operation::delete_slack_channel_configuration::DeleteSlackChannelConfigurationError,
556            R,
557        >,
558    ) -> Self {
559        match err {
560            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
561            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
562                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
563                source: err.into(),
564            }),
565        }
566    }
567}
568impl From<crate::operation::delete_slack_channel_configuration::DeleteSlackChannelConfigurationError> for Error {
569    fn from(err: crate::operation::delete_slack_channel_configuration::DeleteSlackChannelConfigurationError) -> Self {
570        match err {
571            crate::operation::delete_slack_channel_configuration::DeleteSlackChannelConfigurationError::DeleteSlackChannelConfigurationException(
572                inner,
573            ) => Error::DeleteSlackChannelConfigurationException(inner),
574            crate::operation::delete_slack_channel_configuration::DeleteSlackChannelConfigurationError::InvalidParameterException(inner) => {
575                Error::InvalidParameterException(inner)
576            }
577            crate::operation::delete_slack_channel_configuration::DeleteSlackChannelConfigurationError::InvalidRequestException(inner) => {
578                Error::InvalidRequestException(inner)
579            }
580            crate::operation::delete_slack_channel_configuration::DeleteSlackChannelConfigurationError::ResourceNotFoundException(inner) => {
581                Error::ResourceNotFoundException(inner)
582            }
583            crate::operation::delete_slack_channel_configuration::DeleteSlackChannelConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
584        }
585    }
586}
587impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_slack_user_identity::DeleteSlackUserIdentityError, R>>
588    for Error
589where
590    R: Send + Sync + std::fmt::Debug + 'static,
591{
592    fn from(
593        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_slack_user_identity::DeleteSlackUserIdentityError, R>,
594    ) -> Self {
595        match err {
596            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
597            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
598                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
599                source: err.into(),
600            }),
601        }
602    }
603}
604impl From<crate::operation::delete_slack_user_identity::DeleteSlackUserIdentityError> for Error {
605    fn from(err: crate::operation::delete_slack_user_identity::DeleteSlackUserIdentityError) -> Self {
606        match err {
607            crate::operation::delete_slack_user_identity::DeleteSlackUserIdentityError::DeleteSlackUserIdentityException(inner) => {
608                Error::DeleteSlackUserIdentityException(inner)
609            }
610            crate::operation::delete_slack_user_identity::DeleteSlackUserIdentityError::InvalidParameterException(inner) => {
611                Error::InvalidParameterException(inner)
612            }
613            crate::operation::delete_slack_user_identity::DeleteSlackUserIdentityError::ResourceNotFoundException(inner) => {
614                Error::ResourceNotFoundException(inner)
615            }
616            crate::operation::delete_slack_user_identity::DeleteSlackUserIdentityError::Unhandled(inner) => Error::Unhandled(inner),
617        }
618    }
619}
620impl<R>
621    From<
622        ::aws_smithy_runtime_api::client::result::SdkError<
623            crate::operation::delete_slack_workspace_authorization::DeleteSlackWorkspaceAuthorizationError,
624            R,
625        >,
626    > for Error
627where
628    R: Send + Sync + std::fmt::Debug + 'static,
629{
630    fn from(
631        err: ::aws_smithy_runtime_api::client::result::SdkError<
632            crate::operation::delete_slack_workspace_authorization::DeleteSlackWorkspaceAuthorizationError,
633            R,
634        >,
635    ) -> Self {
636        match err {
637            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
638            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
639                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
640                source: err.into(),
641            }),
642        }
643    }
644}
645impl From<crate::operation::delete_slack_workspace_authorization::DeleteSlackWorkspaceAuthorizationError> for Error {
646    fn from(err: crate::operation::delete_slack_workspace_authorization::DeleteSlackWorkspaceAuthorizationError) -> Self {
647        match err {
648            crate::operation::delete_slack_workspace_authorization::DeleteSlackWorkspaceAuthorizationError::DeleteSlackWorkspaceAuthorizationFault(inner) => Error::DeleteSlackWorkspaceAuthorizationFault(inner),
649            crate::operation::delete_slack_workspace_authorization::DeleteSlackWorkspaceAuthorizationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
650            crate::operation::delete_slack_workspace_authorization::DeleteSlackWorkspaceAuthorizationError::Unhandled(inner) => Error::Unhandled(inner),
651        }
652    }
653}
654impl<R>
655    From<
656        ::aws_smithy_runtime_api::client::result::SdkError<
657            crate::operation::describe_chime_webhook_configurations::DescribeChimeWebhookConfigurationsError,
658            R,
659        >,
660    > for Error
661where
662    R: Send + Sync + std::fmt::Debug + 'static,
663{
664    fn from(
665        err: ::aws_smithy_runtime_api::client::result::SdkError<
666            crate::operation::describe_chime_webhook_configurations::DescribeChimeWebhookConfigurationsError,
667            R,
668        >,
669    ) -> Self {
670        match err {
671            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
672            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
673                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
674                source: err.into(),
675            }),
676        }
677    }
678}
679impl From<crate::operation::describe_chime_webhook_configurations::DescribeChimeWebhookConfigurationsError> for Error {
680    fn from(err: crate::operation::describe_chime_webhook_configurations::DescribeChimeWebhookConfigurationsError) -> Self {
681        match err {
682            crate::operation::describe_chime_webhook_configurations::DescribeChimeWebhookConfigurationsError::DescribeChimeWebhookConfigurationsException(inner) => Error::DescribeChimeWebhookConfigurationsException(inner),
683            crate::operation::describe_chime_webhook_configurations::DescribeChimeWebhookConfigurationsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
684            crate::operation::describe_chime_webhook_configurations::DescribeChimeWebhookConfigurationsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
685            crate::operation::describe_chime_webhook_configurations::DescribeChimeWebhookConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
686        }
687    }
688}
689impl<R>
690    From<
691        ::aws_smithy_runtime_api::client::result::SdkError<
692            crate::operation::describe_slack_channel_configurations::DescribeSlackChannelConfigurationsError,
693            R,
694        >,
695    > for Error
696where
697    R: Send + Sync + std::fmt::Debug + 'static,
698{
699    fn from(
700        err: ::aws_smithy_runtime_api::client::result::SdkError<
701            crate::operation::describe_slack_channel_configurations::DescribeSlackChannelConfigurationsError,
702            R,
703        >,
704    ) -> Self {
705        match err {
706            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
707            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
708                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
709                source: err.into(),
710            }),
711        }
712    }
713}
714impl From<crate::operation::describe_slack_channel_configurations::DescribeSlackChannelConfigurationsError> for Error {
715    fn from(err: crate::operation::describe_slack_channel_configurations::DescribeSlackChannelConfigurationsError) -> Self {
716        match err {
717            crate::operation::describe_slack_channel_configurations::DescribeSlackChannelConfigurationsError::DescribeSlackChannelConfigurationsException(inner) => Error::DescribeSlackChannelConfigurationsException(inner),
718            crate::operation::describe_slack_channel_configurations::DescribeSlackChannelConfigurationsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
719            crate::operation::describe_slack_channel_configurations::DescribeSlackChannelConfigurationsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
720            crate::operation::describe_slack_channel_configurations::DescribeSlackChannelConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
721        }
722    }
723}
724impl<R>
725    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_slack_user_identities::DescribeSlackUserIdentitiesError, R>>
726    for Error
727where
728    R: Send + Sync + std::fmt::Debug + 'static,
729{
730    fn from(
731        err: ::aws_smithy_runtime_api::client::result::SdkError<
732            crate::operation::describe_slack_user_identities::DescribeSlackUserIdentitiesError,
733            R,
734        >,
735    ) -> Self {
736        match err {
737            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
738            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
739                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
740                source: err.into(),
741            }),
742        }
743    }
744}
745impl From<crate::operation::describe_slack_user_identities::DescribeSlackUserIdentitiesError> for Error {
746    fn from(err: crate::operation::describe_slack_user_identities::DescribeSlackUserIdentitiesError) -> Self {
747        match err {
748            crate::operation::describe_slack_user_identities::DescribeSlackUserIdentitiesError::DescribeSlackUserIdentitiesException(inner) => {
749                Error::DescribeSlackUserIdentitiesException(inner)
750            }
751            crate::operation::describe_slack_user_identities::DescribeSlackUserIdentitiesError::InvalidParameterException(inner) => {
752                Error::InvalidParameterException(inner)
753            }
754            crate::operation::describe_slack_user_identities::DescribeSlackUserIdentitiesError::InvalidRequestException(inner) => {
755                Error::InvalidRequestException(inner)
756            }
757            crate::operation::describe_slack_user_identities::DescribeSlackUserIdentitiesError::Unhandled(inner) => Error::Unhandled(inner),
758        }
759    }
760}
761impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_slack_workspaces::DescribeSlackWorkspacesError, R>>
762    for Error
763where
764    R: Send + Sync + std::fmt::Debug + 'static,
765{
766    fn from(
767        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_slack_workspaces::DescribeSlackWorkspacesError, R>,
768    ) -> Self {
769        match err {
770            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
771            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
772                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
773                source: err.into(),
774            }),
775        }
776    }
777}
778impl From<crate::operation::describe_slack_workspaces::DescribeSlackWorkspacesError> for Error {
779    fn from(err: crate::operation::describe_slack_workspaces::DescribeSlackWorkspacesError) -> Self {
780        match err {
781            crate::operation::describe_slack_workspaces::DescribeSlackWorkspacesError::DescribeSlackWorkspacesException(inner) => {
782                Error::DescribeSlackWorkspacesException(inner)
783            }
784            crate::operation::describe_slack_workspaces::DescribeSlackWorkspacesError::InvalidParameterException(inner) => {
785                Error::InvalidParameterException(inner)
786            }
787            crate::operation::describe_slack_workspaces::DescribeSlackWorkspacesError::InvalidRequestException(inner) => {
788                Error::InvalidRequestException(inner)
789            }
790            crate::operation::describe_slack_workspaces::DescribeSlackWorkspacesError::Unhandled(inner) => Error::Unhandled(inner),
791        }
792    }
793}
794impl<R>
795    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_from_configuration::DisassociateFromConfigurationError, R>>
796    for Error
797where
798    R: Send + Sync + std::fmt::Debug + 'static,
799{
800    fn from(
801        err: ::aws_smithy_runtime_api::client::result::SdkError<
802            crate::operation::disassociate_from_configuration::DisassociateFromConfigurationError,
803            R,
804        >,
805    ) -> Self {
806        match err {
807            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
808            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
809                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
810                source: err.into(),
811            }),
812        }
813    }
814}
815impl From<crate::operation::disassociate_from_configuration::DisassociateFromConfigurationError> for Error {
816    fn from(err: crate::operation::disassociate_from_configuration::DisassociateFromConfigurationError) -> Self {
817        match err {
818            crate::operation::disassociate_from_configuration::DisassociateFromConfigurationError::InternalServiceError(inner) => {
819                Error::InternalServiceError(inner)
820            }
821            crate::operation::disassociate_from_configuration::DisassociateFromConfigurationError::InvalidRequestException(inner) => {
822                Error::InvalidRequestException(inner)
823            }
824            crate::operation::disassociate_from_configuration::DisassociateFromConfigurationError::UnauthorizedException(inner) => {
825                Error::UnauthorizedException(inner)
826            }
827            crate::operation::disassociate_from_configuration::DisassociateFromConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
828        }
829    }
830}
831impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_preferences::GetAccountPreferencesError, R>> for Error
832where
833    R: Send + Sync + std::fmt::Debug + 'static,
834{
835    fn from(
836        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_preferences::GetAccountPreferencesError, R>,
837    ) -> Self {
838        match err {
839            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
840            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
841                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
842                source: err.into(),
843            }),
844        }
845    }
846}
847impl From<crate::operation::get_account_preferences::GetAccountPreferencesError> for Error {
848    fn from(err: crate::operation::get_account_preferences::GetAccountPreferencesError) -> Self {
849        match err {
850            crate::operation::get_account_preferences::GetAccountPreferencesError::GetAccountPreferencesException(inner) => {
851                Error::GetAccountPreferencesException(inner)
852            }
853            crate::operation::get_account_preferences::GetAccountPreferencesError::InvalidRequestException(inner) => {
854                Error::InvalidRequestException(inner)
855            }
856            crate::operation::get_account_preferences::GetAccountPreferencesError::Unhandled(inner) => Error::Unhandled(inner),
857        }
858    }
859}
860impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_custom_action::GetCustomActionError, R>> for Error
861where
862    R: Send + Sync + std::fmt::Debug + 'static,
863{
864    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_custom_action::GetCustomActionError, R>) -> Self {
865        match err {
866            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
867            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
868                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
869                source: err.into(),
870            }),
871        }
872    }
873}
874impl From<crate::operation::get_custom_action::GetCustomActionError> for Error {
875    fn from(err: crate::operation::get_custom_action::GetCustomActionError) -> Self {
876        match err {
877            crate::operation::get_custom_action::GetCustomActionError::InternalServiceError(inner) => Error::InternalServiceError(inner),
878            crate::operation::get_custom_action::GetCustomActionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
879            crate::operation::get_custom_action::GetCustomActionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
880            crate::operation::get_custom_action::GetCustomActionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
881            crate::operation::get_custom_action::GetCustomActionError::Unhandled(inner) => Error::Unhandled(inner),
882        }
883    }
884}
885impl<R>
886    From<
887        ::aws_smithy_runtime_api::client::result::SdkError<
888            crate::operation::get_microsoft_teams_channel_configuration::GetMicrosoftTeamsChannelConfigurationError,
889            R,
890        >,
891    > for Error
892where
893    R: Send + Sync + std::fmt::Debug + 'static,
894{
895    fn from(
896        err: ::aws_smithy_runtime_api::client::result::SdkError<
897            crate::operation::get_microsoft_teams_channel_configuration::GetMicrosoftTeamsChannelConfigurationError,
898            R,
899        >,
900    ) -> Self {
901        match err {
902            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
903            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
904                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
905                source: err.into(),
906            }),
907        }
908    }
909}
910impl From<crate::operation::get_microsoft_teams_channel_configuration::GetMicrosoftTeamsChannelConfigurationError> for Error {
911    fn from(err: crate::operation::get_microsoft_teams_channel_configuration::GetMicrosoftTeamsChannelConfigurationError) -> Self {
912        match err {
913            crate::operation::get_microsoft_teams_channel_configuration::GetMicrosoftTeamsChannelConfigurationError::GetTeamsChannelConfigurationException(inner) => Error::GetTeamsChannelConfigurationException(inner),
914            crate::operation::get_microsoft_teams_channel_configuration::GetMicrosoftTeamsChannelConfigurationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
915            crate::operation::get_microsoft_teams_channel_configuration::GetMicrosoftTeamsChannelConfigurationError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
916            crate::operation::get_microsoft_teams_channel_configuration::GetMicrosoftTeamsChannelConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
917        }
918    }
919}
920impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associations::ListAssociationsError, R>> for Error
921where
922    R: Send + Sync + std::fmt::Debug + 'static,
923{
924    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associations::ListAssociationsError, R>) -> Self {
925        match err {
926            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
927            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
928                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
929                source: err.into(),
930            }),
931        }
932    }
933}
934impl From<crate::operation::list_associations::ListAssociationsError> for Error {
935    fn from(err: crate::operation::list_associations::ListAssociationsError) -> Self {
936        match err {
937            crate::operation::list_associations::ListAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
938        }
939    }
940}
941impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_actions::ListCustomActionsError, R>> for Error
942where
943    R: Send + Sync + std::fmt::Debug + 'static,
944{
945    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_actions::ListCustomActionsError, R>) -> Self {
946        match err {
947            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
948            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
949                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
950                source: err.into(),
951            }),
952        }
953    }
954}
955impl From<crate::operation::list_custom_actions::ListCustomActionsError> for Error {
956    fn from(err: crate::operation::list_custom_actions::ListCustomActionsError) -> Self {
957        match err {
958            crate::operation::list_custom_actions::ListCustomActionsError::InternalServiceError(inner) => Error::InternalServiceError(inner),
959            crate::operation::list_custom_actions::ListCustomActionsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
960            crate::operation::list_custom_actions::ListCustomActionsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
961            crate::operation::list_custom_actions::ListCustomActionsError::Unhandled(inner) => Error::Unhandled(inner),
962        }
963    }
964}
965impl<R>
966    From<
967        ::aws_smithy_runtime_api::client::result::SdkError<
968            crate::operation::list_microsoft_teams_channel_configurations::ListMicrosoftTeamsChannelConfigurationsError,
969            R,
970        >,
971    > for Error
972where
973    R: Send + Sync + std::fmt::Debug + 'static,
974{
975    fn from(
976        err: ::aws_smithy_runtime_api::client::result::SdkError<
977            crate::operation::list_microsoft_teams_channel_configurations::ListMicrosoftTeamsChannelConfigurationsError,
978            R,
979        >,
980    ) -> Self {
981        match err {
982            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
983            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
984                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
985                source: err.into(),
986            }),
987        }
988    }
989}
990impl From<crate::operation::list_microsoft_teams_channel_configurations::ListMicrosoftTeamsChannelConfigurationsError> for Error {
991    fn from(err: crate::operation::list_microsoft_teams_channel_configurations::ListMicrosoftTeamsChannelConfigurationsError) -> Self {
992        match err {
993            crate::operation::list_microsoft_teams_channel_configurations::ListMicrosoftTeamsChannelConfigurationsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
994            crate::operation::list_microsoft_teams_channel_configurations::ListMicrosoftTeamsChannelConfigurationsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
995            crate::operation::list_microsoft_teams_channel_configurations::ListMicrosoftTeamsChannelConfigurationsError::ListTeamsChannelConfigurationsException(inner) => Error::ListTeamsChannelConfigurationsException(inner),
996            crate::operation::list_microsoft_teams_channel_configurations::ListMicrosoftTeamsChannelConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
997        }
998    }
999}
1000impl<R>
1001    From<
1002        ::aws_smithy_runtime_api::client::result::SdkError<
1003            crate::operation::list_microsoft_teams_configured_teams::ListMicrosoftTeamsConfiguredTeamsError,
1004            R,
1005        >,
1006    > for Error
1007where
1008    R: Send + Sync + std::fmt::Debug + 'static,
1009{
1010    fn from(
1011        err: ::aws_smithy_runtime_api::client::result::SdkError<
1012            crate::operation::list_microsoft_teams_configured_teams::ListMicrosoftTeamsConfiguredTeamsError,
1013            R,
1014        >,
1015    ) -> Self {
1016        match err {
1017            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1018            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1019                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1020                source: err.into(),
1021            }),
1022        }
1023    }
1024}
1025impl From<crate::operation::list_microsoft_teams_configured_teams::ListMicrosoftTeamsConfiguredTeamsError> for Error {
1026    fn from(err: crate::operation::list_microsoft_teams_configured_teams::ListMicrosoftTeamsConfiguredTeamsError) -> Self {
1027        match err {
1028            crate::operation::list_microsoft_teams_configured_teams::ListMicrosoftTeamsConfiguredTeamsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1029            crate::operation::list_microsoft_teams_configured_teams::ListMicrosoftTeamsConfiguredTeamsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1030            crate::operation::list_microsoft_teams_configured_teams::ListMicrosoftTeamsConfiguredTeamsError::ListMicrosoftTeamsConfiguredTeamsException(inner) => Error::ListMicrosoftTeamsConfiguredTeamsException(inner),
1031            crate::operation::list_microsoft_teams_configured_teams::ListMicrosoftTeamsConfiguredTeamsError::Unhandled(inner) => Error::Unhandled(inner),
1032        }
1033    }
1034}
1035impl<R>
1036    From<
1037        ::aws_smithy_runtime_api::client::result::SdkError<
1038            crate::operation::list_microsoft_teams_user_identities::ListMicrosoftTeamsUserIdentitiesError,
1039            R,
1040        >,
1041    > for Error
1042where
1043    R: Send + Sync + std::fmt::Debug + 'static,
1044{
1045    fn from(
1046        err: ::aws_smithy_runtime_api::client::result::SdkError<
1047            crate::operation::list_microsoft_teams_user_identities::ListMicrosoftTeamsUserIdentitiesError,
1048            R,
1049        >,
1050    ) -> Self {
1051        match err {
1052            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1053            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1054                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1055                source: err.into(),
1056            }),
1057        }
1058    }
1059}
1060impl From<crate::operation::list_microsoft_teams_user_identities::ListMicrosoftTeamsUserIdentitiesError> for Error {
1061    fn from(err: crate::operation::list_microsoft_teams_user_identities::ListMicrosoftTeamsUserIdentitiesError) -> Self {
1062        match err {
1063            crate::operation::list_microsoft_teams_user_identities::ListMicrosoftTeamsUserIdentitiesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1064            crate::operation::list_microsoft_teams_user_identities::ListMicrosoftTeamsUserIdentitiesError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1065            crate::operation::list_microsoft_teams_user_identities::ListMicrosoftTeamsUserIdentitiesError::ListMicrosoftTeamsUserIdentitiesException(inner) => Error::ListMicrosoftTeamsUserIdentitiesException(inner),
1066            crate::operation::list_microsoft_teams_user_identities::ListMicrosoftTeamsUserIdentitiesError::Unhandled(inner) => Error::Unhandled(inner),
1067        }
1068    }
1069}
1070impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1071where
1072    R: Send + Sync + std::fmt::Debug + 'static,
1073{
1074    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1075        match err {
1076            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1077            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1078                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1079                source: err.into(),
1080            }),
1081        }
1082    }
1083}
1084impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1085    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1086        match err {
1087            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServiceError(inner) => Error::InternalServiceError(inner),
1088            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1089                Error::ResourceNotFoundException(inner)
1090            }
1091            crate::operation::list_tags_for_resource::ListTagsForResourceError::ServiceUnavailableException(inner) => {
1092                Error::ServiceUnavailableException(inner)
1093            }
1094            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1095        }
1096    }
1097}
1098impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1099where
1100    R: Send + Sync + std::fmt::Debug + 'static,
1101{
1102    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1103        match err {
1104            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1105            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1106                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1107                source: err.into(),
1108            }),
1109        }
1110    }
1111}
1112impl From<crate::operation::tag_resource::TagResourceError> for Error {
1113    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1114        match err {
1115            crate::operation::tag_resource::TagResourceError::InternalServiceError(inner) => Error::InternalServiceError(inner),
1116            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1117            crate::operation::tag_resource::TagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1118            crate::operation::tag_resource::TagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
1119            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1120        }
1121    }
1122}
1123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1124where
1125    R: Send + Sync + std::fmt::Debug + 'static,
1126{
1127    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1128        match err {
1129            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1130            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1131                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1132                source: err.into(),
1133            }),
1134        }
1135    }
1136}
1137impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1138    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1139        match err {
1140            crate::operation::untag_resource::UntagResourceError::InternalServiceError(inner) => Error::InternalServiceError(inner),
1141            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1142            crate::operation::untag_resource::UntagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1143            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1144        }
1145    }
1146}
1147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account_preferences::UpdateAccountPreferencesError, R>>
1148    for Error
1149where
1150    R: Send + Sync + std::fmt::Debug + 'static,
1151{
1152    fn from(
1153        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account_preferences::UpdateAccountPreferencesError, R>,
1154    ) -> Self {
1155        match err {
1156            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1157            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1158                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1159                source: err.into(),
1160            }),
1161        }
1162    }
1163}
1164impl From<crate::operation::update_account_preferences::UpdateAccountPreferencesError> for Error {
1165    fn from(err: crate::operation::update_account_preferences::UpdateAccountPreferencesError) -> Self {
1166        match err {
1167            crate::operation::update_account_preferences::UpdateAccountPreferencesError::InvalidParameterException(inner) => {
1168                Error::InvalidParameterException(inner)
1169            }
1170            crate::operation::update_account_preferences::UpdateAccountPreferencesError::InvalidRequestException(inner) => {
1171                Error::InvalidRequestException(inner)
1172            }
1173            crate::operation::update_account_preferences::UpdateAccountPreferencesError::UpdateAccountPreferencesException(inner) => {
1174                Error::UpdateAccountPreferencesException(inner)
1175            }
1176            crate::operation::update_account_preferences::UpdateAccountPreferencesError::Unhandled(inner) => Error::Unhandled(inner),
1177        }
1178    }
1179}
1180impl<R>
1181    From<
1182        ::aws_smithy_runtime_api::client::result::SdkError<
1183            crate::operation::update_chime_webhook_configuration::UpdateChimeWebhookConfigurationError,
1184            R,
1185        >,
1186    > for Error
1187where
1188    R: Send + Sync + std::fmt::Debug + 'static,
1189{
1190    fn from(
1191        err: ::aws_smithy_runtime_api::client::result::SdkError<
1192            crate::operation::update_chime_webhook_configuration::UpdateChimeWebhookConfigurationError,
1193            R,
1194        >,
1195    ) -> Self {
1196        match err {
1197            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1198            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1199                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1200                source: err.into(),
1201            }),
1202        }
1203    }
1204}
1205impl From<crate::operation::update_chime_webhook_configuration::UpdateChimeWebhookConfigurationError> for Error {
1206    fn from(err: crate::operation::update_chime_webhook_configuration::UpdateChimeWebhookConfigurationError) -> Self {
1207        match err {
1208            crate::operation::update_chime_webhook_configuration::UpdateChimeWebhookConfigurationError::InvalidParameterException(inner) => {
1209                Error::InvalidParameterException(inner)
1210            }
1211            crate::operation::update_chime_webhook_configuration::UpdateChimeWebhookConfigurationError::InvalidRequestException(inner) => {
1212                Error::InvalidRequestException(inner)
1213            }
1214            crate::operation::update_chime_webhook_configuration::UpdateChimeWebhookConfigurationError::ResourceNotFoundException(inner) => {
1215                Error::ResourceNotFoundException(inner)
1216            }
1217            crate::operation::update_chime_webhook_configuration::UpdateChimeWebhookConfigurationError::UpdateChimeWebhookConfigurationException(
1218                inner,
1219            ) => Error::UpdateChimeWebhookConfigurationException(inner),
1220            crate::operation::update_chime_webhook_configuration::UpdateChimeWebhookConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1221        }
1222    }
1223}
1224impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_custom_action::UpdateCustomActionError, R>> for Error
1225where
1226    R: Send + Sync + std::fmt::Debug + 'static,
1227{
1228    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_custom_action::UpdateCustomActionError, R>) -> Self {
1229        match err {
1230            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1231            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1232                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1233                source: err.into(),
1234            }),
1235        }
1236    }
1237}
1238impl From<crate::operation::update_custom_action::UpdateCustomActionError> for Error {
1239    fn from(err: crate::operation::update_custom_action::UpdateCustomActionError) -> Self {
1240        match err {
1241            crate::operation::update_custom_action::UpdateCustomActionError::InternalServiceError(inner) => Error::InternalServiceError(inner),
1242            crate::operation::update_custom_action::UpdateCustomActionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1243            crate::operation::update_custom_action::UpdateCustomActionError::ResourceNotFoundException(inner) => {
1244                Error::ResourceNotFoundException(inner)
1245            }
1246            crate::operation::update_custom_action::UpdateCustomActionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1247            crate::operation::update_custom_action::UpdateCustomActionError::Unhandled(inner) => Error::Unhandled(inner),
1248        }
1249    }
1250}
1251impl<R>
1252    From<
1253        ::aws_smithy_runtime_api::client::result::SdkError<
1254            crate::operation::update_microsoft_teams_channel_configuration::UpdateMicrosoftTeamsChannelConfigurationError,
1255            R,
1256        >,
1257    > for Error
1258where
1259    R: Send + Sync + std::fmt::Debug + 'static,
1260{
1261    fn from(
1262        err: ::aws_smithy_runtime_api::client::result::SdkError<
1263            crate::operation::update_microsoft_teams_channel_configuration::UpdateMicrosoftTeamsChannelConfigurationError,
1264            R,
1265        >,
1266    ) -> Self {
1267        match err {
1268            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1269            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1270                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1271                source: err.into(),
1272            }),
1273        }
1274    }
1275}
1276impl From<crate::operation::update_microsoft_teams_channel_configuration::UpdateMicrosoftTeamsChannelConfigurationError> for Error {
1277    fn from(err: crate::operation::update_microsoft_teams_channel_configuration::UpdateMicrosoftTeamsChannelConfigurationError) -> Self {
1278        match err {
1279            crate::operation::update_microsoft_teams_channel_configuration::UpdateMicrosoftTeamsChannelConfigurationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1280            crate::operation::update_microsoft_teams_channel_configuration::UpdateMicrosoftTeamsChannelConfigurationError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1281            crate::operation::update_microsoft_teams_channel_configuration::UpdateMicrosoftTeamsChannelConfigurationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1282            crate::operation::update_microsoft_teams_channel_configuration::UpdateMicrosoftTeamsChannelConfigurationError::UpdateTeamsChannelConfigurationException(inner) => Error::UpdateTeamsChannelConfigurationException(inner),
1283            crate::operation::update_microsoft_teams_channel_configuration::UpdateMicrosoftTeamsChannelConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1284        }
1285    }
1286}
1287impl<R>
1288    From<
1289        ::aws_smithy_runtime_api::client::result::SdkError<
1290            crate::operation::update_slack_channel_configuration::UpdateSlackChannelConfigurationError,
1291            R,
1292        >,
1293    > for Error
1294where
1295    R: Send + Sync + std::fmt::Debug + 'static,
1296{
1297    fn from(
1298        err: ::aws_smithy_runtime_api::client::result::SdkError<
1299            crate::operation::update_slack_channel_configuration::UpdateSlackChannelConfigurationError,
1300            R,
1301        >,
1302    ) -> Self {
1303        match err {
1304            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1305            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1306                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1307                source: err.into(),
1308            }),
1309        }
1310    }
1311}
1312impl From<crate::operation::update_slack_channel_configuration::UpdateSlackChannelConfigurationError> for Error {
1313    fn from(err: crate::operation::update_slack_channel_configuration::UpdateSlackChannelConfigurationError) -> Self {
1314        match err {
1315            crate::operation::update_slack_channel_configuration::UpdateSlackChannelConfigurationError::InvalidParameterException(inner) => {
1316                Error::InvalidParameterException(inner)
1317            }
1318            crate::operation::update_slack_channel_configuration::UpdateSlackChannelConfigurationError::InvalidRequestException(inner) => {
1319                Error::InvalidRequestException(inner)
1320            }
1321            crate::operation::update_slack_channel_configuration::UpdateSlackChannelConfigurationError::ResourceNotFoundException(inner) => {
1322                Error::ResourceNotFoundException(inner)
1323            }
1324            crate::operation::update_slack_channel_configuration::UpdateSlackChannelConfigurationError::UpdateSlackChannelConfigurationException(
1325                inner,
1326            ) => Error::UpdateSlackChannelConfigurationException(inner),
1327            crate::operation::update_slack_channel_configuration::UpdateSlackChannelConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1328        }
1329    }
1330}
1331impl ::std::error::Error for Error {
1332    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1333        match self {
1334            Error::ConflictException(inner) => inner.source(),
1335            Error::CreateChimeWebhookConfigurationException(inner) => inner.source(),
1336            Error::CreateSlackChannelConfigurationException(inner) => inner.source(),
1337            Error::CreateTeamsChannelConfigurationException(inner) => inner.source(),
1338            Error::DeleteChimeWebhookConfigurationException(inner) => inner.source(),
1339            Error::DeleteMicrosoftTeamsUserIdentityException(inner) => inner.source(),
1340            Error::DeleteSlackChannelConfigurationException(inner) => inner.source(),
1341            Error::DeleteSlackUserIdentityException(inner) => inner.source(),
1342            Error::DeleteSlackWorkspaceAuthorizationFault(inner) => inner.source(),
1343            Error::DeleteTeamsChannelConfigurationException(inner) => inner.source(),
1344            Error::DeleteTeamsConfiguredTeamException(inner) => inner.source(),
1345            Error::DescribeChimeWebhookConfigurationsException(inner) => inner.source(),
1346            Error::DescribeSlackChannelConfigurationsException(inner) => inner.source(),
1347            Error::DescribeSlackUserIdentitiesException(inner) => inner.source(),
1348            Error::DescribeSlackWorkspacesException(inner) => inner.source(),
1349            Error::GetAccountPreferencesException(inner) => inner.source(),
1350            Error::GetTeamsChannelConfigurationException(inner) => inner.source(),
1351            Error::InternalServiceError(inner) => inner.source(),
1352            Error::InvalidParameterException(inner) => inner.source(),
1353            Error::InvalidRequestException(inner) => inner.source(),
1354            Error::LimitExceededException(inner) => inner.source(),
1355            Error::ListMicrosoftTeamsConfiguredTeamsException(inner) => inner.source(),
1356            Error::ListMicrosoftTeamsUserIdentitiesException(inner) => inner.source(),
1357            Error::ListTeamsChannelConfigurationsException(inner) => inner.source(),
1358            Error::ResourceNotFoundException(inner) => inner.source(),
1359            Error::ServiceUnavailableException(inner) => inner.source(),
1360            Error::TooManyTagsException(inner) => inner.source(),
1361            Error::UnauthorizedException(inner) => inner.source(),
1362            Error::UpdateAccountPreferencesException(inner) => inner.source(),
1363            Error::UpdateChimeWebhookConfigurationException(inner) => inner.source(),
1364            Error::UpdateSlackChannelConfigurationException(inner) => inner.source(),
1365            Error::UpdateTeamsChannelConfigurationException(inner) => inner.source(),
1366            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1367        }
1368    }
1369}
1370impl ::aws_types::request_id::RequestId for Error {
1371    fn request_id(&self) -> Option<&str> {
1372        match self {
1373            Self::ConflictException(e) => e.request_id(),
1374            Self::CreateChimeWebhookConfigurationException(e) => e.request_id(),
1375            Self::CreateSlackChannelConfigurationException(e) => e.request_id(),
1376            Self::CreateTeamsChannelConfigurationException(e) => e.request_id(),
1377            Self::DeleteChimeWebhookConfigurationException(e) => e.request_id(),
1378            Self::DeleteMicrosoftTeamsUserIdentityException(e) => e.request_id(),
1379            Self::DeleteSlackChannelConfigurationException(e) => e.request_id(),
1380            Self::DeleteSlackUserIdentityException(e) => e.request_id(),
1381            Self::DeleteSlackWorkspaceAuthorizationFault(e) => e.request_id(),
1382            Self::DeleteTeamsChannelConfigurationException(e) => e.request_id(),
1383            Self::DeleteTeamsConfiguredTeamException(e) => e.request_id(),
1384            Self::DescribeChimeWebhookConfigurationsException(e) => e.request_id(),
1385            Self::DescribeSlackChannelConfigurationsException(e) => e.request_id(),
1386            Self::DescribeSlackUserIdentitiesException(e) => e.request_id(),
1387            Self::DescribeSlackWorkspacesException(e) => e.request_id(),
1388            Self::GetAccountPreferencesException(e) => e.request_id(),
1389            Self::GetTeamsChannelConfigurationException(e) => e.request_id(),
1390            Self::InternalServiceError(e) => e.request_id(),
1391            Self::InvalidParameterException(e) => e.request_id(),
1392            Self::InvalidRequestException(e) => e.request_id(),
1393            Self::LimitExceededException(e) => e.request_id(),
1394            Self::ListMicrosoftTeamsConfiguredTeamsException(e) => e.request_id(),
1395            Self::ListMicrosoftTeamsUserIdentitiesException(e) => e.request_id(),
1396            Self::ListTeamsChannelConfigurationsException(e) => e.request_id(),
1397            Self::ResourceNotFoundException(e) => e.request_id(),
1398            Self::ServiceUnavailableException(e) => e.request_id(),
1399            Self::TooManyTagsException(e) => e.request_id(),
1400            Self::UnauthorizedException(e) => e.request_id(),
1401            Self::UpdateAccountPreferencesException(e) => e.request_id(),
1402            Self::UpdateChimeWebhookConfigurationException(e) => e.request_id(),
1403            Self::UpdateSlackChannelConfigurationException(e) => e.request_id(),
1404            Self::UpdateTeamsChannelConfigurationException(e) => e.request_id(),
1405            Self::Unhandled(e) => e.meta.request_id(),
1406        }
1407    }
1408}