Skip to main content

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