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