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> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_pitr_malware_scan_results::GetPITRMalwareScanResultsError, R>>
1828 for Error
1829where
1830 R: Send + Sync + std::fmt::Debug + 'static,
1831{
1832 fn from(
1833 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_pitr_malware_scan_results::GetPITRMalwareScanResultsError, R>,
1834 ) -> Self {
1835 match err {
1836 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1837 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1838 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1839 source: err.into(),
1840 }),
1841 }
1842 }
1843}
1844impl From<crate::operation::get_pitr_malware_scan_results::GetPITRMalwareScanResultsError> for Error {
1845 fn from(err: crate::operation::get_pitr_malware_scan_results::GetPITRMalwareScanResultsError) -> Self {
1846 match err {
1847 crate::operation::get_pitr_malware_scan_results::GetPITRMalwareScanResultsError::InvalidParameterValueException(inner) => {
1848 Error::InvalidParameterValueException(inner)
1849 }
1850 crate::operation::get_pitr_malware_scan_results::GetPITRMalwareScanResultsError::MissingParameterValueException(inner) => {
1851 Error::MissingParameterValueException(inner)
1852 }
1853 crate::operation::get_pitr_malware_scan_results::GetPITRMalwareScanResultsError::ResourceNotFoundException(inner) => {
1854 Error::ResourceNotFoundException(inner)
1855 }
1856 crate::operation::get_pitr_malware_scan_results::GetPITRMalwareScanResultsError::ServiceUnavailableException(inner) => {
1857 Error::ServiceUnavailableException(inner)
1858 }
1859 crate::operation::get_pitr_malware_scan_results::GetPITRMalwareScanResultsError::Unhandled(inner) => Error::Unhandled(inner),
1860 }
1861 }
1862}
1863impl<R>
1864 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError, R>>
1865 for Error
1866where
1867 R: Send + Sync + std::fmt::Debug + 'static,
1868{
1869 fn from(
1870 err: ::aws_smithy_runtime_api::client::result::SdkError<
1871 crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError,
1872 R,
1873 >,
1874 ) -> Self {
1875 match err {
1876 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1877 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1878 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1879 source: err.into(),
1880 }),
1881 }
1882 }
1883}
1884impl From<crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError> for Error {
1885 fn from(err: crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError) -> Self {
1886 match err {
1887 crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError::InvalidParameterValueException(inner) => {
1888 Error::InvalidParameterValueException(inner)
1889 }
1890 crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError::MissingParameterValueException(inner) => {
1891 Error::MissingParameterValueException(inner)
1892 }
1893 crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError::ResourceNotFoundException(inner) => {
1894 Error::ResourceNotFoundException(inner)
1895 }
1896 crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError::ServiceUnavailableException(inner) => {
1897 Error::ServiceUnavailableException(inner)
1898 }
1899 crate::operation::get_recovery_point_index_details::GetRecoveryPointIndexDetailsError::Unhandled(inner) => Error::Unhandled(inner),
1900 }
1901 }
1902}
1903impl<R>
1904 From<
1905 ::aws_smithy_runtime_api::client::result::SdkError<
1906 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError,
1907 R,
1908 >,
1909 > for Error
1910where
1911 R: Send + Sync + std::fmt::Debug + 'static,
1912{
1913 fn from(
1914 err: ::aws_smithy_runtime_api::client::result::SdkError<
1915 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError,
1916 R,
1917 >,
1918 ) -> Self {
1919 match err {
1920 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1921 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1922 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1923 source: err.into(),
1924 }),
1925 }
1926 }
1927}
1928impl From<crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError> for Error {
1929 fn from(err: crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError) -> Self {
1930 match err {
1931 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError::InvalidParameterValueException(inner) => {
1932 Error::InvalidParameterValueException(inner)
1933 }
1934 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError::MissingParameterValueException(inner) => {
1935 Error::MissingParameterValueException(inner)
1936 }
1937 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError::ResourceNotFoundException(inner) => {
1938 Error::ResourceNotFoundException(inner)
1939 }
1940 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError::ServiceUnavailableException(inner) => {
1941 Error::ServiceUnavailableException(inner)
1942 }
1943 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError::Unhandled(inner) => Error::Unhandled(inner),
1944 }
1945 }
1946}
1947impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError, R>> for Error
1948where
1949 R: Send + Sync + std::fmt::Debug + 'static,
1950{
1951 fn from(
1952 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError, R>,
1953 ) -> Self {
1954 match err {
1955 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1956 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1957 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1958 source: err.into(),
1959 }),
1960 }
1961 }
1962}
1963impl From<crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError> for Error {
1964 fn from(err: crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError) -> Self {
1965 match err {
1966 crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError::InvalidParameterValueException(inner) => {
1967 Error::InvalidParameterValueException(inner)
1968 }
1969 crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError::MissingParameterValueException(inner) => {
1970 Error::MissingParameterValueException(inner)
1971 }
1972 crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError::ResourceNotFoundException(inner) => {
1973 Error::ResourceNotFoundException(inner)
1974 }
1975 crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError::ServiceUnavailableException(inner) => {
1976 Error::ServiceUnavailableException(inner)
1977 }
1978 crate::operation::get_restore_job_metadata::GetRestoreJobMetadataError::Unhandled(inner) => Error::Unhandled(inner),
1979 }
1980 }
1981}
1982impl<R>
1983 From<
1984 ::aws_smithy_runtime_api::client::result::SdkError<
1985 crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError,
1986 R,
1987 >,
1988 > for Error
1989where
1990 R: Send + Sync + std::fmt::Debug + 'static,
1991{
1992 fn from(
1993 err: ::aws_smithy_runtime_api::client::result::SdkError<
1994 crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError,
1995 R,
1996 >,
1997 ) -> Self {
1998 match err {
1999 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2000 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2001 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2002 source: err.into(),
2003 }),
2004 }
2005 }
2006}
2007impl From<crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError> for Error {
2008 fn from(err: crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError) -> Self {
2009 match err {
2010 crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError::InvalidParameterValueException(
2011 inner,
2012 ) => Error::InvalidParameterValueException(inner),
2013 crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError::MissingParameterValueException(
2014 inner,
2015 ) => Error::MissingParameterValueException(inner),
2016 crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError::ResourceNotFoundException(inner) => {
2017 Error::ResourceNotFoundException(inner)
2018 }
2019 crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError::ServiceUnavailableException(inner) => {
2020 Error::ServiceUnavailableException(inner)
2021 }
2022 crate::operation::get_restore_testing_inferred_metadata::GetRestoreTestingInferredMetadataError::Unhandled(inner) => {
2023 Error::Unhandled(inner)
2024 }
2025 }
2026 }
2027}
2028impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_restore_testing_plan::GetRestoreTestingPlanError, R>> for Error
2029where
2030 R: Send + Sync + std::fmt::Debug + 'static,
2031{
2032 fn from(
2033 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_restore_testing_plan::GetRestoreTestingPlanError, R>,
2034 ) -> Self {
2035 match err {
2036 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2037 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2038 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2039 source: err.into(),
2040 }),
2041 }
2042 }
2043}
2044impl From<crate::operation::get_restore_testing_plan::GetRestoreTestingPlanError> for Error {
2045 fn from(err: crate::operation::get_restore_testing_plan::GetRestoreTestingPlanError) -> Self {
2046 match err {
2047 crate::operation::get_restore_testing_plan::GetRestoreTestingPlanError::ResourceNotFoundException(inner) => {
2048 Error::ResourceNotFoundException(inner)
2049 }
2050 crate::operation::get_restore_testing_plan::GetRestoreTestingPlanError::ServiceUnavailableException(inner) => {
2051 Error::ServiceUnavailableException(inner)
2052 }
2053 crate::operation::get_restore_testing_plan::GetRestoreTestingPlanError::Unhandled(inner) => Error::Unhandled(inner),
2054 }
2055 }
2056}
2057impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_restore_testing_selection::GetRestoreTestingSelectionError, R>>
2058 for Error
2059where
2060 R: Send + Sync + std::fmt::Debug + 'static,
2061{
2062 fn from(
2063 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_restore_testing_selection::GetRestoreTestingSelectionError, R>,
2064 ) -> Self {
2065 match err {
2066 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2067 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2068 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2069 source: err.into(),
2070 }),
2071 }
2072 }
2073}
2074impl From<crate::operation::get_restore_testing_selection::GetRestoreTestingSelectionError> for Error {
2075 fn from(err: crate::operation::get_restore_testing_selection::GetRestoreTestingSelectionError) -> Self {
2076 match err {
2077 crate::operation::get_restore_testing_selection::GetRestoreTestingSelectionError::ResourceNotFoundException(inner) => {
2078 Error::ResourceNotFoundException(inner)
2079 }
2080 crate::operation::get_restore_testing_selection::GetRestoreTestingSelectionError::ServiceUnavailableException(inner) => {
2081 Error::ServiceUnavailableException(inner)
2082 }
2083 crate::operation::get_restore_testing_selection::GetRestoreTestingSelectionError::Unhandled(inner) => Error::Unhandled(inner),
2084 }
2085 }
2086}
2087impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_supported_resource_types::GetSupportedResourceTypesError, R>>
2088 for Error
2089where
2090 R: Send + Sync + std::fmt::Debug + 'static,
2091{
2092 fn from(
2093 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_supported_resource_types::GetSupportedResourceTypesError, R>,
2094 ) -> Self {
2095 match err {
2096 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2097 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2098 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2099 source: err.into(),
2100 }),
2101 }
2102 }
2103}
2104impl From<crate::operation::get_supported_resource_types::GetSupportedResourceTypesError> for Error {
2105 fn from(err: crate::operation::get_supported_resource_types::GetSupportedResourceTypesError) -> Self {
2106 match err {
2107 crate::operation::get_supported_resource_types::GetSupportedResourceTypesError::ServiceUnavailableException(inner) => {
2108 Error::ServiceUnavailableException(inner)
2109 }
2110 crate::operation::get_supported_resource_types::GetSupportedResourceTypesError::Unhandled(inner) => Error::Unhandled(inner),
2111 }
2112 }
2113}
2114impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_tiering_configuration::GetTieringConfigurationError, R>>
2115 for Error
2116where
2117 R: Send + Sync + std::fmt::Debug + 'static,
2118{
2119 fn from(
2120 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_tiering_configuration::GetTieringConfigurationError, R>,
2121 ) -> Self {
2122 match err {
2123 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2124 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2125 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2126 source: err.into(),
2127 }),
2128 }
2129 }
2130}
2131impl From<crate::operation::get_tiering_configuration::GetTieringConfigurationError> for Error {
2132 fn from(err: crate::operation::get_tiering_configuration::GetTieringConfigurationError) -> Self {
2133 match err {
2134 crate::operation::get_tiering_configuration::GetTieringConfigurationError::InvalidParameterValueException(inner) => {
2135 Error::InvalidParameterValueException(inner)
2136 }
2137 crate::operation::get_tiering_configuration::GetTieringConfigurationError::MissingParameterValueException(inner) => {
2138 Error::MissingParameterValueException(inner)
2139 }
2140 crate::operation::get_tiering_configuration::GetTieringConfigurationError::ResourceNotFoundException(inner) => {
2141 Error::ResourceNotFoundException(inner)
2142 }
2143 crate::operation::get_tiering_configuration::GetTieringConfigurationError::ServiceUnavailableException(inner) => {
2144 Error::ServiceUnavailableException(inner)
2145 }
2146 crate::operation::get_tiering_configuration::GetTieringConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2147 }
2148 }
2149}
2150impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_jobs::ListBackupJobsError, R>> for Error
2151where
2152 R: Send + Sync + std::fmt::Debug + 'static,
2153{
2154 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_jobs::ListBackupJobsError, R>) -> Self {
2155 match err {
2156 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2157 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2158 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2159 source: err.into(),
2160 }),
2161 }
2162 }
2163}
2164impl From<crate::operation::list_backup_jobs::ListBackupJobsError> for Error {
2165 fn from(err: crate::operation::list_backup_jobs::ListBackupJobsError) -> Self {
2166 match err {
2167 crate::operation::list_backup_jobs::ListBackupJobsError::InvalidParameterValueException(inner) => {
2168 Error::InvalidParameterValueException(inner)
2169 }
2170 crate::operation::list_backup_jobs::ListBackupJobsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2171 crate::operation::list_backup_jobs::ListBackupJobsError::Unhandled(inner) => Error::Unhandled(inner),
2172 }
2173 }
2174}
2175impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_job_summaries::ListBackupJobSummariesError, R>>
2176 for Error
2177where
2178 R: Send + Sync + std::fmt::Debug + 'static,
2179{
2180 fn from(
2181 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_job_summaries::ListBackupJobSummariesError, R>,
2182 ) -> Self {
2183 match err {
2184 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2185 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2186 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2187 source: err.into(),
2188 }),
2189 }
2190 }
2191}
2192impl From<crate::operation::list_backup_job_summaries::ListBackupJobSummariesError> for Error {
2193 fn from(err: crate::operation::list_backup_job_summaries::ListBackupJobSummariesError) -> Self {
2194 match err {
2195 crate::operation::list_backup_job_summaries::ListBackupJobSummariesError::InvalidParameterValueException(inner) => {
2196 Error::InvalidParameterValueException(inner)
2197 }
2198 crate::operation::list_backup_job_summaries::ListBackupJobSummariesError::ServiceUnavailableException(inner) => {
2199 Error::ServiceUnavailableException(inner)
2200 }
2201 crate::operation::list_backup_job_summaries::ListBackupJobSummariesError::Unhandled(inner) => Error::Unhandled(inner),
2202 }
2203 }
2204}
2205impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_plans::ListBackupPlansError, R>> for Error
2206where
2207 R: Send + Sync + std::fmt::Debug + 'static,
2208{
2209 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_plans::ListBackupPlansError, R>) -> Self {
2210 match err {
2211 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2212 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2213 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2214 source: err.into(),
2215 }),
2216 }
2217 }
2218}
2219impl From<crate::operation::list_backup_plans::ListBackupPlansError> for Error {
2220 fn from(err: crate::operation::list_backup_plans::ListBackupPlansError) -> Self {
2221 match err {
2222 crate::operation::list_backup_plans::ListBackupPlansError::InvalidParameterValueException(inner) => {
2223 Error::InvalidParameterValueException(inner)
2224 }
2225 crate::operation::list_backup_plans::ListBackupPlansError::MissingParameterValueException(inner) => {
2226 Error::MissingParameterValueException(inner)
2227 }
2228 crate::operation::list_backup_plans::ListBackupPlansError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2229 crate::operation::list_backup_plans::ListBackupPlansError::ServiceUnavailableException(inner) => {
2230 Error::ServiceUnavailableException(inner)
2231 }
2232 crate::operation::list_backup_plans::ListBackupPlansError::Unhandled(inner) => Error::Unhandled(inner),
2233 }
2234 }
2235}
2236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_plan_templates::ListBackupPlanTemplatesError, 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_templates::ListBackupPlanTemplatesError, 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_templates::ListBackupPlanTemplatesError> for Error {
2254 fn from(err: crate::operation::list_backup_plan_templates::ListBackupPlanTemplatesError) -> Self {
2255 match err {
2256 crate::operation::list_backup_plan_templates::ListBackupPlanTemplatesError::InvalidParameterValueException(inner) => {
2257 Error::InvalidParameterValueException(inner)
2258 }
2259 crate::operation::list_backup_plan_templates::ListBackupPlanTemplatesError::MissingParameterValueException(inner) => {
2260 Error::MissingParameterValueException(inner)
2261 }
2262 crate::operation::list_backup_plan_templates::ListBackupPlanTemplatesError::ResourceNotFoundException(inner) => {
2263 Error::ResourceNotFoundException(inner)
2264 }
2265 crate::operation::list_backup_plan_templates::ListBackupPlanTemplatesError::ServiceUnavailableException(inner) => {
2266 Error::ServiceUnavailableException(inner)
2267 }
2268 crate::operation::list_backup_plan_templates::ListBackupPlanTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
2269 }
2270 }
2271}
2272impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError, R>>
2273 for Error
2274where
2275 R: Send + Sync + std::fmt::Debug + 'static,
2276{
2277 fn from(
2278 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError, R>,
2279 ) -> Self {
2280 match err {
2281 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2282 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2283 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2284 source: err.into(),
2285 }),
2286 }
2287 }
2288}
2289impl From<crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError> for Error {
2290 fn from(err: crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError) -> Self {
2291 match err {
2292 crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError::InvalidParameterValueException(inner) => {
2293 Error::InvalidParameterValueException(inner)
2294 }
2295 crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError::MissingParameterValueException(inner) => {
2296 Error::MissingParameterValueException(inner)
2297 }
2298 crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError::ResourceNotFoundException(inner) => {
2299 Error::ResourceNotFoundException(inner)
2300 }
2301 crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError::ServiceUnavailableException(inner) => {
2302 Error::ServiceUnavailableException(inner)
2303 }
2304 crate::operation::list_backup_plan_versions::ListBackupPlanVersionsError::Unhandled(inner) => Error::Unhandled(inner),
2305 }
2306 }
2307}
2308impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_selections::ListBackupSelectionsError, R>> for Error
2309where
2310 R: Send + Sync + std::fmt::Debug + 'static,
2311{
2312 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_selections::ListBackupSelectionsError, R>) -> Self {
2313 match err {
2314 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2315 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2316 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2317 source: err.into(),
2318 }),
2319 }
2320 }
2321}
2322impl From<crate::operation::list_backup_selections::ListBackupSelectionsError> for Error {
2323 fn from(err: crate::operation::list_backup_selections::ListBackupSelectionsError) -> Self {
2324 match err {
2325 crate::operation::list_backup_selections::ListBackupSelectionsError::InvalidParameterValueException(inner) => {
2326 Error::InvalidParameterValueException(inner)
2327 }
2328 crate::operation::list_backup_selections::ListBackupSelectionsError::MissingParameterValueException(inner) => {
2329 Error::MissingParameterValueException(inner)
2330 }
2331 crate::operation::list_backup_selections::ListBackupSelectionsError::ResourceNotFoundException(inner) => {
2332 Error::ResourceNotFoundException(inner)
2333 }
2334 crate::operation::list_backup_selections::ListBackupSelectionsError::ServiceUnavailableException(inner) => {
2335 Error::ServiceUnavailableException(inner)
2336 }
2337 crate::operation::list_backup_selections::ListBackupSelectionsError::Unhandled(inner) => Error::Unhandled(inner),
2338 }
2339 }
2340}
2341impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_vaults::ListBackupVaultsError, R>> for Error
2342where
2343 R: Send + Sync + std::fmt::Debug + 'static,
2344{
2345 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_backup_vaults::ListBackupVaultsError, R>) -> Self {
2346 match err {
2347 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2348 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2349 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2350 source: err.into(),
2351 }),
2352 }
2353 }
2354}
2355impl From<crate::operation::list_backup_vaults::ListBackupVaultsError> for Error {
2356 fn from(err: crate::operation::list_backup_vaults::ListBackupVaultsError) -> Self {
2357 match err {
2358 crate::operation::list_backup_vaults::ListBackupVaultsError::InvalidParameterValueException(inner) => {
2359 Error::InvalidParameterValueException(inner)
2360 }
2361 crate::operation::list_backup_vaults::ListBackupVaultsError::MissingParameterValueException(inner) => {
2362 Error::MissingParameterValueException(inner)
2363 }
2364 crate::operation::list_backup_vaults::ListBackupVaultsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2365 crate::operation::list_backup_vaults::ListBackupVaultsError::ServiceUnavailableException(inner) => {
2366 Error::ServiceUnavailableException(inner)
2367 }
2368 crate::operation::list_backup_vaults::ListBackupVaultsError::Unhandled(inner) => Error::Unhandled(inner),
2369 }
2370 }
2371}
2372impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_copy_jobs::ListCopyJobsError, R>> for Error
2373where
2374 R: Send + Sync + std::fmt::Debug + 'static,
2375{
2376 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_copy_jobs::ListCopyJobsError, R>) -> Self {
2377 match err {
2378 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2379 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2380 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2381 source: err.into(),
2382 }),
2383 }
2384 }
2385}
2386impl From<crate::operation::list_copy_jobs::ListCopyJobsError> for Error {
2387 fn from(err: crate::operation::list_copy_jobs::ListCopyJobsError) -> Self {
2388 match err {
2389 crate::operation::list_copy_jobs::ListCopyJobsError::InvalidParameterValueException(inner) => {
2390 Error::InvalidParameterValueException(inner)
2391 }
2392 crate::operation::list_copy_jobs::ListCopyJobsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2393 crate::operation::list_copy_jobs::ListCopyJobsError::Unhandled(inner) => Error::Unhandled(inner),
2394 }
2395 }
2396}
2397impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_copy_job_summaries::ListCopyJobSummariesError, R>> for Error
2398where
2399 R: Send + Sync + std::fmt::Debug + 'static,
2400{
2401 fn from(
2402 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_copy_job_summaries::ListCopyJobSummariesError, R>,
2403 ) -> Self {
2404 match err {
2405 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2406 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2407 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2408 source: err.into(),
2409 }),
2410 }
2411 }
2412}
2413impl From<crate::operation::list_copy_job_summaries::ListCopyJobSummariesError> for Error {
2414 fn from(err: crate::operation::list_copy_job_summaries::ListCopyJobSummariesError) -> Self {
2415 match err {
2416 crate::operation::list_copy_job_summaries::ListCopyJobSummariesError::InvalidParameterValueException(inner) => {
2417 Error::InvalidParameterValueException(inner)
2418 }
2419 crate::operation::list_copy_job_summaries::ListCopyJobSummariesError::ServiceUnavailableException(inner) => {
2420 Error::ServiceUnavailableException(inner)
2421 }
2422 crate::operation::list_copy_job_summaries::ListCopyJobSummariesError::Unhandled(inner) => Error::Unhandled(inner),
2423 }
2424 }
2425}
2426impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_frameworks::ListFrameworksError, R>> for Error
2427where
2428 R: Send + Sync + std::fmt::Debug + 'static,
2429{
2430 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_frameworks::ListFrameworksError, R>) -> Self {
2431 match err {
2432 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2433 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2434 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2435 source: err.into(),
2436 }),
2437 }
2438 }
2439}
2440impl From<crate::operation::list_frameworks::ListFrameworksError> for Error {
2441 fn from(err: crate::operation::list_frameworks::ListFrameworksError) -> Self {
2442 match err {
2443 crate::operation::list_frameworks::ListFrameworksError::InvalidParameterValueException(inner) => {
2444 Error::InvalidParameterValueException(inner)
2445 }
2446 crate::operation::list_frameworks::ListFrameworksError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2447 crate::operation::list_frameworks::ListFrameworksError::Unhandled(inner) => Error::Unhandled(inner),
2448 }
2449 }
2450}
2451impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_indexed_recovery_points::ListIndexedRecoveryPointsError, R>>
2452 for Error
2453where
2454 R: Send + Sync + std::fmt::Debug + 'static,
2455{
2456 fn from(
2457 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_indexed_recovery_points::ListIndexedRecoveryPointsError, R>,
2458 ) -> Self {
2459 match err {
2460 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2461 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2462 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2463 source: err.into(),
2464 }),
2465 }
2466 }
2467}
2468impl From<crate::operation::list_indexed_recovery_points::ListIndexedRecoveryPointsError> for Error {
2469 fn from(err: crate::operation::list_indexed_recovery_points::ListIndexedRecoveryPointsError) -> Self {
2470 match err {
2471 crate::operation::list_indexed_recovery_points::ListIndexedRecoveryPointsError::InvalidParameterValueException(inner) => {
2472 Error::InvalidParameterValueException(inner)
2473 }
2474 crate::operation::list_indexed_recovery_points::ListIndexedRecoveryPointsError::ResourceNotFoundException(inner) => {
2475 Error::ResourceNotFoundException(inner)
2476 }
2477 crate::operation::list_indexed_recovery_points::ListIndexedRecoveryPointsError::ServiceUnavailableException(inner) => {
2478 Error::ServiceUnavailableException(inner)
2479 }
2480 crate::operation::list_indexed_recovery_points::ListIndexedRecoveryPointsError::Unhandled(inner) => Error::Unhandled(inner),
2481 }
2482 }
2483}
2484impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_legal_holds::ListLegalHoldsError, R>> for Error
2485where
2486 R: Send + Sync + std::fmt::Debug + 'static,
2487{
2488 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_legal_holds::ListLegalHoldsError, R>) -> Self {
2489 match err {
2490 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2491 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2492 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2493 source: err.into(),
2494 }),
2495 }
2496 }
2497}
2498impl From<crate::operation::list_legal_holds::ListLegalHoldsError> for Error {
2499 fn from(err: crate::operation::list_legal_holds::ListLegalHoldsError) -> Self {
2500 match err {
2501 crate::operation::list_legal_holds::ListLegalHoldsError::InvalidParameterValueException(inner) => {
2502 Error::InvalidParameterValueException(inner)
2503 }
2504 crate::operation::list_legal_holds::ListLegalHoldsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2505 crate::operation::list_legal_holds::ListLegalHoldsError::Unhandled(inner) => Error::Unhandled(inner),
2506 }
2507 }
2508}
2509impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_protected_resources::ListProtectedResourcesError, R>> for Error
2510where
2511 R: Send + Sync + std::fmt::Debug + 'static,
2512{
2513 fn from(
2514 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_protected_resources::ListProtectedResourcesError, R>,
2515 ) -> Self {
2516 match err {
2517 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2518 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2519 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2520 source: err.into(),
2521 }),
2522 }
2523 }
2524}
2525impl From<crate::operation::list_protected_resources::ListProtectedResourcesError> for Error {
2526 fn from(err: crate::operation::list_protected_resources::ListProtectedResourcesError) -> Self {
2527 match err {
2528 crate::operation::list_protected_resources::ListProtectedResourcesError::InvalidParameterValueException(inner) => {
2529 Error::InvalidParameterValueException(inner)
2530 }
2531 crate::operation::list_protected_resources::ListProtectedResourcesError::ServiceUnavailableException(inner) => {
2532 Error::ServiceUnavailableException(inner)
2533 }
2534 crate::operation::list_protected_resources::ListProtectedResourcesError::Unhandled(inner) => Error::Unhandled(inner),
2535 }
2536 }
2537}
2538impl<R>
2539 From<
2540 ::aws_smithy_runtime_api::client::result::SdkError<
2541 crate::operation::list_protected_resources_by_backup_vault::ListProtectedResourcesByBackupVaultError,
2542 R,
2543 >,
2544 > for Error
2545where
2546 R: Send + Sync + std::fmt::Debug + 'static,
2547{
2548 fn from(
2549 err: ::aws_smithy_runtime_api::client::result::SdkError<
2550 crate::operation::list_protected_resources_by_backup_vault::ListProtectedResourcesByBackupVaultError,
2551 R,
2552 >,
2553 ) -> Self {
2554 match err {
2555 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2556 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2557 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2558 source: err.into(),
2559 }),
2560 }
2561 }
2562}
2563impl From<crate::operation::list_protected_resources_by_backup_vault::ListProtectedResourcesByBackupVaultError> for Error {
2564 fn from(err: crate::operation::list_protected_resources_by_backup_vault::ListProtectedResourcesByBackupVaultError) -> Self {
2565 match err {
2566 crate::operation::list_protected_resources_by_backup_vault::ListProtectedResourcesByBackupVaultError::InvalidParameterValueException(
2567 inner,
2568 ) => Error::InvalidParameterValueException(inner),
2569 crate::operation::list_protected_resources_by_backup_vault::ListProtectedResourcesByBackupVaultError::ResourceNotFoundException(
2570 inner,
2571 ) => Error::ResourceNotFoundException(inner),
2572 crate::operation::list_protected_resources_by_backup_vault::ListProtectedResourcesByBackupVaultError::ServiceUnavailableException(
2573 inner,
2574 ) => Error::ServiceUnavailableException(inner),
2575 crate::operation::list_protected_resources_by_backup_vault::ListProtectedResourcesByBackupVaultError::Unhandled(inner) => {
2576 Error::Unhandled(inner)
2577 }
2578 }
2579 }
2580}
2581impl<R>
2582 From<
2583 ::aws_smithy_runtime_api::client::result::SdkError<
2584 crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError,
2585 R,
2586 >,
2587 > for Error
2588where
2589 R: Send + Sync + std::fmt::Debug + 'static,
2590{
2591 fn from(
2592 err: ::aws_smithy_runtime_api::client::result::SdkError<
2593 crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError,
2594 R,
2595 >,
2596 ) -> Self {
2597 match err {
2598 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2599 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2600 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2601 source: err.into(),
2602 }),
2603 }
2604 }
2605}
2606impl From<crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError> for Error {
2607 fn from(err: crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError) -> Self {
2608 match err {
2609 crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError::InvalidParameterValueException(inner) => {
2610 Error::InvalidParameterValueException(inner)
2611 }
2612 crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError::MissingParameterValueException(inner) => {
2613 Error::MissingParameterValueException(inner)
2614 }
2615 crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError::ResourceNotFoundException(inner) => {
2616 Error::ResourceNotFoundException(inner)
2617 }
2618 crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError::ServiceUnavailableException(inner) => {
2619 Error::ServiceUnavailableException(inner)
2620 }
2621 crate::operation::list_recovery_points_by_backup_vault::ListRecoveryPointsByBackupVaultError::Unhandled(inner) => Error::Unhandled(inner),
2622 }
2623 }
2624}
2625impl<R>
2626 From<
2627 ::aws_smithy_runtime_api::client::result::SdkError<
2628 crate::operation::list_recovery_points_by_legal_hold::ListRecoveryPointsByLegalHoldError,
2629 R,
2630 >,
2631 > for Error
2632where
2633 R: Send + Sync + std::fmt::Debug + 'static,
2634{
2635 fn from(
2636 err: ::aws_smithy_runtime_api::client::result::SdkError<
2637 crate::operation::list_recovery_points_by_legal_hold::ListRecoveryPointsByLegalHoldError,
2638 R,
2639 >,
2640 ) -> Self {
2641 match err {
2642 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2643 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2644 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2645 source: err.into(),
2646 }),
2647 }
2648 }
2649}
2650impl From<crate::operation::list_recovery_points_by_legal_hold::ListRecoveryPointsByLegalHoldError> for Error {
2651 fn from(err: crate::operation::list_recovery_points_by_legal_hold::ListRecoveryPointsByLegalHoldError) -> Self {
2652 match err {
2653 crate::operation::list_recovery_points_by_legal_hold::ListRecoveryPointsByLegalHoldError::InvalidParameterValueException(inner) => {
2654 Error::InvalidParameterValueException(inner)
2655 }
2656 crate::operation::list_recovery_points_by_legal_hold::ListRecoveryPointsByLegalHoldError::MissingParameterValueException(inner) => {
2657 Error::MissingParameterValueException(inner)
2658 }
2659 crate::operation::list_recovery_points_by_legal_hold::ListRecoveryPointsByLegalHoldError::ServiceUnavailableException(inner) => {
2660 Error::ServiceUnavailableException(inner)
2661 }
2662 crate::operation::list_recovery_points_by_legal_hold::ListRecoveryPointsByLegalHoldError::Unhandled(inner) => Error::Unhandled(inner),
2663 }
2664 }
2665}
2666impl<R>
2667 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError, R>>
2668 for Error
2669where
2670 R: Send + Sync + std::fmt::Debug + 'static,
2671{
2672 fn from(
2673 err: ::aws_smithy_runtime_api::client::result::SdkError<
2674 crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError,
2675 R,
2676 >,
2677 ) -> Self {
2678 match err {
2679 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2680 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2681 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2682 source: err.into(),
2683 }),
2684 }
2685 }
2686}
2687impl From<crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError> for Error {
2688 fn from(err: crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError) -> Self {
2689 match err {
2690 crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError::InvalidParameterValueException(inner) => {
2691 Error::InvalidParameterValueException(inner)
2692 }
2693 crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError::MissingParameterValueException(inner) => {
2694 Error::MissingParameterValueException(inner)
2695 }
2696 crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError::ResourceNotFoundException(inner) => {
2697 Error::ResourceNotFoundException(inner)
2698 }
2699 crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError::ServiceUnavailableException(inner) => {
2700 Error::ServiceUnavailableException(inner)
2701 }
2702 crate::operation::list_recovery_points_by_resource::ListRecoveryPointsByResourceError::Unhandled(inner) => Error::Unhandled(inner),
2703 }
2704 }
2705}
2706impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_report_jobs::ListReportJobsError, R>> for Error
2707where
2708 R: Send + Sync + std::fmt::Debug + 'static,
2709{
2710 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_report_jobs::ListReportJobsError, R>) -> Self {
2711 match err {
2712 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2713 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2714 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2715 source: err.into(),
2716 }),
2717 }
2718 }
2719}
2720impl From<crate::operation::list_report_jobs::ListReportJobsError> for Error {
2721 fn from(err: crate::operation::list_report_jobs::ListReportJobsError) -> Self {
2722 match err {
2723 crate::operation::list_report_jobs::ListReportJobsError::InvalidParameterValueException(inner) => {
2724 Error::InvalidParameterValueException(inner)
2725 }
2726 crate::operation::list_report_jobs::ListReportJobsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2727 crate::operation::list_report_jobs::ListReportJobsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2728 crate::operation::list_report_jobs::ListReportJobsError::Unhandled(inner) => Error::Unhandled(inner),
2729 }
2730 }
2731}
2732impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_report_plans::ListReportPlansError, R>> for Error
2733where
2734 R: Send + Sync + std::fmt::Debug + 'static,
2735{
2736 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_report_plans::ListReportPlansError, R>) -> Self {
2737 match err {
2738 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2739 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2740 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2741 source: err.into(),
2742 }),
2743 }
2744 }
2745}
2746impl From<crate::operation::list_report_plans::ListReportPlansError> for Error {
2747 fn from(err: crate::operation::list_report_plans::ListReportPlansError) -> Self {
2748 match err {
2749 crate::operation::list_report_plans::ListReportPlansError::InvalidParameterValueException(inner) => {
2750 Error::InvalidParameterValueException(inner)
2751 }
2752 crate::operation::list_report_plans::ListReportPlansError::ServiceUnavailableException(inner) => {
2753 Error::ServiceUnavailableException(inner)
2754 }
2755 crate::operation::list_report_plans::ListReportPlansError::Unhandled(inner) => Error::Unhandled(inner),
2756 }
2757 }
2758}
2759impl<R>
2760 From<
2761 ::aws_smithy_runtime_api::client::result::SdkError<
2762 crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError,
2763 R,
2764 >,
2765 > for Error
2766where
2767 R: Send + Sync + std::fmt::Debug + 'static,
2768{
2769 fn from(
2770 err: ::aws_smithy_runtime_api::client::result::SdkError<
2771 crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError,
2772 R,
2773 >,
2774 ) -> Self {
2775 match err {
2776 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2777 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2778 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2779 source: err.into(),
2780 }),
2781 }
2782 }
2783}
2784impl From<crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError> for Error {
2785 fn from(err: crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError) -> Self {
2786 match err {
2787 crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError::InvalidParameterValueException(inner) => {
2788 Error::InvalidParameterValueException(inner)
2789 }
2790 crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError::MissingParameterValueException(inner) => {
2791 Error::MissingParameterValueException(inner)
2792 }
2793 crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError::ResourceNotFoundException(inner) => {
2794 Error::ResourceNotFoundException(inner)
2795 }
2796 crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError::ServiceUnavailableException(inner) => {
2797 Error::ServiceUnavailableException(inner)
2798 }
2799 crate::operation::list_restore_access_backup_vaults::ListRestoreAccessBackupVaultsError::Unhandled(inner) => Error::Unhandled(inner),
2800 }
2801 }
2802}
2803impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_restore_jobs::ListRestoreJobsError, R>> for Error
2804where
2805 R: Send + Sync + std::fmt::Debug + 'static,
2806{
2807 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_restore_jobs::ListRestoreJobsError, R>) -> Self {
2808 match err {
2809 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2810 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2811 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2812 source: err.into(),
2813 }),
2814 }
2815 }
2816}
2817impl From<crate::operation::list_restore_jobs::ListRestoreJobsError> for Error {
2818 fn from(err: crate::operation::list_restore_jobs::ListRestoreJobsError) -> Self {
2819 match err {
2820 crate::operation::list_restore_jobs::ListRestoreJobsError::InvalidParameterValueException(inner) => {
2821 Error::InvalidParameterValueException(inner)
2822 }
2823 crate::operation::list_restore_jobs::ListRestoreJobsError::MissingParameterValueException(inner) => {
2824 Error::MissingParameterValueException(inner)
2825 }
2826 crate::operation::list_restore_jobs::ListRestoreJobsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2827 crate::operation::list_restore_jobs::ListRestoreJobsError::ServiceUnavailableException(inner) => {
2828 Error::ServiceUnavailableException(inner)
2829 }
2830 crate::operation::list_restore_jobs::ListRestoreJobsError::Unhandled(inner) => Error::Unhandled(inner),
2831 }
2832 }
2833}
2834impl<R>
2835 From<
2836 ::aws_smithy_runtime_api::client::result::SdkError<
2837 crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError,
2838 R,
2839 >,
2840 > for Error
2841where
2842 R: Send + Sync + std::fmt::Debug + 'static,
2843{
2844 fn from(
2845 err: ::aws_smithy_runtime_api::client::result::SdkError<
2846 crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError,
2847 R,
2848 >,
2849 ) -> Self {
2850 match err {
2851 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2852 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2853 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2854 source: err.into(),
2855 }),
2856 }
2857 }
2858}
2859impl From<crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError> for Error {
2860 fn from(err: crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError) -> Self {
2861 match err {
2862 crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError::InvalidParameterValueException(
2863 inner,
2864 ) => Error::InvalidParameterValueException(inner),
2865 crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError::MissingParameterValueException(
2866 inner,
2867 ) => Error::MissingParameterValueException(inner),
2868 crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError::ResourceNotFoundException(inner) => {
2869 Error::ResourceNotFoundException(inner)
2870 }
2871 crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError::ServiceUnavailableException(
2872 inner,
2873 ) => Error::ServiceUnavailableException(inner),
2874 crate::operation::list_restore_jobs_by_protected_resource::ListRestoreJobsByProtectedResourceError::Unhandled(inner) => {
2875 Error::Unhandled(inner)
2876 }
2877 }
2878 }
2879}
2880impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_restore_job_summaries::ListRestoreJobSummariesError, R>>
2881 for Error
2882where
2883 R: Send + Sync + std::fmt::Debug + 'static,
2884{
2885 fn from(
2886 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_restore_job_summaries::ListRestoreJobSummariesError, R>,
2887 ) -> Self {
2888 match err {
2889 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2890 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2891 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2892 source: err.into(),
2893 }),
2894 }
2895 }
2896}
2897impl From<crate::operation::list_restore_job_summaries::ListRestoreJobSummariesError> for Error {
2898 fn from(err: crate::operation::list_restore_job_summaries::ListRestoreJobSummariesError) -> Self {
2899 match err {
2900 crate::operation::list_restore_job_summaries::ListRestoreJobSummariesError::InvalidParameterValueException(inner) => {
2901 Error::InvalidParameterValueException(inner)
2902 }
2903 crate::operation::list_restore_job_summaries::ListRestoreJobSummariesError::ServiceUnavailableException(inner) => {
2904 Error::ServiceUnavailableException(inner)
2905 }
2906 crate::operation::list_restore_job_summaries::ListRestoreJobSummariesError::Unhandled(inner) => Error::Unhandled(inner),
2907 }
2908 }
2909}
2910impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_restore_testing_plans::ListRestoreTestingPlansError, R>>
2911 for Error
2912where
2913 R: Send + Sync + std::fmt::Debug + 'static,
2914{
2915 fn from(
2916 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_restore_testing_plans::ListRestoreTestingPlansError, R>,
2917 ) -> Self {
2918 match err {
2919 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2920 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2921 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2922 source: err.into(),
2923 }),
2924 }
2925 }
2926}
2927impl From<crate::operation::list_restore_testing_plans::ListRestoreTestingPlansError> for Error {
2928 fn from(err: crate::operation::list_restore_testing_plans::ListRestoreTestingPlansError) -> Self {
2929 match err {
2930 crate::operation::list_restore_testing_plans::ListRestoreTestingPlansError::InvalidParameterValueException(inner) => {
2931 Error::InvalidParameterValueException(inner)
2932 }
2933 crate::operation::list_restore_testing_plans::ListRestoreTestingPlansError::ServiceUnavailableException(inner) => {
2934 Error::ServiceUnavailableException(inner)
2935 }
2936 crate::operation::list_restore_testing_plans::ListRestoreTestingPlansError::Unhandled(inner) => Error::Unhandled(inner),
2937 }
2938 }
2939}
2940impl<R>
2941 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_restore_testing_selections::ListRestoreTestingSelectionsError, R>>
2942 for Error
2943where
2944 R: Send + Sync + std::fmt::Debug + 'static,
2945{
2946 fn from(
2947 err: ::aws_smithy_runtime_api::client::result::SdkError<
2948 crate::operation::list_restore_testing_selections::ListRestoreTestingSelectionsError,
2949 R,
2950 >,
2951 ) -> Self {
2952 match err {
2953 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2954 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2955 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2956 source: err.into(),
2957 }),
2958 }
2959 }
2960}
2961impl From<crate::operation::list_restore_testing_selections::ListRestoreTestingSelectionsError> for Error {
2962 fn from(err: crate::operation::list_restore_testing_selections::ListRestoreTestingSelectionsError) -> Self {
2963 match err {
2964 crate::operation::list_restore_testing_selections::ListRestoreTestingSelectionsError::InvalidParameterValueException(inner) => {
2965 Error::InvalidParameterValueException(inner)
2966 }
2967 crate::operation::list_restore_testing_selections::ListRestoreTestingSelectionsError::ResourceNotFoundException(inner) => {
2968 Error::ResourceNotFoundException(inner)
2969 }
2970 crate::operation::list_restore_testing_selections::ListRestoreTestingSelectionsError::ServiceUnavailableException(inner) => {
2971 Error::ServiceUnavailableException(inner)
2972 }
2973 crate::operation::list_restore_testing_selections::ListRestoreTestingSelectionsError::Unhandled(inner) => Error::Unhandled(inner),
2974 }
2975 }
2976}
2977impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scan_jobs::ListScanJobsError, R>> for Error
2978where
2979 R: Send + Sync + std::fmt::Debug + 'static,
2980{
2981 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scan_jobs::ListScanJobsError, R>) -> Self {
2982 match err {
2983 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2984 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2985 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2986 source: err.into(),
2987 }),
2988 }
2989 }
2990}
2991impl From<crate::operation::list_scan_jobs::ListScanJobsError> for Error {
2992 fn from(err: crate::operation::list_scan_jobs::ListScanJobsError) -> Self {
2993 match err {
2994 crate::operation::list_scan_jobs::ListScanJobsError::InvalidParameterValueException(inner) => {
2995 Error::InvalidParameterValueException(inner)
2996 }
2997 crate::operation::list_scan_jobs::ListScanJobsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2998 crate::operation::list_scan_jobs::ListScanJobsError::Unhandled(inner) => Error::Unhandled(inner),
2999 }
3000 }
3001}
3002impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scan_job_summaries::ListScanJobSummariesError, R>> for Error
3003where
3004 R: Send + Sync + std::fmt::Debug + 'static,
3005{
3006 fn from(
3007 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scan_job_summaries::ListScanJobSummariesError, R>,
3008 ) -> Self {
3009 match err {
3010 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3011 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3012 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3013 source: err.into(),
3014 }),
3015 }
3016 }
3017}
3018impl From<crate::operation::list_scan_job_summaries::ListScanJobSummariesError> for Error {
3019 fn from(err: crate::operation::list_scan_job_summaries::ListScanJobSummariesError) -> Self {
3020 match err {
3021 crate::operation::list_scan_job_summaries::ListScanJobSummariesError::InvalidParameterValueException(inner) => {
3022 Error::InvalidParameterValueException(inner)
3023 }
3024 crate::operation::list_scan_job_summaries::ListScanJobSummariesError::ServiceUnavailableException(inner) => {
3025 Error::ServiceUnavailableException(inner)
3026 }
3027 crate::operation::list_scan_job_summaries::ListScanJobSummariesError::Unhandled(inner) => Error::Unhandled(inner),
3028 }
3029 }
3030}
3031impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags::ListTagsError, R>> for Error
3032where
3033 R: Send + Sync + std::fmt::Debug + 'static,
3034{
3035 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags::ListTagsError, R>) -> Self {
3036 match err {
3037 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3038 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3039 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3040 source: err.into(),
3041 }),
3042 }
3043 }
3044}
3045impl From<crate::operation::list_tags::ListTagsError> for Error {
3046 fn from(err: crate::operation::list_tags::ListTagsError) -> Self {
3047 match err {
3048 crate::operation::list_tags::ListTagsError::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner),
3049 crate::operation::list_tags::ListTagsError::MissingParameterValueException(inner) => Error::MissingParameterValueException(inner),
3050 crate::operation::list_tags::ListTagsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3051 crate::operation::list_tags::ListTagsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3052 crate::operation::list_tags::ListTagsError::Unhandled(inner) => Error::Unhandled(inner),
3053 }
3054 }
3055}
3056impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tiering_configurations::ListTieringConfigurationsError, R>>
3057 for Error
3058where
3059 R: Send + Sync + std::fmt::Debug + 'static,
3060{
3061 fn from(
3062 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tiering_configurations::ListTieringConfigurationsError, R>,
3063 ) -> Self {
3064 match err {
3065 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3066 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3067 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3068 source: err.into(),
3069 }),
3070 }
3071 }
3072}
3073impl From<crate::operation::list_tiering_configurations::ListTieringConfigurationsError> for Error {
3074 fn from(err: crate::operation::list_tiering_configurations::ListTieringConfigurationsError) -> Self {
3075 match err {
3076 crate::operation::list_tiering_configurations::ListTieringConfigurationsError::InvalidParameterValueException(inner) => {
3077 Error::InvalidParameterValueException(inner)
3078 }
3079 crate::operation::list_tiering_configurations::ListTieringConfigurationsError::ServiceUnavailableException(inner) => {
3080 Error::ServiceUnavailableException(inner)
3081 }
3082 crate::operation::list_tiering_configurations::ListTieringConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
3083 }
3084 }
3085}
3086impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError, R>>
3087 for Error
3088where
3089 R: Send + Sync + std::fmt::Debug + 'static,
3090{
3091 fn from(
3092 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError, R>,
3093 ) -> Self {
3094 match err {
3095 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3096 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3097 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3098 source: err.into(),
3099 }),
3100 }
3101 }
3102}
3103impl From<crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError> for Error {
3104 fn from(err: crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError) -> Self {
3105 match err {
3106 crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError::InvalidParameterValueException(inner) => {
3107 Error::InvalidParameterValueException(inner)
3108 }
3109 crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError::MissingParameterValueException(inner) => {
3110 Error::MissingParameterValueException(inner)
3111 }
3112 crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError::ResourceNotFoundException(inner) => {
3113 Error::ResourceNotFoundException(inner)
3114 }
3115 crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError::ServiceUnavailableException(inner) => {
3116 Error::ServiceUnavailableException(inner)
3117 }
3118 crate::operation::put_backup_vault_access_policy::PutBackupVaultAccessPolicyError::Unhandled(inner) => Error::Unhandled(inner),
3119 }
3120 }
3121}
3122impl<R>
3123 From<
3124 ::aws_smithy_runtime_api::client::result::SdkError<
3125 crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError,
3126 R,
3127 >,
3128 > for Error
3129where
3130 R: Send + Sync + std::fmt::Debug + 'static,
3131{
3132 fn from(
3133 err: ::aws_smithy_runtime_api::client::result::SdkError<
3134 crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError,
3135 R,
3136 >,
3137 ) -> Self {
3138 match err {
3139 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3140 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3141 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3142 source: err.into(),
3143 }),
3144 }
3145 }
3146}
3147impl From<crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError> for Error {
3148 fn from(err: crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError) -> Self {
3149 match err {
3150 crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError::InvalidParameterValueException(inner) => {
3151 Error::InvalidParameterValueException(inner)
3152 }
3153 crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError::InvalidRequestException(inner) => {
3154 Error::InvalidRequestException(inner)
3155 }
3156 crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError::MissingParameterValueException(inner) => {
3157 Error::MissingParameterValueException(inner)
3158 }
3159 crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError::ResourceNotFoundException(inner) => {
3160 Error::ResourceNotFoundException(inner)
3161 }
3162 crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError::ServiceUnavailableException(inner) => {
3163 Error::ServiceUnavailableException(inner)
3164 }
3165 crate::operation::put_backup_vault_lock_configuration::PutBackupVaultLockConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3166 }
3167 }
3168}
3169impl<R>
3170 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError, R>>
3171 for Error
3172where
3173 R: Send + Sync + std::fmt::Debug + 'static,
3174{
3175 fn from(
3176 err: ::aws_smithy_runtime_api::client::result::SdkError<
3177 crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError,
3178 R,
3179 >,
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_backup_vault_notifications::PutBackupVaultNotificationsError> for Error {
3191 fn from(err: crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError) -> Self {
3192 match err {
3193 crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError::InvalidParameterValueException(inner) => {
3194 Error::InvalidParameterValueException(inner)
3195 }
3196 crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError::MissingParameterValueException(inner) => {
3197 Error::MissingParameterValueException(inner)
3198 }
3199 crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError::ResourceNotFoundException(inner) => {
3200 Error::ResourceNotFoundException(inner)
3201 }
3202 crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError::ServiceUnavailableException(inner) => {
3203 Error::ServiceUnavailableException(inner)
3204 }
3205 crate::operation::put_backup_vault_notifications::PutBackupVaultNotificationsError::Unhandled(inner) => Error::Unhandled(inner),
3206 }
3207 }
3208}
3209impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_restore_validation_result::PutRestoreValidationResultError, R>>
3210 for Error
3211where
3212 R: Send + Sync + std::fmt::Debug + 'static,
3213{
3214 fn from(
3215 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_restore_validation_result::PutRestoreValidationResultError, R>,
3216 ) -> Self {
3217 match err {
3218 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3219 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3220 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3221 source: err.into(),
3222 }),
3223 }
3224 }
3225}
3226impl From<crate::operation::put_restore_validation_result::PutRestoreValidationResultError> for Error {
3227 fn from(err: crate::operation::put_restore_validation_result::PutRestoreValidationResultError) -> Self {
3228 match err {
3229 crate::operation::put_restore_validation_result::PutRestoreValidationResultError::InvalidParameterValueException(inner) => {
3230 Error::InvalidParameterValueException(inner)
3231 }
3232 crate::operation::put_restore_validation_result::PutRestoreValidationResultError::InvalidRequestException(inner) => {
3233 Error::InvalidRequestException(inner)
3234 }
3235 crate::operation::put_restore_validation_result::PutRestoreValidationResultError::MissingParameterValueException(inner) => {
3236 Error::MissingParameterValueException(inner)
3237 }
3238 crate::operation::put_restore_validation_result::PutRestoreValidationResultError::ResourceNotFoundException(inner) => {
3239 Error::ResourceNotFoundException(inner)
3240 }
3241 crate::operation::put_restore_validation_result::PutRestoreValidationResultError::ServiceUnavailableException(inner) => {
3242 Error::ServiceUnavailableException(inner)
3243 }
3244 crate::operation::put_restore_validation_result::PutRestoreValidationResultError::Unhandled(inner) => Error::Unhandled(inner),
3245 }
3246 }
3247}
3248impl<R>
3249 From<
3250 ::aws_smithy_runtime_api::client::result::SdkError<
3251 crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError,
3252 R,
3253 >,
3254 > for Error
3255where
3256 R: Send + Sync + std::fmt::Debug + 'static,
3257{
3258 fn from(
3259 err: ::aws_smithy_runtime_api::client::result::SdkError<
3260 crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError,
3261 R,
3262 >,
3263 ) -> 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::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError> for Error {
3274 fn from(err: crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError) -> Self {
3275 match err {
3276 crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError::InvalidParameterValueException(inner) => {
3277 Error::InvalidParameterValueException(inner)
3278 }
3279 crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError::InvalidRequestException(inner) => {
3280 Error::InvalidRequestException(inner)
3281 }
3282 crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError::MissingParameterValueException(inner) => {
3283 Error::MissingParameterValueException(inner)
3284 }
3285 crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError::ResourceNotFoundException(inner) => {
3286 Error::ResourceNotFoundException(inner)
3287 }
3288 crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError::ServiceUnavailableException(inner) => {
3289 Error::ServiceUnavailableException(inner)
3290 }
3291 crate::operation::revoke_restore_access_backup_vault::RevokeRestoreAccessBackupVaultError::Unhandled(inner) => Error::Unhandled(inner),
3292 }
3293 }
3294}
3295impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_backup_job::StartBackupJobError, R>> for Error
3296where
3297 R: Send + Sync + std::fmt::Debug + 'static,
3298{
3299 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_backup_job::StartBackupJobError, R>) -> Self {
3300 match err {
3301 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3302 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3303 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3304 source: err.into(),
3305 }),
3306 }
3307 }
3308}
3309impl From<crate::operation::start_backup_job::StartBackupJobError> for Error {
3310 fn from(err: crate::operation::start_backup_job::StartBackupJobError) -> Self {
3311 match err {
3312 crate::operation::start_backup_job::StartBackupJobError::InvalidParameterValueException(inner) => {
3313 Error::InvalidParameterValueException(inner)
3314 }
3315 crate::operation::start_backup_job::StartBackupJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3316 crate::operation::start_backup_job::StartBackupJobError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3317 crate::operation::start_backup_job::StartBackupJobError::MissingParameterValueException(inner) => {
3318 Error::MissingParameterValueException(inner)
3319 }
3320 crate::operation::start_backup_job::StartBackupJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3321 crate::operation::start_backup_job::StartBackupJobError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3322 crate::operation::start_backup_job::StartBackupJobError::Unhandled(inner) => Error::Unhandled(inner),
3323 }
3324 }
3325}
3326impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_copy_job::StartCopyJobError, R>> for Error
3327where
3328 R: Send + Sync + std::fmt::Debug + 'static,
3329{
3330 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_copy_job::StartCopyJobError, R>) -> Self {
3331 match err {
3332 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3333 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3334 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3335 source: err.into(),
3336 }),
3337 }
3338 }
3339}
3340impl From<crate::operation::start_copy_job::StartCopyJobError> for Error {
3341 fn from(err: crate::operation::start_copy_job::StartCopyJobError) -> Self {
3342 match err {
3343 crate::operation::start_copy_job::StartCopyJobError::InvalidParameterValueException(inner) => {
3344 Error::InvalidParameterValueException(inner)
3345 }
3346 crate::operation::start_copy_job::StartCopyJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3347 crate::operation::start_copy_job::StartCopyJobError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3348 crate::operation::start_copy_job::StartCopyJobError::MissingParameterValueException(inner) => {
3349 Error::MissingParameterValueException(inner)
3350 }
3351 crate::operation::start_copy_job::StartCopyJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3352 crate::operation::start_copy_job::StartCopyJobError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3353 crate::operation::start_copy_job::StartCopyJobError::Unhandled(inner) => Error::Unhandled(inner),
3354 }
3355 }
3356}
3357impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_report_job::StartReportJobError, R>> for Error
3358where
3359 R: Send + Sync + std::fmt::Debug + 'static,
3360{
3361 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_report_job::StartReportJobError, R>) -> Self {
3362 match err {
3363 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3364 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3365 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3366 source: err.into(),
3367 }),
3368 }
3369 }
3370}
3371impl From<crate::operation::start_report_job::StartReportJobError> for Error {
3372 fn from(err: crate::operation::start_report_job::StartReportJobError) -> Self {
3373 match err {
3374 crate::operation::start_report_job::StartReportJobError::InvalidParameterValueException(inner) => {
3375 Error::InvalidParameterValueException(inner)
3376 }
3377 crate::operation::start_report_job::StartReportJobError::MissingParameterValueException(inner) => {
3378 Error::MissingParameterValueException(inner)
3379 }
3380 crate::operation::start_report_job::StartReportJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3381 crate::operation::start_report_job::StartReportJobError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3382 crate::operation::start_report_job::StartReportJobError::Unhandled(inner) => Error::Unhandled(inner),
3383 }
3384 }
3385}
3386impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_restore_job::StartRestoreJobError, R>> for Error
3387where
3388 R: Send + Sync + std::fmt::Debug + 'static,
3389{
3390 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_restore_job::StartRestoreJobError, R>) -> Self {
3391 match err {
3392 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3393 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3394 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3395 source: err.into(),
3396 }),
3397 }
3398 }
3399}
3400impl From<crate::operation::start_restore_job::StartRestoreJobError> for Error {
3401 fn from(err: crate::operation::start_restore_job::StartRestoreJobError) -> Self {
3402 match err {
3403 crate::operation::start_restore_job::StartRestoreJobError::InvalidParameterValueException(inner) => {
3404 Error::InvalidParameterValueException(inner)
3405 }
3406 crate::operation::start_restore_job::StartRestoreJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3407 crate::operation::start_restore_job::StartRestoreJobError::MissingParameterValueException(inner) => {
3408 Error::MissingParameterValueException(inner)
3409 }
3410 crate::operation::start_restore_job::StartRestoreJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3411 crate::operation::start_restore_job::StartRestoreJobError::ServiceUnavailableException(inner) => {
3412 Error::ServiceUnavailableException(inner)
3413 }
3414 crate::operation::start_restore_job::StartRestoreJobError::Unhandled(inner) => Error::Unhandled(inner),
3415 }
3416 }
3417}
3418impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_scan_job::StartScanJobError, R>> for Error
3419where
3420 R: Send + Sync + std::fmt::Debug + 'static,
3421{
3422 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_scan_job::StartScanJobError, R>) -> Self {
3423 match err {
3424 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3425 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3426 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3427 source: err.into(),
3428 }),
3429 }
3430 }
3431}
3432impl From<crate::operation::start_scan_job::StartScanJobError> for Error {
3433 fn from(err: crate::operation::start_scan_job::StartScanJobError) -> Self {
3434 match err {
3435 crate::operation::start_scan_job::StartScanJobError::InvalidParameterValueException(inner) => {
3436 Error::InvalidParameterValueException(inner)
3437 }
3438 crate::operation::start_scan_job::StartScanJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3439 crate::operation::start_scan_job::StartScanJobError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3440 crate::operation::start_scan_job::StartScanJobError::MissingParameterValueException(inner) => {
3441 Error::MissingParameterValueException(inner)
3442 }
3443 crate::operation::start_scan_job::StartScanJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3444 crate::operation::start_scan_job::StartScanJobError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3445 crate::operation::start_scan_job::StartScanJobError::Unhandled(inner) => Error::Unhandled(inner),
3446 }
3447 }
3448}
3449impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_backup_job::StopBackupJobError, R>> for Error
3450where
3451 R: Send + Sync + std::fmt::Debug + 'static,
3452{
3453 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_backup_job::StopBackupJobError, R>) -> Self {
3454 match err {
3455 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3456 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3457 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3458 source: err.into(),
3459 }),
3460 }
3461 }
3462}
3463impl From<crate::operation::stop_backup_job::StopBackupJobError> for Error {
3464 fn from(err: crate::operation::stop_backup_job::StopBackupJobError) -> Self {
3465 match err {
3466 crate::operation::stop_backup_job::StopBackupJobError::InvalidParameterValueException(inner) => {
3467 Error::InvalidParameterValueException(inner)
3468 }
3469 crate::operation::stop_backup_job::StopBackupJobError::InvalidRequestException(inner) => Error::InvalidRequestException(inner),
3470 crate::operation::stop_backup_job::StopBackupJobError::MissingParameterValueException(inner) => {
3471 Error::MissingParameterValueException(inner)
3472 }
3473 crate::operation::stop_backup_job::StopBackupJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3474 crate::operation::stop_backup_job::StopBackupJobError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3475 crate::operation::stop_backup_job::StopBackupJobError::Unhandled(inner) => Error::Unhandled(inner),
3476 }
3477 }
3478}
3479impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
3480where
3481 R: Send + Sync + std::fmt::Debug + 'static,
3482{
3483 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
3484 match err {
3485 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3486 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3487 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3488 source: err.into(),
3489 }),
3490 }
3491 }
3492}
3493impl From<crate::operation::tag_resource::TagResourceError> for Error {
3494 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
3495 match err {
3496 crate::operation::tag_resource::TagResourceError::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner),
3497 crate::operation::tag_resource::TagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3498 crate::operation::tag_resource::TagResourceError::MissingParameterValueException(inner) => Error::MissingParameterValueException(inner),
3499 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3500 crate::operation::tag_resource::TagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3501 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3502 }
3503 }
3504}
3505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
3506where
3507 R: Send + Sync + std::fmt::Debug + 'static,
3508{
3509 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
3510 match err {
3511 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3512 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3513 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3514 source: err.into(),
3515 }),
3516 }
3517 }
3518}
3519impl From<crate::operation::untag_resource::UntagResourceError> for Error {
3520 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
3521 match err {
3522 crate::operation::untag_resource::UntagResourceError::InvalidParameterValueException(inner) => {
3523 Error::InvalidParameterValueException(inner)
3524 }
3525 crate::operation::untag_resource::UntagResourceError::MissingParameterValueException(inner) => {
3526 Error::MissingParameterValueException(inner)
3527 }
3528 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3529 crate::operation::untag_resource::UntagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3530 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3531 }
3532 }
3533}
3534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_backup_plan::UpdateBackupPlanError, R>> for Error
3535where
3536 R: Send + Sync + std::fmt::Debug + 'static,
3537{
3538 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_backup_plan::UpdateBackupPlanError, R>) -> Self {
3539 match err {
3540 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3541 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3542 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3543 source: err.into(),
3544 }),
3545 }
3546 }
3547}
3548impl From<crate::operation::update_backup_plan::UpdateBackupPlanError> for Error {
3549 fn from(err: crate::operation::update_backup_plan::UpdateBackupPlanError) -> Self {
3550 match err {
3551 crate::operation::update_backup_plan::UpdateBackupPlanError::InvalidParameterValueException(inner) => {
3552 Error::InvalidParameterValueException(inner)
3553 }
3554 crate::operation::update_backup_plan::UpdateBackupPlanError::MissingParameterValueException(inner) => {
3555 Error::MissingParameterValueException(inner)
3556 }
3557 crate::operation::update_backup_plan::UpdateBackupPlanError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3558 crate::operation::update_backup_plan::UpdateBackupPlanError::ServiceUnavailableException(inner) => {
3559 Error::ServiceUnavailableException(inner)
3560 }
3561 crate::operation::update_backup_plan::UpdateBackupPlanError::Unhandled(inner) => Error::Unhandled(inner),
3562 }
3563 }
3564}
3565impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_framework::UpdateFrameworkError, R>> for Error
3566where
3567 R: Send + Sync + std::fmt::Debug + 'static,
3568{
3569 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_framework::UpdateFrameworkError, R>) -> Self {
3570 match err {
3571 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3572 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3573 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3574 source: err.into(),
3575 }),
3576 }
3577 }
3578}
3579impl From<crate::operation::update_framework::UpdateFrameworkError> for Error {
3580 fn from(err: crate::operation::update_framework::UpdateFrameworkError) -> Self {
3581 match err {
3582 crate::operation::update_framework::UpdateFrameworkError::AlreadyExistsException(inner) => Error::AlreadyExistsException(inner),
3583 crate::operation::update_framework::UpdateFrameworkError::ConflictException(inner) => Error::ConflictException(inner),
3584 crate::operation::update_framework::UpdateFrameworkError::InvalidParameterValueException(inner) => {
3585 Error::InvalidParameterValueException(inner)
3586 }
3587 crate::operation::update_framework::UpdateFrameworkError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3588 crate::operation::update_framework::UpdateFrameworkError::MissingParameterValueException(inner) => {
3589 Error::MissingParameterValueException(inner)
3590 }
3591 crate::operation::update_framework::UpdateFrameworkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3592 crate::operation::update_framework::UpdateFrameworkError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3593 crate::operation::update_framework::UpdateFrameworkError::Unhandled(inner) => Error::Unhandled(inner),
3594 }
3595 }
3596}
3597impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_global_settings::UpdateGlobalSettingsError, R>> for Error
3598where
3599 R: Send + Sync + std::fmt::Debug + 'static,
3600{
3601 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_global_settings::UpdateGlobalSettingsError, R>) -> Self {
3602 match err {
3603 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3604 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3605 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3606 source: err.into(),
3607 }),
3608 }
3609 }
3610}
3611impl From<crate::operation::update_global_settings::UpdateGlobalSettingsError> for Error {
3612 fn from(err: crate::operation::update_global_settings::UpdateGlobalSettingsError) -> Self {
3613 match err {
3614 crate::operation::update_global_settings::UpdateGlobalSettingsError::InvalidParameterValueException(inner) => {
3615 Error::InvalidParameterValueException(inner)
3616 }
3617 crate::operation::update_global_settings::UpdateGlobalSettingsError::InvalidRequestException(inner) => {
3618 Error::InvalidRequestException(inner)
3619 }
3620 crate::operation::update_global_settings::UpdateGlobalSettingsError::MissingParameterValueException(inner) => {
3621 Error::MissingParameterValueException(inner)
3622 }
3623 crate::operation::update_global_settings::UpdateGlobalSettingsError::ServiceUnavailableException(inner) => {
3624 Error::ServiceUnavailableException(inner)
3625 }
3626 crate::operation::update_global_settings::UpdateGlobalSettingsError::Unhandled(inner) => Error::Unhandled(inner),
3627 }
3628 }
3629}
3630impl<R>
3631 From<
3632 ::aws_smithy_runtime_api::client::result::SdkError<
3633 crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError,
3634 R,
3635 >,
3636 > for Error
3637where
3638 R: Send + Sync + std::fmt::Debug + 'static,
3639{
3640 fn from(
3641 err: ::aws_smithy_runtime_api::client::result::SdkError<
3642 crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError,
3643 R,
3644 >,
3645 ) -> Self {
3646 match err {
3647 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3648 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3649 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3650 source: err.into(),
3651 }),
3652 }
3653 }
3654}
3655impl From<crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError> for Error {
3656 fn from(err: crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError) -> Self {
3657 match err {
3658 crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError::InvalidParameterValueException(inner) => {
3659 Error::InvalidParameterValueException(inner)
3660 }
3661 crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError::InvalidRequestException(inner) => {
3662 Error::InvalidRequestException(inner)
3663 }
3664 crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError::MissingParameterValueException(inner) => {
3665 Error::MissingParameterValueException(inner)
3666 }
3667 crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError::ResourceNotFoundException(inner) => {
3668 Error::ResourceNotFoundException(inner)
3669 }
3670 crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError::ServiceUnavailableException(inner) => {
3671 Error::ServiceUnavailableException(inner)
3672 }
3673 crate::operation::update_recovery_point_index_settings::UpdateRecoveryPointIndexSettingsError::Unhandled(inner) => {
3674 Error::Unhandled(inner)
3675 }
3676 }
3677 }
3678}
3679impl<R>
3680 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError, R>>
3681 for Error
3682where
3683 R: Send + Sync + std::fmt::Debug + 'static,
3684{
3685 fn from(
3686 err: ::aws_smithy_runtime_api::client::result::SdkError<
3687 crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError,
3688 R,
3689 >,
3690 ) -> 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_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError> for Error {
3701 fn from(err: crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError) -> Self {
3702 match err {
3703 crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError::InvalidParameterValueException(inner) => {
3704 Error::InvalidParameterValueException(inner)
3705 }
3706 crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError::InvalidRequestException(inner) => {
3707 Error::InvalidRequestException(inner)
3708 }
3709 crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError::MissingParameterValueException(inner) => {
3710 Error::MissingParameterValueException(inner)
3711 }
3712 crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError::ResourceNotFoundException(inner) => {
3713 Error::ResourceNotFoundException(inner)
3714 }
3715 crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError::ServiceUnavailableException(inner) => {
3716 Error::ServiceUnavailableException(inner)
3717 }
3718 crate::operation::update_recovery_point_lifecycle::UpdateRecoveryPointLifecycleError::Unhandled(inner) => Error::Unhandled(inner),
3719 }
3720 }
3721}
3722impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_region_settings::UpdateRegionSettingsError, R>> for Error
3723where
3724 R: Send + Sync + std::fmt::Debug + 'static,
3725{
3726 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_region_settings::UpdateRegionSettingsError, R>) -> Self {
3727 match err {
3728 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3729 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3730 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3731 source: err.into(),
3732 }),
3733 }
3734 }
3735}
3736impl From<crate::operation::update_region_settings::UpdateRegionSettingsError> for Error {
3737 fn from(err: crate::operation::update_region_settings::UpdateRegionSettingsError) -> Self {
3738 match err {
3739 crate::operation::update_region_settings::UpdateRegionSettingsError::InvalidParameterValueException(inner) => {
3740 Error::InvalidParameterValueException(inner)
3741 }
3742 crate::operation::update_region_settings::UpdateRegionSettingsError::MissingParameterValueException(inner) => {
3743 Error::MissingParameterValueException(inner)
3744 }
3745 crate::operation::update_region_settings::UpdateRegionSettingsError::ServiceUnavailableException(inner) => {
3746 Error::ServiceUnavailableException(inner)
3747 }
3748 crate::operation::update_region_settings::UpdateRegionSettingsError::Unhandled(inner) => Error::Unhandled(inner),
3749 }
3750 }
3751}
3752impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_report_plan::UpdateReportPlanError, R>> for Error
3753where
3754 R: Send + Sync + std::fmt::Debug + 'static,
3755{
3756 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_report_plan::UpdateReportPlanError, R>) -> Self {
3757 match err {
3758 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3759 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3760 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3761 source: err.into(),
3762 }),
3763 }
3764 }
3765}
3766impl From<crate::operation::update_report_plan::UpdateReportPlanError> for Error {
3767 fn from(err: crate::operation::update_report_plan::UpdateReportPlanError) -> Self {
3768 match err {
3769 crate::operation::update_report_plan::UpdateReportPlanError::ConflictException(inner) => Error::ConflictException(inner),
3770 crate::operation::update_report_plan::UpdateReportPlanError::InvalidParameterValueException(inner) => {
3771 Error::InvalidParameterValueException(inner)
3772 }
3773 crate::operation::update_report_plan::UpdateReportPlanError::MissingParameterValueException(inner) => {
3774 Error::MissingParameterValueException(inner)
3775 }
3776 crate::operation::update_report_plan::UpdateReportPlanError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3777 crate::operation::update_report_plan::UpdateReportPlanError::ServiceUnavailableException(inner) => {
3778 Error::ServiceUnavailableException(inner)
3779 }
3780 crate::operation::update_report_plan::UpdateReportPlanError::Unhandled(inner) => Error::Unhandled(inner),
3781 }
3782 }
3783}
3784impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError, R>>
3785 for Error
3786where
3787 R: Send + Sync + std::fmt::Debug + 'static,
3788{
3789 fn from(
3790 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError, R>,
3791 ) -> Self {
3792 match err {
3793 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3794 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3795 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3796 source: err.into(),
3797 }),
3798 }
3799 }
3800}
3801impl From<crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError> for Error {
3802 fn from(err: crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError) -> Self {
3803 match err {
3804 crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError::ConflictException(inner) => Error::ConflictException(inner),
3805 crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError::InvalidParameterValueException(inner) => {
3806 Error::InvalidParameterValueException(inner)
3807 }
3808 crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError::MissingParameterValueException(inner) => {
3809 Error::MissingParameterValueException(inner)
3810 }
3811 crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError::ResourceNotFoundException(inner) => {
3812 Error::ResourceNotFoundException(inner)
3813 }
3814 crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError::ServiceUnavailableException(inner) => {
3815 Error::ServiceUnavailableException(inner)
3816 }
3817 crate::operation::update_restore_testing_plan::UpdateRestoreTestingPlanError::Unhandled(inner) => Error::Unhandled(inner),
3818 }
3819 }
3820}
3821impl<R>
3822 From<
3823 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError, R>,
3824 > for Error
3825where
3826 R: Send + Sync + std::fmt::Debug + 'static,
3827{
3828 fn from(
3829 err: ::aws_smithy_runtime_api::client::result::SdkError<
3830 crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError,
3831 R,
3832 >,
3833 ) -> Self {
3834 match err {
3835 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3836 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3837 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3838 source: err.into(),
3839 }),
3840 }
3841 }
3842}
3843impl From<crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError> for Error {
3844 fn from(err: crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError) -> Self {
3845 match err {
3846 crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError::ConflictException(inner) => {
3847 Error::ConflictException(inner)
3848 }
3849 crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError::InvalidParameterValueException(inner) => {
3850 Error::InvalidParameterValueException(inner)
3851 }
3852 crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError::MissingParameterValueException(inner) => {
3853 Error::MissingParameterValueException(inner)
3854 }
3855 crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError::ResourceNotFoundException(inner) => {
3856 Error::ResourceNotFoundException(inner)
3857 }
3858 crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError::ServiceUnavailableException(inner) => {
3859 Error::ServiceUnavailableException(inner)
3860 }
3861 crate::operation::update_restore_testing_selection::UpdateRestoreTestingSelectionError::Unhandled(inner) => Error::Unhandled(inner),
3862 }
3863 }
3864}
3865impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_tiering_configuration::UpdateTieringConfigurationError, R>>
3866 for Error
3867where
3868 R: Send + Sync + std::fmt::Debug + 'static,
3869{
3870 fn from(
3871 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_tiering_configuration::UpdateTieringConfigurationError, R>,
3872 ) -> Self {
3873 match err {
3874 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3875 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3876 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3877 source: err.into(),
3878 }),
3879 }
3880 }
3881}
3882impl From<crate::operation::update_tiering_configuration::UpdateTieringConfigurationError> for Error {
3883 fn from(err: crate::operation::update_tiering_configuration::UpdateTieringConfigurationError) -> Self {
3884 match err {
3885 crate::operation::update_tiering_configuration::UpdateTieringConfigurationError::AlreadyExistsException(inner) => {
3886 Error::AlreadyExistsException(inner)
3887 }
3888 crate::operation::update_tiering_configuration::UpdateTieringConfigurationError::ConflictException(inner) => {
3889 Error::ConflictException(inner)
3890 }
3891 crate::operation::update_tiering_configuration::UpdateTieringConfigurationError::InvalidParameterValueException(inner) => {
3892 Error::InvalidParameterValueException(inner)
3893 }
3894 crate::operation::update_tiering_configuration::UpdateTieringConfigurationError::LimitExceededException(inner) => {
3895 Error::LimitExceededException(inner)
3896 }
3897 crate::operation::update_tiering_configuration::UpdateTieringConfigurationError::MissingParameterValueException(inner) => {
3898 Error::MissingParameterValueException(inner)
3899 }
3900 crate::operation::update_tiering_configuration::UpdateTieringConfigurationError::ResourceNotFoundException(inner) => {
3901 Error::ResourceNotFoundException(inner)
3902 }
3903 crate::operation::update_tiering_configuration::UpdateTieringConfigurationError::ServiceUnavailableException(inner) => {
3904 Error::ServiceUnavailableException(inner)
3905 }
3906 crate::operation::update_tiering_configuration::UpdateTieringConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3907 }
3908 }
3909}
3910impl ::std::error::Error for Error {
3911 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3912 match self {
3913 Error::AlreadyExistsException(inner) => inner.source(),
3914 Error::ConflictException(inner) => inner.source(),
3915 Error::DependencyFailureException(inner) => inner.source(),
3916 Error::InvalidParameterValueException(inner) => inner.source(),
3917 Error::InvalidRequestException(inner) => inner.source(),
3918 Error::InvalidResourceStateException(inner) => inner.source(),
3919 Error::LimitExceededException(inner) => inner.source(),
3920 Error::MissingParameterValueException(inner) => inner.source(),
3921 Error::ResourceNotFoundException(inner) => inner.source(),
3922 Error::ServiceUnavailableException(inner) => inner.source(),
3923 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3924 }
3925 }
3926}
3927impl ::aws_types::request_id::RequestId for Error {
3928 fn request_id(&self) -> Option<&str> {
3929 match self {
3930 Self::AlreadyExistsException(e) => e.request_id(),
3931 Self::ConflictException(e) => e.request_id(),
3932 Self::DependencyFailureException(e) => e.request_id(),
3933 Self::InvalidParameterValueException(e) => e.request_id(),
3934 Self::InvalidRequestException(e) => e.request_id(),
3935 Self::InvalidResourceStateException(e) => e.request_id(),
3936 Self::LimitExceededException(e) => e.request_id(),
3937 Self::MissingParameterValueException(e) => e.request_id(),
3938 Self::ResourceNotFoundException(e) => e.request_id(),
3939 Self::ServiceUnavailableException(e) => e.request_id(),
3940 Self::Unhandled(e) => e.meta.request_id(),
3941 }
3942 }
3943}