aws_sdk_lexmodelbuilding/
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>Your IAM user or role does not have permission to call the Amazon Lex V2 APIs required to migrate your bot.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and try again.</p>
9    BadRequestException(crate::types::error::BadRequestException),
10    /// <p>There was a conflict processing the request. Try your request again.</p>
11    ConflictException(crate::types::error::ConflictException),
12    /// <p>An internal Amazon Lex error occurred. Try your request again.</p>
13    InternalFailureException(crate::types::error::InternalFailureException),
14    /// <p>The request exceeded a limit. Try your request again.</p>
15    LimitExceededException(crate::types::error::LimitExceededException),
16    /// <p>The resource specified in the request was not found. Check the resource and try again.</p>
17    NotFoundException(crate::types::error::NotFoundException),
18    /// <p>The checksum of the resource that you are trying to change does not match the checksum in the request. Check the resource's checksum and try again.</p>
19    PreconditionFailedException(crate::types::error::PreconditionFailedException),
20    /// <p>The resource that you are attempting to delete is referred to by another resource. Use this information to remove references to the resource that you are trying to delete.</p>
21    /// <p>The body of the exception contains a JSON object that describes the resource.</p>
22    /// <p><code>{ "resourceType": BOT | BOTALIAS | BOTCHANNEL | INTENT,</code></p>
23    /// <p><code>"resourceReference": {</code></p>
24    /// <p><code>"name": <i>string</i>, "version": <i>string</i> } }</code></p>
25    ResourceInUseException(crate::types::error::ResourceInUseException),
26    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
27    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
28    variable wildcard pattern and check `.code()`:
29     \
30    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
31     \
32    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
33    Unhandled(crate::error::sealed_unhandled::Unhandled),
34}
35impl ::std::fmt::Display for Error {
36    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
37        match self {
38            Error::AccessDeniedException(inner) => inner.fmt(f),
39            Error::BadRequestException(inner) => inner.fmt(f),
40            Error::ConflictException(inner) => inner.fmt(f),
41            Error::InternalFailureException(inner) => inner.fmt(f),
42            Error::LimitExceededException(inner) => inner.fmt(f),
43            Error::NotFoundException(inner) => inner.fmt(f),
44            Error::PreconditionFailedException(inner) => inner.fmt(f),
45            Error::ResourceInUseException(inner) => inner.fmt(f),
46            Error::Unhandled(_) => {
47                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
48                    write!(f, "unhandled error ({code})")
49                } else {
50                    f.write_str("unhandled error")
51                }
52            }
53        }
54    }
55}
56impl From<::aws_smithy_types::error::operation::BuildError> for Error {
57    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
58        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
59            source: value.into(),
60            meta: ::std::default::Default::default(),
61        })
62    }
63}
64impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
65    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
66        match self {
67            Self::AccessDeniedException(inner) => inner.meta(),
68            Self::BadRequestException(inner) => inner.meta(),
69            Self::ConflictException(inner) => inner.meta(),
70            Self::InternalFailureException(inner) => inner.meta(),
71            Self::LimitExceededException(inner) => inner.meta(),
72            Self::NotFoundException(inner) => inner.meta(),
73            Self::PreconditionFailedException(inner) => inner.meta(),
74            Self::ResourceInUseException(inner) => inner.meta(),
75            Self::Unhandled(inner) => &inner.meta,
76        }
77    }
78}
79impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot_version::CreateBotVersionError, R>> for Error
80where
81    R: Send + Sync + std::fmt::Debug + 'static,
82{
83    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_bot_version::CreateBotVersionError, R>) -> Self {
84        match err {
85            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
86            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
87                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
88                source: err.into(),
89            }),
90        }
91    }
92}
93impl From<crate::operation::create_bot_version::CreateBotVersionError> for Error {
94    fn from(err: crate::operation::create_bot_version::CreateBotVersionError) -> Self {
95        match err {
96            crate::operation::create_bot_version::CreateBotVersionError::BadRequestException(inner) => Error::BadRequestException(inner),
97            crate::operation::create_bot_version::CreateBotVersionError::ConflictException(inner) => Error::ConflictException(inner),
98            crate::operation::create_bot_version::CreateBotVersionError::InternalFailureException(inner) => Error::InternalFailureException(inner),
99            crate::operation::create_bot_version::CreateBotVersionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
100            crate::operation::create_bot_version::CreateBotVersionError::NotFoundException(inner) => Error::NotFoundException(inner),
101            crate::operation::create_bot_version::CreateBotVersionError::PreconditionFailedException(inner) => {
102                Error::PreconditionFailedException(inner)
103            }
104            crate::operation::create_bot_version::CreateBotVersionError::Unhandled(inner) => Error::Unhandled(inner),
105        }
106    }
107}
108impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_intent_version::CreateIntentVersionError, R>> for Error
109where
110    R: Send + Sync + std::fmt::Debug + 'static,
111{
112    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_intent_version::CreateIntentVersionError, R>) -> Self {
113        match err {
114            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
115            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
116                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
117                source: err.into(),
118            }),
119        }
120    }
121}
122impl From<crate::operation::create_intent_version::CreateIntentVersionError> for Error {
123    fn from(err: crate::operation::create_intent_version::CreateIntentVersionError) -> Self {
124        match err {
125            crate::operation::create_intent_version::CreateIntentVersionError::BadRequestException(inner) => Error::BadRequestException(inner),
126            crate::operation::create_intent_version::CreateIntentVersionError::ConflictException(inner) => Error::ConflictException(inner),
127            crate::operation::create_intent_version::CreateIntentVersionError::InternalFailureException(inner) => {
128                Error::InternalFailureException(inner)
129            }
130            crate::operation::create_intent_version::CreateIntentVersionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
131            crate::operation::create_intent_version::CreateIntentVersionError::NotFoundException(inner) => Error::NotFoundException(inner),
132            crate::operation::create_intent_version::CreateIntentVersionError::PreconditionFailedException(inner) => {
133                Error::PreconditionFailedException(inner)
134            }
135            crate::operation::create_intent_version::CreateIntentVersionError::Unhandled(inner) => Error::Unhandled(inner),
136        }
137    }
138}
139impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_slot_type_version::CreateSlotTypeVersionError, R>> for Error
140where
141    R: Send + Sync + std::fmt::Debug + 'static,
142{
143    fn from(
144        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_slot_type_version::CreateSlotTypeVersionError, R>,
145    ) -> Self {
146        match err {
147            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
148            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
149                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
150                source: err.into(),
151            }),
152        }
153    }
154}
155impl From<crate::operation::create_slot_type_version::CreateSlotTypeVersionError> for Error {
156    fn from(err: crate::operation::create_slot_type_version::CreateSlotTypeVersionError) -> Self {
157        match err {
158            crate::operation::create_slot_type_version::CreateSlotTypeVersionError::BadRequestException(inner) => Error::BadRequestException(inner),
159            crate::operation::create_slot_type_version::CreateSlotTypeVersionError::ConflictException(inner) => Error::ConflictException(inner),
160            crate::operation::create_slot_type_version::CreateSlotTypeVersionError::InternalFailureException(inner) => {
161                Error::InternalFailureException(inner)
162            }
163            crate::operation::create_slot_type_version::CreateSlotTypeVersionError::LimitExceededException(inner) => {
164                Error::LimitExceededException(inner)
165            }
166            crate::operation::create_slot_type_version::CreateSlotTypeVersionError::NotFoundException(inner) => Error::NotFoundException(inner),
167            crate::operation::create_slot_type_version::CreateSlotTypeVersionError::PreconditionFailedException(inner) => {
168                Error::PreconditionFailedException(inner)
169            }
170            crate::operation::create_slot_type_version::CreateSlotTypeVersionError::Unhandled(inner) => Error::Unhandled(inner),
171        }
172    }
173}
174impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot::DeleteBotError, R>> for Error
175where
176    R: Send + Sync + std::fmt::Debug + 'static,
177{
178    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot::DeleteBotError, R>) -> Self {
179        match err {
180            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
181            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
182                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
183                source: err.into(),
184            }),
185        }
186    }
187}
188impl From<crate::operation::delete_bot::DeleteBotError> for Error {
189    fn from(err: crate::operation::delete_bot::DeleteBotError) -> Self {
190        match err {
191            crate::operation::delete_bot::DeleteBotError::BadRequestException(inner) => Error::BadRequestException(inner),
192            crate::operation::delete_bot::DeleteBotError::ConflictException(inner) => Error::ConflictException(inner),
193            crate::operation::delete_bot::DeleteBotError::InternalFailureException(inner) => Error::InternalFailureException(inner),
194            crate::operation::delete_bot::DeleteBotError::LimitExceededException(inner) => Error::LimitExceededException(inner),
195            crate::operation::delete_bot::DeleteBotError::NotFoundException(inner) => Error::NotFoundException(inner),
196            crate::operation::delete_bot::DeleteBotError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
197            crate::operation::delete_bot::DeleteBotError::Unhandled(inner) => Error::Unhandled(inner),
198        }
199    }
200}
201impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_alias::DeleteBotAliasError, R>> for Error
202where
203    R: Send + Sync + std::fmt::Debug + 'static,
204{
205    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_alias::DeleteBotAliasError, R>) -> Self {
206        match err {
207            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
208            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
209                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
210                source: err.into(),
211            }),
212        }
213    }
214}
215impl From<crate::operation::delete_bot_alias::DeleteBotAliasError> for Error {
216    fn from(err: crate::operation::delete_bot_alias::DeleteBotAliasError) -> Self {
217        match err {
218            crate::operation::delete_bot_alias::DeleteBotAliasError::BadRequestException(inner) => Error::BadRequestException(inner),
219            crate::operation::delete_bot_alias::DeleteBotAliasError::ConflictException(inner) => Error::ConflictException(inner),
220            crate::operation::delete_bot_alias::DeleteBotAliasError::InternalFailureException(inner) => Error::InternalFailureException(inner),
221            crate::operation::delete_bot_alias::DeleteBotAliasError::LimitExceededException(inner) => Error::LimitExceededException(inner),
222            crate::operation::delete_bot_alias::DeleteBotAliasError::NotFoundException(inner) => Error::NotFoundException(inner),
223            crate::operation::delete_bot_alias::DeleteBotAliasError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
224            crate::operation::delete_bot_alias::DeleteBotAliasError::Unhandled(inner) => Error::Unhandled(inner),
225        }
226    }
227}
228impl<R>
229    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_channel_association::DeleteBotChannelAssociationError, R>>
230    for Error
231where
232    R: Send + Sync + std::fmt::Debug + 'static,
233{
234    fn from(
235        err: ::aws_smithy_runtime_api::client::result::SdkError<
236            crate::operation::delete_bot_channel_association::DeleteBotChannelAssociationError,
237            R,
238        >,
239    ) -> Self {
240        match err {
241            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
242            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
243                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
244                source: err.into(),
245            }),
246        }
247    }
248}
249impl From<crate::operation::delete_bot_channel_association::DeleteBotChannelAssociationError> for Error {
250    fn from(err: crate::operation::delete_bot_channel_association::DeleteBotChannelAssociationError) -> Self {
251        match err {
252            crate::operation::delete_bot_channel_association::DeleteBotChannelAssociationError::BadRequestException(inner) => {
253                Error::BadRequestException(inner)
254            }
255            crate::operation::delete_bot_channel_association::DeleteBotChannelAssociationError::ConflictException(inner) => {
256                Error::ConflictException(inner)
257            }
258            crate::operation::delete_bot_channel_association::DeleteBotChannelAssociationError::InternalFailureException(inner) => {
259                Error::InternalFailureException(inner)
260            }
261            crate::operation::delete_bot_channel_association::DeleteBotChannelAssociationError::LimitExceededException(inner) => {
262                Error::LimitExceededException(inner)
263            }
264            crate::operation::delete_bot_channel_association::DeleteBotChannelAssociationError::NotFoundException(inner) => {
265                Error::NotFoundException(inner)
266            }
267            crate::operation::delete_bot_channel_association::DeleteBotChannelAssociationError::Unhandled(inner) => Error::Unhandled(inner),
268        }
269    }
270}
271impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_version::DeleteBotVersionError, R>> for Error
272where
273    R: Send + Sync + std::fmt::Debug + 'static,
274{
275    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_bot_version::DeleteBotVersionError, R>) -> Self {
276        match err {
277            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
278            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
279                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
280                source: err.into(),
281            }),
282        }
283    }
284}
285impl From<crate::operation::delete_bot_version::DeleteBotVersionError> for Error {
286    fn from(err: crate::operation::delete_bot_version::DeleteBotVersionError) -> Self {
287        match err {
288            crate::operation::delete_bot_version::DeleteBotVersionError::BadRequestException(inner) => Error::BadRequestException(inner),
289            crate::operation::delete_bot_version::DeleteBotVersionError::ConflictException(inner) => Error::ConflictException(inner),
290            crate::operation::delete_bot_version::DeleteBotVersionError::InternalFailureException(inner) => Error::InternalFailureException(inner),
291            crate::operation::delete_bot_version::DeleteBotVersionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
292            crate::operation::delete_bot_version::DeleteBotVersionError::NotFoundException(inner) => Error::NotFoundException(inner),
293            crate::operation::delete_bot_version::DeleteBotVersionError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
294            crate::operation::delete_bot_version::DeleteBotVersionError::Unhandled(inner) => Error::Unhandled(inner),
295        }
296    }
297}
298impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_intent::DeleteIntentError, R>> for Error
299where
300    R: Send + Sync + std::fmt::Debug + 'static,
301{
302    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_intent::DeleteIntentError, R>) -> Self {
303        match err {
304            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
305            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
306                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
307                source: err.into(),
308            }),
309        }
310    }
311}
312impl From<crate::operation::delete_intent::DeleteIntentError> for Error {
313    fn from(err: crate::operation::delete_intent::DeleteIntentError) -> Self {
314        match err {
315            crate::operation::delete_intent::DeleteIntentError::BadRequestException(inner) => Error::BadRequestException(inner),
316            crate::operation::delete_intent::DeleteIntentError::ConflictException(inner) => Error::ConflictException(inner),
317            crate::operation::delete_intent::DeleteIntentError::InternalFailureException(inner) => Error::InternalFailureException(inner),
318            crate::operation::delete_intent::DeleteIntentError::LimitExceededException(inner) => Error::LimitExceededException(inner),
319            crate::operation::delete_intent::DeleteIntentError::NotFoundException(inner) => Error::NotFoundException(inner),
320            crate::operation::delete_intent::DeleteIntentError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
321            crate::operation::delete_intent::DeleteIntentError::Unhandled(inner) => Error::Unhandled(inner),
322        }
323    }
324}
325impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_intent_version::DeleteIntentVersionError, R>> for Error
326where
327    R: Send + Sync + std::fmt::Debug + 'static,
328{
329    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_intent_version::DeleteIntentVersionError, R>) -> Self {
330        match err {
331            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
332            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
333                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
334                source: err.into(),
335            }),
336        }
337    }
338}
339impl From<crate::operation::delete_intent_version::DeleteIntentVersionError> for Error {
340    fn from(err: crate::operation::delete_intent_version::DeleteIntentVersionError) -> Self {
341        match err {
342            crate::operation::delete_intent_version::DeleteIntentVersionError::BadRequestException(inner) => Error::BadRequestException(inner),
343            crate::operation::delete_intent_version::DeleteIntentVersionError::ConflictException(inner) => Error::ConflictException(inner),
344            crate::operation::delete_intent_version::DeleteIntentVersionError::InternalFailureException(inner) => {
345                Error::InternalFailureException(inner)
346            }
347            crate::operation::delete_intent_version::DeleteIntentVersionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
348            crate::operation::delete_intent_version::DeleteIntentVersionError::NotFoundException(inner) => Error::NotFoundException(inner),
349            crate::operation::delete_intent_version::DeleteIntentVersionError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
350            crate::operation::delete_intent_version::DeleteIntentVersionError::Unhandled(inner) => Error::Unhandled(inner),
351        }
352    }
353}
354impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_slot_type::DeleteSlotTypeError, 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_slot_type::DeleteSlotTypeError, 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_slot_type::DeleteSlotTypeError> for Error {
369    fn from(err: crate::operation::delete_slot_type::DeleteSlotTypeError) -> Self {
370        match err {
371            crate::operation::delete_slot_type::DeleteSlotTypeError::BadRequestException(inner) => Error::BadRequestException(inner),
372            crate::operation::delete_slot_type::DeleteSlotTypeError::ConflictException(inner) => Error::ConflictException(inner),
373            crate::operation::delete_slot_type::DeleteSlotTypeError::InternalFailureException(inner) => Error::InternalFailureException(inner),
374            crate::operation::delete_slot_type::DeleteSlotTypeError::LimitExceededException(inner) => Error::LimitExceededException(inner),
375            crate::operation::delete_slot_type::DeleteSlotTypeError::NotFoundException(inner) => Error::NotFoundException(inner),
376            crate::operation::delete_slot_type::DeleteSlotTypeError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
377            crate::operation::delete_slot_type::DeleteSlotTypeError::Unhandled(inner) => Error::Unhandled(inner),
378        }
379    }
380}
381impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_slot_type_version::DeleteSlotTypeVersionError, R>> for Error
382where
383    R: Send + Sync + std::fmt::Debug + 'static,
384{
385    fn from(
386        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_slot_type_version::DeleteSlotTypeVersionError, R>,
387    ) -> Self {
388        match err {
389            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
390            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
391                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
392                source: err.into(),
393            }),
394        }
395    }
396}
397impl From<crate::operation::delete_slot_type_version::DeleteSlotTypeVersionError> for Error {
398    fn from(err: crate::operation::delete_slot_type_version::DeleteSlotTypeVersionError) -> Self {
399        match err {
400            crate::operation::delete_slot_type_version::DeleteSlotTypeVersionError::BadRequestException(inner) => Error::BadRequestException(inner),
401            crate::operation::delete_slot_type_version::DeleteSlotTypeVersionError::ConflictException(inner) => Error::ConflictException(inner),
402            crate::operation::delete_slot_type_version::DeleteSlotTypeVersionError::InternalFailureException(inner) => {
403                Error::InternalFailureException(inner)
404            }
405            crate::operation::delete_slot_type_version::DeleteSlotTypeVersionError::LimitExceededException(inner) => {
406                Error::LimitExceededException(inner)
407            }
408            crate::operation::delete_slot_type_version::DeleteSlotTypeVersionError::NotFoundException(inner) => Error::NotFoundException(inner),
409            crate::operation::delete_slot_type_version::DeleteSlotTypeVersionError::ResourceInUseException(inner) => {
410                Error::ResourceInUseException(inner)
411            }
412            crate::operation::delete_slot_type_version::DeleteSlotTypeVersionError::Unhandled(inner) => Error::Unhandled(inner),
413        }
414    }
415}
416impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_utterances::DeleteUtterancesError, R>> for Error
417where
418    R: Send + Sync + std::fmt::Debug + 'static,
419{
420    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_utterances::DeleteUtterancesError, R>) -> Self {
421        match err {
422            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
423            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
424                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
425                source: err.into(),
426            }),
427        }
428    }
429}
430impl From<crate::operation::delete_utterances::DeleteUtterancesError> for Error {
431    fn from(err: crate::operation::delete_utterances::DeleteUtterancesError) -> Self {
432        match err {
433            crate::operation::delete_utterances::DeleteUtterancesError::BadRequestException(inner) => Error::BadRequestException(inner),
434            crate::operation::delete_utterances::DeleteUtterancesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
435            crate::operation::delete_utterances::DeleteUtterancesError::LimitExceededException(inner) => Error::LimitExceededException(inner),
436            crate::operation::delete_utterances::DeleteUtterancesError::NotFoundException(inner) => Error::NotFoundException(inner),
437            crate::operation::delete_utterances::DeleteUtterancesError::Unhandled(inner) => Error::Unhandled(inner),
438        }
439    }
440}
441impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot::GetBotError, R>> for Error
442where
443    R: Send + Sync + std::fmt::Debug + 'static,
444{
445    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot::GetBotError, R>) -> Self {
446        match err {
447            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
448            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
449                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
450                source: err.into(),
451            }),
452        }
453    }
454}
455impl From<crate::operation::get_bot::GetBotError> for Error {
456    fn from(err: crate::operation::get_bot::GetBotError) -> Self {
457        match err {
458            crate::operation::get_bot::GetBotError::BadRequestException(inner) => Error::BadRequestException(inner),
459            crate::operation::get_bot::GetBotError::InternalFailureException(inner) => Error::InternalFailureException(inner),
460            crate::operation::get_bot::GetBotError::LimitExceededException(inner) => Error::LimitExceededException(inner),
461            crate::operation::get_bot::GetBotError::NotFoundException(inner) => Error::NotFoundException(inner),
462            crate::operation::get_bot::GetBotError::Unhandled(inner) => Error::Unhandled(inner),
463        }
464    }
465}
466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot_alias::GetBotAliasError, R>> for Error
467where
468    R: Send + Sync + std::fmt::Debug + 'static,
469{
470    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot_alias::GetBotAliasError, R>) -> Self {
471        match err {
472            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
473            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
474                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
475                source: err.into(),
476            }),
477        }
478    }
479}
480impl From<crate::operation::get_bot_alias::GetBotAliasError> for Error {
481    fn from(err: crate::operation::get_bot_alias::GetBotAliasError) -> Self {
482        match err {
483            crate::operation::get_bot_alias::GetBotAliasError::BadRequestException(inner) => Error::BadRequestException(inner),
484            crate::operation::get_bot_alias::GetBotAliasError::InternalFailureException(inner) => Error::InternalFailureException(inner),
485            crate::operation::get_bot_alias::GetBotAliasError::LimitExceededException(inner) => Error::LimitExceededException(inner),
486            crate::operation::get_bot_alias::GetBotAliasError::NotFoundException(inner) => Error::NotFoundException(inner),
487            crate::operation::get_bot_alias::GetBotAliasError::Unhandled(inner) => Error::Unhandled(inner),
488        }
489    }
490}
491impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot_aliases::GetBotAliasesError, R>> for Error
492where
493    R: Send + Sync + std::fmt::Debug + 'static,
494{
495    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot_aliases::GetBotAliasesError, R>) -> Self {
496        match err {
497            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
498            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
499                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
500                source: err.into(),
501            }),
502        }
503    }
504}
505impl From<crate::operation::get_bot_aliases::GetBotAliasesError> for Error {
506    fn from(err: crate::operation::get_bot_aliases::GetBotAliasesError) -> Self {
507        match err {
508            crate::operation::get_bot_aliases::GetBotAliasesError::BadRequestException(inner) => Error::BadRequestException(inner),
509            crate::operation::get_bot_aliases::GetBotAliasesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
510            crate::operation::get_bot_aliases::GetBotAliasesError::LimitExceededException(inner) => Error::LimitExceededException(inner),
511            crate::operation::get_bot_aliases::GetBotAliasesError::Unhandled(inner) => Error::Unhandled(inner),
512        }
513    }
514}
515impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot_channel_association::GetBotChannelAssociationError, R>>
516    for Error
517where
518    R: Send + Sync + std::fmt::Debug + 'static,
519{
520    fn from(
521        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot_channel_association::GetBotChannelAssociationError, R>,
522    ) -> Self {
523        match err {
524            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
525            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
526                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
527                source: err.into(),
528            }),
529        }
530    }
531}
532impl From<crate::operation::get_bot_channel_association::GetBotChannelAssociationError> for Error {
533    fn from(err: crate::operation::get_bot_channel_association::GetBotChannelAssociationError) -> Self {
534        match err {
535            crate::operation::get_bot_channel_association::GetBotChannelAssociationError::BadRequestException(inner) => {
536                Error::BadRequestException(inner)
537            }
538            crate::operation::get_bot_channel_association::GetBotChannelAssociationError::InternalFailureException(inner) => {
539                Error::InternalFailureException(inner)
540            }
541            crate::operation::get_bot_channel_association::GetBotChannelAssociationError::LimitExceededException(inner) => {
542                Error::LimitExceededException(inner)
543            }
544            crate::operation::get_bot_channel_association::GetBotChannelAssociationError::NotFoundException(inner) => Error::NotFoundException(inner),
545            crate::operation::get_bot_channel_association::GetBotChannelAssociationError::Unhandled(inner) => Error::Unhandled(inner),
546        }
547    }
548}
549impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot_channel_associations::GetBotChannelAssociationsError, R>>
550    for Error
551where
552    R: Send + Sync + std::fmt::Debug + 'static,
553{
554    fn from(
555        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot_channel_associations::GetBotChannelAssociationsError, R>,
556    ) -> Self {
557        match err {
558            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
559            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
560                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
561                source: err.into(),
562            }),
563        }
564    }
565}
566impl From<crate::operation::get_bot_channel_associations::GetBotChannelAssociationsError> for Error {
567    fn from(err: crate::operation::get_bot_channel_associations::GetBotChannelAssociationsError) -> Self {
568        match err {
569            crate::operation::get_bot_channel_associations::GetBotChannelAssociationsError::BadRequestException(inner) => {
570                Error::BadRequestException(inner)
571            }
572            crate::operation::get_bot_channel_associations::GetBotChannelAssociationsError::InternalFailureException(inner) => {
573                Error::InternalFailureException(inner)
574            }
575            crate::operation::get_bot_channel_associations::GetBotChannelAssociationsError::LimitExceededException(inner) => {
576                Error::LimitExceededException(inner)
577            }
578            crate::operation::get_bot_channel_associations::GetBotChannelAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
579        }
580    }
581}
582impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bots::GetBotsError, R>> for Error
583where
584    R: Send + Sync + std::fmt::Debug + 'static,
585{
586    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bots::GetBotsError, R>) -> Self {
587        match err {
588            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
589            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
590                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
591                source: err.into(),
592            }),
593        }
594    }
595}
596impl From<crate::operation::get_bots::GetBotsError> for Error {
597    fn from(err: crate::operation::get_bots::GetBotsError) -> Self {
598        match err {
599            crate::operation::get_bots::GetBotsError::BadRequestException(inner) => Error::BadRequestException(inner),
600            crate::operation::get_bots::GetBotsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
601            crate::operation::get_bots::GetBotsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
602            crate::operation::get_bots::GetBotsError::NotFoundException(inner) => Error::NotFoundException(inner),
603            crate::operation::get_bots::GetBotsError::Unhandled(inner) => Error::Unhandled(inner),
604        }
605    }
606}
607impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot_versions::GetBotVersionsError, R>> for Error
608where
609    R: Send + Sync + std::fmt::Debug + 'static,
610{
611    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_bot_versions::GetBotVersionsError, R>) -> 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::get_bot_versions::GetBotVersionsError> for Error {
622    fn from(err: crate::operation::get_bot_versions::GetBotVersionsError) -> Self {
623        match err {
624            crate::operation::get_bot_versions::GetBotVersionsError::BadRequestException(inner) => Error::BadRequestException(inner),
625            crate::operation::get_bot_versions::GetBotVersionsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
626            crate::operation::get_bot_versions::GetBotVersionsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
627            crate::operation::get_bot_versions::GetBotVersionsError::NotFoundException(inner) => Error::NotFoundException(inner),
628            crate::operation::get_bot_versions::GetBotVersionsError::Unhandled(inner) => Error::Unhandled(inner),
629        }
630    }
631}
632impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_builtin_intent::GetBuiltinIntentError, R>> for Error
633where
634    R: Send + Sync + std::fmt::Debug + 'static,
635{
636    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_builtin_intent::GetBuiltinIntentError, R>) -> Self {
637        match err {
638            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
639            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
640                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
641                source: err.into(),
642            }),
643        }
644    }
645}
646impl From<crate::operation::get_builtin_intent::GetBuiltinIntentError> for Error {
647    fn from(err: crate::operation::get_builtin_intent::GetBuiltinIntentError) -> Self {
648        match err {
649            crate::operation::get_builtin_intent::GetBuiltinIntentError::BadRequestException(inner) => Error::BadRequestException(inner),
650            crate::operation::get_builtin_intent::GetBuiltinIntentError::InternalFailureException(inner) => Error::InternalFailureException(inner),
651            crate::operation::get_builtin_intent::GetBuiltinIntentError::LimitExceededException(inner) => Error::LimitExceededException(inner),
652            crate::operation::get_builtin_intent::GetBuiltinIntentError::NotFoundException(inner) => Error::NotFoundException(inner),
653            crate::operation::get_builtin_intent::GetBuiltinIntentError::Unhandled(inner) => Error::Unhandled(inner),
654        }
655    }
656}
657impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_builtin_intents::GetBuiltinIntentsError, R>> for Error
658where
659    R: Send + Sync + std::fmt::Debug + 'static,
660{
661    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_builtin_intents::GetBuiltinIntentsError, R>) -> Self {
662        match err {
663            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
664            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
665                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
666                source: err.into(),
667            }),
668        }
669    }
670}
671impl From<crate::operation::get_builtin_intents::GetBuiltinIntentsError> for Error {
672    fn from(err: crate::operation::get_builtin_intents::GetBuiltinIntentsError) -> Self {
673        match err {
674            crate::operation::get_builtin_intents::GetBuiltinIntentsError::BadRequestException(inner) => Error::BadRequestException(inner),
675            crate::operation::get_builtin_intents::GetBuiltinIntentsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
676            crate::operation::get_builtin_intents::GetBuiltinIntentsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
677            crate::operation::get_builtin_intents::GetBuiltinIntentsError::Unhandled(inner) => Error::Unhandled(inner),
678        }
679    }
680}
681impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_builtin_slot_types::GetBuiltinSlotTypesError, R>> for Error
682where
683    R: Send + Sync + std::fmt::Debug + 'static,
684{
685    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_builtin_slot_types::GetBuiltinSlotTypesError, R>) -> Self {
686        match err {
687            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
688            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
689                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
690                source: err.into(),
691            }),
692        }
693    }
694}
695impl From<crate::operation::get_builtin_slot_types::GetBuiltinSlotTypesError> for Error {
696    fn from(err: crate::operation::get_builtin_slot_types::GetBuiltinSlotTypesError) -> Self {
697        match err {
698            crate::operation::get_builtin_slot_types::GetBuiltinSlotTypesError::BadRequestException(inner) => Error::BadRequestException(inner),
699            crate::operation::get_builtin_slot_types::GetBuiltinSlotTypesError::InternalFailureException(inner) => {
700                Error::InternalFailureException(inner)
701            }
702            crate::operation::get_builtin_slot_types::GetBuiltinSlotTypesError::LimitExceededException(inner) => Error::LimitExceededException(inner),
703            crate::operation::get_builtin_slot_types::GetBuiltinSlotTypesError::Unhandled(inner) => Error::Unhandled(inner),
704        }
705    }
706}
707impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_export::GetExportError, R>> for Error
708where
709    R: Send + Sync + std::fmt::Debug + 'static,
710{
711    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_export::GetExportError, R>) -> Self {
712        match err {
713            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
714            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
715                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
716                source: err.into(),
717            }),
718        }
719    }
720}
721impl From<crate::operation::get_export::GetExportError> for Error {
722    fn from(err: crate::operation::get_export::GetExportError) -> Self {
723        match err {
724            crate::operation::get_export::GetExportError::BadRequestException(inner) => Error::BadRequestException(inner),
725            crate::operation::get_export::GetExportError::InternalFailureException(inner) => Error::InternalFailureException(inner),
726            crate::operation::get_export::GetExportError::LimitExceededException(inner) => Error::LimitExceededException(inner),
727            crate::operation::get_export::GetExportError::NotFoundException(inner) => Error::NotFoundException(inner),
728            crate::operation::get_export::GetExportError::Unhandled(inner) => Error::Unhandled(inner),
729        }
730    }
731}
732impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_import::GetImportError, R>> for Error
733where
734    R: Send + Sync + std::fmt::Debug + 'static,
735{
736    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_import::GetImportError, R>) -> Self {
737        match err {
738            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
739            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
740                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
741                source: err.into(),
742            }),
743        }
744    }
745}
746impl From<crate::operation::get_import::GetImportError> for Error {
747    fn from(err: crate::operation::get_import::GetImportError) -> Self {
748        match err {
749            crate::operation::get_import::GetImportError::BadRequestException(inner) => Error::BadRequestException(inner),
750            crate::operation::get_import::GetImportError::InternalFailureException(inner) => Error::InternalFailureException(inner),
751            crate::operation::get_import::GetImportError::LimitExceededException(inner) => Error::LimitExceededException(inner),
752            crate::operation::get_import::GetImportError::NotFoundException(inner) => Error::NotFoundException(inner),
753            crate::operation::get_import::GetImportError::Unhandled(inner) => Error::Unhandled(inner),
754        }
755    }
756}
757impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_intent::GetIntentError, R>> for Error
758where
759    R: Send + Sync + std::fmt::Debug + 'static,
760{
761    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_intent::GetIntentError, R>) -> Self {
762        match err {
763            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
764            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
765                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
766                source: err.into(),
767            }),
768        }
769    }
770}
771impl From<crate::operation::get_intent::GetIntentError> for Error {
772    fn from(err: crate::operation::get_intent::GetIntentError) -> Self {
773        match err {
774            crate::operation::get_intent::GetIntentError::BadRequestException(inner) => Error::BadRequestException(inner),
775            crate::operation::get_intent::GetIntentError::InternalFailureException(inner) => Error::InternalFailureException(inner),
776            crate::operation::get_intent::GetIntentError::LimitExceededException(inner) => Error::LimitExceededException(inner),
777            crate::operation::get_intent::GetIntentError::NotFoundException(inner) => Error::NotFoundException(inner),
778            crate::operation::get_intent::GetIntentError::Unhandled(inner) => Error::Unhandled(inner),
779        }
780    }
781}
782impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_intents::GetIntentsError, R>> for Error
783where
784    R: Send + Sync + std::fmt::Debug + 'static,
785{
786    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_intents::GetIntentsError, R>) -> Self {
787        match err {
788            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
789            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
790                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
791                source: err.into(),
792            }),
793        }
794    }
795}
796impl From<crate::operation::get_intents::GetIntentsError> for Error {
797    fn from(err: crate::operation::get_intents::GetIntentsError) -> Self {
798        match err {
799            crate::operation::get_intents::GetIntentsError::BadRequestException(inner) => Error::BadRequestException(inner),
800            crate::operation::get_intents::GetIntentsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
801            crate::operation::get_intents::GetIntentsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
802            crate::operation::get_intents::GetIntentsError::NotFoundException(inner) => Error::NotFoundException(inner),
803            crate::operation::get_intents::GetIntentsError::Unhandled(inner) => Error::Unhandled(inner),
804        }
805    }
806}
807impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_intent_versions::GetIntentVersionsError, R>> for Error
808where
809    R: Send + Sync + std::fmt::Debug + 'static,
810{
811    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_intent_versions::GetIntentVersionsError, R>) -> Self {
812        match err {
813            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
814            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
815                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
816                source: err.into(),
817            }),
818        }
819    }
820}
821impl From<crate::operation::get_intent_versions::GetIntentVersionsError> for Error {
822    fn from(err: crate::operation::get_intent_versions::GetIntentVersionsError) -> Self {
823        match err {
824            crate::operation::get_intent_versions::GetIntentVersionsError::BadRequestException(inner) => Error::BadRequestException(inner),
825            crate::operation::get_intent_versions::GetIntentVersionsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
826            crate::operation::get_intent_versions::GetIntentVersionsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
827            crate::operation::get_intent_versions::GetIntentVersionsError::NotFoundException(inner) => Error::NotFoundException(inner),
828            crate::operation::get_intent_versions::GetIntentVersionsError::Unhandled(inner) => Error::Unhandled(inner),
829        }
830    }
831}
832impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_migration::GetMigrationError, R>> for Error
833where
834    R: Send + Sync + std::fmt::Debug + 'static,
835{
836    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_migration::GetMigrationError, R>) -> Self {
837        match err {
838            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
839            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
840                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
841                source: err.into(),
842            }),
843        }
844    }
845}
846impl From<crate::operation::get_migration::GetMigrationError> for Error {
847    fn from(err: crate::operation::get_migration::GetMigrationError) -> Self {
848        match err {
849            crate::operation::get_migration::GetMigrationError::BadRequestException(inner) => Error::BadRequestException(inner),
850            crate::operation::get_migration::GetMigrationError::InternalFailureException(inner) => Error::InternalFailureException(inner),
851            crate::operation::get_migration::GetMigrationError::LimitExceededException(inner) => Error::LimitExceededException(inner),
852            crate::operation::get_migration::GetMigrationError::NotFoundException(inner) => Error::NotFoundException(inner),
853            crate::operation::get_migration::GetMigrationError::Unhandled(inner) => Error::Unhandled(inner),
854        }
855    }
856}
857impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_migrations::GetMigrationsError, R>> for Error
858where
859    R: Send + Sync + std::fmt::Debug + 'static,
860{
861    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_migrations::GetMigrationsError, R>) -> Self {
862        match err {
863            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
864            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
865                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
866                source: err.into(),
867            }),
868        }
869    }
870}
871impl From<crate::operation::get_migrations::GetMigrationsError> for Error {
872    fn from(err: crate::operation::get_migrations::GetMigrationsError) -> Self {
873        match err {
874            crate::operation::get_migrations::GetMigrationsError::BadRequestException(inner) => Error::BadRequestException(inner),
875            crate::operation::get_migrations::GetMigrationsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
876            crate::operation::get_migrations::GetMigrationsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
877            crate::operation::get_migrations::GetMigrationsError::Unhandled(inner) => Error::Unhandled(inner),
878        }
879    }
880}
881impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_slot_type::GetSlotTypeError, R>> for Error
882where
883    R: Send + Sync + std::fmt::Debug + 'static,
884{
885    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_slot_type::GetSlotTypeError, R>) -> Self {
886        match err {
887            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
888            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
889                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
890                source: err.into(),
891            }),
892        }
893    }
894}
895impl From<crate::operation::get_slot_type::GetSlotTypeError> for Error {
896    fn from(err: crate::operation::get_slot_type::GetSlotTypeError) -> Self {
897        match err {
898            crate::operation::get_slot_type::GetSlotTypeError::BadRequestException(inner) => Error::BadRequestException(inner),
899            crate::operation::get_slot_type::GetSlotTypeError::InternalFailureException(inner) => Error::InternalFailureException(inner),
900            crate::operation::get_slot_type::GetSlotTypeError::LimitExceededException(inner) => Error::LimitExceededException(inner),
901            crate::operation::get_slot_type::GetSlotTypeError::NotFoundException(inner) => Error::NotFoundException(inner),
902            crate::operation::get_slot_type::GetSlotTypeError::Unhandled(inner) => Error::Unhandled(inner),
903        }
904    }
905}
906impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_slot_types::GetSlotTypesError, R>> for Error
907where
908    R: Send + Sync + std::fmt::Debug + 'static,
909{
910    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_slot_types::GetSlotTypesError, R>) -> Self {
911        match err {
912            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
913            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
914                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
915                source: err.into(),
916            }),
917        }
918    }
919}
920impl From<crate::operation::get_slot_types::GetSlotTypesError> for Error {
921    fn from(err: crate::operation::get_slot_types::GetSlotTypesError) -> Self {
922        match err {
923            crate::operation::get_slot_types::GetSlotTypesError::BadRequestException(inner) => Error::BadRequestException(inner),
924            crate::operation::get_slot_types::GetSlotTypesError::InternalFailureException(inner) => Error::InternalFailureException(inner),
925            crate::operation::get_slot_types::GetSlotTypesError::LimitExceededException(inner) => Error::LimitExceededException(inner),
926            crate::operation::get_slot_types::GetSlotTypesError::NotFoundException(inner) => Error::NotFoundException(inner),
927            crate::operation::get_slot_types::GetSlotTypesError::Unhandled(inner) => Error::Unhandled(inner),
928        }
929    }
930}
931impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_slot_type_versions::GetSlotTypeVersionsError, R>> for Error
932where
933    R: Send + Sync + std::fmt::Debug + 'static,
934{
935    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_slot_type_versions::GetSlotTypeVersionsError, R>) -> Self {
936        match err {
937            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
938            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
939                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
940                source: err.into(),
941            }),
942        }
943    }
944}
945impl From<crate::operation::get_slot_type_versions::GetSlotTypeVersionsError> for Error {
946    fn from(err: crate::operation::get_slot_type_versions::GetSlotTypeVersionsError) -> Self {
947        match err {
948            crate::operation::get_slot_type_versions::GetSlotTypeVersionsError::BadRequestException(inner) => Error::BadRequestException(inner),
949            crate::operation::get_slot_type_versions::GetSlotTypeVersionsError::InternalFailureException(inner) => {
950                Error::InternalFailureException(inner)
951            }
952            crate::operation::get_slot_type_versions::GetSlotTypeVersionsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
953            crate::operation::get_slot_type_versions::GetSlotTypeVersionsError::NotFoundException(inner) => Error::NotFoundException(inner),
954            crate::operation::get_slot_type_versions::GetSlotTypeVersionsError::Unhandled(inner) => Error::Unhandled(inner),
955        }
956    }
957}
958impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_utterances_view::GetUtterancesViewError, R>> for Error
959where
960    R: Send + Sync + std::fmt::Debug + 'static,
961{
962    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_utterances_view::GetUtterancesViewError, R>) -> Self {
963        match err {
964            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
965            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
966                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
967                source: err.into(),
968            }),
969        }
970    }
971}
972impl From<crate::operation::get_utterances_view::GetUtterancesViewError> for Error {
973    fn from(err: crate::operation::get_utterances_view::GetUtterancesViewError) -> Self {
974        match err {
975            crate::operation::get_utterances_view::GetUtterancesViewError::BadRequestException(inner) => Error::BadRequestException(inner),
976            crate::operation::get_utterances_view::GetUtterancesViewError::InternalFailureException(inner) => Error::InternalFailureException(inner),
977            crate::operation::get_utterances_view::GetUtterancesViewError::LimitExceededException(inner) => Error::LimitExceededException(inner),
978            crate::operation::get_utterances_view::GetUtterancesViewError::Unhandled(inner) => Error::Unhandled(inner),
979        }
980    }
981}
982impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
983where
984    R: Send + Sync + std::fmt::Debug + 'static,
985{
986    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
987        match err {
988            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
989            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
990                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
991                source: err.into(),
992            }),
993        }
994    }
995}
996impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
997    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
998        match err {
999            crate::operation::list_tags_for_resource::ListTagsForResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
1000            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalFailureException(inner) => {
1001                Error::InternalFailureException(inner)
1002            }
1003            crate::operation::list_tags_for_resource::ListTagsForResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1004            crate::operation::list_tags_for_resource::ListTagsForResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1005            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1006        }
1007    }
1008}
1009impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bot::PutBotError, R>> for Error
1010where
1011    R: Send + Sync + std::fmt::Debug + 'static,
1012{
1013    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bot::PutBotError, R>) -> Self {
1014        match err {
1015            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1016            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1017                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1018                source: err.into(),
1019            }),
1020        }
1021    }
1022}
1023impl From<crate::operation::put_bot::PutBotError> for Error {
1024    fn from(err: crate::operation::put_bot::PutBotError) -> Self {
1025        match err {
1026            crate::operation::put_bot::PutBotError::BadRequestException(inner) => Error::BadRequestException(inner),
1027            crate::operation::put_bot::PutBotError::ConflictException(inner) => Error::ConflictException(inner),
1028            crate::operation::put_bot::PutBotError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1029            crate::operation::put_bot::PutBotError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1030            crate::operation::put_bot::PutBotError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
1031            crate::operation::put_bot::PutBotError::Unhandled(inner) => Error::Unhandled(inner),
1032        }
1033    }
1034}
1035impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bot_alias::PutBotAliasError, R>> for Error
1036where
1037    R: Send + Sync + std::fmt::Debug + 'static,
1038{
1039    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bot_alias::PutBotAliasError, R>) -> Self {
1040        match err {
1041            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1042            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1043                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1044                source: err.into(),
1045            }),
1046        }
1047    }
1048}
1049impl From<crate::operation::put_bot_alias::PutBotAliasError> for Error {
1050    fn from(err: crate::operation::put_bot_alias::PutBotAliasError) -> Self {
1051        match err {
1052            crate::operation::put_bot_alias::PutBotAliasError::BadRequestException(inner) => Error::BadRequestException(inner),
1053            crate::operation::put_bot_alias::PutBotAliasError::ConflictException(inner) => Error::ConflictException(inner),
1054            crate::operation::put_bot_alias::PutBotAliasError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1055            crate::operation::put_bot_alias::PutBotAliasError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1056            crate::operation::put_bot_alias::PutBotAliasError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
1057            crate::operation::put_bot_alias::PutBotAliasError::Unhandled(inner) => Error::Unhandled(inner),
1058        }
1059    }
1060}
1061impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_intent::PutIntentError, R>> for Error
1062where
1063    R: Send + Sync + std::fmt::Debug + 'static,
1064{
1065    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_intent::PutIntentError, R>) -> Self {
1066        match err {
1067            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1068            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1069                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1070                source: err.into(),
1071            }),
1072        }
1073    }
1074}
1075impl From<crate::operation::put_intent::PutIntentError> for Error {
1076    fn from(err: crate::operation::put_intent::PutIntentError) -> Self {
1077        match err {
1078            crate::operation::put_intent::PutIntentError::BadRequestException(inner) => Error::BadRequestException(inner),
1079            crate::operation::put_intent::PutIntentError::ConflictException(inner) => Error::ConflictException(inner),
1080            crate::operation::put_intent::PutIntentError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1081            crate::operation::put_intent::PutIntentError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1082            crate::operation::put_intent::PutIntentError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
1083            crate::operation::put_intent::PutIntentError::Unhandled(inner) => Error::Unhandled(inner),
1084        }
1085    }
1086}
1087impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_slot_type::PutSlotTypeError, R>> for Error
1088where
1089    R: Send + Sync + std::fmt::Debug + 'static,
1090{
1091    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_slot_type::PutSlotTypeError, R>) -> Self {
1092        match err {
1093            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1094            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1095                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1096                source: err.into(),
1097            }),
1098        }
1099    }
1100}
1101impl From<crate::operation::put_slot_type::PutSlotTypeError> for Error {
1102    fn from(err: crate::operation::put_slot_type::PutSlotTypeError) -> Self {
1103        match err {
1104            crate::operation::put_slot_type::PutSlotTypeError::BadRequestException(inner) => Error::BadRequestException(inner),
1105            crate::operation::put_slot_type::PutSlotTypeError::ConflictException(inner) => Error::ConflictException(inner),
1106            crate::operation::put_slot_type::PutSlotTypeError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1107            crate::operation::put_slot_type::PutSlotTypeError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1108            crate::operation::put_slot_type::PutSlotTypeError::PreconditionFailedException(inner) => Error::PreconditionFailedException(inner),
1109            crate::operation::put_slot_type::PutSlotTypeError::Unhandled(inner) => Error::Unhandled(inner),
1110        }
1111    }
1112}
1113impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_import::StartImportError, 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::start_import::StartImportError, 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::start_import::StartImportError> for Error {
1128    fn from(err: crate::operation::start_import::StartImportError) -> Self {
1129        match err {
1130            crate::operation::start_import::StartImportError::BadRequestException(inner) => Error::BadRequestException(inner),
1131            crate::operation::start_import::StartImportError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1132            crate::operation::start_import::StartImportError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1133            crate::operation::start_import::StartImportError::Unhandled(inner) => Error::Unhandled(inner),
1134        }
1135    }
1136}
1137impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_migration::StartMigrationError, R>> for Error
1138where
1139    R: Send + Sync + std::fmt::Debug + 'static,
1140{
1141    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_migration::StartMigrationError, R>) -> Self {
1142        match err {
1143            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1144            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1145                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1146                source: err.into(),
1147            }),
1148        }
1149    }
1150}
1151impl From<crate::operation::start_migration::StartMigrationError> for Error {
1152    fn from(err: crate::operation::start_migration::StartMigrationError) -> Self {
1153        match err {
1154            crate::operation::start_migration::StartMigrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1155            crate::operation::start_migration::StartMigrationError::BadRequestException(inner) => Error::BadRequestException(inner),
1156            crate::operation::start_migration::StartMigrationError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1157            crate::operation::start_migration::StartMigrationError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1158            crate::operation::start_migration::StartMigrationError::NotFoundException(inner) => Error::NotFoundException(inner),
1159            crate::operation::start_migration::StartMigrationError::Unhandled(inner) => Error::Unhandled(inner),
1160        }
1161    }
1162}
1163impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1164where
1165    R: Send + Sync + std::fmt::Debug + 'static,
1166{
1167    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1168        match err {
1169            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1170            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1171                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1172                source: err.into(),
1173            }),
1174        }
1175    }
1176}
1177impl From<crate::operation::tag_resource::TagResourceError> for Error {
1178    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1179        match err {
1180            crate::operation::tag_resource::TagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
1181            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1182            crate::operation::tag_resource::TagResourceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1183            crate::operation::tag_resource::TagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1184            crate::operation::tag_resource::TagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1185            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1186        }
1187    }
1188}
1189impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1190where
1191    R: Send + Sync + std::fmt::Debug + 'static,
1192{
1193    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1194        match err {
1195            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1196            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1197                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1198                source: err.into(),
1199            }),
1200        }
1201    }
1202}
1203impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1204    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1205        match err {
1206            crate::operation::untag_resource::UntagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
1207            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1208            crate::operation::untag_resource::UntagResourceError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1209            crate::operation::untag_resource::UntagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1210            crate::operation::untag_resource::UntagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1211            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1212        }
1213    }
1214}
1215impl ::std::error::Error for Error {
1216    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1217        match self {
1218            Error::AccessDeniedException(inner) => inner.source(),
1219            Error::BadRequestException(inner) => inner.source(),
1220            Error::ConflictException(inner) => inner.source(),
1221            Error::InternalFailureException(inner) => inner.source(),
1222            Error::LimitExceededException(inner) => inner.source(),
1223            Error::NotFoundException(inner) => inner.source(),
1224            Error::PreconditionFailedException(inner) => inner.source(),
1225            Error::ResourceInUseException(inner) => inner.source(),
1226            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1227        }
1228    }
1229}
1230impl ::aws_types::request_id::RequestId for Error {
1231    fn request_id(&self) -> Option<&str> {
1232        match self {
1233            Self::AccessDeniedException(e) => e.request_id(),
1234            Self::BadRequestException(e) => e.request_id(),
1235            Self::ConflictException(e) => e.request_id(),
1236            Self::InternalFailureException(e) => e.request_id(),
1237            Self::LimitExceededException(e) => e.request_id(),
1238            Self::NotFoundException(e) => e.request_id(),
1239            Self::PreconditionFailedException(e) => e.request_id(),
1240            Self::ResourceInUseException(e) => e.request_id(),
1241            Self::Unhandled(e) => e.meta.request_id(),
1242        }
1243    }
1244}