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_vpc_connection::DescribeVpcConnectionError, R>> for Error
717where
718    R: Send + Sync + std::fmt::Debug + 'static,
719{
720    fn from(
721        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vpc_connection::DescribeVpcConnectionError, R>,
722    ) -> Self {
723        match err {
724            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
725            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
726                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
727                source: err.into(),
728            }),
729        }
730    }
731}
732impl From<crate::operation::describe_vpc_connection::DescribeVpcConnectionError> for Error {
733    fn from(err: crate::operation::describe_vpc_connection::DescribeVpcConnectionError) -> Self {
734        match err {
735            crate::operation::describe_vpc_connection::DescribeVpcConnectionError::BadRequestException(inner) => Error::BadRequestException(inner),
736            crate::operation::describe_vpc_connection::DescribeVpcConnectionError::ForbiddenException(inner) => Error::ForbiddenException(inner),
737            crate::operation::describe_vpc_connection::DescribeVpcConnectionError::InternalServerErrorException(inner) => {
738                Error::InternalServerErrorException(inner)
739            }
740            crate::operation::describe_vpc_connection::DescribeVpcConnectionError::NotFoundException(inner) => Error::NotFoundException(inner),
741            crate::operation::describe_vpc_connection::DescribeVpcConnectionError::ServiceUnavailableException(inner) => {
742                Error::ServiceUnavailableException(inner)
743            }
744            crate::operation::describe_vpc_connection::DescribeVpcConnectionError::UnauthorizedException(inner) => {
745                Error::UnauthorizedException(inner)
746            }
747            crate::operation::describe_vpc_connection::DescribeVpcConnectionError::Unhandled(inner) => Error::Unhandled(inner),
748        }
749    }
750}
751impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bootstrap_brokers::GetBootstrapBrokersError, R>> for Error
752where
753    R: Send + Sync + std::fmt::Debug + 'static,
754{
755    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bootstrap_brokers::GetBootstrapBrokersError, R>) -> Self {
756        match err {
757            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
758            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
759                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
760                source: err.into(),
761            }),
762        }
763    }
764}
765impl From<crate::operation::get_bootstrap_brokers::GetBootstrapBrokersError> for Error {
766    fn from(err: crate::operation::get_bootstrap_brokers::GetBootstrapBrokersError) -> Self {
767        match err {
768            crate::operation::get_bootstrap_brokers::GetBootstrapBrokersError::BadRequestException(inner) => Error::BadRequestException(inner),
769            crate::operation::get_bootstrap_brokers::GetBootstrapBrokersError::ConflictException(inner) => Error::ConflictException(inner),
770            crate::operation::get_bootstrap_brokers::GetBootstrapBrokersError::ForbiddenException(inner) => Error::ForbiddenException(inner),
771            crate::operation::get_bootstrap_brokers::GetBootstrapBrokersError::InternalServerErrorException(inner) => {
772                Error::InternalServerErrorException(inner)
773            }
774            crate::operation::get_bootstrap_brokers::GetBootstrapBrokersError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
775            crate::operation::get_bootstrap_brokers::GetBootstrapBrokersError::Unhandled(inner) => Error::Unhandled(inner),
776        }
777    }
778}
779impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cluster_policy::GetClusterPolicyError, R>> for Error
780where
781    R: Send + Sync + std::fmt::Debug + 'static,
782{
783    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cluster_policy::GetClusterPolicyError, R>) -> 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::get_cluster_policy::GetClusterPolicyError> for Error {
794    fn from(err: crate::operation::get_cluster_policy::GetClusterPolicyError) -> Self {
795        match err {
796            crate::operation::get_cluster_policy::GetClusterPolicyError::BadRequestException(inner) => Error::BadRequestException(inner),
797            crate::operation::get_cluster_policy::GetClusterPolicyError::ForbiddenException(inner) => Error::ForbiddenException(inner),
798            crate::operation::get_cluster_policy::GetClusterPolicyError::InternalServerErrorException(inner) => {
799                Error::InternalServerErrorException(inner)
800            }
801            crate::operation::get_cluster_policy::GetClusterPolicyError::NotFoundException(inner) => Error::NotFoundException(inner),
802            crate::operation::get_cluster_policy::GetClusterPolicyError::Unhandled(inner) => Error::Unhandled(inner),
803        }
804    }
805}
806impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_compatible_kafka_versions::GetCompatibleKafkaVersionsError, R>>
807    for Error
808where
809    R: Send + Sync + std::fmt::Debug + 'static,
810{
811    fn from(
812        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_compatible_kafka_versions::GetCompatibleKafkaVersionsError, R>,
813    ) -> Self {
814        match err {
815            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
816            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
817                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
818                source: err.into(),
819            }),
820        }
821    }
822}
823impl From<crate::operation::get_compatible_kafka_versions::GetCompatibleKafkaVersionsError> for Error {
824    fn from(err: crate::operation::get_compatible_kafka_versions::GetCompatibleKafkaVersionsError) -> Self {
825        match err {
826            crate::operation::get_compatible_kafka_versions::GetCompatibleKafkaVersionsError::BadRequestException(inner) => {
827                Error::BadRequestException(inner)
828            }
829            crate::operation::get_compatible_kafka_versions::GetCompatibleKafkaVersionsError::ForbiddenException(inner) => {
830                Error::ForbiddenException(inner)
831            }
832            crate::operation::get_compatible_kafka_versions::GetCompatibleKafkaVersionsError::InternalServerErrorException(inner) => {
833                Error::InternalServerErrorException(inner)
834            }
835            crate::operation::get_compatible_kafka_versions::GetCompatibleKafkaVersionsError::NotFoundException(inner) => {
836                Error::NotFoundException(inner)
837            }
838            crate::operation::get_compatible_kafka_versions::GetCompatibleKafkaVersionsError::ServiceUnavailableException(inner) => {
839                Error::ServiceUnavailableException(inner)
840            }
841            crate::operation::get_compatible_kafka_versions::GetCompatibleKafkaVersionsError::TooManyRequestsException(inner) => {
842                Error::TooManyRequestsException(inner)
843            }
844            crate::operation::get_compatible_kafka_versions::GetCompatibleKafkaVersionsError::UnauthorizedException(inner) => {
845                Error::UnauthorizedException(inner)
846            }
847            crate::operation::get_compatible_kafka_versions::GetCompatibleKafkaVersionsError::Unhandled(inner) => Error::Unhandled(inner),
848        }
849    }
850}
851impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_client_vpc_connections::ListClientVpcConnectionsError, R>>
852    for Error
853where
854    R: Send + Sync + std::fmt::Debug + 'static,
855{
856    fn from(
857        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_client_vpc_connections::ListClientVpcConnectionsError, R>,
858    ) -> Self {
859        match err {
860            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
861            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
862                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
863                source: err.into(),
864            }),
865        }
866    }
867}
868impl From<crate::operation::list_client_vpc_connections::ListClientVpcConnectionsError> for Error {
869    fn from(err: crate::operation::list_client_vpc_connections::ListClientVpcConnectionsError) -> Self {
870        match err {
871            crate::operation::list_client_vpc_connections::ListClientVpcConnectionsError::BadRequestException(inner) => {
872                Error::BadRequestException(inner)
873            }
874            crate::operation::list_client_vpc_connections::ListClientVpcConnectionsError::ForbiddenException(inner) => {
875                Error::ForbiddenException(inner)
876            }
877            crate::operation::list_client_vpc_connections::ListClientVpcConnectionsError::InternalServerErrorException(inner) => {
878                Error::InternalServerErrorException(inner)
879            }
880            crate::operation::list_client_vpc_connections::ListClientVpcConnectionsError::ServiceUnavailableException(inner) => {
881                Error::ServiceUnavailableException(inner)
882            }
883            crate::operation::list_client_vpc_connections::ListClientVpcConnectionsError::UnauthorizedException(inner) => {
884                Error::UnauthorizedException(inner)
885            }
886            crate::operation::list_client_vpc_connections::ListClientVpcConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
887        }
888    }
889}
890impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_operations::ListClusterOperationsError, R>> for Error
891where
892    R: Send + Sync + std::fmt::Debug + 'static,
893{
894    fn from(
895        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_operations::ListClusterOperationsError, R>,
896    ) -> Self {
897        match err {
898            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
899            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
900                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
901                source: err.into(),
902            }),
903        }
904    }
905}
906impl From<crate::operation::list_cluster_operations::ListClusterOperationsError> for Error {
907    fn from(err: crate::operation::list_cluster_operations::ListClusterOperationsError) -> Self {
908        match err {
909            crate::operation::list_cluster_operations::ListClusterOperationsError::BadRequestException(inner) => Error::BadRequestException(inner),
910            crate::operation::list_cluster_operations::ListClusterOperationsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
911            crate::operation::list_cluster_operations::ListClusterOperationsError::InternalServerErrorException(inner) => {
912                Error::InternalServerErrorException(inner)
913            }
914            crate::operation::list_cluster_operations::ListClusterOperationsError::UnauthorizedException(inner) => {
915                Error::UnauthorizedException(inner)
916            }
917            crate::operation::list_cluster_operations::ListClusterOperationsError::Unhandled(inner) => Error::Unhandled(inner),
918        }
919    }
920}
921impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_operations_v2::ListClusterOperationsV2Error, R>>
922    for Error
923where
924    R: Send + Sync + std::fmt::Debug + 'static,
925{
926    fn from(
927        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cluster_operations_v2::ListClusterOperationsV2Error, R>,
928    ) -> Self {
929        match err {
930            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
931            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
932                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
933                source: err.into(),
934            }),
935        }
936    }
937}
938impl From<crate::operation::list_cluster_operations_v2::ListClusterOperationsV2Error> for Error {
939    fn from(err: crate::operation::list_cluster_operations_v2::ListClusterOperationsV2Error) -> Self {
940        match err {
941            crate::operation::list_cluster_operations_v2::ListClusterOperationsV2Error::BadRequestException(inner) => {
942                Error::BadRequestException(inner)
943            }
944            crate::operation::list_cluster_operations_v2::ListClusterOperationsV2Error::ForbiddenException(inner) => Error::ForbiddenException(inner),
945            crate::operation::list_cluster_operations_v2::ListClusterOperationsV2Error::InternalServerErrorException(inner) => {
946                Error::InternalServerErrorException(inner)
947            }
948            crate::operation::list_cluster_operations_v2::ListClusterOperationsV2Error::NotFoundException(inner) => Error::NotFoundException(inner),
949            crate::operation::list_cluster_operations_v2::ListClusterOperationsV2Error::ServiceUnavailableException(inner) => {
950                Error::ServiceUnavailableException(inner)
951            }
952            crate::operation::list_cluster_operations_v2::ListClusterOperationsV2Error::TooManyRequestsException(inner) => {
953                Error::TooManyRequestsException(inner)
954            }
955            crate::operation::list_cluster_operations_v2::ListClusterOperationsV2Error::UnauthorizedException(inner) => {
956                Error::UnauthorizedException(inner)
957            }
958            crate::operation::list_cluster_operations_v2::ListClusterOperationsV2Error::Unhandled(inner) => Error::Unhandled(inner),
959        }
960    }
961}
962impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_clusters::ListClustersError, R>> for Error
963where
964    R: Send + Sync + std::fmt::Debug + 'static,
965{
966    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_clusters::ListClustersError, R>) -> Self {
967        match err {
968            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
969            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
970                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
971                source: err.into(),
972            }),
973        }
974    }
975}
976impl From<crate::operation::list_clusters::ListClustersError> for Error {
977    fn from(err: crate::operation::list_clusters::ListClustersError) -> Self {
978        match err {
979            crate::operation::list_clusters::ListClustersError::BadRequestException(inner) => Error::BadRequestException(inner),
980            crate::operation::list_clusters::ListClustersError::ForbiddenException(inner) => Error::ForbiddenException(inner),
981            crate::operation::list_clusters::ListClustersError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
982            crate::operation::list_clusters::ListClustersError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
983            crate::operation::list_clusters::ListClustersError::Unhandled(inner) => Error::Unhandled(inner),
984        }
985    }
986}
987impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_clusters_v2::ListClustersV2Error, R>> for Error
988where
989    R: Send + Sync + std::fmt::Debug + 'static,
990{
991    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_clusters_v2::ListClustersV2Error, R>) -> Self {
992        match err {
993            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
994            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
995                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
996                source: err.into(),
997            }),
998        }
999    }
1000}
1001impl From<crate::operation::list_clusters_v2::ListClustersV2Error> for Error {
1002    fn from(err: crate::operation::list_clusters_v2::ListClustersV2Error) -> Self {
1003        match err {
1004            crate::operation::list_clusters_v2::ListClustersV2Error::BadRequestException(inner) => Error::BadRequestException(inner),
1005            crate::operation::list_clusters_v2::ListClustersV2Error::ForbiddenException(inner) => Error::ForbiddenException(inner),
1006            crate::operation::list_clusters_v2::ListClustersV2Error::InternalServerErrorException(inner) => {
1007                Error::InternalServerErrorException(inner)
1008            }
1009            crate::operation::list_clusters_v2::ListClustersV2Error::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1010            crate::operation::list_clusters_v2::ListClustersV2Error::Unhandled(inner) => Error::Unhandled(inner),
1011        }
1012    }
1013}
1014impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_configuration_revisions::ListConfigurationRevisionsError, R>>
1015    for Error
1016where
1017    R: Send + Sync + std::fmt::Debug + 'static,
1018{
1019    fn from(
1020        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_configuration_revisions::ListConfigurationRevisionsError, R>,
1021    ) -> Self {
1022        match err {
1023            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1024            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1025                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1026                source: err.into(),
1027            }),
1028        }
1029    }
1030}
1031impl From<crate::operation::list_configuration_revisions::ListConfigurationRevisionsError> for Error {
1032    fn from(err: crate::operation::list_configuration_revisions::ListConfigurationRevisionsError) -> Self {
1033        match err {
1034            crate::operation::list_configuration_revisions::ListConfigurationRevisionsError::BadRequestException(inner) => {
1035                Error::BadRequestException(inner)
1036            }
1037            crate::operation::list_configuration_revisions::ListConfigurationRevisionsError::ForbiddenException(inner) => {
1038                Error::ForbiddenException(inner)
1039            }
1040            crate::operation::list_configuration_revisions::ListConfigurationRevisionsError::InternalServerErrorException(inner) => {
1041                Error::InternalServerErrorException(inner)
1042            }
1043            crate::operation::list_configuration_revisions::ListConfigurationRevisionsError::NotFoundException(inner) => {
1044                Error::NotFoundException(inner)
1045            }
1046            crate::operation::list_configuration_revisions::ListConfigurationRevisionsError::ServiceUnavailableException(inner) => {
1047                Error::ServiceUnavailableException(inner)
1048            }
1049            crate::operation::list_configuration_revisions::ListConfigurationRevisionsError::UnauthorizedException(inner) => {
1050                Error::UnauthorizedException(inner)
1051            }
1052            crate::operation::list_configuration_revisions::ListConfigurationRevisionsError::Unhandled(inner) => Error::Unhandled(inner),
1053        }
1054    }
1055}
1056impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_configurations::ListConfigurationsError, R>> for Error
1057where
1058    R: Send + Sync + std::fmt::Debug + 'static,
1059{
1060    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_configurations::ListConfigurationsError, R>) -> Self {
1061        match err {
1062            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1063            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1064                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1065                source: err.into(),
1066            }),
1067        }
1068    }
1069}
1070impl From<crate::operation::list_configurations::ListConfigurationsError> for Error {
1071    fn from(err: crate::operation::list_configurations::ListConfigurationsError) -> Self {
1072        match err {
1073            crate::operation::list_configurations::ListConfigurationsError::BadRequestException(inner) => Error::BadRequestException(inner),
1074            crate::operation::list_configurations::ListConfigurationsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1075            crate::operation::list_configurations::ListConfigurationsError::InternalServerErrorException(inner) => {
1076                Error::InternalServerErrorException(inner)
1077            }
1078            crate::operation::list_configurations::ListConfigurationsError::ServiceUnavailableException(inner) => {
1079                Error::ServiceUnavailableException(inner)
1080            }
1081            crate::operation::list_configurations::ListConfigurationsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1082            crate::operation::list_configurations::ListConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1083        }
1084    }
1085}
1086impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_kafka_versions::ListKafkaVersionsError, R>> for Error
1087where
1088    R: Send + Sync + std::fmt::Debug + 'static,
1089{
1090    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_kafka_versions::ListKafkaVersionsError, R>) -> Self {
1091        match err {
1092            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1093            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1094                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1095                source: err.into(),
1096            }),
1097        }
1098    }
1099}
1100impl From<crate::operation::list_kafka_versions::ListKafkaVersionsError> for Error {
1101    fn from(err: crate::operation::list_kafka_versions::ListKafkaVersionsError) -> Self {
1102        match err {
1103            crate::operation::list_kafka_versions::ListKafkaVersionsError::BadRequestException(inner) => Error::BadRequestException(inner),
1104            crate::operation::list_kafka_versions::ListKafkaVersionsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1105            crate::operation::list_kafka_versions::ListKafkaVersionsError::InternalServerErrorException(inner) => {
1106                Error::InternalServerErrorException(inner)
1107            }
1108            crate::operation::list_kafka_versions::ListKafkaVersionsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1109            crate::operation::list_kafka_versions::ListKafkaVersionsError::Unhandled(inner) => Error::Unhandled(inner),
1110        }
1111    }
1112}
1113impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_nodes::ListNodesError, R>> for Error
1114where
1115    R: Send + Sync + std::fmt::Debug + 'static,
1116{
1117    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_nodes::ListNodesError, R>) -> Self {
1118        match err {
1119            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1120            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1121                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1122                source: err.into(),
1123            }),
1124        }
1125    }
1126}
1127impl From<crate::operation::list_nodes::ListNodesError> for Error {
1128    fn from(err: crate::operation::list_nodes::ListNodesError) -> Self {
1129        match err {
1130            crate::operation::list_nodes::ListNodesError::BadRequestException(inner) => Error::BadRequestException(inner),
1131            crate::operation::list_nodes::ListNodesError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1132            crate::operation::list_nodes::ListNodesError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1133            crate::operation::list_nodes::ListNodesError::NotFoundException(inner) => Error::NotFoundException(inner),
1134            crate::operation::list_nodes::ListNodesError::Unhandled(inner) => Error::Unhandled(inner),
1135        }
1136    }
1137}
1138impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_replicators::ListReplicatorsError, R>> for Error
1139where
1140    R: Send + Sync + std::fmt::Debug + 'static,
1141{
1142    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_replicators::ListReplicatorsError, R>) -> Self {
1143        match err {
1144            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1145            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1146                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1147                source: err.into(),
1148            }),
1149        }
1150    }
1151}
1152impl From<crate::operation::list_replicators::ListReplicatorsError> for Error {
1153    fn from(err: crate::operation::list_replicators::ListReplicatorsError) -> Self {
1154        match err {
1155            crate::operation::list_replicators::ListReplicatorsError::BadRequestException(inner) => Error::BadRequestException(inner),
1156            crate::operation::list_replicators::ListReplicatorsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1157            crate::operation::list_replicators::ListReplicatorsError::InternalServerErrorException(inner) => {
1158                Error::InternalServerErrorException(inner)
1159            }
1160            crate::operation::list_replicators::ListReplicatorsError::NotFoundException(inner) => Error::NotFoundException(inner),
1161            crate::operation::list_replicators::ListReplicatorsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1162            crate::operation::list_replicators::ListReplicatorsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1163            crate::operation::list_replicators::ListReplicatorsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1164            crate::operation::list_replicators::ListReplicatorsError::Unhandled(inner) => Error::Unhandled(inner),
1165        }
1166    }
1167}
1168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scram_secrets::ListScramSecretsError, R>> for Error
1169where
1170    R: Send + Sync + std::fmt::Debug + 'static,
1171{
1172    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scram_secrets::ListScramSecretsError, R>) -> Self {
1173        match err {
1174            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1175            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1176                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1177                source: err.into(),
1178            }),
1179        }
1180    }
1181}
1182impl From<crate::operation::list_scram_secrets::ListScramSecretsError> for Error {
1183    fn from(err: crate::operation::list_scram_secrets::ListScramSecretsError) -> Self {
1184        match err {
1185            crate::operation::list_scram_secrets::ListScramSecretsError::BadRequestException(inner) => Error::BadRequestException(inner),
1186            crate::operation::list_scram_secrets::ListScramSecretsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1187            crate::operation::list_scram_secrets::ListScramSecretsError::InternalServerErrorException(inner) => {
1188                Error::InternalServerErrorException(inner)
1189            }
1190            crate::operation::list_scram_secrets::ListScramSecretsError::NotFoundException(inner) => Error::NotFoundException(inner),
1191            crate::operation::list_scram_secrets::ListScramSecretsError::ServiceUnavailableException(inner) => {
1192                Error::ServiceUnavailableException(inner)
1193            }
1194            crate::operation::list_scram_secrets::ListScramSecretsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1195            crate::operation::list_scram_secrets::ListScramSecretsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1196            crate::operation::list_scram_secrets::ListScramSecretsError::Unhandled(inner) => Error::Unhandled(inner),
1197        }
1198    }
1199}
1200impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1201where
1202    R: Send + Sync + std::fmt::Debug + 'static,
1203{
1204    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1205        match err {
1206            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1207            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1208                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1209                source: err.into(),
1210            }),
1211        }
1212    }
1213}
1214impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1215    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1216        match err {
1217            crate::operation::list_tags_for_resource::ListTagsForResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
1218            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerErrorException(inner) => {
1219                Error::InternalServerErrorException(inner)
1220            }
1221            crate::operation::list_tags_for_resource::ListTagsForResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1222            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1223        }
1224    }
1225}
1226impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vpc_connections::ListVpcConnectionsError, R>> for Error
1227where
1228    R: Send + Sync + std::fmt::Debug + 'static,
1229{
1230    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vpc_connections::ListVpcConnectionsError, R>) -> Self {
1231        match err {
1232            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1233            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1234                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1235                source: err.into(),
1236            }),
1237        }
1238    }
1239}
1240impl From<crate::operation::list_vpc_connections::ListVpcConnectionsError> for Error {
1241    fn from(err: crate::operation::list_vpc_connections::ListVpcConnectionsError) -> Self {
1242        match err {
1243            crate::operation::list_vpc_connections::ListVpcConnectionsError::BadRequestException(inner) => Error::BadRequestException(inner),
1244            crate::operation::list_vpc_connections::ListVpcConnectionsError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1245            crate::operation::list_vpc_connections::ListVpcConnectionsError::InternalServerErrorException(inner) => {
1246                Error::InternalServerErrorException(inner)
1247            }
1248            crate::operation::list_vpc_connections::ListVpcConnectionsError::ServiceUnavailableException(inner) => {
1249                Error::ServiceUnavailableException(inner)
1250            }
1251            crate::operation::list_vpc_connections::ListVpcConnectionsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1252            crate::operation::list_vpc_connections::ListVpcConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
1253        }
1254    }
1255}
1256impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_cluster_policy::PutClusterPolicyError, R>> for Error
1257where
1258    R: Send + Sync + std::fmt::Debug + 'static,
1259{
1260    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_cluster_policy::PutClusterPolicyError, R>) -> Self {
1261        match err {
1262            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1263            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1264                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1265                source: err.into(),
1266            }),
1267        }
1268    }
1269}
1270impl From<crate::operation::put_cluster_policy::PutClusterPolicyError> for Error {
1271    fn from(err: crate::operation::put_cluster_policy::PutClusterPolicyError) -> Self {
1272        match err {
1273            crate::operation::put_cluster_policy::PutClusterPolicyError::BadRequestException(inner) => Error::BadRequestException(inner),
1274            crate::operation::put_cluster_policy::PutClusterPolicyError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1275            crate::operation::put_cluster_policy::PutClusterPolicyError::InternalServerErrorException(inner) => {
1276                Error::InternalServerErrorException(inner)
1277            }
1278            crate::operation::put_cluster_policy::PutClusterPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1279        }
1280    }
1281}
1282impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_broker::RebootBrokerError, R>> for Error
1283where
1284    R: Send + Sync + std::fmt::Debug + 'static,
1285{
1286    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_broker::RebootBrokerError, R>) -> Self {
1287        match err {
1288            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1289            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1290                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1291                source: err.into(),
1292            }),
1293        }
1294    }
1295}
1296impl From<crate::operation::reboot_broker::RebootBrokerError> for Error {
1297    fn from(err: crate::operation::reboot_broker::RebootBrokerError) -> Self {
1298        match err {
1299            crate::operation::reboot_broker::RebootBrokerError::BadRequestException(inner) => Error::BadRequestException(inner),
1300            crate::operation::reboot_broker::RebootBrokerError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1301            crate::operation::reboot_broker::RebootBrokerError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1302            crate::operation::reboot_broker::RebootBrokerError::NotFoundException(inner) => Error::NotFoundException(inner),
1303            crate::operation::reboot_broker::RebootBrokerError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1304            crate::operation::reboot_broker::RebootBrokerError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1305            crate::operation::reboot_broker::RebootBrokerError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1306            crate::operation::reboot_broker::RebootBrokerError::Unhandled(inner) => Error::Unhandled(inner),
1307        }
1308    }
1309}
1310impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_client_vpc_connection::RejectClientVpcConnectionError, R>>
1311    for Error
1312where
1313    R: Send + Sync + std::fmt::Debug + 'static,
1314{
1315    fn from(
1316        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_client_vpc_connection::RejectClientVpcConnectionError, R>,
1317    ) -> 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::reject_client_vpc_connection::RejectClientVpcConnectionError> for Error {
1328    fn from(err: crate::operation::reject_client_vpc_connection::RejectClientVpcConnectionError) -> Self {
1329        match err {
1330            crate::operation::reject_client_vpc_connection::RejectClientVpcConnectionError::BadRequestException(inner) => {
1331                Error::BadRequestException(inner)
1332            }
1333            crate::operation::reject_client_vpc_connection::RejectClientVpcConnectionError::ForbiddenException(inner) => {
1334                Error::ForbiddenException(inner)
1335            }
1336            crate::operation::reject_client_vpc_connection::RejectClientVpcConnectionError::InternalServerErrorException(inner) => {
1337                Error::InternalServerErrorException(inner)
1338            }
1339            crate::operation::reject_client_vpc_connection::RejectClientVpcConnectionError::ServiceUnavailableException(inner) => {
1340                Error::ServiceUnavailableException(inner)
1341            }
1342            crate::operation::reject_client_vpc_connection::RejectClientVpcConnectionError::UnauthorizedException(inner) => {
1343                Error::UnauthorizedException(inner)
1344            }
1345            crate::operation::reject_client_vpc_connection::RejectClientVpcConnectionError::Unhandled(inner) => Error::Unhandled(inner),
1346        }
1347    }
1348}
1349impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1350where
1351    R: Send + Sync + std::fmt::Debug + 'static,
1352{
1353    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1354        match err {
1355            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1356            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1357                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1358                source: err.into(),
1359            }),
1360        }
1361    }
1362}
1363impl From<crate::operation::tag_resource::TagResourceError> for Error {
1364    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1365        match err {
1366            crate::operation::tag_resource::TagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
1367            crate::operation::tag_resource::TagResourceError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1368            crate::operation::tag_resource::TagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1369            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1370        }
1371    }
1372}
1373impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1374where
1375    R: Send + Sync + std::fmt::Debug + 'static,
1376{
1377    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1378        match err {
1379            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1380            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1381                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1382                source: err.into(),
1383            }),
1384        }
1385    }
1386}
1387impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1388    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1389        match err {
1390            crate::operation::untag_resource::UntagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
1391            crate::operation::untag_resource::UntagResourceError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1392            crate::operation::untag_resource::UntagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1393            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1394        }
1395    }
1396}
1397impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_broker_count::UpdateBrokerCountError, R>> for Error
1398where
1399    R: Send + Sync + std::fmt::Debug + 'static,
1400{
1401    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_broker_count::UpdateBrokerCountError, R>) -> Self {
1402        match err {
1403            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1404            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1405                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1406                source: err.into(),
1407            }),
1408        }
1409    }
1410}
1411impl From<crate::operation::update_broker_count::UpdateBrokerCountError> for Error {
1412    fn from(err: crate::operation::update_broker_count::UpdateBrokerCountError) -> Self {
1413        match err {
1414            crate::operation::update_broker_count::UpdateBrokerCountError::BadRequestException(inner) => Error::BadRequestException(inner),
1415            crate::operation::update_broker_count::UpdateBrokerCountError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1416            crate::operation::update_broker_count::UpdateBrokerCountError::InternalServerErrorException(inner) => {
1417                Error::InternalServerErrorException(inner)
1418            }
1419            crate::operation::update_broker_count::UpdateBrokerCountError::ServiceUnavailableException(inner) => {
1420                Error::ServiceUnavailableException(inner)
1421            }
1422            crate::operation::update_broker_count::UpdateBrokerCountError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1423            crate::operation::update_broker_count::UpdateBrokerCountError::Unhandled(inner) => Error::Unhandled(inner),
1424        }
1425    }
1426}
1427impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_broker_storage::UpdateBrokerStorageError, R>> for Error
1428where
1429    R: Send + Sync + std::fmt::Debug + 'static,
1430{
1431    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_broker_storage::UpdateBrokerStorageError, R>) -> Self {
1432        match err {
1433            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1434            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1435                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1436                source: err.into(),
1437            }),
1438        }
1439    }
1440}
1441impl From<crate::operation::update_broker_storage::UpdateBrokerStorageError> for Error {
1442    fn from(err: crate::operation::update_broker_storage::UpdateBrokerStorageError) -> Self {
1443        match err {
1444            crate::operation::update_broker_storage::UpdateBrokerStorageError::BadRequestException(inner) => Error::BadRequestException(inner),
1445            crate::operation::update_broker_storage::UpdateBrokerStorageError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1446            crate::operation::update_broker_storage::UpdateBrokerStorageError::InternalServerErrorException(inner) => {
1447                Error::InternalServerErrorException(inner)
1448            }
1449            crate::operation::update_broker_storage::UpdateBrokerStorageError::ServiceUnavailableException(inner) => {
1450                Error::ServiceUnavailableException(inner)
1451            }
1452            crate::operation::update_broker_storage::UpdateBrokerStorageError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1453            crate::operation::update_broker_storage::UpdateBrokerStorageError::Unhandled(inner) => Error::Unhandled(inner),
1454        }
1455    }
1456}
1457impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_broker_type::UpdateBrokerTypeError, R>> for Error
1458where
1459    R: Send + Sync + std::fmt::Debug + 'static,
1460{
1461    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_broker_type::UpdateBrokerTypeError, R>) -> Self {
1462        match err {
1463            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1464            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1465                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1466                source: err.into(),
1467            }),
1468        }
1469    }
1470}
1471impl From<crate::operation::update_broker_type::UpdateBrokerTypeError> for Error {
1472    fn from(err: crate::operation::update_broker_type::UpdateBrokerTypeError) -> Self {
1473        match err {
1474            crate::operation::update_broker_type::UpdateBrokerTypeError::BadRequestException(inner) => Error::BadRequestException(inner),
1475            crate::operation::update_broker_type::UpdateBrokerTypeError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1476            crate::operation::update_broker_type::UpdateBrokerTypeError::InternalServerErrorException(inner) => {
1477                Error::InternalServerErrorException(inner)
1478            }
1479            crate::operation::update_broker_type::UpdateBrokerTypeError::NotFoundException(inner) => Error::NotFoundException(inner),
1480            crate::operation::update_broker_type::UpdateBrokerTypeError::ServiceUnavailableException(inner) => {
1481                Error::ServiceUnavailableException(inner)
1482            }
1483            crate::operation::update_broker_type::UpdateBrokerTypeError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1484            crate::operation::update_broker_type::UpdateBrokerTypeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1485            crate::operation::update_broker_type::UpdateBrokerTypeError::Unhandled(inner) => Error::Unhandled(inner),
1486        }
1487    }
1488}
1489impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_configuration::UpdateClusterConfigurationError, R>>
1490    for Error
1491where
1492    R: Send + Sync + std::fmt::Debug + 'static,
1493{
1494    fn from(
1495        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_configuration::UpdateClusterConfigurationError, R>,
1496    ) -> Self {
1497        match err {
1498            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1499            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1500                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1501                source: err.into(),
1502            }),
1503        }
1504    }
1505}
1506impl From<crate::operation::update_cluster_configuration::UpdateClusterConfigurationError> for Error {
1507    fn from(err: crate::operation::update_cluster_configuration::UpdateClusterConfigurationError) -> Self {
1508        match err {
1509            crate::operation::update_cluster_configuration::UpdateClusterConfigurationError::BadRequestException(inner) => {
1510                Error::BadRequestException(inner)
1511            }
1512            crate::operation::update_cluster_configuration::UpdateClusterConfigurationError::ForbiddenException(inner) => {
1513                Error::ForbiddenException(inner)
1514            }
1515            crate::operation::update_cluster_configuration::UpdateClusterConfigurationError::InternalServerErrorException(inner) => {
1516                Error::InternalServerErrorException(inner)
1517            }
1518            crate::operation::update_cluster_configuration::UpdateClusterConfigurationError::NotFoundException(inner) => {
1519                Error::NotFoundException(inner)
1520            }
1521            crate::operation::update_cluster_configuration::UpdateClusterConfigurationError::ServiceUnavailableException(inner) => {
1522                Error::ServiceUnavailableException(inner)
1523            }
1524            crate::operation::update_cluster_configuration::UpdateClusterConfigurationError::UnauthorizedException(inner) => {
1525                Error::UnauthorizedException(inner)
1526            }
1527            crate::operation::update_cluster_configuration::UpdateClusterConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1528        }
1529    }
1530}
1531impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_kafka_version::UpdateClusterKafkaVersionError, R>>
1532    for Error
1533where
1534    R: Send + Sync + std::fmt::Debug + 'static,
1535{
1536    fn from(
1537        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster_kafka_version::UpdateClusterKafkaVersionError, R>,
1538    ) -> Self {
1539        match err {
1540            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1541            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1542                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1543                source: err.into(),
1544            }),
1545        }
1546    }
1547}
1548impl From<crate::operation::update_cluster_kafka_version::UpdateClusterKafkaVersionError> for Error {
1549    fn from(err: crate::operation::update_cluster_kafka_version::UpdateClusterKafkaVersionError) -> Self {
1550        match err {
1551            crate::operation::update_cluster_kafka_version::UpdateClusterKafkaVersionError::BadRequestException(inner) => {
1552                Error::BadRequestException(inner)
1553            }
1554            crate::operation::update_cluster_kafka_version::UpdateClusterKafkaVersionError::ForbiddenException(inner) => {
1555                Error::ForbiddenException(inner)
1556            }
1557            crate::operation::update_cluster_kafka_version::UpdateClusterKafkaVersionError::InternalServerErrorException(inner) => {
1558                Error::InternalServerErrorException(inner)
1559            }
1560            crate::operation::update_cluster_kafka_version::UpdateClusterKafkaVersionError::NotFoundException(inner) => {
1561                Error::NotFoundException(inner)
1562            }
1563            crate::operation::update_cluster_kafka_version::UpdateClusterKafkaVersionError::ServiceUnavailableException(inner) => {
1564                Error::ServiceUnavailableException(inner)
1565            }
1566            crate::operation::update_cluster_kafka_version::UpdateClusterKafkaVersionError::TooManyRequestsException(inner) => {
1567                Error::TooManyRequestsException(inner)
1568            }
1569            crate::operation::update_cluster_kafka_version::UpdateClusterKafkaVersionError::UnauthorizedException(inner) => {
1570                Error::UnauthorizedException(inner)
1571            }
1572            crate::operation::update_cluster_kafka_version::UpdateClusterKafkaVersionError::Unhandled(inner) => Error::Unhandled(inner),
1573        }
1574    }
1575}
1576impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_configuration::UpdateConfigurationError, R>> for Error
1577where
1578    R: Send + Sync + std::fmt::Debug + 'static,
1579{
1580    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_configuration::UpdateConfigurationError, R>) -> Self {
1581        match err {
1582            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1583            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1584                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1585                source: err.into(),
1586            }),
1587        }
1588    }
1589}
1590impl From<crate::operation::update_configuration::UpdateConfigurationError> for Error {
1591    fn from(err: crate::operation::update_configuration::UpdateConfigurationError) -> Self {
1592        match err {
1593            crate::operation::update_configuration::UpdateConfigurationError::BadRequestException(inner) => Error::BadRequestException(inner),
1594            crate::operation::update_configuration::UpdateConfigurationError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1595            crate::operation::update_configuration::UpdateConfigurationError::InternalServerErrorException(inner) => {
1596                Error::InternalServerErrorException(inner)
1597            }
1598            crate::operation::update_configuration::UpdateConfigurationError::NotFoundException(inner) => Error::NotFoundException(inner),
1599            crate::operation::update_configuration::UpdateConfigurationError::ServiceUnavailableException(inner) => {
1600                Error::ServiceUnavailableException(inner)
1601            }
1602            crate::operation::update_configuration::UpdateConfigurationError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1603            crate::operation::update_configuration::UpdateConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1604        }
1605    }
1606}
1607impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connectivity::UpdateConnectivityError, R>> for Error
1608where
1609    R: Send + Sync + std::fmt::Debug + 'static,
1610{
1611    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connectivity::UpdateConnectivityError, R>) -> Self {
1612        match err {
1613            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1614            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1615                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1616                source: err.into(),
1617            }),
1618        }
1619    }
1620}
1621impl From<crate::operation::update_connectivity::UpdateConnectivityError> for Error {
1622    fn from(err: crate::operation::update_connectivity::UpdateConnectivityError) -> Self {
1623        match err {
1624            crate::operation::update_connectivity::UpdateConnectivityError::BadRequestException(inner) => Error::BadRequestException(inner),
1625            crate::operation::update_connectivity::UpdateConnectivityError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1626            crate::operation::update_connectivity::UpdateConnectivityError::InternalServerErrorException(inner) => {
1627                Error::InternalServerErrorException(inner)
1628            }
1629            crate::operation::update_connectivity::UpdateConnectivityError::NotFoundException(inner) => Error::NotFoundException(inner),
1630            crate::operation::update_connectivity::UpdateConnectivityError::ServiceUnavailableException(inner) => {
1631                Error::ServiceUnavailableException(inner)
1632            }
1633            crate::operation::update_connectivity::UpdateConnectivityError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1634            crate::operation::update_connectivity::UpdateConnectivityError::Unhandled(inner) => Error::Unhandled(inner),
1635        }
1636    }
1637}
1638impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring::UpdateMonitoringError, R>> for Error
1639where
1640    R: Send + Sync + std::fmt::Debug + 'static,
1641{
1642    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitoring::UpdateMonitoringError, R>) -> Self {
1643        match err {
1644            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1645            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1646                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1647                source: err.into(),
1648            }),
1649        }
1650    }
1651}
1652impl From<crate::operation::update_monitoring::UpdateMonitoringError> for Error {
1653    fn from(err: crate::operation::update_monitoring::UpdateMonitoringError) -> Self {
1654        match err {
1655            crate::operation::update_monitoring::UpdateMonitoringError::BadRequestException(inner) => Error::BadRequestException(inner),
1656            crate::operation::update_monitoring::UpdateMonitoringError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1657            crate::operation::update_monitoring::UpdateMonitoringError::InternalServerErrorException(inner) => {
1658                Error::InternalServerErrorException(inner)
1659            }
1660            crate::operation::update_monitoring::UpdateMonitoringError::ServiceUnavailableException(inner) => {
1661                Error::ServiceUnavailableException(inner)
1662            }
1663            crate::operation::update_monitoring::UpdateMonitoringError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1664            crate::operation::update_monitoring::UpdateMonitoringError::Unhandled(inner) => Error::Unhandled(inner),
1665        }
1666    }
1667}
1668impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_replication_info::UpdateReplicationInfoError, R>> for Error
1669where
1670    R: Send + Sync + std::fmt::Debug + 'static,
1671{
1672    fn from(
1673        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_replication_info::UpdateReplicationInfoError, R>,
1674    ) -> Self {
1675        match err {
1676            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1677            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1678                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1679                source: err.into(),
1680            }),
1681        }
1682    }
1683}
1684impl From<crate::operation::update_replication_info::UpdateReplicationInfoError> for Error {
1685    fn from(err: crate::operation::update_replication_info::UpdateReplicationInfoError) -> Self {
1686        match err {
1687            crate::operation::update_replication_info::UpdateReplicationInfoError::BadRequestException(inner) => Error::BadRequestException(inner),
1688            crate::operation::update_replication_info::UpdateReplicationInfoError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1689            crate::operation::update_replication_info::UpdateReplicationInfoError::InternalServerErrorException(inner) => {
1690                Error::InternalServerErrorException(inner)
1691            }
1692            crate::operation::update_replication_info::UpdateReplicationInfoError::NotFoundException(inner) => Error::NotFoundException(inner),
1693            crate::operation::update_replication_info::UpdateReplicationInfoError::ServiceUnavailableException(inner) => {
1694                Error::ServiceUnavailableException(inner)
1695            }
1696            crate::operation::update_replication_info::UpdateReplicationInfoError::TooManyRequestsException(inner) => {
1697                Error::TooManyRequestsException(inner)
1698            }
1699            crate::operation::update_replication_info::UpdateReplicationInfoError::UnauthorizedException(inner) => {
1700                Error::UnauthorizedException(inner)
1701            }
1702            crate::operation::update_replication_info::UpdateReplicationInfoError::Unhandled(inner) => Error::Unhandled(inner),
1703        }
1704    }
1705}
1706impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_security::UpdateSecurityError, R>> for Error
1707where
1708    R: Send + Sync + std::fmt::Debug + 'static,
1709{
1710    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_security::UpdateSecurityError, R>) -> Self {
1711        match err {
1712            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1713            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1714                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1715                source: err.into(),
1716            }),
1717        }
1718    }
1719}
1720impl From<crate::operation::update_security::UpdateSecurityError> for Error {
1721    fn from(err: crate::operation::update_security::UpdateSecurityError) -> Self {
1722        match err {
1723            crate::operation::update_security::UpdateSecurityError::BadRequestException(inner) => Error::BadRequestException(inner),
1724            crate::operation::update_security::UpdateSecurityError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1725            crate::operation::update_security::UpdateSecurityError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1726            crate::operation::update_security::UpdateSecurityError::NotFoundException(inner) => Error::NotFoundException(inner),
1727            crate::operation::update_security::UpdateSecurityError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1728            crate::operation::update_security::UpdateSecurityError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1729            crate::operation::update_security::UpdateSecurityError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1730            crate::operation::update_security::UpdateSecurityError::Unhandled(inner) => Error::Unhandled(inner),
1731        }
1732    }
1733}
1734impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_storage::UpdateStorageError, R>> for Error
1735where
1736    R: Send + Sync + std::fmt::Debug + 'static,
1737{
1738    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_storage::UpdateStorageError, R>) -> Self {
1739        match err {
1740            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1741            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1742                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1743                source: err.into(),
1744            }),
1745        }
1746    }
1747}
1748impl From<crate::operation::update_storage::UpdateStorageError> for Error {
1749    fn from(err: crate::operation::update_storage::UpdateStorageError) -> Self {
1750        match err {
1751            crate::operation::update_storage::UpdateStorageError::BadRequestException(inner) => Error::BadRequestException(inner),
1752            crate::operation::update_storage::UpdateStorageError::ForbiddenException(inner) => Error::ForbiddenException(inner),
1753            crate::operation::update_storage::UpdateStorageError::InternalServerErrorException(inner) => Error::InternalServerErrorException(inner),
1754            crate::operation::update_storage::UpdateStorageError::NotFoundException(inner) => Error::NotFoundException(inner),
1755            crate::operation::update_storage::UpdateStorageError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1756            crate::operation::update_storage::UpdateStorageError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1757            crate::operation::update_storage::UpdateStorageError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1758            crate::operation::update_storage::UpdateStorageError::Unhandled(inner) => Error::Unhandled(inner),
1759        }
1760    }
1761}
1762impl ::std::error::Error for Error {
1763    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1764        match self {
1765            Error::BadRequestException(inner) => inner.source(),
1766            Error::ConflictException(inner) => inner.source(),
1767            Error::ForbiddenException(inner) => inner.source(),
1768            Error::InternalServerErrorException(inner) => inner.source(),
1769            Error::NotFoundException(inner) => inner.source(),
1770            Error::ServiceUnavailableException(inner) => inner.source(),
1771            Error::TooManyRequestsException(inner) => inner.source(),
1772            Error::UnauthorizedException(inner) => inner.source(),
1773            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1774        }
1775    }
1776}
1777impl ::aws_types::request_id::RequestId for Error {
1778    fn request_id(&self) -> Option<&str> {
1779        match self {
1780            Self::BadRequestException(e) => e.request_id(),
1781            Self::ConflictException(e) => e.request_id(),
1782            Self::ForbiddenException(e) => e.request_id(),
1783            Self::InternalServerErrorException(e) => e.request_id(),
1784            Self::NotFoundException(e) => e.request_id(),
1785            Self::ServiceUnavailableException(e) => e.request_id(),
1786            Self::TooManyRequestsException(e) => e.request_id(),
1787            Self::UnauthorizedException(e) => e.request_id(),
1788            Self::Unhandled(e) => e.meta.request_id(),
1789        }
1790    }
1791}