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::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
817            crate::operation::create_imported_image::CreateImportedImageError::LimitExceededException(inner) => Error::LimitExceededException(inner),
818            crate::operation::create_imported_image::CreateImportedImageError::OperationNotPermittedException(inner) => {
819                Error::OperationNotPermittedException(inner)
820            }
821            crate::operation::create_imported_image::CreateImportedImageError::ResourceAlreadyExistsException(inner) => {
822                Error::ResourceAlreadyExistsException(inner)
823            }
824            crate::operation::create_imported_image::CreateImportedImageError::ResourceNotFoundException(inner) => {
825                Error::ResourceNotFoundException(inner)
826            }
827            crate::operation::create_imported_image::CreateImportedImageError::Unhandled(inner) => Error::Unhandled(inner),
828        }
829    }
830}
831impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack::CreateStackError, R>> for Error
832where
833    R: Send + Sync + std::fmt::Debug + 'static,
834{
835    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stack::CreateStackError, R>) -> Self {
836        match err {
837            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
838            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
839                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
840                source: err.into(),
841            }),
842        }
843    }
844}
845impl From<crate::operation::create_stack::CreateStackError> for Error {
846    fn from(err: crate::operation::create_stack::CreateStackError) -> Self {
847        match err {
848            crate::operation::create_stack::CreateStackError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
849            crate::operation::create_stack::CreateStackError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
850            crate::operation::create_stack::CreateStackError::InvalidParameterCombinationException(inner) => {
851                Error::InvalidParameterCombinationException(inner)
852            }
853            crate::operation::create_stack::CreateStackError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
854            crate::operation::create_stack::CreateStackError::LimitExceededException(inner) => Error::LimitExceededException(inner),
855            crate::operation::create_stack::CreateStackError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
856            crate::operation::create_stack::CreateStackError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
857            crate::operation::create_stack::CreateStackError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
858            crate::operation::create_stack::CreateStackError::Unhandled(inner) => Error::Unhandled(inner),
859        }
860    }
861}
862impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_streaming_url::CreateStreamingURLError, R>> for Error
863where
864    R: Send + Sync + std::fmt::Debug + 'static,
865{
866    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_streaming_url::CreateStreamingURLError, R>) -> Self {
867        match err {
868            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
869            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
870                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
871                source: err.into(),
872            }),
873        }
874    }
875}
876impl From<crate::operation::create_streaming_url::CreateStreamingURLError> for Error {
877    fn from(err: crate::operation::create_streaming_url::CreateStreamingURLError) -> Self {
878        match err {
879            crate::operation::create_streaming_url::CreateStreamingURLError::InvalidParameterCombinationException(inner) => {
880                Error::InvalidParameterCombinationException(inner)
881            }
882            crate::operation::create_streaming_url::CreateStreamingURLError::OperationNotPermittedException(inner) => {
883                Error::OperationNotPermittedException(inner)
884            }
885            crate::operation::create_streaming_url::CreateStreamingURLError::ResourceNotAvailableException(inner) => {
886                Error::ResourceNotAvailableException(inner)
887            }
888            crate::operation::create_streaming_url::CreateStreamingURLError::ResourceNotFoundException(inner) => {
889                Error::ResourceNotFoundException(inner)
890            }
891            crate::operation::create_streaming_url::CreateStreamingURLError::Unhandled(inner) => Error::Unhandled(inner),
892        }
893    }
894}
895impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_theme_for_stack::CreateThemeForStackError, R>> for Error
896where
897    R: Send + Sync + std::fmt::Debug + 'static,
898{
899    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_theme_for_stack::CreateThemeForStackError, R>) -> Self {
900        match err {
901            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
902            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
903                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
904                source: err.into(),
905            }),
906        }
907    }
908}
909impl From<crate::operation::create_theme_for_stack::CreateThemeForStackError> for Error {
910    fn from(err: crate::operation::create_theme_for_stack::CreateThemeForStackError) -> Self {
911        match err {
912            crate::operation::create_theme_for_stack::CreateThemeForStackError::ConcurrentModificationException(inner) => {
913                Error::ConcurrentModificationException(inner)
914            }
915            crate::operation::create_theme_for_stack::CreateThemeForStackError::InvalidAccountStatusException(inner) => {
916                Error::InvalidAccountStatusException(inner)
917            }
918            crate::operation::create_theme_for_stack::CreateThemeForStackError::LimitExceededException(inner) => Error::LimitExceededException(inner),
919            crate::operation::create_theme_for_stack::CreateThemeForStackError::OperationNotPermittedException(inner) => {
920                Error::OperationNotPermittedException(inner)
921            }
922            crate::operation::create_theme_for_stack::CreateThemeForStackError::ResourceAlreadyExistsException(inner) => {
923                Error::ResourceAlreadyExistsException(inner)
924            }
925            crate::operation::create_theme_for_stack::CreateThemeForStackError::ResourceNotFoundException(inner) => {
926                Error::ResourceNotFoundException(inner)
927            }
928            crate::operation::create_theme_for_stack::CreateThemeForStackError::Unhandled(inner) => Error::Unhandled(inner),
929        }
930    }
931}
932impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_updated_image::CreateUpdatedImageError, R>> for Error
933where
934    R: Send + Sync + std::fmt::Debug + 'static,
935{
936    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_updated_image::CreateUpdatedImageError, R>) -> Self {
937        match err {
938            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
939            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
940                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
941                source: err.into(),
942            }),
943        }
944    }
945}
946impl From<crate::operation::create_updated_image::CreateUpdatedImageError> for Error {
947    fn from(err: crate::operation::create_updated_image::CreateUpdatedImageError) -> Self {
948        match err {
949            crate::operation::create_updated_image::CreateUpdatedImageError::ConcurrentModificationException(inner) => {
950                Error::ConcurrentModificationException(inner)
951            }
952            crate::operation::create_updated_image::CreateUpdatedImageError::IncompatibleImageException(inner) => {
953                Error::IncompatibleImageException(inner)
954            }
955            crate::operation::create_updated_image::CreateUpdatedImageError::InvalidAccountStatusException(inner) => {
956                Error::InvalidAccountStatusException(inner)
957            }
958            crate::operation::create_updated_image::CreateUpdatedImageError::LimitExceededException(inner) => Error::LimitExceededException(inner),
959            crate::operation::create_updated_image::CreateUpdatedImageError::OperationNotPermittedException(inner) => {
960                Error::OperationNotPermittedException(inner)
961            }
962            crate::operation::create_updated_image::CreateUpdatedImageError::ResourceAlreadyExistsException(inner) => {
963                Error::ResourceAlreadyExistsException(inner)
964            }
965            crate::operation::create_updated_image::CreateUpdatedImageError::ResourceNotFoundException(inner) => {
966                Error::ResourceNotFoundException(inner)
967            }
968            crate::operation::create_updated_image::CreateUpdatedImageError::Unhandled(inner) => Error::Unhandled(inner),
969        }
970    }
971}
972impl<R>
973    From<
974        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError, R>,
975    > for Error
976where
977    R: Send + Sync + std::fmt::Debug + 'static,
978{
979    fn from(
980        err: ::aws_smithy_runtime_api::client::result::SdkError<
981            crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError,
982            R,
983        >,
984    ) -> Self {
985        match err {
986            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
987            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
988                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
989                source: err.into(),
990            }),
991        }
992    }
993}
994impl From<crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError> for Error {
995    fn from(err: crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError) -> Self {
996        match err {
997            crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError::InvalidAccountStatusException(inner) => {
998                Error::InvalidAccountStatusException(inner)
999            }
1000            crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError::InvalidRoleException(inner) => {
1001                Error::InvalidRoleException(inner)
1002            }
1003            crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError::LimitExceededException(inner) => {
1004                Error::LimitExceededException(inner)
1005            }
1006            crate::operation::create_usage_report_subscription::CreateUsageReportSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
1007        }
1008    }
1009}
1010impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user::CreateUserError, R>> for Error
1011where
1012    R: Send + Sync + std::fmt::Debug + 'static,
1013{
1014    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user::CreateUserError, R>) -> Self {
1015        match err {
1016            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1017            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1018                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1019                source: err.into(),
1020            }),
1021        }
1022    }
1023}
1024impl From<crate::operation::create_user::CreateUserError> for Error {
1025    fn from(err: crate::operation::create_user::CreateUserError) -> Self {
1026        match err {
1027            crate::operation::create_user::CreateUserError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
1028            crate::operation::create_user::CreateUserError::InvalidParameterCombinationException(inner) => {
1029                Error::InvalidParameterCombinationException(inner)
1030            }
1031            crate::operation::create_user::CreateUserError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1032            crate::operation::create_user::CreateUserError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1033            crate::operation::create_user::CreateUserError::ResourceAlreadyExistsException(inner) => Error::ResourceAlreadyExistsException(inner),
1034            crate::operation::create_user::CreateUserError::Unhandled(inner) => Error::Unhandled(inner),
1035        }
1036    }
1037}
1038impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_block::DeleteAppBlockError, R>> for Error
1039where
1040    R: Send + Sync + std::fmt::Debug + 'static,
1041{
1042    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_block::DeleteAppBlockError, R>) -> Self {
1043        match err {
1044            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1045            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1046                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1047                source: err.into(),
1048            }),
1049        }
1050    }
1051}
1052impl From<crate::operation::delete_app_block::DeleteAppBlockError> for Error {
1053    fn from(err: crate::operation::delete_app_block::DeleteAppBlockError) -> Self {
1054        match err {
1055            crate::operation::delete_app_block::DeleteAppBlockError::ConcurrentModificationException(inner) => {
1056                Error::ConcurrentModificationException(inner)
1057            }
1058            crate::operation::delete_app_block::DeleteAppBlockError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1059            crate::operation::delete_app_block::DeleteAppBlockError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1060            crate::operation::delete_app_block::DeleteAppBlockError::Unhandled(inner) => Error::Unhandled(inner),
1061        }
1062    }
1063}
1064impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError, R>> for Error
1065where
1066    R: Send + Sync + std::fmt::Debug + 'static,
1067{
1068    fn from(
1069        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError, R>,
1070    ) -> Self {
1071        match err {
1072            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1073            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1074                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1075                source: err.into(),
1076            }),
1077        }
1078    }
1079}
1080impl From<crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError> for Error {
1081    fn from(err: crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError) -> Self {
1082        match err {
1083            crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError::ConcurrentModificationException(inner) => {
1084                Error::ConcurrentModificationException(inner)
1085            }
1086            crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError::OperationNotPermittedException(inner) => {
1087                Error::OperationNotPermittedException(inner)
1088            }
1089            crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError::ResourceInUseException(inner) => {
1090                Error::ResourceInUseException(inner)
1091            }
1092            crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError::ResourceNotFoundException(inner) => {
1093                Error::ResourceNotFoundException(inner)
1094            }
1095            crate::operation::delete_app_block_builder::DeleteAppBlockBuilderError::Unhandled(inner) => Error::Unhandled(inner),
1096        }
1097    }
1098}
1099impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_application::DeleteApplicationError, R>> for Error
1100where
1101    R: Send + Sync + std::fmt::Debug + 'static,
1102{
1103    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_application::DeleteApplicationError, R>) -> Self {
1104        match err {
1105            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1106            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1107                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1108                source: err.into(),
1109            }),
1110        }
1111    }
1112}
1113impl From<crate::operation::delete_application::DeleteApplicationError> for Error {
1114    fn from(err: crate::operation::delete_application::DeleteApplicationError) -> Self {
1115        match err {
1116            crate::operation::delete_application::DeleteApplicationError::ConcurrentModificationException(inner) => {
1117                Error::ConcurrentModificationException(inner)
1118            }
1119            crate::operation::delete_application::DeleteApplicationError::OperationNotPermittedException(inner) => {
1120                Error::OperationNotPermittedException(inner)
1121            }
1122            crate::operation::delete_application::DeleteApplicationError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1123            crate::operation::delete_application::DeleteApplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1124            crate::operation::delete_application::DeleteApplicationError::Unhandled(inner) => Error::Unhandled(inner),
1125        }
1126    }
1127}
1128impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_directory_config::DeleteDirectoryConfigError, R>> for Error
1129where
1130    R: Send + Sync + std::fmt::Debug + 'static,
1131{
1132    fn from(
1133        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_directory_config::DeleteDirectoryConfigError, R>,
1134    ) -> Self {
1135        match err {
1136            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1137            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1138                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1139                source: err.into(),
1140            }),
1141        }
1142    }
1143}
1144impl From<crate::operation::delete_directory_config::DeleteDirectoryConfigError> for Error {
1145    fn from(err: crate::operation::delete_directory_config::DeleteDirectoryConfigError) -> Self {
1146        match err {
1147            crate::operation::delete_directory_config::DeleteDirectoryConfigError::ResourceInUseException(inner) => {
1148                Error::ResourceInUseException(inner)
1149            }
1150            crate::operation::delete_directory_config::DeleteDirectoryConfigError::ResourceNotFoundException(inner) => {
1151                Error::ResourceNotFoundException(inner)
1152            }
1153            crate::operation::delete_directory_config::DeleteDirectoryConfigError::Unhandled(inner) => Error::Unhandled(inner),
1154        }
1155    }
1156}
1157impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_entitlement::DeleteEntitlementError, R>> for Error
1158where
1159    R: Send + Sync + std::fmt::Debug + 'static,
1160{
1161    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_entitlement::DeleteEntitlementError, R>) -> Self {
1162        match err {
1163            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1164            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1165                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1166                source: err.into(),
1167            }),
1168        }
1169    }
1170}
1171impl From<crate::operation::delete_entitlement::DeleteEntitlementError> for Error {
1172    fn from(err: crate::operation::delete_entitlement::DeleteEntitlementError) -> Self {
1173        match err {
1174            crate::operation::delete_entitlement::DeleteEntitlementError::ConcurrentModificationException(inner) => {
1175                Error::ConcurrentModificationException(inner)
1176            }
1177            crate::operation::delete_entitlement::DeleteEntitlementError::EntitlementNotFoundException(inner) => {
1178                Error::EntitlementNotFoundException(inner)
1179            }
1180            crate::operation::delete_entitlement::DeleteEntitlementError::OperationNotPermittedException(inner) => {
1181                Error::OperationNotPermittedException(inner)
1182            }
1183            crate::operation::delete_entitlement::DeleteEntitlementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1184            crate::operation::delete_entitlement::DeleteEntitlementError::Unhandled(inner) => Error::Unhandled(inner),
1185        }
1186    }
1187}
1188impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleet::DeleteFleetError, R>> for Error
1189where
1190    R: Send + Sync + std::fmt::Debug + 'static,
1191{
1192    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_fleet::DeleteFleetError, R>) -> Self {
1193        match err {
1194            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1195            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1196                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1197                source: err.into(),
1198            }),
1199        }
1200    }
1201}
1202impl From<crate::operation::delete_fleet::DeleteFleetError> for Error {
1203    fn from(err: crate::operation::delete_fleet::DeleteFleetError) -> Self {
1204        match err {
1205            crate::operation::delete_fleet::DeleteFleetError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1206            crate::operation::delete_fleet::DeleteFleetError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1207            crate::operation::delete_fleet::DeleteFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1208            crate::operation::delete_fleet::DeleteFleetError::Unhandled(inner) => Error::Unhandled(inner),
1209        }
1210    }
1211}
1212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image::DeleteImageError, R>> for Error
1213where
1214    R: Send + Sync + std::fmt::Debug + 'static,
1215{
1216    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image::DeleteImageError, R>) -> Self {
1217        match err {
1218            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1219            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1220                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1221                source: err.into(),
1222            }),
1223        }
1224    }
1225}
1226impl From<crate::operation::delete_image::DeleteImageError> for Error {
1227    fn from(err: crate::operation::delete_image::DeleteImageError) -> Self {
1228        match err {
1229            crate::operation::delete_image::DeleteImageError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1230            crate::operation::delete_image::DeleteImageError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1231            crate::operation::delete_image::DeleteImageError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1232            crate::operation::delete_image::DeleteImageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1233            crate::operation::delete_image::DeleteImageError::Unhandled(inner) => Error::Unhandled(inner),
1234        }
1235    }
1236}
1237impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_builder::DeleteImageBuilderError, R>> for Error
1238where
1239    R: Send + Sync + std::fmt::Debug + 'static,
1240{
1241    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_builder::DeleteImageBuilderError, R>) -> Self {
1242        match err {
1243            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1244            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1245                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1246                source: err.into(),
1247            }),
1248        }
1249    }
1250}
1251impl From<crate::operation::delete_image_builder::DeleteImageBuilderError> for Error {
1252    fn from(err: crate::operation::delete_image_builder::DeleteImageBuilderError) -> Self {
1253        match err {
1254            crate::operation::delete_image_builder::DeleteImageBuilderError::ConcurrentModificationException(inner) => {
1255                Error::ConcurrentModificationException(inner)
1256            }
1257            crate::operation::delete_image_builder::DeleteImageBuilderError::OperationNotPermittedException(inner) => {
1258                Error::OperationNotPermittedException(inner)
1259            }
1260            crate::operation::delete_image_builder::DeleteImageBuilderError::ResourceNotFoundException(inner) => {
1261                Error::ResourceNotFoundException(inner)
1262            }
1263            crate::operation::delete_image_builder::DeleteImageBuilderError::Unhandled(inner) => Error::Unhandled(inner),
1264        }
1265    }
1266}
1267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_permissions::DeleteImagePermissionsError, R>> for Error
1268where
1269    R: Send + Sync + std::fmt::Debug + 'static,
1270{
1271    fn from(
1272        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_image_permissions::DeleteImagePermissionsError, R>,
1273    ) -> Self {
1274        match err {
1275            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1276            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1277                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1278                source: err.into(),
1279            }),
1280        }
1281    }
1282}
1283impl From<crate::operation::delete_image_permissions::DeleteImagePermissionsError> for Error {
1284    fn from(err: crate::operation::delete_image_permissions::DeleteImagePermissionsError) -> Self {
1285        match err {
1286            crate::operation::delete_image_permissions::DeleteImagePermissionsError::ResourceNotAvailableException(inner) => {
1287                Error::ResourceNotAvailableException(inner)
1288            }
1289            crate::operation::delete_image_permissions::DeleteImagePermissionsError::ResourceNotFoundException(inner) => {
1290                Error::ResourceNotFoundException(inner)
1291            }
1292            crate::operation::delete_image_permissions::DeleteImagePermissionsError::Unhandled(inner) => Error::Unhandled(inner),
1293        }
1294    }
1295}
1296impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack::DeleteStackError, R>> for Error
1297where
1298    R: Send + Sync + std::fmt::Debug + 'static,
1299{
1300    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stack::DeleteStackError, R>) -> Self {
1301        match err {
1302            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1303            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1304                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1305                source: err.into(),
1306            }),
1307        }
1308    }
1309}
1310impl From<crate::operation::delete_stack::DeleteStackError> for Error {
1311    fn from(err: crate::operation::delete_stack::DeleteStackError) -> Self {
1312        match err {
1313            crate::operation::delete_stack::DeleteStackError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
1314            crate::operation::delete_stack::DeleteStackError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1315            crate::operation::delete_stack::DeleteStackError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1316            crate::operation::delete_stack::DeleteStackError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1317            crate::operation::delete_stack::DeleteStackError::Unhandled(inner) => Error::Unhandled(inner),
1318        }
1319    }
1320}
1321impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_theme_for_stack::DeleteThemeForStackError, R>> for Error
1322where
1323    R: Send + Sync + std::fmt::Debug + 'static,
1324{
1325    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_theme_for_stack::DeleteThemeForStackError, R>) -> Self {
1326        match err {
1327            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1328            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1329                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1330                source: err.into(),
1331            }),
1332        }
1333    }
1334}
1335impl From<crate::operation::delete_theme_for_stack::DeleteThemeForStackError> for Error {
1336    fn from(err: crate::operation::delete_theme_for_stack::DeleteThemeForStackError) -> Self {
1337        match err {
1338            crate::operation::delete_theme_for_stack::DeleteThemeForStackError::ConcurrentModificationException(inner) => {
1339                Error::ConcurrentModificationException(inner)
1340            }
1341            crate::operation::delete_theme_for_stack::DeleteThemeForStackError::OperationNotPermittedException(inner) => {
1342                Error::OperationNotPermittedException(inner)
1343            }
1344            crate::operation::delete_theme_for_stack::DeleteThemeForStackError::ResourceNotFoundException(inner) => {
1345                Error::ResourceNotFoundException(inner)
1346            }
1347            crate::operation::delete_theme_for_stack::DeleteThemeForStackError::Unhandled(inner) => Error::Unhandled(inner),
1348        }
1349    }
1350}
1351impl<R>
1352    From<
1353        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError, R>,
1354    > for Error
1355where
1356    R: Send + Sync + std::fmt::Debug + 'static,
1357{
1358    fn from(
1359        err: ::aws_smithy_runtime_api::client::result::SdkError<
1360            crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError,
1361            R,
1362        >,
1363    ) -> Self {
1364        match err {
1365            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1366            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1367                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1368                source: err.into(),
1369            }),
1370        }
1371    }
1372}
1373impl From<crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError> for Error {
1374    fn from(err: crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError) -> Self {
1375        match err {
1376            crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError::InvalidAccountStatusException(inner) => {
1377                Error::InvalidAccountStatusException(inner)
1378            }
1379            crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError::ResourceNotFoundException(inner) => {
1380                Error::ResourceNotFoundException(inner)
1381            }
1382            crate::operation::delete_usage_report_subscription::DeleteUsageReportSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
1383        }
1384    }
1385}
1386impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user::DeleteUserError, R>> for Error
1387where
1388    R: Send + Sync + std::fmt::Debug + 'static,
1389{
1390    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user::DeleteUserError, R>) -> Self {
1391        match err {
1392            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1393            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1394                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1395                source: err.into(),
1396            }),
1397        }
1398    }
1399}
1400impl From<crate::operation::delete_user::DeleteUserError> for Error {
1401    fn from(err: crate::operation::delete_user::DeleteUserError) -> Self {
1402        match err {
1403            crate::operation::delete_user::DeleteUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1404            crate::operation::delete_user::DeleteUserError::Unhandled(inner) => Error::Unhandled(inner),
1405        }
1406    }
1407}
1408impl<R>
1409    From<
1410        ::aws_smithy_runtime_api::client::result::SdkError<
1411            crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError,
1412            R,
1413        >,
1414    > for Error
1415where
1416    R: Send + Sync + std::fmt::Debug + 'static,
1417{
1418    fn from(
1419        err: ::aws_smithy_runtime_api::client::result::SdkError<
1420            crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError,
1421            R,
1422        >,
1423    ) -> Self {
1424        match err {
1425            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1426            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1427                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1428                source: err.into(),
1429            }),
1430        }
1431    }
1432}
1433impl From<crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError> for Error {
1434    fn from(err: crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError) -> Self {
1435        match err {
1436            crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError::InvalidParameterCombinationException(inner) => Error::InvalidParameterCombinationException(inner),
1437            crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1438            crate::operation::describe_app_block_builder_app_block_associations::DescribeAppBlockBuilderAppBlockAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1439        }
1440    }
1441}
1442impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError, R>>
1443    for Error
1444where
1445    R: Send + Sync + std::fmt::Debug + 'static,
1446{
1447    fn from(
1448        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError, R>,
1449    ) -> Self {
1450        match err {
1451            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1452            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1453                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1454                source: err.into(),
1455            }),
1456        }
1457    }
1458}
1459impl From<crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError> for Error {
1460    fn from(err: crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError) -> Self {
1461        match err {
1462            crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError::OperationNotPermittedException(inner) => {
1463                Error::OperationNotPermittedException(inner)
1464            }
1465            crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError::ResourceNotFoundException(inner) => {
1466                Error::ResourceNotFoundException(inner)
1467            }
1468            crate::operation::describe_app_block_builders::DescribeAppBlockBuildersError::Unhandled(inner) => Error::Unhandled(inner),
1469        }
1470    }
1471}
1472impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_blocks::DescribeAppBlocksError, R>> for Error
1473where
1474    R: Send + Sync + std::fmt::Debug + 'static,
1475{
1476    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_blocks::DescribeAppBlocksError, R>) -> Self {
1477        match err {
1478            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1479            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1480                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1481                source: err.into(),
1482            }),
1483        }
1484    }
1485}
1486impl From<crate::operation::describe_app_blocks::DescribeAppBlocksError> for Error {
1487    fn from(err: crate::operation::describe_app_blocks::DescribeAppBlocksError) -> Self {
1488        match err {
1489            crate::operation::describe_app_blocks::DescribeAppBlocksError::OperationNotPermittedException(inner) => {
1490                Error::OperationNotPermittedException(inner)
1491            }
1492            crate::operation::describe_app_blocks::DescribeAppBlocksError::ResourceNotFoundException(inner) => {
1493                Error::ResourceNotFoundException(inner)
1494            }
1495            crate::operation::describe_app_blocks::DescribeAppBlocksError::Unhandled(inner) => Error::Unhandled(inner),
1496        }
1497    }
1498}
1499impl<R>
1500    From<
1501        ::aws_smithy_runtime_api::client::result::SdkError<
1502            crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError,
1503            R,
1504        >,
1505    > for Error
1506where
1507    R: Send + Sync + std::fmt::Debug + 'static,
1508{
1509    fn from(
1510        err: ::aws_smithy_runtime_api::client::result::SdkError<
1511            crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError,
1512            R,
1513        >,
1514    ) -> Self {
1515        match err {
1516            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1517            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1518                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1519                source: err.into(),
1520            }),
1521        }
1522    }
1523}
1524impl From<crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError> for Error {
1525    fn from(err: crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError) -> Self {
1526        match err {
1527            crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError::InvalidParameterCombinationException(inner) => Error::InvalidParameterCombinationException(inner),
1528            crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1529            crate::operation::describe_application_fleet_associations::DescribeApplicationFleetAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1530        }
1531    }
1532}
1533impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_applications::DescribeApplicationsError, R>> for Error
1534where
1535    R: Send + Sync + std::fmt::Debug + 'static,
1536{
1537    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_applications::DescribeApplicationsError, R>) -> Self {
1538        match err {
1539            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1540            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1541                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1542                source: err.into(),
1543            }),
1544        }
1545    }
1546}
1547impl From<crate::operation::describe_applications::DescribeApplicationsError> for Error {
1548    fn from(err: crate::operation::describe_applications::DescribeApplicationsError) -> Self {
1549        match err {
1550            crate::operation::describe_applications::DescribeApplicationsError::OperationNotPermittedException(inner) => {
1551                Error::OperationNotPermittedException(inner)
1552            }
1553            crate::operation::describe_applications::DescribeApplicationsError::ResourceNotFoundException(inner) => {
1554                Error::ResourceNotFoundException(inner)
1555            }
1556            crate::operation::describe_applications::DescribeApplicationsError::Unhandled(inner) => Error::Unhandled(inner),
1557        }
1558    }
1559}
1560impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_license_usage::DescribeAppLicenseUsageError, R>>
1561    for Error
1562where
1563    R: Send + Sync + std::fmt::Debug + 'static,
1564{
1565    fn from(
1566        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_app_license_usage::DescribeAppLicenseUsageError, R>,
1567    ) -> Self {
1568        match err {
1569            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1570            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1571                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1572                source: err.into(),
1573            }),
1574        }
1575    }
1576}
1577impl From<crate::operation::describe_app_license_usage::DescribeAppLicenseUsageError> for Error {
1578    fn from(err: crate::operation::describe_app_license_usage::DescribeAppLicenseUsageError) -> Self {
1579        match err {
1580            crate::operation::describe_app_license_usage::DescribeAppLicenseUsageError::InvalidParameterCombinationException(inner) => {
1581                Error::InvalidParameterCombinationException(inner)
1582            }
1583            crate::operation::describe_app_license_usage::DescribeAppLicenseUsageError::OperationNotPermittedException(inner) => {
1584                Error::OperationNotPermittedException(inner)
1585            }
1586            crate::operation::describe_app_license_usage::DescribeAppLicenseUsageError::ResourceNotFoundException(inner) => {
1587                Error::ResourceNotFoundException(inner)
1588            }
1589            crate::operation::describe_app_license_usage::DescribeAppLicenseUsageError::Unhandled(inner) => Error::Unhandled(inner),
1590        }
1591    }
1592}
1593impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_directory_configs::DescribeDirectoryConfigsError, R>>
1594    for Error
1595where
1596    R: Send + Sync + std::fmt::Debug + 'static,
1597{
1598    fn from(
1599        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_directory_configs::DescribeDirectoryConfigsError, R>,
1600    ) -> Self {
1601        match err {
1602            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1603            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1604                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1605                source: err.into(),
1606            }),
1607        }
1608    }
1609}
1610impl From<crate::operation::describe_directory_configs::DescribeDirectoryConfigsError> for Error {
1611    fn from(err: crate::operation::describe_directory_configs::DescribeDirectoryConfigsError) -> Self {
1612        match err {
1613            crate::operation::describe_directory_configs::DescribeDirectoryConfigsError::ResourceNotFoundException(inner) => {
1614                Error::ResourceNotFoundException(inner)
1615            }
1616            crate::operation::describe_directory_configs::DescribeDirectoryConfigsError::Unhandled(inner) => Error::Unhandled(inner),
1617        }
1618    }
1619}
1620impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_entitlements::DescribeEntitlementsError, R>> for Error
1621where
1622    R: Send + Sync + std::fmt::Debug + 'static,
1623{
1624    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_entitlements::DescribeEntitlementsError, R>) -> Self {
1625        match err {
1626            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1627            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1628                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1629                source: err.into(),
1630            }),
1631        }
1632    }
1633}
1634impl From<crate::operation::describe_entitlements::DescribeEntitlementsError> for Error {
1635    fn from(err: crate::operation::describe_entitlements::DescribeEntitlementsError) -> Self {
1636        match err {
1637            crate::operation::describe_entitlements::DescribeEntitlementsError::EntitlementNotFoundException(inner) => {
1638                Error::EntitlementNotFoundException(inner)
1639            }
1640            crate::operation::describe_entitlements::DescribeEntitlementsError::OperationNotPermittedException(inner) => {
1641                Error::OperationNotPermittedException(inner)
1642            }
1643            crate::operation::describe_entitlements::DescribeEntitlementsError::ResourceNotFoundException(inner) => {
1644                Error::ResourceNotFoundException(inner)
1645            }
1646            crate::operation::describe_entitlements::DescribeEntitlementsError::Unhandled(inner) => Error::Unhandled(inner),
1647        }
1648    }
1649}
1650impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleets::DescribeFleetsError, R>> for Error
1651where
1652    R: Send + Sync + std::fmt::Debug + 'static,
1653{
1654    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_fleets::DescribeFleetsError, R>) -> Self {
1655        match err {
1656            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1657            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1658                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1659                source: err.into(),
1660            }),
1661        }
1662    }
1663}
1664impl From<crate::operation::describe_fleets::DescribeFleetsError> for Error {
1665    fn from(err: crate::operation::describe_fleets::DescribeFleetsError) -> Self {
1666        match err {
1667            crate::operation::describe_fleets::DescribeFleetsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1668            crate::operation::describe_fleets::DescribeFleetsError::Unhandled(inner) => Error::Unhandled(inner),
1669        }
1670    }
1671}
1672impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_builders::DescribeImageBuildersError, R>> for Error
1673where
1674    R: Send + Sync + std::fmt::Debug + 'static,
1675{
1676    fn from(
1677        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_builders::DescribeImageBuildersError, R>,
1678    ) -> Self {
1679        match err {
1680            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1681            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1682                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1683                source: err.into(),
1684            }),
1685        }
1686    }
1687}
1688impl From<crate::operation::describe_image_builders::DescribeImageBuildersError> for Error {
1689    fn from(err: crate::operation::describe_image_builders::DescribeImageBuildersError) -> Self {
1690        match err {
1691            crate::operation::describe_image_builders::DescribeImageBuildersError::ResourceNotFoundException(inner) => {
1692                Error::ResourceNotFoundException(inner)
1693            }
1694            crate::operation::describe_image_builders::DescribeImageBuildersError::Unhandled(inner) => Error::Unhandled(inner),
1695        }
1696    }
1697}
1698impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_permissions::DescribeImagePermissionsError, R>>
1699    for Error
1700where
1701    R: Send + Sync + std::fmt::Debug + 'static,
1702{
1703    fn from(
1704        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_image_permissions::DescribeImagePermissionsError, R>,
1705    ) -> Self {
1706        match err {
1707            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1708            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1709                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1710                source: err.into(),
1711            }),
1712        }
1713    }
1714}
1715impl From<crate::operation::describe_image_permissions::DescribeImagePermissionsError> for Error {
1716    fn from(err: crate::operation::describe_image_permissions::DescribeImagePermissionsError) -> Self {
1717        match err {
1718            crate::operation::describe_image_permissions::DescribeImagePermissionsError::ResourceNotFoundException(inner) => {
1719                Error::ResourceNotFoundException(inner)
1720            }
1721            crate::operation::describe_image_permissions::DescribeImagePermissionsError::Unhandled(inner) => Error::Unhandled(inner),
1722        }
1723    }
1724}
1725impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>> for Error
1726where
1727    R: Send + Sync + std::fmt::Debug + 'static,
1728{
1729    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_images::DescribeImagesError, R>) -> Self {
1730        match err {
1731            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1732            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1733                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1734                source: err.into(),
1735            }),
1736        }
1737    }
1738}
1739impl From<crate::operation::describe_images::DescribeImagesError> for Error {
1740    fn from(err: crate::operation::describe_images::DescribeImagesError) -> Self {
1741        match err {
1742            crate::operation::describe_images::DescribeImagesError::InvalidParameterCombinationException(inner) => {
1743                Error::InvalidParameterCombinationException(inner)
1744            }
1745            crate::operation::describe_images::DescribeImagesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1746            crate::operation::describe_images::DescribeImagesError::Unhandled(inner) => Error::Unhandled(inner),
1747        }
1748    }
1749}
1750impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_sessions::DescribeSessionsError, R>> for Error
1751where
1752    R: Send + Sync + std::fmt::Debug + 'static,
1753{
1754    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_sessions::DescribeSessionsError, R>) -> Self {
1755        match err {
1756            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1757            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1758                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1759                source: err.into(),
1760            }),
1761        }
1762    }
1763}
1764impl From<crate::operation::describe_sessions::DescribeSessionsError> for Error {
1765    fn from(err: crate::operation::describe_sessions::DescribeSessionsError) -> Self {
1766        match err {
1767            crate::operation::describe_sessions::DescribeSessionsError::InvalidParameterCombinationException(inner) => {
1768                Error::InvalidParameterCombinationException(inner)
1769            }
1770            crate::operation::describe_sessions::DescribeSessionsError::Unhandled(inner) => Error::Unhandled(inner),
1771        }
1772    }
1773}
1774impl<R>
1775    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_software_associations::DescribeSoftwareAssociationsError, R>>
1776    for Error
1777where
1778    R: Send + Sync + std::fmt::Debug + 'static,
1779{
1780    fn from(
1781        err: ::aws_smithy_runtime_api::client::result::SdkError<
1782            crate::operation::describe_software_associations::DescribeSoftwareAssociationsError,
1783            R,
1784        >,
1785    ) -> Self {
1786        match err {
1787            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1788            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1789                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1790                source: err.into(),
1791            }),
1792        }
1793    }
1794}
1795impl From<crate::operation::describe_software_associations::DescribeSoftwareAssociationsError> for Error {
1796    fn from(err: crate::operation::describe_software_associations::DescribeSoftwareAssociationsError) -> Self {
1797        match err {
1798            crate::operation::describe_software_associations::DescribeSoftwareAssociationsError::OperationNotPermittedException(inner) => {
1799                Error::OperationNotPermittedException(inner)
1800            }
1801            crate::operation::describe_software_associations::DescribeSoftwareAssociationsError::ResourceNotFoundException(inner) => {
1802                Error::ResourceNotFoundException(inner)
1803            }
1804            crate::operation::describe_software_associations::DescribeSoftwareAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1805        }
1806    }
1807}
1808impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stacks::DescribeStacksError, R>> for Error
1809where
1810    R: Send + Sync + std::fmt::Debug + 'static,
1811{
1812    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stacks::DescribeStacksError, R>) -> Self {
1813        match err {
1814            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1815            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1816                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1817                source: err.into(),
1818            }),
1819        }
1820    }
1821}
1822impl From<crate::operation::describe_stacks::DescribeStacksError> for Error {
1823    fn from(err: crate::operation::describe_stacks::DescribeStacksError) -> Self {
1824        match err {
1825            crate::operation::describe_stacks::DescribeStacksError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1826            crate::operation::describe_stacks::DescribeStacksError::Unhandled(inner) => Error::Unhandled(inner),
1827        }
1828    }
1829}
1830impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_theme_for_stack::DescribeThemeForStackError, R>> for Error
1831where
1832    R: Send + Sync + std::fmt::Debug + 'static,
1833{
1834    fn from(
1835        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_theme_for_stack::DescribeThemeForStackError, R>,
1836    ) -> Self {
1837        match err {
1838            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1839            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1840                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1841                source: err.into(),
1842            }),
1843        }
1844    }
1845}
1846impl From<crate::operation::describe_theme_for_stack::DescribeThemeForStackError> for Error {
1847    fn from(err: crate::operation::describe_theme_for_stack::DescribeThemeForStackError) -> Self {
1848        match err {
1849            crate::operation::describe_theme_for_stack::DescribeThemeForStackError::OperationNotPermittedException(inner) => {
1850                Error::OperationNotPermittedException(inner)
1851            }
1852            crate::operation::describe_theme_for_stack::DescribeThemeForStackError::ResourceNotFoundException(inner) => {
1853                Error::ResourceNotFoundException(inner)
1854            }
1855            crate::operation::describe_theme_for_stack::DescribeThemeForStackError::Unhandled(inner) => Error::Unhandled(inner),
1856        }
1857    }
1858}
1859impl<R>
1860    From<
1861        ::aws_smithy_runtime_api::client::result::SdkError<
1862            crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError,
1863            R,
1864        >,
1865    > for Error
1866where
1867    R: Send + Sync + std::fmt::Debug + 'static,
1868{
1869    fn from(
1870        err: ::aws_smithy_runtime_api::client::result::SdkError<
1871            crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError,
1872            R,
1873        >,
1874    ) -> Self {
1875        match err {
1876            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1877            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1878                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1879                source: err.into(),
1880            }),
1881        }
1882    }
1883}
1884impl From<crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError> for Error {
1885    fn from(err: crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError) -> Self {
1886        match err {
1887            crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError::InvalidAccountStatusException(inner) => {
1888                Error::InvalidAccountStatusException(inner)
1889            }
1890            crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError::ResourceNotFoundException(inner) => {
1891                Error::ResourceNotFoundException(inner)
1892            }
1893            crate::operation::describe_usage_report_subscriptions::DescribeUsageReportSubscriptionsError::Unhandled(inner) => Error::Unhandled(inner),
1894        }
1895    }
1896}
1897impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_users::DescribeUsersError, R>> for Error
1898where
1899    R: Send + Sync + std::fmt::Debug + 'static,
1900{
1901    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_users::DescribeUsersError, R>) -> Self {
1902        match err {
1903            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1904            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1905                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1906                source: err.into(),
1907            }),
1908        }
1909    }
1910}
1911impl From<crate::operation::describe_users::DescribeUsersError> for Error {
1912    fn from(err: crate::operation::describe_users::DescribeUsersError) -> Self {
1913        match err {
1914            crate::operation::describe_users::DescribeUsersError::InvalidParameterCombinationException(inner) => {
1915                Error::InvalidParameterCombinationException(inner)
1916            }
1917            crate::operation::describe_users::DescribeUsersError::OperationNotPermittedException(inner) => {
1918                Error::OperationNotPermittedException(inner)
1919            }
1920            crate::operation::describe_users::DescribeUsersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1921            crate::operation::describe_users::DescribeUsersError::Unhandled(inner) => Error::Unhandled(inner),
1922        }
1923    }
1924}
1925impl<R>
1926    From<
1927        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError, R>,
1928    > for Error
1929where
1930    R: Send + Sync + std::fmt::Debug + 'static,
1931{
1932    fn from(
1933        err: ::aws_smithy_runtime_api::client::result::SdkError<
1934            crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError,
1935            R,
1936        >,
1937    ) -> Self {
1938        match err {
1939            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1940            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1941                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1942                source: err.into(),
1943            }),
1944        }
1945    }
1946}
1947impl From<crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError> for Error {
1948    fn from(err: crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError) -> Self {
1949        match err {
1950            crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError::InvalidParameterCombinationException(inner) => {
1951                Error::InvalidParameterCombinationException(inner)
1952            }
1953            crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError::OperationNotPermittedException(inner) => {
1954                Error::OperationNotPermittedException(inner)
1955            }
1956            crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1957        }
1958    }
1959}
1960impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_user::DisableUserError, R>> for Error
1961where
1962    R: Send + Sync + std::fmt::Debug + 'static,
1963{
1964    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_user::DisableUserError, R>) -> Self {
1965        match err {
1966            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1967            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1968                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1969                source: err.into(),
1970            }),
1971        }
1972    }
1973}
1974impl From<crate::operation::disable_user::DisableUserError> for Error {
1975    fn from(err: crate::operation::disable_user::DisableUserError) -> Self {
1976        match err {
1977            crate::operation::disable_user::DisableUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1978            crate::operation::disable_user::DisableUserError::Unhandled(inner) => Error::Unhandled(inner),
1979        }
1980    }
1981}
1982impl<R>
1983    From<
1984        ::aws_smithy_runtime_api::client::result::SdkError<
1985            crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError,
1986            R,
1987        >,
1988    > for Error
1989where
1990    R: Send + Sync + std::fmt::Debug + 'static,
1991{
1992    fn from(
1993        err: ::aws_smithy_runtime_api::client::result::SdkError<
1994            crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError,
1995            R,
1996        >,
1997    ) -> Self {
1998        match err {
1999            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2000            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2001                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2002                source: err.into(),
2003            }),
2004        }
2005    }
2006}
2007impl From<crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError> for Error {
2008    fn from(err: crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError) -> Self {
2009        match err {
2010            crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2011            crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError::InvalidParameterCombinationException(inner) => Error::InvalidParameterCombinationException(inner),
2012            crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2013            crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2014            crate::operation::disassociate_app_block_builder_app_block::DisassociateAppBlockBuilderAppBlockError::Unhandled(inner) => Error::Unhandled(inner),
2015        }
2016    }
2017}
2018impl<R>
2019    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError, R>>
2020    for Error
2021where
2022    R: Send + Sync + std::fmt::Debug + 'static,
2023{
2024    fn from(
2025        err: ::aws_smithy_runtime_api::client::result::SdkError<
2026            crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError,
2027            R,
2028        >,
2029    ) -> Self {
2030        match err {
2031            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2032            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2033                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2034                source: err.into(),
2035            }),
2036        }
2037    }
2038}
2039impl From<crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError> for Error {
2040    fn from(err: crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError) -> Self {
2041        match err {
2042            crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError::ConcurrentModificationException(inner) => {
2043                Error::ConcurrentModificationException(inner)
2044            }
2045            crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError::InvalidParameterCombinationException(inner) => {
2046                Error::InvalidParameterCombinationException(inner)
2047            }
2048            crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError::OperationNotPermittedException(inner) => {
2049                Error::OperationNotPermittedException(inner)
2050            }
2051            crate::operation::disassociate_application_fleet::DisassociateApplicationFleetError::Unhandled(inner) => Error::Unhandled(inner),
2052        }
2053    }
2054}
2055impl<R>
2056    From<
2057        ::aws_smithy_runtime_api::client::result::SdkError<
2058            crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError,
2059            R,
2060        >,
2061    > for Error
2062where
2063    R: Send + Sync + std::fmt::Debug + 'static,
2064{
2065    fn from(
2066        err: ::aws_smithy_runtime_api::client::result::SdkError<
2067            crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError,
2068            R,
2069        >,
2070    ) -> Self {
2071        match err {
2072            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2073            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2074                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2075                source: err.into(),
2076            }),
2077        }
2078    }
2079}
2080impl From<crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError> for Error {
2081    fn from(err: crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError) -> Self {
2082        match err {
2083            crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError::EntitlementNotFoundException(inner) => Error::EntitlementNotFoundException(inner),
2084            crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2085            crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2086            crate::operation::disassociate_application_from_entitlement::DisassociateApplicationFromEntitlementError::Unhandled(inner) => Error::Unhandled(inner),
2087        }
2088    }
2089}
2090impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_fleet::DisassociateFleetError, R>> for Error
2091where
2092    R: Send + Sync + std::fmt::Debug + 'static,
2093{
2094    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_fleet::DisassociateFleetError, R>) -> Self {
2095        match err {
2096            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2097            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2098                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2099                source: err.into(),
2100            }),
2101        }
2102    }
2103}
2104impl From<crate::operation::disassociate_fleet::DisassociateFleetError> for Error {
2105    fn from(err: crate::operation::disassociate_fleet::DisassociateFleetError) -> Self {
2106        match err {
2107            crate::operation::disassociate_fleet::DisassociateFleetError::ConcurrentModificationException(inner) => {
2108                Error::ConcurrentModificationException(inner)
2109            }
2110            crate::operation::disassociate_fleet::DisassociateFleetError::OperationNotPermittedException(inner) => {
2111                Error::OperationNotPermittedException(inner)
2112            }
2113            crate::operation::disassociate_fleet::DisassociateFleetError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
2114            crate::operation::disassociate_fleet::DisassociateFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2115            crate::operation::disassociate_fleet::DisassociateFleetError::Unhandled(inner) => Error::Unhandled(inner),
2116        }
2117    }
2118}
2119impl<R>
2120    From<
2121        ::aws_smithy_runtime_api::client::result::SdkError<
2122            crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError,
2123            R,
2124        >,
2125    > for Error
2126where
2127    R: Send + Sync + std::fmt::Debug + 'static,
2128{
2129    fn from(
2130        err: ::aws_smithy_runtime_api::client::result::SdkError<
2131            crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError,
2132            R,
2133        >,
2134    ) -> Self {
2135        match err {
2136            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2137            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2138                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2139                source: err.into(),
2140            }),
2141        }
2142    }
2143}
2144impl From<crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError> for Error {
2145    fn from(err: crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError) -> Self {
2146        match err {
2147            crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2148            crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError::InvalidParameterCombinationException(inner) => Error::InvalidParameterCombinationException(inner),
2149            crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2150            crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2151            crate::operation::disassociate_software_from_image_builder::DisassociateSoftwareFromImageBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2152        }
2153    }
2154}
2155impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::drain_session_instance::DrainSessionInstanceError, R>> for Error
2156where
2157    R: Send + Sync + std::fmt::Debug + 'static,
2158{
2159    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::drain_session_instance::DrainSessionInstanceError, R>) -> Self {
2160        match err {
2161            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2162            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2163                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2164                source: err.into(),
2165            }),
2166        }
2167    }
2168}
2169impl From<crate::operation::drain_session_instance::DrainSessionInstanceError> for Error {
2170    fn from(err: crate::operation::drain_session_instance::DrainSessionInstanceError) -> Self {
2171        match err {
2172            crate::operation::drain_session_instance::DrainSessionInstanceError::ConcurrentModificationException(inner) => {
2173                Error::ConcurrentModificationException(inner)
2174            }
2175            crate::operation::drain_session_instance::DrainSessionInstanceError::OperationNotPermittedException(inner) => {
2176                Error::OperationNotPermittedException(inner)
2177            }
2178            crate::operation::drain_session_instance::DrainSessionInstanceError::ResourceNotFoundException(inner) => {
2179                Error::ResourceNotFoundException(inner)
2180            }
2181            crate::operation::drain_session_instance::DrainSessionInstanceError::Unhandled(inner) => Error::Unhandled(inner),
2182        }
2183    }
2184}
2185impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_user::EnableUserError, R>> for Error
2186where
2187    R: Send + Sync + std::fmt::Debug + 'static,
2188{
2189    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_user::EnableUserError, R>) -> Self {
2190        match err {
2191            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2192            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2193                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2194                source: err.into(),
2195            }),
2196        }
2197    }
2198}
2199impl From<crate::operation::enable_user::EnableUserError> for Error {
2200    fn from(err: crate::operation::enable_user::EnableUserError) -> Self {
2201        match err {
2202            crate::operation::enable_user::EnableUserError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
2203            crate::operation::enable_user::EnableUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2204            crate::operation::enable_user::EnableUserError::Unhandled(inner) => Error::Unhandled(inner),
2205        }
2206    }
2207}
2208impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::expire_session::ExpireSessionError, R>> for Error
2209where
2210    R: Send + Sync + std::fmt::Debug + 'static,
2211{
2212    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::expire_session::ExpireSessionError, R>) -> Self {
2213        match err {
2214            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2215            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2216                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2217                source: err.into(),
2218            }),
2219        }
2220    }
2221}
2222impl From<crate::operation::expire_session::ExpireSessionError> for Error {
2223    fn from(err: crate::operation::expire_session::ExpireSessionError) -> Self {
2224        match err {
2225            crate::operation::expire_session::ExpireSessionError::Unhandled(inner) => Error::Unhandled(inner),
2226        }
2227    }
2228}
2229impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_export_image_task::GetExportImageTaskError, R>> for Error
2230where
2231    R: Send + Sync + std::fmt::Debug + 'static,
2232{
2233    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_export_image_task::GetExportImageTaskError, R>) -> Self {
2234        match err {
2235            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2236            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2237                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2238                source: err.into(),
2239            }),
2240        }
2241    }
2242}
2243impl From<crate::operation::get_export_image_task::GetExportImageTaskError> for Error {
2244    fn from(err: crate::operation::get_export_image_task::GetExportImageTaskError) -> Self {
2245        match err {
2246            crate::operation::get_export_image_task::GetExportImageTaskError::OperationNotPermittedException(inner) => {
2247                Error::OperationNotPermittedException(inner)
2248            }
2249            crate::operation::get_export_image_task::GetExportImageTaskError::ResourceNotFoundException(inner) => {
2250                Error::ResourceNotFoundException(inner)
2251            }
2252            crate::operation::get_export_image_task::GetExportImageTaskError::Unhandled(inner) => Error::Unhandled(inner),
2253        }
2254    }
2255}
2256impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associated_fleets::ListAssociatedFleetsError, R>> for Error
2257where
2258    R: Send + Sync + std::fmt::Debug + 'static,
2259{
2260    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associated_fleets::ListAssociatedFleetsError, R>) -> Self {
2261        match err {
2262            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2263            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2264                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2265                source: err.into(),
2266            }),
2267        }
2268    }
2269}
2270impl From<crate::operation::list_associated_fleets::ListAssociatedFleetsError> for Error {
2271    fn from(err: crate::operation::list_associated_fleets::ListAssociatedFleetsError) -> Self {
2272        match err {
2273            crate::operation::list_associated_fleets::ListAssociatedFleetsError::Unhandled(inner) => Error::Unhandled(inner),
2274        }
2275    }
2276}
2277impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associated_stacks::ListAssociatedStacksError, R>> for Error
2278where
2279    R: Send + Sync + std::fmt::Debug + 'static,
2280{
2281    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_associated_stacks::ListAssociatedStacksError, R>) -> Self {
2282        match err {
2283            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2284            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2285                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2286                source: err.into(),
2287            }),
2288        }
2289    }
2290}
2291impl From<crate::operation::list_associated_stacks::ListAssociatedStacksError> for Error {
2292    fn from(err: crate::operation::list_associated_stacks::ListAssociatedStacksError) -> Self {
2293        match err {
2294            crate::operation::list_associated_stacks::ListAssociatedStacksError::Unhandled(inner) => Error::Unhandled(inner),
2295        }
2296    }
2297}
2298impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_entitled_applications::ListEntitledApplicationsError, R>>
2299    for Error
2300where
2301    R: Send + Sync + std::fmt::Debug + 'static,
2302{
2303    fn from(
2304        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_entitled_applications::ListEntitledApplicationsError, R>,
2305    ) -> Self {
2306        match err {
2307            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2308            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2309                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2310                source: err.into(),
2311            }),
2312        }
2313    }
2314}
2315impl From<crate::operation::list_entitled_applications::ListEntitledApplicationsError> for Error {
2316    fn from(err: crate::operation::list_entitled_applications::ListEntitledApplicationsError) -> Self {
2317        match err {
2318            crate::operation::list_entitled_applications::ListEntitledApplicationsError::EntitlementNotFoundException(inner) => {
2319                Error::EntitlementNotFoundException(inner)
2320            }
2321            crate::operation::list_entitled_applications::ListEntitledApplicationsError::OperationNotPermittedException(inner) => {
2322                Error::OperationNotPermittedException(inner)
2323            }
2324            crate::operation::list_entitled_applications::ListEntitledApplicationsError::ResourceNotFoundException(inner) => {
2325                Error::ResourceNotFoundException(inner)
2326            }
2327            crate::operation::list_entitled_applications::ListEntitledApplicationsError::Unhandled(inner) => Error::Unhandled(inner),
2328        }
2329    }
2330}
2331impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_export_image_tasks::ListExportImageTasksError, R>> for Error
2332where
2333    R: Send + Sync + std::fmt::Debug + 'static,
2334{
2335    fn from(
2336        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_export_image_tasks::ListExportImageTasksError, R>,
2337    ) -> Self {
2338        match err {
2339            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2340            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2341                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2342                source: err.into(),
2343            }),
2344        }
2345    }
2346}
2347impl From<crate::operation::list_export_image_tasks::ListExportImageTasksError> for Error {
2348    fn from(err: crate::operation::list_export_image_tasks::ListExportImageTasksError) -> Self {
2349        match err {
2350            crate::operation::list_export_image_tasks::ListExportImageTasksError::OperationNotPermittedException(inner) => {
2351                Error::OperationNotPermittedException(inner)
2352            }
2353            crate::operation::list_export_image_tasks::ListExportImageTasksError::Unhandled(inner) => Error::Unhandled(inner),
2354        }
2355    }
2356}
2357impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2358where
2359    R: Send + Sync + std::fmt::Debug + 'static,
2360{
2361    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2362        match err {
2363            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2364            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2365                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2366                source: err.into(),
2367            }),
2368        }
2369    }
2370}
2371impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2372    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2373        match err {
2374            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2375                Error::ResourceNotFoundException(inner)
2376            }
2377            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2378        }
2379    }
2380}
2381impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_app_block_builder::StartAppBlockBuilderError, R>> for Error
2382where
2383    R: Send + Sync + std::fmt::Debug + 'static,
2384{
2385    fn from(
2386        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_app_block_builder::StartAppBlockBuilderError, R>,
2387    ) -> Self {
2388        match err {
2389            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2390            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2391                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2392                source: err.into(),
2393            }),
2394        }
2395    }
2396}
2397impl From<crate::operation::start_app_block_builder::StartAppBlockBuilderError> for Error {
2398    fn from(err: crate::operation::start_app_block_builder::StartAppBlockBuilderError) -> Self {
2399        match err {
2400            crate::operation::start_app_block_builder::StartAppBlockBuilderError::ConcurrentModificationException(inner) => {
2401                Error::ConcurrentModificationException(inner)
2402            }
2403            crate::operation::start_app_block_builder::StartAppBlockBuilderError::InvalidAccountStatusException(inner) => {
2404                Error::InvalidAccountStatusException(inner)
2405            }
2406            crate::operation::start_app_block_builder::StartAppBlockBuilderError::LimitExceededException(inner) => {
2407                Error::LimitExceededException(inner)
2408            }
2409            crate::operation::start_app_block_builder::StartAppBlockBuilderError::OperationNotPermittedException(inner) => {
2410                Error::OperationNotPermittedException(inner)
2411            }
2412            crate::operation::start_app_block_builder::StartAppBlockBuilderError::RequestLimitExceededException(inner) => {
2413                Error::RequestLimitExceededException(inner)
2414            }
2415            crate::operation::start_app_block_builder::StartAppBlockBuilderError::ResourceNotAvailableException(inner) => {
2416                Error::ResourceNotAvailableException(inner)
2417            }
2418            crate::operation::start_app_block_builder::StartAppBlockBuilderError::ResourceNotFoundException(inner) => {
2419                Error::ResourceNotFoundException(inner)
2420            }
2421            crate::operation::start_app_block_builder::StartAppBlockBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2422        }
2423    }
2424}
2425impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_fleet::StartFleetError, R>> for Error
2426where
2427    R: Send + Sync + std::fmt::Debug + 'static,
2428{
2429    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_fleet::StartFleetError, R>) -> Self {
2430        match err {
2431            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2432            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2433                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2434                source: err.into(),
2435            }),
2436        }
2437    }
2438}
2439impl From<crate::operation::start_fleet::StartFleetError> for Error {
2440    fn from(err: crate::operation::start_fleet::StartFleetError) -> Self {
2441        match err {
2442            crate::operation::start_fleet::StartFleetError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2443            crate::operation::start_fleet::StartFleetError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
2444            crate::operation::start_fleet::StartFleetError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
2445            crate::operation::start_fleet::StartFleetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2446            crate::operation::start_fleet::StartFleetError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2447            crate::operation::start_fleet::StartFleetError::RequestLimitExceededException(inner) => Error::RequestLimitExceededException(inner),
2448            crate::operation::start_fleet::StartFleetError::ResourceNotAvailableException(inner) => Error::ResourceNotAvailableException(inner),
2449            crate::operation::start_fleet::StartFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2450            crate::operation::start_fleet::StartFleetError::Unhandled(inner) => Error::Unhandled(inner),
2451        }
2452    }
2453}
2454impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_image_builder::StartImageBuilderError, R>> for Error
2455where
2456    R: Send + Sync + std::fmt::Debug + 'static,
2457{
2458    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_image_builder::StartImageBuilderError, R>) -> Self {
2459        match err {
2460            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2461            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2462                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2463                source: err.into(),
2464            }),
2465        }
2466    }
2467}
2468impl From<crate::operation::start_image_builder::StartImageBuilderError> for Error {
2469    fn from(err: crate::operation::start_image_builder::StartImageBuilderError) -> Self {
2470        match err {
2471            crate::operation::start_image_builder::StartImageBuilderError::ConcurrentModificationException(inner) => {
2472                Error::ConcurrentModificationException(inner)
2473            }
2474            crate::operation::start_image_builder::StartImageBuilderError::IncompatibleImageException(inner) => {
2475                Error::IncompatibleImageException(inner)
2476            }
2477            crate::operation::start_image_builder::StartImageBuilderError::InvalidAccountStatusException(inner) => {
2478                Error::InvalidAccountStatusException(inner)
2479            }
2480            crate::operation::start_image_builder::StartImageBuilderError::ResourceNotAvailableException(inner) => {
2481                Error::ResourceNotAvailableException(inner)
2482            }
2483            crate::operation::start_image_builder::StartImageBuilderError::ResourceNotFoundException(inner) => {
2484                Error::ResourceNotFoundException(inner)
2485            }
2486            crate::operation::start_image_builder::StartImageBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2487        }
2488    }
2489}
2490impl<R>
2491    From<
2492        ::aws_smithy_runtime_api::client::result::SdkError<
2493            crate::operation::start_software_deployment_to_image_builder::StartSoftwareDeploymentToImageBuilderError,
2494            R,
2495        >,
2496    > for Error
2497where
2498    R: Send + Sync + std::fmt::Debug + 'static,
2499{
2500    fn from(
2501        err: ::aws_smithy_runtime_api::client::result::SdkError<
2502            crate::operation::start_software_deployment_to_image_builder::StartSoftwareDeploymentToImageBuilderError,
2503            R,
2504        >,
2505    ) -> Self {
2506        match err {
2507            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2508            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2509                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2510                source: err.into(),
2511            }),
2512        }
2513    }
2514}
2515impl From<crate::operation::start_software_deployment_to_image_builder::StartSoftwareDeploymentToImageBuilderError> for Error {
2516    fn from(err: crate::operation::start_software_deployment_to_image_builder::StartSoftwareDeploymentToImageBuilderError) -> Self {
2517        match err {
2518            crate::operation::start_software_deployment_to_image_builder::StartSoftwareDeploymentToImageBuilderError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2519            crate::operation::start_software_deployment_to_image_builder::StartSoftwareDeploymentToImageBuilderError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2520            crate::operation::start_software_deployment_to_image_builder::StartSoftwareDeploymentToImageBuilderError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2521            crate::operation::start_software_deployment_to_image_builder::StartSoftwareDeploymentToImageBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2522        }
2523    }
2524}
2525impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_app_block_builder::StopAppBlockBuilderError, R>> for Error
2526where
2527    R: Send + Sync + std::fmt::Debug + 'static,
2528{
2529    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_app_block_builder::StopAppBlockBuilderError, R>) -> Self {
2530        match err {
2531            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2532            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2533                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2534                source: err.into(),
2535            }),
2536        }
2537    }
2538}
2539impl From<crate::operation::stop_app_block_builder::StopAppBlockBuilderError> for Error {
2540    fn from(err: crate::operation::stop_app_block_builder::StopAppBlockBuilderError) -> Self {
2541        match err {
2542            crate::operation::stop_app_block_builder::StopAppBlockBuilderError::ConcurrentModificationException(inner) => {
2543                Error::ConcurrentModificationException(inner)
2544            }
2545            crate::operation::stop_app_block_builder::StopAppBlockBuilderError::OperationNotPermittedException(inner) => {
2546                Error::OperationNotPermittedException(inner)
2547            }
2548            crate::operation::stop_app_block_builder::StopAppBlockBuilderError::ResourceNotFoundException(inner) => {
2549                Error::ResourceNotFoundException(inner)
2550            }
2551            crate::operation::stop_app_block_builder::StopAppBlockBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2552        }
2553    }
2554}
2555impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_fleet::StopFleetError, R>> for Error
2556where
2557    R: Send + Sync + std::fmt::Debug + 'static,
2558{
2559    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_fleet::StopFleetError, R>) -> Self {
2560        match err {
2561            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2562            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2563                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2564                source: err.into(),
2565            }),
2566        }
2567    }
2568}
2569impl From<crate::operation::stop_fleet::StopFleetError> for Error {
2570    fn from(err: crate::operation::stop_fleet::StopFleetError) -> Self {
2571        match err {
2572            crate::operation::stop_fleet::StopFleetError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2573            crate::operation::stop_fleet::StopFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2574            crate::operation::stop_fleet::StopFleetError::Unhandled(inner) => Error::Unhandled(inner),
2575        }
2576    }
2577}
2578impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_image_builder::StopImageBuilderError, R>> for Error
2579where
2580    R: Send + Sync + std::fmt::Debug + 'static,
2581{
2582    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_image_builder::StopImageBuilderError, R>) -> Self {
2583        match err {
2584            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2585            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2586                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2587                source: err.into(),
2588            }),
2589        }
2590    }
2591}
2592impl From<crate::operation::stop_image_builder::StopImageBuilderError> for Error {
2593    fn from(err: crate::operation::stop_image_builder::StopImageBuilderError) -> Self {
2594        match err {
2595            crate::operation::stop_image_builder::StopImageBuilderError::ConcurrentModificationException(inner) => {
2596                Error::ConcurrentModificationException(inner)
2597            }
2598            crate::operation::stop_image_builder::StopImageBuilderError::OperationNotPermittedException(inner) => {
2599                Error::OperationNotPermittedException(inner)
2600            }
2601            crate::operation::stop_image_builder::StopImageBuilderError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2602            crate::operation::stop_image_builder::StopImageBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2603        }
2604    }
2605}
2606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2607where
2608    R: Send + Sync + std::fmt::Debug + 'static,
2609{
2610    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2611        match err {
2612            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2613            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2614                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2615                source: err.into(),
2616            }),
2617        }
2618    }
2619}
2620impl From<crate::operation::tag_resource::TagResourceError> for Error {
2621    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2622        match err {
2623            crate::operation::tag_resource::TagResourceError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
2624            crate::operation::tag_resource::TagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2625            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2626            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2627        }
2628    }
2629}
2630impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2631where
2632    R: Send + Sync + std::fmt::Debug + 'static,
2633{
2634    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2635        match err {
2636            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2637            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2638                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2639                source: err.into(),
2640            }),
2641        }
2642    }
2643}
2644impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2645    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2646        match err {
2647            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2648            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2649        }
2650    }
2651}
2652impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_block_builder::UpdateAppBlockBuilderError, R>> for Error
2653where
2654    R: Send + Sync + std::fmt::Debug + 'static,
2655{
2656    fn from(
2657        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_block_builder::UpdateAppBlockBuilderError, R>,
2658    ) -> Self {
2659        match err {
2660            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2661            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2662                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2663                source: err.into(),
2664            }),
2665        }
2666    }
2667}
2668impl From<crate::operation::update_app_block_builder::UpdateAppBlockBuilderError> for Error {
2669    fn from(err: crate::operation::update_app_block_builder::UpdateAppBlockBuilderError) -> Self {
2670        match err {
2671            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::ConcurrentModificationException(inner) => {
2672                Error::ConcurrentModificationException(inner)
2673            }
2674            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::InvalidAccountStatusException(inner) => {
2675                Error::InvalidAccountStatusException(inner)
2676            }
2677            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::InvalidParameterCombinationException(inner) => {
2678                Error::InvalidParameterCombinationException(inner)
2679            }
2680            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
2681            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::LimitExceededException(inner) => {
2682                Error::LimitExceededException(inner)
2683            }
2684            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::OperationNotPermittedException(inner) => {
2685                Error::OperationNotPermittedException(inner)
2686            }
2687            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::RequestLimitExceededException(inner) => {
2688                Error::RequestLimitExceededException(inner)
2689            }
2690            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::ResourceInUseException(inner) => {
2691                Error::ResourceInUseException(inner)
2692            }
2693            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::ResourceNotAvailableException(inner) => {
2694                Error::ResourceNotAvailableException(inner)
2695            }
2696            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::ResourceNotFoundException(inner) => {
2697                Error::ResourceNotFoundException(inner)
2698            }
2699            crate::operation::update_app_block_builder::UpdateAppBlockBuilderError::Unhandled(inner) => Error::Unhandled(inner),
2700        }
2701    }
2702}
2703impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application::UpdateApplicationError, R>> for Error
2704where
2705    R: Send + Sync + std::fmt::Debug + 'static,
2706{
2707    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application::UpdateApplicationError, R>) -> Self {
2708        match err {
2709            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2710            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2711                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2712                source: err.into(),
2713            }),
2714        }
2715    }
2716}
2717impl From<crate::operation::update_application::UpdateApplicationError> for Error {
2718    fn from(err: crate::operation::update_application::UpdateApplicationError) -> Self {
2719        match err {
2720            crate::operation::update_application::UpdateApplicationError::ConcurrentModificationException(inner) => {
2721                Error::ConcurrentModificationException(inner)
2722            }
2723            crate::operation::update_application::UpdateApplicationError::OperationNotPermittedException(inner) => {
2724                Error::OperationNotPermittedException(inner)
2725            }
2726            crate::operation::update_application::UpdateApplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2727            crate::operation::update_application::UpdateApplicationError::Unhandled(inner) => Error::Unhandled(inner),
2728        }
2729    }
2730}
2731impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_directory_config::UpdateDirectoryConfigError, R>> for Error
2732where
2733    R: Send + Sync + std::fmt::Debug + 'static,
2734{
2735    fn from(
2736        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_directory_config::UpdateDirectoryConfigError, R>,
2737    ) -> Self {
2738        match err {
2739            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2740            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2741                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2742                source: err.into(),
2743            }),
2744        }
2745    }
2746}
2747impl From<crate::operation::update_directory_config::UpdateDirectoryConfigError> for Error {
2748    fn from(err: crate::operation::update_directory_config::UpdateDirectoryConfigError) -> Self {
2749        match err {
2750            crate::operation::update_directory_config::UpdateDirectoryConfigError::ConcurrentModificationException(inner) => {
2751                Error::ConcurrentModificationException(inner)
2752            }
2753            crate::operation::update_directory_config::UpdateDirectoryConfigError::IncompatibleImageException(inner) => {
2754                Error::IncompatibleImageException(inner)
2755            }
2756            crate::operation::update_directory_config::UpdateDirectoryConfigError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
2757            crate::operation::update_directory_config::UpdateDirectoryConfigError::OperationNotPermittedException(inner) => {
2758                Error::OperationNotPermittedException(inner)
2759            }
2760            crate::operation::update_directory_config::UpdateDirectoryConfigError::ResourceInUseException(inner) => {
2761                Error::ResourceInUseException(inner)
2762            }
2763            crate::operation::update_directory_config::UpdateDirectoryConfigError::ResourceNotFoundException(inner) => {
2764                Error::ResourceNotFoundException(inner)
2765            }
2766            crate::operation::update_directory_config::UpdateDirectoryConfigError::Unhandled(inner) => Error::Unhandled(inner),
2767        }
2768    }
2769}
2770impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_entitlement::UpdateEntitlementError, R>> for Error
2771where
2772    R: Send + Sync + std::fmt::Debug + 'static,
2773{
2774    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_entitlement::UpdateEntitlementError, R>) -> Self {
2775        match err {
2776            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2777            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2778                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2779                source: err.into(),
2780            }),
2781        }
2782    }
2783}
2784impl From<crate::operation::update_entitlement::UpdateEntitlementError> for Error {
2785    fn from(err: crate::operation::update_entitlement::UpdateEntitlementError) -> Self {
2786        match err {
2787            crate::operation::update_entitlement::UpdateEntitlementError::ConcurrentModificationException(inner) => {
2788                Error::ConcurrentModificationException(inner)
2789            }
2790            crate::operation::update_entitlement::UpdateEntitlementError::EntitlementNotFoundException(inner) => {
2791                Error::EntitlementNotFoundException(inner)
2792            }
2793            crate::operation::update_entitlement::UpdateEntitlementError::OperationNotPermittedException(inner) => {
2794                Error::OperationNotPermittedException(inner)
2795            }
2796            crate::operation::update_entitlement::UpdateEntitlementError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2797            crate::operation::update_entitlement::UpdateEntitlementError::Unhandled(inner) => Error::Unhandled(inner),
2798        }
2799    }
2800}
2801impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fleet::UpdateFleetError, R>> for Error
2802where
2803    R: Send + Sync + std::fmt::Debug + 'static,
2804{
2805    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_fleet::UpdateFleetError, R>) -> Self {
2806        match err {
2807            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2808            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2809                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2810                source: err.into(),
2811            }),
2812        }
2813    }
2814}
2815impl From<crate::operation::update_fleet::UpdateFleetError> for Error {
2816    fn from(err: crate::operation::update_fleet::UpdateFleetError) -> Self {
2817        match err {
2818            crate::operation::update_fleet::UpdateFleetError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2819            crate::operation::update_fleet::UpdateFleetError::IncompatibleImageException(inner) => Error::IncompatibleImageException(inner),
2820            crate::operation::update_fleet::UpdateFleetError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
2821            crate::operation::update_fleet::UpdateFleetError::InvalidParameterCombinationException(inner) => {
2822                Error::InvalidParameterCombinationException(inner)
2823            }
2824            crate::operation::update_fleet::UpdateFleetError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
2825            crate::operation::update_fleet::UpdateFleetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2826            crate::operation::update_fleet::UpdateFleetError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2827            crate::operation::update_fleet::UpdateFleetError::RequestLimitExceededException(inner) => Error::RequestLimitExceededException(inner),
2828            crate::operation::update_fleet::UpdateFleetError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
2829            crate::operation::update_fleet::UpdateFleetError::ResourceNotAvailableException(inner) => Error::ResourceNotAvailableException(inner),
2830            crate::operation::update_fleet::UpdateFleetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2831            crate::operation::update_fleet::UpdateFleetError::Unhandled(inner) => Error::Unhandled(inner),
2832        }
2833    }
2834}
2835impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image_permissions::UpdateImagePermissionsError, R>> for Error
2836where
2837    R: Send + Sync + std::fmt::Debug + 'static,
2838{
2839    fn from(
2840        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_image_permissions::UpdateImagePermissionsError, R>,
2841    ) -> Self {
2842        match err {
2843            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2844            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2845                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2846                source: err.into(),
2847            }),
2848        }
2849    }
2850}
2851impl From<crate::operation::update_image_permissions::UpdateImagePermissionsError> for Error {
2852    fn from(err: crate::operation::update_image_permissions::UpdateImagePermissionsError) -> Self {
2853        match err {
2854            crate::operation::update_image_permissions::UpdateImagePermissionsError::LimitExceededException(inner) => {
2855                Error::LimitExceededException(inner)
2856            }
2857            crate::operation::update_image_permissions::UpdateImagePermissionsError::ResourceNotAvailableException(inner) => {
2858                Error::ResourceNotAvailableException(inner)
2859            }
2860            crate::operation::update_image_permissions::UpdateImagePermissionsError::ResourceNotFoundException(inner) => {
2861                Error::ResourceNotFoundException(inner)
2862            }
2863            crate::operation::update_image_permissions::UpdateImagePermissionsError::Unhandled(inner) => Error::Unhandled(inner),
2864        }
2865    }
2866}
2867impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack::UpdateStackError, R>> for Error
2868where
2869    R: Send + Sync + std::fmt::Debug + 'static,
2870{
2871    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stack::UpdateStackError, R>) -> Self {
2872        match err {
2873            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2874            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2875                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2876                source: err.into(),
2877            }),
2878        }
2879    }
2880}
2881impl From<crate::operation::update_stack::UpdateStackError> for Error {
2882    fn from(err: crate::operation::update_stack::UpdateStackError) -> Self {
2883        match err {
2884            crate::operation::update_stack::UpdateStackError::ConcurrentModificationException(inner) => Error::ConcurrentModificationException(inner),
2885            crate::operation::update_stack::UpdateStackError::IncompatibleImageException(inner) => Error::IncompatibleImageException(inner),
2886            crate::operation::update_stack::UpdateStackError::InvalidAccountStatusException(inner) => Error::InvalidAccountStatusException(inner),
2887            crate::operation::update_stack::UpdateStackError::InvalidParameterCombinationException(inner) => {
2888                Error::InvalidParameterCombinationException(inner)
2889            }
2890            crate::operation::update_stack::UpdateStackError::InvalidRoleException(inner) => Error::InvalidRoleException(inner),
2891            crate::operation::update_stack::UpdateStackError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2892            crate::operation::update_stack::UpdateStackError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
2893            crate::operation::update_stack::UpdateStackError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
2894            crate::operation::update_stack::UpdateStackError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2895            crate::operation::update_stack::UpdateStackError::Unhandled(inner) => Error::Unhandled(inner),
2896        }
2897    }
2898}
2899impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_theme_for_stack::UpdateThemeForStackError, R>> for Error
2900where
2901    R: Send + Sync + std::fmt::Debug + 'static,
2902{
2903    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_theme_for_stack::UpdateThemeForStackError, R>) -> Self {
2904        match err {
2905            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2906            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2907                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2908                source: err.into(),
2909            }),
2910        }
2911    }
2912}
2913impl From<crate::operation::update_theme_for_stack::UpdateThemeForStackError> for Error {
2914    fn from(err: crate::operation::update_theme_for_stack::UpdateThemeForStackError) -> Self {
2915        match err {
2916            crate::operation::update_theme_for_stack::UpdateThemeForStackError::ConcurrentModificationException(inner) => {
2917                Error::ConcurrentModificationException(inner)
2918            }
2919            crate::operation::update_theme_for_stack::UpdateThemeForStackError::InvalidAccountStatusException(inner) => {
2920                Error::InvalidAccountStatusException(inner)
2921            }
2922            crate::operation::update_theme_for_stack::UpdateThemeForStackError::InvalidParameterCombinationException(inner) => {
2923                Error::InvalidParameterCombinationException(inner)
2924            }
2925            crate::operation::update_theme_for_stack::UpdateThemeForStackError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2926            crate::operation::update_theme_for_stack::UpdateThemeForStackError::OperationNotPermittedException(inner) => {
2927                Error::OperationNotPermittedException(inner)
2928            }
2929            crate::operation::update_theme_for_stack::UpdateThemeForStackError::ResourceNotFoundException(inner) => {
2930                Error::ResourceNotFoundException(inner)
2931            }
2932            crate::operation::update_theme_for_stack::UpdateThemeForStackError::Unhandled(inner) => Error::Unhandled(inner),
2933        }
2934    }
2935}
2936impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
2937where
2938    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
2939    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
2940{
2941    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
2942        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2943            meta: ::std::default::Default::default(),
2944            source: err.into(),
2945        })
2946    }
2947}
2948impl ::std::error::Error for Error {
2949    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2950        match self {
2951            Error::ConcurrentModificationException(inner) => inner.source(),
2952            Error::DryRunOperationException(inner) => inner.source(),
2953            Error::EntitlementAlreadyExistsException(inner) => inner.source(),
2954            Error::EntitlementNotFoundException(inner) => inner.source(),
2955            Error::IncompatibleImageException(inner) => inner.source(),
2956            Error::InvalidAccountStatusException(inner) => inner.source(),
2957            Error::InvalidParameterCombinationException(inner) => inner.source(),
2958            Error::InvalidRoleException(inner) => inner.source(),
2959            Error::LimitExceededException(inner) => inner.source(),
2960            Error::OperationNotPermittedException(inner) => inner.source(),
2961            Error::RequestLimitExceededException(inner) => inner.source(),
2962            Error::ResourceAlreadyExistsException(inner) => inner.source(),
2963            Error::ResourceInUseException(inner) => inner.source(),
2964            Error::ResourceNotAvailableException(inner) => inner.source(),
2965            Error::ResourceNotFoundException(inner) => inner.source(),
2966            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2967        }
2968    }
2969}
2970impl ::aws_types::request_id::RequestId for Error {
2971    fn request_id(&self) -> Option<&str> {
2972        match self {
2973            Self::ConcurrentModificationException(e) => e.request_id(),
2974            Self::DryRunOperationException(e) => e.request_id(),
2975            Self::EntitlementAlreadyExistsException(e) => e.request_id(),
2976            Self::EntitlementNotFoundException(e) => e.request_id(),
2977            Self::IncompatibleImageException(e) => e.request_id(),
2978            Self::InvalidAccountStatusException(e) => e.request_id(),
2979            Self::InvalidParameterCombinationException(e) => e.request_id(),
2980            Self::InvalidRoleException(e) => e.request_id(),
2981            Self::LimitExceededException(e) => e.request_id(),
2982            Self::OperationNotPermittedException(e) => e.request_id(),
2983            Self::RequestLimitExceededException(e) => e.request_id(),
2984            Self::ResourceAlreadyExistsException(e) => e.request_id(),
2985            Self::ResourceInUseException(e) => e.request_id(),
2986            Self::ResourceNotAvailableException(e) => e.request_id(),
2987            Self::ResourceNotFoundException(e) => e.request_id(),
2988            Self::Unhandled(e) => e.meta.request_id(),
2989        }
2990    }
2991}