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