1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AlreadyExistsException(crate::types::error::AlreadyExistsException),
8 ConflictException(crate::types::error::ConflictException),
10 DependencyFailureException(crate::types::error::DependencyFailureException),
12 InvalidParameterValueException(crate::types::error::InvalidParameterValueException),
14 InvalidRequestException(crate::types::error::InvalidRequestException),
16 InvalidResourceStateException(crate::types::error::InvalidResourceStateException),
18 LimitExceededException(crate::types::error::LimitExceededException),
20 MissingParameterValueException(crate::types::error::MissingParameterValueException),
22 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
24 ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
26 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
28 variable wildcard pattern and check `.code()`:
29 \
30 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
31 \
32 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
33 Unhandled(crate::error::sealed_unhandled::Unhandled),
34}
35impl ::std::fmt::Display for Error {
36 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
37 match self {
38 Error::AlreadyExistsException(inner) => inner.fmt(f),
39 Error::ConflictException(inner) => inner.fmt(f),
40 Error::DependencyFailureException(inner) => inner.fmt(f),
41 Error::InvalidParameterValueException(inner) => inner.fmt(f),
42 Error::InvalidRequestException(inner) => inner.fmt(f),
43 Error::InvalidResourceStateException(inner) => inner.fmt(f),
44 Error::LimitExceededException(inner) => inner.fmt(f),
45 Error::MissingParameterValueException(inner) => inner.fmt(f),
46 Error::ResourceNotFoundException(inner) => inner.fmt(f),
47 Error::ServiceUnavailableException(inner) => inner.fmt(f),
48 Error::Unhandled(_) => {
49 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
50 write!(f, "unhandled error ({code})")
51 } else {
52 f.write_str("unhandled error")
53 }
54 }
55 }
56 }
57}
58impl From<::aws_smithy_types::error::operation::BuildError> for Error {
59 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
60 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
61 source: value.into(),
62 meta: ::std::default::Default::default(),
63 })
64 }
65}
66impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
67 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
68 match self {
69 Self::AlreadyExistsException(inner) => inner.meta(),
70 Self::ConflictException(inner) => inner.meta(),
71 Self::DependencyFailureException(inner) => inner.meta(),
72 Self::InvalidParameterValueException(inner) => inner.meta(),
73 Self::InvalidRequestException(inner) => inner.meta(),
74 Self::InvalidResourceStateException(inner) => inner.meta(),
75 Self::LimitExceededException(inner) => inner.meta(),
76 Self::MissingParameterValueException(inner) => inner.meta(),
77 Self::ResourceNotFoundException(inner) => inner.meta(),
78 Self::ServiceUnavailableException(inner) => inner.meta(),
79 Self::Unhandled(inner) => &inner.meta,
80 }
81 }
82}
83impl<R>
84 From<
85 ::aws_smithy_runtime_api::client::result::SdkError<
86 crate::operation::associate_backup_vault_mpa_approval_team::AssociateBackupVaultMpaApprovalTeamError,
87 R,
88 >,
89 > for Error
90where
91 R: Send + Sync + std::fmt::Debug + 'static,
92{
93 fn from(
94 err: ::aws_smithy_runtime_api::client::result::SdkError<
95 crate::operation::associate_backup_vault_mpa_approval_team::AssociateBackupVaultMpaApprovalTeamError,
96 R,
97 >,
98 ) -> Self {
99 match err {
100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
103 source: err.into(),
104 }),
105 }
106 }
107}
108impl From<crate::operation::associate_backup_vault_mpa_approval_team::AssociateBackupVaultMpaApprovalTeamError> for Error {
109 fn from(err: crate::operation::associate_backup_vault_mpa_approval_team::AssociateBackupVaultMpaApprovalTeamError) -> Self {
110 match err {
111 crate::operation::associate_backup_vault_mpa_approval_team::AssociateBackupVaultMpaApprovalTeamError::InvalidParameterValueException(
112 inner,
113 ) => Error::InvalidParameterValueException(inner),
114 crate::operation::associate_backup_vault_mpa_approval_team::AssociateBackupVaultMpaApprovalTeamError::InvalidRequestException(inner) => {
115 Error::InvalidRequestException(inner)
116 }
117 crate::operation::associate_backup_vault_mpa_approval_team::AssociateBackupVaultMpaApprovalTeamError::MissingParameterValueException(
118 inner,
119 ) => Error::MissingParameterValueException(inner),
120 crate::operation::associate_backup_vault_mpa_approval_team::AssociateBackupVaultMpaApprovalTeamError::ResourceNotFoundException(
121 inner,
122 ) => Error::ResourceNotFoundException(inner),
123 crate::operation::associate_backup_vault_mpa_approval_team::AssociateBackupVaultMpaApprovalTeamError::ServiceUnavailableException(
124 inner,
125 ) => Error::ServiceUnavailableException(inner),
126 crate::operation::associate_backup_vault_mpa_approval_team::AssociateBackupVaultMpaApprovalTeamError::Unhandled(inner) => {
127 Error::Unhandled(inner)
128 }
129 }
130 }
131}
132impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_legal_hold::CancelLegalHoldError, R>> for Error
133where
134 R: Send + Sync + std::fmt::Debug + 'static,
135{
136 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_legal_hold::CancelLegalHoldError, R>) -> Self {
137 match err {
138 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
139 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
140 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
141 source: err.into(),
142 }),
143 }
144 }
145}
146impl From<crate::operation::cancel_legal_hold::CancelLegalHoldError> for Error {
147 fn from(err: crate::operation::cancel_legal_hold::CancelLegalHoldError) -> Self {
148 match err {
149 crate::operation::cancel_legal_hold::CancelLegalHoldError::InvalidParameterValueException(inner) => {
150 Error::InvalidParameterValueException(inner)
151 }
152 crate::operation::cancel_legal_hold::CancelLegalHoldError::InvalidResourceStateException(inner) => {
153 Error::InvalidResourceStateException(inner)
154 }
155 crate::operation::cancel_legal_hold::CancelLegalHoldError::MissingParameterValueException(inner) => {
156 Error::MissingParameterValueException(inner)
157 }
158 crate::operation::cancel_legal_hold::CancelLegalHoldError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
159 crate::operation::cancel_legal_hold::CancelLegalHoldError::ServiceUnavailableException(inner) => {
160 Error::ServiceUnavailableException(inner)
161 }
162 crate::operation::cancel_legal_hold::CancelLegalHoldError::Unhandled(inner) => Error::Unhandled(inner),
163 }
164 }
165}
166impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_backup_plan::CreateBackupPlanError, R>> for Error
167where
168 R: Send + Sync + std::fmt::Debug + 'static,
169{
170 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_backup_plan::CreateBackupPlanError, R>) -> Self {
171 match err {
172 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
173 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
174 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
175 source: err.into(),
176 }),
177 }
178 }
179}
180impl From<crate::operation::create_backup_plan::CreateBackupPlanError> for Error {
181 fn from(err: crate::operation::create_backup_plan::CreateBackupPlanError) -> Self {
182 match err {
183 crate::operation::create_backup_plan::CreateBackupPlanError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
184 crate::operation::create_backup_plan::CreateBackupPlanError::InvalidParameterValueException(inner) => {
185 Error::InvalidParameterValueException(inner)
186 }
187 crate::operation::create_backup_plan::CreateBackupPlanError::LimitExceededException(inner) => Error::LimitExceededException(inner),
188 crate::operation::create_backup_plan::CreateBackupPlanError::MissingParameterValueException(inner) => {
189 Error::MissingParameterValueException(inner)
190 }
191 crate::operation::create_backup_plan::CreateBackupPlanError::ServiceUnavailableException(inner) => {
192 Error::ServiceUnavailableException(inner)
193 }
194 crate::operation::create_backup_plan::CreateBackupPlanError::Unhandled(inner) => Error::Unhandled(inner),
195 }
196 }
197}
198impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_backup_selection::CreateBackupSelectionError, R>> for Error
199where
200 R: Send + Sync + std::fmt::Debug + 'static,
201{
202 fn from(
203 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_backup_selection::CreateBackupSelectionError, R>,
204 ) -> Self {
205 match err {
206 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
207 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
208 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
209 source: err.into(),
210 }),
211 }
212 }
213}
214impl From<crate::operation::create_backup_selection::CreateBackupSelectionError> for Error {
215 fn from(err: crate::operation::create_backup_selection::CreateBackupSelectionError) -> Self {
216 match err {
217 crate::operation::create_backup_selection::CreateBackupSelectionError::AlreadyExistsException(inner) => {
218 Error::AlreadyExistsException(inner)
219 }
220 crate::operation::create_backup_selection::CreateBackupSelectionError::InvalidParameterValueException(inner) => {
221 Error::InvalidParameterValueException(inner)
222 }
223 crate::operation::create_backup_selection::CreateBackupSelectionError::LimitExceededException(inner) => {
224 Error::LimitExceededException(inner)
225 }
226 crate::operation::create_backup_selection::CreateBackupSelectionError::MissingParameterValueException(inner) => {
227 Error::MissingParameterValueException(inner)
228 }
229 crate::operation::create_backup_selection::CreateBackupSelectionError::ServiceUnavailableException(inner) => {
230 Error::ServiceUnavailableException(inner)
231 }
232 crate::operation::create_backup_selection::CreateBackupSelectionError::Unhandled(inner) => Error::Unhandled(inner),
233 }
234 }
235}
236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_backup_vault::CreateBackupVaultError, R>> for Error
237where
238 R: Send + Sync + std::fmt::Debug + 'static,
239{
240 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_backup_vault::CreateBackupVaultError, R>) -> Self {
241 match err {
242 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
243 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
244 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
245 source: err.into(),
246 }),
247 }
248 }
249}
250impl From<crate::operation::create_backup_vault::CreateBackupVaultError> for Error {
251 fn from(err: crate::operation::create_backup_vault::CreateBackupVaultError) -> Self {
252 match err {
253 crate::operation::create_backup_vault::CreateBackupVaultError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
254 crate::operation::create_backup_vault::CreateBackupVaultError::InvalidParameterValueException(inner) => {
255 Error::InvalidParameterValueException(inner)
256 }
257 crate::operation::create_backup_vault::CreateBackupVaultError::LimitExceededException(inner) => Error::LimitExceededException(inner),
258 crate::operation::create_backup_vault::CreateBackupVaultError::MissingParameterValueException(inner) => {
259 Error::MissingParameterValueException(inner)
260 }
261 crate::operation::create_backup_vault::CreateBackupVaultError::ServiceUnavailableException(inner) => {
262 Error::ServiceUnavailableException(inner)
263 }
264 crate::operation::create_backup_vault::CreateBackupVaultError::Unhandled(inner) => Error::Unhandled(inner),
265 }
266 }
267}
268impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_framework::CreateFrameworkError, R>> for Error
269where
270 R: Send + Sync + std::fmt::Debug + 'static,
271{
272 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_framework::CreateFrameworkError, R>) -> Self {
273 match err {
274 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
275 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
276 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
277 source: err.into(),
278 }),
279 }
280 }
281}
282impl From<crate::operation::create_framework::CreateFrameworkError> for Error {
283 fn from(err: crate::operation::create_framework::CreateFrameworkError) -> Self {
284 match err {
285 crate::operation::create_framework::CreateFrameworkError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
286 crate::operation::create_framework::CreateFrameworkError::InvalidParameterValueException(inner) => {
287 Error::InvalidParameterValueException(inner)
288 }
289 crate::operation::create_framework::CreateFrameworkError::LimitExceededException(inner) => Error::LimitExceededException(inner),
290 crate::operation::create_framework::CreateFrameworkError::MissingParameterValueException(inner) => {
291 Error::MissingParameterValueException(inner)
292 }
293 crate::operation::create_framework::CreateFrameworkError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
294 crate::operation::create_framework::CreateFrameworkError::Unhandled(inner) => Error::Unhandled(inner),
295 }
296 }
297}
298impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_legal_hold::CreateLegalHoldError, R>> for Error
299where
300 R: Send + Sync + std::fmt::Debug + 'static,
301{
302 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_legal_hold::CreateLegalHoldError, R>) -> Self {
303 match err {
304 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
305 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
306 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
307 source: err.into(),
308 }),
309 }
310 }
311}
312impl From<crate::operation::create_legal_hold::CreateLegalHoldError> for Error {
313 fn from(err: crate::operation::create_legal_hold::CreateLegalHoldError) -> Self {
314 match err {
315 crate::operation::create_legal_hold::CreateLegalHoldError::InvalidParameterValueException(inner) => {
316 Error::InvalidParameterValueException(inner)
317 }
318 crate::operation::create_legal_hold::CreateLegalHoldError::LimitExceededException(inner) => Error::LimitExceededException(inner),
319 crate::operation::create_legal_hold::CreateLegalHoldError::MissingParameterValueException(inner) => {
320 Error::MissingParameterValueException(inner)
321 }
322 crate::operation::create_legal_hold::CreateLegalHoldError::ServiceUnavailableException(inner) => {
323 Error::ServiceUnavailableException(inner)
324 }
325 crate::operation::create_legal_hold::CreateLegalHoldError::Unhandled(inner) => Error::Unhandled(inner),
326 }
327 }
328}
329impl<R>
330 From<
331 ::aws_smithy_runtime_api::client::result::SdkError<
332 crate::operation::create_logically_air_gapped_backup_vault::CreateLogicallyAirGappedBackupVaultError,
333 R,
334 >,
335 > for Error
336where
337 R: Send + Sync + std::fmt::Debug + 'static,
338{
339 fn from(
340 err: ::aws_smithy_runtime_api::client::result::SdkError<
341 crate::operation::create_logically_air_gapped_backup_vault::CreateLogicallyAirGappedBackupVaultError,
342 R,
343 >,
344 ) -> Self {
345 match err {
346 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
347 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
348 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
349 source: err.into(),
350 }),
351 }
352 }
353}
354impl From<crate::operation::create_logically_air_gapped_backup_vault::CreateLogicallyAirGappedBackupVaultError> for Error {
355 fn from(err: crate::operation::create_logically_air_gapped_backup_vault::CreateLogicallyAirGappedBackupVaultError) -> Self {
356 match err {
357 crate::operation::create_logically_air_gapped_backup_vault::CreateLogicallyAirGappedBackupVaultError::AlreadyExistsException(inner) => {
358 Error::AlreadyExistsException(inner)
359 }
360 crate::operation::create_logically_air_gapped_backup_vault::CreateLogicallyAirGappedBackupVaultError::InvalidParameterValueException(
361 inner,
362 ) => Error::InvalidParameterValueException(inner),
363 crate::operation::create_logically_air_gapped_backup_vault::CreateLogicallyAirGappedBackupVaultError::InvalidRequestException(inner) => {
364 Error::InvalidRequestException(inner)
365 }
366 crate::operation::create_logically_air_gapped_backup_vault::CreateLogicallyAirGappedBackupVaultError::LimitExceededException(inner) => {
367 Error::LimitExceededException(inner)
368 }
369 crate::operation::create_logically_air_gapped_backup_vault::CreateLogicallyAirGappedBackupVaultError::MissingParameterValueException(
370 inner,
371 ) => Error::MissingParameterValueException(inner),
372 crate::operation::create_logically_air_gapped_backup_vault::CreateLogicallyAirGappedBackupVaultError::ServiceUnavailableException(
373 inner,
374 ) => Error::ServiceUnavailableException(inner),
375 crate::operation::create_logically_air_gapped_backup_vault::CreateLogicallyAirGappedBackupVaultError::Unhandled(inner) => {
376 Error::Unhandled(inner)
377 }
378 }
379 }
380}
381impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_report_plan::CreateReportPlanError, R>> for Error
382where
383 R: Send + Sync + std::fmt::Debug + 'static,
384{
385 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_report_plan::CreateReportPlanError, R>) -> Self {
386 match err {
387 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
388 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
389 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
390 source: err.into(),
391 }),
392 }
393 }
394}
395impl From<crate::operation::create_report_plan::CreateReportPlanError> for Error {
396 fn from(err: crate::operation::create_report_plan::CreateReportPlanError) -> Self {
397 match err {
398 crate::operation::create_report_plan::CreateReportPlanError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
399 crate::operation::create_report_plan::CreateReportPlanError::InvalidParameterValueException(inner) => {
400 Error::InvalidParameterValueException(inner)
401 }
402 crate::operation::create_report_plan::CreateReportPlanError::LimitExceededException(inner) => Error::LimitExceededException(inner),
403 crate::operation::create_report_plan::CreateReportPlanError::MissingParameterValueException(inner) => {
404 Error::MissingParameterValueException(inner)
405 }
406 crate::operation::create_report_plan::CreateReportPlanError::ServiceUnavailableException(inner) => {
407 Error::ServiceUnavailableException(inner)
408 }
409 crate::operation::create_report_plan::CreateReportPlanError::Unhandled(inner) => Error::Unhandled(inner),
410 }
411 }
412}
413impl<R>
414 From<
415 ::aws_smithy_runtime_api::client::result::SdkError<
416 crate::operation::create_restore_access_backup_vault::CreateRestoreAccessBackupVaultError,
417 R,
418 >,
419 > for Error
420where
421 R: Send + Sync + std::fmt::Debug + 'static,
422{
423 fn from(
424 err: ::aws_smithy_runtime_api::client::result::SdkError<
425 crate::operation::create_restore_access_backup_vault::CreateRestoreAccessBackupVaultError,
426 R,
427 >,
428 ) -> Self {
429 match err {
430 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
431 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
432 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
433 source: err.into(),
434 }),
435 }
436 }
437}
438impl From<crate::operation::create_restore_access_backup_vault::CreateRestoreAccessBackupVaultError> for Error {
439 fn from(err: crate::operation::create_restore_access_backup_vault::CreateRestoreAccessBackupVaultError) -> Self {
440 match err {
441 crate::operation::create_restore_access_backup_vault::CreateRestoreAccessBackupVaultError::AlreadyExistsException(inner) => {
442 Error::AlreadyExistsException(inner)
443 }
444 crate::operation::create_restore_access_backup_vault::CreateRestoreAccessBackupVaultError::InvalidParameterValueException(inner) => {
445 Error::InvalidParameterValueException(inner)
446 }
447 crate::operation::create_restore_access_backup_vault::CreateRestoreAccessBackupVaultError::InvalidRequestException(inner) => {
448 Error::InvalidRequestException(inner)
449 }
450 crate::operation::create_restore_access_backup_vault::CreateRestoreAccessBackupVaultError::LimitExceededException(inner) => {
451 Error::LimitExceededException(inner)
452 }
453 crate::operation::create_restore_access_backup_vault::CreateRestoreAccessBackupVaultError::MissingParameterValueException(inner) => {
454 Error::MissingParameterValueException(inner)
455 }
456 crate::operation::create_restore_access_backup_vault::CreateRestoreAccessBackupVaultError::ResourceNotFoundException(inner) => {
457 Error::ResourceNotFoundException(inner)
458 }
459 crate::operation::create_restore_access_backup_vault::CreateRestoreAccessBackupVaultError::ServiceUnavailableException(inner) => {
460 Error::ServiceUnavailableException(inner)
461 }
462 crate::operation::create_restore_access_backup_vault::CreateRestoreAccessBackupVaultError::Unhandled(inner) => Error::Unhandled(inner),
463 }
464 }
465}
466impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_restore_testing_plan::CreateRestoreTestingPlanError, R>>
467 for Error
468where
469 R: Send + Sync + std::fmt::Debug + 'static,
470{
471 fn from(
472 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_restore_testing_plan::CreateRestoreTestingPlanError, R>,
473 ) -> Self {
474 match err {
475 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
476 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
477 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
478 source: err.into(),
479 }),
480 }
481 }
482}
483impl From<crate::operation::create_restore_testing_plan::CreateRestoreTestingPlanError> for Error {
484 fn from(err: crate::operation::create_restore_testing_plan::CreateRestoreTestingPlanError) -> Self {
485 match err {
486 crate::operation::create_restore_testing_plan::CreateRestoreTestingPlanError::AlreadyExistsException(inner) => {
487 Error::AlreadyExistsException(inner)
488 }
489 crate::operation::create_restore_testing_plan::CreateRestoreTestingPlanError::ConflictException(inner) => Error::ConflictException(inner),
490 crate::operation::create_restore_testing_plan::CreateRestoreTestingPlanError::InvalidParameterValueException(inner) => {
491 Error::InvalidParameterValueException(inner)
492 }
493 crate::operation::create_restore_testing_plan::CreateRestoreTestingPlanError::LimitExceededException(inner) => {
494 Error::LimitExceededException(inner)
495 }
496 crate::operation::create_restore_testing_plan::CreateRestoreTestingPlanError::MissingParameterValueException(inner) => {
497 Error::MissingParameterValueException(inner)
498 }
499 crate::operation::create_restore_testing_plan::CreateRestoreTestingPlanError::ServiceUnavailableException(inner) => {
500 Error::ServiceUnavailableException(inner)
501 }
502 crate::operation::create_restore_testing_plan::CreateRestoreTestingPlanError::Unhandled(inner) => Error::Unhandled(inner),
503 }
504 }
505}
506impl<R>
507 From<
508 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionError, R>,
509 > for Error
510where
511 R: Send + Sync + std::fmt::Debug + 'static,
512{
513 fn from(
514 err: ::aws_smithy_runtime_api::client::result::SdkError<
515 crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionError,
516 R,
517 >,
518 ) -> Self {
519 match err {
520 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
521 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
522 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
523 source: err.into(),
524 }),
525 }
526 }
527}
528impl From<crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionError> for Error {
529 fn from(err: crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionError) -> Self {
530 match err {
531 crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionError::AlreadyExistsException(inner) => {
532 Error::AlreadyExistsException(inner)
533 }
534 crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionError::InvalidParameterValueException(inner) => {
535 Error::InvalidParameterValueException(inner)
536 }
537 crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionError::LimitExceededException(inner) => {
538 Error::LimitExceededException(inner)
539 }
540 crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionError::MissingParameterValueException(inner) => {
541 Error::MissingParameterValueException(inner)
542 }
543 crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionError::ResourceNotFoundException(inner) => {
544 Error::ResourceNotFoundException(inner)
545 }
546 crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionError::ServiceUnavailableException(inner) => {
547 Error::ServiceUnavailableException(inner)
548 }
549 crate::operation::create_restore_testing_selection::CreateRestoreTestingSelectionError::Unhandled(inner) => Error::Unhandled(inner),
550 }
551 }
552}
553impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tiering_configuration::CreateTieringConfigurationError, R>>
554 for Error
555where
556 R: Send + Sync + std::fmt::Debug + 'static,
557{
558 fn from(
559 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tiering_configuration::CreateTieringConfigurationError, R>,
560 ) -> Self {
561 match err {
562 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
563 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
564 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
565 source: err.into(),
566 }),
567 }
568 }
569}
570impl From<crate::operation::create_tiering_configuration::CreateTieringConfigurationError> for Error {
571 fn from(err: crate::operation::create_tiering_configuration::CreateTieringConfigurationError) -> Self {
572 match err {
573 crate::operation::create_tiering_configuration::CreateTieringConfigurationError::AlreadyExistsException(inner) => {
574 Error::AlreadyExistsException(inner)
575 }
576 crate::operation::create_tiering_configuration::CreateTieringConfigurationError::ConflictException(inner) => {
577 Error::ConflictException(inner)
578 }
579 crate::operation::create_tiering_configuration::CreateTieringConfigurationError::InvalidParameterValueException(inner) => {
580 Error::InvalidParameterValueException(inner)
581 }
582 crate::operation::create_tiering_configuration::CreateTieringConfigurationError::LimitExceededException(inner) => {
583 Error::LimitExceededException(inner)
584 }
585 crate::operation::create_tiering_configuration::CreateTieringConfigurationError::MissingParameterValueException(inner) => {
586 Error::MissingParameterValueException(inner)
587 }
588 crate::operation::create_tiering_configuration::CreateTieringConfigurationError::ServiceUnavailableException(inner) => {
589 Error::ServiceUnavailableException(inner)
590 }
591 crate::operation::create_tiering_configuration::CreateTieringConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
592 }
593 }
594}
595impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_backup_plan::DeleteBackupPlanError, R>> for Error
596where
597 R: Send + Sync + std::fmt::Debug + 'static,
598{
599 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_backup_plan::DeleteBackupPlanError, R>) -> Self {
600 match err {
601 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
602 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
603 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
604 source: err.into(),
605 }),
606 }
607 }
608}
609impl From<crate::operation::delete_backup_plan::DeleteBackupPlanError> for Error {
610 fn from(err: crate::operation::delete_backup_plan::DeleteBackupPlanError) -> Self {
611 match err {
612 crate::operation::delete_backup_plan::DeleteBackupPlanError::InvalidParameterValueException(inner) => {
613 Error::InvalidParameterValueException(inner)
614 }
615 crate::operation::delete_backup_plan::DeleteBackupPlanError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
616 crate::operation::delete_backup_plan::DeleteBackupPlanError::MissingParameterValueException(inner) => {
617 Error::MissingParameterValueException(inner)
618 }
619 crate::operation::delete_backup_plan::DeleteBackupPlanError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
620 crate::operation::delete_backup_plan::DeleteBackupPlanError::ServiceUnavailableException(inner) => {
621 Error::ServiceUnavailableException(inner)
622 }
623 crate::operation::delete_backup_plan::DeleteBackupPlanError::Unhandled(inner) => Error::Unhandled(inner),
624 }
625 }
626}
627impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_backup_selection::DeleteBackupSelectionError, R>> for Error
628where
629 R: Send + Sync + std::fmt::Debug + 'static,
630{
631 fn from(
632 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_backup_selection::DeleteBackupSelectionError, R>,
633 ) -> Self {
634 match err {
635 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
636 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
637 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
638 source: err.into(),
639 }),
640 }
641 }
642}
643impl From<crate::operation::delete_backup_selection::DeleteBackupSelectionError> for Error {
644 fn from(err: crate::operation::delete_backup_selection::DeleteBackupSelectionError) -> Self {
645 match err {
646 crate::operation::delete_backup_selection::DeleteBackupSelectionError::InvalidParameterValueException(inner) => {
647 Error::InvalidParameterValueException(inner)
648 }
649 crate::operation::delete_backup_selection::DeleteBackupSelectionError::MissingParameterValueException(inner) => {
650 Error::MissingParameterValueException(inner)
651 }
652 crate::operation::delete_backup_selection::DeleteBackupSelectionError::ResourceNotFoundException(inner) => {
653 Error::ResourceNotFoundException(inner)
654 }
655 crate::operation::delete_backup_selection::DeleteBackupSelectionError::ServiceUnavailableException(inner) => {
656 Error::ServiceUnavailableException(inner)
657 }
658 crate::operation::delete_backup_selection::DeleteBackupSelectionError::Unhandled(inner) => Error::Unhandled(inner),
659 }
660 }
661}
662impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_backup_vault::DeleteBackupVaultError, R>> for Error
663where
664 R: Send + Sync + std::fmt::Debug + 'static,
665{
666 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_backup_vault::DeleteBackupVaultError, R>) -> Self {
667 match err {
668 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
669 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
670 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
671 source: err.into(),
672 }),
673 }
674 }
675}
676impl From<crate::operation::delete_backup_vault::DeleteBackupVaultError> for Error {
677 fn from(err: crate::operation::delete_backup_vault::DeleteBackupVaultError) -> Self {
678 match err {
679 crate::operation::delete_backup_vault::DeleteBackupVaultError::InvalidParameterValueException(inner) => {
680 Error::InvalidParameterValueException(inner)
681 }
682 crate::operation::delete_backup_vault::DeleteBackupVaultError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
683 crate::operation::delete_backup_vault::DeleteBackupVaultError::MissingParameterValueException(inner) => {
684 Error::MissingParameterValueException(inner)
685 }
686 crate::operation::delete_backup_vault::DeleteBackupVaultError::ResourceNotFoundException(inner) => {
687 Error::ResourceNotFoundException(inner)
688 }
689 crate::operation::delete_backup_vault::DeleteBackupVaultError::ServiceUnavailableException(inner) => {
690 Error::ServiceUnavailableException(inner)
691 }
692 crate::operation::delete_backup_vault::DeleteBackupVaultError::Unhandled(inner) => Error::Unhandled(inner),
693 }
694 }
695}
696impl<R>
697 From<
698 ::aws_smithy_runtime_api::client::result::SdkError<
699 crate::operation::delete_backup_vault_access_policy::DeleteBackupVaultAccessPolicyError,
700 R,
701 >,
702 > for Error
703where
704 R: Send + Sync + std::fmt::Debug + 'static,
705{
706 fn from(
707 err: ::aws_smithy_runtime_api::client::result::SdkError<
708 crate::operation::delete_backup_vault_access_policy::DeleteBackupVaultAccessPolicyError,
709 R,
710 >,
711 ) -> Self {
712 match err {
713 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
714 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
715 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
716 source: err.into(),
717 }),
718 }
719 }
720}
721impl From<crate::operation::delete_backup_vault_access_policy::DeleteBackupVaultAccessPolicyError> for Error {
722 fn from(err: crate::operation::delete_backup_vault_access_policy::DeleteBackupVaultAccessPolicyError) -> Self {
723 match err {
724 crate::operation::delete_backup_vault_access_policy::DeleteBackupVaultAccessPolicyError::InvalidParameterValueException(inner) => {
725 Error::InvalidParameterValueException(inner)
726 }
727 crate::operation::delete_backup_vault_access_policy::DeleteBackupVaultAccessPolicyError::MissingParameterValueException(inner) => {
728 Error::MissingParameterValueException(inner)
729 }
730 crate::operation::delete_backup_vault_access_policy::DeleteBackupVaultAccessPolicyError::ResourceNotFoundException(inner) => {
731 Error::ResourceNotFoundException(inner)
732 }
733 crate::operation::delete_backup_vault_access_policy::DeleteBackupVaultAccessPolicyError::ServiceUnavailableException(inner) => {
734 Error::ServiceUnavailableException(inner)
735 }
736 crate::operation::delete_backup_vault_access_policy::DeleteBackupVaultAccessPolicyError::Unhandled(inner) => Error::Unhandled(inner),
737 }
738 }
739}
740impl<R>
741 From<
742 ::aws_smithy_runtime_api::client::result::SdkError<
743 crate::operation::delete_backup_vault_lock_configuration::DeleteBackupVaultLockConfigurationError,
744 R,
745 >,
746 > for Error
747where
748 R: Send + Sync + std::fmt::Debug + 'static,
749{
750 fn from(
751 err: ::aws_smithy_runtime_api::client::result::SdkError<
752 crate::operation::delete_backup_vault_lock_configuration::DeleteBackupVaultLockConfigurationError,
753 R,
754 >,
755 ) -> Self {
756 match err {
757 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
758 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
759 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
760 source: err.into(),
761 }),
762 }
763 }
764}
765impl From<crate::operation::delete_backup_vault_lock_configuration::DeleteBackupVaultLockConfigurationError> for Error {
766 fn from(err: crate::operation::delete_backup_vault_lock_configuration::DeleteBackupVaultLockConfigurationError) -> Self {
767 match err {
768 crate::operation::delete_backup_vault_lock_configuration::DeleteBackupVaultLockConfigurationError::InvalidParameterValueException(
769 inner,
770 ) => Error::InvalidParameterValueException(inner),
771 crate::operation::delete_backup_vault_lock_configuration::DeleteBackupVaultLockConfigurationError::InvalidRequestException(inner) => {
772 Error::InvalidRequestException(inner)
773 }
774 crate::operation::delete_backup_vault_lock_configuration::DeleteBackupVaultLockConfigurationError::MissingParameterValueException(
775 inner,
776 ) => Error::MissingParameterValueException(inner),
777 crate::operation::delete_backup_vault_lock_configuration::DeleteBackupVaultLockConfigurationError::ResourceNotFoundException(inner) => {
778 Error::ResourceNotFoundException(inner)
779 }
780 crate::operation::delete_backup_vault_lock_configuration::DeleteBackupVaultLockConfigurationError::ServiceUnavailableException(inner) => {
781 Error::ServiceUnavailableException(inner)
782 }
783 crate::operation::delete_backup_vault_lock_configuration::DeleteBackupVaultLockConfigurationError::Unhandled(inner) => {
784 Error::Unhandled(inner)
785 }
786 }
787 }
788}
789impl<R>
790 From<
791 ::aws_smithy_runtime_api::client::result::SdkError<
792 crate::operation::delete_backup_vault_notifications::DeleteBackupVaultNotificationsError,
793 R,
794 >,
795 > for Error
796where
797 R: Send + Sync + std::fmt::Debug + 'static,
798{
799 fn from(
800 err: ::aws_smithy_runtime_api::client::result::SdkError<
801 crate::operation::delete_backup_vault_notifications::DeleteBackupVaultNotificationsError,
802 R,
803 >,
804 ) -> Self {
805 match err {
806 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
807 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
808 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
809 source: err.into(),
810 }),
811 }
812 }
813}
814impl From<crate::operation::delete_backup_vault_notifications::DeleteBackupVaultNotificationsError> for Error {
815 fn from(err: crate::operation::delete_backup_vault_notifications::DeleteBackupVaultNotificationsError) -> Self {
816 match err {
817 crate::operation::delete_backup_vault_notifications::DeleteBackupVaultNotificationsError::InvalidParameterValueException(inner) => {
818 Error::InvalidParameterValueException(inner)
819 }
820 crate::operation::delete_backup_vault_notifications::DeleteBackupVaultNotificationsError::MissingParameterValueException(inner) => {
821 Error::MissingParameterValueException(inner)
822 }
823 crate::operation::delete_backup_vault_notifications::DeleteBackupVaultNotificationsError::ResourceNotFoundException(inner) => {
824 Error::ResourceNotFoundException(inner)
825 }
826 crate::operation::delete_backup_vault_notifications::DeleteBackupVaultNotificationsError::ServiceUnavailableException(inner) => {
827 Error::ServiceUnavailableException(inner)
828 }
829 crate::operation::delete_backup_vault_notifications::DeleteBackupVaultNotificationsError::Unhandled(inner) => Error::Unhandled(inner),
830 }
831 }
832}
833impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_framework::DeleteFrameworkError, R>> for Error
834where
835 R: Send + Sync + std::fmt::Debug + 'static,
836{
837 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_framework::DeleteFrameworkError, R>) -> Self {
838 match err {
839 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
840 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
841 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
842 source: err.into(),
843 }),
844 }
845 }
846}
847impl From<crate::operation::delete_framework::DeleteFrameworkError> for Error {
848 fn from(err: crate::operation::delete_framework::DeleteFrameworkError) -> Self {
849 match err {
850 crate::operation::delete_framework::DeleteFrameworkError::ConflictException(inner) => Error::ConflictException(inner),
851 crate::operation::delete_framework::DeleteFrameworkError::InvalidParameterValueException(inner) => {
852 Error::InvalidParameterValueException(inner)
853 }
854 crate::operation::delete_framework::DeleteFrameworkError::MissingParameterValueException(inner) => {
855 Error::MissingParameterValueException(inner)
856 }
857 crate::operation::delete_framework::DeleteFrameworkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
858 crate::operation::delete_framework::DeleteFrameworkError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
859 crate::operation::delete_framework::DeleteFrameworkError::Unhandled(inner) => Error::Unhandled(inner),
860 }
861 }
862}
863impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_recovery_point::DeleteRecoveryPointError, R>> for Error
864where
865 R: Send + Sync + std::fmt::Debug + 'static,
866{
867 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_recovery_point::DeleteRecoveryPointError, R>) -> Self {
868 match err {
869 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
870 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
871 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
872 source: err.into(),
873 }),
874 }
875 }
876}
877impl From<crate::operation::delete_recovery_point::DeleteRecoveryPointError> for Error {
878 fn from(err: crate::operation::delete_recovery_point::DeleteRecoveryPointError) -> Self {
879 match err {
880 crate::operation::delete_recovery_point::DeleteRecoveryPointError::InvalidParameterValueException(inner) => {
881 Error::InvalidParameterValueException(inner)
882 }
883 crate::operation::delete_recovery_point::DeleteRecoveryPointError::InvalidRequestException(inner) => {
884 Error::InvalidRequestException(inner)
885 }
886 crate::operation::delete_recovery_point::DeleteRecoveryPointError::InvalidResourceStateException(inner) => {
887 Error::InvalidResourceStateException(inner)
888 }
889 crate::operation::delete_recovery_point::DeleteRecoveryPointError::MissingParameterValueException(inner) => {
890 Error::MissingParameterValueException(inner)
891 }
892 crate::operation::delete_recovery_point::DeleteRecoveryPointError::ResourceNotFoundException(inner) => {
893 Error::ResourceNotFoundException(inner)
894 }
895 crate::operation::delete_recovery_point::DeleteRecoveryPointError::ServiceUnavailableException(inner) => {
896 Error::ServiceUnavailableException(inner)
897 }
898 crate::operation::delete_recovery_point::DeleteRecoveryPointError::Unhandled(inner) => Error::Unhandled(inner),
899 }
900 }
901}
902impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_report_plan::DeleteReportPlanError, R>> for Error
903where
904 R: Send + Sync + std::fmt::Debug + 'static,
905{
906 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_report_plan::DeleteReportPlanError, R>) -> Self {
907 match err {
908 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
909 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
910 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
911 source: err.into(),
912 }),
913 }
914 }
915}
916impl From<crate::operation::delete_report_plan::DeleteReportPlanError> for Error {
917 fn from(err: crate::operation::delete_report_plan::DeleteReportPlanError) -> Self {
918 match err {
919 crate::operation::delete_report_plan::DeleteReportPlanError::ConflictException(inner) => Error::ConflictException(inner),
920 crate::operation::delete_report_plan::DeleteReportPlanError::InvalidParameterValueException(inner) => {
921 Error::InvalidParameterValueException(inner)
922 }
923 crate::operation::delete_report_plan::DeleteReportPlanError::MissingParameterValueException(inner) => {
924 Error::MissingParameterValueException(inner)
925 }
926 crate::operation::delete_report_plan::DeleteReportPlanError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
927 crate::operation::delete_report_plan::DeleteReportPlanError::ServiceUnavailableException(inner) => {
928 Error::ServiceUnavailableException(inner)
929 }
930 crate::operation::delete_report_plan::DeleteReportPlanError::Unhandled(inner) => Error::Unhandled(inner),
931 }
932 }
933}
934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_restore_testing_plan::DeleteRestoreTestingPlanError, R>>
935 for Error
936where
937 R: Send + Sync + std::fmt::Debug + 'static,
938{
939 fn from(
940 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_restore_testing_plan::DeleteRestoreTestingPlanError, R>,
941 ) -> Self {
942 match err {
943 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
944 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
945 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
946 source: err.into(),
947 }),
948 }
949 }
950}
951impl From<crate::operation::delete_restore_testing_plan::DeleteRestoreTestingPlanError> for Error {
952 fn from(err: crate::operation::delete_restore_testing_plan::DeleteRestoreTestingPlanError) -> Self {
953 match err {
954 crate::operation::delete_restore_testing_plan::DeleteRestoreTestingPlanError::InvalidRequestException(inner) => {
955 Error::InvalidRequestException(inner)
956 }
957 crate::operation::delete_restore_testing_plan::DeleteRestoreTestingPlanError::ServiceUnavailableException(inner) => {
958 Error::ServiceUnavailableException(inner)
959 }
960 crate::operation::delete_restore_testing_plan::DeleteRestoreTestingPlanError::Unhandled(inner) => Error::Unhandled(inner),
961 }
962 }
963}
964impl<R>
965 From<
966 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_restore_testing_selection::DeleteRestoreTestingSelectionError, R>,
967 > for Error
968where
969 R: Send + Sync + std::fmt::Debug + 'static,
970{
971 fn from(
972 err: ::aws_smithy_runtime_api::client::result::SdkError<
973 crate::operation::delete_restore_testing_selection::DeleteRestoreTestingSelectionError,
974 R,
975 >,
976 ) -> Self {
977 match err {
978 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
979 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
980 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
981 source: err.into(),
982 }),
983 }
984 }
985}
986impl From<crate::operation::delete_restore_testing_selection::DeleteRestoreTestingSelectionError> for Error {
987 fn from(err: crate::operation::delete_restore_testing_selection::DeleteRestoreTestingSelectionError) -> Self {
988 match err {
989 crate::operation::delete_restore_testing_selection::DeleteRestoreTestingSelectionError::ResourceNotFoundException(inner) => {
990 Error::ResourceNotFoundException(inner)
991 }
992 crate::operation::delete_restore_testing_selection::DeleteRestoreTestingSelectionError::ServiceUnavailableException(inner) => {
993 Error::ServiceUnavailableException(inner)
994 }
995 crate::operation::delete_restore_testing_selection::DeleteRestoreTestingSelectionError::Unhandled(inner) => Error::Unhandled(inner),
996 }
997 }
998}
999impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tiering_configuration::DeleteTieringConfigurationError, R>>
1000 for Error
1001where
1002 R: Send + Sync + std::fmt::Debug + 'static,
1003{
1004 fn from(
1005 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tiering_configuration::DeleteTieringConfigurationError, R>,
1006 ) -> Self {
1007 match err {
1008 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1009 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1010 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1011 source: err.into(),
1012 }),
1013 }
1014 }
1015}
1016impl From<crate::operation::delete_tiering_configuration::DeleteTieringConfigurationError> for Error {
1017 fn from(err: crate::operation::delete_tiering_configuration::DeleteTieringConfigurationError) -> Self {
1018 match err {
1019 crate::operation::delete_tiering_configuration::DeleteTieringConfigurationError::InvalidParameterValueException(inner) => {
1020 Error::InvalidParameterValueException(inner)
1021 }
1022 crate::operation::delete_tiering_configuration::DeleteTieringConfigurationError::MissingParameterValueException(inner) => {
1023 Error::MissingParameterValueException(inner)
1024 }
1025 crate::operation::delete_tiering_configuration::DeleteTieringConfigurationError::ResourceNotFoundException(inner) => {
1026 Error::ResourceNotFoundException(inner)
1027 }
1028 crate::operation::delete_tiering_configuration::DeleteTieringConfigurationError::ServiceUnavailableException(inner) => {
1029 Error::ServiceUnavailableException(inner)
1030 }
1031 crate::operation::delete_tiering_configuration::DeleteTieringConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1032 }
1033 }
1034}
1035impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_backup_job::DescribeBackupJobError, R>> for Error
1036where
1037 R: Send + Sync + std::fmt::Debug + 'static,
1038{
1039 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_backup_job::DescribeBackupJobError, R>) -> Self {
1040 match err {
1041 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1042 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1043 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1044 source: err.into(),
1045 }),
1046 }
1047 }
1048}
1049impl From<crate::operation::describe_backup_job::DescribeBackupJobError> for Error {
1050 fn from(err: crate::operation::describe_backup_job::DescribeBackupJobError) -> Self {
1051 match err {
1052 crate::operation::describe_backup_job::DescribeBackupJobError::DependencyFailureException(inner) => {
1053 Error::DependencyFailureException(inner)
1054 }
1055 crate::operation::describe_backup_job::DescribeBackupJobError::InvalidParameterValueException(inner) => {
1056 Error::InvalidParameterValueException(inner)
1057 }
1058 crate::operation::describe_backup_job::DescribeBackupJobError::MissingParameterValueException(inner) => {
1059 Error::MissingParameterValueException(inner)
1060 }
1061 crate::operation::describe_backup_job::DescribeBackupJobError::ResourceNotFoundException(inner) => {
1062 Error::ResourceNotFoundException(inner)
1063 }
1064 crate::operation::describe_backup_job::DescribeBackupJobError::ServiceUnavailableException(inner) => {
1065 Error::ServiceUnavailableException(inner)
1066 }
1067 crate::operation::describe_backup_job::DescribeBackupJobError::Unhandled(inner) => Error::Unhandled(inner),
1068 }
1069 }
1070}
1071impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_backup_vault::DescribeBackupVaultError, R>> for Error
1072where
1073 R: Send + Sync + std::fmt::Debug + 'static,
1074{
1075 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_backup_vault::DescribeBackupVaultError, R>) -> Self {
1076 match err {
1077 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1078 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1079 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1080 source: err.into(),
1081 }),
1082 }
1083 }
1084}
1085impl From<crate::operation::describe_backup_vault::DescribeBackupVaultError> for Error {
1086 fn from(err: crate::operation::describe_backup_vault::DescribeBackupVaultError) -> Self {
1087 match err {
1088 crate::operation::describe_backup_vault::DescribeBackupVaultError::InvalidParameterValueException(inner) => {
1089 Error::InvalidParameterValueException(inner)
1090 }
1091 crate::operation::describe_backup_vault::DescribeBackupVaultError::MissingParameterValueException(inner) => {
1092 Error::MissingParameterValueException(inner)
1093 }
1094 crate::operation::describe_backup_vault::DescribeBackupVaultError::ResourceNotFoundException(inner) => {
1095 Error::ResourceNotFoundException(inner)
1096 }
1097 crate::operation::describe_backup_vault::DescribeBackupVaultError::ServiceUnavailableException(inner) => {
1098 Error::ServiceUnavailableException(inner)
1099 }
1100 crate::operation::describe_backup_vault::DescribeBackupVaultError::Unhandled(inner) => Error::Unhandled(inner),
1101 }
1102 }
1103}
1104impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_copy_job::DescribeCopyJobError, R>> for Error
1105where
1106 R: Send + Sync + std::fmt::Debug + 'static,
1107{
1108 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_copy_job::DescribeCopyJobError, R>) -> Self {
1109 match err {
1110 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1111 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1112 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1113 source: err.into(),
1114 }),
1115 }
1116 }
1117}
1118impl From<crate::operation::describe_copy_job::DescribeCopyJobError> for Error {
1119 fn from(err: crate::operation::describe_copy_job::DescribeCopyJobError) -> Self {
1120 match err {
1121 crate::operation::describe_copy_job::DescribeCopyJobError::InvalidParameterValueException(inner) => {
1122 Error::InvalidParameterValueException(inner)
1123 }
1124 crate::operation::describe_copy_job::DescribeCopyJobError::MissingParameterValueException(inner) => {
1125 Error::MissingParameterValueException(inner)
1126 }
1127 crate::operation::describe_copy_job::DescribeCopyJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1128 crate::operation::describe_copy_job::DescribeCopyJobError::ServiceUnavailableException(inner) => {
1129 Error::ServiceUnavailableException(inner)
1130 }
1131 crate::operation::describe_copy_job::DescribeCopyJobError::Unhandled(inner) => Error::Unhandled(inner),
1132 }
1133 }
1134}
1135impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_framework::DescribeFrameworkError, R>> for Error
1136where
1137 R: Send + Sync + std::fmt::Debug + 'static,
1138{
1139 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_framework::DescribeFrameworkError, R>) -> Self {
1140 match err {
1141 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1142 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1143 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1144 source: err.into(),
1145 }),
1146 }
1147 }
1148}
1149impl From<crate::operation::describe_framework::DescribeFrameworkError> for Error {
1150 fn from(err: crate::operation::describe_framework::DescribeFrameworkError) -> Self {
1151 match err {
1152 crate::operation::describe_framework::DescribeFrameworkError::InvalidParameterValueException(inner) => {
1153 Error::InvalidParameterValueException(inner)
1154 }
1155 crate::operation::describe_framework::DescribeFrameworkError::MissingParameterValueException(inner) => {
1156 Error::MissingParameterValueException(inner)
1157 }
1158 crate::operation::describe_framework::DescribeFrameworkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1159 crate::operation::describe_framework::DescribeFrameworkError::ServiceUnavailableException(inner) => {
1160 Error::ServiceUnavailableException(inner)
1161 }
1162 crate::operation::describe_framework::DescribeFrameworkError::Unhandled(inner) => Error::Unhandled(inner),
1163 }
1164 }
1165}
1166impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_global_settings::DescribeGlobalSettingsError, R>> for Error
1167where
1168 R: Send + Sync + std::fmt::Debug + 'static,
1169{
1170 fn from(
1171 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_global_settings::DescribeGlobalSettingsError, R>,
1172 ) -> Self {
1173 match err {
1174 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1175 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1176 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1177 source: err.into(),
1178 }),
1179 }
1180 }
1181}
1182impl From<crate::operation::describe_global_settings::DescribeGlobalSettingsError> for Error {
1183 fn from(err: crate::operation::describe_global_settings::DescribeGlobalSettingsError) -> Self {
1184 match err {
1185 crate::operation::describe_global_settings::DescribeGlobalSettingsError::InvalidRequestException(inner) => {
1186 Error::InvalidRequestException(inner)
1187 }
1188 crate::operation::describe_global_settings::DescribeGlobalSettingsError::ServiceUnavailableException(inner) => {
1189 Error::ServiceUnavailableException(inner)
1190 }
1191 crate::operation::describe_global_settings::DescribeGlobalSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1192 }
1193 }
1194}
1195impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_protected_resource::DescribeProtectedResourceError, R>>
1196 for Error
1197where
1198 R: Send + Sync + std::fmt::Debug + 'static,
1199{
1200 fn from(
1201 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_protected_resource::DescribeProtectedResourceError, R>,
1202 ) -> Self {
1203 match err {
1204 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1205 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1206 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1207 source: err.into(),
1208 }),
1209 }
1210 }
1211}
1212impl From<crate::operation::describe_protected_resource::DescribeProtectedResourceError> for Error {
1213 fn from(err: crate::operation::describe_protected_resource::DescribeProtectedResourceError) -> Self {
1214 match err {
1215 crate::operation::describe_protected_resource::DescribeProtectedResourceError::InvalidParameterValueException(inner) => {
1216 Error::InvalidParameterValueException(inner)
1217 }
1218 crate::operation::describe_protected_resource::DescribeProtectedResourceError::MissingParameterValueException(inner) => {
1219 Error::MissingParameterValueException(inner)
1220 }
1221 crate::operation::describe_protected_resource::DescribeProtectedResourceError::ResourceNotFoundException(inner) => {
1222 Error::ResourceNotFoundException(inner)
1223 }
1224 crate::operation::describe_protected_resource::DescribeProtectedResourceError::ServiceUnavailableException(inner) => {
1225 Error::ServiceUnavailableException(inner)
1226 }
1227 crate::operation::describe_protected_resource::DescribeProtectedResourceError::Unhandled(inner) => Error::Unhandled(inner),
1228 }
1229 }
1230}
1231impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_recovery_point::DescribeRecoveryPointError, R>> for Error
1232where
1233 R: Send + Sync + std::fmt::Debug + 'static,
1234{
1235 fn from(
1236 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_recovery_point::DescribeRecoveryPointError, R>,
1237 ) -> Self {
1238 match err {
1239 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1240 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1241 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1242 source: err.into(),
1243 }),
1244 }
1245 }
1246}
1247impl From<crate::operation::describe_recovery_point::DescribeRecoveryPointError> for Error {
1248 fn from(err: crate::operation::describe_recovery_point::DescribeRecoveryPointError) -> Self {
1249 match err {
1250 crate::operation::describe_recovery_point::DescribeRecoveryPointError::InvalidParameterValueException(inner) => {
1251 Error::InvalidParameterValueException(inner)
1252 }
1253 crate::operation::describe_recovery_point::DescribeRecoveryPointError::MissingParameterValueException(inner) => {
1254 Error::MissingParameterValueException(inner)
1255 }
1256 crate::operation::describe_recovery_point::DescribeRecoveryPointError::ResourceNotFoundException(inner) => {
1257 Error::ResourceNotFoundException(inner)
1258 }
1259 crate::operation::describe_recovery_point::DescribeRecoveryPointError::ServiceUnavailableException(inner) => {
1260 Error::ServiceUnavailableException(inner)
1261 }
1262 crate::operation::describe_recovery_point::DescribeRecoveryPointError::Unhandled(inner) => Error::Unhandled(inner),
1263 }
1264 }
1265}
1266impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_region_settings::DescribeRegionSettingsError, R>> for Error
1267where
1268 R: Send + Sync + std::fmt::Debug + 'static,
1269{
1270 fn from(
1271 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_region_settings::DescribeRegionSettingsError, R>,
1272 ) -> Self {
1273 match err {
1274 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1275 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1276 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1277 source: err.into(),
1278 }),
1279 }
1280 }
1281}
1282impl From<crate::operation::describe_region_settings::DescribeRegionSettingsError> for Error {
1283 fn from(err: crate::operation::describe_region_settings::DescribeRegionSettingsError) -> Self {
1284 match err {
1285 crate::operation::describe_region_settings::DescribeRegionSettingsError::ServiceUnavailableException(inner) => {
1286 Error::ServiceUnavailableException(inner)
1287 }
1288 crate::operation::describe_region_settings::DescribeRegionSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1289 }
1290 }
1291}
1292impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_report_job::DescribeReportJobError, R>> for Error
1293where
1294 R: Send + Sync + std::fmt::Debug + 'static,
1295{
1296 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_report_job::DescribeReportJobError, R>) -> Self {
1297 match err {
1298 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1299 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1300 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1301 source: err.into(),
1302 }),
1303 }
1304 }
1305}
1306impl From<crate::operation::describe_report_job::DescribeReportJobError> for Error {
1307 fn from(err: crate::operation::describe_report_job::DescribeReportJobError) -> Self {
1308 match err {
1309 crate::operation::describe_report_job::DescribeReportJobError::MissingParameterValueException(inner) => {
1310 Error::MissingParameterValueException(inner)
1311 }
1312 crate::operation::describe_report_job::DescribeReportJobError::ResourceNotFoundException(inner) => {
1313 Error::ResourceNotFoundException(inner)
1314 }
1315 crate::operation::describe_report_job::DescribeReportJobError::ServiceUnavailableException(inner) => {
1316 Error::ServiceUnavailableException(inner)
1317 }
1318 crate::operation::describe_report_job::DescribeReportJobError::Unhandled(inner) => Error::Unhandled(inner),
1319 }
1320 }
1321}
1322impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_report_plan::DescribeReportPlanError, R>> for Error
1323where
1324 R: Send + Sync + std::fmt::Debug + 'static,
1325{
1326 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_report_plan::DescribeReportPlanError, R>) -> Self {
1327 match err {
1328 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1329 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1330 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1331 source: err.into(),
1332 }),
1333 }
1334 }
1335}
1336impl From<crate::operation::describe_report_plan::DescribeReportPlanError> for Error {
1337 fn from(err: crate::operation::describe_report_plan::DescribeReportPlanError) -> Self {
1338 match err {
1339 crate::operation::describe_report_plan::DescribeReportPlanError::InvalidParameterValueException(inner) => {
1340 Error::InvalidParameterValueException(inner)
1341 }
1342 crate::operation::describe_report_plan::DescribeReportPlanError::MissingParameterValueException(inner) => {
1343 Error::MissingParameterValueException(inner)
1344 }
1345 crate::operation::describe_report_plan::DescribeReportPlanError::ResourceNotFoundException(inner) => {
1346 Error::ResourceNotFoundException(inner)
1347 }
1348 crate::operation::describe_report_plan::DescribeReportPlanError::ServiceUnavailableException(inner) => {
1349 Error::ServiceUnavailableException(inner)
1350 }
1351 crate::operation::describe_report_plan::DescribeReportPlanError::Unhandled(inner) => Error::Unhandled(inner),
1352 }
1353 }
1354}
1355impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_restore_job::DescribeRestoreJobError, R>> for Error
1356where
1357 R: Send + Sync + std::fmt::Debug + 'static,
1358{
1359 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_restore_job::DescribeRestoreJobError, R>) -> Self {
1360 match err {
1361 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1362 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1363 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1364 source: err.into(),
1365 }),
1366 }
1367 }
1368}
1369impl From<crate::operation::describe_restore_job::DescribeRestoreJobError> for Error {
1370 fn from(err: crate::operation::describe_restore_job::DescribeRestoreJobError) -> Self {
1371 match err {
1372 crate::operation::describe_restore_job::DescribeRestoreJobError::DependencyFailureException(inner) => {
1373 Error::DependencyFailureException(inner)
1374 }
1375 crate::operation::describe_restore_job::DescribeRestoreJobError::InvalidParameterValueException(inner) => {
1376 Error::InvalidParameterValueException(inner)
1377 }
1378 crate::operation::describe_restore_job::DescribeRestoreJobError::MissingParameterValueException(inner) => {
1379 Error::MissingParameterValueException(inner)
1380 }
1381 crate::operation::describe_restore_job::DescribeRestoreJobError::ResourceNotFoundException(inner) => {
1382 Error::ResourceNotFoundException(inner)
1383 }
1384 crate::operation::describe_restore_job::DescribeRestoreJobError::ServiceUnavailableException(inner) => {
1385 Error::ServiceUnavailableException(inner)
1386 }
1387 crate::operation::describe_restore_job::DescribeRestoreJobError::Unhandled(inner) => Error::Unhandled(inner),
1388 }
1389 }
1390}
1391impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scan_job::DescribeScanJobError, R>> for Error
1392where
1393 R: Send + Sync + std::fmt::Debug + 'static,
1394{
1395 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scan_job::DescribeScanJobError, R>) -> Self {
1396 match err {
1397 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1398 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1399 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1400 source: err.into(),
1401 }),
1402 }
1403 }
1404}
1405impl From<crate::operation::describe_scan_job::DescribeScanJobError> for Error {
1406 fn from(err: crate::operation::describe_scan_job::DescribeScanJobError) -> Self {
1407 match err {
1408 crate::operation::describe_scan_job::DescribeScanJobError::InvalidParameterValueException(inner) => {
1409 Error::InvalidParameterValueException(inner)
1410 }
1411 crate::operation::describe_scan_job::DescribeScanJobError::MissingParameterValueException(inner) => {
1412 Error::MissingParameterValueException(inner)
1413 }
1414 crate::operation::describe_scan_job::DescribeScanJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1415 crate::operation::describe_scan_job::DescribeScanJobError::ServiceUnavailableException(inner) => {
1416 Error::ServiceUnavailableException(inner)
1417 }
1418 crate::operation::describe_scan_job::DescribeScanJobError::Unhandled(inner) => Error::Unhandled(inner),
1419 }
1420 }
1421}
1422impl<R>
1423 From<
1424 ::aws_smithy_runtime_api::client::result::SdkError<
1425 crate::operation::disassociate_backup_vault_mpa_approval_team::DisassociateBackupVaultMpaApprovalTeamError,
1426 R,
1427 >,
1428 > for Error
1429where
1430 R: Send + Sync + std::fmt::Debug + 'static,
1431{
1432 fn from(
1433 err: ::aws_smithy_runtime_api::client::result::SdkError<
1434 crate::operation::disassociate_backup_vault_mpa_approval_team::DisassociateBackupVaultMpaApprovalTeamError,
1435 R,
1436 >,
1437 ) -> Self {
1438 match err {
1439 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1440 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1441 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1442 source: err.into(),
1443 }),
1444 }
1445 }
1446}
1447impl From<crate::operation::disassociate_backup_vault_mpa_approval_team::DisassociateBackupVaultMpaApprovalTeamError> for Error {
1448 fn from(err: crate::operation::disassociate_backup_vault_mpa_approval_team::DisassociateBackupVaultMpaApprovalTeamError) -> Self {
1449 match err {
1450 crate::operation::disassociate_backup_vault_mpa_approval_team::DisassociateBackupVaultMpaApprovalTeamError::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner),
1451 crate::operation::disassociate_backup_vault_mpa_approval_team::DisassociateBackupVaultMpaApprovalTeamError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
1452 crate::operation::disassociate_backup_vault_mpa_approval_team::DisassociateBackupVaultMpaApprovalTeamError::MissingParameterValueException(inner) => Error::MissingParameterValueException(inner),
1453 crate::operation::disassociate_backup_vault_mpa_approval_team::DisassociateBackupVaultMpaApprovalTeamError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1454 crate::operation::disassociate_backup_vault_mpa_approval_team::DisassociateBackupVaultMpaApprovalTeamError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1455 crate::operation::disassociate_backup_vault_mpa_approval_team::DisassociateBackupVaultMpaApprovalTeamError::Unhandled(inner) => Error::Unhandled(inner),
1456 }
1457 }
1458}
1459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_recovery_point::DisassociateRecoveryPointError, R>>
1460 for Error
1461where
1462 R: Send + Sync + std::fmt::Debug + 'static,
1463{
1464 fn from(
1465 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_recovery_point::DisassociateRecoveryPointError, R>,
1466 ) -> Self {
1467 match err {
1468 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1469 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1470 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1471 source: err.into(),
1472 }),
1473 }
1474 }
1475}
1476impl From<crate::operation::disassociate_recovery_point::DisassociateRecoveryPointError> for Error {
1477 fn from(err: crate::operation::disassociate_recovery_point::DisassociateRecoveryPointError) -> Self {
1478 match err {
1479 crate::operation::disassociate_recovery_point::DisassociateRecoveryPointError::InvalidParameterValueException(inner) => {
1480 Error::InvalidParameterValueException(inner)
1481 }
1482 crate::operation::disassociate_recovery_point::DisassociateRecoveryPointError::InvalidRequestException(inner) => {
1483 Error::InvalidRequestException(inner)
1484 }
1485 crate::operation::disassociate_recovery_point::DisassociateRecoveryPointError::InvalidResourceStateException(inner) => {
1486 Error::InvalidResourceStateException(inner)
1487 }
1488 crate::operation::disassociate_recovery_point::DisassociateRecoveryPointError::MissingParameterValueException(inner) => {
1489 Error::MissingParameterValueException(inner)
1490 }
1491 crate::operation::disassociate_recovery_point::DisassociateRecoveryPointError::ResourceNotFoundException(inner) => {
1492 Error::ResourceNotFoundException(inner)
1493 }
1494 crate::operation::disassociate_recovery_point::DisassociateRecoveryPointError::ServiceUnavailableException(inner) => {
1495 Error::ServiceUnavailableException(inner)
1496 }
1497 crate::operation::disassociate_recovery_point::DisassociateRecoveryPointError::Unhandled(inner) => Error::Unhandled(inner),
1498 }
1499 }
1500}
1501impl<R>
1502 From<
1503 ::aws_smithy_runtime_api::client::result::SdkError<
1504 crate::operation::disassociate_recovery_point_from_parent::DisassociateRecoveryPointFromParentError,
1505 R,
1506 >,
1507 > for Error
1508where
1509 R: Send + Sync + std::fmt::Debug + 'static,
1510{
1511 fn from(
1512 err: ::aws_smithy_runtime_api::client::result::SdkError<
1513 crate::operation::disassociate_recovery_point_from_parent::DisassociateRecoveryPointFromParentError,
1514 R,
1515 >,
1516 ) -> Self {
1517 match err {
1518 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1519 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1520 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1521 source: err.into(),
1522 }),
1523 }
1524 }
1525}
1526impl From<crate::operation::disassociate_recovery_point_from_parent::DisassociateRecoveryPointFromParentError> for Error {
1527 fn from(err: crate::operation::disassociate_recovery_point_from_parent::DisassociateRecoveryPointFromParentError) -> Self {
1528 match err {
1529 crate::operation::disassociate_recovery_point_from_parent::DisassociateRecoveryPointFromParentError::InvalidParameterValueException(
1530 inner,
1531 ) => Error::InvalidParameterValueException(inner),
1532 crate::operation::disassociate_recovery_point_from_parent::DisassociateRecoveryPointFromParentError::InvalidRequestException(inner) => {
1533 Error::InvalidRequestException(inner)
1534 }
1535 crate::operation::disassociate_recovery_point_from_parent::DisassociateRecoveryPointFromParentError::MissingParameterValueException(
1536 inner,
1537 ) => Error::MissingParameterValueException(inner),
1538 crate::operation::disassociate_recovery_point_from_parent::DisassociateRecoveryPointFromParentError::ResourceNotFoundException(inner) => {
1539 Error::ResourceNotFoundException(inner)
1540 }
1541 crate::operation::disassociate_recovery_point_from_parent::DisassociateRecoveryPointFromParentError::ServiceUnavailableException(
1542 inner,
1543 ) => Error::ServiceUnavailableException(inner),
1544 crate::operation::disassociate_recovery_point_from_parent::DisassociateRecoveryPointFromParentError::Unhandled(inner) => {
1545 Error::Unhandled(inner)
1546 }
1547 }
1548 }
1549}
1550impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_backup_plan_template::ExportBackupPlanTemplateError, R>>
1551 for Error
1552where
1553 R: Send + Sync + std::fmt::Debug + 'static,
1554{
1555 fn from(
1556 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_backup_plan_template::ExportBackupPlanTemplateError, R>,
1557 ) -> Self {
1558 match err {
1559 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1560 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1561 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1562 source: err.into(),
1563 }),
1564 }
1565 }
1566}
1567impl From<crate::operation::export_backup_plan_template::ExportBackupPlanTemplateError> for Error {
1568 fn from(err: crate::operation::export_backup_plan_template::ExportBackupPlanTemplateError) -> Self {
1569 match err {
1570 crate::operation::export_backup_plan_template::ExportBackupPlanTemplateError::InvalidParameterValueException(inner) => {
1571 Error::InvalidParameterValueException(inner)
1572 }
1573 crate::operation::export_backup_plan_template::ExportBackupPlanTemplateError::MissingParameterValueException(inner) => {
1574 Error::MissingParameterValueException(inner)
1575 }
1576 crate::operation::export_backup_plan_template::ExportBackupPlanTemplateError::ResourceNotFoundException(inner) => {
1577 Error::ResourceNotFoundException(inner)
1578 }
1579 crate::operation::export_backup_plan_template::ExportBackupPlanTemplateError::ServiceUnavailableException(inner) => {
1580 Error::ServiceUnavailableException(inner)
1581 }
1582 crate::operation::export_backup_plan_template::ExportBackupPlanTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1583 }
1584 }
1585}
1586impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_backup_plan::GetBackupPlanError, R>> for Error
1587where
1588 R: Send + Sync + std::fmt::Debug + 'static,
1589{
1590 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_backup_plan::GetBackupPlanError, R>) -> Self {
1591 match err {
1592 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1593 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1594 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1595 source: err.into(),
1596 }),
1597 }
1598 }
1599}
1600impl From<crate::operation::get_backup_plan::GetBackupPlanError> for Error {
1601 fn from(err: crate::operation::get_backup_plan::GetBackupPlanError) -> Self {
1602 match err {
1603 crate::operation::get_backup_plan::GetBackupPlanError::InvalidParameterValueException(inner) => {
1604 Error::InvalidParameterValueException(inner)
1605 }
1606 crate::operation::get_backup_plan::GetBackupPlanError::MissingParameterValueException(inner) => {
1607 Error::MissingParameterValueException(inner)
1608 }
1609 crate::operation::get_backup_plan::GetBackupPlanError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1610 crate::operation::get_backup_plan::GetBackupPlanError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1611 crate::operation::get_backup_plan::GetBackupPlanError::Unhandled(inner) => Error::Unhandled(inner),
1612 }
1613 }
1614}
1615impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_backup_plan_from_json::GetBackupPlanFromJSONError, R>> for Error
1616where
1617 R: Send + Sync + std::fmt::Debug + 'static,
1618{
1619 fn from(
1620 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_backup_plan_from_json::GetBackupPlanFromJSONError, R>,
1621 ) -> Self {
1622 match err {
1623 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1624 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1625 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1626 source: err.into(),
1627 }),
1628 }
1629 }
1630}
1631impl From<crate::operation::get_backup_plan_from_json::GetBackupPlanFromJSONError> for Error {
1632 fn from(err: crate::operation::get_backup_plan_from_json::GetBackupPlanFromJSONError) -> Self {
1633 match err {
1634 crate::operation::get_backup_plan_from_json::GetBackupPlanFromJSONError::InvalidParameterValueException(inner) => {
1635 Error::InvalidParameterValueException(inner)
1636 }
1637 crate::operation::get_backup_plan_from_json::GetBackupPlanFromJSONError::InvalidRequestException(inner) => {
1638 Error::InvalidRequestException(inner)
1639 }
1640 crate::operation::get_backup_plan_from_json::GetBackupPlanFromJSONError::LimitExceededException(inner) => {
1641 Error::LimitExceededException(inner)
1642 }
1643 crate::operation::get_backup_plan_from_json::GetBackupPlanFromJSONError::MissingParameterValueException(inner) => {
1644 Error::MissingParameterValueException(inner)
1645 }
1646 crate::operation::get_backup_plan_from_json::GetBackupPlanFromJSONError::ServiceUnavailableException(inner) => {
1647 Error::ServiceUnavailableException(inner)
1648 }
1649 crate::operation::get_backup_plan_from_json::GetBackupPlanFromJSONError::Unhandled(inner) => Error::Unhandled(inner),
1650 }
1651 }
1652}
1653impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_backup_plan_from_template::GetBackupPlanFromTemplateError, R>>
1654 for Error
1655where
1656 R: Send + Sync + std::fmt::Debug + 'static,
1657{
1658 fn from(
1659 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_backup_plan_from_template::GetBackupPlanFromTemplateError, R>,
1660 ) -> Self {
1661 match err {
1662 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1663 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1664 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1665 source: err.into(),
1666 }),
1667 }
1668 }
1669}
1670impl From<crate::operation::get_backup_plan_from_template::GetBackupPlanFromTemplateError> for Error {
1671 fn from(err: crate::operation::get_backup_plan_from_template::GetBackupPlanFromTemplateError) -> Self {
1672 match err {
1673 crate::operation::get_backup_plan_from_template::GetBackupPlanFromTemplateError::InvalidParameterValueException(inner) => {
1674 Error::InvalidParameterValueException(inner)
1675 }
1676 crate::operation::get_backup_plan_from_template::GetBackupPlanFromTemplateError::MissingParameterValueException(inner) => {
1677 Error::MissingParameterValueException(inner)
1678 }
1679 crate::operation::get_backup_plan_from_template::GetBackupPlanFromTemplateError::ResourceNotFoundException(inner) => {
1680 Error::ResourceNotFoundException(inner)
1681 }
1682 crate::operation::get_backup_plan_from_template::GetBackupPlanFromTemplateError::ServiceUnavailableException(inner) => {
1683 Error::ServiceUnavailableException(inner)
1684 }
1685 crate::operation::get_backup_plan_from_template::GetBackupPlanFromTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1686 }
1687 }
1688}
1689impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_backup_selection::GetBackupSelectionError, R>> for Error
1690where
1691 R: Send + Sync + std::fmt::Debug + 'static,
1692{
1693 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_backup_selection::GetBackupSelectionError, R>) -> Self {
1694 match err {
1695 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1696 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1697 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1698 source: err.into(),
1699 }),
1700 }
1701 }
1702}
1703impl From<crate::operation::get_backup_selection::GetBackupSelectionError> for Error {
1704 fn from(err: crate::operation::get_backup_selection::GetBackupSelectionError) -> Self {
1705 match err {
1706 crate::operation::get_backup_selection::GetBackupSelectionError::InvalidParameterValueException(inner) => {
1707 Error::InvalidParameterValueException(inner)
1708 }
1709 crate::operation::get_backup_selection::GetBackupSelectionError::MissingParameterValueException(inner) => {
1710 Error::MissingParameterValueException(inner)
1711 }
1712 crate::operation::get_backup_selection::GetBackupSelectionError::ResourceNotFoundException(inner) => {
1713 Error::ResourceNotFoundException(inner)
1714 }
1715 crate::operation::get_backup_selection::GetBackupSelectionError::ServiceUnavailableException(inner) => {
1716 Error::ServiceUnavailableException(inner)
1717 }
1718 crate::operation::get_backup_selection::GetBackupSelectionError::Unhandled(inner) => Error::Unhandled(inner),
1719 }
1720 }
1721}
1722impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_backup_vault_access_policy::GetBackupVaultAccessPolicyError, R>>
1723 for Error
1724where
1725 R: Send + Sync + std::fmt::Debug + 'static,
1726{
1727 fn from(
1728 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_backup_vault_access_policy::GetBackupVaultAccessPolicyError, R>,
1729 ) -> Self {
1730 match err {
1731 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1732 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1733 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1734 source: err.into(),
1735 }),
1736 }
1737 }
1738}
1739impl From<crate::operation::get_backup_vault_access_policy::GetBackupVaultAccessPolicyError> for Error {
1740 fn from(err: crate::operation::get_backup_vault_access_policy::GetBackupVaultAccessPolicyError) -> Self {
1741 match err {
1742 crate::operation::get_backup_vault_access_policy::GetBackupVaultAccessPolicyError::InvalidParameterValueException(inner) => {
1743 Error::InvalidParameterValueException(inner)
1744 }
1745 crate::operation::get_backup_vault_access_policy::GetBackupVaultAccessPolicyError::MissingParameterValueException(inner) => {
1746 Error::MissingParameterValueException(inner)
1747 }
1748 crate::operation::get_backup_vault_access_policy::GetBackupVaultAccessPolicyError::ResourceNotFoundException(inner) => {
1749 Error::ResourceNotFoundException(inner)
1750 }
1751 crate::operation::get_backup_vault_access_policy::GetBackupVaultAccessPolicyError::ServiceUnavailableException(inner) => {
1752 Error::ServiceUnavailableException(inner)
1753 }
1754 crate::operation::get_backup_vault_access_policy::GetBackupVaultAccessPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1755 }
1756 }
1757}
1758impl<R>
1759 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_backup_vault_notifications::GetBackupVaultNotificationsError, R>>
1760 for Error
1761where
1762 R: Send + Sync + std::fmt::Debug + 'static,
1763{
1764 fn from(
1765 err: ::aws_smithy_runtime_api::client::result::SdkError<
1766 crate::operation::get_backup_vault_notifications::GetBackupVaultNotificationsError,
1767 R,
1768 >,
1769 ) -> Self {
1770 match err {
1771 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1772 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1773 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1774 source: err.into(),
1775 }),
1776 }
1777 }
1778}
1779impl From<crate::operation::get_backup_vault_notifications::GetBackupVaultNotificationsError> for Error {
1780 fn from(err: crate::operation::get_backup_vault_notifications::GetBackupVaultNotificationsError) -> Self {
1781 match err {
1782 crate::operation::get_backup_vault_notifications::GetBackupVaultNotificationsError::InvalidParameterValueException(inner) => {
1783 Error::InvalidParameterValueException(inner)
1784 }
1785 crate::operation::get_backup_vault_notifications::GetBackupVaultNotificationsError::MissingParameterValueException(inner) => {
1786 Error::MissingParameterValueException(inner)
1787 }
1788 crate::operation::get_backup_vault_notifications::GetBackupVaultNotificationsError::ResourceNotFoundException(inner) => {
1789 Error::ResourceNotFoundException(inner)
1790 }
1791 crate::operation::get_backup_vault_notifications::GetBackupVaultNotificationsError::ServiceUnavailableException(inner) => {
1792 Error::ServiceUnavailableException(inner)
1793 }
1794 crate::operation::get_backup_vault_notifications::GetBackupVaultNotificationsError::Unhandled(inner) => Error::Unhandled(inner),
1795 }
1796 }
1797}
1798impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_legal_hold::GetLegalHoldError, R>> for Error
1799where
1800 R: Send + Sync + std::fmt::Debug + 'static,
1801{
1802 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_legal_hold::GetLegalHoldError, R>) -> Self {
1803 match err {
1804 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1805 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1806 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1807 source: err.into(),
1808 }),
1809 }
1810 }
1811}
1812impl From<crate::operation::get_legal_hold::GetLegalHoldError> for Error {
1813 fn from(err: crate::operation::get_legal_hold::GetLegalHoldError) -> Self {
1814 match err {
1815 crate::operation::get_legal_hold::GetLegalHoldError::InvalidParameterValueException(inner) => {
1816 Error::InvalidParameterValueException(inner)
1817 }
1818 crate::operation::get_legal_hold::GetLegalHoldError::MissingParameterValueException(inner) => {
1819 Error::MissingParameterValueException(inner)
1820 }
1821 crate::operation::get_legal_hold::GetLegalHoldError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1822 crate::operation::get_legal_hold::GetLegalHoldError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1823 crate::operation::get_legal_hold::GetLegalHoldError::Unhandled(inner) => Error::Unhandled(inner),
1824 }
1825 }
1826}
1827impl<R>
1828 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError, R>>
1829 for Error
1830where
1831 R: Send + Sync + std::fmt::Debug + 'static,
1832{
1833 fn from(
1834 err: ::aws_smithy_runtime_api::client::result::SdkError<
1835 crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError,
1836 R,
1837 >,
1838 ) -> Self {
1839 match err {
1840 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1841 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1842 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1843 source: err.into(),
1844 }),
1845 }
1846 }
1847}
1848impl From<crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError> for Error {
1849 fn from(err: crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError) -> Self {
1850 match err {
1851 crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError::InvalidParameterValueException(inner) => {
1852 Error::InvalidParameterValueException(inner)
1853 }
1854 crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError::MissingParameterValueException(inner) => {
1855 Error::MissingParameterValueException(inner)
1856 }
1857 crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError::ResourceNotFoundException(inner) => {
1858 Error::ResourceNotFoundException(inner)
1859 }
1860 crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError::ServiceUnavailableException(inner) => {
1861 Error::ServiceUnavailableException(inner)
1862 }
1863 crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError::Unhandled(inner) => Error::Unhandled(inner),
1864 }
1865 }
1866}
1867impl<R>
1868 From<
1869 ::aws_smithy_runtime_api::client::result::SdkError<
1870 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError,
1871 R,
1872 >,
1873 > for Error
1874where
1875 R: Send + Sync + std::fmt::Debug + 'static,
1876{
1877 fn from(
1878 err: ::aws_smithy_runtime_api::client::result::SdkError<
1879 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError,
1880 R,
1881 >,
1882 ) -> Self {
1883 match err {
1884 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1885 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1886 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1887 source: err.into(),
1888 }),
1889 }
1890 }
1891}
1892impl From<crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError> for Error {
1893 fn from(err: crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError) -> Self {
1894 match err {
1895 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError::InvalidParameterValueException(inner) => {
1896 Error::InvalidParameterValueException(inner)
1897 }
1898 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError::MissingParameterValueException(inner) => {
1899 Error::MissingParameterValueException(inner)
1900 }
1901 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError::ResourceNotFoundException(inner) => {
1902 Error::ResourceNotFoundException(inner)
1903 }
1904 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError::ServiceUnavailableException(inner) => {
1905 Error::ServiceUnavailableException(inner)
1906 }
1907 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError::Unhandled(inner) => Error::Unhandled(inner),
1908 }
1909 }
1910}
1911impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError, R>> for Error
1912where
1913 R: Send + Sync + std::fmt::Debug + 'static,
1914{
1915 fn from(
1916 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError, R>,
1917 ) -> Self {
1918 match err {
1919 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1920 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1921 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1922 source: err.into(),
1923 }),
1924 }
1925 }
1926}
1927impl From<crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError> for Error {
1928 fn from(err: crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError) -> Self {
1929 match err {
1930 crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError::InvalidParameterValueException(inner) => {
1931 Error::InvalidParameterValueException(inner)
1932 }
1933 crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError::MissingParameterValueException(inner) => {
1934 Error::MissingParameterValueException(inner)
1935 }
1936 crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError::ResourceNotFoundException(inner) => {
1937 Error::ResourceNotFoundException(inner)
1938 }
1939 crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError::ServiceUnavailableException(inner) => {
1940 Error::ServiceUnavailableException(inner)
1941 }
1942 crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError::Unhandled(inner) => Error::Unhandled(inner),
1943 }
1944 }
1945}
1946impl<R>
1947 From<
1948 ::aws_smithy_runtime_api::client::result::SdkError<
1949 crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError,
1950 R,
1951 >,
1952 > for Error
1953where
1954 R: Send + Sync + std::fmt::Debug + 'static,
1955{
1956 fn from(
1957 err: ::aws_smithy_runtime_api::client::result::SdkError<
1958 crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError,
1959 R,
1960 >,
1961 ) -> Self {
1962 match err {
1963 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1964 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1965 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1966 source: err.into(),
1967 }),
1968 }
1969 }
1970}
1971impl From<crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError> for Error {
1972 fn from(err: crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError) -> Self {
1973 match err {
1974 crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError::InvalidParameterValueException(
1975 inner,
1976 ) => Error::InvalidParameterValueException(inner),
1977 crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError::MissingParameterValueException(
1978 inner,
1979 ) => Error::MissingParameterValueException(inner),
1980 crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError::ResourceNotFoundException(inner) => {
1981 Error::ResourceNotFoundException(inner)
1982 }
1983 crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError::ServiceUnavailableException(inner) => {
1984 Error::ServiceUnavailableException(inner)
1985 }
1986 crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError::Unhandled(inner) => {
1987 Error::Unhandled(inner)
1988 }
1989 }
1990 }
1991}
1992impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_restore_testing_plan::GetRestoreTestingPlanError, R>> for Error
1993where
1994 R: Send + Sync + std::fmt::Debug + 'static,
1995{
1996 fn from(
1997 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_restore_testing_plan::GetRestoreTestingPlanError, R>,
1998 ) -> Self {
1999 match err {
2000 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2001 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2002 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2003 source: err.into(),
2004 }),
2005 }
2006 }
2007}
2008impl From<crate::operation::get_restore_testing_plan::GetRestoreTestingPlanError> for Error {
2009 fn from(err: crate::operation::get_restore_testing_plan::GetRestoreTestingPlanError) -> Self {
2010 match err {
2011 crate::operation::get_restore_testing_plan::GetRestoreTestingPlanError::ResourceNotFoundException(inner) => {
2012 Error::ResourceNotFoundException(inner)
2013 }
2014 crate::operation::get_restore_testing_plan::GetRestoreTestingPlanError::ServiceUnavailableException(inner) => {
2015 Error::ServiceUnavailableException(inner)
2016 }
2017 crate::operation::get_restore_testing_plan::GetRestoreTestingPlanError::Unhandled(inner) => Error::Unhandled(inner),
2018 }
2019 }
2020}
2021impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_restore_testing_selection::GetRestoreTestingSelectionError, R>>
2022 for Error
2023where
2024 R: Send + Sync + std::fmt::Debug + 'static,
2025{
2026 fn from(
2027 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_restore_testing_selection::GetRestoreTestingSelectionError, R>,
2028 ) -> Self {
2029 match err {
2030 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2031 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2032 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2033 source: err.into(),
2034 }),
2035 }
2036 }
2037}
2038impl From<crate::operation::get_restore_testing_selection::GetRestoreTestingSelectionError> for Error {
2039 fn from(err: crate::operation::get_restore_testing_selection::GetRestoreTestingSelectionError) -> Self {
2040 match err {
2041 crate::operation::get_restore_testing_selection::GetRestoreTestingSelectionError::ResourceNotFoundException(inner) => {
2042 Error::ResourceNotFoundException(inner)
2043 }
2044 crate::operation::get_restore_testing_selection::GetRestoreTestingSelectionError::ServiceUnavailableException(inner) => {
2045 Error::ServiceUnavailableException(inner)
2046 }
2047 crate::operation::get_restore_testing_selection::GetRestoreTestingSelectionError::Unhandled(inner) => Error::Unhandled(inner),
2048 }
2049 }
2050}
2051impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_supported_resource_types::GetSupportedResourceTypesError, R>>
2052 for Error
2053where
2054 R: Send + Sync + std::fmt::Debug + 'static,
2055{
2056 fn from(
2057 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_supported_resource_types::GetSupportedResourceTypesError, R>,
2058 ) -> Self {
2059 match err {
2060 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2061 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2062 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2063 source: err.into(),
2064 }),
2065 }
2066 }
2067}
2068impl From<crate::operation::get_supported_resource_types::GetSupportedResourceTypesError> for Error {
2069 fn from(err: crate::operation::get_supported_resource_types::GetSupportedResourceTypesError) -> Self {
2070 match err {
2071 crate::operation::get_supported_resource_types::GetSupportedResourceTypesError::ServiceUnavailableException(inner) => {
2072 Error::ServiceUnavailableException(inner)
2073 }
2074 crate::operation::get_supported_resource_types::GetSupportedResourceTypesError::Unhandled(inner) => Error::Unhandled(inner),
2075 }
2076 }
2077}
2078impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_tiering_configuration::GetTieringConfigurationError, R>>
2079 for Error
2080where
2081 R: Send + Sync + std::fmt::Debug + 'static,
2082{
2083 fn from(
2084 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_tiering_configuration::GetTieringConfigurationError, R>,
2085 ) -> Self {
2086 match err {
2087 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2088 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2089 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2090 source: err.into(),
2091 }),
2092 }
2093 }
2094}
2095impl From<crate::operation::get_tiering_configuration::GetTieringConfigurationError> for Error {
2096 fn from(err: crate::operation::get_tiering_configuration::GetTieringConfigurationError) -> Self {
2097 match err {
2098 crate::operation::get_tiering_configuration::GetTieringConfigurationError::InvalidParameterValueException(inner) => {
2099 Error::InvalidParameterValueException(inner)
2100 }
2101 crate::operation::get_tiering_configuration::GetTieringConfigurationError::MissingParameterValueException(inner) => {
2102 Error::MissingParameterValueException(inner)
2103 }
2104 crate::operation::get_tiering_configuration::GetTieringConfigurationError::ResourceNotFoundException(inner) => {
2105 Error::ResourceNotFoundException(inner)
2106 }
2107 crate::operation::get_tiering_configuration::GetTieringConfigurationError::ServiceUnavailableException(inner) => {
2108 Error::ServiceUnavailableException(inner)
2109 }
2110 crate::operation::get_tiering_configuration::GetTieringConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2111 }
2112 }
2113}
2114impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_jobs::ListBackupJobsError, R>> for Error
2115where
2116 R: Send + Sync + std::fmt::Debug + 'static,
2117{
2118 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_jobs::ListBackupJobsError, R>) -> Self {
2119 match err {
2120 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2121 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2122 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2123 source: err.into(),
2124 }),
2125 }
2126 }
2127}
2128impl From<crate::operation::list_backup_jobs::ListBackupJobsError> for Error {
2129 fn from(err: crate::operation::list_backup_jobs::ListBackupJobsError) -> Self {
2130 match err {
2131 crate::operation::list_backup_jobs::ListBackupJobsError::InvalidParameterValueException(inner) => {
2132 Error::InvalidParameterValueException(inner)
2133 }
2134 crate::operation::list_backup_jobs::ListBackupJobsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2135 crate::operation::list_backup_jobs::ListBackupJobsError::Unhandled(inner) => Error::Unhandled(inner),
2136 }
2137 }
2138}
2139impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_job_summaries::ListBackupJobSummariesError, R>>
2140 for Error
2141where
2142 R: Send + Sync + std::fmt::Debug + 'static,
2143{
2144 fn from(
2145 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_job_summaries::ListBackupJobSummariesError, R>,
2146 ) -> Self {
2147 match err {
2148 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2149 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2150 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2151 source: err.into(),
2152 }),
2153 }
2154 }
2155}
2156impl From<crate::operation::list_backup_job_summaries::ListBackupJobSummariesError> for Error {
2157 fn from(err: crate::operation::list_backup_job_summaries::ListBackupJobSummariesError) -> Self {
2158 match err {
2159 crate::operation::list_backup_job_summaries::ListBackupJobSummariesError::InvalidParameterValueException(inner) => {
2160 Error::InvalidParameterValueException(inner)
2161 }
2162 crate::operation::list_backup_job_summaries::ListBackupJobSummariesError::ServiceUnavailableException(inner) => {
2163 Error::ServiceUnavailableException(inner)
2164 }
2165 crate::operation::list_backup_job_summaries::ListBackupJobSummariesError::Unhandled(inner) => Error::Unhandled(inner),
2166 }
2167 }
2168}
2169impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_plans::ListBackupPlansError, R>> for Error
2170where
2171 R: Send + Sync + std::fmt::Debug + 'static,
2172{
2173 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_plans::ListBackupPlansError, R>) -> Self {
2174 match err {
2175 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2176 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2177 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2178 source: err.into(),
2179 }),
2180 }
2181 }
2182}
2183impl From<crate::operation::list_backup_plans::ListBackupPlansError> for Error {
2184 fn from(err: crate::operation::list_backup_plans::ListBackupPlansError) -> Self {
2185 match err {
2186 crate::operation::list_backup_plans::ListBackupPlansError::InvalidParameterValueException(inner) => {
2187 Error::InvalidParameterValueException(inner)
2188 }
2189 crate::operation::list_backup_plans::ListBackupPlansError::MissingParameterValueException(inner) => {
2190 Error::MissingParameterValueException(inner)
2191 }
2192 crate::operation::list_backup_plans::ListBackupPlansError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2193 crate::operation::list_backup_plans::ListBackupPlansError::ServiceUnavailableException(inner) => {
2194 Error::ServiceUnavailableException(inner)
2195 }
2196 crate::operation::list_backup_plans::ListBackupPlansError::Unhandled(inner) => Error::Unhandled(inner),
2197 }
2198 }
2199}
2200impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_plan_templates::ListBackupPlanTemplatesError, R>>
2201 for Error
2202where
2203 R: Send + Sync + std::fmt::Debug + 'static,
2204{
2205 fn from(
2206 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_plan_templates::ListBackupPlanTemplatesError, R>,
2207 ) -> Self {
2208 match err {
2209 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2210 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2211 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2212 source: err.into(),
2213 }),
2214 }
2215 }
2216}
2217impl From<crate::operation::list_backup_plan_templates::ListBackupPlanTemplatesError> for Error {
2218 fn from(err: crate::operation::list_backup_plan_templates::ListBackupPlanTemplatesError) -> Self {
2219 match err {
2220 crate::operation::list_backup_plan_templates::ListBackupPlanTemplatesError::InvalidParameterValueException(inner) => {
2221 Error::InvalidParameterValueException(inner)
2222 }
2223 crate::operation::list_backup_plan_templates::ListBackupPlanTemplatesError::MissingParameterValueException(inner) => {
2224 Error::MissingParameterValueException(inner)
2225 }
2226 crate::operation::list_backup_plan_templates::ListBackupPlanTemplatesError::ResourceNotFoundException(inner) => {
2227 Error::ResourceNotFoundException(inner)
2228 }
2229 crate::operation::list_backup_plan_templates::ListBackupPlanTemplatesError::ServiceUnavailableException(inner) => {
2230 Error::ServiceUnavailableException(inner)
2231 }
2232 crate::operation::list_backup_plan_templates::ListBackupPlanTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
2233 }
2234 }
2235}
2236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError, R>>
2237 for Error
2238where
2239 R: Send + Sync + std::fmt::Debug + 'static,
2240{
2241 fn from(
2242 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError, R>,
2243 ) -> Self {
2244 match err {
2245 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2246 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2247 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2248 source: err.into(),
2249 }),
2250 }
2251 }
2252}
2253impl From<crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError> for Error {
2254 fn from(err: crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError) -> Self {
2255 match err {
2256 crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError::InvalidParameterValueException(inner) => {
2257 Error::InvalidParameterValueException(inner)
2258 }
2259 crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError::MissingParameterValueException(inner) => {
2260 Error::MissingParameterValueException(inner)
2261 }
2262 crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError::ResourceNotFoundException(inner) => {
2263 Error::ResourceNotFoundException(inner)
2264 }
2265 crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError::ServiceUnavailableException(inner) => {
2266 Error::ServiceUnavailableException(inner)
2267 }
2268 crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError::Unhandled(inner) => Error::Unhandled(inner),
2269 }
2270 }
2271}
2272impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_selections::ListBackupSelectionsError, R>> for Error
2273where
2274 R: Send + Sync + std::fmt::Debug + 'static,
2275{
2276 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_selections::ListBackupSelectionsError, R>) -> Self {
2277 match err {
2278 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2279 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2280 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2281 source: err.into(),
2282 }),
2283 }
2284 }
2285}
2286impl From<crate::operation::list_backup_selections::ListBackupSelectionsError> for Error {
2287 fn from(err: crate::operation::list_backup_selections::ListBackupSelectionsError) -> Self {
2288 match err {
2289 crate::operation::list_backup_selections::ListBackupSelectionsError::InvalidParameterValueException(inner) => {
2290 Error::InvalidParameterValueException(inner)
2291 }
2292 crate::operation::list_backup_selections::ListBackupSelectionsError::MissingParameterValueException(inner) => {
2293 Error::MissingParameterValueException(inner)
2294 }
2295 crate::operation::list_backup_selections::ListBackupSelectionsError::ResourceNotFoundException(inner) => {
2296 Error::ResourceNotFoundException(inner)
2297 }
2298 crate::operation::list_backup_selections::ListBackupSelectionsError::ServiceUnavailableException(inner) => {
2299 Error::ServiceUnavailableException(inner)
2300 }
2301 crate::operation::list_backup_selections::ListBackupSelectionsError::Unhandled(inner) => Error::Unhandled(inner),
2302 }
2303 }
2304}
2305impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_vaults::ListBackupVaultsError, R>> for Error
2306where
2307 R: Send + Sync + std::fmt::Debug + 'static,
2308{
2309 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_vaults::ListBackupVaultsError, R>) -> Self {
2310 match err {
2311 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2312 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2313 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2314 source: err.into(),
2315 }),
2316 }
2317 }
2318}
2319impl From<crate::operation::list_backup_vaults::ListBackupVaultsError> for Error {
2320 fn from(err: crate::operation::list_backup_vaults::ListBackupVaultsError) -> Self {
2321 match err {
2322 crate::operation::list_backup_vaults::ListBackupVaultsError::InvalidParameterValueException(inner) => {
2323 Error::InvalidParameterValueException(inner)
2324 }
2325 crate::operation::list_backup_vaults::ListBackupVaultsError::MissingParameterValueException(inner) => {
2326 Error::MissingParameterValueException(inner)
2327 }
2328 crate::operation::list_backup_vaults::ListBackupVaultsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2329 crate::operation::list_backup_vaults::ListBackupVaultsError::ServiceUnavailableException(inner) => {
2330 Error::ServiceUnavailableException(inner)
2331 }
2332 crate::operation::list_backup_vaults::ListBackupVaultsError::Unhandled(inner) => Error::Unhandled(inner),
2333 }
2334 }
2335}
2336impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_copy_jobs::ListCopyJobsError, R>> for Error
2337where
2338 R: Send + Sync + std::fmt::Debug + 'static,
2339{
2340 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_copy_jobs::ListCopyJobsError, R>) -> Self {
2341 match err {
2342 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2343 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2344 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2345 source: err.into(),
2346 }),
2347 }
2348 }
2349}
2350impl From<crate::operation::list_copy_jobs::ListCopyJobsError> for Error {
2351 fn from(err: crate::operation::list_copy_jobs::ListCopyJobsError) -> Self {
2352 match err {
2353 crate::operation::list_copy_jobs::ListCopyJobsError::InvalidParameterValueException(inner) => {
2354 Error::InvalidParameterValueException(inner)
2355 }
2356 crate::operation::list_copy_jobs::ListCopyJobsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2357 crate::operation::list_copy_jobs::ListCopyJobsError::Unhandled(inner) => Error::Unhandled(inner),
2358 }
2359 }
2360}
2361impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_copy_job_summaries::ListCopyJobSummariesError, R>> for Error
2362where
2363 R: Send + Sync + std::fmt::Debug + 'static,
2364{
2365 fn from(
2366 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_copy_job_summaries::ListCopyJobSummariesError, R>,
2367 ) -> Self {
2368 match err {
2369 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2370 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2371 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2372 source: err.into(),
2373 }),
2374 }
2375 }
2376}
2377impl From<crate::operation::list_copy_job_summaries::ListCopyJobSummariesError> for Error {
2378 fn from(err: crate::operation::list_copy_job_summaries::ListCopyJobSummariesError) -> Self {
2379 match err {
2380 crate::operation::list_copy_job_summaries::ListCopyJobSummariesError::InvalidParameterValueException(inner) => {
2381 Error::InvalidParameterValueException(inner)
2382 }
2383 crate::operation::list_copy_job_summaries::ListCopyJobSummariesError::ServiceUnavailableException(inner) => {
2384 Error::ServiceUnavailableException(inner)
2385 }
2386 crate::operation::list_copy_job_summaries::ListCopyJobSummariesError::Unhandled(inner) => Error::Unhandled(inner),
2387 }
2388 }
2389}
2390impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_frameworks::ListFrameworksError, R>> for Error
2391where
2392 R: Send + Sync + std::fmt::Debug + 'static,
2393{
2394 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_frameworks::ListFrameworksError, R>) -> Self {
2395 match err {
2396 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2397 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2398 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2399 source: err.into(),
2400 }),
2401 }
2402 }
2403}
2404impl From<crate::operation::list_frameworks::ListFrameworksError> for Error {
2405 fn from(err: crate::operation::list_frameworks::ListFrameworksError) -> Self {
2406 match err {
2407 crate::operation::list_frameworks::ListFrameworksError::InvalidParameterValueException(inner) => {
2408 Error::InvalidParameterValueException(inner)
2409 }
2410 crate::operation::list_frameworks::ListFrameworksError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2411 crate::operation::list_frameworks::ListFrameworksError::Unhandled(inner) => Error::Unhandled(inner),
2412 }
2413 }
2414}
2415impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_indexed_recovery_points::ListIndexedRecoveryPointsError, R>>
2416 for Error
2417where
2418 R: Send + Sync + std::fmt::Debug + 'static,
2419{
2420 fn from(
2421 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_indexed_recovery_points::ListIndexedRecoveryPointsError, R>,
2422 ) -> Self {
2423 match err {
2424 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2425 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2426 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2427 source: err.into(),
2428 }),
2429 }
2430 }
2431}
2432impl From<crate::operation::list_indexed_recovery_points::ListIndexedRecoveryPointsError> for Error {
2433 fn from(err: crate::operation::list_indexed_recovery_points::ListIndexedRecoveryPointsError) -> Self {
2434 match err {
2435 crate::operation::list_indexed_recovery_points::ListIndexedRecoveryPointsError::InvalidParameterValueException(inner) => {
2436 Error::InvalidParameterValueException(inner)
2437 }
2438 crate::operation::list_indexed_recovery_points::ListIndexedRecoveryPointsError::ResourceNotFoundException(inner) => {
2439 Error::ResourceNotFoundException(inner)
2440 }
2441 crate::operation::list_indexed_recovery_points::ListIndexedRecoveryPointsError::ServiceUnavailableException(inner) => {
2442 Error::ServiceUnavailableException(inner)
2443 }
2444 crate::operation::list_indexed_recovery_points::ListIndexedRecoveryPointsError::Unhandled(inner) => Error::Unhandled(inner),
2445 }
2446 }
2447}
2448impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_legal_holds::ListLegalHoldsError, R>> for Error
2449where
2450 R: Send + Sync + std::fmt::Debug + 'static,
2451{
2452 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_legal_holds::ListLegalHoldsError, R>) -> Self {
2453 match err {
2454 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2455 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2456 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2457 source: err.into(),
2458 }),
2459 }
2460 }
2461}
2462impl From<crate::operation::list_legal_holds::ListLegalHoldsError> for Error {
2463 fn from(err: crate::operation::list_legal_holds::ListLegalHoldsError) -> Self {
2464 match err {
2465 crate::operation::list_legal_holds::ListLegalHoldsError::InvalidParameterValueException(inner) => {
2466 Error::InvalidParameterValueException(inner)
2467 }
2468 crate::operation::list_legal_holds::ListLegalHoldsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2469 crate::operation::list_legal_holds::ListLegalHoldsError::Unhandled(inner) => Error::Unhandled(inner),
2470 }
2471 }
2472}
2473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_protected_resources::ListProtectedResourcesError, R>> for Error
2474where
2475 R: Send + Sync + std::fmt::Debug + 'static,
2476{
2477 fn from(
2478 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_protected_resources::ListProtectedResourcesError, R>,
2479 ) -> Self {
2480 match err {
2481 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2482 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2483 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2484 source: err.into(),
2485 }),
2486 }
2487 }
2488}
2489impl From<crate::operation::list_protected_resources::ListProtectedResourcesError> for Error {
2490 fn from(err: crate::operation::list_protected_resources::ListProtectedResourcesError) -> Self {
2491 match err {
2492 crate::operation::list_protected_resources::ListProtectedResourcesError::InvalidParameterValueException(inner) => {
2493 Error::InvalidParameterValueException(inner)
2494 }
2495 crate::operation::list_protected_resources::ListProtectedResourcesError::ServiceUnavailableException(inner) => {
2496 Error::ServiceUnavailableException(inner)
2497 }
2498 crate::operation::list_protected_resources::ListProtectedResourcesError::Unhandled(inner) => Error::Unhandled(inner),
2499 }
2500 }
2501}
2502impl<R>
2503 From<
2504 ::aws_smithy_runtime_api::client::result::SdkError<
2505 crate::operation::list_protected_resources_by_backup_vault::ListProtectedResourcesByBackupVaultError,
2506 R,
2507 >,
2508 > for Error
2509where
2510 R: Send + Sync + std::fmt::Debug + 'static,
2511{
2512 fn from(
2513 err: ::aws_smithy_runtime_api::client::result::SdkError<
2514 crate::operation::list_protected_resources_by_backup_vault::ListProtectedResourcesByBackupVaultError,
2515 R,
2516 >,
2517 ) -> Self {
2518 match err {
2519 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2520 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2521 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2522 source: err.into(),
2523 }),
2524 }
2525 }
2526}
2527impl From<crate::operation::list_protected_resources_by_backup_vault::ListProtectedResourcesByBackupVaultError> for Error {
2528 fn from(err: crate::operation::list_protected_resources_by_backup_vault::ListProtectedResourcesByBackupVaultError) -> Self {
2529 match err {
2530 crate::operation::list_protected_resources_by_backup_vault::ListProtectedResourcesByBackupVaultError::InvalidParameterValueException(
2531 inner,
2532 ) => Error::InvalidParameterValueException(inner),
2533 crate::operation::list_protected_resources_by_backup_vault::ListProtectedResourcesByBackupVaultError::ResourceNotFoundException(
2534 inner,
2535 ) => Error::ResourceNotFoundException(inner),
2536 crate::operation::list_protected_resources_by_backup_vault::ListProtectedResourcesByBackupVaultError::ServiceUnavailableException(
2537 inner,
2538 ) => Error::ServiceUnavailableException(inner),
2539 crate::operation::list_protected_resources_by_backup_vault::ListProtectedResourcesByBackupVaultError::Unhandled(inner) => {
2540 Error::Unhandled(inner)
2541 }
2542 }
2543 }
2544}
2545impl<R>
2546 From<
2547 ::aws_smithy_runtime_api::client::result::SdkError<
2548 crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError,
2549 R,
2550 >,
2551 > for Error
2552where
2553 R: Send + Sync + std::fmt::Debug + 'static,
2554{
2555 fn from(
2556 err: ::aws_smithy_runtime_api::client::result::SdkError<
2557 crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError,
2558 R,
2559 >,
2560 ) -> Self {
2561 match err {
2562 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2563 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2564 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2565 source: err.into(),
2566 }),
2567 }
2568 }
2569}
2570impl From<crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError> for Error {
2571 fn from(err: crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError) -> Self {
2572 match err {
2573 crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError::InvalidParameterValueException(inner) => {
2574 Error::InvalidParameterValueException(inner)
2575 }
2576 crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError::MissingParameterValueException(inner) => {
2577 Error::MissingParameterValueException(inner)
2578 }
2579 crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError::ResourceNotFoundException(inner) => {
2580 Error::ResourceNotFoundException(inner)
2581 }
2582 crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError::ServiceUnavailableException(inner) => {
2583 Error::ServiceUnavailableException(inner)
2584 }
2585 crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError::Unhandled(inner) => Error::Unhandled(inner),
2586 }
2587 }
2588}
2589impl<R>
2590 From<
2591 ::aws_smithy_runtime_api::client::result::SdkError<
2592 crate::operation::list_recovery_points_by_legal_hold::ListRecoveryPointsByLegalHoldError,
2593 R,
2594 >,
2595 > for Error
2596where
2597 R: Send + Sync + std::fmt::Debug + 'static,
2598{
2599 fn from(
2600 err: ::aws_smithy_runtime_api::client::result::SdkError<
2601 crate::operation::list_recovery_points_by_legal_hold::ListRecoveryPointsByLegalHoldError,
2602 R,
2603 >,
2604 ) -> Self {
2605 match err {
2606 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2607 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2608 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2609 source: err.into(),
2610 }),
2611 }
2612 }
2613}
2614impl From<crate::operation::list_recovery_points_by_legal_hold::ListRecoveryPointsByLegalHoldError> for Error {
2615 fn from(err: crate::operation::list_recovery_points_by_legal_hold::ListRecoveryPointsByLegalHoldError) -> Self {
2616 match err {
2617 crate::operation::list_recovery_points_by_legal_hold::ListRecoveryPointsByLegalHoldError::InvalidParameterValueException(inner) => {
2618 Error::InvalidParameterValueException(inner)
2619 }
2620 crate::operation::list_recovery_points_by_legal_hold::ListRecoveryPointsByLegalHoldError::MissingParameterValueException(inner) => {
2621 Error::MissingParameterValueException(inner)
2622 }
2623 crate::operation::list_recovery_points_by_legal_hold::ListRecoveryPointsByLegalHoldError::ServiceUnavailableException(inner) => {
2624 Error::ServiceUnavailableException(inner)
2625 }
2626 crate::operation::list_recovery_points_by_legal_hold::ListRecoveryPointsByLegalHoldError::Unhandled(inner) => Error::Unhandled(inner),
2627 }
2628 }
2629}
2630impl<R>
2631 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError, R>>
2632 for Error
2633where
2634 R: Send + Sync + std::fmt::Debug + 'static,
2635{
2636 fn from(
2637 err: ::aws_smithy_runtime_api::client::result::SdkError<
2638 crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError,
2639 R,
2640 >,
2641 ) -> Self {
2642 match err {
2643 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2644 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2645 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2646 source: err.into(),
2647 }),
2648 }
2649 }
2650}
2651impl From<crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError> for Error {
2652 fn from(err: crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError) -> Self {
2653 match err {
2654 crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError::InvalidParameterValueException(inner) => {
2655 Error::InvalidParameterValueException(inner)
2656 }
2657 crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError::MissingParameterValueException(inner) => {
2658 Error::MissingParameterValueException(inner)
2659 }
2660 crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError::ResourceNotFoundException(inner) => {
2661 Error::ResourceNotFoundException(inner)
2662 }
2663 crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError::ServiceUnavailableException(inner) => {
2664 Error::ServiceUnavailableException(inner)
2665 }
2666 crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError::Unhandled(inner) => Error::Unhandled(inner),
2667 }
2668 }
2669}
2670impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_report_jobs::ListReportJobsError, R>> for Error
2671where
2672 R: Send + Sync + std::fmt::Debug + 'static,
2673{
2674 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_report_jobs::ListReportJobsError, R>) -> Self {
2675 match err {
2676 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2677 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2678 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2679 source: err.into(),
2680 }),
2681 }
2682 }
2683}
2684impl From<crate::operation::list_report_jobs::ListReportJobsError> for Error {
2685 fn from(err: crate::operation::list_report_jobs::ListReportJobsError) -> Self {
2686 match err {
2687 crate::operation::list_report_jobs::ListReportJobsError::InvalidParameterValueException(inner) => {
2688 Error::InvalidParameterValueException(inner)
2689 }
2690 crate::operation::list_report_jobs::ListReportJobsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2691 crate::operation::list_report_jobs::ListReportJobsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2692 crate::operation::list_report_jobs::ListReportJobsError::Unhandled(inner) => Error::Unhandled(inner),
2693 }
2694 }
2695}
2696impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_report_plans::ListReportPlansError, R>> for Error
2697where
2698 R: Send + Sync + std::fmt::Debug + 'static,
2699{
2700 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_report_plans::ListReportPlansError, R>) -> Self {
2701 match err {
2702 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2703 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2704 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2705 source: err.into(),
2706 }),
2707 }
2708 }
2709}
2710impl From<crate::operation::list_report_plans::ListReportPlansError> for Error {
2711 fn from(err: crate::operation::list_report_plans::ListReportPlansError) -> Self {
2712 match err {
2713 crate::operation::list_report_plans::ListReportPlansError::InvalidParameterValueException(inner) => {
2714 Error::InvalidParameterValueException(inner)
2715 }
2716 crate::operation::list_report_plans::ListReportPlansError::ServiceUnavailableException(inner) => {
2717 Error::ServiceUnavailableException(inner)
2718 }
2719 crate::operation::list_report_plans::ListReportPlansError::Unhandled(inner) => Error::Unhandled(inner),
2720 }
2721 }
2722}
2723impl<R>
2724 From<
2725 ::aws_smithy_runtime_api::client::result::SdkError<
2726 crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError,
2727 R,
2728 >,
2729 > for Error
2730where
2731 R: Send + Sync + std::fmt::Debug + 'static,
2732{
2733 fn from(
2734 err: ::aws_smithy_runtime_api::client::result::SdkError<
2735 crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError,
2736 R,
2737 >,
2738 ) -> Self {
2739 match err {
2740 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2741 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2742 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2743 source: err.into(),
2744 }),
2745 }
2746 }
2747}
2748impl From<crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError> for Error {
2749 fn from(err: crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError) -> Self {
2750 match err {
2751 crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError::InvalidParameterValueException(inner) => {
2752 Error::InvalidParameterValueException(inner)
2753 }
2754 crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError::MissingParameterValueException(inner) => {
2755 Error::MissingParameterValueException(inner)
2756 }
2757 crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError::ResourceNotFoundException(inner) => {
2758 Error::ResourceNotFoundException(inner)
2759 }
2760 crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError::ServiceUnavailableException(inner) => {
2761 Error::ServiceUnavailableException(inner)
2762 }
2763 crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError::Unhandled(inner) => Error::Unhandled(inner),
2764 }
2765 }
2766}
2767impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_restore_jobs::ListRestoreJobsError, R>> for Error
2768where
2769 R: Send + Sync + std::fmt::Debug + 'static,
2770{
2771 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_restore_jobs::ListRestoreJobsError, R>) -> Self {
2772 match err {
2773 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2774 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2775 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2776 source: err.into(),
2777 }),
2778 }
2779 }
2780}
2781impl From<crate::operation::list_restore_jobs::ListRestoreJobsError> for Error {
2782 fn from(err: crate::operation::list_restore_jobs::ListRestoreJobsError) -> Self {
2783 match err {
2784 crate::operation::list_restore_jobs::ListRestoreJobsError::InvalidParameterValueException(inner) => {
2785 Error::InvalidParameterValueException(inner)
2786 }
2787 crate::operation::list_restore_jobs::ListRestoreJobsError::MissingParameterValueException(inner) => {
2788 Error::MissingParameterValueException(inner)
2789 }
2790 crate::operation::list_restore_jobs::ListRestoreJobsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2791 crate::operation::list_restore_jobs::ListRestoreJobsError::ServiceUnavailableException(inner) => {
2792 Error::ServiceUnavailableException(inner)
2793 }
2794 crate::operation::list_restore_jobs::ListRestoreJobsError::Unhandled(inner) => Error::Unhandled(inner),
2795 }
2796 }
2797}
2798impl<R>
2799 From<
2800 ::aws_smithy_runtime_api::client::result::SdkError<
2801 crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError,
2802 R,
2803 >,
2804 > for Error
2805where
2806 R: Send + Sync + std::fmt::Debug + 'static,
2807{
2808 fn from(
2809 err: ::aws_smithy_runtime_api::client::result::SdkError<
2810 crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError,
2811 R,
2812 >,
2813 ) -> Self {
2814 match err {
2815 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2816 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2817 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2818 source: err.into(),
2819 }),
2820 }
2821 }
2822}
2823impl From<crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError> for Error {
2824 fn from(err: crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError) -> Self {
2825 match err {
2826 crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError::InvalidParameterValueException(
2827 inner,
2828 ) => Error::InvalidParameterValueException(inner),
2829 crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError::MissingParameterValueException(
2830 inner,
2831 ) => Error::MissingParameterValueException(inner),
2832 crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError::ResourceNotFoundException(inner) => {
2833 Error::ResourceNotFoundException(inner)
2834 }
2835 crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError::ServiceUnavailableException(
2836 inner,
2837 ) => Error::ServiceUnavailableException(inner),
2838 crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError::Unhandled(inner) => {
2839 Error::Unhandled(inner)
2840 }
2841 }
2842 }
2843}
2844impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_restore_job_summaries::ListRestoreJobSummariesError, R>>
2845 for Error
2846where
2847 R: Send + Sync + std::fmt::Debug + 'static,
2848{
2849 fn from(
2850 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_restore_job_summaries::ListRestoreJobSummariesError, R>,
2851 ) -> Self {
2852 match err {
2853 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2854 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2855 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2856 source: err.into(),
2857 }),
2858 }
2859 }
2860}
2861impl From<crate::operation::list_restore_job_summaries::ListRestoreJobSummariesError> for Error {
2862 fn from(err: crate::operation::list_restore_job_summaries::ListRestoreJobSummariesError) -> Self {
2863 match err {
2864 crate::operation::list_restore_job_summaries::ListRestoreJobSummariesError::InvalidParameterValueException(inner) => {
2865 Error::InvalidParameterValueException(inner)
2866 }
2867 crate::operation::list_restore_job_summaries::ListRestoreJobSummariesError::ServiceUnavailableException(inner) => {
2868 Error::ServiceUnavailableException(inner)
2869 }
2870 crate::operation::list_restore_job_summaries::ListRestoreJobSummariesError::Unhandled(inner) => Error::Unhandled(inner),
2871 }
2872 }
2873}
2874impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_restore_testing_plans::ListRestoreTestingPlansError, R>>
2875 for Error
2876where
2877 R: Send + Sync + std::fmt::Debug + 'static,
2878{
2879 fn from(
2880 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_restore_testing_plans::ListRestoreTestingPlansError, R>,
2881 ) -> Self {
2882 match err {
2883 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2884 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2885 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2886 source: err.into(),
2887 }),
2888 }
2889 }
2890}
2891impl From<crate::operation::list_restore_testing_plans::ListRestoreTestingPlansError> for Error {
2892 fn from(err: crate::operation::list_restore_testing_plans::ListRestoreTestingPlansError) -> Self {
2893 match err {
2894 crate::operation::list_restore_testing_plans::ListRestoreTestingPlansError::InvalidParameterValueException(inner) => {
2895 Error::InvalidParameterValueException(inner)
2896 }
2897 crate::operation::list_restore_testing_plans::ListRestoreTestingPlansError::ServiceUnavailableException(inner) => {
2898 Error::ServiceUnavailableException(inner)
2899 }
2900 crate::operation::list_restore_testing_plans::ListRestoreTestingPlansError::Unhandled(inner) => Error::Unhandled(inner),
2901 }
2902 }
2903}
2904impl<R>
2905 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_restore_testing_selections::ListRestoreTestingSelectionsError, R>>
2906 for Error
2907where
2908 R: Send + Sync + std::fmt::Debug + 'static,
2909{
2910 fn from(
2911 err: ::aws_smithy_runtime_api::client::result::SdkError<
2912 crate::operation::list_restore_testing_selections::ListRestoreTestingSelectionsError,
2913 R,
2914 >,
2915 ) -> Self {
2916 match err {
2917 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2918 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2919 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2920 source: err.into(),
2921 }),
2922 }
2923 }
2924}
2925impl From<crate::operation::list_restore_testing_selections::ListRestoreTestingSelectionsError> for Error {
2926 fn from(err: crate::operation::list_restore_testing_selections::ListRestoreTestingSelectionsError) -> Self {
2927 match err {
2928 crate::operation::list_restore_testing_selections::ListRestoreTestingSelectionsError::InvalidParameterValueException(inner) => {
2929 Error::InvalidParameterValueException(inner)
2930 }
2931 crate::operation::list_restore_testing_selections::ListRestoreTestingSelectionsError::ResourceNotFoundException(inner) => {
2932 Error::ResourceNotFoundException(inner)
2933 }
2934 crate::operation::list_restore_testing_selections::ListRestoreTestingSelectionsError::ServiceUnavailableException(inner) => {
2935 Error::ServiceUnavailableException(inner)
2936 }
2937 crate::operation::list_restore_testing_selections::ListRestoreTestingSelectionsError::Unhandled(inner) => Error::Unhandled(inner),
2938 }
2939 }
2940}
2941impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scan_jobs::ListScanJobsError, R>> for Error
2942where
2943 R: Send + Sync + std::fmt::Debug + 'static,
2944{
2945 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scan_jobs::ListScanJobsError, R>) -> Self {
2946 match err {
2947 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2948 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2949 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2950 source: err.into(),
2951 }),
2952 }
2953 }
2954}
2955impl From<crate::operation::list_scan_jobs::ListScanJobsError> for Error {
2956 fn from(err: crate::operation::list_scan_jobs::ListScanJobsError) -> Self {
2957 match err {
2958 crate::operation::list_scan_jobs::ListScanJobsError::InvalidParameterValueException(inner) => {
2959 Error::InvalidParameterValueException(inner)
2960 }
2961 crate::operation::list_scan_jobs::ListScanJobsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2962 crate::operation::list_scan_jobs::ListScanJobsError::Unhandled(inner) => Error::Unhandled(inner),
2963 }
2964 }
2965}
2966impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scan_job_summaries::ListScanJobSummariesError, R>> for Error
2967where
2968 R: Send + Sync + std::fmt::Debug + 'static,
2969{
2970 fn from(
2971 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scan_job_summaries::ListScanJobSummariesError, R>,
2972 ) -> Self {
2973 match err {
2974 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2975 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2976 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2977 source: err.into(),
2978 }),
2979 }
2980 }
2981}
2982impl From<crate::operation::list_scan_job_summaries::ListScanJobSummariesError> for Error {
2983 fn from(err: crate::operation::list_scan_job_summaries::ListScanJobSummariesError) -> Self {
2984 match err {
2985 crate::operation::list_scan_job_summaries::ListScanJobSummariesError::InvalidParameterValueException(inner) => {
2986 Error::InvalidParameterValueException(inner)
2987 }
2988 crate::operation::list_scan_job_summaries::ListScanJobSummariesError::ServiceUnavailableException(inner) => {
2989 Error::ServiceUnavailableException(inner)
2990 }
2991 crate::operation::list_scan_job_summaries::ListScanJobSummariesError::Unhandled(inner) => Error::Unhandled(inner),
2992 }
2993 }
2994}
2995impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags::ListTagsError, R>> for Error
2996where
2997 R: Send + Sync + std::fmt::Debug + 'static,
2998{
2999 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags::ListTagsError, R>) -> Self {
3000 match err {
3001 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3002 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3003 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3004 source: err.into(),
3005 }),
3006 }
3007 }
3008}
3009impl From<crate::operation::list_tags::ListTagsError> for Error {
3010 fn from(err: crate::operation::list_tags::ListTagsError) -> Self {
3011 match err {
3012 crate::operation::list_tags::ListTagsError::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner),
3013 crate::operation::list_tags::ListTagsError::MissingParameterValueException(inner) => Error::MissingParameterValueException(inner),
3014 crate::operation::list_tags::ListTagsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3015 crate::operation::list_tags::ListTagsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3016 crate::operation::list_tags::ListTagsError::Unhandled(inner) => Error::Unhandled(inner),
3017 }
3018 }
3019}
3020impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tiering_configurations::ListTieringConfigurationsError, R>>
3021 for Error
3022where
3023 R: Send + Sync + std::fmt::Debug + 'static,
3024{
3025 fn from(
3026 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tiering_configurations::ListTieringConfigurationsError, R>,
3027 ) -> Self {
3028 match err {
3029 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3030 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3031 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3032 source: err.into(),
3033 }),
3034 }
3035 }
3036}
3037impl From<crate::operation::list_tiering_configurations::ListTieringConfigurationsError> for Error {
3038 fn from(err: crate::operation::list_tiering_configurations::ListTieringConfigurationsError) -> Self {
3039 match err {
3040 crate::operation::list_tiering_configurations::ListTieringConfigurationsError::InvalidParameterValueException(inner) => {
3041 Error::InvalidParameterValueException(inner)
3042 }
3043 crate::operation::list_tiering_configurations::ListTieringConfigurationsError::ServiceUnavailableException(inner) => {
3044 Error::ServiceUnavailableException(inner)
3045 }
3046 crate::operation::list_tiering_configurations::ListTieringConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
3047 }
3048 }
3049}
3050impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError, R>>
3051 for Error
3052where
3053 R: Send + Sync + std::fmt::Debug + 'static,
3054{
3055 fn from(
3056 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError, R>,
3057 ) -> Self {
3058 match err {
3059 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3060 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3061 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3062 source: err.into(),
3063 }),
3064 }
3065 }
3066}
3067impl From<crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError> for Error {
3068 fn from(err: crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError) -> Self {
3069 match err {
3070 crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError::InvalidParameterValueException(inner) => {
3071 Error::InvalidParameterValueException(inner)
3072 }
3073 crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError::MissingParameterValueException(inner) => {
3074 Error::MissingParameterValueException(inner)
3075 }
3076 crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError::ResourceNotFoundException(inner) => {
3077 Error::ResourceNotFoundException(inner)
3078 }
3079 crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError::ServiceUnavailableException(inner) => {
3080 Error::ServiceUnavailableException(inner)
3081 }
3082 crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError::Unhandled(inner) => Error::Unhandled(inner),
3083 }
3084 }
3085}
3086impl<R>
3087 From<
3088 ::aws_smithy_runtime_api::client::result::SdkError<
3089 crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError,
3090 R,
3091 >,
3092 > for Error
3093where
3094 R: Send + Sync + std::fmt::Debug + 'static,
3095{
3096 fn from(
3097 err: ::aws_smithy_runtime_api::client::result::SdkError<
3098 crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError,
3099 R,
3100 >,
3101 ) -> Self {
3102 match err {
3103 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3104 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3105 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3106 source: err.into(),
3107 }),
3108 }
3109 }
3110}
3111impl From<crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError> for Error {
3112 fn from(err: crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError) -> Self {
3113 match err {
3114 crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError::InvalidParameterValueException(inner) => {
3115 Error::InvalidParameterValueException(inner)
3116 }
3117 crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError::InvalidRequestException(inner) => {
3118 Error::InvalidRequestException(inner)
3119 }
3120 crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError::MissingParameterValueException(inner) => {
3121 Error::MissingParameterValueException(inner)
3122 }
3123 crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError::ResourceNotFoundException(inner) => {
3124 Error::ResourceNotFoundException(inner)
3125 }
3126 crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError::ServiceUnavailableException(inner) => {
3127 Error::ServiceUnavailableException(inner)
3128 }
3129 crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3130 }
3131 }
3132}
3133impl<R>
3134 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError, R>>
3135 for Error
3136where
3137 R: Send + Sync + std::fmt::Debug + 'static,
3138{
3139 fn from(
3140 err: ::aws_smithy_runtime_api::client::result::SdkError<
3141 crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError,
3142 R,
3143 >,
3144 ) -> Self {
3145 match err {
3146 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3147 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3148 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3149 source: err.into(),
3150 }),
3151 }
3152 }
3153}
3154impl From<crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError> for Error {
3155 fn from(err: crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError) -> Self {
3156 match err {
3157 crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError::InvalidParameterValueException(inner) => {
3158 Error::InvalidParameterValueException(inner)
3159 }
3160 crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError::MissingParameterValueException(inner) => {
3161 Error::MissingParameterValueException(inner)
3162 }
3163 crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError::ResourceNotFoundException(inner) => {
3164 Error::ResourceNotFoundException(inner)
3165 }
3166 crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError::ServiceUnavailableException(inner) => {
3167 Error::ServiceUnavailableException(inner)
3168 }
3169 crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError::Unhandled(inner) => Error::Unhandled(inner),
3170 }
3171 }
3172}
3173impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_restore_validation_result::PutRestoreValidationResultError, R>>
3174 for Error
3175where
3176 R: Send + Sync + std::fmt::Debug + 'static,
3177{
3178 fn from(
3179 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_restore_validation_result::PutRestoreValidationResultError, R>,
3180 ) -> Self {
3181 match err {
3182 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3183 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3184 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3185 source: err.into(),
3186 }),
3187 }
3188 }
3189}
3190impl From<crate::operation::put_restore_validation_result::PutRestoreValidationResultError> for Error {
3191 fn from(err: crate::operation::put_restore_validation_result::PutRestoreValidationResultError) -> Self {
3192 match err {
3193 crate::operation::put_restore_validation_result::PutRestoreValidationResultError::InvalidParameterValueException(inner) => {
3194 Error::InvalidParameterValueException(inner)
3195 }
3196 crate::operation::put_restore_validation_result::PutRestoreValidationResultError::InvalidRequestException(inner) => {
3197 Error::InvalidRequestException(inner)
3198 }
3199 crate::operation::put_restore_validation_result::PutRestoreValidationResultError::MissingParameterValueException(inner) => {
3200 Error::MissingParameterValueException(inner)
3201 }
3202 crate::operation::put_restore_validation_result::PutRestoreValidationResultError::ResourceNotFoundException(inner) => {
3203 Error::ResourceNotFoundException(inner)
3204 }
3205 crate::operation::put_restore_validation_result::PutRestoreValidationResultError::ServiceUnavailableException(inner) => {
3206 Error::ServiceUnavailableException(inner)
3207 }
3208 crate::operation::put_restore_validation_result::PutRestoreValidationResultError::Unhandled(inner) => Error::Unhandled(inner),
3209 }
3210 }
3211}
3212impl<R>
3213 From<
3214 ::aws_smithy_runtime_api::client::result::SdkError<
3215 crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError,
3216 R,
3217 >,
3218 > for Error
3219where
3220 R: Send + Sync + std::fmt::Debug + 'static,
3221{
3222 fn from(
3223 err: ::aws_smithy_runtime_api::client::result::SdkError<
3224 crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError,
3225 R,
3226 >,
3227 ) -> Self {
3228 match err {
3229 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3230 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3231 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3232 source: err.into(),
3233 }),
3234 }
3235 }
3236}
3237impl From<crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError> for Error {
3238 fn from(err: crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError) -> Self {
3239 match err {
3240 crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError::InvalidParameterValueException(inner) => {
3241 Error::InvalidParameterValueException(inner)
3242 }
3243 crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError::InvalidRequestException(inner) => {
3244 Error::InvalidRequestException(inner)
3245 }
3246 crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError::MissingParameterValueException(inner) => {
3247 Error::MissingParameterValueException(inner)
3248 }
3249 crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError::ResourceNotFoundException(inner) => {
3250 Error::ResourceNotFoundException(inner)
3251 }
3252 crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError::ServiceUnavailableException(inner) => {
3253 Error::ServiceUnavailableException(inner)
3254 }
3255 crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError::Unhandled(inner) => Error::Unhandled(inner),
3256 }
3257 }
3258}
3259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_backup_job::StartBackupJobError, R>> for Error
3260where
3261 R: Send + Sync + std::fmt::Debug + 'static,
3262{
3263 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_backup_job::StartBackupJobError, R>) -> Self {
3264 match err {
3265 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3266 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3267 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3268 source: err.into(),
3269 }),
3270 }
3271 }
3272}
3273impl From<crate::operation::start_backup_job::StartBackupJobError> for Error {
3274 fn from(err: crate::operation::start_backup_job::StartBackupJobError) -> Self {
3275 match err {
3276 crate::operation::start_backup_job::StartBackupJobError::InvalidParameterValueException(inner) => {
3277 Error::InvalidParameterValueException(inner)
3278 }
3279 crate::operation::start_backup_job::StartBackupJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3280 crate::operation::start_backup_job::StartBackupJobError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3281 crate::operation::start_backup_job::StartBackupJobError::MissingParameterValueException(inner) => {
3282 Error::MissingParameterValueException(inner)
3283 }
3284 crate::operation::start_backup_job::StartBackupJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3285 crate::operation::start_backup_job::StartBackupJobError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3286 crate::operation::start_backup_job::StartBackupJobError::Unhandled(inner) => Error::Unhandled(inner),
3287 }
3288 }
3289}
3290impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_copy_job::StartCopyJobError, R>> for Error
3291where
3292 R: Send + Sync + std::fmt::Debug + 'static,
3293{
3294 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_copy_job::StartCopyJobError, R>) -> Self {
3295 match err {
3296 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3297 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3298 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3299 source: err.into(),
3300 }),
3301 }
3302 }
3303}
3304impl From<crate::operation::start_copy_job::StartCopyJobError> for Error {
3305 fn from(err: crate::operation::start_copy_job::StartCopyJobError) -> Self {
3306 match err {
3307 crate::operation::start_copy_job::StartCopyJobError::InvalidParameterValueException(inner) => {
3308 Error::InvalidParameterValueException(inner)
3309 }
3310 crate::operation::start_copy_job::StartCopyJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3311 crate::operation::start_copy_job::StartCopyJobError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3312 crate::operation::start_copy_job::StartCopyJobError::MissingParameterValueException(inner) => {
3313 Error::MissingParameterValueException(inner)
3314 }
3315 crate::operation::start_copy_job::StartCopyJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3316 crate::operation::start_copy_job::StartCopyJobError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3317 crate::operation::start_copy_job::StartCopyJobError::Unhandled(inner) => Error::Unhandled(inner),
3318 }
3319 }
3320}
3321impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_report_job::StartReportJobError, R>> for Error
3322where
3323 R: Send + Sync + std::fmt::Debug + 'static,
3324{
3325 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_report_job::StartReportJobError, R>) -> Self {
3326 match err {
3327 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3328 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3329 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3330 source: err.into(),
3331 }),
3332 }
3333 }
3334}
3335impl From<crate::operation::start_report_job::StartReportJobError> for Error {
3336 fn from(err: crate::operation::start_report_job::StartReportJobError) -> Self {
3337 match err {
3338 crate::operation::start_report_job::StartReportJobError::InvalidParameterValueException(inner) => {
3339 Error::InvalidParameterValueException(inner)
3340 }
3341 crate::operation::start_report_job::StartReportJobError::MissingParameterValueException(inner) => {
3342 Error::MissingParameterValueException(inner)
3343 }
3344 crate::operation::start_report_job::StartReportJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3345 crate::operation::start_report_job::StartReportJobError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3346 crate::operation::start_report_job::StartReportJobError::Unhandled(inner) => Error::Unhandled(inner),
3347 }
3348 }
3349}
3350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_restore_job::StartRestoreJobError, R>> for Error
3351where
3352 R: Send + Sync + std::fmt::Debug + 'static,
3353{
3354 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_restore_job::StartRestoreJobError, R>) -> Self {
3355 match err {
3356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3359 source: err.into(),
3360 }),
3361 }
3362 }
3363}
3364impl From<crate::operation::start_restore_job::StartRestoreJobError> for Error {
3365 fn from(err: crate::operation::start_restore_job::StartRestoreJobError) -> Self {
3366 match err {
3367 crate::operation::start_restore_job::StartRestoreJobError::InvalidParameterValueException(inner) => {
3368 Error::InvalidParameterValueException(inner)
3369 }
3370 crate::operation::start_restore_job::StartRestoreJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3371 crate::operation::start_restore_job::StartRestoreJobError::MissingParameterValueException(inner) => {
3372 Error::MissingParameterValueException(inner)
3373 }
3374 crate::operation::start_restore_job::StartRestoreJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3375 crate::operation::start_restore_job::StartRestoreJobError::ServiceUnavailableException(inner) => {
3376 Error::ServiceUnavailableException(inner)
3377 }
3378 crate::operation::start_restore_job::StartRestoreJobError::Unhandled(inner) => Error::Unhandled(inner),
3379 }
3380 }
3381}
3382impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_scan_job::StartScanJobError, R>> for Error
3383where
3384 R: Send + Sync + std::fmt::Debug + 'static,
3385{
3386 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_scan_job::StartScanJobError, R>) -> Self {
3387 match err {
3388 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3389 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3390 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3391 source: err.into(),
3392 }),
3393 }
3394 }
3395}
3396impl From<crate::operation::start_scan_job::StartScanJobError> for Error {
3397 fn from(err: crate::operation::start_scan_job::StartScanJobError) -> Self {
3398 match err {
3399 crate::operation::start_scan_job::StartScanJobError::InvalidParameterValueException(inner) => {
3400 Error::InvalidParameterValueException(inner)
3401 }
3402 crate::operation::start_scan_job::StartScanJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3403 crate::operation::start_scan_job::StartScanJobError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3404 crate::operation::start_scan_job::StartScanJobError::MissingParameterValueException(inner) => {
3405 Error::MissingParameterValueException(inner)
3406 }
3407 crate::operation::start_scan_job::StartScanJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3408 crate::operation::start_scan_job::StartScanJobError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3409 crate::operation::start_scan_job::StartScanJobError::Unhandled(inner) => Error::Unhandled(inner),
3410 }
3411 }
3412}
3413impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_backup_job::StopBackupJobError, R>> for Error
3414where
3415 R: Send + Sync + std::fmt::Debug + 'static,
3416{
3417 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_backup_job::StopBackupJobError, R>) -> Self {
3418 match err {
3419 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3420 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3421 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3422 source: err.into(),
3423 }),
3424 }
3425 }
3426}
3427impl From<crate::operation::stop_backup_job::StopBackupJobError> for Error {
3428 fn from(err: crate::operation::stop_backup_job::StopBackupJobError) -> Self {
3429 match err {
3430 crate::operation::stop_backup_job::StopBackupJobError::InvalidParameterValueException(inner) => {
3431 Error::InvalidParameterValueException(inner)
3432 }
3433 crate::operation::stop_backup_job::StopBackupJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3434 crate::operation::stop_backup_job::StopBackupJobError::MissingParameterValueException(inner) => {
3435 Error::MissingParameterValueException(inner)
3436 }
3437 crate::operation::stop_backup_job::StopBackupJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3438 crate::operation::stop_backup_job::StopBackupJobError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3439 crate::operation::stop_backup_job::StopBackupJobError::Unhandled(inner) => Error::Unhandled(inner),
3440 }
3441 }
3442}
3443impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
3444where
3445 R: Send + Sync + std::fmt::Debug + 'static,
3446{
3447 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
3448 match err {
3449 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3450 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3451 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3452 source: err.into(),
3453 }),
3454 }
3455 }
3456}
3457impl From<crate::operation::tag_resource::TagResourceError> for Error {
3458 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
3459 match err {
3460 crate::operation::tag_resource::TagResourceError::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner),
3461 crate::operation::tag_resource::TagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3462 crate::operation::tag_resource::TagResourceError::MissingParameterValueException(inner) => Error::MissingParameterValueException(inner),
3463 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3464 crate::operation::tag_resource::TagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3465 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3466 }
3467 }
3468}
3469impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
3470where
3471 R: Send + Sync + std::fmt::Debug + 'static,
3472{
3473 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
3474 match err {
3475 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3476 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3477 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3478 source: err.into(),
3479 }),
3480 }
3481 }
3482}
3483impl From<crate::operation::untag_resource::UntagResourceError> for Error {
3484 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
3485 match err {
3486 crate::operation::untag_resource::UntagResourceError::InvalidParameterValueException(inner) => {
3487 Error::InvalidParameterValueException(inner)
3488 }
3489 crate::operation::untag_resource::UntagResourceError::MissingParameterValueException(inner) => {
3490 Error::MissingParameterValueException(inner)
3491 }
3492 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3493 crate::operation::untag_resource::UntagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3494 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3495 }
3496 }
3497}
3498impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_backup_plan::UpdateBackupPlanError, R>> for Error
3499where
3500 R: Send + Sync + std::fmt::Debug + 'static,
3501{
3502 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_backup_plan::UpdateBackupPlanError, R>) -> Self {
3503 match err {
3504 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3505 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3506 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3507 source: err.into(),
3508 }),
3509 }
3510 }
3511}
3512impl From<crate::operation::update_backup_plan::UpdateBackupPlanError> for Error {
3513 fn from(err: crate::operation::update_backup_plan::UpdateBackupPlanError) -> Self {
3514 match err {
3515 crate::operation::update_backup_plan::UpdateBackupPlanError::InvalidParameterValueException(inner) => {
3516 Error::InvalidParameterValueException(inner)
3517 }
3518 crate::operation::update_backup_plan::UpdateBackupPlanError::MissingParameterValueException(inner) => {
3519 Error::MissingParameterValueException(inner)
3520 }
3521 crate::operation::update_backup_plan::UpdateBackupPlanError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3522 crate::operation::update_backup_plan::UpdateBackupPlanError::ServiceUnavailableException(inner) => {
3523 Error::ServiceUnavailableException(inner)
3524 }
3525 crate::operation::update_backup_plan::UpdateBackupPlanError::Unhandled(inner) => Error::Unhandled(inner),
3526 }
3527 }
3528}
3529impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_framework::UpdateFrameworkError, R>> for Error
3530where
3531 R: Send + Sync + std::fmt::Debug + 'static,
3532{
3533 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_framework::UpdateFrameworkError, R>) -> Self {
3534 match err {
3535 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3536 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3537 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3538 source: err.into(),
3539 }),
3540 }
3541 }
3542}
3543impl From<crate::operation::update_framework::UpdateFrameworkError> for Error {
3544 fn from(err: crate::operation::update_framework::UpdateFrameworkError) -> Self {
3545 match err {
3546 crate::operation::update_framework::UpdateFrameworkError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
3547 crate::operation::update_framework::UpdateFrameworkError::ConflictException(inner) => Error::ConflictException(inner),
3548 crate::operation::update_framework::UpdateFrameworkError::InvalidParameterValueException(inner) => {
3549 Error::InvalidParameterValueException(inner)
3550 }
3551 crate::operation::update_framework::UpdateFrameworkError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3552 crate::operation::update_framework::UpdateFrameworkError::MissingParameterValueException(inner) => {
3553 Error::MissingParameterValueException(inner)
3554 }
3555 crate::operation::update_framework::UpdateFrameworkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3556 crate::operation::update_framework::UpdateFrameworkError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3557 crate::operation::update_framework::UpdateFrameworkError::Unhandled(inner) => Error::Unhandled(inner),
3558 }
3559 }
3560}
3561impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_global_settings::UpdateGlobalSettingsError, R>> for Error
3562where
3563 R: Send + Sync + std::fmt::Debug + 'static,
3564{
3565 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_global_settings::UpdateGlobalSettingsError, R>) -> Self {
3566 match err {
3567 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3568 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3569 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3570 source: err.into(),
3571 }),
3572 }
3573 }
3574}
3575impl From<crate::operation::update_global_settings::UpdateGlobalSettingsError> for Error {
3576 fn from(err: crate::operation::update_global_settings::UpdateGlobalSettingsError) -> Self {
3577 match err {
3578 crate::operation::update_global_settings::UpdateGlobalSettingsError::InvalidParameterValueException(inner) => {
3579 Error::InvalidParameterValueException(inner)
3580 }
3581 crate::operation::update_global_settings::UpdateGlobalSettingsError::InvalidRequestException(inner) => {
3582 Error::InvalidRequestException(inner)
3583 }
3584 crate::operation::update_global_settings::UpdateGlobalSettingsError::MissingParameterValueException(inner) => {
3585 Error::MissingParameterValueException(inner)
3586 }
3587 crate::operation::update_global_settings::UpdateGlobalSettingsError::ServiceUnavailableException(inner) => {
3588 Error::ServiceUnavailableException(inner)
3589 }
3590 crate::operation::update_global_settings::UpdateGlobalSettingsError::Unhandled(inner) => Error::Unhandled(inner),
3591 }
3592 }
3593}
3594impl<R>
3595 From<
3596 ::aws_smithy_runtime_api::client::result::SdkError<
3597 crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError,
3598 R,
3599 >,
3600 > for Error
3601where
3602 R: Send + Sync + std::fmt::Debug + 'static,
3603{
3604 fn from(
3605 err: ::aws_smithy_runtime_api::client::result::SdkError<
3606 crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError,
3607 R,
3608 >,
3609 ) -> Self {
3610 match err {
3611 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3612 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3613 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3614 source: err.into(),
3615 }),
3616 }
3617 }
3618}
3619impl From<crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError> for Error {
3620 fn from(err: crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError) -> Self {
3621 match err {
3622 crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError::InvalidParameterValueException(inner) => {
3623 Error::InvalidParameterValueException(inner)
3624 }
3625 crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError::InvalidRequestException(inner) => {
3626 Error::InvalidRequestException(inner)
3627 }
3628 crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError::MissingParameterValueException(inner) => {
3629 Error::MissingParameterValueException(inner)
3630 }
3631 crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError::ResourceNotFoundException(inner) => {
3632 Error::ResourceNotFoundException(inner)
3633 }
3634 crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError::ServiceUnavailableException(inner) => {
3635 Error::ServiceUnavailableException(inner)
3636 }
3637 crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError::Unhandled(inner) => {
3638 Error::Unhandled(inner)
3639 }
3640 }
3641 }
3642}
3643impl<R>
3644 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError, R>>
3645 for Error
3646where
3647 R: Send + Sync + std::fmt::Debug + 'static,
3648{
3649 fn from(
3650 err: ::aws_smithy_runtime_api::client::result::SdkError<
3651 crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError,
3652 R,
3653 >,
3654 ) -> Self {
3655 match err {
3656 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3657 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3658 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3659 source: err.into(),
3660 }),
3661 }
3662 }
3663}
3664impl From<crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError> for Error {
3665 fn from(err: crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError) -> Self {
3666 match err {
3667 crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError::InvalidParameterValueException(inner) => {
3668 Error::InvalidParameterValueException(inner)
3669 }
3670 crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError::InvalidRequestException(inner) => {
3671 Error::InvalidRequestException(inner)
3672 }
3673 crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError::MissingParameterValueException(inner) => {
3674 Error::MissingParameterValueException(inner)
3675 }
3676 crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError::ResourceNotFoundException(inner) => {
3677 Error::ResourceNotFoundException(inner)
3678 }
3679 crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError::ServiceUnavailableException(inner) => {
3680 Error::ServiceUnavailableException(inner)
3681 }
3682 crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError::Unhandled(inner) => Error::Unhandled(inner),
3683 }
3684 }
3685}
3686impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_region_settings::UpdateRegionSettingsError, R>> for Error
3687where
3688 R: Send + Sync + std::fmt::Debug + 'static,
3689{
3690 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_region_settings::UpdateRegionSettingsError, R>) -> Self {
3691 match err {
3692 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3693 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3694 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3695 source: err.into(),
3696 }),
3697 }
3698 }
3699}
3700impl From<crate::operation::update_region_settings::UpdateRegionSettingsError> for Error {
3701 fn from(err: crate::operation::update_region_settings::UpdateRegionSettingsError) -> Self {
3702 match err {
3703 crate::operation::update_region_settings::UpdateRegionSettingsError::InvalidParameterValueException(inner) => {
3704 Error::InvalidParameterValueException(inner)
3705 }
3706 crate::operation::update_region_settings::UpdateRegionSettingsError::MissingParameterValueException(inner) => {
3707 Error::MissingParameterValueException(inner)
3708 }
3709 crate::operation::update_region_settings::UpdateRegionSettingsError::ServiceUnavailableException(inner) => {
3710 Error::ServiceUnavailableException(inner)
3711 }
3712 crate::operation::update_region_settings::UpdateRegionSettingsError::Unhandled(inner) => Error::Unhandled(inner),
3713 }
3714 }
3715}
3716impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_report_plan::UpdateReportPlanError, R>> for Error
3717where
3718 R: Send + Sync + std::fmt::Debug + 'static,
3719{
3720 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_report_plan::UpdateReportPlanError, R>) -> Self {
3721 match err {
3722 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3723 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3724 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3725 source: err.into(),
3726 }),
3727 }
3728 }
3729}
3730impl From<crate::operation::update_report_plan::UpdateReportPlanError> for Error {
3731 fn from(err: crate::operation::update_report_plan::UpdateReportPlanError) -> Self {
3732 match err {
3733 crate::operation::update_report_plan::UpdateReportPlanError::ConflictException(inner) => Error::ConflictException(inner),
3734 crate::operation::update_report_plan::UpdateReportPlanError::InvalidParameterValueException(inner) => {
3735 Error::InvalidParameterValueException(inner)
3736 }
3737 crate::operation::update_report_plan::UpdateReportPlanError::MissingParameterValueException(inner) => {
3738 Error::MissingParameterValueException(inner)
3739 }
3740 crate::operation::update_report_plan::UpdateReportPlanError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3741 crate::operation::update_report_plan::UpdateReportPlanError::ServiceUnavailableException(inner) => {
3742 Error::ServiceUnavailableException(inner)
3743 }
3744 crate::operation::update_report_plan::UpdateReportPlanError::Unhandled(inner) => Error::Unhandled(inner),
3745 }
3746 }
3747}
3748impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError, R>>
3749 for Error
3750where
3751 R: Send + Sync + std::fmt::Debug + 'static,
3752{
3753 fn from(
3754 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError, R>,
3755 ) -> Self {
3756 match err {
3757 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3758 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3759 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3760 source: err.into(),
3761 }),
3762 }
3763 }
3764}
3765impl From<crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError> for Error {
3766 fn from(err: crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError) -> Self {
3767 match err {
3768 crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError::ConflictException(inner) => Error::ConflictException(inner),
3769 crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError::InvalidParameterValueException(inner) => {
3770 Error::InvalidParameterValueException(inner)
3771 }
3772 crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError::MissingParameterValueException(inner) => {
3773 Error::MissingParameterValueException(inner)
3774 }
3775 crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError::ResourceNotFoundException(inner) => {
3776 Error::ResourceNotFoundException(inner)
3777 }
3778 crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError::ServiceUnavailableException(inner) => {
3779 Error::ServiceUnavailableException(inner)
3780 }
3781 crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError::Unhandled(inner) => Error::Unhandled(inner),
3782 }
3783 }
3784}
3785impl<R>
3786 From<
3787 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError, R>,
3788 > for Error
3789where
3790 R: Send + Sync + std::fmt::Debug + 'static,
3791{
3792 fn from(
3793 err: ::aws_smithy_runtime_api::client::result::SdkError<
3794 crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError,
3795 R,
3796 >,
3797 ) -> Self {
3798 match err {
3799 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3800 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3801 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3802 source: err.into(),
3803 }),
3804 }
3805 }
3806}
3807impl From<crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError> for Error {
3808 fn from(err: crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError) -> Self {
3809 match err {
3810 crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError::ConflictException(inner) => {
3811 Error::ConflictException(inner)
3812 }
3813 crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError::InvalidParameterValueException(inner) => {
3814 Error::InvalidParameterValueException(inner)
3815 }
3816 crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError::MissingParameterValueException(inner) => {
3817 Error::MissingParameterValueException(inner)
3818 }
3819 crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError::ResourceNotFoundException(inner) => {
3820 Error::ResourceNotFoundException(inner)
3821 }
3822 crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError::ServiceUnavailableException(inner) => {
3823 Error::ServiceUnavailableException(inner)
3824 }
3825 crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError::Unhandled(inner) => Error::Unhandled(inner),
3826 }
3827 }
3828}
3829impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_tiering_configuration::UpdateTieringConfigurationError, R>>
3830 for Error
3831where
3832 R: Send + Sync + std::fmt::Debug + 'static,
3833{
3834 fn from(
3835 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_tiering_configuration::UpdateTieringConfigurationError, R>,
3836 ) -> Self {
3837 match err {
3838 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3839 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3840 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3841 source: err.into(),
3842 }),
3843 }
3844 }
3845}
3846impl From<crate::operation::update_tiering_configuration::UpdateTieringConfigurationError> for Error {
3847 fn from(err: crate::operation::update_tiering_configuration::UpdateTieringConfigurationError) -> Self {
3848 match err {
3849 crate::operation::update_tiering_configuration::UpdateTieringConfigurationError::AlreadyExistsException(inner) => {
3850 Error::AlreadyExistsException(inner)
3851 }
3852 crate::operation::update_tiering_configuration::UpdateTieringConfigurationError::ConflictException(inner) => {
3853 Error::ConflictException(inner)
3854 }
3855 crate::operation::update_tiering_configuration::UpdateTieringConfigurationError::InvalidParameterValueException(inner) => {
3856 Error::InvalidParameterValueException(inner)
3857 }
3858 crate::operation::update_tiering_configuration::UpdateTieringConfigurationError::LimitExceededException(inner) => {
3859 Error::LimitExceededException(inner)
3860 }
3861 crate::operation::update_tiering_configuration::UpdateTieringConfigurationError::MissingParameterValueException(inner) => {
3862 Error::MissingParameterValueException(inner)
3863 }
3864 crate::operation::update_tiering_configuration::UpdateTieringConfigurationError::ResourceNotFoundException(inner) => {
3865 Error::ResourceNotFoundException(inner)
3866 }
3867 crate::operation::update_tiering_configuration::UpdateTieringConfigurationError::ServiceUnavailableException(inner) => {
3868 Error::ServiceUnavailableException(inner)
3869 }
3870 crate::operation::update_tiering_configuration::UpdateTieringConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3871 }
3872 }
3873}
3874impl ::std::error::Error for Error {
3875 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3876 match self {
3877 Error::AlreadyExistsException(inner) => inner.source(),
3878 Error::ConflictException(inner) => inner.source(),
3879 Error::DependencyFailureException(inner) => inner.source(),
3880 Error::InvalidParameterValueException(inner) => inner.source(),
3881 Error::InvalidRequestException(inner) => inner.source(),
3882 Error::InvalidResourceStateException(inner) => inner.source(),
3883 Error::LimitExceededException(inner) => inner.source(),
3884 Error::MissingParameterValueException(inner) => inner.source(),
3885 Error::ResourceNotFoundException(inner) => inner.source(),
3886 Error::ServiceUnavailableException(inner) => inner.source(),
3887 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3888 }
3889 }
3890}
3891impl ::aws_types::request_id::RequestId for Error {
3892 fn request_id(&self) -> Option<&str> {
3893 match self {
3894 Self::AlreadyExistsException(e) => e.request_id(),
3895 Self::ConflictException(e) => e.request_id(),
3896 Self::DependencyFailureException(e) => e.request_id(),
3897 Self::InvalidParameterValueException(e) => e.request_id(),
3898 Self::InvalidRequestException(e) => e.request_id(),
3899 Self::InvalidResourceStateException(e) => e.request_id(),
3900 Self::LimitExceededException(e) => e.request_id(),
3901 Self::MissingParameterValueException(e) => e.request_id(),
3902 Self::ResourceNotFoundException(e) => e.request_id(),
3903 Self::ServiceUnavailableException(e) => e.request_id(),
3904 Self::Unhandled(e) => e.meta.request_id(),
3905 }
3906 }
3907}