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