aws_sdk_datasync/
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>This exception is thrown when an error occurs in the DataSync service.</p>
7    InternalException(crate::types::error::InternalException),
8    /// <p>This exception is thrown when the client submits a malformed request.</p>
9    InvalidRequestException(crate::types::error::InvalidRequestException),
10    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
11    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
12    variable wildcard pattern and check `.code()`:
13     \
14    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
15     \
16    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
17    Unhandled(crate::error::sealed_unhandled::Unhandled),
18}
19impl ::std::fmt::Display for Error {
20    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
21        match self {
22            Error::InternalException(inner) => inner.fmt(f),
23            Error::InvalidRequestException(inner) => inner.fmt(f),
24            Error::Unhandled(_) => {
25                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
26                    write!(f, "unhandled error ({code})")
27                } else {
28                    f.write_str("unhandled error")
29                }
30            }
31        }
32    }
33}
34impl From<::aws_smithy_types::error::operation::BuildError> for Error {
35    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
36        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
37            source: value.into(),
38            meta: ::std::default::Default::default(),
39        })
40    }
41}
42impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
43    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
44        match self {
45            Self::InternalException(inner) => inner.meta(),
46            Self::InvalidRequestException(inner) => inner.meta(),
47            Self::Unhandled(inner) => &inner.meta,
48        }
49    }
50}
51impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_task_execution::CancelTaskExecutionError, R>> for Error
52where
53    R: Send + Sync + std::fmt::Debug + 'static,
54{
55    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_task_execution::CancelTaskExecutionError, R>) -> Self {
56        match err {
57            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
58            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
59                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
60                source: err.into(),
61            }),
62        }
63    }
64}
65impl From<crate::operation::cancel_task_execution::CancelTaskExecutionError> for Error {
66    fn from(err: crate::operation::cancel_task_execution::CancelTaskExecutionError) -> Self {
67        match err {
68            crate::operation::cancel_task_execution::CancelTaskExecutionError::InternalException(inner) => Error::InternalException(inner),
69            crate::operation::cancel_task_execution::CancelTaskExecutionError::InvalidRequestException(inner) => {
70                Error::InvalidRequestException(inner)
71            }
72            crate::operation::cancel_task_execution::CancelTaskExecutionError::Unhandled(inner) => Error::Unhandled(inner),
73        }
74    }
75}
76impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent::CreateAgentError, R>> for Error
77where
78    R: Send + Sync + std::fmt::Debug + 'static,
79{
80    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_agent::CreateAgentError, R>) -> Self {
81        match err {
82            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
83            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
84                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
85                source: err.into(),
86            }),
87        }
88    }
89}
90impl From<crate::operation::create_agent::CreateAgentError> for Error {
91    fn from(err: crate::operation::create_agent::CreateAgentError) -> Self {
92        match err {
93            crate::operation::create_agent::CreateAgentError::InternalException(inner) => Error::InternalException(inner),
94            crate::operation::create_agent::CreateAgentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
95            crate::operation::create_agent::CreateAgentError::Unhandled(inner) => Error::Unhandled(inner),
96        }
97    }
98}
99impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_azure_blob::CreateLocationAzureBlobError, R>>
100    for Error
101where
102    R: Send + Sync + std::fmt::Debug + 'static,
103{
104    fn from(
105        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_azure_blob::CreateLocationAzureBlobError, R>,
106    ) -> Self {
107        match err {
108            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
109            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
110                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
111                source: err.into(),
112            }),
113        }
114    }
115}
116impl From<crate::operation::create_location_azure_blob::CreateLocationAzureBlobError> for Error {
117    fn from(err: crate::operation::create_location_azure_blob::CreateLocationAzureBlobError) -> Self {
118        match err {
119            crate::operation::create_location_azure_blob::CreateLocationAzureBlobError::InternalException(inner) => Error::InternalException(inner),
120            crate::operation::create_location_azure_blob::CreateLocationAzureBlobError::InvalidRequestException(inner) => {
121                Error::InvalidRequestException(inner)
122            }
123            crate::operation::create_location_azure_blob::CreateLocationAzureBlobError::Unhandled(inner) => Error::Unhandled(inner),
124        }
125    }
126}
127impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_efs::CreateLocationEfsError, R>> for Error
128where
129    R: Send + Sync + std::fmt::Debug + 'static,
130{
131    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_efs::CreateLocationEfsError, R>) -> Self {
132        match err {
133            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
134            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
135                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
136                source: err.into(),
137            }),
138        }
139    }
140}
141impl From<crate::operation::create_location_efs::CreateLocationEfsError> for Error {
142    fn from(err: crate::operation::create_location_efs::CreateLocationEfsError) -> Self {
143        match err {
144            crate::operation::create_location_efs::CreateLocationEfsError::InternalException(inner) => Error::InternalException(inner),
145            crate::operation::create_location_efs::CreateLocationEfsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
146            crate::operation::create_location_efs::CreateLocationEfsError::Unhandled(inner) => Error::Unhandled(inner),
147        }
148    }
149}
150impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_fsx_lustre::CreateLocationFsxLustreError, R>>
151    for Error
152where
153    R: Send + Sync + std::fmt::Debug + 'static,
154{
155    fn from(
156        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_fsx_lustre::CreateLocationFsxLustreError, R>,
157    ) -> Self {
158        match err {
159            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
160            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
161                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
162                source: err.into(),
163            }),
164        }
165    }
166}
167impl From<crate::operation::create_location_fsx_lustre::CreateLocationFsxLustreError> for Error {
168    fn from(err: crate::operation::create_location_fsx_lustre::CreateLocationFsxLustreError) -> Self {
169        match err {
170            crate::operation::create_location_fsx_lustre::CreateLocationFsxLustreError::InternalException(inner) => Error::InternalException(inner),
171            crate::operation::create_location_fsx_lustre::CreateLocationFsxLustreError::InvalidRequestException(inner) => {
172                Error::InvalidRequestException(inner)
173            }
174            crate::operation::create_location_fsx_lustre::CreateLocationFsxLustreError::Unhandled(inner) => Error::Unhandled(inner),
175        }
176    }
177}
178impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapError, R>>
179    for Error
180where
181    R: Send + Sync + std::fmt::Debug + 'static,
182{
183    fn from(
184        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapError, R>,
185    ) -> Self {
186        match err {
187            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
188            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
189                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
190                source: err.into(),
191            }),
192        }
193    }
194}
195impl From<crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapError> for Error {
196    fn from(err: crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapError) -> Self {
197        match err {
198            crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapError::InternalException(inner) => Error::InternalException(inner),
199            crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapError::InvalidRequestException(inner) => {
200                Error::InvalidRequestException(inner)
201            }
202            crate::operation::create_location_fsx_ontap::CreateLocationFsxOntapError::Unhandled(inner) => Error::Unhandled(inner),
203        }
204    }
205}
206impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_fsx_open_zfs::CreateLocationFsxOpenZfsError, R>>
207    for Error
208where
209    R: Send + Sync + std::fmt::Debug + 'static,
210{
211    fn from(
212        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_fsx_open_zfs::CreateLocationFsxOpenZfsError, R>,
213    ) -> Self {
214        match err {
215            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
216            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
217                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
218                source: err.into(),
219            }),
220        }
221    }
222}
223impl From<crate::operation::create_location_fsx_open_zfs::CreateLocationFsxOpenZfsError> for Error {
224    fn from(err: crate::operation::create_location_fsx_open_zfs::CreateLocationFsxOpenZfsError) -> Self {
225        match err {
226            crate::operation::create_location_fsx_open_zfs::CreateLocationFsxOpenZfsError::InternalException(inner) => {
227                Error::InternalException(inner)
228            }
229            crate::operation::create_location_fsx_open_zfs::CreateLocationFsxOpenZfsError::InvalidRequestException(inner) => {
230                Error::InvalidRequestException(inner)
231            }
232            crate::operation::create_location_fsx_open_zfs::CreateLocationFsxOpenZfsError::Unhandled(inner) => Error::Unhandled(inner),
233        }
234    }
235}
236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_fsx_windows::CreateLocationFsxWindowsError, R>>
237    for Error
238where
239    R: Send + Sync + std::fmt::Debug + 'static,
240{
241    fn from(
242        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_fsx_windows::CreateLocationFsxWindowsError, R>,
243    ) -> Self {
244        match err {
245            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
246            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
247                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
248                source: err.into(),
249            }),
250        }
251    }
252}
253impl From<crate::operation::create_location_fsx_windows::CreateLocationFsxWindowsError> for Error {
254    fn from(err: crate::operation::create_location_fsx_windows::CreateLocationFsxWindowsError) -> Self {
255        match err {
256            crate::operation::create_location_fsx_windows::CreateLocationFsxWindowsError::InternalException(inner) => Error::InternalException(inner),
257            crate::operation::create_location_fsx_windows::CreateLocationFsxWindowsError::InvalidRequestException(inner) => {
258                Error::InvalidRequestException(inner)
259            }
260            crate::operation::create_location_fsx_windows::CreateLocationFsxWindowsError::Unhandled(inner) => Error::Unhandled(inner),
261        }
262    }
263}
264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_hdfs::CreateLocationHdfsError, R>> for Error
265where
266    R: Send + Sync + std::fmt::Debug + 'static,
267{
268    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_hdfs::CreateLocationHdfsError, R>) -> Self {
269        match err {
270            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
271            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
272                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
273                source: err.into(),
274            }),
275        }
276    }
277}
278impl From<crate::operation::create_location_hdfs::CreateLocationHdfsError> for Error {
279    fn from(err: crate::operation::create_location_hdfs::CreateLocationHdfsError) -> Self {
280        match err {
281            crate::operation::create_location_hdfs::CreateLocationHdfsError::InternalException(inner) => Error::InternalException(inner),
282            crate::operation::create_location_hdfs::CreateLocationHdfsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
283            crate::operation::create_location_hdfs::CreateLocationHdfsError::Unhandled(inner) => Error::Unhandled(inner),
284        }
285    }
286}
287impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_nfs::CreateLocationNfsError, R>> for Error
288where
289    R: Send + Sync + std::fmt::Debug + 'static,
290{
291    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_nfs::CreateLocationNfsError, R>) -> Self {
292        match err {
293            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
294            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
295                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
296                source: err.into(),
297            }),
298        }
299    }
300}
301impl From<crate::operation::create_location_nfs::CreateLocationNfsError> for Error {
302    fn from(err: crate::operation::create_location_nfs::CreateLocationNfsError) -> Self {
303        match err {
304            crate::operation::create_location_nfs::CreateLocationNfsError::InternalException(inner) => Error::InternalException(inner),
305            crate::operation::create_location_nfs::CreateLocationNfsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
306            crate::operation::create_location_nfs::CreateLocationNfsError::Unhandled(inner) => Error::Unhandled(inner),
307        }
308    }
309}
310impl<R>
311    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_object_storage::CreateLocationObjectStorageError, R>>
312    for Error
313where
314    R: Send + Sync + std::fmt::Debug + 'static,
315{
316    fn from(
317        err: ::aws_smithy_runtime_api::client::result::SdkError<
318            crate::operation::create_location_object_storage::CreateLocationObjectStorageError,
319            R,
320        >,
321    ) -> Self {
322        match err {
323            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
324            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
325                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
326                source: err.into(),
327            }),
328        }
329    }
330}
331impl From<crate::operation::create_location_object_storage::CreateLocationObjectStorageError> for Error {
332    fn from(err: crate::operation::create_location_object_storage::CreateLocationObjectStorageError) -> Self {
333        match err {
334            crate::operation::create_location_object_storage::CreateLocationObjectStorageError::InternalException(inner) => {
335                Error::InternalException(inner)
336            }
337            crate::operation::create_location_object_storage::CreateLocationObjectStorageError::InvalidRequestException(inner) => {
338                Error::InvalidRequestException(inner)
339            }
340            crate::operation::create_location_object_storage::CreateLocationObjectStorageError::Unhandled(inner) => Error::Unhandled(inner),
341        }
342    }
343}
344impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_s3::CreateLocationS3Error, R>> for Error
345where
346    R: Send + Sync + std::fmt::Debug + 'static,
347{
348    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_s3::CreateLocationS3Error, R>) -> Self {
349        match err {
350            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
351            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
352                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
353                source: err.into(),
354            }),
355        }
356    }
357}
358impl From<crate::operation::create_location_s3::CreateLocationS3Error> for Error {
359    fn from(err: crate::operation::create_location_s3::CreateLocationS3Error) -> Self {
360        match err {
361            crate::operation::create_location_s3::CreateLocationS3Error::InternalException(inner) => Error::InternalException(inner),
362            crate::operation::create_location_s3::CreateLocationS3Error::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
363            crate::operation::create_location_s3::CreateLocationS3Error::Unhandled(inner) => Error::Unhandled(inner),
364        }
365    }
366}
367impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_smb::CreateLocationSmbError, R>> for Error
368where
369    R: Send + Sync + std::fmt::Debug + 'static,
370{
371    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_location_smb::CreateLocationSmbError, R>) -> Self {
372        match err {
373            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
374            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
375                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
376                source: err.into(),
377            }),
378        }
379    }
380}
381impl From<crate::operation::create_location_smb::CreateLocationSmbError> for Error {
382    fn from(err: crate::operation::create_location_smb::CreateLocationSmbError) -> Self {
383        match err {
384            crate::operation::create_location_smb::CreateLocationSmbError::InternalException(inner) => Error::InternalException(inner),
385            crate::operation::create_location_smb::CreateLocationSmbError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
386            crate::operation::create_location_smb::CreateLocationSmbError::Unhandled(inner) => Error::Unhandled(inner),
387        }
388    }
389}
390impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_task::CreateTaskError, R>> for Error
391where
392    R: Send + Sync + std::fmt::Debug + 'static,
393{
394    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_task::CreateTaskError, R>) -> Self {
395        match err {
396            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
397            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
398                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
399                source: err.into(),
400            }),
401        }
402    }
403}
404impl From<crate::operation::create_task::CreateTaskError> for Error {
405    fn from(err: crate::operation::create_task::CreateTaskError) -> Self {
406        match err {
407            crate::operation::create_task::CreateTaskError::InternalException(inner) => Error::InternalException(inner),
408            crate::operation::create_task::CreateTaskError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
409            crate::operation::create_task::CreateTaskError::Unhandled(inner) => Error::Unhandled(inner),
410        }
411    }
412}
413impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent::DeleteAgentError, R>> for Error
414where
415    R: Send + Sync + std::fmt::Debug + 'static,
416{
417    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_agent::DeleteAgentError, R>) -> Self {
418        match err {
419            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
420            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
421                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
422                source: err.into(),
423            }),
424        }
425    }
426}
427impl From<crate::operation::delete_agent::DeleteAgentError> for Error {
428    fn from(err: crate::operation::delete_agent::DeleteAgentError) -> Self {
429        match err {
430            crate::operation::delete_agent::DeleteAgentError::InternalException(inner) => Error::InternalException(inner),
431            crate::operation::delete_agent::DeleteAgentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
432            crate::operation::delete_agent::DeleteAgentError::Unhandled(inner) => Error::Unhandled(inner),
433        }
434    }
435}
436impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_location::DeleteLocationError, R>> for Error
437where
438    R: Send + Sync + std::fmt::Debug + 'static,
439{
440    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_location::DeleteLocationError, R>) -> Self {
441        match err {
442            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
443            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
444                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
445                source: err.into(),
446            }),
447        }
448    }
449}
450impl From<crate::operation::delete_location::DeleteLocationError> for Error {
451    fn from(err: crate::operation::delete_location::DeleteLocationError) -> Self {
452        match err {
453            crate::operation::delete_location::DeleteLocationError::InternalException(inner) => Error::InternalException(inner),
454            crate::operation::delete_location::DeleteLocationError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
455            crate::operation::delete_location::DeleteLocationError::Unhandled(inner) => Error::Unhandled(inner),
456        }
457    }
458}
459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_task::DeleteTaskError, R>> for Error
460where
461    R: Send + Sync + std::fmt::Debug + 'static,
462{
463    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_task::DeleteTaskError, R>) -> Self {
464        match err {
465            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
466            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
467                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
468                source: err.into(),
469            }),
470        }
471    }
472}
473impl From<crate::operation::delete_task::DeleteTaskError> for Error {
474    fn from(err: crate::operation::delete_task::DeleteTaskError) -> Self {
475        match err {
476            crate::operation::delete_task::DeleteTaskError::InternalException(inner) => Error::InternalException(inner),
477            crate::operation::delete_task::DeleteTaskError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
478            crate::operation::delete_task::DeleteTaskError::Unhandled(inner) => Error::Unhandled(inner),
479        }
480    }
481}
482impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_agent::DescribeAgentError, R>> for Error
483where
484    R: Send + Sync + std::fmt::Debug + 'static,
485{
486    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_agent::DescribeAgentError, R>) -> Self {
487        match err {
488            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
489            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
490                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
491                source: err.into(),
492            }),
493        }
494    }
495}
496impl From<crate::operation::describe_agent::DescribeAgentError> for Error {
497    fn from(err: crate::operation::describe_agent::DescribeAgentError) -> Self {
498        match err {
499            crate::operation::describe_agent::DescribeAgentError::InternalException(inner) => Error::InternalException(inner),
500            crate::operation::describe_agent::DescribeAgentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
501            crate::operation::describe_agent::DescribeAgentError::Unhandled(inner) => Error::Unhandled(inner),
502        }
503    }
504}
505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_azure_blob::DescribeLocationAzureBlobError, R>>
506    for Error
507where
508    R: Send + Sync + std::fmt::Debug + 'static,
509{
510    fn from(
511        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_azure_blob::DescribeLocationAzureBlobError, R>,
512    ) -> Self {
513        match err {
514            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
515            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
516                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
517                source: err.into(),
518            }),
519        }
520    }
521}
522impl From<crate::operation::describe_location_azure_blob::DescribeLocationAzureBlobError> for Error {
523    fn from(err: crate::operation::describe_location_azure_blob::DescribeLocationAzureBlobError) -> Self {
524        match err {
525            crate::operation::describe_location_azure_blob::DescribeLocationAzureBlobError::InternalException(inner) => {
526                Error::InternalException(inner)
527            }
528            crate::operation::describe_location_azure_blob::DescribeLocationAzureBlobError::InvalidRequestException(inner) => {
529                Error::InvalidRequestException(inner)
530            }
531            crate::operation::describe_location_azure_blob::DescribeLocationAzureBlobError::Unhandled(inner) => Error::Unhandled(inner),
532        }
533    }
534}
535impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_efs::DescribeLocationEfsError, R>> for Error
536where
537    R: Send + Sync + std::fmt::Debug + 'static,
538{
539    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_efs::DescribeLocationEfsError, R>) -> Self {
540        match err {
541            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
542            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
543                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
544                source: err.into(),
545            }),
546        }
547    }
548}
549impl From<crate::operation::describe_location_efs::DescribeLocationEfsError> for Error {
550    fn from(err: crate::operation::describe_location_efs::DescribeLocationEfsError) -> Self {
551        match err {
552            crate::operation::describe_location_efs::DescribeLocationEfsError::InternalException(inner) => Error::InternalException(inner),
553            crate::operation::describe_location_efs::DescribeLocationEfsError::InvalidRequestException(inner) => {
554                Error::InvalidRequestException(inner)
555            }
556            crate::operation::describe_location_efs::DescribeLocationEfsError::Unhandled(inner) => Error::Unhandled(inner),
557        }
558    }
559}
560impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_fsx_lustre::DescribeLocationFsxLustreError, R>>
561    for Error
562where
563    R: Send + Sync + std::fmt::Debug + 'static,
564{
565    fn from(
566        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_fsx_lustre::DescribeLocationFsxLustreError, R>,
567    ) -> Self {
568        match err {
569            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
570            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
571                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
572                source: err.into(),
573            }),
574        }
575    }
576}
577impl From<crate::operation::describe_location_fsx_lustre::DescribeLocationFsxLustreError> for Error {
578    fn from(err: crate::operation::describe_location_fsx_lustre::DescribeLocationFsxLustreError) -> Self {
579        match err {
580            crate::operation::describe_location_fsx_lustre::DescribeLocationFsxLustreError::InternalException(inner) => {
581                Error::InternalException(inner)
582            }
583            crate::operation::describe_location_fsx_lustre::DescribeLocationFsxLustreError::InvalidRequestException(inner) => {
584                Error::InvalidRequestException(inner)
585            }
586            crate::operation::describe_location_fsx_lustre::DescribeLocationFsxLustreError::Unhandled(inner) => Error::Unhandled(inner),
587        }
588    }
589}
590impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_fsx_ontap::DescribeLocationFsxOntapError, R>>
591    for Error
592where
593    R: Send + Sync + std::fmt::Debug + 'static,
594{
595    fn from(
596        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_fsx_ontap::DescribeLocationFsxOntapError, R>,
597    ) -> Self {
598        match err {
599            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
600            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
601                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
602                source: err.into(),
603            }),
604        }
605    }
606}
607impl From<crate::operation::describe_location_fsx_ontap::DescribeLocationFsxOntapError> for Error {
608    fn from(err: crate::operation::describe_location_fsx_ontap::DescribeLocationFsxOntapError) -> Self {
609        match err {
610            crate::operation::describe_location_fsx_ontap::DescribeLocationFsxOntapError::InternalException(inner) => Error::InternalException(inner),
611            crate::operation::describe_location_fsx_ontap::DescribeLocationFsxOntapError::InvalidRequestException(inner) => {
612                Error::InvalidRequestException(inner)
613            }
614            crate::operation::describe_location_fsx_ontap::DescribeLocationFsxOntapError::Unhandled(inner) => Error::Unhandled(inner),
615        }
616    }
617}
618impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_fsx_open_zfs::DescribeLocationFsxOpenZfsError, R>>
619    for Error
620where
621    R: Send + Sync + std::fmt::Debug + 'static,
622{
623    fn from(
624        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_fsx_open_zfs::DescribeLocationFsxOpenZfsError, R>,
625    ) -> Self {
626        match err {
627            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
628            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
629                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
630                source: err.into(),
631            }),
632        }
633    }
634}
635impl From<crate::operation::describe_location_fsx_open_zfs::DescribeLocationFsxOpenZfsError> for Error {
636    fn from(err: crate::operation::describe_location_fsx_open_zfs::DescribeLocationFsxOpenZfsError) -> Self {
637        match err {
638            crate::operation::describe_location_fsx_open_zfs::DescribeLocationFsxOpenZfsError::InternalException(inner) => {
639                Error::InternalException(inner)
640            }
641            crate::operation::describe_location_fsx_open_zfs::DescribeLocationFsxOpenZfsError::InvalidRequestException(inner) => {
642                Error::InvalidRequestException(inner)
643            }
644            crate::operation::describe_location_fsx_open_zfs::DescribeLocationFsxOpenZfsError::Unhandled(inner) => Error::Unhandled(inner),
645        }
646    }
647}
648impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_fsx_windows::DescribeLocationFsxWindowsError, R>>
649    for Error
650where
651    R: Send + Sync + std::fmt::Debug + 'static,
652{
653    fn from(
654        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_fsx_windows::DescribeLocationFsxWindowsError, R>,
655    ) -> Self {
656        match err {
657            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
658            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
659                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
660                source: err.into(),
661            }),
662        }
663    }
664}
665impl From<crate::operation::describe_location_fsx_windows::DescribeLocationFsxWindowsError> for Error {
666    fn from(err: crate::operation::describe_location_fsx_windows::DescribeLocationFsxWindowsError) -> Self {
667        match err {
668            crate::operation::describe_location_fsx_windows::DescribeLocationFsxWindowsError::InternalException(inner) => {
669                Error::InternalException(inner)
670            }
671            crate::operation::describe_location_fsx_windows::DescribeLocationFsxWindowsError::InvalidRequestException(inner) => {
672                Error::InvalidRequestException(inner)
673            }
674            crate::operation::describe_location_fsx_windows::DescribeLocationFsxWindowsError::Unhandled(inner) => Error::Unhandled(inner),
675        }
676    }
677}
678impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_hdfs::DescribeLocationHdfsError, R>> for Error
679where
680    R: Send + Sync + std::fmt::Debug + 'static,
681{
682    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_hdfs::DescribeLocationHdfsError, R>) -> Self {
683        match err {
684            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
685            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
686                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
687                source: err.into(),
688            }),
689        }
690    }
691}
692impl From<crate::operation::describe_location_hdfs::DescribeLocationHdfsError> for Error {
693    fn from(err: crate::operation::describe_location_hdfs::DescribeLocationHdfsError) -> Self {
694        match err {
695            crate::operation::describe_location_hdfs::DescribeLocationHdfsError::InternalException(inner) => Error::InternalException(inner),
696            crate::operation::describe_location_hdfs::DescribeLocationHdfsError::InvalidRequestException(inner) => {
697                Error::InvalidRequestException(inner)
698            }
699            crate::operation::describe_location_hdfs::DescribeLocationHdfsError::Unhandled(inner) => Error::Unhandled(inner),
700        }
701    }
702}
703impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_nfs::DescribeLocationNfsError, R>> for Error
704where
705    R: Send + Sync + std::fmt::Debug + 'static,
706{
707    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_nfs::DescribeLocationNfsError, R>) -> Self {
708        match err {
709            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
710            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
711                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
712                source: err.into(),
713            }),
714        }
715    }
716}
717impl From<crate::operation::describe_location_nfs::DescribeLocationNfsError> for Error {
718    fn from(err: crate::operation::describe_location_nfs::DescribeLocationNfsError) -> Self {
719        match err {
720            crate::operation::describe_location_nfs::DescribeLocationNfsError::InternalException(inner) => Error::InternalException(inner),
721            crate::operation::describe_location_nfs::DescribeLocationNfsError::InvalidRequestException(inner) => {
722                Error::InvalidRequestException(inner)
723            }
724            crate::operation::describe_location_nfs::DescribeLocationNfsError::Unhandled(inner) => Error::Unhandled(inner),
725        }
726    }
727}
728impl<R>
729    From<
730        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_object_storage::DescribeLocationObjectStorageError, R>,
731    > for Error
732where
733    R: Send + Sync + std::fmt::Debug + 'static,
734{
735    fn from(
736        err: ::aws_smithy_runtime_api::client::result::SdkError<
737            crate::operation::describe_location_object_storage::DescribeLocationObjectStorageError,
738            R,
739        >,
740    ) -> Self {
741        match err {
742            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
743            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
744                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
745                source: err.into(),
746            }),
747        }
748    }
749}
750impl From<crate::operation::describe_location_object_storage::DescribeLocationObjectStorageError> for Error {
751    fn from(err: crate::operation::describe_location_object_storage::DescribeLocationObjectStorageError) -> Self {
752        match err {
753            crate::operation::describe_location_object_storage::DescribeLocationObjectStorageError::InternalException(inner) => {
754                Error::InternalException(inner)
755            }
756            crate::operation::describe_location_object_storage::DescribeLocationObjectStorageError::InvalidRequestException(inner) => {
757                Error::InvalidRequestException(inner)
758            }
759            crate::operation::describe_location_object_storage::DescribeLocationObjectStorageError::Unhandled(inner) => Error::Unhandled(inner),
760        }
761    }
762}
763impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_s3::DescribeLocationS3Error, R>> for Error
764where
765    R: Send + Sync + std::fmt::Debug + 'static,
766{
767    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_s3::DescribeLocationS3Error, R>) -> Self {
768        match err {
769            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
770            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
771                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
772                source: err.into(),
773            }),
774        }
775    }
776}
777impl From<crate::operation::describe_location_s3::DescribeLocationS3Error> for Error {
778    fn from(err: crate::operation::describe_location_s3::DescribeLocationS3Error) -> Self {
779        match err {
780            crate::operation::describe_location_s3::DescribeLocationS3Error::InternalException(inner) => Error::InternalException(inner),
781            crate::operation::describe_location_s3::DescribeLocationS3Error::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
782            crate::operation::describe_location_s3::DescribeLocationS3Error::Unhandled(inner) => Error::Unhandled(inner),
783        }
784    }
785}
786impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_smb::DescribeLocationSmbError, R>> for Error
787where
788    R: Send + Sync + std::fmt::Debug + 'static,
789{
790    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_location_smb::DescribeLocationSmbError, R>) -> Self {
791        match err {
792            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
793            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
794                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
795                source: err.into(),
796            }),
797        }
798    }
799}
800impl From<crate::operation::describe_location_smb::DescribeLocationSmbError> for Error {
801    fn from(err: crate::operation::describe_location_smb::DescribeLocationSmbError) -> Self {
802        match err {
803            crate::operation::describe_location_smb::DescribeLocationSmbError::InternalException(inner) => Error::InternalException(inner),
804            crate::operation::describe_location_smb::DescribeLocationSmbError::InvalidRequestException(inner) => {
805                Error::InvalidRequestException(inner)
806            }
807            crate::operation::describe_location_smb::DescribeLocationSmbError::Unhandled(inner) => Error::Unhandled(inner),
808        }
809    }
810}
811impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_task::DescribeTaskError, R>> for Error
812where
813    R: Send + Sync + std::fmt::Debug + 'static,
814{
815    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_task::DescribeTaskError, R>) -> Self {
816        match err {
817            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
818            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
819                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
820                source: err.into(),
821            }),
822        }
823    }
824}
825impl From<crate::operation::describe_task::DescribeTaskError> for Error {
826    fn from(err: crate::operation::describe_task::DescribeTaskError) -> Self {
827        match err {
828            crate::operation::describe_task::DescribeTaskError::InternalException(inner) => Error::InternalException(inner),
829            crate::operation::describe_task::DescribeTaskError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
830            crate::operation::describe_task::DescribeTaskError::Unhandled(inner) => Error::Unhandled(inner),
831        }
832    }
833}
834impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_task_execution::DescribeTaskExecutionError, R>> for Error
835where
836    R: Send + Sync + std::fmt::Debug + 'static,
837{
838    fn from(
839        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_task_execution::DescribeTaskExecutionError, R>,
840    ) -> Self {
841        match err {
842            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
843            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
844                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
845                source: err.into(),
846            }),
847        }
848    }
849}
850impl From<crate::operation::describe_task_execution::DescribeTaskExecutionError> for Error {
851    fn from(err: crate::operation::describe_task_execution::DescribeTaskExecutionError) -> Self {
852        match err {
853            crate::operation::describe_task_execution::DescribeTaskExecutionError::InternalException(inner) => Error::InternalException(inner),
854            crate::operation::describe_task_execution::DescribeTaskExecutionError::InvalidRequestException(inner) => {
855                Error::InvalidRequestException(inner)
856            }
857            crate::operation::describe_task_execution::DescribeTaskExecutionError::Unhandled(inner) => Error::Unhandled(inner),
858        }
859    }
860}
861impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agents::ListAgentsError, R>> for Error
862where
863    R: Send + Sync + std::fmt::Debug + 'static,
864{
865    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_agents::ListAgentsError, R>) -> Self {
866        match err {
867            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
868            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
869                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
870                source: err.into(),
871            }),
872        }
873    }
874}
875impl From<crate::operation::list_agents::ListAgentsError> for Error {
876    fn from(err: crate::operation::list_agents::ListAgentsError) -> Self {
877        match err {
878            crate::operation::list_agents::ListAgentsError::InternalException(inner) => Error::InternalException(inner),
879            crate::operation::list_agents::ListAgentsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
880            crate::operation::list_agents::ListAgentsError::Unhandled(inner) => Error::Unhandled(inner),
881        }
882    }
883}
884impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_locations::ListLocationsError, R>> for Error
885where
886    R: Send + Sync + std::fmt::Debug + 'static,
887{
888    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_locations::ListLocationsError, R>) -> Self {
889        match err {
890            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
891            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
892                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
893                source: err.into(),
894            }),
895        }
896    }
897}
898impl From<crate::operation::list_locations::ListLocationsError> for Error {
899    fn from(err: crate::operation::list_locations::ListLocationsError) -> Self {
900        match err {
901            crate::operation::list_locations::ListLocationsError::InternalException(inner) => Error::InternalException(inner),
902            crate::operation::list_locations::ListLocationsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
903            crate::operation::list_locations::ListLocationsError::Unhandled(inner) => Error::Unhandled(inner),
904        }
905    }
906}
907impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
908where
909    R: Send + Sync + std::fmt::Debug + 'static,
910{
911    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
912        match err {
913            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
914            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
915                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
916                source: err.into(),
917            }),
918        }
919    }
920}
921impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
922    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
923        match err {
924            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalException(inner) => Error::InternalException(inner),
925            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidRequestException(inner) => {
926                Error::InvalidRequestException(inner)
927            }
928            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
929        }
930    }
931}
932impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_task_executions::ListTaskExecutionsError, R>> for Error
933where
934    R: Send + Sync + std::fmt::Debug + 'static,
935{
936    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_task_executions::ListTaskExecutionsError, R>) -> Self {
937        match err {
938            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
939            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
940                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
941                source: err.into(),
942            }),
943        }
944    }
945}
946impl From<crate::operation::list_task_executions::ListTaskExecutionsError> for Error {
947    fn from(err: crate::operation::list_task_executions::ListTaskExecutionsError) -> Self {
948        match err {
949            crate::operation::list_task_executions::ListTaskExecutionsError::InternalException(inner) => Error::InternalException(inner),
950            crate::operation::list_task_executions::ListTaskExecutionsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
951            crate::operation::list_task_executions::ListTaskExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
952        }
953    }
954}
955impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tasks::ListTasksError, R>> for Error
956where
957    R: Send + Sync + std::fmt::Debug + 'static,
958{
959    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tasks::ListTasksError, R>) -> Self {
960        match err {
961            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
962            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
963                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
964                source: err.into(),
965            }),
966        }
967    }
968}
969impl From<crate::operation::list_tasks::ListTasksError> for Error {
970    fn from(err: crate::operation::list_tasks::ListTasksError) -> Self {
971        match err {
972            crate::operation::list_tasks::ListTasksError::InternalException(inner) => Error::InternalException(inner),
973            crate::operation::list_tasks::ListTasksError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
974            crate::operation::list_tasks::ListTasksError::Unhandled(inner) => Error::Unhandled(inner),
975        }
976    }
977}
978impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_task_execution::StartTaskExecutionError, R>> for Error
979where
980    R: Send + Sync + std::fmt::Debug + 'static,
981{
982    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_task_execution::StartTaskExecutionError, R>) -> Self {
983        match err {
984            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
985            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
986                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
987                source: err.into(),
988            }),
989        }
990    }
991}
992impl From<crate::operation::start_task_execution::StartTaskExecutionError> for Error {
993    fn from(err: crate::operation::start_task_execution::StartTaskExecutionError) -> Self {
994        match err {
995            crate::operation::start_task_execution::StartTaskExecutionError::InternalException(inner) => Error::InternalException(inner),
996            crate::operation::start_task_execution::StartTaskExecutionError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
997            crate::operation::start_task_execution::StartTaskExecutionError::Unhandled(inner) => Error::Unhandled(inner),
998        }
999    }
1000}
1001impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1002where
1003    R: Send + Sync + std::fmt::Debug + 'static,
1004{
1005    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1006        match err {
1007            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1008            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1009                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1010                source: err.into(),
1011            }),
1012        }
1013    }
1014}
1015impl From<crate::operation::tag_resource::TagResourceError> for Error {
1016    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1017        match err {
1018            crate::operation::tag_resource::TagResourceError::InternalException(inner) => Error::InternalException(inner),
1019            crate::operation::tag_resource::TagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1020            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1021        }
1022    }
1023}
1024impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1025where
1026    R: Send + Sync + std::fmt::Debug + 'static,
1027{
1028    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1029        match err {
1030            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1031            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1032                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1033                source: err.into(),
1034            }),
1035        }
1036    }
1037}
1038impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1039    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1040        match err {
1041            crate::operation::untag_resource::UntagResourceError::InternalException(inner) => Error::InternalException(inner),
1042            crate::operation::untag_resource::UntagResourceError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1043            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1044        }
1045    }
1046}
1047impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent::UpdateAgentError, R>> for Error
1048where
1049    R: Send + Sync + std::fmt::Debug + 'static,
1050{
1051    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_agent::UpdateAgentError, R>) -> Self {
1052        match err {
1053            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1054            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1055                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1056                source: err.into(),
1057            }),
1058        }
1059    }
1060}
1061impl From<crate::operation::update_agent::UpdateAgentError> for Error {
1062    fn from(err: crate::operation::update_agent::UpdateAgentError) -> Self {
1063        match err {
1064            crate::operation::update_agent::UpdateAgentError::InternalException(inner) => Error::InternalException(inner),
1065            crate::operation::update_agent::UpdateAgentError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1066            crate::operation::update_agent::UpdateAgentError::Unhandled(inner) => Error::Unhandled(inner),
1067        }
1068    }
1069}
1070impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_azure_blob::UpdateLocationAzureBlobError, R>>
1071    for Error
1072where
1073    R: Send + Sync + std::fmt::Debug + 'static,
1074{
1075    fn from(
1076        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_azure_blob::UpdateLocationAzureBlobError, R>,
1077    ) -> Self {
1078        match err {
1079            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1080            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1081                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1082                source: err.into(),
1083            }),
1084        }
1085    }
1086}
1087impl From<crate::operation::update_location_azure_blob::UpdateLocationAzureBlobError> for Error {
1088    fn from(err: crate::operation::update_location_azure_blob::UpdateLocationAzureBlobError) -> Self {
1089        match err {
1090            crate::operation::update_location_azure_blob::UpdateLocationAzureBlobError::InternalException(inner) => Error::InternalException(inner),
1091            crate::operation::update_location_azure_blob::UpdateLocationAzureBlobError::InvalidRequestException(inner) => {
1092                Error::InvalidRequestException(inner)
1093            }
1094            crate::operation::update_location_azure_blob::UpdateLocationAzureBlobError::Unhandled(inner) => Error::Unhandled(inner),
1095        }
1096    }
1097}
1098impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_efs::UpdateLocationEfsError, R>> for Error
1099where
1100    R: Send + Sync + std::fmt::Debug + 'static,
1101{
1102    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_efs::UpdateLocationEfsError, R>) -> Self {
1103        match err {
1104            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1105            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1106                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1107                source: err.into(),
1108            }),
1109        }
1110    }
1111}
1112impl From<crate::operation::update_location_efs::UpdateLocationEfsError> for Error {
1113    fn from(err: crate::operation::update_location_efs::UpdateLocationEfsError) -> Self {
1114        match err {
1115            crate::operation::update_location_efs::UpdateLocationEfsError::InternalException(inner) => Error::InternalException(inner),
1116            crate::operation::update_location_efs::UpdateLocationEfsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1117            crate::operation::update_location_efs::UpdateLocationEfsError::Unhandled(inner) => Error::Unhandled(inner),
1118        }
1119    }
1120}
1121impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_fsx_lustre::UpdateLocationFsxLustreError, R>>
1122    for Error
1123where
1124    R: Send + Sync + std::fmt::Debug + 'static,
1125{
1126    fn from(
1127        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_fsx_lustre::UpdateLocationFsxLustreError, R>,
1128    ) -> Self {
1129        match err {
1130            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1131            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1132                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1133                source: err.into(),
1134            }),
1135        }
1136    }
1137}
1138impl From<crate::operation::update_location_fsx_lustre::UpdateLocationFsxLustreError> for Error {
1139    fn from(err: crate::operation::update_location_fsx_lustre::UpdateLocationFsxLustreError) -> Self {
1140        match err {
1141            crate::operation::update_location_fsx_lustre::UpdateLocationFsxLustreError::InternalException(inner) => Error::InternalException(inner),
1142            crate::operation::update_location_fsx_lustre::UpdateLocationFsxLustreError::InvalidRequestException(inner) => {
1143                Error::InvalidRequestException(inner)
1144            }
1145            crate::operation::update_location_fsx_lustre::UpdateLocationFsxLustreError::Unhandled(inner) => Error::Unhandled(inner),
1146        }
1147    }
1148}
1149impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_fsx_ontap::UpdateLocationFsxOntapError, R>>
1150    for Error
1151where
1152    R: Send + Sync + std::fmt::Debug + 'static,
1153{
1154    fn from(
1155        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_fsx_ontap::UpdateLocationFsxOntapError, R>,
1156    ) -> Self {
1157        match err {
1158            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1159            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1160                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1161                source: err.into(),
1162            }),
1163        }
1164    }
1165}
1166impl From<crate::operation::update_location_fsx_ontap::UpdateLocationFsxOntapError> for Error {
1167    fn from(err: crate::operation::update_location_fsx_ontap::UpdateLocationFsxOntapError) -> Self {
1168        match err {
1169            crate::operation::update_location_fsx_ontap::UpdateLocationFsxOntapError::InternalException(inner) => Error::InternalException(inner),
1170            crate::operation::update_location_fsx_ontap::UpdateLocationFsxOntapError::InvalidRequestException(inner) => {
1171                Error::InvalidRequestException(inner)
1172            }
1173            crate::operation::update_location_fsx_ontap::UpdateLocationFsxOntapError::Unhandled(inner) => Error::Unhandled(inner),
1174        }
1175    }
1176}
1177impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_fsx_open_zfs::UpdateLocationFsxOpenZfsError, R>>
1178    for Error
1179where
1180    R: Send + Sync + std::fmt::Debug + 'static,
1181{
1182    fn from(
1183        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_fsx_open_zfs::UpdateLocationFsxOpenZfsError, R>,
1184    ) -> Self {
1185        match err {
1186            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1187            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1188                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1189                source: err.into(),
1190            }),
1191        }
1192    }
1193}
1194impl From<crate::operation::update_location_fsx_open_zfs::UpdateLocationFsxOpenZfsError> for Error {
1195    fn from(err: crate::operation::update_location_fsx_open_zfs::UpdateLocationFsxOpenZfsError) -> Self {
1196        match err {
1197            crate::operation::update_location_fsx_open_zfs::UpdateLocationFsxOpenZfsError::InternalException(inner) => {
1198                Error::InternalException(inner)
1199            }
1200            crate::operation::update_location_fsx_open_zfs::UpdateLocationFsxOpenZfsError::InvalidRequestException(inner) => {
1201                Error::InvalidRequestException(inner)
1202            }
1203            crate::operation::update_location_fsx_open_zfs::UpdateLocationFsxOpenZfsError::Unhandled(inner) => Error::Unhandled(inner),
1204        }
1205    }
1206}
1207impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_fsx_windows::UpdateLocationFsxWindowsError, R>>
1208    for Error
1209where
1210    R: Send + Sync + std::fmt::Debug + 'static,
1211{
1212    fn from(
1213        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_fsx_windows::UpdateLocationFsxWindowsError, R>,
1214    ) -> Self {
1215        match err {
1216            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1217            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1218                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1219                source: err.into(),
1220            }),
1221        }
1222    }
1223}
1224impl From<crate::operation::update_location_fsx_windows::UpdateLocationFsxWindowsError> for Error {
1225    fn from(err: crate::operation::update_location_fsx_windows::UpdateLocationFsxWindowsError) -> Self {
1226        match err {
1227            crate::operation::update_location_fsx_windows::UpdateLocationFsxWindowsError::InternalException(inner) => Error::InternalException(inner),
1228            crate::operation::update_location_fsx_windows::UpdateLocationFsxWindowsError::InvalidRequestException(inner) => {
1229                Error::InvalidRequestException(inner)
1230            }
1231            crate::operation::update_location_fsx_windows::UpdateLocationFsxWindowsError::Unhandled(inner) => Error::Unhandled(inner),
1232        }
1233    }
1234}
1235impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_hdfs::UpdateLocationHdfsError, R>> for Error
1236where
1237    R: Send + Sync + std::fmt::Debug + 'static,
1238{
1239    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_hdfs::UpdateLocationHdfsError, R>) -> Self {
1240        match err {
1241            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1242            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1243                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1244                source: err.into(),
1245            }),
1246        }
1247    }
1248}
1249impl From<crate::operation::update_location_hdfs::UpdateLocationHdfsError> for Error {
1250    fn from(err: crate::operation::update_location_hdfs::UpdateLocationHdfsError) -> Self {
1251        match err {
1252            crate::operation::update_location_hdfs::UpdateLocationHdfsError::InternalException(inner) => Error::InternalException(inner),
1253            crate::operation::update_location_hdfs::UpdateLocationHdfsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1254            crate::operation::update_location_hdfs::UpdateLocationHdfsError::Unhandled(inner) => Error::Unhandled(inner),
1255        }
1256    }
1257}
1258impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_nfs::UpdateLocationNfsError, R>> for Error
1259where
1260    R: Send + Sync + std::fmt::Debug + 'static,
1261{
1262    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_nfs::UpdateLocationNfsError, R>) -> Self {
1263        match err {
1264            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1265            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1266                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1267                source: err.into(),
1268            }),
1269        }
1270    }
1271}
1272impl From<crate::operation::update_location_nfs::UpdateLocationNfsError> for Error {
1273    fn from(err: crate::operation::update_location_nfs::UpdateLocationNfsError) -> Self {
1274        match err {
1275            crate::operation::update_location_nfs::UpdateLocationNfsError::InternalException(inner) => Error::InternalException(inner),
1276            crate::operation::update_location_nfs::UpdateLocationNfsError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1277            crate::operation::update_location_nfs::UpdateLocationNfsError::Unhandled(inner) => Error::Unhandled(inner),
1278        }
1279    }
1280}
1281impl<R>
1282    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_object_storage::UpdateLocationObjectStorageError, R>>
1283    for Error
1284where
1285    R: Send + Sync + std::fmt::Debug + 'static,
1286{
1287    fn from(
1288        err: ::aws_smithy_runtime_api::client::result::SdkError<
1289            crate::operation::update_location_object_storage::UpdateLocationObjectStorageError,
1290            R,
1291        >,
1292    ) -> Self {
1293        match err {
1294            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1295            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1296                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1297                source: err.into(),
1298            }),
1299        }
1300    }
1301}
1302impl From<crate::operation::update_location_object_storage::UpdateLocationObjectStorageError> for Error {
1303    fn from(err: crate::operation::update_location_object_storage::UpdateLocationObjectStorageError) -> Self {
1304        match err {
1305            crate::operation::update_location_object_storage::UpdateLocationObjectStorageError::InternalException(inner) => {
1306                Error::InternalException(inner)
1307            }
1308            crate::operation::update_location_object_storage::UpdateLocationObjectStorageError::InvalidRequestException(inner) => {
1309                Error::InvalidRequestException(inner)
1310            }
1311            crate::operation::update_location_object_storage::UpdateLocationObjectStorageError::Unhandled(inner) => Error::Unhandled(inner),
1312        }
1313    }
1314}
1315impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_s3::UpdateLocationS3Error, R>> for Error
1316where
1317    R: Send + Sync + std::fmt::Debug + 'static,
1318{
1319    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_s3::UpdateLocationS3Error, R>) -> Self {
1320        match err {
1321            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1322            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1323                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1324                source: err.into(),
1325            }),
1326        }
1327    }
1328}
1329impl From<crate::operation::update_location_s3::UpdateLocationS3Error> for Error {
1330    fn from(err: crate::operation::update_location_s3::UpdateLocationS3Error) -> Self {
1331        match err {
1332            crate::operation::update_location_s3::UpdateLocationS3Error::InternalException(inner) => Error::InternalException(inner),
1333            crate::operation::update_location_s3::UpdateLocationS3Error::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1334            crate::operation::update_location_s3::UpdateLocationS3Error::Unhandled(inner) => Error::Unhandled(inner),
1335        }
1336    }
1337}
1338impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_smb::UpdateLocationSmbError, R>> for Error
1339where
1340    R: Send + Sync + std::fmt::Debug + 'static,
1341{
1342    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_location_smb::UpdateLocationSmbError, R>) -> Self {
1343        match err {
1344            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1345            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1346                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1347                source: err.into(),
1348            }),
1349        }
1350    }
1351}
1352impl From<crate::operation::update_location_smb::UpdateLocationSmbError> for Error {
1353    fn from(err: crate::operation::update_location_smb::UpdateLocationSmbError) -> Self {
1354        match err {
1355            crate::operation::update_location_smb::UpdateLocationSmbError::InternalException(inner) => Error::InternalException(inner),
1356            crate::operation::update_location_smb::UpdateLocationSmbError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1357            crate::operation::update_location_smb::UpdateLocationSmbError::Unhandled(inner) => Error::Unhandled(inner),
1358        }
1359    }
1360}
1361impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_task::UpdateTaskError, R>> for Error
1362where
1363    R: Send + Sync + std::fmt::Debug + 'static,
1364{
1365    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_task::UpdateTaskError, R>) -> Self {
1366        match err {
1367            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1368            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1369                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1370                source: err.into(),
1371            }),
1372        }
1373    }
1374}
1375impl From<crate::operation::update_task::UpdateTaskError> for Error {
1376    fn from(err: crate::operation::update_task::UpdateTaskError) -> Self {
1377        match err {
1378            crate::operation::update_task::UpdateTaskError::InternalException(inner) => Error::InternalException(inner),
1379            crate::operation::update_task::UpdateTaskError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1380            crate::operation::update_task::UpdateTaskError::Unhandled(inner) => Error::Unhandled(inner),
1381        }
1382    }
1383}
1384impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_task_execution::UpdateTaskExecutionError, R>> for Error
1385where
1386    R: Send + Sync + std::fmt::Debug + 'static,
1387{
1388    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_task_execution::UpdateTaskExecutionError, R>) -> Self {
1389        match err {
1390            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1391            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1392                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1393                source: err.into(),
1394            }),
1395        }
1396    }
1397}
1398impl From<crate::operation::update_task_execution::UpdateTaskExecutionError> for Error {
1399    fn from(err: crate::operation::update_task_execution::UpdateTaskExecutionError) -> Self {
1400        match err {
1401            crate::operation::update_task_execution::UpdateTaskExecutionError::InternalException(inner) => Error::InternalException(inner),
1402            crate::operation::update_task_execution::UpdateTaskExecutionError::InvalidRequestException(inner) => {
1403                Error::InvalidRequestException(inner)
1404            }
1405            crate::operation::update_task_execution::UpdateTaskExecutionError::Unhandled(inner) => Error::Unhandled(inner),
1406        }
1407    }
1408}
1409impl ::std::error::Error for Error {
1410    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1411        match self {
1412            Error::InternalException(inner) => inner.source(),
1413            Error::InvalidRequestException(inner) => inner.source(),
1414            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1415        }
1416    }
1417}
1418impl ::aws_types::request_id::RequestId for Error {
1419    fn request_id(&self) -> Option<&str> {
1420        match self {
1421            Self::InternalException(e) => e.request_id(),
1422            Self::InvalidRequestException(e) => e.request_id(),
1423            Self::Unhandled(e) => e.meta.request_id(),
1424        }
1425    }
1426}