1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 ActiveDirectoryError(crate::types::error::ActiveDirectoryError),
8 BackupBeingCopied(crate::types::error::BackupBeingCopied),
10 BackupInProgress(crate::types::error::BackupInProgress),
12 BackupNotFound(crate::types::error::BackupNotFound),
14 BackupRestoring(crate::types::error::BackupRestoring),
16 BadRequest(crate::types::error::BadRequest),
18 DataRepositoryAssociationNotFound(crate::types::error::DataRepositoryAssociationNotFound),
20 DataRepositoryTaskEnded(crate::types::error::DataRepositoryTaskEnded),
22 DataRepositoryTaskExecuting(crate::types::error::DataRepositoryTaskExecuting),
24 DataRepositoryTaskNotFound(crate::types::error::DataRepositoryTaskNotFound),
26 FileCacheNotFound(crate::types::error::FileCacheNotFound),
28 FileSystemNotFound(crate::types::error::FileSystemNotFound),
30 IncompatibleParameterError(crate::types::error::IncompatibleParameterError),
32 IncompatibleRegionForMultiAz(crate::types::error::IncompatibleRegionForMultiAz),
34 InternalServerError(crate::types::error::InternalServerError),
36 InvalidDataRepositoryType(crate::types::error::InvalidDataRepositoryType),
38 InvalidDestinationKmsKey(crate::types::error::InvalidDestinationKmsKey),
40 InvalidExportPath(crate::types::error::InvalidExportPath),
42 InvalidImportPath(crate::types::error::InvalidImportPath),
44 InvalidNetworkSettings(crate::types::error::InvalidNetworkSettings),
46 InvalidPerUnitStorageThroughput(crate::types::error::InvalidPerUnitStorageThroughput),
48 InvalidRegion(crate::types::error::InvalidRegion),
50 InvalidSourceKmsKey(crate::types::error::InvalidSourceKmsKey),
52 MissingFileCacheConfiguration(crate::types::error::MissingFileCacheConfiguration),
54 MissingFileSystemConfiguration(crate::types::error::MissingFileSystemConfiguration),
56 MissingVolumeConfiguration(crate::types::error::MissingVolumeConfiguration),
58 NotServiceResourceError(crate::types::error::NotServiceResourceError),
60 ResourceDoesNotSupportTagging(crate::types::error::ResourceDoesNotSupportTagging),
62 ResourceNotFound(crate::types::error::ResourceNotFound),
64 ServiceLimitExceeded(crate::types::error::ServiceLimitExceeded),
66 SnapshotNotFound(crate::types::error::SnapshotNotFound),
68 SourceBackupUnavailable(crate::types::error::SourceBackupUnavailable),
70 StorageVirtualMachineNotFound(crate::types::error::StorageVirtualMachineNotFound),
72 UnsupportedOperation(crate::types::error::UnsupportedOperation),
74 VolumeNotFound(crate::types::error::VolumeNotFound),
76 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
78 variable wildcard pattern and check `.code()`:
79 \
80 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
81 \
82 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
83 Unhandled(crate::error::sealed_unhandled::Unhandled),
84}
85impl ::std::fmt::Display for Error {
86 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
87 match self {
88 Error::ActiveDirectoryError(inner) => inner.fmt(f),
89 Error::BackupBeingCopied(inner) => inner.fmt(f),
90 Error::BackupInProgress(inner) => inner.fmt(f),
91 Error::BackupNotFound(inner) => inner.fmt(f),
92 Error::BackupRestoring(inner) => inner.fmt(f),
93 Error::BadRequest(inner) => inner.fmt(f),
94 Error::DataRepositoryAssociationNotFound(inner) => inner.fmt(f),
95 Error::DataRepositoryTaskEnded(inner) => inner.fmt(f),
96 Error::DataRepositoryTaskExecuting(inner) => inner.fmt(f),
97 Error::DataRepositoryTaskNotFound(inner) => inner.fmt(f),
98 Error::FileCacheNotFound(inner) => inner.fmt(f),
99 Error::FileSystemNotFound(inner) => inner.fmt(f),
100 Error::IncompatibleParameterError(inner) => inner.fmt(f),
101 Error::IncompatibleRegionForMultiAz(inner) => inner.fmt(f),
102 Error::InternalServerError(inner) => inner.fmt(f),
103 Error::InvalidDataRepositoryType(inner) => inner.fmt(f),
104 Error::InvalidDestinationKmsKey(inner) => inner.fmt(f),
105 Error::InvalidExportPath(inner) => inner.fmt(f),
106 Error::InvalidImportPath(inner) => inner.fmt(f),
107 Error::InvalidNetworkSettings(inner) => inner.fmt(f),
108 Error::InvalidPerUnitStorageThroughput(inner) => inner.fmt(f),
109 Error::InvalidRegion(inner) => inner.fmt(f),
110 Error::InvalidSourceKmsKey(inner) => inner.fmt(f),
111 Error::MissingFileCacheConfiguration(inner) => inner.fmt(f),
112 Error::MissingFileSystemConfiguration(inner) => inner.fmt(f),
113 Error::MissingVolumeConfiguration(inner) => inner.fmt(f),
114 Error::NotServiceResourceError(inner) => inner.fmt(f),
115 Error::ResourceDoesNotSupportTagging(inner) => inner.fmt(f),
116 Error::ResourceNotFound(inner) => inner.fmt(f),
117 Error::ServiceLimitExceeded(inner) => inner.fmt(f),
118 Error::SnapshotNotFound(inner) => inner.fmt(f),
119 Error::SourceBackupUnavailable(inner) => inner.fmt(f),
120 Error::StorageVirtualMachineNotFound(inner) => inner.fmt(f),
121 Error::UnsupportedOperation(inner) => inner.fmt(f),
122 Error::VolumeNotFound(inner) => inner.fmt(f),
123 Error::Unhandled(_) => {
124 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
125 write!(f, "unhandled error ({code})")
126 } else {
127 f.write_str("unhandled error")
128 }
129 }
130 }
131 }
132}
133impl From<::aws_smithy_types::error::operation::BuildError> for Error {
134 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
135 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
136 source: value.into(),
137 meta: ::std::default::Default::default(),
138 })
139 }
140}
141impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
142 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
143 match self {
144 Self::ActiveDirectoryError(inner) => inner.meta(),
145 Self::BackupBeingCopied(inner) => inner.meta(),
146 Self::BackupInProgress(inner) => inner.meta(),
147 Self::BackupNotFound(inner) => inner.meta(),
148 Self::BackupRestoring(inner) => inner.meta(),
149 Self::BadRequest(inner) => inner.meta(),
150 Self::DataRepositoryAssociationNotFound(inner) => inner.meta(),
151 Self::DataRepositoryTaskEnded(inner) => inner.meta(),
152 Self::DataRepositoryTaskExecuting(inner) => inner.meta(),
153 Self::DataRepositoryTaskNotFound(inner) => inner.meta(),
154 Self::FileCacheNotFound(inner) => inner.meta(),
155 Self::FileSystemNotFound(inner) => inner.meta(),
156 Self::IncompatibleParameterError(inner) => inner.meta(),
157 Self::IncompatibleRegionForMultiAz(inner) => inner.meta(),
158 Self::InternalServerError(inner) => inner.meta(),
159 Self::InvalidDataRepositoryType(inner) => inner.meta(),
160 Self::InvalidDestinationKmsKey(inner) => inner.meta(),
161 Self::InvalidExportPath(inner) => inner.meta(),
162 Self::InvalidImportPath(inner) => inner.meta(),
163 Self::InvalidNetworkSettings(inner) => inner.meta(),
164 Self::InvalidPerUnitStorageThroughput(inner) => inner.meta(),
165 Self::InvalidRegion(inner) => inner.meta(),
166 Self::InvalidSourceKmsKey(inner) => inner.meta(),
167 Self::MissingFileCacheConfiguration(inner) => inner.meta(),
168 Self::MissingFileSystemConfiguration(inner) => inner.meta(),
169 Self::MissingVolumeConfiguration(inner) => inner.meta(),
170 Self::NotServiceResourceError(inner) => inner.meta(),
171 Self::ResourceDoesNotSupportTagging(inner) => inner.meta(),
172 Self::ResourceNotFound(inner) => inner.meta(),
173 Self::ServiceLimitExceeded(inner) => inner.meta(),
174 Self::SnapshotNotFound(inner) => inner.meta(),
175 Self::SourceBackupUnavailable(inner) => inner.meta(),
176 Self::StorageVirtualMachineNotFound(inner) => inner.meta(),
177 Self::UnsupportedOperation(inner) => inner.meta(),
178 Self::VolumeNotFound(inner) => inner.meta(),
179 Self::Unhandled(inner) => &inner.meta,
180 }
181 }
182}
183impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_file_system_aliases::AssociateFileSystemAliasesError, R>>
184 for Error
185where
186 R: Send + Sync + std::fmt::Debug + 'static,
187{
188 fn from(
189 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_file_system_aliases::AssociateFileSystemAliasesError, R>,
190 ) -> Self {
191 match err {
192 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
193 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
194 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
195 source: err.into(),
196 }),
197 }
198 }
199}
200impl From<crate::operation::associate_file_system_aliases::AssociateFileSystemAliasesError> for Error {
201 fn from(err: crate::operation::associate_file_system_aliases::AssociateFileSystemAliasesError) -> Self {
202 match err {
203 crate::operation::associate_file_system_aliases::AssociateFileSystemAliasesError::BadRequest(inner) => Error::BadRequest(inner),
204 crate::operation::associate_file_system_aliases::AssociateFileSystemAliasesError::FileSystemNotFound(inner) => {
205 Error::FileSystemNotFound(inner)
206 }
207 crate::operation::associate_file_system_aliases::AssociateFileSystemAliasesError::InternalServerError(inner) => {
208 Error::InternalServerError(inner)
209 }
210 crate::operation::associate_file_system_aliases::AssociateFileSystemAliasesError::Unhandled(inner) => Error::Unhandled(inner),
211 }
212 }
213}
214impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError, R>>
215 for Error
216where
217 R: Send + Sync + std::fmt::Debug + 'static,
218{
219 fn from(
220 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError, R>,
221 ) -> Self {
222 match err {
223 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
224 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
225 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
226 source: err.into(),
227 }),
228 }
229 }
230}
231impl From<crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError> for Error {
232 fn from(err: crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError) -> Self {
233 match err {
234 crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError::BadRequest(inner) => Error::BadRequest(inner),
235 crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError::DataRepositoryTaskEnded(inner) => {
236 Error::DataRepositoryTaskEnded(inner)
237 }
238 crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError::DataRepositoryTaskNotFound(inner) => {
239 Error::DataRepositoryTaskNotFound(inner)
240 }
241 crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError::InternalServerError(inner) => {
242 Error::InternalServerError(inner)
243 }
244 crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError::UnsupportedOperation(inner) => {
245 Error::UnsupportedOperation(inner)
246 }
247 crate::operation::cancel_data_repository_task::CancelDataRepositoryTaskError::Unhandled(inner) => Error::Unhandled(inner),
248 }
249 }
250}
251impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_backup::CopyBackupError, 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::copy_backup::CopyBackupError, 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::copy_backup::CopyBackupError> for Error {
266 fn from(err: crate::operation::copy_backup::CopyBackupError) -> Self {
267 match err {
268 crate::operation::copy_backup::CopyBackupError::BackupNotFound(inner) => Error::BackupNotFound(inner),
269 crate::operation::copy_backup::CopyBackupError::BadRequest(inner) => Error::BadRequest(inner),
270 crate::operation::copy_backup::CopyBackupError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
271 crate::operation::copy_backup::CopyBackupError::IncompatibleRegionForMultiAz(inner) => Error::IncompatibleRegionForMultiAz(inner),
272 crate::operation::copy_backup::CopyBackupError::InternalServerError(inner) => Error::InternalServerError(inner),
273 crate::operation::copy_backup::CopyBackupError::InvalidDestinationKmsKey(inner) => Error::InvalidDestinationKmsKey(inner),
274 crate::operation::copy_backup::CopyBackupError::InvalidRegion(inner) => Error::InvalidRegion(inner),
275 crate::operation::copy_backup::CopyBackupError::InvalidSourceKmsKey(inner) => Error::InvalidSourceKmsKey(inner),
276 crate::operation::copy_backup::CopyBackupError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
277 crate::operation::copy_backup::CopyBackupError::SourceBackupUnavailable(inner) => Error::SourceBackupUnavailable(inner),
278 crate::operation::copy_backup::CopyBackupError::UnsupportedOperation(inner) => Error::UnsupportedOperation(inner),
279 crate::operation::copy_backup::CopyBackupError::Unhandled(inner) => Error::Unhandled(inner),
280 }
281 }
282}
283impl<R>
284 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError, R>>
285 for Error
286where
287 R: Send + Sync + std::fmt::Debug + 'static,
288{
289 fn from(
290 err: ::aws_smithy_runtime_api::client::result::SdkError<
291 crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError,
292 R,
293 >,
294 ) -> Self {
295 match err {
296 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
297 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
298 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
299 source: err.into(),
300 }),
301 }
302 }
303}
304impl From<crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError> for Error {
305 fn from(err: crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError) -> Self {
306 match err {
307 crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError::BadRequest(inner) => Error::BadRequest(inner),
308 crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError::IncompatibleParameterError(inner) => {
309 Error::IncompatibleParameterError(inner)
310 }
311 crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError::InternalServerError(inner) => {
312 Error::InternalServerError(inner)
313 }
314 crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError::ServiceLimitExceeded(inner) => {
315 Error::ServiceLimitExceeded(inner)
316 }
317 crate::operation::copy_snapshot_and_update_volume::CopySnapshotAndUpdateVolumeError::Unhandled(inner) => Error::Unhandled(inner),
318 }
319 }
320}
321impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_backup::CreateBackupError, R>> for Error
322where
323 R: Send + Sync + std::fmt::Debug + 'static,
324{
325 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_backup::CreateBackupError, R>) -> Self {
326 match err {
327 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
328 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
329 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
330 source: err.into(),
331 }),
332 }
333 }
334}
335impl From<crate::operation::create_backup::CreateBackupError> for Error {
336 fn from(err: crate::operation::create_backup::CreateBackupError) -> Self {
337 match err {
338 crate::operation::create_backup::CreateBackupError::BackupInProgress(inner) => Error::BackupInProgress(inner),
339 crate::operation::create_backup::CreateBackupError::BadRequest(inner) => Error::BadRequest(inner),
340 crate::operation::create_backup::CreateBackupError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
341 crate::operation::create_backup::CreateBackupError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
342 crate::operation::create_backup::CreateBackupError::InternalServerError(inner) => Error::InternalServerError(inner),
343 crate::operation::create_backup::CreateBackupError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
344 crate::operation::create_backup::CreateBackupError::UnsupportedOperation(inner) => Error::UnsupportedOperation(inner),
345 crate::operation::create_backup::CreateBackupError::VolumeNotFound(inner) => Error::VolumeNotFound(inner),
346 crate::operation::create_backup::CreateBackupError::Unhandled(inner) => Error::Unhandled(inner),
347 }
348 }
349}
350impl<R>
351 From<
352 ::aws_smithy_runtime_api::client::result::SdkError<
353 crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError,
354 R,
355 >,
356 > for Error
357where
358 R: Send + Sync + std::fmt::Debug + 'static,
359{
360 fn from(
361 err: ::aws_smithy_runtime_api::client::result::SdkError<
362 crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError,
363 R,
364 >,
365 ) -> Self {
366 match err {
367 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
368 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
369 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
370 source: err.into(),
371 }),
372 }
373 }
374}
375impl From<crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError> for Error {
376 fn from(err: crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError) -> Self {
377 match err {
378 crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError::BadRequest(inner) => Error::BadRequest(inner),
379 crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError::FileSystemNotFound(inner) => {
380 Error::FileSystemNotFound(inner)
381 }
382 crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError::IncompatibleParameterError(inner) => {
383 Error::IncompatibleParameterError(inner)
384 }
385 crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError::InternalServerError(inner) => {
386 Error::InternalServerError(inner)
387 }
388 crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError::ServiceLimitExceeded(inner) => {
389 Error::ServiceLimitExceeded(inner)
390 }
391 crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError::UnsupportedOperation(inner) => {
392 Error::UnsupportedOperation(inner)
393 }
394 crate::operation::create_data_repository_association::CreateDataRepositoryAssociationError::Unhandled(inner) => Error::Unhandled(inner),
395 }
396 }
397}
398impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_repository_task::CreateDataRepositoryTaskError, R>>
399 for Error
400where
401 R: Send + Sync + std::fmt::Debug + 'static,
402{
403 fn from(
404 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_repository_task::CreateDataRepositoryTaskError, R>,
405 ) -> Self {
406 match err {
407 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
408 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
409 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
410 source: err.into(),
411 }),
412 }
413 }
414}
415impl From<crate::operation::create_data_repository_task::CreateDataRepositoryTaskError> for Error {
416 fn from(err: crate::operation::create_data_repository_task::CreateDataRepositoryTaskError) -> Self {
417 match err {
418 crate::operation::create_data_repository_task::CreateDataRepositoryTaskError::BadRequest(inner) => Error::BadRequest(inner),
419 crate::operation::create_data_repository_task::CreateDataRepositoryTaskError::DataRepositoryTaskExecuting(inner) => {
420 Error::DataRepositoryTaskExecuting(inner)
421 }
422 crate::operation::create_data_repository_task::CreateDataRepositoryTaskError::FileSystemNotFound(inner) => {
423 Error::FileSystemNotFound(inner)
424 }
425 crate::operation::create_data_repository_task::CreateDataRepositoryTaskError::IncompatibleParameterError(inner) => {
426 Error::IncompatibleParameterError(inner)
427 }
428 crate::operation::create_data_repository_task::CreateDataRepositoryTaskError::InternalServerError(inner) => {
429 Error::InternalServerError(inner)
430 }
431 crate::operation::create_data_repository_task::CreateDataRepositoryTaskError::ServiceLimitExceeded(inner) => {
432 Error::ServiceLimitExceeded(inner)
433 }
434 crate::operation::create_data_repository_task::CreateDataRepositoryTaskError::UnsupportedOperation(inner) => {
435 Error::UnsupportedOperation(inner)
436 }
437 crate::operation::create_data_repository_task::CreateDataRepositoryTaskError::Unhandled(inner) => Error::Unhandled(inner),
438 }
439 }
440}
441impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_file_cache::CreateFileCacheError, R>> for Error
442where
443 R: Send + Sync + std::fmt::Debug + 'static,
444{
445 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_file_cache::CreateFileCacheError, R>) -> Self {
446 match err {
447 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
448 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
449 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
450 source: err.into(),
451 }),
452 }
453 }
454}
455impl From<crate::operation::create_file_cache::CreateFileCacheError> for Error {
456 fn from(err: crate::operation::create_file_cache::CreateFileCacheError) -> Self {
457 match err {
458 crate::operation::create_file_cache::CreateFileCacheError::BadRequest(inner) => Error::BadRequest(inner),
459 crate::operation::create_file_cache::CreateFileCacheError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
460 crate::operation::create_file_cache::CreateFileCacheError::InternalServerError(inner) => Error::InternalServerError(inner),
461 crate::operation::create_file_cache::CreateFileCacheError::InvalidNetworkSettings(inner) => Error::InvalidNetworkSettings(inner),
462 crate::operation::create_file_cache::CreateFileCacheError::InvalidPerUnitStorageThroughput(inner) => {
463 Error::InvalidPerUnitStorageThroughput(inner)
464 }
465 crate::operation::create_file_cache::CreateFileCacheError::MissingFileCacheConfiguration(inner) => {
466 Error::MissingFileCacheConfiguration(inner)
467 }
468 crate::operation::create_file_cache::CreateFileCacheError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
469 crate::operation::create_file_cache::CreateFileCacheError::Unhandled(inner) => Error::Unhandled(inner),
470 }
471 }
472}
473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_file_system::CreateFileSystemError, R>> for Error
474where
475 R: Send + Sync + std::fmt::Debug + 'static,
476{
477 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_file_system::CreateFileSystemError, R>) -> Self {
478 match err {
479 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
480 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
481 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
482 source: err.into(),
483 }),
484 }
485 }
486}
487impl From<crate::operation::create_file_system::CreateFileSystemError> for Error {
488 fn from(err: crate::operation::create_file_system::CreateFileSystemError) -> Self {
489 match err {
490 crate::operation::create_file_system::CreateFileSystemError::ActiveDirectoryError(inner) => Error::ActiveDirectoryError(inner),
491 crate::operation::create_file_system::CreateFileSystemError::BadRequest(inner) => Error::BadRequest(inner),
492 crate::operation::create_file_system::CreateFileSystemError::IncompatibleParameterError(inner) => {
493 Error::IncompatibleParameterError(inner)
494 }
495 crate::operation::create_file_system::CreateFileSystemError::InternalServerError(inner) => Error::InternalServerError(inner),
496 crate::operation::create_file_system::CreateFileSystemError::InvalidExportPath(inner) => Error::InvalidExportPath(inner),
497 crate::operation::create_file_system::CreateFileSystemError::InvalidImportPath(inner) => Error::InvalidImportPath(inner),
498 crate::operation::create_file_system::CreateFileSystemError::InvalidNetworkSettings(inner) => Error::InvalidNetworkSettings(inner),
499 crate::operation::create_file_system::CreateFileSystemError::InvalidPerUnitStorageThroughput(inner) => {
500 Error::InvalidPerUnitStorageThroughput(inner)
501 }
502 crate::operation::create_file_system::CreateFileSystemError::MissingFileSystemConfiguration(inner) => {
503 Error::MissingFileSystemConfiguration(inner)
504 }
505 crate::operation::create_file_system::CreateFileSystemError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
506 crate::operation::create_file_system::CreateFileSystemError::Unhandled(inner) => Error::Unhandled(inner),
507 }
508 }
509}
510impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError, R>>
511 for Error
512where
513 R: Send + Sync + std::fmt::Debug + 'static,
514{
515 fn from(
516 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError, R>,
517 ) -> Self {
518 match err {
519 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
520 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
521 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
522 source: err.into(),
523 }),
524 }
525 }
526}
527impl From<crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError> for Error {
528 fn from(err: crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError) -> Self {
529 match err {
530 crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::ActiveDirectoryError(inner) => {
531 Error::ActiveDirectoryError(inner)
532 }
533 crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::BackupNotFound(inner) => Error::BackupNotFound(inner),
534 crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::BadRequest(inner) => Error::BadRequest(inner),
535 crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::IncompatibleParameterError(inner) => {
536 Error::IncompatibleParameterError(inner)
537 }
538 crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::InternalServerError(inner) => {
539 Error::InternalServerError(inner)
540 }
541 crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::InvalidNetworkSettings(inner) => {
542 Error::InvalidNetworkSettings(inner)
543 }
544 crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::InvalidPerUnitStorageThroughput(inner) => {
545 Error::InvalidPerUnitStorageThroughput(inner)
546 }
547 crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::MissingFileSystemConfiguration(inner) => {
548 Error::MissingFileSystemConfiguration(inner)
549 }
550 crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::ServiceLimitExceeded(inner) => {
551 Error::ServiceLimitExceeded(inner)
552 }
553 crate::operation::create_file_system_from_backup::CreateFileSystemFromBackupError::Unhandled(inner) => Error::Unhandled(inner),
554 }
555 }
556}
557impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot::CreateSnapshotError, R>> for Error
558where
559 R: Send + Sync + std::fmt::Debug + 'static,
560{
561 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot::CreateSnapshotError, R>) -> Self {
562 match err {
563 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
564 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
565 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
566 source: err.into(),
567 }),
568 }
569 }
570}
571impl From<crate::operation::create_snapshot::CreateSnapshotError> for Error {
572 fn from(err: crate::operation::create_snapshot::CreateSnapshotError) -> Self {
573 match err {
574 crate::operation::create_snapshot::CreateSnapshotError::BadRequest(inner) => Error::BadRequest(inner),
575 crate::operation::create_snapshot::CreateSnapshotError::InternalServerError(inner) => Error::InternalServerError(inner),
576 crate::operation::create_snapshot::CreateSnapshotError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
577 crate::operation::create_snapshot::CreateSnapshotError::VolumeNotFound(inner) => Error::VolumeNotFound(inner),
578 crate::operation::create_snapshot::CreateSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
579 }
580 }
581}
582impl<R>
583 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError, R>>
584 for Error
585where
586 R: Send + Sync + std::fmt::Debug + 'static,
587{
588 fn from(
589 err: ::aws_smithy_runtime_api::client::result::SdkError<
590 crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError,
591 R,
592 >,
593 ) -> Self {
594 match err {
595 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
596 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
597 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
598 source: err.into(),
599 }),
600 }
601 }
602}
603impl From<crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError> for Error {
604 fn from(err: crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError) -> Self {
605 match err {
606 crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError::ActiveDirectoryError(inner) => {
607 Error::ActiveDirectoryError(inner)
608 }
609 crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError::BadRequest(inner) => Error::BadRequest(inner),
610 crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError::FileSystemNotFound(inner) => {
611 Error::FileSystemNotFound(inner)
612 }
613 crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError::IncompatibleParameterError(inner) => {
614 Error::IncompatibleParameterError(inner)
615 }
616 crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError::InternalServerError(inner) => {
617 Error::InternalServerError(inner)
618 }
619 crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError::ServiceLimitExceeded(inner) => {
620 Error::ServiceLimitExceeded(inner)
621 }
622 crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError::UnsupportedOperation(inner) => {
623 Error::UnsupportedOperation(inner)
624 }
625 crate::operation::create_storage_virtual_machine::CreateStorageVirtualMachineError::Unhandled(inner) => Error::Unhandled(inner),
626 }
627 }
628}
629impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume::CreateVolumeError, R>> for Error
630where
631 R: Send + Sync + std::fmt::Debug + 'static,
632{
633 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume::CreateVolumeError, R>) -> Self {
634 match err {
635 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
636 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
637 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
638 source: err.into(),
639 }),
640 }
641 }
642}
643impl From<crate::operation::create_volume::CreateVolumeError> for Error {
644 fn from(err: crate::operation::create_volume::CreateVolumeError) -> Self {
645 match err {
646 crate::operation::create_volume::CreateVolumeError::BadRequest(inner) => Error::BadRequest(inner),
647 crate::operation::create_volume::CreateVolumeError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
648 crate::operation::create_volume::CreateVolumeError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
649 crate::operation::create_volume::CreateVolumeError::InternalServerError(inner) => Error::InternalServerError(inner),
650 crate::operation::create_volume::CreateVolumeError::MissingVolumeConfiguration(inner) => Error::MissingVolumeConfiguration(inner),
651 crate::operation::create_volume::CreateVolumeError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
652 crate::operation::create_volume::CreateVolumeError::StorageVirtualMachineNotFound(inner) => Error::StorageVirtualMachineNotFound(inner),
653 crate::operation::create_volume::CreateVolumeError::UnsupportedOperation(inner) => Error::UnsupportedOperation(inner),
654 crate::operation::create_volume::CreateVolumeError::Unhandled(inner) => Error::Unhandled(inner),
655 }
656 }
657}
658impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume_from_backup::CreateVolumeFromBackupError, R>>
659 for Error
660where
661 R: Send + Sync + std::fmt::Debug + 'static,
662{
663 fn from(
664 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_volume_from_backup::CreateVolumeFromBackupError, R>,
665 ) -> Self {
666 match err {
667 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
668 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
669 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
670 source: err.into(),
671 }),
672 }
673 }
674}
675impl From<crate::operation::create_volume_from_backup::CreateVolumeFromBackupError> for Error {
676 fn from(err: crate::operation::create_volume_from_backup::CreateVolumeFromBackupError) -> Self {
677 match err {
678 crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::BackupNotFound(inner) => Error::BackupNotFound(inner),
679 crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::BadRequest(inner) => Error::BadRequest(inner),
680 crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
681 crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::IncompatibleParameterError(inner) => {
682 Error::IncompatibleParameterError(inner)
683 }
684 crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::InternalServerError(inner) => Error::InternalServerError(inner),
685 crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::MissingVolumeConfiguration(inner) => {
686 Error::MissingVolumeConfiguration(inner)
687 }
688 crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::ServiceLimitExceeded(inner) => {
689 Error::ServiceLimitExceeded(inner)
690 }
691 crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::StorageVirtualMachineNotFound(inner) => {
692 Error::StorageVirtualMachineNotFound(inner)
693 }
694 crate::operation::create_volume_from_backup::CreateVolumeFromBackupError::Unhandled(inner) => Error::Unhandled(inner),
695 }
696 }
697}
698impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_backup::DeleteBackupError, R>> for Error
699where
700 R: Send + Sync + std::fmt::Debug + 'static,
701{
702 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_backup::DeleteBackupError, R>) -> Self {
703 match err {
704 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
705 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
706 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
707 source: err.into(),
708 }),
709 }
710 }
711}
712impl From<crate::operation::delete_backup::DeleteBackupError> for Error {
713 fn from(err: crate::operation::delete_backup::DeleteBackupError) -> Self {
714 match err {
715 crate::operation::delete_backup::DeleteBackupError::BackupBeingCopied(inner) => Error::BackupBeingCopied(inner),
716 crate::operation::delete_backup::DeleteBackupError::BackupInProgress(inner) => Error::BackupInProgress(inner),
717 crate::operation::delete_backup::DeleteBackupError::BackupNotFound(inner) => Error::BackupNotFound(inner),
718 crate::operation::delete_backup::DeleteBackupError::BackupRestoring(inner) => Error::BackupRestoring(inner),
719 crate::operation::delete_backup::DeleteBackupError::BadRequest(inner) => Error::BadRequest(inner),
720 crate::operation::delete_backup::DeleteBackupError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
721 crate::operation::delete_backup::DeleteBackupError::InternalServerError(inner) => Error::InternalServerError(inner),
722 crate::operation::delete_backup::DeleteBackupError::Unhandled(inner) => Error::Unhandled(inner),
723 }
724 }
725}
726impl<R>
727 From<
728 ::aws_smithy_runtime_api::client::result::SdkError<
729 crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError,
730 R,
731 >,
732 > for Error
733where
734 R: Send + Sync + std::fmt::Debug + 'static,
735{
736 fn from(
737 err: ::aws_smithy_runtime_api::client::result::SdkError<
738 crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError,
739 R,
740 >,
741 ) -> Self {
742 match err {
743 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
744 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
745 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
746 source: err.into(),
747 }),
748 }
749 }
750}
751impl From<crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError> for Error {
752 fn from(err: crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError) -> Self {
753 match err {
754 crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError::BadRequest(inner) => Error::BadRequest(inner),
755 crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError::DataRepositoryAssociationNotFound(inner) => {
756 Error::DataRepositoryAssociationNotFound(inner)
757 }
758 crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError::IncompatibleParameterError(inner) => {
759 Error::IncompatibleParameterError(inner)
760 }
761 crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError::InternalServerError(inner) => {
762 Error::InternalServerError(inner)
763 }
764 crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError::ServiceLimitExceeded(inner) => {
765 Error::ServiceLimitExceeded(inner)
766 }
767 crate::operation::delete_data_repository_association::DeleteDataRepositoryAssociationError::Unhandled(inner) => Error::Unhandled(inner),
768 }
769 }
770}
771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_file_cache::DeleteFileCacheError, 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_file_cache::DeleteFileCacheError, 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_file_cache::DeleteFileCacheError> for Error {
786 fn from(err: crate::operation::delete_file_cache::DeleteFileCacheError) -> Self {
787 match err {
788 crate::operation::delete_file_cache::DeleteFileCacheError::BadRequest(inner) => Error::BadRequest(inner),
789 crate::operation::delete_file_cache::DeleteFileCacheError::FileCacheNotFound(inner) => Error::FileCacheNotFound(inner),
790 crate::operation::delete_file_cache::DeleteFileCacheError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
791 crate::operation::delete_file_cache::DeleteFileCacheError::InternalServerError(inner) => Error::InternalServerError(inner),
792 crate::operation::delete_file_cache::DeleteFileCacheError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
793 crate::operation::delete_file_cache::DeleteFileCacheError::Unhandled(inner) => Error::Unhandled(inner),
794 }
795 }
796}
797impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_file_system::DeleteFileSystemError, R>> for Error
798where
799 R: Send + Sync + std::fmt::Debug + 'static,
800{
801 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_file_system::DeleteFileSystemError, R>) -> Self {
802 match err {
803 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
804 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
805 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
806 source: err.into(),
807 }),
808 }
809 }
810}
811impl From<crate::operation::delete_file_system::DeleteFileSystemError> for Error {
812 fn from(err: crate::operation::delete_file_system::DeleteFileSystemError) -> Self {
813 match err {
814 crate::operation::delete_file_system::DeleteFileSystemError::BadRequest(inner) => Error::BadRequest(inner),
815 crate::operation::delete_file_system::DeleteFileSystemError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
816 crate::operation::delete_file_system::DeleteFileSystemError::IncompatibleParameterError(inner) => {
817 Error::IncompatibleParameterError(inner)
818 }
819 crate::operation::delete_file_system::DeleteFileSystemError::InternalServerError(inner) => Error::InternalServerError(inner),
820 crate::operation::delete_file_system::DeleteFileSystemError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
821 crate::operation::delete_file_system::DeleteFileSystemError::Unhandled(inner) => Error::Unhandled(inner),
822 }
823 }
824}
825impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot::DeleteSnapshotError, R>> for Error
826where
827 R: Send + Sync + std::fmt::Debug + 'static,
828{
829 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot::DeleteSnapshotError, R>) -> Self {
830 match err {
831 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
832 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
833 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
834 source: err.into(),
835 }),
836 }
837 }
838}
839impl From<crate::operation::delete_snapshot::DeleteSnapshotError> for Error {
840 fn from(err: crate::operation::delete_snapshot::DeleteSnapshotError) -> Self {
841 match err {
842 crate::operation::delete_snapshot::DeleteSnapshotError::BadRequest(inner) => Error::BadRequest(inner),
843 crate::operation::delete_snapshot::DeleteSnapshotError::InternalServerError(inner) => Error::InternalServerError(inner),
844 crate::operation::delete_snapshot::DeleteSnapshotError::SnapshotNotFound(inner) => Error::SnapshotNotFound(inner),
845 crate::operation::delete_snapshot::DeleteSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
846 }
847 }
848}
849impl<R>
850 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError, R>>
851 for Error
852where
853 R: Send + Sync + std::fmt::Debug + 'static,
854{
855 fn from(
856 err: ::aws_smithy_runtime_api::client::result::SdkError<
857 crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError,
858 R,
859 >,
860 ) -> Self {
861 match err {
862 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
863 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
864 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
865 source: err.into(),
866 }),
867 }
868 }
869}
870impl From<crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError> for Error {
871 fn from(err: crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError) -> Self {
872 match err {
873 crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError::BadRequest(inner) => Error::BadRequest(inner),
874 crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError::IncompatibleParameterError(inner) => {
875 Error::IncompatibleParameterError(inner)
876 }
877 crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError::InternalServerError(inner) => {
878 Error::InternalServerError(inner)
879 }
880 crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError::StorageVirtualMachineNotFound(inner) => {
881 Error::StorageVirtualMachineNotFound(inner)
882 }
883 crate::operation::delete_storage_virtual_machine::DeleteStorageVirtualMachineError::Unhandled(inner) => Error::Unhandled(inner),
884 }
885 }
886}
887impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_volume::DeleteVolumeError, R>> for Error
888where
889 R: Send + Sync + std::fmt::Debug + 'static,
890{
891 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_volume::DeleteVolumeError, R>) -> Self {
892 match err {
893 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
894 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
895 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
896 source: err.into(),
897 }),
898 }
899 }
900}
901impl From<crate::operation::delete_volume::DeleteVolumeError> for Error {
902 fn from(err: crate::operation::delete_volume::DeleteVolumeError) -> Self {
903 match err {
904 crate::operation::delete_volume::DeleteVolumeError::BadRequest(inner) => Error::BadRequest(inner),
905 crate::operation::delete_volume::DeleteVolumeError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
906 crate::operation::delete_volume::DeleteVolumeError::InternalServerError(inner) => Error::InternalServerError(inner),
907 crate::operation::delete_volume::DeleteVolumeError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
908 crate::operation::delete_volume::DeleteVolumeError::VolumeNotFound(inner) => Error::VolumeNotFound(inner),
909 crate::operation::delete_volume::DeleteVolumeError::Unhandled(inner) => Error::Unhandled(inner),
910 }
911 }
912}
913impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_backups::DescribeBackupsError, R>> for Error
914where
915 R: Send + Sync + std::fmt::Debug + 'static,
916{
917 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_backups::DescribeBackupsError, R>) -> Self {
918 match err {
919 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
920 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
921 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
922 source: err.into(),
923 }),
924 }
925 }
926}
927impl From<crate::operation::describe_backups::DescribeBackupsError> for Error {
928 fn from(err: crate::operation::describe_backups::DescribeBackupsError) -> Self {
929 match err {
930 crate::operation::describe_backups::DescribeBackupsError::BackupNotFound(inner) => Error::BackupNotFound(inner),
931 crate::operation::describe_backups::DescribeBackupsError::BadRequest(inner) => Error::BadRequest(inner),
932 crate::operation::describe_backups::DescribeBackupsError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
933 crate::operation::describe_backups::DescribeBackupsError::InternalServerError(inner) => Error::InternalServerError(inner),
934 crate::operation::describe_backups::DescribeBackupsError::VolumeNotFound(inner) => Error::VolumeNotFound(inner),
935 crate::operation::describe_backups::DescribeBackupsError::Unhandled(inner) => Error::Unhandled(inner),
936 }
937 }
938}
939impl<R>
940 From<
941 ::aws_smithy_runtime_api::client::result::SdkError<
942 crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError,
943 R,
944 >,
945 > for Error
946where
947 R: Send + Sync + std::fmt::Debug + 'static,
948{
949 fn from(
950 err: ::aws_smithy_runtime_api::client::result::SdkError<
951 crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError,
952 R,
953 >,
954 ) -> Self {
955 match err {
956 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
957 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
958 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
959 source: err.into(),
960 }),
961 }
962 }
963}
964impl From<crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError> for Error {
965 fn from(err: crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError) -> Self {
966 match err {
967 crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError::BadRequest(inner) => {
968 Error::BadRequest(inner)
969 }
970 crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError::DataRepositoryAssociationNotFound(
971 inner,
972 ) => Error::DataRepositoryAssociationNotFound(inner),
973 crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError::FileSystemNotFound(inner) => {
974 Error::FileSystemNotFound(inner)
975 }
976 crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError::InternalServerError(inner) => {
977 Error::InternalServerError(inner)
978 }
979 crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError::InvalidDataRepositoryType(inner) => {
980 Error::InvalidDataRepositoryType(inner)
981 }
982 crate::operation::describe_data_repository_associations::DescribeDataRepositoryAssociationsError::Unhandled(inner) => {
983 Error::Unhandled(inner)
984 }
985 }
986 }
987}
988impl<R>
989 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError, R>>
990 for Error
991where
992 R: Send + Sync + std::fmt::Debug + 'static,
993{
994 fn from(
995 err: ::aws_smithy_runtime_api::client::result::SdkError<
996 crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError,
997 R,
998 >,
999 ) -> Self {
1000 match err {
1001 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1002 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1003 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1004 source: err.into(),
1005 }),
1006 }
1007 }
1008}
1009impl From<crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError> for Error {
1010 fn from(err: crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError) -> Self {
1011 match err {
1012 crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError::BadRequest(inner) => Error::BadRequest(inner),
1013 crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError::DataRepositoryTaskNotFound(inner) => {
1014 Error::DataRepositoryTaskNotFound(inner)
1015 }
1016 crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError::FileSystemNotFound(inner) => {
1017 Error::FileSystemNotFound(inner)
1018 }
1019 crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError::InternalServerError(inner) => {
1020 Error::InternalServerError(inner)
1021 }
1022 crate::operation::describe_data_repository_tasks::DescribeDataRepositoryTasksError::Unhandled(inner) => Error::Unhandled(inner),
1023 }
1024 }
1025}
1026impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_caches::DescribeFileCachesError, R>> for Error
1027where
1028 R: Send + Sync + std::fmt::Debug + 'static,
1029{
1030 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_caches::DescribeFileCachesError, R>) -> Self {
1031 match err {
1032 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1033 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1034 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1035 source: err.into(),
1036 }),
1037 }
1038 }
1039}
1040impl From<crate::operation::describe_file_caches::DescribeFileCachesError> for Error {
1041 fn from(err: crate::operation::describe_file_caches::DescribeFileCachesError) -> Self {
1042 match err {
1043 crate::operation::describe_file_caches::DescribeFileCachesError::BadRequest(inner) => Error::BadRequest(inner),
1044 crate::operation::describe_file_caches::DescribeFileCachesError::FileCacheNotFound(inner) => Error::FileCacheNotFound(inner),
1045 crate::operation::describe_file_caches::DescribeFileCachesError::InternalServerError(inner) => Error::InternalServerError(inner),
1046 crate::operation::describe_file_caches::DescribeFileCachesError::Unhandled(inner) => Error::Unhandled(inner),
1047 }
1048 }
1049}
1050impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_system_aliases::DescribeFileSystemAliasesError, R>>
1051 for Error
1052where
1053 R: Send + Sync + std::fmt::Debug + 'static,
1054{
1055 fn from(
1056 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_system_aliases::DescribeFileSystemAliasesError, R>,
1057 ) -> Self {
1058 match err {
1059 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1060 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1061 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1062 source: err.into(),
1063 }),
1064 }
1065 }
1066}
1067impl From<crate::operation::describe_file_system_aliases::DescribeFileSystemAliasesError> for Error {
1068 fn from(err: crate::operation::describe_file_system_aliases::DescribeFileSystemAliasesError) -> Self {
1069 match err {
1070 crate::operation::describe_file_system_aliases::DescribeFileSystemAliasesError::BadRequest(inner) => Error::BadRequest(inner),
1071 crate::operation::describe_file_system_aliases::DescribeFileSystemAliasesError::FileSystemNotFound(inner) => {
1072 Error::FileSystemNotFound(inner)
1073 }
1074 crate::operation::describe_file_system_aliases::DescribeFileSystemAliasesError::InternalServerError(inner) => {
1075 Error::InternalServerError(inner)
1076 }
1077 crate::operation::describe_file_system_aliases::DescribeFileSystemAliasesError::Unhandled(inner) => Error::Unhandled(inner),
1078 }
1079 }
1080}
1081impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_systems::DescribeFileSystemsError, R>> for Error
1082where
1083 R: Send + Sync + std::fmt::Debug + 'static,
1084{
1085 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_file_systems::DescribeFileSystemsError, R>) -> Self {
1086 match err {
1087 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1088 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1089 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1090 source: err.into(),
1091 }),
1092 }
1093 }
1094}
1095impl From<crate::operation::describe_file_systems::DescribeFileSystemsError> for Error {
1096 fn from(err: crate::operation::describe_file_systems::DescribeFileSystemsError) -> Self {
1097 match err {
1098 crate::operation::describe_file_systems::DescribeFileSystemsError::BadRequest(inner) => Error::BadRequest(inner),
1099 crate::operation::describe_file_systems::DescribeFileSystemsError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
1100 crate::operation::describe_file_systems::DescribeFileSystemsError::InternalServerError(inner) => Error::InternalServerError(inner),
1101 crate::operation::describe_file_systems::DescribeFileSystemsError::Unhandled(inner) => Error::Unhandled(inner),
1102 }
1103 }
1104}
1105impl<R>
1106 From<
1107 ::aws_smithy_runtime_api::client::result::SdkError<
1108 crate::operation::describe_shared_vpc_configuration::DescribeSharedVpcConfigurationError,
1109 R,
1110 >,
1111 > for Error
1112where
1113 R: Send + Sync + std::fmt::Debug + 'static,
1114{
1115 fn from(
1116 err: ::aws_smithy_runtime_api::client::result::SdkError<
1117 crate::operation::describe_shared_vpc_configuration::DescribeSharedVpcConfigurationError,
1118 R,
1119 >,
1120 ) -> Self {
1121 match err {
1122 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1123 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1124 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1125 source: err.into(),
1126 }),
1127 }
1128 }
1129}
1130impl From<crate::operation::describe_shared_vpc_configuration::DescribeSharedVpcConfigurationError> for Error {
1131 fn from(err: crate::operation::describe_shared_vpc_configuration::DescribeSharedVpcConfigurationError) -> Self {
1132 match err {
1133 crate::operation::describe_shared_vpc_configuration::DescribeSharedVpcConfigurationError::BadRequest(inner) => Error::BadRequest(inner),
1134 crate::operation::describe_shared_vpc_configuration::DescribeSharedVpcConfigurationError::InternalServerError(inner) => {
1135 Error::InternalServerError(inner)
1136 }
1137 crate::operation::describe_shared_vpc_configuration::DescribeSharedVpcConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1138 }
1139 }
1140}
1141impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshots::DescribeSnapshotsError, R>> for Error
1142where
1143 R: Send + Sync + std::fmt::Debug + 'static,
1144{
1145 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshots::DescribeSnapshotsError, R>) -> Self {
1146 match err {
1147 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1148 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1149 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1150 source: err.into(),
1151 }),
1152 }
1153 }
1154}
1155impl From<crate::operation::describe_snapshots::DescribeSnapshotsError> for Error {
1156 fn from(err: crate::operation::describe_snapshots::DescribeSnapshotsError) -> Self {
1157 match err {
1158 crate::operation::describe_snapshots::DescribeSnapshotsError::BadRequest(inner) => Error::BadRequest(inner),
1159 crate::operation::describe_snapshots::DescribeSnapshotsError::InternalServerError(inner) => Error::InternalServerError(inner),
1160 crate::operation::describe_snapshots::DescribeSnapshotsError::SnapshotNotFound(inner) => Error::SnapshotNotFound(inner),
1161 crate::operation::describe_snapshots::DescribeSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
1162 }
1163 }
1164}
1165impl<R>
1166 From<
1167 ::aws_smithy_runtime_api::client::result::SdkError<
1168 crate::operation::describe_storage_virtual_machines::DescribeStorageVirtualMachinesError,
1169 R,
1170 >,
1171 > for Error
1172where
1173 R: Send + Sync + std::fmt::Debug + 'static,
1174{
1175 fn from(
1176 err: ::aws_smithy_runtime_api::client::result::SdkError<
1177 crate::operation::describe_storage_virtual_machines::DescribeStorageVirtualMachinesError,
1178 R,
1179 >,
1180 ) -> Self {
1181 match err {
1182 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1183 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1184 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1185 source: err.into(),
1186 }),
1187 }
1188 }
1189}
1190impl From<crate::operation::describe_storage_virtual_machines::DescribeStorageVirtualMachinesError> for Error {
1191 fn from(err: crate::operation::describe_storage_virtual_machines::DescribeStorageVirtualMachinesError) -> Self {
1192 match err {
1193 crate::operation::describe_storage_virtual_machines::DescribeStorageVirtualMachinesError::BadRequest(inner) => Error::BadRequest(inner),
1194 crate::operation::describe_storage_virtual_machines::DescribeStorageVirtualMachinesError::InternalServerError(inner) => {
1195 Error::InternalServerError(inner)
1196 }
1197 crate::operation::describe_storage_virtual_machines::DescribeStorageVirtualMachinesError::StorageVirtualMachineNotFound(inner) => {
1198 Error::StorageVirtualMachineNotFound(inner)
1199 }
1200 crate::operation::describe_storage_virtual_machines::DescribeStorageVirtualMachinesError::Unhandled(inner) => Error::Unhandled(inner),
1201 }
1202 }
1203}
1204impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes::DescribeVolumesError, R>> for Error
1205where
1206 R: Send + Sync + std::fmt::Debug + 'static,
1207{
1208 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_volumes::DescribeVolumesError, R>) -> Self {
1209 match err {
1210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1213 source: err.into(),
1214 }),
1215 }
1216 }
1217}
1218impl From<crate::operation::describe_volumes::DescribeVolumesError> for Error {
1219 fn from(err: crate::operation::describe_volumes::DescribeVolumesError) -> Self {
1220 match err {
1221 crate::operation::describe_volumes::DescribeVolumesError::BadRequest(inner) => Error::BadRequest(inner),
1222 crate::operation::describe_volumes::DescribeVolumesError::InternalServerError(inner) => Error::InternalServerError(inner),
1223 crate::operation::describe_volumes::DescribeVolumesError::VolumeNotFound(inner) => Error::VolumeNotFound(inner),
1224 crate::operation::describe_volumes::DescribeVolumesError::Unhandled(inner) => Error::Unhandled(inner),
1225 }
1226 }
1227}
1228impl<R>
1229 From<
1230 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_file_system_aliases::DisassociateFileSystemAliasesError, R>,
1231 > for Error
1232where
1233 R: Send + Sync + std::fmt::Debug + 'static,
1234{
1235 fn from(
1236 err: ::aws_smithy_runtime_api::client::result::SdkError<
1237 crate::operation::disassociate_file_system_aliases::DisassociateFileSystemAliasesError,
1238 R,
1239 >,
1240 ) -> Self {
1241 match err {
1242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1245 source: err.into(),
1246 }),
1247 }
1248 }
1249}
1250impl From<crate::operation::disassociate_file_system_aliases::DisassociateFileSystemAliasesError> for Error {
1251 fn from(err: crate::operation::disassociate_file_system_aliases::DisassociateFileSystemAliasesError) -> Self {
1252 match err {
1253 crate::operation::disassociate_file_system_aliases::DisassociateFileSystemAliasesError::BadRequest(inner) => Error::BadRequest(inner),
1254 crate::operation::disassociate_file_system_aliases::DisassociateFileSystemAliasesError::FileSystemNotFound(inner) => {
1255 Error::FileSystemNotFound(inner)
1256 }
1257 crate::operation::disassociate_file_system_aliases::DisassociateFileSystemAliasesError::InternalServerError(inner) => {
1258 Error::InternalServerError(inner)
1259 }
1260 crate::operation::disassociate_file_system_aliases::DisassociateFileSystemAliasesError::Unhandled(inner) => Error::Unhandled(inner),
1261 }
1262 }
1263}
1264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1265where
1266 R: Send + Sync + std::fmt::Debug + 'static,
1267{
1268 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1269 match err {
1270 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1271 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1272 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1273 source: err.into(),
1274 }),
1275 }
1276 }
1277}
1278impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1279 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1280 match err {
1281 crate::operation::list_tags_for_resource::ListTagsForResourceError::BadRequest(inner) => Error::BadRequest(inner),
1282 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1283 crate::operation::list_tags_for_resource::ListTagsForResourceError::NotServiceResourceError(inner) => {
1284 Error::NotServiceResourceError(inner)
1285 }
1286 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceDoesNotSupportTagging(inner) => {
1287 Error::ResourceDoesNotSupportTagging(inner)
1288 }
1289 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1290 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1291 }
1292 }
1293}
1294impl<R>
1295 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError, R>>
1296 for Error
1297where
1298 R: Send + Sync + std::fmt::Debug + 'static,
1299{
1300 fn from(
1301 err: ::aws_smithy_runtime_api::client::result::SdkError<
1302 crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError,
1303 R,
1304 >,
1305 ) -> Self {
1306 match err {
1307 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1308 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1309 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1310 source: err.into(),
1311 }),
1312 }
1313 }
1314}
1315impl From<crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError> for Error {
1316 fn from(err: crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError) -> Self {
1317 match err {
1318 crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError::BadRequest(inner) => Error::BadRequest(inner),
1319 crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError::FileSystemNotFound(inner) => {
1320 Error::FileSystemNotFound(inner)
1321 }
1322 crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError::IncompatibleParameterError(inner) => {
1323 Error::IncompatibleParameterError(inner)
1324 }
1325 crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError::InternalServerError(inner) => {
1326 Error::InternalServerError(inner)
1327 }
1328 crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError::ServiceLimitExceeded(inner) => {
1329 Error::ServiceLimitExceeded(inner)
1330 }
1331 crate::operation::release_file_system_nfs_v3_locks::ReleaseFileSystemNfsV3LocksError::Unhandled(inner) => Error::Unhandled(inner),
1332 }
1333 }
1334}
1335impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError, R>>
1336 for Error
1337where
1338 R: Send + Sync + std::fmt::Debug + 'static,
1339{
1340 fn from(
1341 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError, R>,
1342 ) -> Self {
1343 match err {
1344 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1345 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1346 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1347 source: err.into(),
1348 }),
1349 }
1350 }
1351}
1352impl From<crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError> for Error {
1353 fn from(err: crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError) -> Self {
1354 match err {
1355 crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError::BadRequest(inner) => Error::BadRequest(inner),
1356 crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError::InternalServerError(inner) => {
1357 Error::InternalServerError(inner)
1358 }
1359 crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError::VolumeNotFound(inner) => Error::VolumeNotFound(inner),
1360 crate::operation::restore_volume_from_snapshot::RestoreVolumeFromSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
1361 }
1362 }
1363}
1364impl<R>
1365 From<
1366 ::aws_smithy_runtime_api::client::result::SdkError<
1367 crate::operation::start_misconfigured_state_recovery::StartMisconfiguredStateRecoveryError,
1368 R,
1369 >,
1370 > for Error
1371where
1372 R: Send + Sync + std::fmt::Debug + 'static,
1373{
1374 fn from(
1375 err: ::aws_smithy_runtime_api::client::result::SdkError<
1376 crate::operation::start_misconfigured_state_recovery::StartMisconfiguredStateRecoveryError,
1377 R,
1378 >,
1379 ) -> Self {
1380 match err {
1381 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1382 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1383 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1384 source: err.into(),
1385 }),
1386 }
1387 }
1388}
1389impl From<crate::operation::start_misconfigured_state_recovery::StartMisconfiguredStateRecoveryError> for Error {
1390 fn from(err: crate::operation::start_misconfigured_state_recovery::StartMisconfiguredStateRecoveryError) -> Self {
1391 match err {
1392 crate::operation::start_misconfigured_state_recovery::StartMisconfiguredStateRecoveryError::BadRequest(inner) => Error::BadRequest(inner),
1393 crate::operation::start_misconfigured_state_recovery::StartMisconfiguredStateRecoveryError::FileSystemNotFound(inner) => {
1394 Error::FileSystemNotFound(inner)
1395 }
1396 crate::operation::start_misconfigured_state_recovery::StartMisconfiguredStateRecoveryError::InternalServerError(inner) => {
1397 Error::InternalServerError(inner)
1398 }
1399 crate::operation::start_misconfigured_state_recovery::StartMisconfiguredStateRecoveryError::Unhandled(inner) => Error::Unhandled(inner),
1400 }
1401 }
1402}
1403impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1404where
1405 R: Send + Sync + std::fmt::Debug + 'static,
1406{
1407 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1408 match err {
1409 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1410 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1411 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1412 source: err.into(),
1413 }),
1414 }
1415 }
1416}
1417impl From<crate::operation::tag_resource::TagResourceError> for Error {
1418 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1419 match err {
1420 crate::operation::tag_resource::TagResourceError::BadRequest(inner) => Error::BadRequest(inner),
1421 crate::operation::tag_resource::TagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1422 crate::operation::tag_resource::TagResourceError::NotServiceResourceError(inner) => Error::NotServiceResourceError(inner),
1423 crate::operation::tag_resource::TagResourceError::ResourceDoesNotSupportTagging(inner) => Error::ResourceDoesNotSupportTagging(inner),
1424 crate::operation::tag_resource::TagResourceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1425 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1426 }
1427 }
1428}
1429impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1430where
1431 R: Send + Sync + std::fmt::Debug + 'static,
1432{
1433 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1434 match err {
1435 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1436 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1437 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1438 source: err.into(),
1439 }),
1440 }
1441 }
1442}
1443impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1444 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1445 match err {
1446 crate::operation::untag_resource::UntagResourceError::BadRequest(inner) => Error::BadRequest(inner),
1447 crate::operation::untag_resource::UntagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1448 crate::operation::untag_resource::UntagResourceError::NotServiceResourceError(inner) => Error::NotServiceResourceError(inner),
1449 crate::operation::untag_resource::UntagResourceError::ResourceDoesNotSupportTagging(inner) => Error::ResourceDoesNotSupportTagging(inner),
1450 crate::operation::untag_resource::UntagResourceError::ResourceNotFound(inner) => Error::ResourceNotFound(inner),
1451 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1452 }
1453 }
1454}
1455impl<R>
1456 From<
1457 ::aws_smithy_runtime_api::client::result::SdkError<
1458 crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError,
1459 R,
1460 >,
1461 > for Error
1462where
1463 R: Send + Sync + std::fmt::Debug + 'static,
1464{
1465 fn from(
1466 err: ::aws_smithy_runtime_api::client::result::SdkError<
1467 crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError,
1468 R,
1469 >,
1470 ) -> Self {
1471 match err {
1472 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1473 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1474 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1475 source: err.into(),
1476 }),
1477 }
1478 }
1479}
1480impl From<crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError> for Error {
1481 fn from(err: crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError) -> Self {
1482 match err {
1483 crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError::BadRequest(inner) => Error::BadRequest(inner),
1484 crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError::DataRepositoryAssociationNotFound(inner) => {
1485 Error::DataRepositoryAssociationNotFound(inner)
1486 }
1487 crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError::IncompatibleParameterError(inner) => {
1488 Error::IncompatibleParameterError(inner)
1489 }
1490 crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError::InternalServerError(inner) => {
1491 Error::InternalServerError(inner)
1492 }
1493 crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError::ServiceLimitExceeded(inner) => {
1494 Error::ServiceLimitExceeded(inner)
1495 }
1496 crate::operation::update_data_repository_association::UpdateDataRepositoryAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1497 }
1498 }
1499}
1500impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_file_cache::UpdateFileCacheError, R>> for Error
1501where
1502 R: Send + Sync + std::fmt::Debug + 'static,
1503{
1504 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_file_cache::UpdateFileCacheError, R>) -> Self {
1505 match err {
1506 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1507 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1508 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1509 source: err.into(),
1510 }),
1511 }
1512 }
1513}
1514impl From<crate::operation::update_file_cache::UpdateFileCacheError> for Error {
1515 fn from(err: crate::operation::update_file_cache::UpdateFileCacheError) -> Self {
1516 match err {
1517 crate::operation::update_file_cache::UpdateFileCacheError::BadRequest(inner) => Error::BadRequest(inner),
1518 crate::operation::update_file_cache::UpdateFileCacheError::FileCacheNotFound(inner) => Error::FileCacheNotFound(inner),
1519 crate::operation::update_file_cache::UpdateFileCacheError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
1520 crate::operation::update_file_cache::UpdateFileCacheError::InternalServerError(inner) => Error::InternalServerError(inner),
1521 crate::operation::update_file_cache::UpdateFileCacheError::MissingFileCacheConfiguration(inner) => {
1522 Error::MissingFileCacheConfiguration(inner)
1523 }
1524 crate::operation::update_file_cache::UpdateFileCacheError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
1525 crate::operation::update_file_cache::UpdateFileCacheError::UnsupportedOperation(inner) => Error::UnsupportedOperation(inner),
1526 crate::operation::update_file_cache::UpdateFileCacheError::Unhandled(inner) => Error::Unhandled(inner),
1527 }
1528 }
1529}
1530impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_file_system::UpdateFileSystemError, R>> for Error
1531where
1532 R: Send + Sync + std::fmt::Debug + 'static,
1533{
1534 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_file_system::UpdateFileSystemError, R>) -> Self {
1535 match err {
1536 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1537 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1538 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1539 source: err.into(),
1540 }),
1541 }
1542 }
1543}
1544impl From<crate::operation::update_file_system::UpdateFileSystemError> for Error {
1545 fn from(err: crate::operation::update_file_system::UpdateFileSystemError) -> Self {
1546 match err {
1547 crate::operation::update_file_system::UpdateFileSystemError::BadRequest(inner) => Error::BadRequest(inner),
1548 crate::operation::update_file_system::UpdateFileSystemError::FileSystemNotFound(inner) => Error::FileSystemNotFound(inner),
1549 crate::operation::update_file_system::UpdateFileSystemError::IncompatibleParameterError(inner) => {
1550 Error::IncompatibleParameterError(inner)
1551 }
1552 crate::operation::update_file_system::UpdateFileSystemError::InternalServerError(inner) => Error::InternalServerError(inner),
1553 crate::operation::update_file_system::UpdateFileSystemError::InvalidNetworkSettings(inner) => Error::InvalidNetworkSettings(inner),
1554 crate::operation::update_file_system::UpdateFileSystemError::MissingFileSystemConfiguration(inner) => {
1555 Error::MissingFileSystemConfiguration(inner)
1556 }
1557 crate::operation::update_file_system::UpdateFileSystemError::ServiceLimitExceeded(inner) => Error::ServiceLimitExceeded(inner),
1558 crate::operation::update_file_system::UpdateFileSystemError::UnsupportedOperation(inner) => Error::UnsupportedOperation(inner),
1559 crate::operation::update_file_system::UpdateFileSystemError::Unhandled(inner) => Error::Unhandled(inner),
1560 }
1561 }
1562}
1563impl<R>
1564 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationError, R>>
1565 for Error
1566where
1567 R: Send + Sync + std::fmt::Debug + 'static,
1568{
1569 fn from(
1570 err: ::aws_smithy_runtime_api::client::result::SdkError<
1571 crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationError,
1572 R,
1573 >,
1574 ) -> Self {
1575 match err {
1576 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1577 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1578 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1579 source: err.into(),
1580 }),
1581 }
1582 }
1583}
1584impl From<crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationError> for Error {
1585 fn from(err: crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationError) -> Self {
1586 match err {
1587 crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationError::BadRequest(inner) => Error::BadRequest(inner),
1588 crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationError::IncompatibleParameterError(inner) => {
1589 Error::IncompatibleParameterError(inner)
1590 }
1591 crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationError::InternalServerError(inner) => {
1592 Error::InternalServerError(inner)
1593 }
1594 crate::operation::update_shared_vpc_configuration::UpdateSharedVpcConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1595 }
1596 }
1597}
1598impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_snapshot::UpdateSnapshotError, R>> for Error
1599where
1600 R: Send + Sync + std::fmt::Debug + 'static,
1601{
1602 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_snapshot::UpdateSnapshotError, R>) -> Self {
1603 match err {
1604 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1605 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1606 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1607 source: err.into(),
1608 }),
1609 }
1610 }
1611}
1612impl From<crate::operation::update_snapshot::UpdateSnapshotError> for Error {
1613 fn from(err: crate::operation::update_snapshot::UpdateSnapshotError) -> Self {
1614 match err {
1615 crate::operation::update_snapshot::UpdateSnapshotError::BadRequest(inner) => Error::BadRequest(inner),
1616 crate::operation::update_snapshot::UpdateSnapshotError::InternalServerError(inner) => Error::InternalServerError(inner),
1617 crate::operation::update_snapshot::UpdateSnapshotError::SnapshotNotFound(inner) => Error::SnapshotNotFound(inner),
1618 crate::operation::update_snapshot::UpdateSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
1619 }
1620 }
1621}
1622impl<R>
1623 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError, R>>
1624 for Error
1625where
1626 R: Send + Sync + std::fmt::Debug + 'static,
1627{
1628 fn from(
1629 err: ::aws_smithy_runtime_api::client::result::SdkError<
1630 crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError,
1631 R,
1632 >,
1633 ) -> Self {
1634 match err {
1635 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1636 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1637 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1638 source: err.into(),
1639 }),
1640 }
1641 }
1642}
1643impl From<crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError> for Error {
1644 fn from(err: crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError) -> Self {
1645 match err {
1646 crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError::BadRequest(inner) => Error::BadRequest(inner),
1647 crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError::IncompatibleParameterError(inner) => {
1648 Error::IncompatibleParameterError(inner)
1649 }
1650 crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError::InternalServerError(inner) => {
1651 Error::InternalServerError(inner)
1652 }
1653 crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError::StorageVirtualMachineNotFound(inner) => {
1654 Error::StorageVirtualMachineNotFound(inner)
1655 }
1656 crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError::UnsupportedOperation(inner) => {
1657 Error::UnsupportedOperation(inner)
1658 }
1659 crate::operation::update_storage_virtual_machine::UpdateStorageVirtualMachineError::Unhandled(inner) => Error::Unhandled(inner),
1660 }
1661 }
1662}
1663impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_volume::UpdateVolumeError, R>> for Error
1664where
1665 R: Send + Sync + std::fmt::Debug + 'static,
1666{
1667 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_volume::UpdateVolumeError, R>) -> Self {
1668 match err {
1669 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1670 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1671 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1672 source: err.into(),
1673 }),
1674 }
1675 }
1676}
1677impl From<crate::operation::update_volume::UpdateVolumeError> for Error {
1678 fn from(err: crate::operation::update_volume::UpdateVolumeError) -> Self {
1679 match err {
1680 crate::operation::update_volume::UpdateVolumeError::BadRequest(inner) => Error::BadRequest(inner),
1681 crate::operation::update_volume::UpdateVolumeError::IncompatibleParameterError(inner) => Error::IncompatibleParameterError(inner),
1682 crate::operation::update_volume::UpdateVolumeError::InternalServerError(inner) => Error::InternalServerError(inner),
1683 crate::operation::update_volume::UpdateVolumeError::MissingVolumeConfiguration(inner) => Error::MissingVolumeConfiguration(inner),
1684 crate::operation::update_volume::UpdateVolumeError::VolumeNotFound(inner) => Error::VolumeNotFound(inner),
1685 crate::operation::update_volume::UpdateVolumeError::Unhandled(inner) => Error::Unhandled(inner),
1686 }
1687 }
1688}
1689impl ::std::error::Error for Error {
1690 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1691 match self {
1692 Error::ActiveDirectoryError(inner) => inner.source(),
1693 Error::BackupBeingCopied(inner) => inner.source(),
1694 Error::BackupInProgress(inner) => inner.source(),
1695 Error::BackupNotFound(inner) => inner.source(),
1696 Error::BackupRestoring(inner) => inner.source(),
1697 Error::BadRequest(inner) => inner.source(),
1698 Error::DataRepositoryAssociationNotFound(inner) => inner.source(),
1699 Error::DataRepositoryTaskEnded(inner) => inner.source(),
1700 Error::DataRepositoryTaskExecuting(inner) => inner.source(),
1701 Error::DataRepositoryTaskNotFound(inner) => inner.source(),
1702 Error::FileCacheNotFound(inner) => inner.source(),
1703 Error::FileSystemNotFound(inner) => inner.source(),
1704 Error::IncompatibleParameterError(inner) => inner.source(),
1705 Error::IncompatibleRegionForMultiAz(inner) => inner.source(),
1706 Error::InternalServerError(inner) => inner.source(),
1707 Error::InvalidDataRepositoryType(inner) => inner.source(),
1708 Error::InvalidDestinationKmsKey(inner) => inner.source(),
1709 Error::InvalidExportPath(inner) => inner.source(),
1710 Error::InvalidImportPath(inner) => inner.source(),
1711 Error::InvalidNetworkSettings(inner) => inner.source(),
1712 Error::InvalidPerUnitStorageThroughput(inner) => inner.source(),
1713 Error::InvalidRegion(inner) => inner.source(),
1714 Error::InvalidSourceKmsKey(inner) => inner.source(),
1715 Error::MissingFileCacheConfiguration(inner) => inner.source(),
1716 Error::MissingFileSystemConfiguration(inner) => inner.source(),
1717 Error::MissingVolumeConfiguration(inner) => inner.source(),
1718 Error::NotServiceResourceError(inner) => inner.source(),
1719 Error::ResourceDoesNotSupportTagging(inner) => inner.source(),
1720 Error::ResourceNotFound(inner) => inner.source(),
1721 Error::ServiceLimitExceeded(inner) => inner.source(),
1722 Error::SnapshotNotFound(inner) => inner.source(),
1723 Error::SourceBackupUnavailable(inner) => inner.source(),
1724 Error::StorageVirtualMachineNotFound(inner) => inner.source(),
1725 Error::UnsupportedOperation(inner) => inner.source(),
1726 Error::VolumeNotFound(inner) => inner.source(),
1727 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1728 }
1729 }
1730}
1731impl ::aws_types::request_id::RequestId for Error {
1732 fn request_id(&self) -> Option<&str> {
1733 match self {
1734 Self::ActiveDirectoryError(e) => e.request_id(),
1735 Self::BackupBeingCopied(e) => e.request_id(),
1736 Self::BackupInProgress(e) => e.request_id(),
1737 Self::BackupNotFound(e) => e.request_id(),
1738 Self::BackupRestoring(e) => e.request_id(),
1739 Self::BadRequest(e) => e.request_id(),
1740 Self::DataRepositoryAssociationNotFound(e) => e.request_id(),
1741 Self::DataRepositoryTaskEnded(e) => e.request_id(),
1742 Self::DataRepositoryTaskExecuting(e) => e.request_id(),
1743 Self::DataRepositoryTaskNotFound(e) => e.request_id(),
1744 Self::FileCacheNotFound(e) => e.request_id(),
1745 Self::FileSystemNotFound(e) => e.request_id(),
1746 Self::IncompatibleParameterError(e) => e.request_id(),
1747 Self::IncompatibleRegionForMultiAz(e) => e.request_id(),
1748 Self::InternalServerError(e) => e.request_id(),
1749 Self::InvalidDataRepositoryType(e) => e.request_id(),
1750 Self::InvalidDestinationKmsKey(e) => e.request_id(),
1751 Self::InvalidExportPath(e) => e.request_id(),
1752 Self::InvalidImportPath(e) => e.request_id(),
1753 Self::InvalidNetworkSettings(e) => e.request_id(),
1754 Self::InvalidPerUnitStorageThroughput(e) => e.request_id(),
1755 Self::InvalidRegion(e) => e.request_id(),
1756 Self::InvalidSourceKmsKey(e) => e.request_id(),
1757 Self::MissingFileCacheConfiguration(e) => e.request_id(),
1758 Self::MissingFileSystemConfiguration(e) => e.request_id(),
1759 Self::MissingVolumeConfiguration(e) => e.request_id(),
1760 Self::NotServiceResourceError(e) => e.request_id(),
1761 Self::ResourceDoesNotSupportTagging(e) => e.request_id(),
1762 Self::ResourceNotFound(e) => e.request_id(),
1763 Self::ServiceLimitExceeded(e) => e.request_id(),
1764 Self::SnapshotNotFound(e) => e.request_id(),
1765 Self::SourceBackupUnavailable(e) => e.request_id(),
1766 Self::StorageVirtualMachineNotFound(e) => e.request_id(),
1767 Self::UnsupportedOperation(e) => e.request_id(),
1768 Self::VolumeNotFound(e) => e.request_id(),
1769 Self::Unhandled(e) => e.meta.request_id(),
1770 }
1771 }
1772}