aws_sdk_devicefarm/
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 invalid argument was specified.</p>
7    ArgumentException(crate::types::error::ArgumentException),
8    /// <p>The requested object could not be deleted.</p>
9    CannotDeleteException(crate::types::error::CannotDeleteException),
10    /// <p>An entity with the same name already exists.</p>
11    IdempotencyException(crate::types::error::IdempotencyException),
12    /// <p>An internal exception was raised in the service. Contact <a href="mailto:aws-devicefarm-support@amazon.com">aws-devicefarm-support@amazon.com</a> if you see this error.</p>
13    InternalServiceException(crate::types::error::InternalServiceException),
14    /// <p>There was an error with the update request, or you do not have sufficient permissions to update this VPC endpoint configuration.</p>
15    InvalidOperationException(crate::types::error::InvalidOperationException),
16    /// <p>A limit was exceeded.</p>
17    LimitExceededException(crate::types::error::LimitExceededException),
18    /// <p>Exception gets thrown when a user is not eligible to perform the specified transaction.</p>
19    NotEligibleException(crate::types::error::NotEligibleException),
20    /// <p>The specified entity was not found.</p>
21    NotFoundException(crate::types::error::NotFoundException),
22    /// <p>There was a problem with the service account.</p>
23    ServiceAccountException(crate::types::error::ServiceAccountException),
24    /// <p>The operation was not successful. Try again.</p>
25    TagOperationException(crate::types::error::TagOperationException),
26    /// <p>The request doesn't comply with the AWS Identity and Access Management (IAM) tag policy. Correct your request and then retry it.</p>
27    TagPolicyException(crate::types::error::TagPolicyException),
28    /// <p>The list of tags on the repository is over the limit. The maximum number of tags that can be applied to a repository is 50.</p>
29    TooManyTagsException(crate::types::error::TooManyTagsException),
30    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
31    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
32    variable wildcard pattern and check `.code()`:
33     \
34    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
35     \
36    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
37    Unhandled(crate::error::sealed_unhandled::Unhandled),
38}
39impl ::std::fmt::Display for Error {
40    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
41        match self {
42            Error::ArgumentException(inner) => inner.fmt(f),
43            Error::CannotDeleteException(inner) => inner.fmt(f),
44            Error::IdempotencyException(inner) => inner.fmt(f),
45            Error::InternalServiceException(inner) => inner.fmt(f),
46            Error::InvalidOperationException(inner) => inner.fmt(f),
47            Error::LimitExceededException(inner) => inner.fmt(f),
48            Error::NotEligibleException(inner) => inner.fmt(f),
49            Error::NotFoundException(inner) => inner.fmt(f),
50            Error::ServiceAccountException(inner) => inner.fmt(f),
51            Error::TagOperationException(inner) => inner.fmt(f),
52            Error::TagPolicyException(inner) => inner.fmt(f),
53            Error::TooManyTagsException(inner) => inner.fmt(f),
54            Error::Unhandled(_) => {
55                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
56                    write!(f, "unhandled error ({code})")
57                } else {
58                    f.write_str("unhandled error")
59                }
60            }
61        }
62    }
63}
64impl From<::aws_smithy_types::error::operation::BuildError> for Error {
65    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
66        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
67            source: value.into(),
68            meta: ::std::default::Default::default(),
69        })
70    }
71}
72impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
73    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
74        match self {
75            Self::ArgumentException(inner) => inner.meta(),
76            Self::CannotDeleteException(inner) => inner.meta(),
77            Self::IdempotencyException(inner) => inner.meta(),
78            Self::InternalServiceException(inner) => inner.meta(),
79            Self::InvalidOperationException(inner) => inner.meta(),
80            Self::LimitExceededException(inner) => inner.meta(),
81            Self::NotEligibleException(inner) => inner.meta(),
82            Self::NotFoundException(inner) => inner.meta(),
83            Self::ServiceAccountException(inner) => inner.meta(),
84            Self::TagOperationException(inner) => inner.meta(),
85            Self::TagPolicyException(inner) => inner.meta(),
86            Self::TooManyTagsException(inner) => inner.meta(),
87            Self::Unhandled(inner) => &inner.meta,
88        }
89    }
90}
91impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_device_pool::CreateDevicePoolError, R>> for Error
92where
93    R: Send + Sync + std::fmt::Debug + 'static,
94{
95    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_device_pool::CreateDevicePoolError, R>) -> Self {
96        match err {
97            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
98            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
99                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
100                source: err.into(),
101            }),
102        }
103    }
104}
105impl From<crate::operation::create_device_pool::CreateDevicePoolError> for Error {
106    fn from(err: crate::operation::create_device_pool::CreateDevicePoolError) -> Self {
107        match err {
108            crate::operation::create_device_pool::CreateDevicePoolError::ArgumentException(inner) => Error::ArgumentException(inner),
109            crate::operation::create_device_pool::CreateDevicePoolError::LimitExceededException(inner) => Error::LimitExceededException(inner),
110            crate::operation::create_device_pool::CreateDevicePoolError::NotFoundException(inner) => Error::NotFoundException(inner),
111            crate::operation::create_device_pool::CreateDevicePoolError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
112            crate::operation::create_device_pool::CreateDevicePoolError::Unhandled(inner) => Error::Unhandled(inner),
113        }
114    }
115}
116impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_profile::CreateInstanceProfileError, R>> for Error
117where
118    R: Send + Sync + std::fmt::Debug + 'static,
119{
120    fn from(
121        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_instance_profile::CreateInstanceProfileError, R>,
122    ) -> Self {
123        match err {
124            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
125            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
126                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
127                source: err.into(),
128            }),
129        }
130    }
131}
132impl From<crate::operation::create_instance_profile::CreateInstanceProfileError> for Error {
133    fn from(err: crate::operation::create_instance_profile::CreateInstanceProfileError) -> Self {
134        match err {
135            crate::operation::create_instance_profile::CreateInstanceProfileError::ArgumentException(inner) => Error::ArgumentException(inner),
136            crate::operation::create_instance_profile::CreateInstanceProfileError::LimitExceededException(inner) => {
137                Error::LimitExceededException(inner)
138            }
139            crate::operation::create_instance_profile::CreateInstanceProfileError::NotFoundException(inner) => Error::NotFoundException(inner),
140            crate::operation::create_instance_profile::CreateInstanceProfileError::ServiceAccountException(inner) => {
141                Error::ServiceAccountException(inner)
142            }
143            crate::operation::create_instance_profile::CreateInstanceProfileError::Unhandled(inner) => Error::Unhandled(inner),
144        }
145    }
146}
147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_profile::CreateNetworkProfileError, R>> for Error
148where
149    R: Send + Sync + std::fmt::Debug + 'static,
150{
151    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_network_profile::CreateNetworkProfileError, R>) -> Self {
152        match err {
153            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
154            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
155                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
156                source: err.into(),
157            }),
158        }
159    }
160}
161impl From<crate::operation::create_network_profile::CreateNetworkProfileError> for Error {
162    fn from(err: crate::operation::create_network_profile::CreateNetworkProfileError) -> Self {
163        match err {
164            crate::operation::create_network_profile::CreateNetworkProfileError::ArgumentException(inner) => Error::ArgumentException(inner),
165            crate::operation::create_network_profile::CreateNetworkProfileError::LimitExceededException(inner) => {
166                Error::LimitExceededException(inner)
167            }
168            crate::operation::create_network_profile::CreateNetworkProfileError::NotFoundException(inner) => Error::NotFoundException(inner),
169            crate::operation::create_network_profile::CreateNetworkProfileError::ServiceAccountException(inner) => {
170                Error::ServiceAccountException(inner)
171            }
172            crate::operation::create_network_profile::CreateNetworkProfileError::Unhandled(inner) => Error::Unhandled(inner),
173        }
174    }
175}
176impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>> for Error
177where
178    R: Send + Sync + std::fmt::Debug + 'static,
179{
180    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>) -> Self {
181        match err {
182            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
183            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
184                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
185                source: err.into(),
186            }),
187        }
188    }
189}
190impl From<crate::operation::create_project::CreateProjectError> for Error {
191    fn from(err: crate::operation::create_project::CreateProjectError) -> Self {
192        match err {
193            crate::operation::create_project::CreateProjectError::ArgumentException(inner) => Error::ArgumentException(inner),
194            crate::operation::create_project::CreateProjectError::LimitExceededException(inner) => Error::LimitExceededException(inner),
195            crate::operation::create_project::CreateProjectError::NotFoundException(inner) => Error::NotFoundException(inner),
196            crate::operation::create_project::CreateProjectError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
197            crate::operation::create_project::CreateProjectError::TagOperationException(inner) => Error::TagOperationException(inner),
198            crate::operation::create_project::CreateProjectError::Unhandled(inner) => Error::Unhandled(inner),
199        }
200    }
201}
202impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_remote_access_session::CreateRemoteAccessSessionError, R>>
203    for Error
204where
205    R: Send + Sync + std::fmt::Debug + 'static,
206{
207    fn from(
208        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_remote_access_session::CreateRemoteAccessSessionError, R>,
209    ) -> Self {
210        match err {
211            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
212            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
213                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
214                source: err.into(),
215            }),
216        }
217    }
218}
219impl From<crate::operation::create_remote_access_session::CreateRemoteAccessSessionError> for Error {
220    fn from(err: crate::operation::create_remote_access_session::CreateRemoteAccessSessionError) -> Self {
221        match err {
222            crate::operation::create_remote_access_session::CreateRemoteAccessSessionError::ArgumentException(inner) => {
223                Error::ArgumentException(inner)
224            }
225            crate::operation::create_remote_access_session::CreateRemoteAccessSessionError::LimitExceededException(inner) => {
226                Error::LimitExceededException(inner)
227            }
228            crate::operation::create_remote_access_session::CreateRemoteAccessSessionError::NotFoundException(inner) => {
229                Error::NotFoundException(inner)
230            }
231            crate::operation::create_remote_access_session::CreateRemoteAccessSessionError::ServiceAccountException(inner) => {
232                Error::ServiceAccountException(inner)
233            }
234            crate::operation::create_remote_access_session::CreateRemoteAccessSessionError::Unhandled(inner) => Error::Unhandled(inner),
235        }
236    }
237}
238impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_test_grid_project::CreateTestGridProjectError, R>> for Error
239where
240    R: Send + Sync + std::fmt::Debug + 'static,
241{
242    fn from(
243        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_test_grid_project::CreateTestGridProjectError, R>,
244    ) -> Self {
245        match err {
246            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
247            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
248                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
249                source: err.into(),
250            }),
251        }
252    }
253}
254impl From<crate::operation::create_test_grid_project::CreateTestGridProjectError> for Error {
255    fn from(err: crate::operation::create_test_grid_project::CreateTestGridProjectError) -> Self {
256        match err {
257            crate::operation::create_test_grid_project::CreateTestGridProjectError::ArgumentException(inner) => Error::ArgumentException(inner),
258            crate::operation::create_test_grid_project::CreateTestGridProjectError::InternalServiceException(inner) => {
259                Error::InternalServiceException(inner)
260            }
261            crate::operation::create_test_grid_project::CreateTestGridProjectError::LimitExceededException(inner) => {
262                Error::LimitExceededException(inner)
263            }
264            crate::operation::create_test_grid_project::CreateTestGridProjectError::Unhandled(inner) => Error::Unhandled(inner),
265        }
266    }
267}
268impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_test_grid_url::CreateTestGridUrlError, R>> for Error
269where
270    R: Send + Sync + std::fmt::Debug + 'static,
271{
272    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_test_grid_url::CreateTestGridUrlError, R>) -> Self {
273        match err {
274            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
275            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
276                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
277                source: err.into(),
278            }),
279        }
280    }
281}
282impl From<crate::operation::create_test_grid_url::CreateTestGridUrlError> for Error {
283    fn from(err: crate::operation::create_test_grid_url::CreateTestGridUrlError) -> Self {
284        match err {
285            crate::operation::create_test_grid_url::CreateTestGridUrlError::ArgumentException(inner) => Error::ArgumentException(inner),
286            crate::operation::create_test_grid_url::CreateTestGridUrlError::InternalServiceException(inner) => Error::InternalServiceException(inner),
287            crate::operation::create_test_grid_url::CreateTestGridUrlError::NotFoundException(inner) => Error::NotFoundException(inner),
288            crate::operation::create_test_grid_url::CreateTestGridUrlError::Unhandled(inner) => Error::Unhandled(inner),
289        }
290    }
291}
292impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_upload::CreateUploadError, R>> for Error
293where
294    R: Send + Sync + std::fmt::Debug + 'static,
295{
296    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_upload::CreateUploadError, R>) -> Self {
297        match err {
298            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
299            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
300                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
301                source: err.into(),
302            }),
303        }
304    }
305}
306impl From<crate::operation::create_upload::CreateUploadError> for Error {
307    fn from(err: crate::operation::create_upload::CreateUploadError) -> Self {
308        match err {
309            crate::operation::create_upload::CreateUploadError::ArgumentException(inner) => Error::ArgumentException(inner),
310            crate::operation::create_upload::CreateUploadError::LimitExceededException(inner) => Error::LimitExceededException(inner),
311            crate::operation::create_upload::CreateUploadError::NotFoundException(inner) => Error::NotFoundException(inner),
312            crate::operation::create_upload::CreateUploadError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
313            crate::operation::create_upload::CreateUploadError::Unhandled(inner) => Error::Unhandled(inner),
314        }
315    }
316}
317impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpce_configuration::CreateVPCEConfigurationError, 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::create_vpce_configuration::CreateVPCEConfigurationError, 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::create_vpce_configuration::CreateVPCEConfigurationError> for Error {
335    fn from(err: crate::operation::create_vpce_configuration::CreateVPCEConfigurationError) -> Self {
336        match err {
337            crate::operation::create_vpce_configuration::CreateVPCEConfigurationError::ArgumentException(inner) => Error::ArgumentException(inner),
338            crate::operation::create_vpce_configuration::CreateVPCEConfigurationError::LimitExceededException(inner) => {
339                Error::LimitExceededException(inner)
340            }
341            crate::operation::create_vpce_configuration::CreateVPCEConfigurationError::ServiceAccountException(inner) => {
342                Error::ServiceAccountException(inner)
343            }
344            crate::operation::create_vpce_configuration::CreateVPCEConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
345        }
346    }
347}
348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device_pool::DeleteDevicePoolError, R>> for Error
349where
350    R: Send + Sync + std::fmt::Debug + 'static,
351{
352    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device_pool::DeleteDevicePoolError, R>) -> Self {
353        match err {
354            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
355            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
356                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
357                source: err.into(),
358            }),
359        }
360    }
361}
362impl From<crate::operation::delete_device_pool::DeleteDevicePoolError> for Error {
363    fn from(err: crate::operation::delete_device_pool::DeleteDevicePoolError) -> Self {
364        match err {
365            crate::operation::delete_device_pool::DeleteDevicePoolError::ArgumentException(inner) => Error::ArgumentException(inner),
366            crate::operation::delete_device_pool::DeleteDevicePoolError::LimitExceededException(inner) => Error::LimitExceededException(inner),
367            crate::operation::delete_device_pool::DeleteDevicePoolError::NotFoundException(inner) => Error::NotFoundException(inner),
368            crate::operation::delete_device_pool::DeleteDevicePoolError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
369            crate::operation::delete_device_pool::DeleteDevicePoolError::Unhandled(inner) => Error::Unhandled(inner),
370        }
371    }
372}
373impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_profile::DeleteInstanceProfileError, R>> for Error
374where
375    R: Send + Sync + std::fmt::Debug + 'static,
376{
377    fn from(
378        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_instance_profile::DeleteInstanceProfileError, R>,
379    ) -> Self {
380        match err {
381            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
382            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
383                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
384                source: err.into(),
385            }),
386        }
387    }
388}
389impl From<crate::operation::delete_instance_profile::DeleteInstanceProfileError> for Error {
390    fn from(err: crate::operation::delete_instance_profile::DeleteInstanceProfileError) -> Self {
391        match err {
392            crate::operation::delete_instance_profile::DeleteInstanceProfileError::ArgumentException(inner) => Error::ArgumentException(inner),
393            crate::operation::delete_instance_profile::DeleteInstanceProfileError::LimitExceededException(inner) => {
394                Error::LimitExceededException(inner)
395            }
396            crate::operation::delete_instance_profile::DeleteInstanceProfileError::NotFoundException(inner) => Error::NotFoundException(inner),
397            crate::operation::delete_instance_profile::DeleteInstanceProfileError::ServiceAccountException(inner) => {
398                Error::ServiceAccountException(inner)
399            }
400            crate::operation::delete_instance_profile::DeleteInstanceProfileError::Unhandled(inner) => Error::Unhandled(inner),
401        }
402    }
403}
404impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_network_profile::DeleteNetworkProfileError, 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::delete_network_profile::DeleteNetworkProfileError, 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::delete_network_profile::DeleteNetworkProfileError> for Error {
419    fn from(err: crate::operation::delete_network_profile::DeleteNetworkProfileError) -> Self {
420        match err {
421            crate::operation::delete_network_profile::DeleteNetworkProfileError::ArgumentException(inner) => Error::ArgumentException(inner),
422            crate::operation::delete_network_profile::DeleteNetworkProfileError::LimitExceededException(inner) => {
423                Error::LimitExceededException(inner)
424            }
425            crate::operation::delete_network_profile::DeleteNetworkProfileError::NotFoundException(inner) => Error::NotFoundException(inner),
426            crate::operation::delete_network_profile::DeleteNetworkProfileError::ServiceAccountException(inner) => {
427                Error::ServiceAccountException(inner)
428            }
429            crate::operation::delete_network_profile::DeleteNetworkProfileError::Unhandled(inner) => Error::Unhandled(inner),
430        }
431    }
432}
433impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>> for Error
434where
435    R: Send + Sync + std::fmt::Debug + 'static,
436{
437    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>) -> Self {
438        match err {
439            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
440            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
441                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
442                source: err.into(),
443            }),
444        }
445    }
446}
447impl From<crate::operation::delete_project::DeleteProjectError> for Error {
448    fn from(err: crate::operation::delete_project::DeleteProjectError) -> Self {
449        match err {
450            crate::operation::delete_project::DeleteProjectError::ArgumentException(inner) => Error::ArgumentException(inner),
451            crate::operation::delete_project::DeleteProjectError::LimitExceededException(inner) => Error::LimitExceededException(inner),
452            crate::operation::delete_project::DeleteProjectError::NotFoundException(inner) => Error::NotFoundException(inner),
453            crate::operation::delete_project::DeleteProjectError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
454            crate::operation::delete_project::DeleteProjectError::Unhandled(inner) => Error::Unhandled(inner),
455        }
456    }
457}
458impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_remote_access_session::DeleteRemoteAccessSessionError, R>>
459    for Error
460where
461    R: Send + Sync + std::fmt::Debug + 'static,
462{
463    fn from(
464        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_remote_access_session::DeleteRemoteAccessSessionError, R>,
465    ) -> Self {
466        match err {
467            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
468            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
469                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
470                source: err.into(),
471            }),
472        }
473    }
474}
475impl From<crate::operation::delete_remote_access_session::DeleteRemoteAccessSessionError> for Error {
476    fn from(err: crate::operation::delete_remote_access_session::DeleteRemoteAccessSessionError) -> Self {
477        match err {
478            crate::operation::delete_remote_access_session::DeleteRemoteAccessSessionError::ArgumentException(inner) => {
479                Error::ArgumentException(inner)
480            }
481            crate::operation::delete_remote_access_session::DeleteRemoteAccessSessionError::LimitExceededException(inner) => {
482                Error::LimitExceededException(inner)
483            }
484            crate::operation::delete_remote_access_session::DeleteRemoteAccessSessionError::NotFoundException(inner) => {
485                Error::NotFoundException(inner)
486            }
487            crate::operation::delete_remote_access_session::DeleteRemoteAccessSessionError::ServiceAccountException(inner) => {
488                Error::ServiceAccountException(inner)
489            }
490            crate::operation::delete_remote_access_session::DeleteRemoteAccessSessionError::Unhandled(inner) => Error::Unhandled(inner),
491        }
492    }
493}
494impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_run::DeleteRunError, R>> for Error
495where
496    R: Send + Sync + std::fmt::Debug + 'static,
497{
498    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_run::DeleteRunError, R>) -> Self {
499        match err {
500            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
501            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
502                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
503                source: err.into(),
504            }),
505        }
506    }
507}
508impl From<crate::operation::delete_run::DeleteRunError> for Error {
509    fn from(err: crate::operation::delete_run::DeleteRunError) -> Self {
510        match err {
511            crate::operation::delete_run::DeleteRunError::ArgumentException(inner) => Error::ArgumentException(inner),
512            crate::operation::delete_run::DeleteRunError::LimitExceededException(inner) => Error::LimitExceededException(inner),
513            crate::operation::delete_run::DeleteRunError::NotFoundException(inner) => Error::NotFoundException(inner),
514            crate::operation::delete_run::DeleteRunError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
515            crate::operation::delete_run::DeleteRunError::Unhandled(inner) => Error::Unhandled(inner),
516        }
517    }
518}
519impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_test_grid_project::DeleteTestGridProjectError, R>> for Error
520where
521    R: Send + Sync + std::fmt::Debug + 'static,
522{
523    fn from(
524        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_test_grid_project::DeleteTestGridProjectError, R>,
525    ) -> Self {
526        match err {
527            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
528            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
529                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
530                source: err.into(),
531            }),
532        }
533    }
534}
535impl From<crate::operation::delete_test_grid_project::DeleteTestGridProjectError> for Error {
536    fn from(err: crate::operation::delete_test_grid_project::DeleteTestGridProjectError) -> Self {
537        match err {
538            crate::operation::delete_test_grid_project::DeleteTestGridProjectError::ArgumentException(inner) => Error::ArgumentException(inner),
539            crate::operation::delete_test_grid_project::DeleteTestGridProjectError::CannotDeleteException(inner) => {
540                Error::CannotDeleteException(inner)
541            }
542            crate::operation::delete_test_grid_project::DeleteTestGridProjectError::InternalServiceException(inner) => {
543                Error::InternalServiceException(inner)
544            }
545            crate::operation::delete_test_grid_project::DeleteTestGridProjectError::NotFoundException(inner) => Error::NotFoundException(inner),
546            crate::operation::delete_test_grid_project::DeleteTestGridProjectError::Unhandled(inner) => Error::Unhandled(inner),
547        }
548    }
549}
550impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_upload::DeleteUploadError, R>> for Error
551where
552    R: Send + Sync + std::fmt::Debug + 'static,
553{
554    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_upload::DeleteUploadError, R>) -> Self {
555        match err {
556            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
557            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
558                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
559                source: err.into(),
560            }),
561        }
562    }
563}
564impl From<crate::operation::delete_upload::DeleteUploadError> for Error {
565    fn from(err: crate::operation::delete_upload::DeleteUploadError) -> Self {
566        match err {
567            crate::operation::delete_upload::DeleteUploadError::ArgumentException(inner) => Error::ArgumentException(inner),
568            crate::operation::delete_upload::DeleteUploadError::LimitExceededException(inner) => Error::LimitExceededException(inner),
569            crate::operation::delete_upload::DeleteUploadError::NotFoundException(inner) => Error::NotFoundException(inner),
570            crate::operation::delete_upload::DeleteUploadError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
571            crate::operation::delete_upload::DeleteUploadError::Unhandled(inner) => Error::Unhandled(inner),
572        }
573    }
574}
575impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpce_configuration::DeleteVPCEConfigurationError, R>>
576    for Error
577where
578    R: Send + Sync + std::fmt::Debug + 'static,
579{
580    fn from(
581        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpce_configuration::DeleteVPCEConfigurationError, R>,
582    ) -> Self {
583        match err {
584            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
585            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
586                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
587                source: err.into(),
588            }),
589        }
590    }
591}
592impl From<crate::operation::delete_vpce_configuration::DeleteVPCEConfigurationError> for Error {
593    fn from(err: crate::operation::delete_vpce_configuration::DeleteVPCEConfigurationError) -> Self {
594        match err {
595            crate::operation::delete_vpce_configuration::DeleteVPCEConfigurationError::ArgumentException(inner) => Error::ArgumentException(inner),
596            crate::operation::delete_vpce_configuration::DeleteVPCEConfigurationError::InvalidOperationException(inner) => {
597                Error::InvalidOperationException(inner)
598            }
599            crate::operation::delete_vpce_configuration::DeleteVPCEConfigurationError::NotFoundException(inner) => Error::NotFoundException(inner),
600            crate::operation::delete_vpce_configuration::DeleteVPCEConfigurationError::ServiceAccountException(inner) => {
601                Error::ServiceAccountException(inner)
602            }
603            crate::operation::delete_vpce_configuration::DeleteVPCEConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
604        }
605    }
606}
607impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_settings::GetAccountSettingsError, R>> for Error
608where
609    R: Send + Sync + std::fmt::Debug + 'static,
610{
611    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_settings::GetAccountSettingsError, R>) -> Self {
612        match err {
613            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
614            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
615                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
616                source: err.into(),
617            }),
618        }
619    }
620}
621impl From<crate::operation::get_account_settings::GetAccountSettingsError> for Error {
622    fn from(err: crate::operation::get_account_settings::GetAccountSettingsError) -> Self {
623        match err {
624            crate::operation::get_account_settings::GetAccountSettingsError::ArgumentException(inner) => Error::ArgumentException(inner),
625            crate::operation::get_account_settings::GetAccountSettingsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
626            crate::operation::get_account_settings::GetAccountSettingsError::NotFoundException(inner) => Error::NotFoundException(inner),
627            crate::operation::get_account_settings::GetAccountSettingsError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
628            crate::operation::get_account_settings::GetAccountSettingsError::Unhandled(inner) => Error::Unhandled(inner),
629        }
630    }
631}
632impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device::GetDeviceError, R>> for Error
633where
634    R: Send + Sync + std::fmt::Debug + 'static,
635{
636    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device::GetDeviceError, R>) -> Self {
637        match err {
638            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
639            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
640                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
641                source: err.into(),
642            }),
643        }
644    }
645}
646impl From<crate::operation::get_device::GetDeviceError> for Error {
647    fn from(err: crate::operation::get_device::GetDeviceError) -> Self {
648        match err {
649            crate::operation::get_device::GetDeviceError::ArgumentException(inner) => Error::ArgumentException(inner),
650            crate::operation::get_device::GetDeviceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
651            crate::operation::get_device::GetDeviceError::NotFoundException(inner) => Error::NotFoundException(inner),
652            crate::operation::get_device::GetDeviceError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
653            crate::operation::get_device::GetDeviceError::Unhandled(inner) => Error::Unhandled(inner),
654        }
655    }
656}
657impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_instance::GetDeviceInstanceError, R>> for Error
658where
659    R: Send + Sync + std::fmt::Debug + 'static,
660{
661    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_instance::GetDeviceInstanceError, R>) -> Self {
662        match err {
663            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
664            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
665                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
666                source: err.into(),
667            }),
668        }
669    }
670}
671impl From<crate::operation::get_device_instance::GetDeviceInstanceError> for Error {
672    fn from(err: crate::operation::get_device_instance::GetDeviceInstanceError) -> Self {
673        match err {
674            crate::operation::get_device_instance::GetDeviceInstanceError::ArgumentException(inner) => Error::ArgumentException(inner),
675            crate::operation::get_device_instance::GetDeviceInstanceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
676            crate::operation::get_device_instance::GetDeviceInstanceError::NotFoundException(inner) => Error::NotFoundException(inner),
677            crate::operation::get_device_instance::GetDeviceInstanceError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
678            crate::operation::get_device_instance::GetDeviceInstanceError::Unhandled(inner) => Error::Unhandled(inner),
679        }
680    }
681}
682impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_pool::GetDevicePoolError, R>> for Error
683where
684    R: Send + Sync + std::fmt::Debug + 'static,
685{
686    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_pool::GetDevicePoolError, R>) -> Self {
687        match err {
688            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
689            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
690                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
691                source: err.into(),
692            }),
693        }
694    }
695}
696impl From<crate::operation::get_device_pool::GetDevicePoolError> for Error {
697    fn from(err: crate::operation::get_device_pool::GetDevicePoolError) -> Self {
698        match err {
699            crate::operation::get_device_pool::GetDevicePoolError::ArgumentException(inner) => Error::ArgumentException(inner),
700            crate::operation::get_device_pool::GetDevicePoolError::LimitExceededException(inner) => Error::LimitExceededException(inner),
701            crate::operation::get_device_pool::GetDevicePoolError::NotFoundException(inner) => Error::NotFoundException(inner),
702            crate::operation::get_device_pool::GetDevicePoolError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
703            crate::operation::get_device_pool::GetDevicePoolError::Unhandled(inner) => Error::Unhandled(inner),
704        }
705    }
706}
707impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_pool_compatibility::GetDevicePoolCompatibilityError, R>>
708    for Error
709where
710    R: Send + Sync + std::fmt::Debug + 'static,
711{
712    fn from(
713        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_device_pool_compatibility::GetDevicePoolCompatibilityError, R>,
714    ) -> Self {
715        match err {
716            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
717            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
718                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
719                source: err.into(),
720            }),
721        }
722    }
723}
724impl From<crate::operation::get_device_pool_compatibility::GetDevicePoolCompatibilityError> for Error {
725    fn from(err: crate::operation::get_device_pool_compatibility::GetDevicePoolCompatibilityError) -> Self {
726        match err {
727            crate::operation::get_device_pool_compatibility::GetDevicePoolCompatibilityError::ArgumentException(inner) => {
728                Error::ArgumentException(inner)
729            }
730            crate::operation::get_device_pool_compatibility::GetDevicePoolCompatibilityError::LimitExceededException(inner) => {
731                Error::LimitExceededException(inner)
732            }
733            crate::operation::get_device_pool_compatibility::GetDevicePoolCompatibilityError::NotFoundException(inner) => {
734                Error::NotFoundException(inner)
735            }
736            crate::operation::get_device_pool_compatibility::GetDevicePoolCompatibilityError::ServiceAccountException(inner) => {
737                Error::ServiceAccountException(inner)
738            }
739            crate::operation::get_device_pool_compatibility::GetDevicePoolCompatibilityError::Unhandled(inner) => Error::Unhandled(inner),
740        }
741    }
742}
743impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_profile::GetInstanceProfileError, R>> for Error
744where
745    R: Send + Sync + std::fmt::Debug + 'static,
746{
747    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_instance_profile::GetInstanceProfileError, R>) -> Self {
748        match err {
749            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
750            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
751                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
752                source: err.into(),
753            }),
754        }
755    }
756}
757impl From<crate::operation::get_instance_profile::GetInstanceProfileError> for Error {
758    fn from(err: crate::operation::get_instance_profile::GetInstanceProfileError) -> Self {
759        match err {
760            crate::operation::get_instance_profile::GetInstanceProfileError::ArgumentException(inner) => Error::ArgumentException(inner),
761            crate::operation::get_instance_profile::GetInstanceProfileError::LimitExceededException(inner) => Error::LimitExceededException(inner),
762            crate::operation::get_instance_profile::GetInstanceProfileError::NotFoundException(inner) => Error::NotFoundException(inner),
763            crate::operation::get_instance_profile::GetInstanceProfileError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
764            crate::operation::get_instance_profile::GetInstanceProfileError::Unhandled(inner) => Error::Unhandled(inner),
765        }
766    }
767}
768impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job::GetJobError, R>> for Error
769where
770    R: Send + Sync + std::fmt::Debug + 'static,
771{
772    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job::GetJobError, R>) -> Self {
773        match err {
774            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
775            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
776                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
777                source: err.into(),
778            }),
779        }
780    }
781}
782impl From<crate::operation::get_job::GetJobError> for Error {
783    fn from(err: crate::operation::get_job::GetJobError) -> Self {
784        match err {
785            crate::operation::get_job::GetJobError::ArgumentException(inner) => Error::ArgumentException(inner),
786            crate::operation::get_job::GetJobError::LimitExceededException(inner) => Error::LimitExceededException(inner),
787            crate::operation::get_job::GetJobError::NotFoundException(inner) => Error::NotFoundException(inner),
788            crate::operation::get_job::GetJobError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
789            crate::operation::get_job::GetJobError::Unhandled(inner) => Error::Unhandled(inner),
790        }
791    }
792}
793impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_profile::GetNetworkProfileError, R>> for Error
794where
795    R: Send + Sync + std::fmt::Debug + 'static,
796{
797    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_profile::GetNetworkProfileError, R>) -> Self {
798        match err {
799            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
800            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
801                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
802                source: err.into(),
803            }),
804        }
805    }
806}
807impl From<crate::operation::get_network_profile::GetNetworkProfileError> for Error {
808    fn from(err: crate::operation::get_network_profile::GetNetworkProfileError) -> Self {
809        match err {
810            crate::operation::get_network_profile::GetNetworkProfileError::ArgumentException(inner) => Error::ArgumentException(inner),
811            crate::operation::get_network_profile::GetNetworkProfileError::LimitExceededException(inner) => Error::LimitExceededException(inner),
812            crate::operation::get_network_profile::GetNetworkProfileError::NotFoundException(inner) => Error::NotFoundException(inner),
813            crate::operation::get_network_profile::GetNetworkProfileError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
814            crate::operation::get_network_profile::GetNetworkProfileError::Unhandled(inner) => Error::Unhandled(inner),
815        }
816    }
817}
818impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_offering_status::GetOfferingStatusError, R>> for Error
819where
820    R: Send + Sync + std::fmt::Debug + 'static,
821{
822    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_offering_status::GetOfferingStatusError, R>) -> Self {
823        match err {
824            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
825            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
826                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
827                source: err.into(),
828            }),
829        }
830    }
831}
832impl From<crate::operation::get_offering_status::GetOfferingStatusError> for Error {
833    fn from(err: crate::operation::get_offering_status::GetOfferingStatusError) -> Self {
834        match err {
835            crate::operation::get_offering_status::GetOfferingStatusError::ArgumentException(inner) => Error::ArgumentException(inner),
836            crate::operation::get_offering_status::GetOfferingStatusError::LimitExceededException(inner) => Error::LimitExceededException(inner),
837            crate::operation::get_offering_status::GetOfferingStatusError::NotEligibleException(inner) => Error::NotEligibleException(inner),
838            crate::operation::get_offering_status::GetOfferingStatusError::NotFoundException(inner) => Error::NotFoundException(inner),
839            crate::operation::get_offering_status::GetOfferingStatusError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
840            crate::operation::get_offering_status::GetOfferingStatusError::Unhandled(inner) => Error::Unhandled(inner),
841        }
842    }
843}
844impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_project::GetProjectError, R>> for Error
845where
846    R: Send + Sync + std::fmt::Debug + 'static,
847{
848    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_project::GetProjectError, R>) -> Self {
849        match err {
850            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
851            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
852                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
853                source: err.into(),
854            }),
855        }
856    }
857}
858impl From<crate::operation::get_project::GetProjectError> for Error {
859    fn from(err: crate::operation::get_project::GetProjectError) -> Self {
860        match err {
861            crate::operation::get_project::GetProjectError::ArgumentException(inner) => Error::ArgumentException(inner),
862            crate::operation::get_project::GetProjectError::LimitExceededException(inner) => Error::LimitExceededException(inner),
863            crate::operation::get_project::GetProjectError::NotFoundException(inner) => Error::NotFoundException(inner),
864            crate::operation::get_project::GetProjectError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
865            crate::operation::get_project::GetProjectError::Unhandled(inner) => Error::Unhandled(inner),
866        }
867    }
868}
869impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_remote_access_session::GetRemoteAccessSessionError, R>>
870    for Error
871where
872    R: Send + Sync + std::fmt::Debug + 'static,
873{
874    fn from(
875        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_remote_access_session::GetRemoteAccessSessionError, R>,
876    ) -> Self {
877        match err {
878            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
879            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
880                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
881                source: err.into(),
882            }),
883        }
884    }
885}
886impl From<crate::operation::get_remote_access_session::GetRemoteAccessSessionError> for Error {
887    fn from(err: crate::operation::get_remote_access_session::GetRemoteAccessSessionError) -> Self {
888        match err {
889            crate::operation::get_remote_access_session::GetRemoteAccessSessionError::ArgumentException(inner) => Error::ArgumentException(inner),
890            crate::operation::get_remote_access_session::GetRemoteAccessSessionError::LimitExceededException(inner) => {
891                Error::LimitExceededException(inner)
892            }
893            crate::operation::get_remote_access_session::GetRemoteAccessSessionError::NotFoundException(inner) => Error::NotFoundException(inner),
894            crate::operation::get_remote_access_session::GetRemoteAccessSessionError::ServiceAccountException(inner) => {
895                Error::ServiceAccountException(inner)
896            }
897            crate::operation::get_remote_access_session::GetRemoteAccessSessionError::Unhandled(inner) => Error::Unhandled(inner),
898        }
899    }
900}
901impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_run::GetRunError, R>> for Error
902where
903    R: Send + Sync + std::fmt::Debug + 'static,
904{
905    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_run::GetRunError, R>) -> Self {
906        match err {
907            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
908            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
909                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
910                source: err.into(),
911            }),
912        }
913    }
914}
915impl From<crate::operation::get_run::GetRunError> for Error {
916    fn from(err: crate::operation::get_run::GetRunError) -> Self {
917        match err {
918            crate::operation::get_run::GetRunError::ArgumentException(inner) => Error::ArgumentException(inner),
919            crate::operation::get_run::GetRunError::LimitExceededException(inner) => Error::LimitExceededException(inner),
920            crate::operation::get_run::GetRunError::NotFoundException(inner) => Error::NotFoundException(inner),
921            crate::operation::get_run::GetRunError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
922            crate::operation::get_run::GetRunError::Unhandled(inner) => Error::Unhandled(inner),
923        }
924    }
925}
926impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_suite::GetSuiteError, R>> for Error
927where
928    R: Send + Sync + std::fmt::Debug + 'static,
929{
930    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_suite::GetSuiteError, R>) -> Self {
931        match err {
932            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
933            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
934                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
935                source: err.into(),
936            }),
937        }
938    }
939}
940impl From<crate::operation::get_suite::GetSuiteError> for Error {
941    fn from(err: crate::operation::get_suite::GetSuiteError) -> Self {
942        match err {
943            crate::operation::get_suite::GetSuiteError::ArgumentException(inner) => Error::ArgumentException(inner),
944            crate::operation::get_suite::GetSuiteError::LimitExceededException(inner) => Error::LimitExceededException(inner),
945            crate::operation::get_suite::GetSuiteError::NotFoundException(inner) => Error::NotFoundException(inner),
946            crate::operation::get_suite::GetSuiteError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
947            crate::operation::get_suite::GetSuiteError::Unhandled(inner) => Error::Unhandled(inner),
948        }
949    }
950}
951impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_test::GetTestError, R>> for Error
952where
953    R: Send + Sync + std::fmt::Debug + 'static,
954{
955    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_test::GetTestError, R>) -> Self {
956        match err {
957            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
958            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
959                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
960                source: err.into(),
961            }),
962        }
963    }
964}
965impl From<crate::operation::get_test::GetTestError> for Error {
966    fn from(err: crate::operation::get_test::GetTestError) -> Self {
967        match err {
968            crate::operation::get_test::GetTestError::ArgumentException(inner) => Error::ArgumentException(inner),
969            crate::operation::get_test::GetTestError::LimitExceededException(inner) => Error::LimitExceededException(inner),
970            crate::operation::get_test::GetTestError::NotFoundException(inner) => Error::NotFoundException(inner),
971            crate::operation::get_test::GetTestError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
972            crate::operation::get_test::GetTestError::Unhandled(inner) => Error::Unhandled(inner),
973        }
974    }
975}
976impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_test_grid_project::GetTestGridProjectError, R>> for Error
977where
978    R: Send + Sync + std::fmt::Debug + 'static,
979{
980    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_test_grid_project::GetTestGridProjectError, R>) -> Self {
981        match err {
982            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
983            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
984                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
985                source: err.into(),
986            }),
987        }
988    }
989}
990impl From<crate::operation::get_test_grid_project::GetTestGridProjectError> for Error {
991    fn from(err: crate::operation::get_test_grid_project::GetTestGridProjectError) -> Self {
992        match err {
993            crate::operation::get_test_grid_project::GetTestGridProjectError::ArgumentException(inner) => Error::ArgumentException(inner),
994            crate::operation::get_test_grid_project::GetTestGridProjectError::InternalServiceException(inner) => {
995                Error::InternalServiceException(inner)
996            }
997            crate::operation::get_test_grid_project::GetTestGridProjectError::NotFoundException(inner) => Error::NotFoundException(inner),
998            crate::operation::get_test_grid_project::GetTestGridProjectError::Unhandled(inner) => Error::Unhandled(inner),
999        }
1000    }
1001}
1002impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_test_grid_session::GetTestGridSessionError, R>> for Error
1003where
1004    R: Send + Sync + std::fmt::Debug + 'static,
1005{
1006    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_test_grid_session::GetTestGridSessionError, R>) -> Self {
1007        match err {
1008            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1009            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1010                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1011                source: err.into(),
1012            }),
1013        }
1014    }
1015}
1016impl From<crate::operation::get_test_grid_session::GetTestGridSessionError> for Error {
1017    fn from(err: crate::operation::get_test_grid_session::GetTestGridSessionError) -> Self {
1018        match err {
1019            crate::operation::get_test_grid_session::GetTestGridSessionError::ArgumentException(inner) => Error::ArgumentException(inner),
1020            crate::operation::get_test_grid_session::GetTestGridSessionError::InternalServiceException(inner) => {
1021                Error::InternalServiceException(inner)
1022            }
1023            crate::operation::get_test_grid_session::GetTestGridSessionError::NotFoundException(inner) => Error::NotFoundException(inner),
1024            crate::operation::get_test_grid_session::GetTestGridSessionError::Unhandled(inner) => Error::Unhandled(inner),
1025        }
1026    }
1027}
1028impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_upload::GetUploadError, R>> for Error
1029where
1030    R: Send + Sync + std::fmt::Debug + 'static,
1031{
1032    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_upload::GetUploadError, R>) -> Self {
1033        match err {
1034            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1035            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1036                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1037                source: err.into(),
1038            }),
1039        }
1040    }
1041}
1042impl From<crate::operation::get_upload::GetUploadError> for Error {
1043    fn from(err: crate::operation::get_upload::GetUploadError) -> Self {
1044        match err {
1045            crate::operation::get_upload::GetUploadError::ArgumentException(inner) => Error::ArgumentException(inner),
1046            crate::operation::get_upload::GetUploadError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1047            crate::operation::get_upload::GetUploadError::NotFoundException(inner) => Error::NotFoundException(inner),
1048            crate::operation::get_upload::GetUploadError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1049            crate::operation::get_upload::GetUploadError::Unhandled(inner) => Error::Unhandled(inner),
1050        }
1051    }
1052}
1053impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpce_configuration::GetVPCEConfigurationError, R>> for Error
1054where
1055    R: Send + Sync + std::fmt::Debug + 'static,
1056{
1057    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpce_configuration::GetVPCEConfigurationError, R>) -> Self {
1058        match err {
1059            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1060            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1061                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1062                source: err.into(),
1063            }),
1064        }
1065    }
1066}
1067impl From<crate::operation::get_vpce_configuration::GetVPCEConfigurationError> for Error {
1068    fn from(err: crate::operation::get_vpce_configuration::GetVPCEConfigurationError) -> Self {
1069        match err {
1070            crate::operation::get_vpce_configuration::GetVPCEConfigurationError::ArgumentException(inner) => Error::ArgumentException(inner),
1071            crate::operation::get_vpce_configuration::GetVPCEConfigurationError::NotFoundException(inner) => Error::NotFoundException(inner),
1072            crate::operation::get_vpce_configuration::GetVPCEConfigurationError::ServiceAccountException(inner) => {
1073                Error::ServiceAccountException(inner)
1074            }
1075            crate::operation::get_vpce_configuration::GetVPCEConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1076        }
1077    }
1078}
1079impl<R>
1080    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::install_to_remote_access_session::InstallToRemoteAccessSessionError, R>>
1081    for Error
1082where
1083    R: Send + Sync + std::fmt::Debug + 'static,
1084{
1085    fn from(
1086        err: ::aws_smithy_runtime_api::client::result::SdkError<
1087            crate::operation::install_to_remote_access_session::InstallToRemoteAccessSessionError,
1088            R,
1089        >,
1090    ) -> Self {
1091        match err {
1092            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1093            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1094                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1095                source: err.into(),
1096            }),
1097        }
1098    }
1099}
1100impl From<crate::operation::install_to_remote_access_session::InstallToRemoteAccessSessionError> for Error {
1101    fn from(err: crate::operation::install_to_remote_access_session::InstallToRemoteAccessSessionError) -> Self {
1102        match err {
1103            crate::operation::install_to_remote_access_session::InstallToRemoteAccessSessionError::ArgumentException(inner) => {
1104                Error::ArgumentException(inner)
1105            }
1106            crate::operation::install_to_remote_access_session::InstallToRemoteAccessSessionError::LimitExceededException(inner) => {
1107                Error::LimitExceededException(inner)
1108            }
1109            crate::operation::install_to_remote_access_session::InstallToRemoteAccessSessionError::NotFoundException(inner) => {
1110                Error::NotFoundException(inner)
1111            }
1112            crate::operation::install_to_remote_access_session::InstallToRemoteAccessSessionError::ServiceAccountException(inner) => {
1113                Error::ServiceAccountException(inner)
1114            }
1115            crate::operation::install_to_remote_access_session::InstallToRemoteAccessSessionError::Unhandled(inner) => Error::Unhandled(inner),
1116        }
1117    }
1118}
1119impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_artifacts::ListArtifactsError, R>> for Error
1120where
1121    R: Send + Sync + std::fmt::Debug + 'static,
1122{
1123    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_artifacts::ListArtifactsError, R>) -> Self {
1124        match err {
1125            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1126            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1127                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1128                source: err.into(),
1129            }),
1130        }
1131    }
1132}
1133impl From<crate::operation::list_artifacts::ListArtifactsError> for Error {
1134    fn from(err: crate::operation::list_artifacts::ListArtifactsError) -> Self {
1135        match err {
1136            crate::operation::list_artifacts::ListArtifactsError::ArgumentException(inner) => Error::ArgumentException(inner),
1137            crate::operation::list_artifacts::ListArtifactsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1138            crate::operation::list_artifacts::ListArtifactsError::NotFoundException(inner) => Error::NotFoundException(inner),
1139            crate::operation::list_artifacts::ListArtifactsError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1140            crate::operation::list_artifacts::ListArtifactsError::Unhandled(inner) => Error::Unhandled(inner),
1141        }
1142    }
1143}
1144impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_instances::ListDeviceInstancesError, R>> for Error
1145where
1146    R: Send + Sync + std::fmt::Debug + 'static,
1147{
1148    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_instances::ListDeviceInstancesError, R>) -> Self {
1149        match err {
1150            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1151            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1152                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1153                source: err.into(),
1154            }),
1155        }
1156    }
1157}
1158impl From<crate::operation::list_device_instances::ListDeviceInstancesError> for Error {
1159    fn from(err: crate::operation::list_device_instances::ListDeviceInstancesError) -> Self {
1160        match err {
1161            crate::operation::list_device_instances::ListDeviceInstancesError::ArgumentException(inner) => Error::ArgumentException(inner),
1162            crate::operation::list_device_instances::ListDeviceInstancesError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1163            crate::operation::list_device_instances::ListDeviceInstancesError::NotFoundException(inner) => Error::NotFoundException(inner),
1164            crate::operation::list_device_instances::ListDeviceInstancesError::ServiceAccountException(inner) => {
1165                Error::ServiceAccountException(inner)
1166            }
1167            crate::operation::list_device_instances::ListDeviceInstancesError::Unhandled(inner) => Error::Unhandled(inner),
1168        }
1169    }
1170}
1171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_pools::ListDevicePoolsError, R>> for Error
1172where
1173    R: Send + Sync + std::fmt::Debug + 'static,
1174{
1175    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_device_pools::ListDevicePoolsError, R>) -> Self {
1176        match err {
1177            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1178            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1179                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1180                source: err.into(),
1181            }),
1182        }
1183    }
1184}
1185impl From<crate::operation::list_device_pools::ListDevicePoolsError> for Error {
1186    fn from(err: crate::operation::list_device_pools::ListDevicePoolsError) -> Self {
1187        match err {
1188            crate::operation::list_device_pools::ListDevicePoolsError::ArgumentException(inner) => Error::ArgumentException(inner),
1189            crate::operation::list_device_pools::ListDevicePoolsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1190            crate::operation::list_device_pools::ListDevicePoolsError::NotFoundException(inner) => Error::NotFoundException(inner),
1191            crate::operation::list_device_pools::ListDevicePoolsError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1192            crate::operation::list_device_pools::ListDevicePoolsError::Unhandled(inner) => Error::Unhandled(inner),
1193        }
1194    }
1195}
1196impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices::ListDevicesError, R>> for Error
1197where
1198    R: Send + Sync + std::fmt::Debug + 'static,
1199{
1200    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_devices::ListDevicesError, R>) -> Self {
1201        match err {
1202            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1203            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1204                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1205                source: err.into(),
1206            }),
1207        }
1208    }
1209}
1210impl From<crate::operation::list_devices::ListDevicesError> for Error {
1211    fn from(err: crate::operation::list_devices::ListDevicesError) -> Self {
1212        match err {
1213            crate::operation::list_devices::ListDevicesError::ArgumentException(inner) => Error::ArgumentException(inner),
1214            crate::operation::list_devices::ListDevicesError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1215            crate::operation::list_devices::ListDevicesError::NotFoundException(inner) => Error::NotFoundException(inner),
1216            crate::operation::list_devices::ListDevicesError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1217            crate::operation::list_devices::ListDevicesError::Unhandled(inner) => Error::Unhandled(inner),
1218        }
1219    }
1220}
1221impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_instance_profiles::ListInstanceProfilesError, R>> for Error
1222where
1223    R: Send + Sync + std::fmt::Debug + 'static,
1224{
1225    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_instance_profiles::ListInstanceProfilesError, R>) -> Self {
1226        match err {
1227            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1228            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1229                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1230                source: err.into(),
1231            }),
1232        }
1233    }
1234}
1235impl From<crate::operation::list_instance_profiles::ListInstanceProfilesError> for Error {
1236    fn from(err: crate::operation::list_instance_profiles::ListInstanceProfilesError) -> Self {
1237        match err {
1238            crate::operation::list_instance_profiles::ListInstanceProfilesError::ArgumentException(inner) => Error::ArgumentException(inner),
1239            crate::operation::list_instance_profiles::ListInstanceProfilesError::LimitExceededException(inner) => {
1240                Error::LimitExceededException(inner)
1241            }
1242            crate::operation::list_instance_profiles::ListInstanceProfilesError::NotFoundException(inner) => Error::NotFoundException(inner),
1243            crate::operation::list_instance_profiles::ListInstanceProfilesError::ServiceAccountException(inner) => {
1244                Error::ServiceAccountException(inner)
1245            }
1246            crate::operation::list_instance_profiles::ListInstanceProfilesError::Unhandled(inner) => Error::Unhandled(inner),
1247        }
1248    }
1249}
1250impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>> for Error
1251where
1252    R: Send + Sync + std::fmt::Debug + 'static,
1253{
1254    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_jobs::ListJobsError, R>) -> Self {
1255        match err {
1256            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1257            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1258                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1259                source: err.into(),
1260            }),
1261        }
1262    }
1263}
1264impl From<crate::operation::list_jobs::ListJobsError> for Error {
1265    fn from(err: crate::operation::list_jobs::ListJobsError) -> Self {
1266        match err {
1267            crate::operation::list_jobs::ListJobsError::ArgumentException(inner) => Error::ArgumentException(inner),
1268            crate::operation::list_jobs::ListJobsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1269            crate::operation::list_jobs::ListJobsError::NotFoundException(inner) => Error::NotFoundException(inner),
1270            crate::operation::list_jobs::ListJobsError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1271            crate::operation::list_jobs::ListJobsError::Unhandled(inner) => Error::Unhandled(inner),
1272        }
1273    }
1274}
1275impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_network_profiles::ListNetworkProfilesError, R>> for Error
1276where
1277    R: Send + Sync + std::fmt::Debug + 'static,
1278{
1279    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_network_profiles::ListNetworkProfilesError, R>) -> Self {
1280        match err {
1281            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1282            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1283                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1284                source: err.into(),
1285            }),
1286        }
1287    }
1288}
1289impl From<crate::operation::list_network_profiles::ListNetworkProfilesError> for Error {
1290    fn from(err: crate::operation::list_network_profiles::ListNetworkProfilesError) -> Self {
1291        match err {
1292            crate::operation::list_network_profiles::ListNetworkProfilesError::ArgumentException(inner) => Error::ArgumentException(inner),
1293            crate::operation::list_network_profiles::ListNetworkProfilesError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1294            crate::operation::list_network_profiles::ListNetworkProfilesError::NotFoundException(inner) => Error::NotFoundException(inner),
1295            crate::operation::list_network_profiles::ListNetworkProfilesError::ServiceAccountException(inner) => {
1296                Error::ServiceAccountException(inner)
1297            }
1298            crate::operation::list_network_profiles::ListNetworkProfilesError::Unhandled(inner) => Error::Unhandled(inner),
1299        }
1300    }
1301}
1302impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_offering_promotions::ListOfferingPromotionsError, R>> for Error
1303where
1304    R: Send + Sync + std::fmt::Debug + 'static,
1305{
1306    fn from(
1307        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_offering_promotions::ListOfferingPromotionsError, R>,
1308    ) -> Self {
1309        match err {
1310            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1311            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1312                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1313                source: err.into(),
1314            }),
1315        }
1316    }
1317}
1318impl From<crate::operation::list_offering_promotions::ListOfferingPromotionsError> for Error {
1319    fn from(err: crate::operation::list_offering_promotions::ListOfferingPromotionsError) -> Self {
1320        match err {
1321            crate::operation::list_offering_promotions::ListOfferingPromotionsError::ArgumentException(inner) => Error::ArgumentException(inner),
1322            crate::operation::list_offering_promotions::ListOfferingPromotionsError::LimitExceededException(inner) => {
1323                Error::LimitExceededException(inner)
1324            }
1325            crate::operation::list_offering_promotions::ListOfferingPromotionsError::NotEligibleException(inner) => {
1326                Error::NotEligibleException(inner)
1327            }
1328            crate::operation::list_offering_promotions::ListOfferingPromotionsError::NotFoundException(inner) => Error::NotFoundException(inner),
1329            crate::operation::list_offering_promotions::ListOfferingPromotionsError::ServiceAccountException(inner) => {
1330                Error::ServiceAccountException(inner)
1331            }
1332            crate::operation::list_offering_promotions::ListOfferingPromotionsError::Unhandled(inner) => Error::Unhandled(inner),
1333        }
1334    }
1335}
1336impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_offerings::ListOfferingsError, R>> for Error
1337where
1338    R: Send + Sync + std::fmt::Debug + 'static,
1339{
1340    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_offerings::ListOfferingsError, R>) -> Self {
1341        match err {
1342            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1343            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1344                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1345                source: err.into(),
1346            }),
1347        }
1348    }
1349}
1350impl From<crate::operation::list_offerings::ListOfferingsError> for Error {
1351    fn from(err: crate::operation::list_offerings::ListOfferingsError) -> Self {
1352        match err {
1353            crate::operation::list_offerings::ListOfferingsError::ArgumentException(inner) => Error::ArgumentException(inner),
1354            crate::operation::list_offerings::ListOfferingsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1355            crate::operation::list_offerings::ListOfferingsError::NotEligibleException(inner) => Error::NotEligibleException(inner),
1356            crate::operation::list_offerings::ListOfferingsError::NotFoundException(inner) => Error::NotFoundException(inner),
1357            crate::operation::list_offerings::ListOfferingsError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1358            crate::operation::list_offerings::ListOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
1359        }
1360    }
1361}
1362impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_offering_transactions::ListOfferingTransactionsError, R>>
1363    for Error
1364where
1365    R: Send + Sync + std::fmt::Debug + 'static,
1366{
1367    fn from(
1368        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_offering_transactions::ListOfferingTransactionsError, R>,
1369    ) -> Self {
1370        match err {
1371            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1372            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1373                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1374                source: err.into(),
1375            }),
1376        }
1377    }
1378}
1379impl From<crate::operation::list_offering_transactions::ListOfferingTransactionsError> for Error {
1380    fn from(err: crate::operation::list_offering_transactions::ListOfferingTransactionsError) -> Self {
1381        match err {
1382            crate::operation::list_offering_transactions::ListOfferingTransactionsError::ArgumentException(inner) => Error::ArgumentException(inner),
1383            crate::operation::list_offering_transactions::ListOfferingTransactionsError::LimitExceededException(inner) => {
1384                Error::LimitExceededException(inner)
1385            }
1386            crate::operation::list_offering_transactions::ListOfferingTransactionsError::NotEligibleException(inner) => {
1387                Error::NotEligibleException(inner)
1388            }
1389            crate::operation::list_offering_transactions::ListOfferingTransactionsError::NotFoundException(inner) => Error::NotFoundException(inner),
1390            crate::operation::list_offering_transactions::ListOfferingTransactionsError::ServiceAccountException(inner) => {
1391                Error::ServiceAccountException(inner)
1392            }
1393            crate::operation::list_offering_transactions::ListOfferingTransactionsError::Unhandled(inner) => Error::Unhandled(inner),
1394        }
1395    }
1396}
1397impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>> for Error
1398where
1399    R: Send + Sync + std::fmt::Debug + 'static,
1400{
1401    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>) -> Self {
1402        match err {
1403            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1404            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1405                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1406                source: err.into(),
1407            }),
1408        }
1409    }
1410}
1411impl From<crate::operation::list_projects::ListProjectsError> for Error {
1412    fn from(err: crate::operation::list_projects::ListProjectsError) -> Self {
1413        match err {
1414            crate::operation::list_projects::ListProjectsError::ArgumentException(inner) => Error::ArgumentException(inner),
1415            crate::operation::list_projects::ListProjectsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1416            crate::operation::list_projects::ListProjectsError::NotFoundException(inner) => Error::NotFoundException(inner),
1417            crate::operation::list_projects::ListProjectsError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1418            crate::operation::list_projects::ListProjectsError::Unhandled(inner) => Error::Unhandled(inner),
1419        }
1420    }
1421}
1422impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_remote_access_sessions::ListRemoteAccessSessionsError, R>>
1423    for Error
1424where
1425    R: Send + Sync + std::fmt::Debug + 'static,
1426{
1427    fn from(
1428        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_remote_access_sessions::ListRemoteAccessSessionsError, R>,
1429    ) -> Self {
1430        match err {
1431            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1432            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1433                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1434                source: err.into(),
1435            }),
1436        }
1437    }
1438}
1439impl From<crate::operation::list_remote_access_sessions::ListRemoteAccessSessionsError> for Error {
1440    fn from(err: crate::operation::list_remote_access_sessions::ListRemoteAccessSessionsError) -> Self {
1441        match err {
1442            crate::operation::list_remote_access_sessions::ListRemoteAccessSessionsError::ArgumentException(inner) => Error::ArgumentException(inner),
1443            crate::operation::list_remote_access_sessions::ListRemoteAccessSessionsError::LimitExceededException(inner) => {
1444                Error::LimitExceededException(inner)
1445            }
1446            crate::operation::list_remote_access_sessions::ListRemoteAccessSessionsError::NotFoundException(inner) => Error::NotFoundException(inner),
1447            crate::operation::list_remote_access_sessions::ListRemoteAccessSessionsError::ServiceAccountException(inner) => {
1448                Error::ServiceAccountException(inner)
1449            }
1450            crate::operation::list_remote_access_sessions::ListRemoteAccessSessionsError::Unhandled(inner) => Error::Unhandled(inner),
1451        }
1452    }
1453}
1454impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_runs::ListRunsError, R>> for Error
1455where
1456    R: Send + Sync + std::fmt::Debug + 'static,
1457{
1458    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_runs::ListRunsError, R>) -> Self {
1459        match err {
1460            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1461            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1462                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1463                source: err.into(),
1464            }),
1465        }
1466    }
1467}
1468impl From<crate::operation::list_runs::ListRunsError> for Error {
1469    fn from(err: crate::operation::list_runs::ListRunsError) -> Self {
1470        match err {
1471            crate::operation::list_runs::ListRunsError::ArgumentException(inner) => Error::ArgumentException(inner),
1472            crate::operation::list_runs::ListRunsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1473            crate::operation::list_runs::ListRunsError::NotFoundException(inner) => Error::NotFoundException(inner),
1474            crate::operation::list_runs::ListRunsError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1475            crate::operation::list_runs::ListRunsError::Unhandled(inner) => Error::Unhandled(inner),
1476        }
1477    }
1478}
1479impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_samples::ListSamplesError, R>> for Error
1480where
1481    R: Send + Sync + std::fmt::Debug + 'static,
1482{
1483    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_samples::ListSamplesError, R>) -> Self {
1484        match err {
1485            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1486            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1487                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1488                source: err.into(),
1489            }),
1490        }
1491    }
1492}
1493impl From<crate::operation::list_samples::ListSamplesError> for Error {
1494    fn from(err: crate::operation::list_samples::ListSamplesError) -> Self {
1495        match err {
1496            crate::operation::list_samples::ListSamplesError::ArgumentException(inner) => Error::ArgumentException(inner),
1497            crate::operation::list_samples::ListSamplesError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1498            crate::operation::list_samples::ListSamplesError::NotFoundException(inner) => Error::NotFoundException(inner),
1499            crate::operation::list_samples::ListSamplesError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1500            crate::operation::list_samples::ListSamplesError::Unhandled(inner) => Error::Unhandled(inner),
1501        }
1502    }
1503}
1504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_suites::ListSuitesError, R>> for Error
1505where
1506    R: Send + Sync + std::fmt::Debug + 'static,
1507{
1508    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_suites::ListSuitesError, R>) -> Self {
1509        match err {
1510            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1511            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1512                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1513                source: err.into(),
1514            }),
1515        }
1516    }
1517}
1518impl From<crate::operation::list_suites::ListSuitesError> for Error {
1519    fn from(err: crate::operation::list_suites::ListSuitesError) -> Self {
1520        match err {
1521            crate::operation::list_suites::ListSuitesError::ArgumentException(inner) => Error::ArgumentException(inner),
1522            crate::operation::list_suites::ListSuitesError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1523            crate::operation::list_suites::ListSuitesError::NotFoundException(inner) => Error::NotFoundException(inner),
1524            crate::operation::list_suites::ListSuitesError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1525            crate::operation::list_suites::ListSuitesError::Unhandled(inner) => Error::Unhandled(inner),
1526        }
1527    }
1528}
1529impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1530where
1531    R: Send + Sync + std::fmt::Debug + 'static,
1532{
1533    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1534        match err {
1535            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1536            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1537                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1538                source: err.into(),
1539            }),
1540        }
1541    }
1542}
1543impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1544    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1545        match err {
1546            crate::operation::list_tags_for_resource::ListTagsForResourceError::ArgumentException(inner) => Error::ArgumentException(inner),
1547            crate::operation::list_tags_for_resource::ListTagsForResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1548            crate::operation::list_tags_for_resource::ListTagsForResourceError::TagOperationException(inner) => Error::TagOperationException(inner),
1549            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1550        }
1551    }
1552}
1553impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_grid_projects::ListTestGridProjectsError, R>> for Error
1554where
1555    R: Send + Sync + std::fmt::Debug + 'static,
1556{
1557    fn from(
1558        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_grid_projects::ListTestGridProjectsError, R>,
1559    ) -> Self {
1560        match err {
1561            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1562            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1563                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1564                source: err.into(),
1565            }),
1566        }
1567    }
1568}
1569impl From<crate::operation::list_test_grid_projects::ListTestGridProjectsError> for Error {
1570    fn from(err: crate::operation::list_test_grid_projects::ListTestGridProjectsError) -> Self {
1571        match err {
1572            crate::operation::list_test_grid_projects::ListTestGridProjectsError::ArgumentException(inner) => Error::ArgumentException(inner),
1573            crate::operation::list_test_grid_projects::ListTestGridProjectsError::InternalServiceException(inner) => {
1574                Error::InternalServiceException(inner)
1575            }
1576            crate::operation::list_test_grid_projects::ListTestGridProjectsError::Unhandled(inner) => Error::Unhandled(inner),
1577        }
1578    }
1579}
1580impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_grid_session_actions::ListTestGridSessionActionsError, R>>
1581    for Error
1582where
1583    R: Send + Sync + std::fmt::Debug + 'static,
1584{
1585    fn from(
1586        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_grid_session_actions::ListTestGridSessionActionsError, R>,
1587    ) -> Self {
1588        match err {
1589            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1590            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1591                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1592                source: err.into(),
1593            }),
1594        }
1595    }
1596}
1597impl From<crate::operation::list_test_grid_session_actions::ListTestGridSessionActionsError> for Error {
1598    fn from(err: crate::operation::list_test_grid_session_actions::ListTestGridSessionActionsError) -> Self {
1599        match err {
1600            crate::operation::list_test_grid_session_actions::ListTestGridSessionActionsError::ArgumentException(inner) => {
1601                Error::ArgumentException(inner)
1602            }
1603            crate::operation::list_test_grid_session_actions::ListTestGridSessionActionsError::InternalServiceException(inner) => {
1604                Error::InternalServiceException(inner)
1605            }
1606            crate::operation::list_test_grid_session_actions::ListTestGridSessionActionsError::NotFoundException(inner) => {
1607                Error::NotFoundException(inner)
1608            }
1609            crate::operation::list_test_grid_session_actions::ListTestGridSessionActionsError::Unhandled(inner) => Error::Unhandled(inner),
1610        }
1611    }
1612}
1613impl<R>
1614    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_grid_session_artifacts::ListTestGridSessionArtifactsError, R>>
1615    for Error
1616where
1617    R: Send + Sync + std::fmt::Debug + 'static,
1618{
1619    fn from(
1620        err: ::aws_smithy_runtime_api::client::result::SdkError<
1621            crate::operation::list_test_grid_session_artifacts::ListTestGridSessionArtifactsError,
1622            R,
1623        >,
1624    ) -> 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::list_test_grid_session_artifacts::ListTestGridSessionArtifactsError> for Error {
1635    fn from(err: crate::operation::list_test_grid_session_artifacts::ListTestGridSessionArtifactsError) -> Self {
1636        match err {
1637            crate::operation::list_test_grid_session_artifacts::ListTestGridSessionArtifactsError::ArgumentException(inner) => {
1638                Error::ArgumentException(inner)
1639            }
1640            crate::operation::list_test_grid_session_artifacts::ListTestGridSessionArtifactsError::InternalServiceException(inner) => {
1641                Error::InternalServiceException(inner)
1642            }
1643            crate::operation::list_test_grid_session_artifacts::ListTestGridSessionArtifactsError::NotFoundException(inner) => {
1644                Error::NotFoundException(inner)
1645            }
1646            crate::operation::list_test_grid_session_artifacts::ListTestGridSessionArtifactsError::Unhandled(inner) => Error::Unhandled(inner),
1647        }
1648    }
1649}
1650impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_grid_sessions::ListTestGridSessionsError, R>> for Error
1651where
1652    R: Send + Sync + std::fmt::Debug + 'static,
1653{
1654    fn from(
1655        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_test_grid_sessions::ListTestGridSessionsError, R>,
1656    ) -> Self {
1657        match err {
1658            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1659            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1660                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1661                source: err.into(),
1662            }),
1663        }
1664    }
1665}
1666impl From<crate::operation::list_test_grid_sessions::ListTestGridSessionsError> for Error {
1667    fn from(err: crate::operation::list_test_grid_sessions::ListTestGridSessionsError) -> Self {
1668        match err {
1669            crate::operation::list_test_grid_sessions::ListTestGridSessionsError::ArgumentException(inner) => Error::ArgumentException(inner),
1670            crate::operation::list_test_grid_sessions::ListTestGridSessionsError::InternalServiceException(inner) => {
1671                Error::InternalServiceException(inner)
1672            }
1673            crate::operation::list_test_grid_sessions::ListTestGridSessionsError::NotFoundException(inner) => Error::NotFoundException(inner),
1674            crate::operation::list_test_grid_sessions::ListTestGridSessionsError::Unhandled(inner) => Error::Unhandled(inner),
1675        }
1676    }
1677}
1678impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tests::ListTestsError, R>> for Error
1679where
1680    R: Send + Sync + std::fmt::Debug + 'static,
1681{
1682    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tests::ListTestsError, R>) -> Self {
1683        match err {
1684            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1685            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1686                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1687                source: err.into(),
1688            }),
1689        }
1690    }
1691}
1692impl From<crate::operation::list_tests::ListTestsError> for Error {
1693    fn from(err: crate::operation::list_tests::ListTestsError) -> Self {
1694        match err {
1695            crate::operation::list_tests::ListTestsError::ArgumentException(inner) => Error::ArgumentException(inner),
1696            crate::operation::list_tests::ListTestsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1697            crate::operation::list_tests::ListTestsError::NotFoundException(inner) => Error::NotFoundException(inner),
1698            crate::operation::list_tests::ListTestsError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1699            crate::operation::list_tests::ListTestsError::Unhandled(inner) => Error::Unhandled(inner),
1700        }
1701    }
1702}
1703impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_unique_problems::ListUniqueProblemsError, R>> for Error
1704where
1705    R: Send + Sync + std::fmt::Debug + 'static,
1706{
1707    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_unique_problems::ListUniqueProblemsError, R>) -> Self {
1708        match err {
1709            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1710            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1711                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1712                source: err.into(),
1713            }),
1714        }
1715    }
1716}
1717impl From<crate::operation::list_unique_problems::ListUniqueProblemsError> for Error {
1718    fn from(err: crate::operation::list_unique_problems::ListUniqueProblemsError) -> Self {
1719        match err {
1720            crate::operation::list_unique_problems::ListUniqueProblemsError::ArgumentException(inner) => Error::ArgumentException(inner),
1721            crate::operation::list_unique_problems::ListUniqueProblemsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1722            crate::operation::list_unique_problems::ListUniqueProblemsError::NotFoundException(inner) => Error::NotFoundException(inner),
1723            crate::operation::list_unique_problems::ListUniqueProblemsError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1724            crate::operation::list_unique_problems::ListUniqueProblemsError::Unhandled(inner) => Error::Unhandled(inner),
1725        }
1726    }
1727}
1728impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_uploads::ListUploadsError, R>> for Error
1729where
1730    R: Send + Sync + std::fmt::Debug + 'static,
1731{
1732    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_uploads::ListUploadsError, R>) -> Self {
1733        match err {
1734            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1735            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1736                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1737                source: err.into(),
1738            }),
1739        }
1740    }
1741}
1742impl From<crate::operation::list_uploads::ListUploadsError> for Error {
1743    fn from(err: crate::operation::list_uploads::ListUploadsError) -> Self {
1744        match err {
1745            crate::operation::list_uploads::ListUploadsError::ArgumentException(inner) => Error::ArgumentException(inner),
1746            crate::operation::list_uploads::ListUploadsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1747            crate::operation::list_uploads::ListUploadsError::NotFoundException(inner) => Error::NotFoundException(inner),
1748            crate::operation::list_uploads::ListUploadsError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1749            crate::operation::list_uploads::ListUploadsError::Unhandled(inner) => Error::Unhandled(inner),
1750        }
1751    }
1752}
1753impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vpce_configurations::ListVPCEConfigurationsError, R>> for Error
1754where
1755    R: Send + Sync + std::fmt::Debug + 'static,
1756{
1757    fn from(
1758        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vpce_configurations::ListVPCEConfigurationsError, R>,
1759    ) -> Self {
1760        match err {
1761            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1762            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1763                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1764                source: err.into(),
1765            }),
1766        }
1767    }
1768}
1769impl From<crate::operation::list_vpce_configurations::ListVPCEConfigurationsError> for Error {
1770    fn from(err: crate::operation::list_vpce_configurations::ListVPCEConfigurationsError) -> Self {
1771        match err {
1772            crate::operation::list_vpce_configurations::ListVPCEConfigurationsError::ArgumentException(inner) => Error::ArgumentException(inner),
1773            crate::operation::list_vpce_configurations::ListVPCEConfigurationsError::ServiceAccountException(inner) => {
1774                Error::ServiceAccountException(inner)
1775            }
1776            crate::operation::list_vpce_configurations::ListVPCEConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1777        }
1778    }
1779}
1780impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_offering::PurchaseOfferingError, R>> for Error
1781where
1782    R: Send + Sync + std::fmt::Debug + 'static,
1783{
1784    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_offering::PurchaseOfferingError, R>) -> Self {
1785        match err {
1786            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1787            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1788                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1789                source: err.into(),
1790            }),
1791        }
1792    }
1793}
1794impl From<crate::operation::purchase_offering::PurchaseOfferingError> for Error {
1795    fn from(err: crate::operation::purchase_offering::PurchaseOfferingError) -> Self {
1796        match err {
1797            crate::operation::purchase_offering::PurchaseOfferingError::ArgumentException(inner) => Error::ArgumentException(inner),
1798            crate::operation::purchase_offering::PurchaseOfferingError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1799            crate::operation::purchase_offering::PurchaseOfferingError::NotEligibleException(inner) => Error::NotEligibleException(inner),
1800            crate::operation::purchase_offering::PurchaseOfferingError::NotFoundException(inner) => Error::NotFoundException(inner),
1801            crate::operation::purchase_offering::PurchaseOfferingError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1802            crate::operation::purchase_offering::PurchaseOfferingError::Unhandled(inner) => Error::Unhandled(inner),
1803        }
1804    }
1805}
1806impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::renew_offering::RenewOfferingError, R>> for Error
1807where
1808    R: Send + Sync + std::fmt::Debug + 'static,
1809{
1810    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::renew_offering::RenewOfferingError, R>) -> Self {
1811        match err {
1812            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1813            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1814                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1815                source: err.into(),
1816            }),
1817        }
1818    }
1819}
1820impl From<crate::operation::renew_offering::RenewOfferingError> for Error {
1821    fn from(err: crate::operation::renew_offering::RenewOfferingError) -> Self {
1822        match err {
1823            crate::operation::renew_offering::RenewOfferingError::ArgumentException(inner) => Error::ArgumentException(inner),
1824            crate::operation::renew_offering::RenewOfferingError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1825            crate::operation::renew_offering::RenewOfferingError::NotEligibleException(inner) => Error::NotEligibleException(inner),
1826            crate::operation::renew_offering::RenewOfferingError::NotFoundException(inner) => Error::NotFoundException(inner),
1827            crate::operation::renew_offering::RenewOfferingError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1828            crate::operation::renew_offering::RenewOfferingError::Unhandled(inner) => Error::Unhandled(inner),
1829        }
1830    }
1831}
1832impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::schedule_run::ScheduleRunError, R>> for Error
1833where
1834    R: Send + Sync + std::fmt::Debug + 'static,
1835{
1836    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::schedule_run::ScheduleRunError, R>) -> 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::schedule_run::ScheduleRunError> for Error {
1847    fn from(err: crate::operation::schedule_run::ScheduleRunError) -> Self {
1848        match err {
1849            crate::operation::schedule_run::ScheduleRunError::ArgumentException(inner) => Error::ArgumentException(inner),
1850            crate::operation::schedule_run::ScheduleRunError::IdempotencyException(inner) => Error::IdempotencyException(inner),
1851            crate::operation::schedule_run::ScheduleRunError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1852            crate::operation::schedule_run::ScheduleRunError::NotFoundException(inner) => Error::NotFoundException(inner),
1853            crate::operation::schedule_run::ScheduleRunError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1854            crate::operation::schedule_run::ScheduleRunError::Unhandled(inner) => Error::Unhandled(inner),
1855        }
1856    }
1857}
1858impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_job::StopJobError, R>> for Error
1859where
1860    R: Send + Sync + std::fmt::Debug + 'static,
1861{
1862    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_job::StopJobError, R>) -> Self {
1863        match err {
1864            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1865            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1866                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1867                source: err.into(),
1868            }),
1869        }
1870    }
1871}
1872impl From<crate::operation::stop_job::StopJobError> for Error {
1873    fn from(err: crate::operation::stop_job::StopJobError) -> Self {
1874        match err {
1875            crate::operation::stop_job::StopJobError::ArgumentException(inner) => Error::ArgumentException(inner),
1876            crate::operation::stop_job::StopJobError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1877            crate::operation::stop_job::StopJobError::NotFoundException(inner) => Error::NotFoundException(inner),
1878            crate::operation::stop_job::StopJobError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1879            crate::operation::stop_job::StopJobError::Unhandled(inner) => Error::Unhandled(inner),
1880        }
1881    }
1882}
1883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_remote_access_session::StopRemoteAccessSessionError, R>>
1884    for Error
1885where
1886    R: Send + Sync + std::fmt::Debug + 'static,
1887{
1888    fn from(
1889        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_remote_access_session::StopRemoteAccessSessionError, R>,
1890    ) -> Self {
1891        match err {
1892            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1893            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1894                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1895                source: err.into(),
1896            }),
1897        }
1898    }
1899}
1900impl From<crate::operation::stop_remote_access_session::StopRemoteAccessSessionError> for Error {
1901    fn from(err: crate::operation::stop_remote_access_session::StopRemoteAccessSessionError) -> Self {
1902        match err {
1903            crate::operation::stop_remote_access_session::StopRemoteAccessSessionError::ArgumentException(inner) => Error::ArgumentException(inner),
1904            crate::operation::stop_remote_access_session::StopRemoteAccessSessionError::LimitExceededException(inner) => {
1905                Error::LimitExceededException(inner)
1906            }
1907            crate::operation::stop_remote_access_session::StopRemoteAccessSessionError::NotFoundException(inner) => Error::NotFoundException(inner),
1908            crate::operation::stop_remote_access_session::StopRemoteAccessSessionError::ServiceAccountException(inner) => {
1909                Error::ServiceAccountException(inner)
1910            }
1911            crate::operation::stop_remote_access_session::StopRemoteAccessSessionError::Unhandled(inner) => Error::Unhandled(inner),
1912        }
1913    }
1914}
1915impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_run::StopRunError, R>> for Error
1916where
1917    R: Send + Sync + std::fmt::Debug + 'static,
1918{
1919    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_run::StopRunError, R>) -> Self {
1920        match err {
1921            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1922            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1923                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1924                source: err.into(),
1925            }),
1926        }
1927    }
1928}
1929impl From<crate::operation::stop_run::StopRunError> for Error {
1930    fn from(err: crate::operation::stop_run::StopRunError) -> Self {
1931        match err {
1932            crate::operation::stop_run::StopRunError::ArgumentException(inner) => Error::ArgumentException(inner),
1933            crate::operation::stop_run::StopRunError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1934            crate::operation::stop_run::StopRunError::NotFoundException(inner) => Error::NotFoundException(inner),
1935            crate::operation::stop_run::StopRunError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
1936            crate::operation::stop_run::StopRunError::Unhandled(inner) => Error::Unhandled(inner),
1937        }
1938    }
1939}
1940impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1941where
1942    R: Send + Sync + std::fmt::Debug + 'static,
1943{
1944    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1945        match err {
1946            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1947            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1948                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1949                source: err.into(),
1950            }),
1951        }
1952    }
1953}
1954impl From<crate::operation::tag_resource::TagResourceError> for Error {
1955    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1956        match err {
1957            crate::operation::tag_resource::TagResourceError::ArgumentException(inner) => Error::ArgumentException(inner),
1958            crate::operation::tag_resource::TagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1959            crate::operation::tag_resource::TagResourceError::TagOperationException(inner) => Error::TagOperationException(inner),
1960            crate::operation::tag_resource::TagResourceError::TagPolicyException(inner) => Error::TagPolicyException(inner),
1961            crate::operation::tag_resource::TagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
1962            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1963        }
1964    }
1965}
1966impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1967where
1968    R: Send + Sync + std::fmt::Debug + 'static,
1969{
1970    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1971        match err {
1972            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1973            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1974                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1975                source: err.into(),
1976            }),
1977        }
1978    }
1979}
1980impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1981    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1982        match err {
1983            crate::operation::untag_resource::UntagResourceError::ArgumentException(inner) => Error::ArgumentException(inner),
1984            crate::operation::untag_resource::UntagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1985            crate::operation::untag_resource::UntagResourceError::TagOperationException(inner) => Error::TagOperationException(inner),
1986            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1987        }
1988    }
1989}
1990impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device_instance::UpdateDeviceInstanceError, R>> for Error
1991where
1992    R: Send + Sync + std::fmt::Debug + 'static,
1993{
1994    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device_instance::UpdateDeviceInstanceError, R>) -> Self {
1995        match err {
1996            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1997            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1998                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1999                source: err.into(),
2000            }),
2001        }
2002    }
2003}
2004impl From<crate::operation::update_device_instance::UpdateDeviceInstanceError> for Error {
2005    fn from(err: crate::operation::update_device_instance::UpdateDeviceInstanceError) -> Self {
2006        match err {
2007            crate::operation::update_device_instance::UpdateDeviceInstanceError::ArgumentException(inner) => Error::ArgumentException(inner),
2008            crate::operation::update_device_instance::UpdateDeviceInstanceError::LimitExceededException(inner) => {
2009                Error::LimitExceededException(inner)
2010            }
2011            crate::operation::update_device_instance::UpdateDeviceInstanceError::NotFoundException(inner) => Error::NotFoundException(inner),
2012            crate::operation::update_device_instance::UpdateDeviceInstanceError::ServiceAccountException(inner) => {
2013                Error::ServiceAccountException(inner)
2014            }
2015            crate::operation::update_device_instance::UpdateDeviceInstanceError::Unhandled(inner) => Error::Unhandled(inner),
2016        }
2017    }
2018}
2019impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device_pool::UpdateDevicePoolError, R>> for Error
2020where
2021    R: Send + Sync + std::fmt::Debug + 'static,
2022{
2023    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device_pool::UpdateDevicePoolError, R>) -> Self {
2024        match err {
2025            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2026            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2027                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2028                source: err.into(),
2029            }),
2030        }
2031    }
2032}
2033impl From<crate::operation::update_device_pool::UpdateDevicePoolError> for Error {
2034    fn from(err: crate::operation::update_device_pool::UpdateDevicePoolError) -> Self {
2035        match err {
2036            crate::operation::update_device_pool::UpdateDevicePoolError::ArgumentException(inner) => Error::ArgumentException(inner),
2037            crate::operation::update_device_pool::UpdateDevicePoolError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2038            crate::operation::update_device_pool::UpdateDevicePoolError::NotFoundException(inner) => Error::NotFoundException(inner),
2039            crate::operation::update_device_pool::UpdateDevicePoolError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
2040            crate::operation::update_device_pool::UpdateDevicePoolError::Unhandled(inner) => Error::Unhandled(inner),
2041        }
2042    }
2043}
2044impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_instance_profile::UpdateInstanceProfileError, R>> for Error
2045where
2046    R: Send + Sync + std::fmt::Debug + 'static,
2047{
2048    fn from(
2049        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_instance_profile::UpdateInstanceProfileError, R>,
2050    ) -> Self {
2051        match err {
2052            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2053            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2054                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2055                source: err.into(),
2056            }),
2057        }
2058    }
2059}
2060impl From<crate::operation::update_instance_profile::UpdateInstanceProfileError> for Error {
2061    fn from(err: crate::operation::update_instance_profile::UpdateInstanceProfileError) -> Self {
2062        match err {
2063            crate::operation::update_instance_profile::UpdateInstanceProfileError::ArgumentException(inner) => Error::ArgumentException(inner),
2064            crate::operation::update_instance_profile::UpdateInstanceProfileError::LimitExceededException(inner) => {
2065                Error::LimitExceededException(inner)
2066            }
2067            crate::operation::update_instance_profile::UpdateInstanceProfileError::NotFoundException(inner) => Error::NotFoundException(inner),
2068            crate::operation::update_instance_profile::UpdateInstanceProfileError::ServiceAccountException(inner) => {
2069                Error::ServiceAccountException(inner)
2070            }
2071            crate::operation::update_instance_profile::UpdateInstanceProfileError::Unhandled(inner) => Error::Unhandled(inner),
2072        }
2073    }
2074}
2075impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network_profile::UpdateNetworkProfileError, R>> for Error
2076where
2077    R: Send + Sync + std::fmt::Debug + 'static,
2078{
2079    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network_profile::UpdateNetworkProfileError, R>) -> Self {
2080        match err {
2081            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2082            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2083                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2084                source: err.into(),
2085            }),
2086        }
2087    }
2088}
2089impl From<crate::operation::update_network_profile::UpdateNetworkProfileError> for Error {
2090    fn from(err: crate::operation::update_network_profile::UpdateNetworkProfileError) -> Self {
2091        match err {
2092            crate::operation::update_network_profile::UpdateNetworkProfileError::ArgumentException(inner) => Error::ArgumentException(inner),
2093            crate::operation::update_network_profile::UpdateNetworkProfileError::LimitExceededException(inner) => {
2094                Error::LimitExceededException(inner)
2095            }
2096            crate::operation::update_network_profile::UpdateNetworkProfileError::NotFoundException(inner) => Error::NotFoundException(inner),
2097            crate::operation::update_network_profile::UpdateNetworkProfileError::ServiceAccountException(inner) => {
2098                Error::ServiceAccountException(inner)
2099            }
2100            crate::operation::update_network_profile::UpdateNetworkProfileError::Unhandled(inner) => Error::Unhandled(inner),
2101        }
2102    }
2103}
2104impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>> for Error
2105where
2106    R: Send + Sync + std::fmt::Debug + 'static,
2107{
2108    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>) -> Self {
2109        match err {
2110            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2111            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2112                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2113                source: err.into(),
2114            }),
2115        }
2116    }
2117}
2118impl From<crate::operation::update_project::UpdateProjectError> for Error {
2119    fn from(err: crate::operation::update_project::UpdateProjectError) -> Self {
2120        match err {
2121            crate::operation::update_project::UpdateProjectError::ArgumentException(inner) => Error::ArgumentException(inner),
2122            crate::operation::update_project::UpdateProjectError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2123            crate::operation::update_project::UpdateProjectError::NotFoundException(inner) => Error::NotFoundException(inner),
2124            crate::operation::update_project::UpdateProjectError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
2125            crate::operation::update_project::UpdateProjectError::Unhandled(inner) => Error::Unhandled(inner),
2126        }
2127    }
2128}
2129impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_test_grid_project::UpdateTestGridProjectError, R>> for Error
2130where
2131    R: Send + Sync + std::fmt::Debug + 'static,
2132{
2133    fn from(
2134        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_test_grid_project::UpdateTestGridProjectError, R>,
2135    ) -> Self {
2136        match err {
2137            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2138            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2139                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2140                source: err.into(),
2141            }),
2142        }
2143    }
2144}
2145impl From<crate::operation::update_test_grid_project::UpdateTestGridProjectError> for Error {
2146    fn from(err: crate::operation::update_test_grid_project::UpdateTestGridProjectError) -> Self {
2147        match err {
2148            crate::operation::update_test_grid_project::UpdateTestGridProjectError::ArgumentException(inner) => Error::ArgumentException(inner),
2149            crate::operation::update_test_grid_project::UpdateTestGridProjectError::InternalServiceException(inner) => {
2150                Error::InternalServiceException(inner)
2151            }
2152            crate::operation::update_test_grid_project::UpdateTestGridProjectError::LimitExceededException(inner) => {
2153                Error::LimitExceededException(inner)
2154            }
2155            crate::operation::update_test_grid_project::UpdateTestGridProjectError::NotFoundException(inner) => Error::NotFoundException(inner),
2156            crate::operation::update_test_grid_project::UpdateTestGridProjectError::Unhandled(inner) => Error::Unhandled(inner),
2157        }
2158    }
2159}
2160impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_upload::UpdateUploadError, R>> for Error
2161where
2162    R: Send + Sync + std::fmt::Debug + 'static,
2163{
2164    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_upload::UpdateUploadError, R>) -> Self {
2165        match err {
2166            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2167            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2168                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2169                source: err.into(),
2170            }),
2171        }
2172    }
2173}
2174impl From<crate::operation::update_upload::UpdateUploadError> for Error {
2175    fn from(err: crate::operation::update_upload::UpdateUploadError) -> Self {
2176        match err {
2177            crate::operation::update_upload::UpdateUploadError::ArgumentException(inner) => Error::ArgumentException(inner),
2178            crate::operation::update_upload::UpdateUploadError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2179            crate::operation::update_upload::UpdateUploadError::NotFoundException(inner) => Error::NotFoundException(inner),
2180            crate::operation::update_upload::UpdateUploadError::ServiceAccountException(inner) => Error::ServiceAccountException(inner),
2181            crate::operation::update_upload::UpdateUploadError::Unhandled(inner) => Error::Unhandled(inner),
2182        }
2183    }
2184}
2185impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_vpce_configuration::UpdateVPCEConfigurationError, R>>
2186    for Error
2187where
2188    R: Send + Sync + std::fmt::Debug + 'static,
2189{
2190    fn from(
2191        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_vpce_configuration::UpdateVPCEConfigurationError, R>,
2192    ) -> Self {
2193        match err {
2194            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2195            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2196                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2197                source: err.into(),
2198            }),
2199        }
2200    }
2201}
2202impl From<crate::operation::update_vpce_configuration::UpdateVPCEConfigurationError> for Error {
2203    fn from(err: crate::operation::update_vpce_configuration::UpdateVPCEConfigurationError) -> Self {
2204        match err {
2205            crate::operation::update_vpce_configuration::UpdateVPCEConfigurationError::ArgumentException(inner) => Error::ArgumentException(inner),
2206            crate::operation::update_vpce_configuration::UpdateVPCEConfigurationError::InvalidOperationException(inner) => {
2207                Error::InvalidOperationException(inner)
2208            }
2209            crate::operation::update_vpce_configuration::UpdateVPCEConfigurationError::NotFoundException(inner) => Error::NotFoundException(inner),
2210            crate::operation::update_vpce_configuration::UpdateVPCEConfigurationError::ServiceAccountException(inner) => {
2211                Error::ServiceAccountException(inner)
2212            }
2213            crate::operation::update_vpce_configuration::UpdateVPCEConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2214        }
2215    }
2216}
2217impl ::std::error::Error for Error {
2218    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2219        match self {
2220            Error::ArgumentException(inner) => inner.source(),
2221            Error::CannotDeleteException(inner) => inner.source(),
2222            Error::IdempotencyException(inner) => inner.source(),
2223            Error::InternalServiceException(inner) => inner.source(),
2224            Error::InvalidOperationException(inner) => inner.source(),
2225            Error::LimitExceededException(inner) => inner.source(),
2226            Error::NotEligibleException(inner) => inner.source(),
2227            Error::NotFoundException(inner) => inner.source(),
2228            Error::ServiceAccountException(inner) => inner.source(),
2229            Error::TagOperationException(inner) => inner.source(),
2230            Error::TagPolicyException(inner) => inner.source(),
2231            Error::TooManyTagsException(inner) => inner.source(),
2232            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2233        }
2234    }
2235}
2236impl ::aws_types::request_id::RequestId for Error {
2237    fn request_id(&self) -> Option<&str> {
2238        match self {
2239            Self::ArgumentException(e) => e.request_id(),
2240            Self::CannotDeleteException(e) => e.request_id(),
2241            Self::IdempotencyException(e) => e.request_id(),
2242            Self::InternalServiceException(e) => e.request_id(),
2243            Self::InvalidOperationException(e) => e.request_id(),
2244            Self::LimitExceededException(e) => e.request_id(),
2245            Self::NotEligibleException(e) => e.request_id(),
2246            Self::NotFoundException(e) => e.request_id(),
2247            Self::ServiceAccountException(e) => e.request_id(),
2248            Self::TagOperationException(e) => e.request_id(),
2249            Self::TagPolicyException(e) => e.request_id(),
2250            Self::TooManyTagsException(e) => e.request_id(),
2251            Self::Unhandled(e) => e.meta.request_id(),
2252        }
2253    }
2254}