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