aws_sdk_appstream/
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>An API error occurred. Wait a few minutes and try again.</p>
7    ConcurrentModificationException(crate::types::error::ConcurrentModificationException),
8    /// <p>The entitlement already exists.</p>
9    EntitlementAlreadyExistsException(crate::types::error::EntitlementAlreadyExistsException),
10    /// <p>The entitlement can't be found.</p>
11    EntitlementNotFoundException(crate::types::error::EntitlementNotFoundException),
12    /// <p>The image can't be updated because it's not compatible for updates.</p>
13    IncompatibleImageException(crate::types::error::IncompatibleImageException),
14    /// <p>The resource cannot be created because your AWS account is suspended. For assistance, contact AWS Support.</p>
15    InvalidAccountStatusException(crate::types::error::InvalidAccountStatusException),
16    /// <p>Indicates an incorrect combination of parameters, or a missing parameter.</p>
17    InvalidParameterCombinationException(crate::types::error::InvalidParameterCombinationException),
18    /// <p>The specified role is invalid.</p>
19    InvalidRoleException(crate::types::error::InvalidRoleException),
20    /// <p>The requested limit exceeds the permitted limit for an account.</p>
21    LimitExceededException(crate::types::error::LimitExceededException),
22    /// <p>The attempted operation is not permitted.</p>
23    OperationNotPermittedException(crate::types::error::OperationNotPermittedException),
24    /// <p>AppStream 2.0 can’t process the request right now because the Describe calls from your AWS account are being throttled by Amazon EC2. Try again later.</p>
25    RequestLimitExceededException(crate::types::error::RequestLimitExceededException),
26    /// <p>The specified resource already exists.</p>
27    ResourceAlreadyExistsException(crate::types::error::ResourceAlreadyExistsException),
28    /// <p>The specified resource is in use.</p>
29    ResourceInUseException(crate::types::error::ResourceInUseException),
30    /// <p>The specified resource exists and is not in use, but isn't available.</p>
31    ResourceNotAvailableException(crate::types::error::ResourceNotAvailableException),
32    /// <p>The specified resource was not found.</p>
33    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
34    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
35    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
36    variable wildcard pattern and check `.code()`:
37     \
38    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
39     \
40    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
41    Unhandled(crate::error::sealed_unhandled::Unhandled),
42}
43impl ::std::fmt::Display for Error {
44    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
45        match self {
46            Error::ConcurrentModificationException(inner) => inner.fmt(f),
47            Error::EntitlementAlreadyExistsException(inner) => inner.fmt(f),
48            Error::EntitlementNotFoundException(inner) => inner.fmt(f),
49            Error::IncompatibleImageException(inner) => inner.fmt(f),
50            Error::InvalidAccountStatusException(inner) => inner.fmt(f),
51            Error::InvalidParameterCombinationException(inner) => inner.fmt(f),
52            Error::InvalidRoleException(inner) => inner.fmt(f),
53            Error::LimitExceededException(inner) => inner.fmt(f),
54            Error::OperationNotPermittedException(inner) => inner.fmt(f),
55            Error::RequestLimitExceededException(inner) => inner.fmt(f),
56            Error::ResourceAlreadyExistsException(inner) => inner.fmt(f),
57            Error::ResourceInUseException(inner) => inner.fmt(f),
58            Error::ResourceNotAvailableException(inner) => inner.fmt(f),
59            Error::ResourceNotFoundException(inner) => inner.fmt(f),
60            Error::Unhandled(_) => {
61                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
62                    write!(f, "unhandled error ({code})")
63                } else {
64                    f.write_str("unhandled error")
65                }
66            }
67        }
68    }
69}
70impl From<::aws_smithy_types::error::operation::BuildError> for Error {
71    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
72        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
73            source: value.into(),
74            meta: ::std::default::Default::default(),
75        })
76    }
77}
78impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
79    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
80        match self {
81            Self::ConcurrentModificationException(inner) => inner.meta(),
82            Self::EntitlementAlreadyExistsException(inner) => inner.meta(),
83            Self::EntitlementNotFoundException(inner) => inner.meta(),
84            Self::IncompatibleImageException(inner) => inner.meta(),
85            Self::InvalidAccountStatusException(inner) => inner.meta(),
86            Self::InvalidParameterCombinationException(inner) => inner.meta(),
87            Self::InvalidRoleException(inner) => inner.meta(),
88            Self::LimitExceededException(inner) => inner.meta(),
89            Self::OperationNotPermittedException(inner) => inner.meta(),
90            Self::RequestLimitExceededException(inner) => inner.meta(),
91            Self::ResourceAlreadyExistsException(inner) => inner.meta(),
92            Self::ResourceInUseException(inner) => inner.meta(),
93            Self::ResourceNotAvailableException(inner) => inner.meta(),
94            Self::ResourceNotFoundException(inner) => inner.meta(),
95            Self::Unhandled(inner) => &inner.meta,
96        }
97    }
98}
99impl<R>
100    From<
101        ::aws_smithy_runtime_api::client::result::SdkError<
102            crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError,
103            R,
104        >,
105    > for Error
106where
107    R: Send + Sync + std::fmt::Debug + 'static,
108{
109    fn from(
110        err: ::aws_smithy_runtime_api::client::result::SdkError<
111            crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError,
112            R,
113        >,
114    ) -> Self {
115        match err {
116            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
117            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
118                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
119                source: err.into(),
120            }),
121        }
122    }
123}
124impl From<crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError> for Error {
125    fn from(err: crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError) -> Self {
126        match err {
127            crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError::ConcurrentModificationException(
128                inner,
129            ) => Error::ConcurrentModificationException(inner),
130            crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError::InvalidParameterCombinationException(
131                inner,
132            ) => Error::InvalidParameterCombinationException(inner),
133            crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError::LimitExceededException(inner) => {
134                Error::LimitExceededException(inner)
135            }
136            crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError::OperationNotPermittedException(inner) => {
137                Error::OperationNotPermittedException(inner)
138            }
139            crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError::ResourceNotFoundException(inner) => {
140                Error::ResourceNotFoundException(inner)
141            }
142            crate::operation::associate_app_block_builder_app_block::AssociateAppBlockBuilderAppBlockError::Unhandled(inner) => {
143                Error::Unhandled(inner)
144            }
145        }
146    }
147}
148impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_application_fleet::AssociateApplicationFleetError, R>>
149    for Error
150where
151    R: Send + Sync + std::fmt::Debug + 'static,
152{
153    fn from(
154        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_application_fleet::AssociateApplicationFleetError, R>,
155    ) -> Self {
156        match err {
157            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
158            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
159                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
160                source: err.into(),
161            }),
162        }
163    }
164}
165impl From<crate::operation::associate_application_fleet::AssociateApplicationFleetError> for Error {
166    fn from(err: crate::operation::associate_application_fleet::AssociateApplicationFleetError) -> Self {
167        match err {
168            crate::operation::associate_application_fleet::AssociateApplicationFleetError::ConcurrentModificationException(inner) => {
169                Error::ConcurrentModificationException(inner)
170            }
171            crate::operation::associate_application_fleet::AssociateApplicationFleetError::InvalidParameterCombinationException(inner) => {
172                Error::InvalidParameterCombinationException(inner)
173            }
174            crate::operation::associate_application_fleet::AssociateApplicationFleetError::LimitExceededException(inner) => {
175                Error::LimitExceededException(inner)
176            }
177            crate::operation::associate_application_fleet::AssociateApplicationFleetError::OperationNotPermittedException(inner) => {
178                Error::OperationNotPermittedException(inner)
179            }
180            crate::operation::associate_application_fleet::AssociateApplicationFleetError::ResourceNotFoundException(inner) => {
181                Error::ResourceNotFoundException(inner)
182            }
183            crate::operation::associate_application_fleet::AssociateApplicationFleetError::Unhandled(inner) => Error::Unhandled(inner),
184        }
185    }
186}
187impl<R>
188    From<
189        ::aws_smithy_runtime_api::client::result::SdkError<
190            crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError,
191            R,
192        >,
193    > for Error
194where
195    R: Send + Sync + std::fmt::Debug + 'static,
196{
197    fn from(
198        err: ::aws_smithy_runtime_api::client::result::SdkError<
199            crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError,
200            R,
201        >,
202    ) -> Self {
203        match err {
204            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
205            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
206                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
207                source: err.into(),
208            }),
209        }
210    }
211}
212impl From<crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError> for Error {
213    fn from(err: crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError) -> Self {
214        match err {
215            crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError::EntitlementNotFoundException(inner) => {
216                Error::EntitlementNotFoundException(inner)
217            }
218            crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError::LimitExceededException(inner) => {
219                Error::LimitExceededException(inner)
220            }
221            crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError::OperationNotPermittedException(inner) => {
222                Error::OperationNotPermittedException(inner)
223            }
224            crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError::ResourceNotFoundException(inner) => {
225                Error::ResourceNotFoundException(inner)
226            }
227            crate::operation::associate_application_to_entitlement::AssociateApplicationToEntitlementError::Unhandled(inner) => {
228                Error::Unhandled(inner)
229            }
230        }
231    }
232}
233impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_fleet::AssociateFleetError, R>> for Error
234where
235    R: Send + Sync + std::fmt::Debug + 'static,
236{
237    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_fleet::AssociateFleetError, R>) -> Self {
238        match err {
239            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
240            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
241                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
242                source: err.into(),
243            }),
244        }
245    }
246}
247impl From<crate::operation::associate_fleet::AssociateFleetError> for Error {
248    fn from(err: crate::operation::associate_fleet::AssociateFleetError) -> Self {
249        match err {
250            crate::operation::associate_fleet::AssociateFleetError::ConcurrentModificationException(inner) => {
251                Error::ConcurrentModificationException(inner)
252            }
253            crate::operation::associate_fleet::AssociateFleetError::IncompatibleImageException(inner) => Error::IncompatibleImageException(inner),
254            crate::operation::associate_fleet::AssociateFleetError::InvalidAccountStatusException(inner) => {
255                Error::InvalidAccountStatusException(inner)
256            }
257            crate::operation::associate_fleet::AssociateFleetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
258            crate::operation::associate_fleet::AssociateFleetError::OperationNotPermittedException(inner) => {
259                Error::OperationNotPermittedException(inner)
260            }
261            crate::operation::associate_fleet::AssociateFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
262            crate::operation::associate_fleet::AssociateFleetError::Unhandled(inner) => Error::Unhandled(inner),
263        }
264    }
265}
266impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_associate_user_stack::BatchAssociateUserStackError, R>>
267    for Error
268where
269    R: Send + Sync + std::fmt::Debug + 'static,
270{
271    fn from(
272        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_associate_user_stack::BatchAssociateUserStackError, R>,
273    ) -> Self {
274        match err {
275            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
276            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
277                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
278                source: err.into(),
279            }),
280        }
281    }
282}
283impl From<crate::operation::batch_associate_user_stack::BatchAssociateUserStackError> for Error {
284    fn from(err: crate::operation::batch_associate_user_stack::BatchAssociateUserStackError) -> Self {
285        match err {
286            crate::operation::batch_associate_user_stack::BatchAssociateUserStackError::InvalidParameterCombinationException(inner) => {
287                Error::InvalidParameterCombinationException(inner)
288            }
289            crate::operation::batch_associate_user_stack::BatchAssociateUserStackError::OperationNotPermittedException(inner) => {
290                Error::OperationNotPermittedException(inner)
291            }
292            crate::operation::batch_associate_user_stack::BatchAssociateUserStackError::Unhandled(inner) => Error::Unhandled(inner),
293        }
294    }
295}
296impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_disassociate_user_stack::BatchDisassociateUserStackError, R>>
297    for Error
298where
299    R: Send + Sync + std::fmt::Debug + 'static,
300{
301    fn from(
302        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_disassociate_user_stack::BatchDisassociateUserStackError, R>,
303    ) -> Self {
304        match err {
305            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
306            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
307                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
308                source: err.into(),
309            }),
310        }
311    }
312}
313impl From<crate::operation::batch_disassociate_user_stack::BatchDisassociateUserStackError> for Error {
314    fn from(err: crate::operation::batch_disassociate_user_stack::BatchDisassociateUserStackError) -> Self {
315        match err {
316            crate::operation::batch_disassociate_user_stack::BatchDisassociateUserStackError::InvalidParameterCombinationException(inner) => {
317                Error::InvalidParameterCombinationException(inner)
318            }
319            crate::operation::batch_disassociate_user_stack::BatchDisassociateUserStackError::OperationNotPermittedException(inner) => {
320                Error::OperationNotPermittedException(inner)
321            }
322            crate::operation::batch_disassociate_user_stack::BatchDisassociateUserStackError::Unhandled(inner) => Error::Unhandled(inner),
323        }
324    }
325}
326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_image::CopyImageError, R>> for Error
327where
328    R: Send + Sync + std::fmt::Debug + 'static,
329{
330    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_image::CopyImageError, R>) -> Self {
331        match err {
332            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
333            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
334                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
335                source: err.into(),
336            }),
337        }
338    }
339}
340impl From<crate::operation::copy_image::CopyImageError> for Error {
341    fn from(err: crate::operation::copy_image::CopyImageError) -> Self {
342        match err {
343            crate::operation::copy_image::CopyImageError::IncompatibleImageException(inner) => Error::IncompatibleImageException(inner),
344            crate::operation::copy_image::CopyImageError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
345            crate::operation::copy_image::CopyImageError::LimitExceededException(inner) => Error::LimitExceededException(inner),
346            crate::operation::copy_image::CopyImageError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
347            crate::operation::copy_image::CopyImageError::ResourceNotAvailableException(inner) => Error::ResourceNotAvailableException(inner),
348            crate::operation::copy_image::CopyImageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
349            crate::operation::copy_image::CopyImageError::Unhandled(inner) => Error::Unhandled(inner),
350        }
351    }
352}
353impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_block::CreateAppBlockError, R>> for Error
354where
355    R: Send + Sync + std::fmt::Debug + 'static,
356{
357    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_block::CreateAppBlockError, R>) -> Self {
358        match err {
359            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
360            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
361                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
362                source: err.into(),
363            }),
364        }
365    }
366}
367impl From<crate::operation::create_app_block::CreateAppBlockError> for Error {
368    fn from(err: crate::operation::create_app_block::CreateAppBlockError) -> Self {
369        match err {
370            crate::operation::create_app_block::CreateAppBlockError::ConcurrentModificationException(inner) => {
371                Error::ConcurrentModificationException(inner)
372            }
373            crate::operation::create_app_block::CreateAppBlockError::LimitExceededException(inner) => Error::LimitExceededException(inner),
374            crate::operation::create_app_block::CreateAppBlockError::OperationNotPermittedException(inner) => {
375                Error::OperationNotPermittedException(inner)
376            }
377            crate::operation::create_app_block::CreateAppBlockError::ResourceAlreadyExistsException(inner) => {
378                Error::ResourceAlreadyExistsException(inner)
379            }
380            crate::operation::create_app_block::CreateAppBlockError::Unhandled(inner) => Error::Unhandled(inner),
381        }
382    }
383}
384impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_block_builder::CreateAppBlockBuilderError, R>> for Error
385where
386    R: Send + Sync + std::fmt::Debug + 'static,
387{
388    fn from(
389        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_block_builder::CreateAppBlockBuilderError, R>,
390    ) -> Self {
391        match err {
392            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
393            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
394                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
395                source: err.into(),
396            }),
397        }
398    }
399}
400impl From<crate::operation::create_app_block_builder::CreateAppBlockBuilderError> for Error {
401    fn from(err: crate::operation::create_app_block_builder::CreateAppBlockBuilderError) -> Self {
402        match err {
403            crate::operation::create_app_block_builder::CreateAppBlockBuilderError::ConcurrentModificationException(inner) => {
404                Error::ConcurrentModificationException(inner)
405            }
406            crate::operation::create_app_block_builder::CreateAppBlockBuilderError::InvalidAccountStatusException(inner) => {
407                Error::InvalidAccountStatusException(inner)
408            }
409            crate::operation::create_app_block_builder::CreateAppBlockBuilderError::InvalidParameterCombinationException(inner) => {
410                Error::InvalidParameterCombinationException(inner)
411            }
412            crate::operation::create_app_block_builder::CreateAppBlockBuilderError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
413            crate::operation::create_app_block_builder::CreateAppBlockBuilderError::LimitExceededException(inner) => {
414                Error::LimitExceededException(inner)
415            }
416            crate::operation::create_app_block_builder::CreateAppBlockBuilderError::OperationNotPermittedException(inner) => {
417                Error::OperationNotPermittedException(inner)
418            }
419            crate::operation::create_app_block_builder::CreateAppBlockBuilderError::RequestLimitExceededException(inner) => {
420                Error::RequestLimitExceededException(inner)
421            }
422            crate::operation::create_app_block_builder::CreateAppBlockBuilderError::ResourceAlreadyExistsException(inner) => {
423                Error::ResourceAlreadyExistsException(inner)
424            }
425            crate::operation::create_app_block_builder::CreateAppBlockBuilderError::ResourceNotAvailableException(inner) => {
426                Error::ResourceNotAvailableException(inner)
427            }
428            crate::operation::create_app_block_builder::CreateAppBlockBuilderError::ResourceNotFoundException(inner) => {
429                Error::ResourceNotFoundException(inner)
430            }
431            crate::operation::create_app_block_builder::CreateAppBlockBuilderError::Unhandled(inner) => Error::Unhandled(inner),
432        }
433    }
434}
435impl<R>
436    From<
437        ::aws_smithy_runtime_api::client::result::SdkError<
438            crate::operation::create_app_block_builder_streaming_url::CreateAppBlockBuilderStreamingURLError,
439            R,
440        >,
441    > for Error
442where
443    R: Send + Sync + std::fmt::Debug + 'static,
444{
445    fn from(
446        err: ::aws_smithy_runtime_api::client::result::SdkError<
447            crate::operation::create_app_block_builder_streaming_url::CreateAppBlockBuilderStreamingURLError,
448            R,
449        >,
450    ) -> Self {
451        match err {
452            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
453            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
454                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
455                source: err.into(),
456            }),
457        }
458    }
459}
460impl From<crate::operation::create_app_block_builder_streaming_url::CreateAppBlockBuilderStreamingURLError> for Error {
461    fn from(err: crate::operation::create_app_block_builder_streaming_url::CreateAppBlockBuilderStreamingURLError) -> Self {
462        match err {
463            crate::operation::create_app_block_builder_streaming_url::CreateAppBlockBuilderStreamingURLError::OperationNotPermittedException(
464                inner,
465            ) => Error::OperationNotPermittedException(inner),
466            crate::operation::create_app_block_builder_streaming_url::CreateAppBlockBuilderStreamingURLError::ResourceNotFoundException(inner) => {
467                Error::ResourceNotFoundException(inner)
468            }
469            crate::operation::create_app_block_builder_streaming_url::CreateAppBlockBuilderStreamingURLError::Unhandled(inner) => {
470                Error::Unhandled(inner)
471            }
472        }
473    }
474}
475impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_application::CreateApplicationError, R>> for Error
476where
477    R: Send + Sync + std::fmt::Debug + 'static,
478{
479    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_application::CreateApplicationError, R>) -> Self {
480        match err {
481            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
482            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
483                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
484                source: err.into(),
485            }),
486        }
487    }
488}
489impl From<crate::operation::create_application::CreateApplicationError> for Error {
490    fn from(err: crate::operation::create_application::CreateApplicationError) -> Self {
491        match err {
492            crate::operation::create_application::CreateApplicationError::ConcurrentModificationException(inner) => {
493                Error::ConcurrentModificationException(inner)
494            }
495            crate::operation::create_application::CreateApplicationError::LimitExceededException(inner) => Error::LimitExceededException(inner),
496            crate::operation::create_application::CreateApplicationError::OperationNotPermittedException(inner) => {
497                Error::OperationNotPermittedException(inner)
498            }
499            crate::operation::create_application::CreateApplicationError::ResourceAlreadyExistsException(inner) => {
500                Error::ResourceAlreadyExistsException(inner)
501            }
502            crate::operation::create_application::CreateApplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
503            crate::operation::create_application::CreateApplicationError::Unhandled(inner) => Error::Unhandled(inner),
504        }
505    }
506}
507impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_directory_config::CreateDirectoryConfigError, R>> for Error
508where
509    R: Send + Sync + std::fmt::Debug + 'static,
510{
511    fn from(
512        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_directory_config::CreateDirectoryConfigError, R>,
513    ) -> Self {
514        match err {
515            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
516            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
517                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
518                source: err.into(),
519            }),
520        }
521    }
522}
523impl From<crate::operation::create_directory_config::CreateDirectoryConfigError> for Error {
524    fn from(err: crate::operation::create_directory_config::CreateDirectoryConfigError) -> Self {
525        match err {
526            crate::operation::create_directory_config::CreateDirectoryConfigError::InvalidAccountStatusException(inner) => {
527                Error::InvalidAccountStatusException(inner)
528            }
529            crate::operation::create_directory_config::CreateDirectoryConfigError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
530            crate::operation::create_directory_config::CreateDirectoryConfigError::LimitExceededException(inner) => {
531                Error::LimitExceededException(inner)
532            }
533            crate::operation::create_directory_config::CreateDirectoryConfigError::OperationNotPermittedException(inner) => {
534                Error::OperationNotPermittedException(inner)
535            }
536            crate::operation::create_directory_config::CreateDirectoryConfigError::ResourceAlreadyExistsException(inner) => {
537                Error::ResourceAlreadyExistsException(inner)
538            }
539            crate::operation::create_directory_config::CreateDirectoryConfigError::ResourceNotFoundException(inner) => {
540                Error::ResourceNotFoundException(inner)
541            }
542            crate::operation::create_directory_config::CreateDirectoryConfigError::Unhandled(inner) => Error::Unhandled(inner),
543        }
544    }
545}
546impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_entitlement::CreateEntitlementError, R>> for Error
547where
548    R: Send + Sync + std::fmt::Debug + 'static,
549{
550    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_entitlement::CreateEntitlementError, R>) -> Self {
551        match err {
552            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
553            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
554                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
555                source: err.into(),
556            }),
557        }
558    }
559}
560impl From<crate::operation::create_entitlement::CreateEntitlementError> for Error {
561    fn from(err: crate::operation::create_entitlement::CreateEntitlementError) -> Self {
562        match err {
563            crate::operation::create_entitlement::CreateEntitlementError::EntitlementAlreadyExistsException(inner) => {
564                Error::EntitlementAlreadyExistsException(inner)
565            }
566            crate::operation::create_entitlement::CreateEntitlementError::LimitExceededException(inner) => Error::LimitExceededException(inner),
567            crate::operation::create_entitlement::CreateEntitlementError::OperationNotPermittedException(inner) => {
568                Error::OperationNotPermittedException(inner)
569            }
570            crate::operation::create_entitlement::CreateEntitlementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
571            crate::operation::create_entitlement::CreateEntitlementError::Unhandled(inner) => Error::Unhandled(inner),
572        }
573    }
574}
575impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet::CreateFleetError, R>> for Error
576where
577    R: Send + Sync + std::fmt::Debug + 'static,
578{
579    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_fleet::CreateFleetError, R>) -> Self {
580        match err {
581            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
582            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
583                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
584                source: err.into(),
585            }),
586        }
587    }
588}
589impl From<crate::operation::create_fleet::CreateFleetError> for Error {
590    fn from(err: crate::operation::create_fleet::CreateFleetError) -> Self {
591        match err {
592            crate::operation::create_fleet::CreateFleetError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
593            crate::operation::create_fleet::CreateFleetError::IncompatibleImageException(inner) => Error::IncompatibleImageException(inner),
594            crate::operation::create_fleet::CreateFleetError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
595            crate::operation::create_fleet::CreateFleetError::InvalidParameterCombinationException(inner) => {
596                Error::InvalidParameterCombinationException(inner)
597            }
598            crate::operation::create_fleet::CreateFleetError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
599            crate::operation::create_fleet::CreateFleetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
600            crate::operation::create_fleet::CreateFleetError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
601            crate::operation::create_fleet::CreateFleetError::RequestLimitExceededException(inner) => Error::RequestLimitExceededException(inner),
602            crate::operation::create_fleet::CreateFleetError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
603            crate::operation::create_fleet::CreateFleetError::ResourceNotAvailableException(inner) => Error::ResourceNotAvailableException(inner),
604            crate::operation::create_fleet::CreateFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
605            crate::operation::create_fleet::CreateFleetError::Unhandled(inner) => Error::Unhandled(inner),
606        }
607    }
608}
609impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_builder::CreateImageBuilderError, R>> for Error
610where
611    R: Send + Sync + std::fmt::Debug + 'static,
612{
613    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_image_builder::CreateImageBuilderError, R>) -> Self {
614        match err {
615            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
616            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
617                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
618                source: err.into(),
619            }),
620        }
621    }
622}
623impl From<crate::operation::create_image_builder::CreateImageBuilderError> for Error {
624    fn from(err: crate::operation::create_image_builder::CreateImageBuilderError) -> Self {
625        match err {
626            crate::operation::create_image_builder::CreateImageBuilderError::ConcurrentModificationException(inner) => {
627                Error::ConcurrentModificationException(inner)
628            }
629            crate::operation::create_image_builder::CreateImageBuilderError::IncompatibleImageException(inner) => {
630                Error::IncompatibleImageException(inner)
631            }
632            crate::operation::create_image_builder::CreateImageBuilderError::InvalidAccountStatusException(inner) => {
633                Error::InvalidAccountStatusException(inner)
634            }
635            crate::operation::create_image_builder::CreateImageBuilderError::InvalidParameterCombinationException(inner) => {
636                Error::InvalidParameterCombinationException(inner)
637            }
638            crate::operation::create_image_builder::CreateImageBuilderError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
639            crate::operation::create_image_builder::CreateImageBuilderError::LimitExceededException(inner) => Error::LimitExceededException(inner),
640            crate::operation::create_image_builder::CreateImageBuilderError::OperationNotPermittedException(inner) => {
641                Error::OperationNotPermittedException(inner)
642            }
643            crate::operation::create_image_builder::CreateImageBuilderError::RequestLimitExceededException(inner) => {
644                Error::RequestLimitExceededException(inner)
645            }
646            crate::operation::create_image_builder::CreateImageBuilderError::ResourceAlreadyExistsException(inner) => {
647                Error::ResourceAlreadyExistsException(inner)
648            }
649            crate::operation::create_image_builder::CreateImageBuilderError::ResourceNotAvailableException(inner) => {
650                Error::ResourceNotAvailableException(inner)
651            }
652            crate::operation::create_image_builder::CreateImageBuilderError::ResourceNotFoundException(inner) => {
653                Error::ResourceNotFoundException(inner)
654            }
655            crate::operation::create_image_builder::CreateImageBuilderError::Unhandled(inner) => Error::Unhandled(inner),
656        }
657    }
658}
659impl<R>
660    From<
661        ::aws_smithy_runtime_api::client::result::SdkError<
662            crate::operation::create_image_builder_streaming_url::CreateImageBuilderStreamingURLError,
663            R,
664        >,
665    > for Error
666where
667    R: Send + Sync + std::fmt::Debug + 'static,
668{
669    fn from(
670        err: ::aws_smithy_runtime_api::client::result::SdkError<
671            crate::operation::create_image_builder_streaming_url::CreateImageBuilderStreamingURLError,
672            R,
673        >,
674    ) -> Self {
675        match err {
676            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
677            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
678                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
679                source: err.into(),
680            }),
681        }
682    }
683}
684impl From<crate::operation::create_image_builder_streaming_url::CreateImageBuilderStreamingURLError> for Error {
685    fn from(err: crate::operation::create_image_builder_streaming_url::CreateImageBuilderStreamingURLError) -> Self {
686        match err {
687            crate::operation::create_image_builder_streaming_url::CreateImageBuilderStreamingURLError::OperationNotPermittedException(inner) => {
688                Error::OperationNotPermittedException(inner)
689            }
690            crate::operation::create_image_builder_streaming_url::CreateImageBuilderStreamingURLError::ResourceNotFoundException(inner) => {
691                Error::ResourceNotFoundException(inner)
692            }
693            crate::operation::create_image_builder_streaming_url::CreateImageBuilderStreamingURLError::Unhandled(inner) => Error::Unhandled(inner),
694        }
695    }
696}
697impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack::CreateStackError, R>> for Error
698where
699    R: Send + Sync + std::fmt::Debug + 'static,
700{
701    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack::CreateStackError, R>) -> Self {
702        match err {
703            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
704            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
705                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
706                source: err.into(),
707            }),
708        }
709    }
710}
711impl From<crate::operation::create_stack::CreateStackError> for Error {
712    fn from(err: crate::operation::create_stack::CreateStackError) -> Self {
713        match err {
714            crate::operation::create_stack::CreateStackError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
715            crate::operation::create_stack::CreateStackError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
716            crate::operation::create_stack::CreateStackError::InvalidParameterCombinationException(inner) => {
717                Error::InvalidParameterCombinationException(inner)
718            }
719            crate::operation::create_stack::CreateStackError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
720            crate::operation::create_stack::CreateStackError::LimitExceededException(inner) => Error::LimitExceededException(inner),
721            crate::operation::create_stack::CreateStackError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
722            crate::operation::create_stack::CreateStackError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
723            crate::operation::create_stack::CreateStackError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
724            crate::operation::create_stack::CreateStackError::Unhandled(inner) => Error::Unhandled(inner),
725        }
726    }
727}
728impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_streaming_url::CreateStreamingURLError, R>> for Error
729where
730    R: Send + Sync + std::fmt::Debug + 'static,
731{
732    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_streaming_url::CreateStreamingURLError, R>) -> Self {
733        match err {
734            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
735            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
736                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
737                source: err.into(),
738            }),
739        }
740    }
741}
742impl From<crate::operation::create_streaming_url::CreateStreamingURLError> for Error {
743    fn from(err: crate::operation::create_streaming_url::CreateStreamingURLError) -> Self {
744        match err {
745            crate::operation::create_streaming_url::CreateStreamingURLError::InvalidParameterCombinationException(inner) => {
746                Error::InvalidParameterCombinationException(inner)
747            }
748            crate::operation::create_streaming_url::CreateStreamingURLError::OperationNotPermittedException(inner) => {
749                Error::OperationNotPermittedException(inner)
750            }
751            crate::operation::create_streaming_url::CreateStreamingURLError::ResourceNotAvailableException(inner) => {
752                Error::ResourceNotAvailableException(inner)
753            }
754            crate::operation::create_streaming_url::CreateStreamingURLError::ResourceNotFoundException(inner) => {
755                Error::ResourceNotFoundException(inner)
756            }
757            crate::operation::create_streaming_url::CreateStreamingURLError::Unhandled(inner) => Error::Unhandled(inner),
758        }
759    }
760}
761impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_theme_for_stack::CreateThemeForStackError, R>> for Error
762where
763    R: Send + Sync + std::fmt::Debug + 'static,
764{
765    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_theme_for_stack::CreateThemeForStackError, R>) -> Self {
766        match err {
767            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
768            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
769                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
770                source: err.into(),
771            }),
772        }
773    }
774}
775impl From<crate::operation::create_theme_for_stack::CreateThemeForStackError> for Error {
776    fn from(err: crate::operation::create_theme_for_stack::CreateThemeForStackError) -> Self {
777        match err {
778            crate::operation::create_theme_for_stack::CreateThemeForStackError::ConcurrentModificationException(inner) => {
779                Error::ConcurrentModificationException(inner)
780            }
781            crate::operation::create_theme_for_stack::CreateThemeForStackError::InvalidAccountStatusException(inner) => {
782                Error::InvalidAccountStatusException(inner)
783            }
784            crate::operation::create_theme_for_stack::CreateThemeForStackError::LimitExceededException(inner) => Error::LimitExceededException(inner),
785            crate::operation::create_theme_for_stack::CreateThemeForStackError::OperationNotPermittedException(inner) => {
786                Error::OperationNotPermittedException(inner)
787            }
788            crate::operation::create_theme_for_stack::CreateThemeForStackError::ResourceAlreadyExistsException(inner) => {
789                Error::ResourceAlreadyExistsException(inner)
790            }
791            crate::operation::create_theme_for_stack::CreateThemeForStackError::ResourceNotFoundException(inner) => {
792                Error::ResourceNotFoundException(inner)
793            }
794            crate::operation::create_theme_for_stack::CreateThemeForStackError::Unhandled(inner) => Error::Unhandled(inner),
795        }
796    }
797}
798impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_updated_image::CreateUpdatedImageError, R>> for Error
799where
800    R: Send + Sync + std::fmt::Debug + 'static,
801{
802    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_updated_image::CreateUpdatedImageError, R>) -> Self {
803        match err {
804            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
805            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
806                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
807                source: err.into(),
808            }),
809        }
810    }
811}
812impl From<crate::operation::create_updated_image::CreateUpdatedImageError> for Error {
813    fn from(err: crate::operation::create_updated_image::CreateUpdatedImageError) -> Self {
814        match err {
815            crate::operation::create_updated_image::CreateUpdatedImageError::ConcurrentModificationException(inner) => {
816                Error::ConcurrentModificationException(inner)
817            }
818            crate::operation::create_updated_image::CreateUpdatedImageError::IncompatibleImageException(inner) => {
819                Error::IncompatibleImageException(inner)
820            }
821            crate::operation::create_updated_image::CreateUpdatedImageError::InvalidAccountStatusException(inner) => {
822                Error::InvalidAccountStatusException(inner)
823            }
824            crate::operation::create_updated_image::CreateUpdatedImageError::LimitExceededException(inner) => Error::LimitExceededException(inner),
825            crate::operation::create_updated_image::CreateUpdatedImageError::OperationNotPermittedException(inner) => {
826                Error::OperationNotPermittedException(inner)
827            }
828            crate::operation::create_updated_image::CreateUpdatedImageError::ResourceAlreadyExistsException(inner) => {
829                Error::ResourceAlreadyExistsException(inner)
830            }
831            crate::operation::create_updated_image::CreateUpdatedImageError::ResourceNotFoundException(inner) => {
832                Error::ResourceNotFoundException(inner)
833            }
834            crate::operation::create_updated_image::CreateUpdatedImageError::Unhandled(inner) => Error::Unhandled(inner),
835        }
836    }
837}
838impl<R>
839    From<
840        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError, R>,
841    > for Error
842where
843    R: Send + Sync + std::fmt::Debug + 'static,
844{
845    fn from(
846        err: ::aws_smithy_runtime_api::client::result::SdkError<
847            crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError,
848            R,
849        >,
850    ) -> Self {
851        match err {
852            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
853            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
854                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
855                source: err.into(),
856            }),
857        }
858    }
859}
860impl From<crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError> for Error {
861    fn from(err: crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError) -> Self {
862        match err {
863            crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError::InvalidAccountStatusException(inner) => {
864                Error::InvalidAccountStatusException(inner)
865            }
866            crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError::InvalidRoleException(inner) => {
867                Error::InvalidRoleException(inner)
868            }
869            crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError::LimitExceededException(inner) => {
870                Error::LimitExceededException(inner)
871            }
872            crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
873        }
874    }
875}
876impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user::CreateUserError, R>> for Error
877where
878    R: Send + Sync + std::fmt::Debug + 'static,
879{
880    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user::CreateUserError, R>) -> Self {
881        match err {
882            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
883            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
884                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
885                source: err.into(),
886            }),
887        }
888    }
889}
890impl From<crate::operation::create_user::CreateUserError> for Error {
891    fn from(err: crate::operation::create_user::CreateUserError) -> Self {
892        match err {
893            crate::operation::create_user::CreateUserError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
894            crate::operation::create_user::CreateUserError::InvalidParameterCombinationException(inner) => {
895                Error::InvalidParameterCombinationException(inner)
896            }
897            crate::operation::create_user::CreateUserError::LimitExceededException(inner) => Error::LimitExceededException(inner),
898            crate::operation::create_user::CreateUserError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
899            crate::operation::create_user::CreateUserError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
900            crate::operation::create_user::CreateUserError::Unhandled(inner) => Error::Unhandled(inner),
901        }
902    }
903}
904impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_block::DeleteAppBlockError, R>> for Error
905where
906    R: Send + Sync + std::fmt::Debug + 'static,
907{
908    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_block::DeleteAppBlockError, R>) -> Self {
909        match err {
910            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
911            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
912                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
913                source: err.into(),
914            }),
915        }
916    }
917}
918impl From<crate::operation::delete_app_block::DeleteAppBlockError> for Error {
919    fn from(err: crate::operation::delete_app_block::DeleteAppBlockError) -> Self {
920        match err {
921            crate::operation::delete_app_block::DeleteAppBlockError::ConcurrentModificationException(inner) => {
922                Error::ConcurrentModificationException(inner)
923            }
924            crate::operation::delete_app_block::DeleteAppBlockError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
925            crate::operation::delete_app_block::DeleteAppBlockError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
926            crate::operation::delete_app_block::DeleteAppBlockError::Unhandled(inner) => Error::Unhandled(inner),
927        }
928    }
929}
930impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError, R>> for Error
931where
932    R: Send + Sync + std::fmt::Debug + 'static,
933{
934    fn from(
935        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError, R>,
936    ) -> Self {
937        match err {
938            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
939            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
940                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
941                source: err.into(),
942            }),
943        }
944    }
945}
946impl From<crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError> for Error {
947    fn from(err: crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError) -> Self {
948        match err {
949            crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError::ConcurrentModificationException(inner) => {
950                Error::ConcurrentModificationException(inner)
951            }
952            crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError::OperationNotPermittedException(inner) => {
953                Error::OperationNotPermittedException(inner)
954            }
955            crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError::ResourceInUseException(inner) => {
956                Error::ResourceInUseException(inner)
957            }
958            crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError::ResourceNotFoundException(inner) => {
959                Error::ResourceNotFoundException(inner)
960            }
961            crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError::Unhandled(inner) => Error::Unhandled(inner),
962        }
963    }
964}
965impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_application::DeleteApplicationError, R>> for Error
966where
967    R: Send + Sync + std::fmt::Debug + 'static,
968{
969    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_application::DeleteApplicationError, R>) -> Self {
970        match err {
971            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
972            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
973                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
974                source: err.into(),
975            }),
976        }
977    }
978}
979impl From<crate::operation::delete_application::DeleteApplicationError> for Error {
980    fn from(err: crate::operation::delete_application::DeleteApplicationError) -> Self {
981        match err {
982            crate::operation::delete_application::DeleteApplicationError::ConcurrentModificationException(inner) => {
983                Error::ConcurrentModificationException(inner)
984            }
985            crate::operation::delete_application::DeleteApplicationError::OperationNotPermittedException(inner) => {
986                Error::OperationNotPermittedException(inner)
987            }
988            crate::operation::delete_application::DeleteApplicationError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
989            crate::operation::delete_application::DeleteApplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
990            crate::operation::delete_application::DeleteApplicationError::Unhandled(inner) => Error::Unhandled(inner),
991        }
992    }
993}
994impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_directory_config::DeleteDirectoryConfigError, R>> for Error
995where
996    R: Send + Sync + std::fmt::Debug + 'static,
997{
998    fn from(
999        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_directory_config::DeleteDirectoryConfigError, R>,
1000    ) -> Self {
1001        match err {
1002            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1003            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1004                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1005                source: err.into(),
1006            }),
1007        }
1008    }
1009}
1010impl From<crate::operation::delete_directory_config::DeleteDirectoryConfigError> for Error {
1011    fn from(err: crate::operation::delete_directory_config::DeleteDirectoryConfigError) -> Self {
1012        match err {
1013            crate::operation::delete_directory_config::DeleteDirectoryConfigError::ResourceInUseException(inner) => {
1014                Error::ResourceInUseException(inner)
1015            }
1016            crate::operation::delete_directory_config::DeleteDirectoryConfigError::ResourceNotFoundException(inner) => {
1017                Error::ResourceNotFoundException(inner)
1018            }
1019            crate::operation::delete_directory_config::DeleteDirectoryConfigError::Unhandled(inner) => Error::Unhandled(inner),
1020        }
1021    }
1022}
1023impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_entitlement::DeleteEntitlementError, R>> for Error
1024where
1025    R: Send + Sync + std::fmt::Debug + 'static,
1026{
1027    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_entitlement::DeleteEntitlementError, R>) -> Self {
1028        match err {
1029            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1030            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1031                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1032                source: err.into(),
1033            }),
1034        }
1035    }
1036}
1037impl From<crate::operation::delete_entitlement::DeleteEntitlementError> for Error {
1038    fn from(err: crate::operation::delete_entitlement::DeleteEntitlementError) -> Self {
1039        match err {
1040            crate::operation::delete_entitlement::DeleteEntitlementError::ConcurrentModificationException(inner) => {
1041                Error::ConcurrentModificationException(inner)
1042            }
1043            crate::operation::delete_entitlement::DeleteEntitlementError::EntitlementNotFoundException(inner) => {
1044                Error::EntitlementNotFoundException(inner)
1045            }
1046            crate::operation::delete_entitlement::DeleteEntitlementError::OperationNotPermittedException(inner) => {
1047                Error::OperationNotPermittedException(inner)
1048            }
1049            crate::operation::delete_entitlement::DeleteEntitlementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1050            crate::operation::delete_entitlement::DeleteEntitlementError::Unhandled(inner) => Error::Unhandled(inner),
1051        }
1052    }
1053}
1054impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleet::DeleteFleetError, R>> for Error
1055where
1056    R: Send + Sync + std::fmt::Debug + 'static,
1057{
1058    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleet::DeleteFleetError, R>) -> Self {
1059        match err {
1060            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1061            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1062                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1063                source: err.into(),
1064            }),
1065        }
1066    }
1067}
1068impl From<crate::operation::delete_fleet::DeleteFleetError> for Error {
1069    fn from(err: crate::operation::delete_fleet::DeleteFleetError) -> Self {
1070        match err {
1071            crate::operation::delete_fleet::DeleteFleetError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1072            crate::operation::delete_fleet::DeleteFleetError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1073            crate::operation::delete_fleet::DeleteFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1074            crate::operation::delete_fleet::DeleteFleetError::Unhandled(inner) => Error::Unhandled(inner),
1075        }
1076    }
1077}
1078impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image::DeleteImageError, R>> for Error
1079where
1080    R: Send + Sync + std::fmt::Debug + 'static,
1081{
1082    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image::DeleteImageError, R>) -> Self {
1083        match err {
1084            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1085            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1086                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1087                source: err.into(),
1088            }),
1089        }
1090    }
1091}
1092impl From<crate::operation::delete_image::DeleteImageError> for Error {
1093    fn from(err: crate::operation::delete_image::DeleteImageError) -> Self {
1094        match err {
1095            crate::operation::delete_image::DeleteImageError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1096            crate::operation::delete_image::DeleteImageError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1097            crate::operation::delete_image::DeleteImageError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1098            crate::operation::delete_image::DeleteImageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1099            crate::operation::delete_image::DeleteImageError::Unhandled(inner) => Error::Unhandled(inner),
1100        }
1101    }
1102}
1103impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_builder::DeleteImageBuilderError, R>> for Error
1104where
1105    R: Send + Sync + std::fmt::Debug + 'static,
1106{
1107    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_builder::DeleteImageBuilderError, R>) -> Self {
1108        match err {
1109            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1110            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1111                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1112                source: err.into(),
1113            }),
1114        }
1115    }
1116}
1117impl From<crate::operation::delete_image_builder::DeleteImageBuilderError> for Error {
1118    fn from(err: crate::operation::delete_image_builder::DeleteImageBuilderError) -> Self {
1119        match err {
1120            crate::operation::delete_image_builder::DeleteImageBuilderError::ConcurrentModificationException(inner) => {
1121                Error::ConcurrentModificationException(inner)
1122            }
1123            crate::operation::delete_image_builder::DeleteImageBuilderError::OperationNotPermittedException(inner) => {
1124                Error::OperationNotPermittedException(inner)
1125            }
1126            crate::operation::delete_image_builder::DeleteImageBuilderError::ResourceNotFoundException(inner) => {
1127                Error::ResourceNotFoundException(inner)
1128            }
1129            crate::operation::delete_image_builder::DeleteImageBuilderError::Unhandled(inner) => Error::Unhandled(inner),
1130        }
1131    }
1132}
1133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_permissions::DeleteImagePermissionsError, R>> for Error
1134where
1135    R: Send + Sync + std::fmt::Debug + 'static,
1136{
1137    fn from(
1138        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_permissions::DeleteImagePermissionsError, R>,
1139    ) -> Self {
1140        match err {
1141            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1142            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1143                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1144                source: err.into(),
1145            }),
1146        }
1147    }
1148}
1149impl From<crate::operation::delete_image_permissions::DeleteImagePermissionsError> for Error {
1150    fn from(err: crate::operation::delete_image_permissions::DeleteImagePermissionsError) -> Self {
1151        match err {
1152            crate::operation::delete_image_permissions::DeleteImagePermissionsError::ResourceNotAvailableException(inner) => {
1153                Error::ResourceNotAvailableException(inner)
1154            }
1155            crate::operation::delete_image_permissions::DeleteImagePermissionsError::ResourceNotFoundException(inner) => {
1156                Error::ResourceNotFoundException(inner)
1157            }
1158            crate::operation::delete_image_permissions::DeleteImagePermissionsError::Unhandled(inner) => Error::Unhandled(inner),
1159        }
1160    }
1161}
1162impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack::DeleteStackError, R>> for Error
1163where
1164    R: Send + Sync + std::fmt::Debug + 'static,
1165{
1166    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack::DeleteStackError, R>) -> Self {
1167        match err {
1168            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1169            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1170                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1171                source: err.into(),
1172            }),
1173        }
1174    }
1175}
1176impl From<crate::operation::delete_stack::DeleteStackError> for Error {
1177    fn from(err: crate::operation::delete_stack::DeleteStackError) -> Self {
1178        match err {
1179            crate::operation::delete_stack::DeleteStackError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1180            crate::operation::delete_stack::DeleteStackError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1181            crate::operation::delete_stack::DeleteStackError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1182            crate::operation::delete_stack::DeleteStackError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1183            crate::operation::delete_stack::DeleteStackError::Unhandled(inner) => Error::Unhandled(inner),
1184        }
1185    }
1186}
1187impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_theme_for_stack::DeleteThemeForStackError, R>> for Error
1188where
1189    R: Send + Sync + std::fmt::Debug + 'static,
1190{
1191    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_theme_for_stack::DeleteThemeForStackError, R>) -> Self {
1192        match err {
1193            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1194            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1195                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1196                source: err.into(),
1197            }),
1198        }
1199    }
1200}
1201impl From<crate::operation::delete_theme_for_stack::DeleteThemeForStackError> for Error {
1202    fn from(err: crate::operation::delete_theme_for_stack::DeleteThemeForStackError) -> Self {
1203        match err {
1204            crate::operation::delete_theme_for_stack::DeleteThemeForStackError::ConcurrentModificationException(inner) => {
1205                Error::ConcurrentModificationException(inner)
1206            }
1207            crate::operation::delete_theme_for_stack::DeleteThemeForStackError::OperationNotPermittedException(inner) => {
1208                Error::OperationNotPermittedException(inner)
1209            }
1210            crate::operation::delete_theme_for_stack::DeleteThemeForStackError::ResourceNotFoundException(inner) => {
1211                Error::ResourceNotFoundException(inner)
1212            }
1213            crate::operation::delete_theme_for_stack::DeleteThemeForStackError::Unhandled(inner) => Error::Unhandled(inner),
1214        }
1215    }
1216}
1217impl<R>
1218    From<
1219        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError, R>,
1220    > for Error
1221where
1222    R: Send + Sync + std::fmt::Debug + 'static,
1223{
1224    fn from(
1225        err: ::aws_smithy_runtime_api::client::result::SdkError<
1226            crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError,
1227            R,
1228        >,
1229    ) -> Self {
1230        match err {
1231            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1232            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1233                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1234                source: err.into(),
1235            }),
1236        }
1237    }
1238}
1239impl From<crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError> for Error {
1240    fn from(err: crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError) -> Self {
1241        match err {
1242            crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError::InvalidAccountStatusException(inner) => {
1243                Error::InvalidAccountStatusException(inner)
1244            }
1245            crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError::ResourceNotFoundException(inner) => {
1246                Error::ResourceNotFoundException(inner)
1247            }
1248            crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
1249        }
1250    }
1251}
1252impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user::DeleteUserError, R>> for Error
1253where
1254    R: Send + Sync + std::fmt::Debug + 'static,
1255{
1256    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user::DeleteUserError, R>) -> Self {
1257        match err {
1258            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1259            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1260                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1261                source: err.into(),
1262            }),
1263        }
1264    }
1265}
1266impl From<crate::operation::delete_user::DeleteUserError> for Error {
1267    fn from(err: crate::operation::delete_user::DeleteUserError) -> Self {
1268        match err {
1269            crate::operation::delete_user::DeleteUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1270            crate::operation::delete_user::DeleteUserError::Unhandled(inner) => Error::Unhandled(inner),
1271        }
1272    }
1273}
1274impl<R>
1275    From<
1276        ::aws_smithy_runtime_api::client::result::SdkError<
1277            crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError,
1278            R,
1279        >,
1280    > for Error
1281where
1282    R: Send + Sync + std::fmt::Debug + 'static,
1283{
1284    fn from(
1285        err: ::aws_smithy_runtime_api::client::result::SdkError<
1286            crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError,
1287            R,
1288        >,
1289    ) -> Self {
1290        match err {
1291            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1292            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1293                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1294                source: err.into(),
1295            }),
1296        }
1297    }
1298}
1299impl From<crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError> for Error {
1300    fn from(err: crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError) -> Self {
1301        match err {
1302            crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError::InvalidParameterCombinationException(inner) => Error::InvalidParameterCombinationException(inner),
1303            crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1304            crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1305        }
1306    }
1307}
1308impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError, R>>
1309    for Error
1310where
1311    R: Send + Sync + std::fmt::Debug + 'static,
1312{
1313    fn from(
1314        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError, R>,
1315    ) -> Self {
1316        match err {
1317            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1318            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1319                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1320                source: err.into(),
1321            }),
1322        }
1323    }
1324}
1325impl From<crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError> for Error {
1326    fn from(err: crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError) -> Self {
1327        match err {
1328            crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError::OperationNotPermittedException(inner) => {
1329                Error::OperationNotPermittedException(inner)
1330            }
1331            crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError::ResourceNotFoundException(inner) => {
1332                Error::ResourceNotFoundException(inner)
1333            }
1334            crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError::Unhandled(inner) => Error::Unhandled(inner),
1335        }
1336    }
1337}
1338impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_blocks::DescribeAppBlocksError, R>> for Error
1339where
1340    R: Send + Sync + std::fmt::Debug + 'static,
1341{
1342    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_blocks::DescribeAppBlocksError, R>) -> Self {
1343        match err {
1344            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1345            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1346                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1347                source: err.into(),
1348            }),
1349        }
1350    }
1351}
1352impl From<crate::operation::describe_app_blocks::DescribeAppBlocksError> for Error {
1353    fn from(err: crate::operation::describe_app_blocks::DescribeAppBlocksError) -> Self {
1354        match err {
1355            crate::operation::describe_app_blocks::DescribeAppBlocksError::OperationNotPermittedException(inner) => {
1356                Error::OperationNotPermittedException(inner)
1357            }
1358            crate::operation::describe_app_blocks::DescribeAppBlocksError::ResourceNotFoundException(inner) => {
1359                Error::ResourceNotFoundException(inner)
1360            }
1361            crate::operation::describe_app_blocks::DescribeAppBlocksError::Unhandled(inner) => Error::Unhandled(inner),
1362        }
1363    }
1364}
1365impl<R>
1366    From<
1367        ::aws_smithy_runtime_api::client::result::SdkError<
1368            crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError,
1369            R,
1370        >,
1371    > for Error
1372where
1373    R: Send + Sync + std::fmt::Debug + 'static,
1374{
1375    fn from(
1376        err: ::aws_smithy_runtime_api::client::result::SdkError<
1377            crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError,
1378            R,
1379        >,
1380    ) -> Self {
1381        match err {
1382            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1383            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1384                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1385                source: err.into(),
1386            }),
1387        }
1388    }
1389}
1390impl From<crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError> for Error {
1391    fn from(err: crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError) -> Self {
1392        match err {
1393            crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError::InvalidParameterCombinationException(inner) => Error::InvalidParameterCombinationException(inner),
1394            crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1395            crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1396        }
1397    }
1398}
1399impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_applications::DescribeApplicationsError, R>> for Error
1400where
1401    R: Send + Sync + std::fmt::Debug + 'static,
1402{
1403    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_applications::DescribeApplicationsError, R>) -> Self {
1404        match err {
1405            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1406            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1407                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1408                source: err.into(),
1409            }),
1410        }
1411    }
1412}
1413impl From<crate::operation::describe_applications::DescribeApplicationsError> for Error {
1414    fn from(err: crate::operation::describe_applications::DescribeApplicationsError) -> Self {
1415        match err {
1416            crate::operation::describe_applications::DescribeApplicationsError::OperationNotPermittedException(inner) => {
1417                Error::OperationNotPermittedException(inner)
1418            }
1419            crate::operation::describe_applications::DescribeApplicationsError::ResourceNotFoundException(inner) => {
1420                Error::ResourceNotFoundException(inner)
1421            }
1422            crate::operation::describe_applications::DescribeApplicationsError::Unhandled(inner) => Error::Unhandled(inner),
1423        }
1424    }
1425}
1426impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_directory_configs::DescribeDirectoryConfigsError, R>>
1427    for Error
1428where
1429    R: Send + Sync + std::fmt::Debug + 'static,
1430{
1431    fn from(
1432        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_directory_configs::DescribeDirectoryConfigsError, R>,
1433    ) -> Self {
1434        match err {
1435            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1436            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1437                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1438                source: err.into(),
1439            }),
1440        }
1441    }
1442}
1443impl From<crate::operation::describe_directory_configs::DescribeDirectoryConfigsError> for Error {
1444    fn from(err: crate::operation::describe_directory_configs::DescribeDirectoryConfigsError) -> Self {
1445        match err {
1446            crate::operation::describe_directory_configs::DescribeDirectoryConfigsError::ResourceNotFoundException(inner) => {
1447                Error::ResourceNotFoundException(inner)
1448            }
1449            crate::operation::describe_directory_configs::DescribeDirectoryConfigsError::Unhandled(inner) => Error::Unhandled(inner),
1450        }
1451    }
1452}
1453impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_entitlements::DescribeEntitlementsError, R>> for Error
1454where
1455    R: Send + Sync + std::fmt::Debug + 'static,
1456{
1457    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_entitlements::DescribeEntitlementsError, R>) -> Self {
1458        match err {
1459            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1460            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1461                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1462                source: err.into(),
1463            }),
1464        }
1465    }
1466}
1467impl From<crate::operation::describe_entitlements::DescribeEntitlementsError> for Error {
1468    fn from(err: crate::operation::describe_entitlements::DescribeEntitlementsError) -> Self {
1469        match err {
1470            crate::operation::describe_entitlements::DescribeEntitlementsError::EntitlementNotFoundException(inner) => {
1471                Error::EntitlementNotFoundException(inner)
1472            }
1473            crate::operation::describe_entitlements::DescribeEntitlementsError::OperationNotPermittedException(inner) => {
1474                Error::OperationNotPermittedException(inner)
1475            }
1476            crate::operation::describe_entitlements::DescribeEntitlementsError::ResourceNotFoundException(inner) => {
1477                Error::ResourceNotFoundException(inner)
1478            }
1479            crate::operation::describe_entitlements::DescribeEntitlementsError::Unhandled(inner) => Error::Unhandled(inner),
1480        }
1481    }
1482}
1483impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleets::DescribeFleetsError, R>> for Error
1484where
1485    R: Send + Sync + std::fmt::Debug + 'static,
1486{
1487    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleets::DescribeFleetsError, R>) -> Self {
1488        match err {
1489            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1490            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1491                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1492                source: err.into(),
1493            }),
1494        }
1495    }
1496}
1497impl From<crate::operation::describe_fleets::DescribeFleetsError> for Error {
1498    fn from(err: crate::operation::describe_fleets::DescribeFleetsError) -> Self {
1499        match err {
1500            crate::operation::describe_fleets::DescribeFleetsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1501            crate::operation::describe_fleets::DescribeFleetsError::Unhandled(inner) => Error::Unhandled(inner),
1502        }
1503    }
1504}
1505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_builders::DescribeImageBuildersError, R>> for Error
1506where
1507    R: Send + Sync + std::fmt::Debug + 'static,
1508{
1509    fn from(
1510        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_builders::DescribeImageBuildersError, R>,
1511    ) -> Self {
1512        match err {
1513            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1514            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1515                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1516                source: err.into(),
1517            }),
1518        }
1519    }
1520}
1521impl From<crate::operation::describe_image_builders::DescribeImageBuildersError> for Error {
1522    fn from(err: crate::operation::describe_image_builders::DescribeImageBuildersError) -> Self {
1523        match err {
1524            crate::operation::describe_image_builders::DescribeImageBuildersError::ResourceNotFoundException(inner) => {
1525                Error::ResourceNotFoundException(inner)
1526            }
1527            crate::operation::describe_image_builders::DescribeImageBuildersError::Unhandled(inner) => Error::Unhandled(inner),
1528        }
1529    }
1530}
1531impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_permissions::DescribeImagePermissionsError, 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::describe_image_permissions::DescribeImagePermissionsError, 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::describe_image_permissions::DescribeImagePermissionsError> for Error {
1549    fn from(err: crate::operation::describe_image_permissions::DescribeImagePermissionsError) -> Self {
1550        match err {
1551            crate::operation::describe_image_permissions::DescribeImagePermissionsError::ResourceNotFoundException(inner) => {
1552                Error::ResourceNotFoundException(inner)
1553            }
1554            crate::operation::describe_image_permissions::DescribeImagePermissionsError::Unhandled(inner) => Error::Unhandled(inner),
1555        }
1556    }
1557}
1558impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>> for Error
1559where
1560    R: Send + Sync + std::fmt::Debug + 'static,
1561{
1562    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>) -> Self {
1563        match err {
1564            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1565            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1566                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1567                source: err.into(),
1568            }),
1569        }
1570    }
1571}
1572impl From<crate::operation::describe_images::DescribeImagesError> for Error {
1573    fn from(err: crate::operation::describe_images::DescribeImagesError) -> Self {
1574        match err {
1575            crate::operation::describe_images::DescribeImagesError::InvalidParameterCombinationException(inner) => {
1576                Error::InvalidParameterCombinationException(inner)
1577            }
1578            crate::operation::describe_images::DescribeImagesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1579            crate::operation::describe_images::DescribeImagesError::Unhandled(inner) => Error::Unhandled(inner),
1580        }
1581    }
1582}
1583impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_sessions::DescribeSessionsError, R>> for Error
1584where
1585    R: Send + Sync + std::fmt::Debug + 'static,
1586{
1587    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_sessions::DescribeSessionsError, R>) -> Self {
1588        match err {
1589            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1590            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1591                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1592                source: err.into(),
1593            }),
1594        }
1595    }
1596}
1597impl From<crate::operation::describe_sessions::DescribeSessionsError> for Error {
1598    fn from(err: crate::operation::describe_sessions::DescribeSessionsError) -> Self {
1599        match err {
1600            crate::operation::describe_sessions::DescribeSessionsError::InvalidParameterCombinationException(inner) => {
1601                Error::InvalidParameterCombinationException(inner)
1602            }
1603            crate::operation::describe_sessions::DescribeSessionsError::Unhandled(inner) => Error::Unhandled(inner),
1604        }
1605    }
1606}
1607impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stacks::DescribeStacksError, 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::describe_stacks::DescribeStacksError, 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::describe_stacks::DescribeStacksError> for Error {
1622    fn from(err: crate::operation::describe_stacks::DescribeStacksError) -> Self {
1623        match err {
1624            crate::operation::describe_stacks::DescribeStacksError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1625            crate::operation::describe_stacks::DescribeStacksError::Unhandled(inner) => Error::Unhandled(inner),
1626        }
1627    }
1628}
1629impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_theme_for_stack::DescribeThemeForStackError, R>> for Error
1630where
1631    R: Send + Sync + std::fmt::Debug + 'static,
1632{
1633    fn from(
1634        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_theme_for_stack::DescribeThemeForStackError, R>,
1635    ) -> Self {
1636        match err {
1637            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1638            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1639                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1640                source: err.into(),
1641            }),
1642        }
1643    }
1644}
1645impl From<crate::operation::describe_theme_for_stack::DescribeThemeForStackError> for Error {
1646    fn from(err: crate::operation::describe_theme_for_stack::DescribeThemeForStackError) -> Self {
1647        match err {
1648            crate::operation::describe_theme_for_stack::DescribeThemeForStackError::OperationNotPermittedException(inner) => {
1649                Error::OperationNotPermittedException(inner)
1650            }
1651            crate::operation::describe_theme_for_stack::DescribeThemeForStackError::ResourceNotFoundException(inner) => {
1652                Error::ResourceNotFoundException(inner)
1653            }
1654            crate::operation::describe_theme_for_stack::DescribeThemeForStackError::Unhandled(inner) => Error::Unhandled(inner),
1655        }
1656    }
1657}
1658impl<R>
1659    From<
1660        ::aws_smithy_runtime_api::client::result::SdkError<
1661            crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError,
1662            R,
1663        >,
1664    > for Error
1665where
1666    R: Send + Sync + std::fmt::Debug + 'static,
1667{
1668    fn from(
1669        err: ::aws_smithy_runtime_api::client::result::SdkError<
1670            crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError,
1671            R,
1672        >,
1673    ) -> Self {
1674        match err {
1675            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1676            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1677                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1678                source: err.into(),
1679            }),
1680        }
1681    }
1682}
1683impl From<crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError> for Error {
1684    fn from(err: crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError) -> Self {
1685        match err {
1686            crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError::InvalidAccountStatusException(inner) => {
1687                Error::InvalidAccountStatusException(inner)
1688            }
1689            crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError::ResourceNotFoundException(inner) => {
1690                Error::ResourceNotFoundException(inner)
1691            }
1692            crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError::Unhandled(inner) => Error::Unhandled(inner),
1693        }
1694    }
1695}
1696impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_users::DescribeUsersError, R>> for Error
1697where
1698    R: Send + Sync + std::fmt::Debug + 'static,
1699{
1700    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_users::DescribeUsersError, R>) -> Self {
1701        match err {
1702            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1703            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1704                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1705                source: err.into(),
1706            }),
1707        }
1708    }
1709}
1710impl From<crate::operation::describe_users::DescribeUsersError> for Error {
1711    fn from(err: crate::operation::describe_users::DescribeUsersError) -> Self {
1712        match err {
1713            crate::operation::describe_users::DescribeUsersError::InvalidParameterCombinationException(inner) => {
1714                Error::InvalidParameterCombinationException(inner)
1715            }
1716            crate::operation::describe_users::DescribeUsersError::OperationNotPermittedException(inner) => {
1717                Error::OperationNotPermittedException(inner)
1718            }
1719            crate::operation::describe_users::DescribeUsersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1720            crate::operation::describe_users::DescribeUsersError::Unhandled(inner) => Error::Unhandled(inner),
1721        }
1722    }
1723}
1724impl<R>
1725    From<
1726        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError, R>,
1727    > for Error
1728where
1729    R: Send + Sync + std::fmt::Debug + 'static,
1730{
1731    fn from(
1732        err: ::aws_smithy_runtime_api::client::result::SdkError<
1733            crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError,
1734            R,
1735        >,
1736    ) -> Self {
1737        match err {
1738            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1739            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1740                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1741                source: err.into(),
1742            }),
1743        }
1744    }
1745}
1746impl From<crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError> for Error {
1747    fn from(err: crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError) -> Self {
1748        match err {
1749            crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError::InvalidParameterCombinationException(inner) => {
1750                Error::InvalidParameterCombinationException(inner)
1751            }
1752            crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError::OperationNotPermittedException(inner) => {
1753                Error::OperationNotPermittedException(inner)
1754            }
1755            crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1756        }
1757    }
1758}
1759impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_user::DisableUserError, R>> for Error
1760where
1761    R: Send + Sync + std::fmt::Debug + 'static,
1762{
1763    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_user::DisableUserError, R>) -> Self {
1764        match err {
1765            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1766            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1767                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1768                source: err.into(),
1769            }),
1770        }
1771    }
1772}
1773impl From<crate::operation::disable_user::DisableUserError> for Error {
1774    fn from(err: crate::operation::disable_user::DisableUserError) -> Self {
1775        match err {
1776            crate::operation::disable_user::DisableUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1777            crate::operation::disable_user::DisableUserError::Unhandled(inner) => Error::Unhandled(inner),
1778        }
1779    }
1780}
1781impl<R>
1782    From<
1783        ::aws_smithy_runtime_api::client::result::SdkError<
1784            crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError,
1785            R,
1786        >,
1787    > for Error
1788where
1789    R: Send + Sync + std::fmt::Debug + 'static,
1790{
1791    fn from(
1792        err: ::aws_smithy_runtime_api::client::result::SdkError<
1793            crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError,
1794            R,
1795        >,
1796    ) -> Self {
1797        match err {
1798            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1799            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1800                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1801                source: err.into(),
1802            }),
1803        }
1804    }
1805}
1806impl From<crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError> for Error {
1807    fn from(err: crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError) -> Self {
1808        match err {
1809            crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1810            crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError::InvalidParameterCombinationException(inner) => Error::InvalidParameterCombinationException(inner),
1811            crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1812            crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1813            crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError::Unhandled(inner) => Error::Unhandled(inner),
1814        }
1815    }
1816}
1817impl<R>
1818    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError, R>>
1819    for Error
1820where
1821    R: Send + Sync + std::fmt::Debug + 'static,
1822{
1823    fn from(
1824        err: ::aws_smithy_runtime_api::client::result::SdkError<
1825            crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError,
1826            R,
1827        >,
1828    ) -> Self {
1829        match err {
1830            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1831            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1832                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1833                source: err.into(),
1834            }),
1835        }
1836    }
1837}
1838impl From<crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError> for Error {
1839    fn from(err: crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError) -> Self {
1840        match err {
1841            crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError::ConcurrentModificationException(inner) => {
1842                Error::ConcurrentModificationException(inner)
1843            }
1844            crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError::InvalidParameterCombinationException(inner) => {
1845                Error::InvalidParameterCombinationException(inner)
1846            }
1847            crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError::OperationNotPermittedException(inner) => {
1848                Error::OperationNotPermittedException(inner)
1849            }
1850            crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError::Unhandled(inner) => Error::Unhandled(inner),
1851        }
1852    }
1853}
1854impl<R>
1855    From<
1856        ::aws_smithy_runtime_api::client::result::SdkError<
1857            crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError,
1858            R,
1859        >,
1860    > for Error
1861where
1862    R: Send + Sync + std::fmt::Debug + 'static,
1863{
1864    fn from(
1865        err: ::aws_smithy_runtime_api::client::result::SdkError<
1866            crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError,
1867            R,
1868        >,
1869    ) -> Self {
1870        match err {
1871            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1872            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1873                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1874                source: err.into(),
1875            }),
1876        }
1877    }
1878}
1879impl From<crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError> for Error {
1880    fn from(err: crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError) -> Self {
1881        match err {
1882            crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError::EntitlementNotFoundException(inner) => Error::EntitlementNotFoundException(inner),
1883            crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1884            crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1885            crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError::Unhandled(inner) => Error::Unhandled(inner),
1886        }
1887    }
1888}
1889impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_fleet::DisassociateFleetError, R>> for Error
1890where
1891    R: Send + Sync + std::fmt::Debug + 'static,
1892{
1893    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_fleet::DisassociateFleetError, R>) -> Self {
1894        match err {
1895            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1896            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1897                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1898                source: err.into(),
1899            }),
1900        }
1901    }
1902}
1903impl From<crate::operation::disassociate_fleet::DisassociateFleetError> for Error {
1904    fn from(err: crate::operation::disassociate_fleet::DisassociateFleetError) -> Self {
1905        match err {
1906            crate::operation::disassociate_fleet::DisassociateFleetError::ConcurrentModificationException(inner) => {
1907                Error::ConcurrentModificationException(inner)
1908            }
1909            crate::operation::disassociate_fleet::DisassociateFleetError::OperationNotPermittedException(inner) => {
1910                Error::OperationNotPermittedException(inner)
1911            }
1912            crate::operation::disassociate_fleet::DisassociateFleetError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1913            crate::operation::disassociate_fleet::DisassociateFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1914            crate::operation::disassociate_fleet::DisassociateFleetError::Unhandled(inner) => Error::Unhandled(inner),
1915        }
1916    }
1917}
1918impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_user::EnableUserError, R>> for Error
1919where
1920    R: Send + Sync + std::fmt::Debug + 'static,
1921{
1922    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_user::EnableUserError, R>) -> Self {
1923        match err {
1924            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1925            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1926                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1927                source: err.into(),
1928            }),
1929        }
1930    }
1931}
1932impl From<crate::operation::enable_user::EnableUserError> for Error {
1933    fn from(err: crate::operation::enable_user::EnableUserError) -> Self {
1934        match err {
1935            crate::operation::enable_user::EnableUserError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
1936            crate::operation::enable_user::EnableUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1937            crate::operation::enable_user::EnableUserError::Unhandled(inner) => Error::Unhandled(inner),
1938        }
1939    }
1940}
1941impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::expire_session::ExpireSessionError, R>> for Error
1942where
1943    R: Send + Sync + std::fmt::Debug + 'static,
1944{
1945    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::expire_session::ExpireSessionError, R>) -> Self {
1946        match err {
1947            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1948            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1949                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1950                source: err.into(),
1951            }),
1952        }
1953    }
1954}
1955impl From<crate::operation::expire_session::ExpireSessionError> for Error {
1956    fn from(err: crate::operation::expire_session::ExpireSessionError) -> Self {
1957        match err {
1958            crate::operation::expire_session::ExpireSessionError::Unhandled(inner) => Error::Unhandled(inner),
1959        }
1960    }
1961}
1962impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associated_fleets::ListAssociatedFleetsError, R>> for Error
1963where
1964    R: Send + Sync + std::fmt::Debug + 'static,
1965{
1966    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associated_fleets::ListAssociatedFleetsError, R>) -> Self {
1967        match err {
1968            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1969            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1970                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1971                source: err.into(),
1972            }),
1973        }
1974    }
1975}
1976impl From<crate::operation::list_associated_fleets::ListAssociatedFleetsError> for Error {
1977    fn from(err: crate::operation::list_associated_fleets::ListAssociatedFleetsError) -> Self {
1978        match err {
1979            crate::operation::list_associated_fleets::ListAssociatedFleetsError::Unhandled(inner) => Error::Unhandled(inner),
1980        }
1981    }
1982}
1983impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associated_stacks::ListAssociatedStacksError, R>> for Error
1984where
1985    R: Send + Sync + std::fmt::Debug + 'static,
1986{
1987    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associated_stacks::ListAssociatedStacksError, R>) -> Self {
1988        match err {
1989            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1990            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1991                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1992                source: err.into(),
1993            }),
1994        }
1995    }
1996}
1997impl From<crate::operation::list_associated_stacks::ListAssociatedStacksError> for Error {
1998    fn from(err: crate::operation::list_associated_stacks::ListAssociatedStacksError) -> Self {
1999        match err {
2000            crate::operation::list_associated_stacks::ListAssociatedStacksError::Unhandled(inner) => Error::Unhandled(inner),
2001        }
2002    }
2003}
2004impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_entitled_applications::ListEntitledApplicationsError, R>>
2005    for Error
2006where
2007    R: Send + Sync + std::fmt::Debug + 'static,
2008{
2009    fn from(
2010        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_entitled_applications::ListEntitledApplicationsError, R>,
2011    ) -> Self {
2012        match err {
2013            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2014            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2015                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2016                source: err.into(),
2017            }),
2018        }
2019    }
2020}
2021impl From<crate::operation::list_entitled_applications::ListEntitledApplicationsError> for Error {
2022    fn from(err: crate::operation::list_entitled_applications::ListEntitledApplicationsError) -> Self {
2023        match err {
2024            crate::operation::list_entitled_applications::ListEntitledApplicationsError::EntitlementNotFoundException(inner) => {
2025                Error::EntitlementNotFoundException(inner)
2026            }
2027            crate::operation::list_entitled_applications::ListEntitledApplicationsError::OperationNotPermittedException(inner) => {
2028                Error::OperationNotPermittedException(inner)
2029            }
2030            crate::operation::list_entitled_applications::ListEntitledApplicationsError::ResourceNotFoundException(inner) => {
2031                Error::ResourceNotFoundException(inner)
2032            }
2033            crate::operation::list_entitled_applications::ListEntitledApplicationsError::Unhandled(inner) => Error::Unhandled(inner),
2034        }
2035    }
2036}
2037impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2038where
2039    R: Send + Sync + std::fmt::Debug + 'static,
2040{
2041    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2042        match err {
2043            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2044            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2045                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2046                source: err.into(),
2047            }),
2048        }
2049    }
2050}
2051impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2052    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2053        match err {
2054            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2055                Error::ResourceNotFoundException(inner)
2056            }
2057            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2058        }
2059    }
2060}
2061impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_app_block_builder::StartAppBlockBuilderError, R>> for Error
2062where
2063    R: Send + Sync + std::fmt::Debug + 'static,
2064{
2065    fn from(
2066        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_app_block_builder::StartAppBlockBuilderError, R>,
2067    ) -> Self {
2068        match err {
2069            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2070            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2071                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2072                source: err.into(),
2073            }),
2074        }
2075    }
2076}
2077impl From<crate::operation::start_app_block_builder::StartAppBlockBuilderError> for Error {
2078    fn from(err: crate::operation::start_app_block_builder::StartAppBlockBuilderError) -> Self {
2079        match err {
2080            crate::operation::start_app_block_builder::StartAppBlockBuilderError::ConcurrentModificationException(inner) => {
2081                Error::ConcurrentModificationException(inner)
2082            }
2083            crate::operation::start_app_block_builder::StartAppBlockBuilderError::InvalidAccountStatusException(inner) => {
2084                Error::InvalidAccountStatusException(inner)
2085            }
2086            crate::operation::start_app_block_builder::StartAppBlockBuilderError::LimitExceededException(inner) => {
2087                Error::LimitExceededException(inner)
2088            }
2089            crate::operation::start_app_block_builder::StartAppBlockBuilderError::OperationNotPermittedException(inner) => {
2090                Error::OperationNotPermittedException(inner)
2091            }
2092            crate::operation::start_app_block_builder::StartAppBlockBuilderError::RequestLimitExceededException(inner) => {
2093                Error::RequestLimitExceededException(inner)
2094            }
2095            crate::operation::start_app_block_builder::StartAppBlockBuilderError::ResourceNotAvailableException(inner) => {
2096                Error::ResourceNotAvailableException(inner)
2097            }
2098            crate::operation::start_app_block_builder::StartAppBlockBuilderError::ResourceNotFoundException(inner) => {
2099                Error::ResourceNotFoundException(inner)
2100            }
2101            crate::operation::start_app_block_builder::StartAppBlockBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2102        }
2103    }
2104}
2105impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_fleet::StartFleetError, R>> for Error
2106where
2107    R: Send + Sync + std::fmt::Debug + 'static,
2108{
2109    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_fleet::StartFleetError, R>) -> Self {
2110        match err {
2111            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2112            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2113                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2114                source: err.into(),
2115            }),
2116        }
2117    }
2118}
2119impl From<crate::operation::start_fleet::StartFleetError> for Error {
2120    fn from(err: crate::operation::start_fleet::StartFleetError) -> Self {
2121        match err {
2122            crate::operation::start_fleet::StartFleetError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2123            crate::operation::start_fleet::StartFleetError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
2124            crate::operation::start_fleet::StartFleetError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
2125            crate::operation::start_fleet::StartFleetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2126            crate::operation::start_fleet::StartFleetError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2127            crate::operation::start_fleet::StartFleetError::RequestLimitExceededException(inner) => Error::RequestLimitExceededException(inner),
2128            crate::operation::start_fleet::StartFleetError::ResourceNotAvailableException(inner) => Error::ResourceNotAvailableException(inner),
2129            crate::operation::start_fleet::StartFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2130            crate::operation::start_fleet::StartFleetError::Unhandled(inner) => Error::Unhandled(inner),
2131        }
2132    }
2133}
2134impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_image_builder::StartImageBuilderError, R>> for Error
2135where
2136    R: Send + Sync + std::fmt::Debug + 'static,
2137{
2138    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_image_builder::StartImageBuilderError, R>) -> Self {
2139        match err {
2140            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2141            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2142                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2143                source: err.into(),
2144            }),
2145        }
2146    }
2147}
2148impl From<crate::operation::start_image_builder::StartImageBuilderError> for Error {
2149    fn from(err: crate::operation::start_image_builder::StartImageBuilderError) -> Self {
2150        match err {
2151            crate::operation::start_image_builder::StartImageBuilderError::ConcurrentModificationException(inner) => {
2152                Error::ConcurrentModificationException(inner)
2153            }
2154            crate::operation::start_image_builder::StartImageBuilderError::IncompatibleImageException(inner) => {
2155                Error::IncompatibleImageException(inner)
2156            }
2157            crate::operation::start_image_builder::StartImageBuilderError::InvalidAccountStatusException(inner) => {
2158                Error::InvalidAccountStatusException(inner)
2159            }
2160            crate::operation::start_image_builder::StartImageBuilderError::ResourceNotAvailableException(inner) => {
2161                Error::ResourceNotAvailableException(inner)
2162            }
2163            crate::operation::start_image_builder::StartImageBuilderError::ResourceNotFoundException(inner) => {
2164                Error::ResourceNotFoundException(inner)
2165            }
2166            crate::operation::start_image_builder::StartImageBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2167        }
2168    }
2169}
2170impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_app_block_builder::StopAppBlockBuilderError, R>> for Error
2171where
2172    R: Send + Sync + std::fmt::Debug + 'static,
2173{
2174    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_app_block_builder::StopAppBlockBuilderError, R>) -> Self {
2175        match err {
2176            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2177            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2178                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2179                source: err.into(),
2180            }),
2181        }
2182    }
2183}
2184impl From<crate::operation::stop_app_block_builder::StopAppBlockBuilderError> for Error {
2185    fn from(err: crate::operation::stop_app_block_builder::StopAppBlockBuilderError) -> Self {
2186        match err {
2187            crate::operation::stop_app_block_builder::StopAppBlockBuilderError::ConcurrentModificationException(inner) => {
2188                Error::ConcurrentModificationException(inner)
2189            }
2190            crate::operation::stop_app_block_builder::StopAppBlockBuilderError::OperationNotPermittedException(inner) => {
2191                Error::OperationNotPermittedException(inner)
2192            }
2193            crate::operation::stop_app_block_builder::StopAppBlockBuilderError::ResourceNotFoundException(inner) => {
2194                Error::ResourceNotFoundException(inner)
2195            }
2196            crate::operation::stop_app_block_builder::StopAppBlockBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2197        }
2198    }
2199}
2200impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_fleet::StopFleetError, R>> for Error
2201where
2202    R: Send + Sync + std::fmt::Debug + 'static,
2203{
2204    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_fleet::StopFleetError, R>) -> Self {
2205        match err {
2206            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2207            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2208                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2209                source: err.into(),
2210            }),
2211        }
2212    }
2213}
2214impl From<crate::operation::stop_fleet::StopFleetError> for Error {
2215    fn from(err: crate::operation::stop_fleet::StopFleetError) -> Self {
2216        match err {
2217            crate::operation::stop_fleet::StopFleetError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2218            crate::operation::stop_fleet::StopFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2219            crate::operation::stop_fleet::StopFleetError::Unhandled(inner) => Error::Unhandled(inner),
2220        }
2221    }
2222}
2223impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_image_builder::StopImageBuilderError, R>> for Error
2224where
2225    R: Send + Sync + std::fmt::Debug + 'static,
2226{
2227    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_image_builder::StopImageBuilderError, R>) -> Self {
2228        match err {
2229            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2230            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2231                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2232                source: err.into(),
2233            }),
2234        }
2235    }
2236}
2237impl From<crate::operation::stop_image_builder::StopImageBuilderError> for Error {
2238    fn from(err: crate::operation::stop_image_builder::StopImageBuilderError) -> Self {
2239        match err {
2240            crate::operation::stop_image_builder::StopImageBuilderError::ConcurrentModificationException(inner) => {
2241                Error::ConcurrentModificationException(inner)
2242            }
2243            crate::operation::stop_image_builder::StopImageBuilderError::OperationNotPermittedException(inner) => {
2244                Error::OperationNotPermittedException(inner)
2245            }
2246            crate::operation::stop_image_builder::StopImageBuilderError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2247            crate::operation::stop_image_builder::StopImageBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2248        }
2249    }
2250}
2251impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2252where
2253    R: Send + Sync + std::fmt::Debug + 'static,
2254{
2255    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2256        match err {
2257            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2258            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2259                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2260                source: err.into(),
2261            }),
2262        }
2263    }
2264}
2265impl From<crate::operation::tag_resource::TagResourceError> for Error {
2266    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2267        match err {
2268            crate::operation::tag_resource::TagResourceError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
2269            crate::operation::tag_resource::TagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2270            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2271            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2272        }
2273    }
2274}
2275impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2276where
2277    R: Send + Sync + std::fmt::Debug + 'static,
2278{
2279    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2280        match err {
2281            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2282            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2283                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2284                source: err.into(),
2285            }),
2286        }
2287    }
2288}
2289impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2290    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2291        match err {
2292            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2293            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2294        }
2295    }
2296}
2297impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_block_builder::UpdateAppBlockBuilderError, R>> for Error
2298where
2299    R: Send + Sync + std::fmt::Debug + 'static,
2300{
2301    fn from(
2302        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_block_builder::UpdateAppBlockBuilderError, R>,
2303    ) -> Self {
2304        match err {
2305            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2306            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2307                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2308                source: err.into(),
2309            }),
2310        }
2311    }
2312}
2313impl From<crate::operation::update_app_block_builder::UpdateAppBlockBuilderError> for Error {
2314    fn from(err: crate::operation::update_app_block_builder::UpdateAppBlockBuilderError) -> Self {
2315        match err {
2316            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::ConcurrentModificationException(inner) => {
2317                Error::ConcurrentModificationException(inner)
2318            }
2319            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::InvalidAccountStatusException(inner) => {
2320                Error::InvalidAccountStatusException(inner)
2321            }
2322            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::InvalidParameterCombinationException(inner) => {
2323                Error::InvalidParameterCombinationException(inner)
2324            }
2325            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
2326            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::LimitExceededException(inner) => {
2327                Error::LimitExceededException(inner)
2328            }
2329            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::OperationNotPermittedException(inner) => {
2330                Error::OperationNotPermittedException(inner)
2331            }
2332            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::RequestLimitExceededException(inner) => {
2333                Error::RequestLimitExceededException(inner)
2334            }
2335            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::ResourceInUseException(inner) => {
2336                Error::ResourceInUseException(inner)
2337            }
2338            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::ResourceNotAvailableException(inner) => {
2339                Error::ResourceNotAvailableException(inner)
2340            }
2341            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::ResourceNotFoundException(inner) => {
2342                Error::ResourceNotFoundException(inner)
2343            }
2344            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2345        }
2346    }
2347}
2348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application::UpdateApplicationError, R>> for Error
2349where
2350    R: Send + Sync + std::fmt::Debug + 'static,
2351{
2352    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application::UpdateApplicationError, R>) -> Self {
2353        match err {
2354            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2355            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2356                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2357                source: err.into(),
2358            }),
2359        }
2360    }
2361}
2362impl From<crate::operation::update_application::UpdateApplicationError> for Error {
2363    fn from(err: crate::operation::update_application::UpdateApplicationError) -> Self {
2364        match err {
2365            crate::operation::update_application::UpdateApplicationError::ConcurrentModificationException(inner) => {
2366                Error::ConcurrentModificationException(inner)
2367            }
2368            crate::operation::update_application::UpdateApplicationError::OperationNotPermittedException(inner) => {
2369                Error::OperationNotPermittedException(inner)
2370            }
2371            crate::operation::update_application::UpdateApplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2372            crate::operation::update_application::UpdateApplicationError::Unhandled(inner) => Error::Unhandled(inner),
2373        }
2374    }
2375}
2376impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_directory_config::UpdateDirectoryConfigError, R>> for Error
2377where
2378    R: Send + Sync + std::fmt::Debug + 'static,
2379{
2380    fn from(
2381        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_directory_config::UpdateDirectoryConfigError, R>,
2382    ) -> Self {
2383        match err {
2384            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2385            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2386                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2387                source: err.into(),
2388            }),
2389        }
2390    }
2391}
2392impl From<crate::operation::update_directory_config::UpdateDirectoryConfigError> for Error {
2393    fn from(err: crate::operation::update_directory_config::UpdateDirectoryConfigError) -> Self {
2394        match err {
2395            crate::operation::update_directory_config::UpdateDirectoryConfigError::ConcurrentModificationException(inner) => {
2396                Error::ConcurrentModificationException(inner)
2397            }
2398            crate::operation::update_directory_config::UpdateDirectoryConfigError::IncompatibleImageException(inner) => {
2399                Error::IncompatibleImageException(inner)
2400            }
2401            crate::operation::update_directory_config::UpdateDirectoryConfigError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
2402            crate::operation::update_directory_config::UpdateDirectoryConfigError::OperationNotPermittedException(inner) => {
2403                Error::OperationNotPermittedException(inner)
2404            }
2405            crate::operation::update_directory_config::UpdateDirectoryConfigError::ResourceInUseException(inner) => {
2406                Error::ResourceInUseException(inner)
2407            }
2408            crate::operation::update_directory_config::UpdateDirectoryConfigError::ResourceNotFoundException(inner) => {
2409                Error::ResourceNotFoundException(inner)
2410            }
2411            crate::operation::update_directory_config::UpdateDirectoryConfigError::Unhandled(inner) => Error::Unhandled(inner),
2412        }
2413    }
2414}
2415impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_entitlement::UpdateEntitlementError, R>> for Error
2416where
2417    R: Send + Sync + std::fmt::Debug + 'static,
2418{
2419    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_entitlement::UpdateEntitlementError, R>) -> Self {
2420        match err {
2421            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2422            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2423                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2424                source: err.into(),
2425            }),
2426        }
2427    }
2428}
2429impl From<crate::operation::update_entitlement::UpdateEntitlementError> for Error {
2430    fn from(err: crate::operation::update_entitlement::UpdateEntitlementError) -> Self {
2431        match err {
2432            crate::operation::update_entitlement::UpdateEntitlementError::ConcurrentModificationException(inner) => {
2433                Error::ConcurrentModificationException(inner)
2434            }
2435            crate::operation::update_entitlement::UpdateEntitlementError::EntitlementNotFoundException(inner) => {
2436                Error::EntitlementNotFoundException(inner)
2437            }
2438            crate::operation::update_entitlement::UpdateEntitlementError::OperationNotPermittedException(inner) => {
2439                Error::OperationNotPermittedException(inner)
2440            }
2441            crate::operation::update_entitlement::UpdateEntitlementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2442            crate::operation::update_entitlement::UpdateEntitlementError::Unhandled(inner) => Error::Unhandled(inner),
2443        }
2444    }
2445}
2446impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fleet::UpdateFleetError, R>> for Error
2447where
2448    R: Send + Sync + std::fmt::Debug + 'static,
2449{
2450    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fleet::UpdateFleetError, R>) -> Self {
2451        match err {
2452            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2453            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2454                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2455                source: err.into(),
2456            }),
2457        }
2458    }
2459}
2460impl From<crate::operation::update_fleet::UpdateFleetError> for Error {
2461    fn from(err: crate::operation::update_fleet::UpdateFleetError) -> Self {
2462        match err {
2463            crate::operation::update_fleet::UpdateFleetError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2464            crate::operation::update_fleet::UpdateFleetError::IncompatibleImageException(inner) => Error::IncompatibleImageException(inner),
2465            crate::operation::update_fleet::UpdateFleetError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
2466            crate::operation::update_fleet::UpdateFleetError::InvalidParameterCombinationException(inner) => {
2467                Error::InvalidParameterCombinationException(inner)
2468            }
2469            crate::operation::update_fleet::UpdateFleetError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
2470            crate::operation::update_fleet::UpdateFleetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2471            crate::operation::update_fleet::UpdateFleetError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2472            crate::operation::update_fleet::UpdateFleetError::RequestLimitExceededException(inner) => Error::RequestLimitExceededException(inner),
2473            crate::operation::update_fleet::UpdateFleetError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
2474            crate::operation::update_fleet::UpdateFleetError::ResourceNotAvailableException(inner) => Error::ResourceNotAvailableException(inner),
2475            crate::operation::update_fleet::UpdateFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2476            crate::operation::update_fleet::UpdateFleetError::Unhandled(inner) => Error::Unhandled(inner),
2477        }
2478    }
2479}
2480impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image_permissions::UpdateImagePermissionsError, R>> for Error
2481where
2482    R: Send + Sync + std::fmt::Debug + 'static,
2483{
2484    fn from(
2485        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image_permissions::UpdateImagePermissionsError, R>,
2486    ) -> Self {
2487        match err {
2488            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2489            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2490                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2491                source: err.into(),
2492            }),
2493        }
2494    }
2495}
2496impl From<crate::operation::update_image_permissions::UpdateImagePermissionsError> for Error {
2497    fn from(err: crate::operation::update_image_permissions::UpdateImagePermissionsError) -> Self {
2498        match err {
2499            crate::operation::update_image_permissions::UpdateImagePermissionsError::LimitExceededException(inner) => {
2500                Error::LimitExceededException(inner)
2501            }
2502            crate::operation::update_image_permissions::UpdateImagePermissionsError::ResourceNotAvailableException(inner) => {
2503                Error::ResourceNotAvailableException(inner)
2504            }
2505            crate::operation::update_image_permissions::UpdateImagePermissionsError::ResourceNotFoundException(inner) => {
2506                Error::ResourceNotFoundException(inner)
2507            }
2508            crate::operation::update_image_permissions::UpdateImagePermissionsError::Unhandled(inner) => Error::Unhandled(inner),
2509        }
2510    }
2511}
2512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack::UpdateStackError, R>> for Error
2513where
2514    R: Send + Sync + std::fmt::Debug + 'static,
2515{
2516    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack::UpdateStackError, R>) -> Self {
2517        match err {
2518            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2519            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2520                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2521                source: err.into(),
2522            }),
2523        }
2524    }
2525}
2526impl From<crate::operation::update_stack::UpdateStackError> for Error {
2527    fn from(err: crate::operation::update_stack::UpdateStackError) -> Self {
2528        match err {
2529            crate::operation::update_stack::UpdateStackError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2530            crate::operation::update_stack::UpdateStackError::IncompatibleImageException(inner) => Error::IncompatibleImageException(inner),
2531            crate::operation::update_stack::UpdateStackError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
2532            crate::operation::update_stack::UpdateStackError::InvalidParameterCombinationException(inner) => {
2533                Error::InvalidParameterCombinationException(inner)
2534            }
2535            crate::operation::update_stack::UpdateStackError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
2536            crate::operation::update_stack::UpdateStackError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2537            crate::operation::update_stack::UpdateStackError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2538            crate::operation::update_stack::UpdateStackError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
2539            crate::operation::update_stack::UpdateStackError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2540            crate::operation::update_stack::UpdateStackError::Unhandled(inner) => Error::Unhandled(inner),
2541        }
2542    }
2543}
2544impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_theme_for_stack::UpdateThemeForStackError, R>> for Error
2545where
2546    R: Send + Sync + std::fmt::Debug + 'static,
2547{
2548    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_theme_for_stack::UpdateThemeForStackError, R>) -> Self {
2549        match err {
2550            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2551            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2552                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2553                source: err.into(),
2554            }),
2555        }
2556    }
2557}
2558impl From<crate::operation::update_theme_for_stack::UpdateThemeForStackError> for Error {
2559    fn from(err: crate::operation::update_theme_for_stack::UpdateThemeForStackError) -> Self {
2560        match err {
2561            crate::operation::update_theme_for_stack::UpdateThemeForStackError::ConcurrentModificationException(inner) => {
2562                Error::ConcurrentModificationException(inner)
2563            }
2564            crate::operation::update_theme_for_stack::UpdateThemeForStackError::InvalidAccountStatusException(inner) => {
2565                Error::InvalidAccountStatusException(inner)
2566            }
2567            crate::operation::update_theme_for_stack::UpdateThemeForStackError::InvalidParameterCombinationException(inner) => {
2568                Error::InvalidParameterCombinationException(inner)
2569            }
2570            crate::operation::update_theme_for_stack::UpdateThemeForStackError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2571            crate::operation::update_theme_for_stack::UpdateThemeForStackError::OperationNotPermittedException(inner) => {
2572                Error::OperationNotPermittedException(inner)
2573            }
2574            crate::operation::update_theme_for_stack::UpdateThemeForStackError::ResourceNotFoundException(inner) => {
2575                Error::ResourceNotFoundException(inner)
2576            }
2577            crate::operation::update_theme_for_stack::UpdateThemeForStackError::Unhandled(inner) => Error::Unhandled(inner),
2578        }
2579    }
2580}
2581impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
2582where
2583    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
2584    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
2585{
2586    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
2587        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2588            meta: ::std::default::Default::default(),
2589            source: err.into(),
2590        })
2591    }
2592}
2593impl ::std::error::Error for Error {
2594    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2595        match self {
2596            Error::ConcurrentModificationException(inner) => inner.source(),
2597            Error::EntitlementAlreadyExistsException(inner) => inner.source(),
2598            Error::EntitlementNotFoundException(inner) => inner.source(),
2599            Error::IncompatibleImageException(inner) => inner.source(),
2600            Error::InvalidAccountStatusException(inner) => inner.source(),
2601            Error::InvalidParameterCombinationException(inner) => inner.source(),
2602            Error::InvalidRoleException(inner) => inner.source(),
2603            Error::LimitExceededException(inner) => inner.source(),
2604            Error::OperationNotPermittedException(inner) => inner.source(),
2605            Error::RequestLimitExceededException(inner) => inner.source(),
2606            Error::ResourceAlreadyExistsException(inner) => inner.source(),
2607            Error::ResourceInUseException(inner) => inner.source(),
2608            Error::ResourceNotAvailableException(inner) => inner.source(),
2609            Error::ResourceNotFoundException(inner) => inner.source(),
2610            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2611        }
2612    }
2613}
2614impl ::aws_types::request_id::RequestId for Error {
2615    fn request_id(&self) -> Option<&str> {
2616        match self {
2617            Self::ConcurrentModificationException(e) => e.request_id(),
2618            Self::EntitlementAlreadyExistsException(e) => e.request_id(),
2619            Self::EntitlementNotFoundException(e) => e.request_id(),
2620            Self::IncompatibleImageException(e) => e.request_id(),
2621            Self::InvalidAccountStatusException(e) => e.request_id(),
2622            Self::InvalidParameterCombinationException(e) => e.request_id(),
2623            Self::InvalidRoleException(e) => e.request_id(),
2624            Self::LimitExceededException(e) => e.request_id(),
2625            Self::OperationNotPermittedException(e) => e.request_id(),
2626            Self::RequestLimitExceededException(e) => e.request_id(),
2627            Self::ResourceAlreadyExistsException(e) => e.request_id(),
2628            Self::ResourceInUseException(e) => e.request_id(),
2629            Self::ResourceNotAvailableException(e) => e.request_id(),
2630            Self::ResourceNotFoundException(e) => e.request_id(),
2631            Self::Unhandled(e) => e.meta.request_id(),
2632        }
2633    }
2634}