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> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::archive_application::ArchiveApplicationError, R>> for Error
76where
77 R: Send + Sync + std::fmt::Debug + 'static,
78{
79 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::archive_application::ArchiveApplicationError, R>) -> Self {
80 match err {
81 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
82 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
83 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
84 source: err.into(),
85 }),
86 }
87 }
88}
89impl From<crate::operation::archive_application::ArchiveApplicationError> for Error {
90 fn from(err: crate::operation::archive_application::ArchiveApplicationError) -> Self {
91 match err {
92 crate::operation::archive_application::ArchiveApplicationError::ConflictException(inner) => Error::ConflictException(inner),
93 crate::operation::archive_application::ArchiveApplicationError::ResourceNotFoundException(inner) => {
94 Error::ResourceNotFoundException(inner)
95 }
96 crate::operation::archive_application::ArchiveApplicationError::ServiceQuotaExceededException(inner) => {
97 Error::ServiceQuotaExceededException(inner)
98 }
99 crate::operation::archive_application::ArchiveApplicationError::UninitializedAccountException(inner) => {
100 Error::UninitializedAccountException(inner)
101 }
102 crate::operation::archive_application::ArchiveApplicationError::Unhandled(inner) => Error::Unhandled(inner),
103 }
104 }
105}
106impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::archive_wave::ArchiveWaveError, R>> for Error
107where
108 R: Send + Sync + std::fmt::Debug + 'static,
109{
110 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::archive_wave::ArchiveWaveError, R>) -> Self {
111 match err {
112 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
113 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
114 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
115 source: err.into(),
116 }),
117 }
118 }
119}
120impl From<crate::operation::archive_wave::ArchiveWaveError> for Error {
121 fn from(err: crate::operation::archive_wave::ArchiveWaveError) -> Self {
122 match err {
123 crate::operation::archive_wave::ArchiveWaveError::ConflictException(inner) => Error::ConflictException(inner),
124 crate::operation::archive_wave::ArchiveWaveError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
125 crate::operation::archive_wave::ArchiveWaveError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
126 crate::operation::archive_wave::ArchiveWaveError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
127 crate::operation::archive_wave::ArchiveWaveError::Unhandled(inner) => Error::Unhandled(inner),
128 }
129 }
130}
131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_applications::AssociateApplicationsError, R>> for Error
132where
133 R: Send + Sync + std::fmt::Debug + 'static,
134{
135 fn from(
136 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_applications::AssociateApplicationsError, R>,
137 ) -> Self {
138 match err {
139 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
140 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
141 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
142 source: err.into(),
143 }),
144 }
145 }
146}
147impl From<crate::operation::associate_applications::AssociateApplicationsError> for Error {
148 fn from(err: crate::operation::associate_applications::AssociateApplicationsError) -> Self {
149 match err {
150 crate::operation::associate_applications::AssociateApplicationsError::ConflictException(inner) => Error::ConflictException(inner),
151 crate::operation::associate_applications::AssociateApplicationsError::ResourceNotFoundException(inner) => {
152 Error::ResourceNotFoundException(inner)
153 }
154 crate::operation::associate_applications::AssociateApplicationsError::ServiceQuotaExceededException(inner) => {
155 Error::ServiceQuotaExceededException(inner)
156 }
157 crate::operation::associate_applications::AssociateApplicationsError::UninitializedAccountException(inner) => {
158 Error::UninitializedAccountException(inner)
159 }
160 crate::operation::associate_applications::AssociateApplicationsError::Unhandled(inner) => Error::Unhandled(inner),
161 }
162 }
163}
164impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_source_servers::AssociateSourceServersError, R>> for Error
165where
166 R: Send + Sync + std::fmt::Debug + 'static,
167{
168 fn from(
169 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_source_servers::AssociateSourceServersError, R>,
170 ) -> Self {
171 match err {
172 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
173 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
174 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
175 source: err.into(),
176 }),
177 }
178 }
179}
180impl From<crate::operation::associate_source_servers::AssociateSourceServersError> for Error {
181 fn from(err: crate::operation::associate_source_servers::AssociateSourceServersError) -> Self {
182 match err {
183 crate::operation::associate_source_servers::AssociateSourceServersError::ConflictException(inner) => Error::ConflictException(inner),
184 crate::operation::associate_source_servers::AssociateSourceServersError::ResourceNotFoundException(inner) => {
185 Error::ResourceNotFoundException(inner)
186 }
187 crate::operation::associate_source_servers::AssociateSourceServersError::ServiceQuotaExceededException(inner) => {
188 Error::ServiceQuotaExceededException(inner)
189 }
190 crate::operation::associate_source_servers::AssociateSourceServersError::UninitializedAccountException(inner) => {
191 Error::UninitializedAccountException(inner)
192 }
193 crate::operation::associate_source_servers::AssociateSourceServersError::Unhandled(inner) => Error::Unhandled(inner),
194 }
195 }
196}
197impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::change_server_life_cycle_state::ChangeServerLifeCycleStateError, R>>
198 for Error
199where
200 R: Send + Sync + std::fmt::Debug + 'static,
201{
202 fn from(
203 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::change_server_life_cycle_state::ChangeServerLifeCycleStateError, R>,
204 ) -> Self {
205 match err {
206 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
207 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
208 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
209 source: err.into(),
210 }),
211 }
212 }
213}
214impl From<crate::operation::change_server_life_cycle_state::ChangeServerLifeCycleStateError> for Error {
215 fn from(err: crate::operation::change_server_life_cycle_state::ChangeServerLifeCycleStateError) -> Self {
216 match err {
217 crate::operation::change_server_life_cycle_state::ChangeServerLifeCycleStateError::ConflictException(inner) => {
218 Error::ConflictException(inner)
219 }
220 crate::operation::change_server_life_cycle_state::ChangeServerLifeCycleStateError::ResourceNotFoundException(inner) => {
221 Error::ResourceNotFoundException(inner)
222 }
223 crate::operation::change_server_life_cycle_state::ChangeServerLifeCycleStateError::UninitializedAccountException(inner) => {
224 Error::UninitializedAccountException(inner)
225 }
226 crate::operation::change_server_life_cycle_state::ChangeServerLifeCycleStateError::ValidationException(inner) => {
227 Error::ValidationException(inner)
228 }
229 crate::operation::change_server_life_cycle_state::ChangeServerLifeCycleStateError::Unhandled(inner) => Error::Unhandled(inner),
230 }
231 }
232}
233impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_application::CreateApplicationError, R>> for Error
234where
235 R: Send + Sync + std::fmt::Debug + 'static,
236{
237 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_application::CreateApplicationError, R>) -> Self {
238 match err {
239 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
240 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
241 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
242 source: err.into(),
243 }),
244 }
245 }
246}
247impl From<crate::operation::create_application::CreateApplicationError> for Error {
248 fn from(err: crate::operation::create_application::CreateApplicationError) -> Self {
249 match err {
250 crate::operation::create_application::CreateApplicationError::ConflictException(inner) => Error::ConflictException(inner),
251 crate::operation::create_application::CreateApplicationError::ServiceQuotaExceededException(inner) => {
252 Error::ServiceQuotaExceededException(inner)
253 }
254 crate::operation::create_application::CreateApplicationError::UninitializedAccountException(inner) => {
255 Error::UninitializedAccountException(inner)
256 }
257 crate::operation::create_application::CreateApplicationError::Unhandled(inner) => Error::Unhandled(inner),
258 }
259 }
260}
261impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connector::CreateConnectorError, R>> for Error
262where
263 R: Send + Sync + std::fmt::Debug + 'static,
264{
265 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connector::CreateConnectorError, R>) -> Self {
266 match err {
267 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
268 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
269 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
270 source: err.into(),
271 }),
272 }
273 }
274}
275impl From<crate::operation::create_connector::CreateConnectorError> for Error {
276 fn from(err: crate::operation::create_connector::CreateConnectorError) -> Self {
277 match err {
278 crate::operation::create_connector::CreateConnectorError::UninitializedAccountException(inner) => {
279 Error::UninitializedAccountException(inner)
280 }
281 crate::operation::create_connector::CreateConnectorError::ValidationException(inner) => Error::ValidationException(inner),
282 crate::operation::create_connector::CreateConnectorError::Unhandled(inner) => Error::Unhandled(inner),
283 }
284 }
285}
286impl<R>
287 From<
288 ::aws_smithy_runtime_api::client::result::SdkError<
289 crate::operation::create_launch_configuration_template::CreateLaunchConfigurationTemplateError,
290 R,
291 >,
292 > for Error
293where
294 R: Send + Sync + std::fmt::Debug + 'static,
295{
296 fn from(
297 err: ::aws_smithy_runtime_api::client::result::SdkError<
298 crate::operation::create_launch_configuration_template::CreateLaunchConfigurationTemplateError,
299 R,
300 >,
301 ) -> Self {
302 match err {
303 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
304 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
305 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
306 source: err.into(),
307 }),
308 }
309 }
310}
311impl From<crate::operation::create_launch_configuration_template::CreateLaunchConfigurationTemplateError> for Error {
312 fn from(err: crate::operation::create_launch_configuration_template::CreateLaunchConfigurationTemplateError) -> Self {
313 match err {
314 crate::operation::create_launch_configuration_template::CreateLaunchConfigurationTemplateError::AccessDeniedException(inner) => {
315 Error::AccessDeniedException(inner)
316 }
317 crate::operation::create_launch_configuration_template::CreateLaunchConfigurationTemplateError::UninitializedAccountException(inner) => {
318 Error::UninitializedAccountException(inner)
319 }
320 crate::operation::create_launch_configuration_template::CreateLaunchConfigurationTemplateError::ValidationException(inner) => {
321 Error::ValidationException(inner)
322 }
323 crate::operation::create_launch_configuration_template::CreateLaunchConfigurationTemplateError::Unhandled(inner) => {
324 Error::Unhandled(inner)
325 }
326 }
327 }
328}
329impl<R>
330 From<
331 ::aws_smithy_runtime_api::client::result::SdkError<
332 crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionError,
333 R,
334 >,
335 > for Error
336where
337 R: Send + Sync + std::fmt::Debug + 'static,
338{
339 fn from(
340 err: ::aws_smithy_runtime_api::client::result::SdkError<
341 crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionError,
342 R,
343 >,
344 ) -> Self {
345 match err {
346 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
347 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
348 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
349 source: err.into(),
350 }),
351 }
352 }
353}
354impl From<crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionError> for Error {
355 fn from(err: crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionError) -> Self {
356 match err {
357 crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionError::ServiceQuotaExceededException(inner) => {
358 Error::ServiceQuotaExceededException(inner)
359 }
360 crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionError::ValidationException(inner) => {
361 Error::ValidationException(inner)
362 }
363 crate::operation::create_network_migration_definition::CreateNetworkMigrationDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
364 }
365 }
366}
367impl<R>
368 From<
369 ::aws_smithy_runtime_api::client::result::SdkError<
370 crate::operation::create_replication_configuration_template::CreateReplicationConfigurationTemplateError,
371 R,
372 >,
373 > for Error
374where
375 R: Send + Sync + std::fmt::Debug + 'static,
376{
377 fn from(
378 err: ::aws_smithy_runtime_api::client::result::SdkError<
379 crate::operation::create_replication_configuration_template::CreateReplicationConfigurationTemplateError,
380 R,
381 >,
382 ) -> Self {
383 match err {
384 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
385 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
386 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
387 source: err.into(),
388 }),
389 }
390 }
391}
392impl From<crate::operation::create_replication_configuration_template::CreateReplicationConfigurationTemplateError> for Error {
393 fn from(err: crate::operation::create_replication_configuration_template::CreateReplicationConfigurationTemplateError) -> Self {
394 match err {
395 crate::operation::create_replication_configuration_template::CreateReplicationConfigurationTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
396 crate::operation::create_replication_configuration_template::CreateReplicationConfigurationTemplateError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
397 crate::operation::create_replication_configuration_template::CreateReplicationConfigurationTemplateError::ValidationException(inner) => Error::ValidationException(inner),
398 crate::operation::create_replication_configuration_template::CreateReplicationConfigurationTemplateError::Unhandled(inner) => Error::Unhandled(inner),
399 }
400 }
401}
402impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_wave::CreateWaveError, R>> for Error
403where
404 R: Send + Sync + std::fmt::Debug + 'static,
405{
406 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_wave::CreateWaveError, R>) -> 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::create_wave::CreateWaveError> for Error {
417 fn from(err: crate::operation::create_wave::CreateWaveError) -> Self {
418 match err {
419 crate::operation::create_wave::CreateWaveError::ConflictException(inner) => Error::ConflictException(inner),
420 crate::operation::create_wave::CreateWaveError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
421 crate::operation::create_wave::CreateWaveError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
422 crate::operation::create_wave::CreateWaveError::Unhandled(inner) => Error::Unhandled(inner),
423 }
424 }
425}
426impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_application::DeleteApplicationError, R>> for Error
427where
428 R: Send + Sync + std::fmt::Debug + 'static,
429{
430 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_application::DeleteApplicationError, R>) -> Self {
431 match err {
432 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
433 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
434 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
435 source: err.into(),
436 }),
437 }
438 }
439}
440impl From<crate::operation::delete_application::DeleteApplicationError> for Error {
441 fn from(err: crate::operation::delete_application::DeleteApplicationError) -> Self {
442 match err {
443 crate::operation::delete_application::DeleteApplicationError::ConflictException(inner) => Error::ConflictException(inner),
444 crate::operation::delete_application::DeleteApplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
445 crate::operation::delete_application::DeleteApplicationError::UninitializedAccountException(inner) => {
446 Error::UninitializedAccountException(inner)
447 }
448 crate::operation::delete_application::DeleteApplicationError::Unhandled(inner) => Error::Unhandled(inner),
449 }
450 }
451}
452impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connector::DeleteConnectorError, R>> for Error
453where
454 R: Send + Sync + std::fmt::Debug + 'static,
455{
456 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connector::DeleteConnectorError, R>) -> Self {
457 match err {
458 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
459 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
460 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
461 source: err.into(),
462 }),
463 }
464 }
465}
466impl From<crate::operation::delete_connector::DeleteConnectorError> for Error {
467 fn from(err: crate::operation::delete_connector::DeleteConnectorError) -> Self {
468 match err {
469 crate::operation::delete_connector::DeleteConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
470 crate::operation::delete_connector::DeleteConnectorError::UninitializedAccountException(inner) => {
471 Error::UninitializedAccountException(inner)
472 }
473 crate::operation::delete_connector::DeleteConnectorError::ValidationException(inner) => Error::ValidationException(inner),
474 crate::operation::delete_connector::DeleteConnectorError::Unhandled(inner) => Error::Unhandled(inner),
475 }
476 }
477}
478impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_job::DeleteJobError, R>> for Error
479where
480 R: Send + Sync + std::fmt::Debug + 'static,
481{
482 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_job::DeleteJobError, R>) -> Self {
483 match err {
484 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
485 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
486 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
487 source: err.into(),
488 }),
489 }
490 }
491}
492impl From<crate::operation::delete_job::DeleteJobError> for Error {
493 fn from(err: crate::operation::delete_job::DeleteJobError) -> Self {
494 match err {
495 crate::operation::delete_job::DeleteJobError::ConflictException(inner) => Error::ConflictException(inner),
496 crate::operation::delete_job::DeleteJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
497 crate::operation::delete_job::DeleteJobError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
498 crate::operation::delete_job::DeleteJobError::Unhandled(inner) => Error::Unhandled(inner),
499 }
500 }
501}
502impl<R>
503 From<
504 ::aws_smithy_runtime_api::client::result::SdkError<
505 crate::operation::delete_launch_configuration_template::DeleteLaunchConfigurationTemplateError,
506 R,
507 >,
508 > for Error
509where
510 R: Send + Sync + std::fmt::Debug + 'static,
511{
512 fn from(
513 err: ::aws_smithy_runtime_api::client::result::SdkError<
514 crate::operation::delete_launch_configuration_template::DeleteLaunchConfigurationTemplateError,
515 R,
516 >,
517 ) -> Self {
518 match err {
519 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
520 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
521 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
522 source: err.into(),
523 }),
524 }
525 }
526}
527impl From<crate::operation::delete_launch_configuration_template::DeleteLaunchConfigurationTemplateError> for Error {
528 fn from(err: crate::operation::delete_launch_configuration_template::DeleteLaunchConfigurationTemplateError) -> Self {
529 match err {
530 crate::operation::delete_launch_configuration_template::DeleteLaunchConfigurationTemplateError::ConflictException(inner) => {
531 Error::ConflictException(inner)
532 }
533 crate::operation::delete_launch_configuration_template::DeleteLaunchConfigurationTemplateError::ResourceNotFoundException(inner) => {
534 Error::ResourceNotFoundException(inner)
535 }
536 crate::operation::delete_launch_configuration_template::DeleteLaunchConfigurationTemplateError::UninitializedAccountException(inner) => {
537 Error::UninitializedAccountException(inner)
538 }
539 crate::operation::delete_launch_configuration_template::DeleteLaunchConfigurationTemplateError::Unhandled(inner) => {
540 Error::Unhandled(inner)
541 }
542 }
543 }
544}
545impl<R>
546 From<
547 ::aws_smithy_runtime_api::client::result::SdkError<
548 crate::operation::delete_network_migration_definition::DeleteNetworkMigrationDefinitionError,
549 R,
550 >,
551 > for Error
552where
553 R: Send + Sync + std::fmt::Debug + 'static,
554{
555 fn from(
556 err: ::aws_smithy_runtime_api::client::result::SdkError<
557 crate::operation::delete_network_migration_definition::DeleteNetworkMigrationDefinitionError,
558 R,
559 >,
560 ) -> Self {
561 match err {
562 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
563 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
564 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
565 source: err.into(),
566 }),
567 }
568 }
569}
570impl From<crate::operation::delete_network_migration_definition::DeleteNetworkMigrationDefinitionError> for Error {
571 fn from(err: crate::operation::delete_network_migration_definition::DeleteNetworkMigrationDefinitionError) -> Self {
572 match err {
573 crate::operation::delete_network_migration_definition::DeleteNetworkMigrationDefinitionError::AccessDeniedException(inner) => {
574 Error::AccessDeniedException(inner)
575 }
576 crate::operation::delete_network_migration_definition::DeleteNetworkMigrationDefinitionError::ConflictException(inner) => {
577 Error::ConflictException(inner)
578 }
579 crate::operation::delete_network_migration_definition::DeleteNetworkMigrationDefinitionError::ResourceNotFoundException(inner) => {
580 Error::ResourceNotFoundException(inner)
581 }
582 crate::operation::delete_network_migration_definition::DeleteNetworkMigrationDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
583 }
584 }
585}
586impl<R>
587 From<
588 ::aws_smithy_runtime_api::client::result::SdkError<
589 crate::operation::delete_replication_configuration_template::DeleteReplicationConfigurationTemplateError,
590 R,
591 >,
592 > for Error
593where
594 R: Send + Sync + std::fmt::Debug + 'static,
595{
596 fn from(
597 err: ::aws_smithy_runtime_api::client::result::SdkError<
598 crate::operation::delete_replication_configuration_template::DeleteReplicationConfigurationTemplateError,
599 R,
600 >,
601 ) -> Self {
602 match err {
603 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
604 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
605 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
606 source: err.into(),
607 }),
608 }
609 }
610}
611impl From<crate::operation::delete_replication_configuration_template::DeleteReplicationConfigurationTemplateError> for Error {
612 fn from(err: crate::operation::delete_replication_configuration_template::DeleteReplicationConfigurationTemplateError) -> Self {
613 match err {
614 crate::operation::delete_replication_configuration_template::DeleteReplicationConfigurationTemplateError::ConflictException(inner) => Error::ConflictException(inner),
615 crate::operation::delete_replication_configuration_template::DeleteReplicationConfigurationTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
616 crate::operation::delete_replication_configuration_template::DeleteReplicationConfigurationTemplateError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
617 crate::operation::delete_replication_configuration_template::DeleteReplicationConfigurationTemplateError::Unhandled(inner) => Error::Unhandled(inner),
618 }
619 }
620}
621impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_source_server::DeleteSourceServerError, R>> for Error
622where
623 R: Send + Sync + std::fmt::Debug + 'static,
624{
625 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_source_server::DeleteSourceServerError, R>) -> Self {
626 match err {
627 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
628 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
629 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
630 source: err.into(),
631 }),
632 }
633 }
634}
635impl From<crate::operation::delete_source_server::DeleteSourceServerError> for Error {
636 fn from(err: crate::operation::delete_source_server::DeleteSourceServerError) -> Self {
637 match err {
638 crate::operation::delete_source_server::DeleteSourceServerError::ConflictException(inner) => Error::ConflictException(inner),
639 crate::operation::delete_source_server::DeleteSourceServerError::ResourceNotFoundException(inner) => {
640 Error::ResourceNotFoundException(inner)
641 }
642 crate::operation::delete_source_server::DeleteSourceServerError::UninitializedAccountException(inner) => {
643 Error::UninitializedAccountException(inner)
644 }
645 crate::operation::delete_source_server::DeleteSourceServerError::Unhandled(inner) => Error::Unhandled(inner),
646 }
647 }
648}
649impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vcenter_client::DeleteVcenterClientError, R>> for Error
650where
651 R: Send + Sync + std::fmt::Debug + 'static,
652{
653 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vcenter_client::DeleteVcenterClientError, R>) -> Self {
654 match err {
655 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
656 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
657 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
658 source: err.into(),
659 }),
660 }
661 }
662}
663impl From<crate::operation::delete_vcenter_client::DeleteVcenterClientError> for Error {
664 fn from(err: crate::operation::delete_vcenter_client::DeleteVcenterClientError) -> Self {
665 match err {
666 crate::operation::delete_vcenter_client::DeleteVcenterClientError::ResourceNotFoundException(inner) => {
667 Error::ResourceNotFoundException(inner)
668 }
669 crate::operation::delete_vcenter_client::DeleteVcenterClientError::UninitializedAccountException(inner) => {
670 Error::UninitializedAccountException(inner)
671 }
672 crate::operation::delete_vcenter_client::DeleteVcenterClientError::ValidationException(inner) => Error::ValidationException(inner),
673 crate::operation::delete_vcenter_client::DeleteVcenterClientError::Unhandled(inner) => Error::Unhandled(inner),
674 }
675 }
676}
677impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_wave::DeleteWaveError, R>> for Error
678where
679 R: Send + Sync + std::fmt::Debug + 'static,
680{
681 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_wave::DeleteWaveError, R>) -> Self {
682 match err {
683 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
684 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
685 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
686 source: err.into(),
687 }),
688 }
689 }
690}
691impl From<crate::operation::delete_wave::DeleteWaveError> for Error {
692 fn from(err: crate::operation::delete_wave::DeleteWaveError) -> Self {
693 match err {
694 crate::operation::delete_wave::DeleteWaveError::ConflictException(inner) => Error::ConflictException(inner),
695 crate::operation::delete_wave::DeleteWaveError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
696 crate::operation::delete_wave::DeleteWaveError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
697 crate::operation::delete_wave::DeleteWaveError::Unhandled(inner) => Error::Unhandled(inner),
698 }
699 }
700}
701impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_job_log_items::DescribeJobLogItemsError, R>> for Error
702where
703 R: Send + Sync + std::fmt::Debug + 'static,
704{
705 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_job_log_items::DescribeJobLogItemsError, R>) -> Self {
706 match err {
707 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
708 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
709 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
710 source: err.into(),
711 }),
712 }
713 }
714}
715impl From<crate::operation::describe_job_log_items::DescribeJobLogItemsError> for Error {
716 fn from(err: crate::operation::describe_job_log_items::DescribeJobLogItemsError) -> Self {
717 match err {
718 crate::operation::describe_job_log_items::DescribeJobLogItemsError::UninitializedAccountException(inner) => {
719 Error::UninitializedAccountException(inner)
720 }
721 crate::operation::describe_job_log_items::DescribeJobLogItemsError::ValidationException(inner) => Error::ValidationException(inner),
722 crate::operation::describe_job_log_items::DescribeJobLogItemsError::Unhandled(inner) => Error::Unhandled(inner),
723 }
724 }
725}
726impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_jobs::DescribeJobsError, R>> for Error
727where
728 R: Send + Sync + std::fmt::Debug + 'static,
729{
730 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_jobs::DescribeJobsError, R>) -> Self {
731 match err {
732 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
733 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
734 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
735 source: err.into(),
736 }),
737 }
738 }
739}
740impl From<crate::operation::describe_jobs::DescribeJobsError> for Error {
741 fn from(err: crate::operation::describe_jobs::DescribeJobsError) -> Self {
742 match err {
743 crate::operation::describe_jobs::DescribeJobsError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
744 crate::operation::describe_jobs::DescribeJobsError::ValidationException(inner) => Error::ValidationException(inner),
745 crate::operation::describe_jobs::DescribeJobsError::Unhandled(inner) => Error::Unhandled(inner),
746 }
747 }
748}
749impl<R>
750 From<
751 ::aws_smithy_runtime_api::client::result::SdkError<
752 crate::operation::describe_launch_configuration_templates::DescribeLaunchConfigurationTemplatesError,
753 R,
754 >,
755 > for Error
756where
757 R: Send + Sync + std::fmt::Debug + 'static,
758{
759 fn from(
760 err: ::aws_smithy_runtime_api::client::result::SdkError<
761 crate::operation::describe_launch_configuration_templates::DescribeLaunchConfigurationTemplatesError,
762 R,
763 >,
764 ) -> Self {
765 match err {
766 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
767 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
768 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
769 source: err.into(),
770 }),
771 }
772 }
773}
774impl From<crate::operation::describe_launch_configuration_templates::DescribeLaunchConfigurationTemplatesError> for Error {
775 fn from(err: crate::operation::describe_launch_configuration_templates::DescribeLaunchConfigurationTemplatesError) -> Self {
776 match err {
777 crate::operation::describe_launch_configuration_templates::DescribeLaunchConfigurationTemplatesError::ResourceNotFoundException(
778 inner,
779 ) => Error::ResourceNotFoundException(inner),
780 crate::operation::describe_launch_configuration_templates::DescribeLaunchConfigurationTemplatesError::UninitializedAccountException(
781 inner,
782 ) => Error::UninitializedAccountException(inner),
783 crate::operation::describe_launch_configuration_templates::DescribeLaunchConfigurationTemplatesError::ValidationException(inner) => {
784 Error::ValidationException(inner)
785 }
786 crate::operation::describe_launch_configuration_templates::DescribeLaunchConfigurationTemplatesError::Unhandled(inner) => {
787 Error::Unhandled(inner)
788 }
789 }
790 }
791}
792impl<R>
793 From<
794 ::aws_smithy_runtime_api::client::result::SdkError<
795 crate::operation::describe_replication_configuration_templates::DescribeReplicationConfigurationTemplatesError,
796 R,
797 >,
798 > for Error
799where
800 R: Send + Sync + std::fmt::Debug + 'static,
801{
802 fn from(
803 err: ::aws_smithy_runtime_api::client::result::SdkError<
804 crate::operation::describe_replication_configuration_templates::DescribeReplicationConfigurationTemplatesError,
805 R,
806 >,
807 ) -> Self {
808 match err {
809 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
810 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
811 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
812 source: err.into(),
813 }),
814 }
815 }
816}
817impl From<crate::operation::describe_replication_configuration_templates::DescribeReplicationConfigurationTemplatesError> for Error {
818 fn from(err: crate::operation::describe_replication_configuration_templates::DescribeReplicationConfigurationTemplatesError) -> Self {
819 match err {
820 crate::operation::describe_replication_configuration_templates::DescribeReplicationConfigurationTemplatesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
821 crate::operation::describe_replication_configuration_templates::DescribeReplicationConfigurationTemplatesError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
822 crate::operation::describe_replication_configuration_templates::DescribeReplicationConfigurationTemplatesError::ValidationException(inner) => Error::ValidationException(inner),
823 crate::operation::describe_replication_configuration_templates::DescribeReplicationConfigurationTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
824 }
825 }
826}
827impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_source_servers::DescribeSourceServersError, R>> for Error
828where
829 R: Send + Sync + std::fmt::Debug + 'static,
830{
831 fn from(
832 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_source_servers::DescribeSourceServersError, R>,
833 ) -> Self {
834 match err {
835 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
836 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
837 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
838 source: err.into(),
839 }),
840 }
841 }
842}
843impl From<crate::operation::describe_source_servers::DescribeSourceServersError> for Error {
844 fn from(err: crate::operation::describe_source_servers::DescribeSourceServersError) -> Self {
845 match err {
846 crate::operation::describe_source_servers::DescribeSourceServersError::UninitializedAccountException(inner) => {
847 Error::UninitializedAccountException(inner)
848 }
849 crate::operation::describe_source_servers::DescribeSourceServersError::ValidationException(inner) => Error::ValidationException(inner),
850 crate::operation::describe_source_servers::DescribeSourceServersError::Unhandled(inner) => Error::Unhandled(inner),
851 }
852 }
853}
854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vcenter_clients::DescribeVcenterClientsError, R>> for Error
855where
856 R: Send + Sync + std::fmt::Debug + 'static,
857{
858 fn from(
859 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_vcenter_clients::DescribeVcenterClientsError, R>,
860 ) -> Self {
861 match err {
862 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
863 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
864 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
865 source: err.into(),
866 }),
867 }
868 }
869}
870impl From<crate::operation::describe_vcenter_clients::DescribeVcenterClientsError> for Error {
871 fn from(err: crate::operation::describe_vcenter_clients::DescribeVcenterClientsError) -> Self {
872 match err {
873 crate::operation::describe_vcenter_clients::DescribeVcenterClientsError::ResourceNotFoundException(inner) => {
874 Error::ResourceNotFoundException(inner)
875 }
876 crate::operation::describe_vcenter_clients::DescribeVcenterClientsError::UninitializedAccountException(inner) => {
877 Error::UninitializedAccountException(inner)
878 }
879 crate::operation::describe_vcenter_clients::DescribeVcenterClientsError::ValidationException(inner) => Error::ValidationException(inner),
880 crate::operation::describe_vcenter_clients::DescribeVcenterClientsError::Unhandled(inner) => Error::Unhandled(inner),
881 }
882 }
883}
884impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_applications::DisassociateApplicationsError, R>>
885 for Error
886where
887 R: Send + Sync + std::fmt::Debug + 'static,
888{
889 fn from(
890 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_applications::DisassociateApplicationsError, R>,
891 ) -> Self {
892 match err {
893 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
894 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
895 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
896 source: err.into(),
897 }),
898 }
899 }
900}
901impl From<crate::operation::disassociate_applications::DisassociateApplicationsError> for Error {
902 fn from(err: crate::operation::disassociate_applications::DisassociateApplicationsError) -> Self {
903 match err {
904 crate::operation::disassociate_applications::DisassociateApplicationsError::ConflictException(inner) => Error::ConflictException(inner),
905 crate::operation::disassociate_applications::DisassociateApplicationsError::ResourceNotFoundException(inner) => {
906 Error::ResourceNotFoundException(inner)
907 }
908 crate::operation::disassociate_applications::DisassociateApplicationsError::UninitializedAccountException(inner) => {
909 Error::UninitializedAccountException(inner)
910 }
911 crate::operation::disassociate_applications::DisassociateApplicationsError::Unhandled(inner) => Error::Unhandled(inner),
912 }
913 }
914}
915impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_source_servers::DisassociateSourceServersError, R>>
916 for Error
917where
918 R: Send + Sync + std::fmt::Debug + 'static,
919{
920 fn from(
921 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_source_servers::DisassociateSourceServersError, R>,
922 ) -> Self {
923 match err {
924 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
925 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
926 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
927 source: err.into(),
928 }),
929 }
930 }
931}
932impl From<crate::operation::disassociate_source_servers::DisassociateSourceServersError> for Error {
933 fn from(err: crate::operation::disassociate_source_servers::DisassociateSourceServersError) -> Self {
934 match err {
935 crate::operation::disassociate_source_servers::DisassociateSourceServersError::ConflictException(inner) => {
936 Error::ConflictException(inner)
937 }
938 crate::operation::disassociate_source_servers::DisassociateSourceServersError::ResourceNotFoundException(inner) => {
939 Error::ResourceNotFoundException(inner)
940 }
941 crate::operation::disassociate_source_servers::DisassociateSourceServersError::UninitializedAccountException(inner) => {
942 Error::UninitializedAccountException(inner)
943 }
944 crate::operation::disassociate_source_servers::DisassociateSourceServersError::Unhandled(inner) => Error::Unhandled(inner),
945 }
946 }
947}
948impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disconnect_from_service::DisconnectFromServiceError, R>> for Error
949where
950 R: Send + Sync + std::fmt::Debug + 'static,
951{
952 fn from(
953 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disconnect_from_service::DisconnectFromServiceError, R>,
954 ) -> Self {
955 match err {
956 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
957 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
958 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
959 source: err.into(),
960 }),
961 }
962 }
963}
964impl From<crate::operation::disconnect_from_service::DisconnectFromServiceError> for Error {
965 fn from(err: crate::operation::disconnect_from_service::DisconnectFromServiceError) -> Self {
966 match err {
967 crate::operation::disconnect_from_service::DisconnectFromServiceError::ConflictException(inner) => Error::ConflictException(inner),
968 crate::operation::disconnect_from_service::DisconnectFromServiceError::ResourceNotFoundException(inner) => {
969 Error::ResourceNotFoundException(inner)
970 }
971 crate::operation::disconnect_from_service::DisconnectFromServiceError::UninitializedAccountException(inner) => {
972 Error::UninitializedAccountException(inner)
973 }
974 crate::operation::disconnect_from_service::DisconnectFromServiceError::Unhandled(inner) => Error::Unhandled(inner),
975 }
976 }
977}
978impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::finalize_cutover::FinalizeCutoverError, R>> for Error
979where
980 R: Send + Sync + std::fmt::Debug + 'static,
981{
982 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::finalize_cutover::FinalizeCutoverError, R>) -> Self {
983 match err {
984 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
985 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
986 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
987 source: err.into(),
988 }),
989 }
990 }
991}
992impl From<crate::operation::finalize_cutover::FinalizeCutoverError> for Error {
993 fn from(err: crate::operation::finalize_cutover::FinalizeCutoverError) -> Self {
994 match err {
995 crate::operation::finalize_cutover::FinalizeCutoverError::ConflictException(inner) => Error::ConflictException(inner),
996 crate::operation::finalize_cutover::FinalizeCutoverError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
997 crate::operation::finalize_cutover::FinalizeCutoverError::UninitializedAccountException(inner) => {
998 Error::UninitializedAccountException(inner)
999 }
1000 crate::operation::finalize_cutover::FinalizeCutoverError::ValidationException(inner) => Error::ValidationException(inner),
1001 crate::operation::finalize_cutover::FinalizeCutoverError::Unhandled(inner) => Error::Unhandled(inner),
1002 }
1003 }
1004}
1005impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch_configuration::GetLaunchConfigurationError, R>> for Error
1006where
1007 R: Send + Sync + std::fmt::Debug + 'static,
1008{
1009 fn from(
1010 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_launch_configuration::GetLaunchConfigurationError, R>,
1011 ) -> Self {
1012 match err {
1013 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1014 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1015 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1016 source: err.into(),
1017 }),
1018 }
1019 }
1020}
1021impl From<crate::operation::get_launch_configuration::GetLaunchConfigurationError> for Error {
1022 fn from(err: crate::operation::get_launch_configuration::GetLaunchConfigurationError) -> Self {
1023 match err {
1024 crate::operation::get_launch_configuration::GetLaunchConfigurationError::ResourceNotFoundException(inner) => {
1025 Error::ResourceNotFoundException(inner)
1026 }
1027 crate::operation::get_launch_configuration::GetLaunchConfigurationError::UninitializedAccountException(inner) => {
1028 Error::UninitializedAccountException(inner)
1029 }
1030 crate::operation::get_launch_configuration::GetLaunchConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1031 }
1032 }
1033}
1034impl<R>
1035 From<
1036 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_migration_definition::GetNetworkMigrationDefinitionError, R>,
1037 > for Error
1038where
1039 R: Send + Sync + std::fmt::Debug + 'static,
1040{
1041 fn from(
1042 err: ::aws_smithy_runtime_api::client::result::SdkError<
1043 crate::operation::get_network_migration_definition::GetNetworkMigrationDefinitionError,
1044 R,
1045 >,
1046 ) -> Self {
1047 match err {
1048 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1049 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1050 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1051 source: err.into(),
1052 }),
1053 }
1054 }
1055}
1056impl From<crate::operation::get_network_migration_definition::GetNetworkMigrationDefinitionError> for Error {
1057 fn from(err: crate::operation::get_network_migration_definition::GetNetworkMigrationDefinitionError) -> Self {
1058 match err {
1059 crate::operation::get_network_migration_definition::GetNetworkMigrationDefinitionError::AccessDeniedException(inner) => {
1060 Error::AccessDeniedException(inner)
1061 }
1062 crate::operation::get_network_migration_definition::GetNetworkMigrationDefinitionError::ResourceNotFoundException(inner) => {
1063 Error::ResourceNotFoundException(inner)
1064 }
1065 crate::operation::get_network_migration_definition::GetNetworkMigrationDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1066 }
1067 }
1068}
1069impl<R>
1070 From<
1071 ::aws_smithy_runtime_api::client::result::SdkError<
1072 crate::operation::get_network_migration_mapper_segment_construct::GetNetworkMigrationMapperSegmentConstructError,
1073 R,
1074 >,
1075 > for Error
1076where
1077 R: Send + Sync + std::fmt::Debug + 'static,
1078{
1079 fn from(
1080 err: ::aws_smithy_runtime_api::client::result::SdkError<
1081 crate::operation::get_network_migration_mapper_segment_construct::GetNetworkMigrationMapperSegmentConstructError,
1082 R,
1083 >,
1084 ) -> Self {
1085 match err {
1086 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1087 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1088 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1089 source: err.into(),
1090 }),
1091 }
1092 }
1093}
1094impl From<crate::operation::get_network_migration_mapper_segment_construct::GetNetworkMigrationMapperSegmentConstructError> for Error {
1095 fn from(err: crate::operation::get_network_migration_mapper_segment_construct::GetNetworkMigrationMapperSegmentConstructError) -> Self {
1096 match err {
1097 crate::operation::get_network_migration_mapper_segment_construct::GetNetworkMigrationMapperSegmentConstructError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1098 crate::operation::get_network_migration_mapper_segment_construct::GetNetworkMigrationMapperSegmentConstructError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1099 crate::operation::get_network_migration_mapper_segment_construct::GetNetworkMigrationMapperSegmentConstructError::ValidationException(inner) => Error::ValidationException(inner),
1100 crate::operation::get_network_migration_mapper_segment_construct::GetNetworkMigrationMapperSegmentConstructError::Unhandled(inner) => Error::Unhandled(inner),
1101 }
1102 }
1103}
1104impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_replication_configuration::GetReplicationConfigurationError, R>>
1105 for Error
1106where
1107 R: Send + Sync + std::fmt::Debug + 'static,
1108{
1109 fn from(
1110 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_replication_configuration::GetReplicationConfigurationError, R>,
1111 ) -> Self {
1112 match err {
1113 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1114 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1115 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1116 source: err.into(),
1117 }),
1118 }
1119 }
1120}
1121impl From<crate::operation::get_replication_configuration::GetReplicationConfigurationError> for Error {
1122 fn from(err: crate::operation::get_replication_configuration::GetReplicationConfigurationError) -> Self {
1123 match err {
1124 crate::operation::get_replication_configuration::GetReplicationConfigurationError::ResourceNotFoundException(inner) => {
1125 Error::ResourceNotFoundException(inner)
1126 }
1127 crate::operation::get_replication_configuration::GetReplicationConfigurationError::UninitializedAccountException(inner) => {
1128 Error::UninitializedAccountException(inner)
1129 }
1130 crate::operation::get_replication_configuration::GetReplicationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1131 }
1132 }
1133}
1134impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::initialize_service::InitializeServiceError, R>> for Error
1135where
1136 R: Send + Sync + std::fmt::Debug + 'static,
1137{
1138 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::initialize_service::InitializeServiceError, R>) -> Self {
1139 match err {
1140 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1141 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1142 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1143 source: err.into(),
1144 }),
1145 }
1146 }
1147}
1148impl From<crate::operation::initialize_service::InitializeServiceError> for Error {
1149 fn from(err: crate::operation::initialize_service::InitializeServiceError) -> Self {
1150 match err {
1151 crate::operation::initialize_service::InitializeServiceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1152 crate::operation::initialize_service::InitializeServiceError::ValidationException(inner) => Error::ValidationException(inner),
1153 crate::operation::initialize_service::InitializeServiceError::Unhandled(inner) => Error::Unhandled(inner),
1154 }
1155 }
1156}
1157impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_applications::ListApplicationsError, R>> for Error
1158where
1159 R: Send + Sync + std::fmt::Debug + 'static,
1160{
1161 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_applications::ListApplicationsError, R>) -> Self {
1162 match err {
1163 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1164 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1165 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1166 source: err.into(),
1167 }),
1168 }
1169 }
1170}
1171impl From<crate::operation::list_applications::ListApplicationsError> for Error {
1172 fn from(err: crate::operation::list_applications::ListApplicationsError) -> Self {
1173 match err {
1174 crate::operation::list_applications::ListApplicationsError::UninitializedAccountException(inner) => {
1175 Error::UninitializedAccountException(inner)
1176 }
1177 crate::operation::list_applications::ListApplicationsError::Unhandled(inner) => Error::Unhandled(inner),
1178 }
1179 }
1180}
1181impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connectors::ListConnectorsError, R>> for Error
1182where
1183 R: Send + Sync + std::fmt::Debug + 'static,
1184{
1185 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connectors::ListConnectorsError, R>) -> Self {
1186 match err {
1187 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1188 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1189 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1190 source: err.into(),
1191 }),
1192 }
1193 }
1194}
1195impl From<crate::operation::list_connectors::ListConnectorsError> for Error {
1196 fn from(err: crate::operation::list_connectors::ListConnectorsError) -> Self {
1197 match err {
1198 crate::operation::list_connectors::ListConnectorsError::UninitializedAccountException(inner) => {
1199 Error::UninitializedAccountException(inner)
1200 }
1201 crate::operation::list_connectors::ListConnectorsError::ValidationException(inner) => Error::ValidationException(inner),
1202 crate::operation::list_connectors::ListConnectorsError::Unhandled(inner) => Error::Unhandled(inner),
1203 }
1204 }
1205}
1206impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_export_errors::ListExportErrorsError, R>> for Error
1207where
1208 R: Send + Sync + std::fmt::Debug + 'static,
1209{
1210 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_export_errors::ListExportErrorsError, R>) -> Self {
1211 match err {
1212 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1213 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1214 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1215 source: err.into(),
1216 }),
1217 }
1218 }
1219}
1220impl From<crate::operation::list_export_errors::ListExportErrorsError> for Error {
1221 fn from(err: crate::operation::list_export_errors::ListExportErrorsError) -> Self {
1222 match err {
1223 crate::operation::list_export_errors::ListExportErrorsError::UninitializedAccountException(inner) => {
1224 Error::UninitializedAccountException(inner)
1225 }
1226 crate::operation::list_export_errors::ListExportErrorsError::ValidationException(inner) => Error::ValidationException(inner),
1227 crate::operation::list_export_errors::ListExportErrorsError::Unhandled(inner) => Error::Unhandled(inner),
1228 }
1229 }
1230}
1231impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_exports::ListExportsError, R>> for Error
1232where
1233 R: Send + Sync + std::fmt::Debug + 'static,
1234{
1235 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_exports::ListExportsError, R>) -> Self {
1236 match err {
1237 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1238 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1239 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1240 source: err.into(),
1241 }),
1242 }
1243 }
1244}
1245impl From<crate::operation::list_exports::ListExportsError> for Error {
1246 fn from(err: crate::operation::list_exports::ListExportsError) -> Self {
1247 match err {
1248 crate::operation::list_exports::ListExportsError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
1249 crate::operation::list_exports::ListExportsError::Unhandled(inner) => Error::Unhandled(inner),
1250 }
1251 }
1252}
1253impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_import_errors::ListImportErrorsError, R>> for Error
1254where
1255 R: Send + Sync + std::fmt::Debug + 'static,
1256{
1257 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_import_errors::ListImportErrorsError, R>) -> Self {
1258 match err {
1259 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1260 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1261 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1262 source: err.into(),
1263 }),
1264 }
1265 }
1266}
1267impl From<crate::operation::list_import_errors::ListImportErrorsError> for Error {
1268 fn from(err: crate::operation::list_import_errors::ListImportErrorsError) -> Self {
1269 match err {
1270 crate::operation::list_import_errors::ListImportErrorsError::UninitializedAccountException(inner) => {
1271 Error::UninitializedAccountException(inner)
1272 }
1273 crate::operation::list_import_errors::ListImportErrorsError::ValidationException(inner) => Error::ValidationException(inner),
1274 crate::operation::list_import_errors::ListImportErrorsError::Unhandled(inner) => Error::Unhandled(inner),
1275 }
1276 }
1277}
1278impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_import_file_enrichments::ListImportFileEnrichmentsError, R>>
1279 for Error
1280where
1281 R: Send + Sync + std::fmt::Debug + 'static,
1282{
1283 fn from(
1284 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_import_file_enrichments::ListImportFileEnrichmentsError, R>,
1285 ) -> Self {
1286 match err {
1287 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1288 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1289 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1290 source: err.into(),
1291 }),
1292 }
1293 }
1294}
1295impl From<crate::operation::list_import_file_enrichments::ListImportFileEnrichmentsError> for Error {
1296 fn from(err: crate::operation::list_import_file_enrichments::ListImportFileEnrichmentsError) -> Self {
1297 match err {
1298 crate::operation::list_import_file_enrichments::ListImportFileEnrichmentsError::ValidationException(inner) => {
1299 Error::ValidationException(inner)
1300 }
1301 crate::operation::list_import_file_enrichments::ListImportFileEnrichmentsError::Unhandled(inner) => Error::Unhandled(inner),
1302 }
1303 }
1304}
1305impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_imports::ListImportsError, R>> for Error
1306where
1307 R: Send + Sync + std::fmt::Debug + 'static,
1308{
1309 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_imports::ListImportsError, R>) -> Self {
1310 match err {
1311 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1312 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1313 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1314 source: err.into(),
1315 }),
1316 }
1317 }
1318}
1319impl From<crate::operation::list_imports::ListImportsError> for Error {
1320 fn from(err: crate::operation::list_imports::ListImportsError) -> Self {
1321 match err {
1322 crate::operation::list_imports::ListImportsError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
1323 crate::operation::list_imports::ListImportsError::ValidationException(inner) => Error::ValidationException(inner),
1324 crate::operation::list_imports::ListImportsError::Unhandled(inner) => Error::Unhandled(inner),
1325 }
1326 }
1327}
1328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_accounts::ListManagedAccountsError, R>> for Error
1329where
1330 R: Send + Sync + std::fmt::Debug + 'static,
1331{
1332 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_accounts::ListManagedAccountsError, R>) -> Self {
1333 match err {
1334 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1335 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1336 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1337 source: err.into(),
1338 }),
1339 }
1340 }
1341}
1342impl From<crate::operation::list_managed_accounts::ListManagedAccountsError> for Error {
1343 fn from(err: crate::operation::list_managed_accounts::ListManagedAccountsError) -> Self {
1344 match err {
1345 crate::operation::list_managed_accounts::ListManagedAccountsError::UninitializedAccountException(inner) => {
1346 Error::UninitializedAccountException(inner)
1347 }
1348 crate::operation::list_managed_accounts::ListManagedAccountsError::ValidationException(inner) => Error::ValidationException(inner),
1349 crate::operation::list_managed_accounts::ListManagedAccountsError::Unhandled(inner) => Error::Unhandled(inner),
1350 }
1351 }
1352}
1353impl<R>
1354 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_network_migration_analyses::ListNetworkMigrationAnalysesError, R>>
1355 for Error
1356where
1357 R: Send + Sync + std::fmt::Debug + 'static,
1358{
1359 fn from(
1360 err: ::aws_smithy_runtime_api::client::result::SdkError<
1361 crate::operation::list_network_migration_analyses::ListNetworkMigrationAnalysesError,
1362 R,
1363 >,
1364 ) -> Self {
1365 match err {
1366 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1367 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1368 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1369 source: err.into(),
1370 }),
1371 }
1372 }
1373}
1374impl From<crate::operation::list_network_migration_analyses::ListNetworkMigrationAnalysesError> for Error {
1375 fn from(err: crate::operation::list_network_migration_analyses::ListNetworkMigrationAnalysesError) -> Self {
1376 match err {
1377 crate::operation::list_network_migration_analyses::ListNetworkMigrationAnalysesError::AccessDeniedException(inner) => {
1378 Error::AccessDeniedException(inner)
1379 }
1380 crate::operation::list_network_migration_analyses::ListNetworkMigrationAnalysesError::ResourceNotFoundException(inner) => {
1381 Error::ResourceNotFoundException(inner)
1382 }
1383 crate::operation::list_network_migration_analyses::ListNetworkMigrationAnalysesError::ThrottlingException(inner) => {
1384 Error::ThrottlingException(inner)
1385 }
1386 crate::operation::list_network_migration_analyses::ListNetworkMigrationAnalysesError::ValidationException(inner) => {
1387 Error::ValidationException(inner)
1388 }
1389 crate::operation::list_network_migration_analyses::ListNetworkMigrationAnalysesError::Unhandled(inner) => Error::Unhandled(inner),
1390 }
1391 }
1392}
1393impl<R>
1394 From<
1395 ::aws_smithy_runtime_api::client::result::SdkError<
1396 crate::operation::list_network_migration_analysis_results::ListNetworkMigrationAnalysisResultsError,
1397 R,
1398 >,
1399 > for Error
1400where
1401 R: Send + Sync + std::fmt::Debug + 'static,
1402{
1403 fn from(
1404 err: ::aws_smithy_runtime_api::client::result::SdkError<
1405 crate::operation::list_network_migration_analysis_results::ListNetworkMigrationAnalysisResultsError,
1406 R,
1407 >,
1408 ) -> Self {
1409 match err {
1410 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1411 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1412 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1413 source: err.into(),
1414 }),
1415 }
1416 }
1417}
1418impl From<crate::operation::list_network_migration_analysis_results::ListNetworkMigrationAnalysisResultsError> for Error {
1419 fn from(err: crate::operation::list_network_migration_analysis_results::ListNetworkMigrationAnalysisResultsError) -> Self {
1420 match err {
1421 crate::operation::list_network_migration_analysis_results::ListNetworkMigrationAnalysisResultsError::AccessDeniedException(inner) => {
1422 Error::AccessDeniedException(inner)
1423 }
1424 crate::operation::list_network_migration_analysis_results::ListNetworkMigrationAnalysisResultsError::ResourceNotFoundException(inner) => {
1425 Error::ResourceNotFoundException(inner)
1426 }
1427 crate::operation::list_network_migration_analysis_results::ListNetworkMigrationAnalysisResultsError::ThrottlingException(inner) => {
1428 Error::ThrottlingException(inner)
1429 }
1430 crate::operation::list_network_migration_analysis_results::ListNetworkMigrationAnalysisResultsError::ValidationException(inner) => {
1431 Error::ValidationException(inner)
1432 }
1433 crate::operation::list_network_migration_analysis_results::ListNetworkMigrationAnalysisResultsError::Unhandled(inner) => {
1434 Error::Unhandled(inner)
1435 }
1436 }
1437 }
1438}
1439impl<R>
1440 From<
1441 ::aws_smithy_runtime_api::client::result::SdkError<
1442 crate::operation::list_network_migration_code_generations::ListNetworkMigrationCodeGenerationsError,
1443 R,
1444 >,
1445 > for Error
1446where
1447 R: Send + Sync + std::fmt::Debug + 'static,
1448{
1449 fn from(
1450 err: ::aws_smithy_runtime_api::client::result::SdkError<
1451 crate::operation::list_network_migration_code_generations::ListNetworkMigrationCodeGenerationsError,
1452 R,
1453 >,
1454 ) -> Self {
1455 match err {
1456 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1457 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1458 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1459 source: err.into(),
1460 }),
1461 }
1462 }
1463}
1464impl From<crate::operation::list_network_migration_code_generations::ListNetworkMigrationCodeGenerationsError> for Error {
1465 fn from(err: crate::operation::list_network_migration_code_generations::ListNetworkMigrationCodeGenerationsError) -> Self {
1466 match err {
1467 crate::operation::list_network_migration_code_generations::ListNetworkMigrationCodeGenerationsError::AccessDeniedException(inner) => {
1468 Error::AccessDeniedException(inner)
1469 }
1470 crate::operation::list_network_migration_code_generations::ListNetworkMigrationCodeGenerationsError::ResourceNotFoundException(inner) => {
1471 Error::ResourceNotFoundException(inner)
1472 }
1473 crate::operation::list_network_migration_code_generations::ListNetworkMigrationCodeGenerationsError::ThrottlingException(inner) => {
1474 Error::ThrottlingException(inner)
1475 }
1476 crate::operation::list_network_migration_code_generations::ListNetworkMigrationCodeGenerationsError::ValidationException(inner) => {
1477 Error::ValidationException(inner)
1478 }
1479 crate::operation::list_network_migration_code_generations::ListNetworkMigrationCodeGenerationsError::Unhandled(inner) => {
1480 Error::Unhandled(inner)
1481 }
1482 }
1483 }
1484}
1485impl<R>
1486 From<
1487 ::aws_smithy_runtime_api::client::result::SdkError<
1488 crate::operation::list_network_migration_code_generation_segments::ListNetworkMigrationCodeGenerationSegmentsError,
1489 R,
1490 >,
1491 > for Error
1492where
1493 R: Send + Sync + std::fmt::Debug + 'static,
1494{
1495 fn from(
1496 err: ::aws_smithy_runtime_api::client::result::SdkError<
1497 crate::operation::list_network_migration_code_generation_segments::ListNetworkMigrationCodeGenerationSegmentsError,
1498 R,
1499 >,
1500 ) -> Self {
1501 match err {
1502 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1503 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1504 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1505 source: err.into(),
1506 }),
1507 }
1508 }
1509}
1510impl From<crate::operation::list_network_migration_code_generation_segments::ListNetworkMigrationCodeGenerationSegmentsError> for Error {
1511 fn from(err: crate::operation::list_network_migration_code_generation_segments::ListNetworkMigrationCodeGenerationSegmentsError) -> Self {
1512 match err {
1513 crate::operation::list_network_migration_code_generation_segments::ListNetworkMigrationCodeGenerationSegmentsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1514 crate::operation::list_network_migration_code_generation_segments::ListNetworkMigrationCodeGenerationSegmentsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1515 crate::operation::list_network_migration_code_generation_segments::ListNetworkMigrationCodeGenerationSegmentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1516 crate::operation::list_network_migration_code_generation_segments::ListNetworkMigrationCodeGenerationSegmentsError::ValidationException(inner) => Error::ValidationException(inner),
1517 crate::operation::list_network_migration_code_generation_segments::ListNetworkMigrationCodeGenerationSegmentsError::Unhandled(inner) => Error::Unhandled(inner),
1518 }
1519 }
1520}
1521impl<R>
1522 From<
1523 ::aws_smithy_runtime_api::client::result::SdkError<
1524 crate::operation::list_network_migration_definitions::ListNetworkMigrationDefinitionsError,
1525 R,
1526 >,
1527 > for Error
1528where
1529 R: Send + Sync + std::fmt::Debug + 'static,
1530{
1531 fn from(
1532 err: ::aws_smithy_runtime_api::client::result::SdkError<
1533 crate::operation::list_network_migration_definitions::ListNetworkMigrationDefinitionsError,
1534 R,
1535 >,
1536 ) -> Self {
1537 match err {
1538 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1539 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1540 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1541 source: err.into(),
1542 }),
1543 }
1544 }
1545}
1546impl From<crate::operation::list_network_migration_definitions::ListNetworkMigrationDefinitionsError> for Error {
1547 fn from(err: crate::operation::list_network_migration_definitions::ListNetworkMigrationDefinitionsError) -> Self {
1548 match err {
1549 crate::operation::list_network_migration_definitions::ListNetworkMigrationDefinitionsError::AccessDeniedException(inner) => {
1550 Error::AccessDeniedException(inner)
1551 }
1552 crate::operation::list_network_migration_definitions::ListNetworkMigrationDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
1553 }
1554 }
1555}
1556impl<R>
1557 From<
1558 ::aws_smithy_runtime_api::client::result::SdkError<
1559 crate::operation::list_network_migration_deployed_stacks::ListNetworkMigrationDeployedStacksError,
1560 R,
1561 >,
1562 > for Error
1563where
1564 R: Send + Sync + std::fmt::Debug + 'static,
1565{
1566 fn from(
1567 err: ::aws_smithy_runtime_api::client::result::SdkError<
1568 crate::operation::list_network_migration_deployed_stacks::ListNetworkMigrationDeployedStacksError,
1569 R,
1570 >,
1571 ) -> Self {
1572 match err {
1573 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1574 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1575 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1576 source: err.into(),
1577 }),
1578 }
1579 }
1580}
1581impl From<crate::operation::list_network_migration_deployed_stacks::ListNetworkMigrationDeployedStacksError> for Error {
1582 fn from(err: crate::operation::list_network_migration_deployed_stacks::ListNetworkMigrationDeployedStacksError) -> Self {
1583 match err {
1584 crate::operation::list_network_migration_deployed_stacks::ListNetworkMigrationDeployedStacksError::AccessDeniedException(inner) => {
1585 Error::AccessDeniedException(inner)
1586 }
1587 crate::operation::list_network_migration_deployed_stacks::ListNetworkMigrationDeployedStacksError::ResourceNotFoundException(inner) => {
1588 Error::ResourceNotFoundException(inner)
1589 }
1590 crate::operation::list_network_migration_deployed_stacks::ListNetworkMigrationDeployedStacksError::ThrottlingException(inner) => {
1591 Error::ThrottlingException(inner)
1592 }
1593 crate::operation::list_network_migration_deployed_stacks::ListNetworkMigrationDeployedStacksError::ValidationException(inner) => {
1594 Error::ValidationException(inner)
1595 }
1596 crate::operation::list_network_migration_deployed_stacks::ListNetworkMigrationDeployedStacksError::Unhandled(inner) => {
1597 Error::Unhandled(inner)
1598 }
1599 }
1600 }
1601}
1602impl<R>
1603 From<
1604 ::aws_smithy_runtime_api::client::result::SdkError<
1605 crate::operation::list_network_migration_deployments::ListNetworkMigrationDeploymentsError,
1606 R,
1607 >,
1608 > for Error
1609where
1610 R: Send + Sync + std::fmt::Debug + 'static,
1611{
1612 fn from(
1613 err: ::aws_smithy_runtime_api::client::result::SdkError<
1614 crate::operation::list_network_migration_deployments::ListNetworkMigrationDeploymentsError,
1615 R,
1616 >,
1617 ) -> Self {
1618 match err {
1619 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1620 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1621 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1622 source: err.into(),
1623 }),
1624 }
1625 }
1626}
1627impl From<crate::operation::list_network_migration_deployments::ListNetworkMigrationDeploymentsError> for Error {
1628 fn from(err: crate::operation::list_network_migration_deployments::ListNetworkMigrationDeploymentsError) -> Self {
1629 match err {
1630 crate::operation::list_network_migration_deployments::ListNetworkMigrationDeploymentsError::AccessDeniedException(inner) => {
1631 Error::AccessDeniedException(inner)
1632 }
1633 crate::operation::list_network_migration_deployments::ListNetworkMigrationDeploymentsError::ResourceNotFoundException(inner) => {
1634 Error::ResourceNotFoundException(inner)
1635 }
1636 crate::operation::list_network_migration_deployments::ListNetworkMigrationDeploymentsError::ThrottlingException(inner) => {
1637 Error::ThrottlingException(inner)
1638 }
1639 crate::operation::list_network_migration_deployments::ListNetworkMigrationDeploymentsError::ValidationException(inner) => {
1640 Error::ValidationException(inner)
1641 }
1642 crate::operation::list_network_migration_deployments::ListNetworkMigrationDeploymentsError::Unhandled(inner) => Error::Unhandled(inner),
1643 }
1644 }
1645}
1646impl<R>
1647 From<
1648 ::aws_smithy_runtime_api::client::result::SdkError<
1649 crate::operation::list_network_migration_executions::ListNetworkMigrationExecutionsError,
1650 R,
1651 >,
1652 > for Error
1653where
1654 R: Send + Sync + std::fmt::Debug + 'static,
1655{
1656 fn from(
1657 err: ::aws_smithy_runtime_api::client::result::SdkError<
1658 crate::operation::list_network_migration_executions::ListNetworkMigrationExecutionsError,
1659 R,
1660 >,
1661 ) -> Self {
1662 match err {
1663 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1664 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1665 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1666 source: err.into(),
1667 }),
1668 }
1669 }
1670}
1671impl From<crate::operation::list_network_migration_executions::ListNetworkMigrationExecutionsError> for Error {
1672 fn from(err: crate::operation::list_network_migration_executions::ListNetworkMigrationExecutionsError) -> Self {
1673 match err {
1674 crate::operation::list_network_migration_executions::ListNetworkMigrationExecutionsError::AccessDeniedException(inner) => {
1675 Error::AccessDeniedException(inner)
1676 }
1677 crate::operation::list_network_migration_executions::ListNetworkMigrationExecutionsError::ResourceNotFoundException(inner) => {
1678 Error::ResourceNotFoundException(inner)
1679 }
1680 crate::operation::list_network_migration_executions::ListNetworkMigrationExecutionsError::Unhandled(inner) => Error::Unhandled(inner),
1681 }
1682 }
1683}
1684impl<R>
1685 From<
1686 ::aws_smithy_runtime_api::client::result::SdkError<
1687 crate::operation::list_network_migration_mapper_segment_constructs::ListNetworkMigrationMapperSegmentConstructsError,
1688 R,
1689 >,
1690 > for Error
1691where
1692 R: Send + Sync + std::fmt::Debug + 'static,
1693{
1694 fn from(
1695 err: ::aws_smithy_runtime_api::client::result::SdkError<
1696 crate::operation::list_network_migration_mapper_segment_constructs::ListNetworkMigrationMapperSegmentConstructsError,
1697 R,
1698 >,
1699 ) -> Self {
1700 match err {
1701 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1702 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1703 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1704 source: err.into(),
1705 }),
1706 }
1707 }
1708}
1709impl From<crate::operation::list_network_migration_mapper_segment_constructs::ListNetworkMigrationMapperSegmentConstructsError> for Error {
1710 fn from(err: crate::operation::list_network_migration_mapper_segment_constructs::ListNetworkMigrationMapperSegmentConstructsError) -> Self {
1711 match err {
1712 crate::operation::list_network_migration_mapper_segment_constructs::ListNetworkMigrationMapperSegmentConstructsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1713 crate::operation::list_network_migration_mapper_segment_constructs::ListNetworkMigrationMapperSegmentConstructsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1714 crate::operation::list_network_migration_mapper_segment_constructs::ListNetworkMigrationMapperSegmentConstructsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1715 crate::operation::list_network_migration_mapper_segment_constructs::ListNetworkMigrationMapperSegmentConstructsError::ValidationException(inner) => Error::ValidationException(inner),
1716 crate::operation::list_network_migration_mapper_segment_constructs::ListNetworkMigrationMapperSegmentConstructsError::Unhandled(inner) => Error::Unhandled(inner),
1717 }
1718 }
1719}
1720impl<R>
1721 From<
1722 ::aws_smithy_runtime_api::client::result::SdkError<
1723 crate::operation::list_network_migration_mapper_segments::ListNetworkMigrationMapperSegmentsError,
1724 R,
1725 >,
1726 > for Error
1727where
1728 R: Send + Sync + std::fmt::Debug + 'static,
1729{
1730 fn from(
1731 err: ::aws_smithy_runtime_api::client::result::SdkError<
1732 crate::operation::list_network_migration_mapper_segments::ListNetworkMigrationMapperSegmentsError,
1733 R,
1734 >,
1735 ) -> Self {
1736 match err {
1737 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1738 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1739 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1740 source: err.into(),
1741 }),
1742 }
1743 }
1744}
1745impl From<crate::operation::list_network_migration_mapper_segments::ListNetworkMigrationMapperSegmentsError> for Error {
1746 fn from(err: crate::operation::list_network_migration_mapper_segments::ListNetworkMigrationMapperSegmentsError) -> Self {
1747 match err {
1748 crate::operation::list_network_migration_mapper_segments::ListNetworkMigrationMapperSegmentsError::AccessDeniedException(inner) => {
1749 Error::AccessDeniedException(inner)
1750 }
1751 crate::operation::list_network_migration_mapper_segments::ListNetworkMigrationMapperSegmentsError::ResourceNotFoundException(inner) => {
1752 Error::ResourceNotFoundException(inner)
1753 }
1754 crate::operation::list_network_migration_mapper_segments::ListNetworkMigrationMapperSegmentsError::ThrottlingException(inner) => {
1755 Error::ThrottlingException(inner)
1756 }
1757 crate::operation::list_network_migration_mapper_segments::ListNetworkMigrationMapperSegmentsError::ValidationException(inner) => {
1758 Error::ValidationException(inner)
1759 }
1760 crate::operation::list_network_migration_mapper_segments::ListNetworkMigrationMapperSegmentsError::Unhandled(inner) => {
1761 Error::Unhandled(inner)
1762 }
1763 }
1764 }
1765}
1766impl<R>
1767 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_network_migration_mappings::ListNetworkMigrationMappingsError, R>>
1768 for Error
1769where
1770 R: Send + Sync + std::fmt::Debug + 'static,
1771{
1772 fn from(
1773 err: ::aws_smithy_runtime_api::client::result::SdkError<
1774 crate::operation::list_network_migration_mappings::ListNetworkMigrationMappingsError,
1775 R,
1776 >,
1777 ) -> Self {
1778 match err {
1779 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1780 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1781 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1782 source: err.into(),
1783 }),
1784 }
1785 }
1786}
1787impl From<crate::operation::list_network_migration_mappings::ListNetworkMigrationMappingsError> for Error {
1788 fn from(err: crate::operation::list_network_migration_mappings::ListNetworkMigrationMappingsError) -> Self {
1789 match err {
1790 crate::operation::list_network_migration_mappings::ListNetworkMigrationMappingsError::AccessDeniedException(inner) => {
1791 Error::AccessDeniedException(inner)
1792 }
1793 crate::operation::list_network_migration_mappings::ListNetworkMigrationMappingsError::ResourceNotFoundException(inner) => {
1794 Error::ResourceNotFoundException(inner)
1795 }
1796 crate::operation::list_network_migration_mappings::ListNetworkMigrationMappingsError::ThrottlingException(inner) => {
1797 Error::ThrottlingException(inner)
1798 }
1799 crate::operation::list_network_migration_mappings::ListNetworkMigrationMappingsError::ValidationException(inner) => {
1800 Error::ValidationException(inner)
1801 }
1802 crate::operation::list_network_migration_mappings::ListNetworkMigrationMappingsError::Unhandled(inner) => Error::Unhandled(inner),
1803 }
1804 }
1805}
1806impl<R>
1807 From<
1808 ::aws_smithy_runtime_api::client::result::SdkError<
1809 crate::operation::list_network_migration_mapping_updates::ListNetworkMigrationMappingUpdatesError,
1810 R,
1811 >,
1812 > for Error
1813where
1814 R: Send + Sync + std::fmt::Debug + 'static,
1815{
1816 fn from(
1817 err: ::aws_smithy_runtime_api::client::result::SdkError<
1818 crate::operation::list_network_migration_mapping_updates::ListNetworkMigrationMappingUpdatesError,
1819 R,
1820 >,
1821 ) -> Self {
1822 match err {
1823 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1824 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1825 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1826 source: err.into(),
1827 }),
1828 }
1829 }
1830}
1831impl From<crate::operation::list_network_migration_mapping_updates::ListNetworkMigrationMappingUpdatesError> for Error {
1832 fn from(err: crate::operation::list_network_migration_mapping_updates::ListNetworkMigrationMappingUpdatesError) -> Self {
1833 match err {
1834 crate::operation::list_network_migration_mapping_updates::ListNetworkMigrationMappingUpdatesError::AccessDeniedException(inner) => {
1835 Error::AccessDeniedException(inner)
1836 }
1837 crate::operation::list_network_migration_mapping_updates::ListNetworkMigrationMappingUpdatesError::ResourceNotFoundException(inner) => {
1838 Error::ResourceNotFoundException(inner)
1839 }
1840 crate::operation::list_network_migration_mapping_updates::ListNetworkMigrationMappingUpdatesError::ThrottlingException(inner) => {
1841 Error::ThrottlingException(inner)
1842 }
1843 crate::operation::list_network_migration_mapping_updates::ListNetworkMigrationMappingUpdatesError::ValidationException(inner) => {
1844 Error::ValidationException(inner)
1845 }
1846 crate::operation::list_network_migration_mapping_updates::ListNetworkMigrationMappingUpdatesError::Unhandled(inner) => {
1847 Error::Unhandled(inner)
1848 }
1849 }
1850 }
1851}
1852impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_source_server_actions::ListSourceServerActionsError, R>>
1853 for Error
1854where
1855 R: Send + Sync + std::fmt::Debug + 'static,
1856{
1857 fn from(
1858 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_source_server_actions::ListSourceServerActionsError, R>,
1859 ) -> Self {
1860 match err {
1861 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1862 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1863 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1864 source: err.into(),
1865 }),
1866 }
1867 }
1868}
1869impl From<crate::operation::list_source_server_actions::ListSourceServerActionsError> for Error {
1870 fn from(err: crate::operation::list_source_server_actions::ListSourceServerActionsError) -> Self {
1871 match err {
1872 crate::operation::list_source_server_actions::ListSourceServerActionsError::ResourceNotFoundException(inner) => {
1873 Error::ResourceNotFoundException(inner)
1874 }
1875 crate::operation::list_source_server_actions::ListSourceServerActionsError::UninitializedAccountException(inner) => {
1876 Error::UninitializedAccountException(inner)
1877 }
1878 crate::operation::list_source_server_actions::ListSourceServerActionsError::Unhandled(inner) => Error::Unhandled(inner),
1879 }
1880 }
1881}
1882impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1883where
1884 R: Send + Sync + std::fmt::Debug + 'static,
1885{
1886 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1887 match err {
1888 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1889 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1890 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1891 source: err.into(),
1892 }),
1893 }
1894 }
1895}
1896impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1897 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1898 match err {
1899 crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1900 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
1901 Error::InternalServerException(inner)
1902 }
1903 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1904 Error::ResourceNotFoundException(inner)
1905 }
1906 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1907 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
1908 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1909 }
1910 }
1911}
1912impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_template_actions::ListTemplateActionsError, R>> for Error
1913where
1914 R: Send + Sync + std::fmt::Debug + 'static,
1915{
1916 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_template_actions::ListTemplateActionsError, R>) -> Self {
1917 match err {
1918 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1919 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1920 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1921 source: err.into(),
1922 }),
1923 }
1924 }
1925}
1926impl From<crate::operation::list_template_actions::ListTemplateActionsError> for Error {
1927 fn from(err: crate::operation::list_template_actions::ListTemplateActionsError) -> Self {
1928 match err {
1929 crate::operation::list_template_actions::ListTemplateActionsError::ResourceNotFoundException(inner) => {
1930 Error::ResourceNotFoundException(inner)
1931 }
1932 crate::operation::list_template_actions::ListTemplateActionsError::UninitializedAccountException(inner) => {
1933 Error::UninitializedAccountException(inner)
1934 }
1935 crate::operation::list_template_actions::ListTemplateActionsError::Unhandled(inner) => Error::Unhandled(inner),
1936 }
1937 }
1938}
1939impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_waves::ListWavesError, R>> for Error
1940where
1941 R: Send + Sync + std::fmt::Debug + 'static,
1942{
1943 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_waves::ListWavesError, R>) -> Self {
1944 match err {
1945 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1946 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1947 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1948 source: err.into(),
1949 }),
1950 }
1951 }
1952}
1953impl From<crate::operation::list_waves::ListWavesError> for Error {
1954 fn from(err: crate::operation::list_waves::ListWavesError) -> Self {
1955 match err {
1956 crate::operation::list_waves::ListWavesError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
1957 crate::operation::list_waves::ListWavesError::Unhandled(inner) => Error::Unhandled(inner),
1958 }
1959 }
1960}
1961impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::mark_as_archived::MarkAsArchivedError, R>> for Error
1962where
1963 R: Send + Sync + std::fmt::Debug + 'static,
1964{
1965 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::mark_as_archived::MarkAsArchivedError, R>) -> Self {
1966 match err {
1967 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1968 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1969 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1970 source: err.into(),
1971 }),
1972 }
1973 }
1974}
1975impl From<crate::operation::mark_as_archived::MarkAsArchivedError> for Error {
1976 fn from(err: crate::operation::mark_as_archived::MarkAsArchivedError) -> Self {
1977 match err {
1978 crate::operation::mark_as_archived::MarkAsArchivedError::ConflictException(inner) => Error::ConflictException(inner),
1979 crate::operation::mark_as_archived::MarkAsArchivedError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1980 crate::operation::mark_as_archived::MarkAsArchivedError::UninitializedAccountException(inner) => {
1981 Error::UninitializedAccountException(inner)
1982 }
1983 crate::operation::mark_as_archived::MarkAsArchivedError::Unhandled(inner) => Error::Unhandled(inner),
1984 }
1985 }
1986}
1987impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::pause_replication::PauseReplicationError, R>> for Error
1988where
1989 R: Send + Sync + std::fmt::Debug + 'static,
1990{
1991 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::pause_replication::PauseReplicationError, R>) -> Self {
1992 match err {
1993 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1994 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1995 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1996 source: err.into(),
1997 }),
1998 }
1999 }
2000}
2001impl From<crate::operation::pause_replication::PauseReplicationError> for Error {
2002 fn from(err: crate::operation::pause_replication::PauseReplicationError) -> Self {
2003 match err {
2004 crate::operation::pause_replication::PauseReplicationError::ConflictException(inner) => Error::ConflictException(inner),
2005 crate::operation::pause_replication::PauseReplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2006 crate::operation::pause_replication::PauseReplicationError::ServiceQuotaExceededException(inner) => {
2007 Error::ServiceQuotaExceededException(inner)
2008 }
2009 crate::operation::pause_replication::PauseReplicationError::UninitializedAccountException(inner) => {
2010 Error::UninitializedAccountException(inner)
2011 }
2012 crate::operation::pause_replication::PauseReplicationError::ValidationException(inner) => Error::ValidationException(inner),
2013 crate::operation::pause_replication::PauseReplicationError::Unhandled(inner) => Error::Unhandled(inner),
2014 }
2015 }
2016}
2017impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_source_server_action::PutSourceServerActionError, R>> for Error
2018where
2019 R: Send + Sync + std::fmt::Debug + 'static,
2020{
2021 fn from(
2022 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_source_server_action::PutSourceServerActionError, R>,
2023 ) -> Self {
2024 match err {
2025 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2026 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2027 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2028 source: err.into(),
2029 }),
2030 }
2031 }
2032}
2033impl From<crate::operation::put_source_server_action::PutSourceServerActionError> for Error {
2034 fn from(err: crate::operation::put_source_server_action::PutSourceServerActionError) -> Self {
2035 match err {
2036 crate::operation::put_source_server_action::PutSourceServerActionError::ConflictException(inner) => Error::ConflictException(inner),
2037 crate::operation::put_source_server_action::PutSourceServerActionError::ResourceNotFoundException(inner) => {
2038 Error::ResourceNotFoundException(inner)
2039 }
2040 crate::operation::put_source_server_action::PutSourceServerActionError::UninitializedAccountException(inner) => {
2041 Error::UninitializedAccountException(inner)
2042 }
2043 crate::operation::put_source_server_action::PutSourceServerActionError::ValidationException(inner) => Error::ValidationException(inner),
2044 crate::operation::put_source_server_action::PutSourceServerActionError::Unhandled(inner) => Error::Unhandled(inner),
2045 }
2046 }
2047}
2048impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_template_action::PutTemplateActionError, R>> for Error
2049where
2050 R: Send + Sync + std::fmt::Debug + 'static,
2051{
2052 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_template_action::PutTemplateActionError, R>) -> Self {
2053 match err {
2054 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2055 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2056 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2057 source: err.into(),
2058 }),
2059 }
2060 }
2061}
2062impl From<crate::operation::put_template_action::PutTemplateActionError> for Error {
2063 fn from(err: crate::operation::put_template_action::PutTemplateActionError) -> Self {
2064 match err {
2065 crate::operation::put_template_action::PutTemplateActionError::ConflictException(inner) => Error::ConflictException(inner),
2066 crate::operation::put_template_action::PutTemplateActionError::ResourceNotFoundException(inner) => {
2067 Error::ResourceNotFoundException(inner)
2068 }
2069 crate::operation::put_template_action::PutTemplateActionError::UninitializedAccountException(inner) => {
2070 Error::UninitializedAccountException(inner)
2071 }
2072 crate::operation::put_template_action::PutTemplateActionError::ValidationException(inner) => Error::ValidationException(inner),
2073 crate::operation::put_template_action::PutTemplateActionError::Unhandled(inner) => Error::Unhandled(inner),
2074 }
2075 }
2076}
2077impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_source_server_action::RemoveSourceServerActionError, R>>
2078 for Error
2079where
2080 R: Send + Sync + std::fmt::Debug + 'static,
2081{
2082 fn from(
2083 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_source_server_action::RemoveSourceServerActionError, R>,
2084 ) -> Self {
2085 match err {
2086 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2087 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2088 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2089 source: err.into(),
2090 }),
2091 }
2092 }
2093}
2094impl From<crate::operation::remove_source_server_action::RemoveSourceServerActionError> for Error {
2095 fn from(err: crate::operation::remove_source_server_action::RemoveSourceServerActionError) -> Self {
2096 match err {
2097 crate::operation::remove_source_server_action::RemoveSourceServerActionError::ResourceNotFoundException(inner) => {
2098 Error::ResourceNotFoundException(inner)
2099 }
2100 crate::operation::remove_source_server_action::RemoveSourceServerActionError::UninitializedAccountException(inner) => {
2101 Error::UninitializedAccountException(inner)
2102 }
2103 crate::operation::remove_source_server_action::RemoveSourceServerActionError::ValidationException(inner) => {
2104 Error::ValidationException(inner)
2105 }
2106 crate::operation::remove_source_server_action::RemoveSourceServerActionError::Unhandled(inner) => Error::Unhandled(inner),
2107 }
2108 }
2109}
2110impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_template_action::RemoveTemplateActionError, R>> for Error
2111where
2112 R: Send + Sync + std::fmt::Debug + 'static,
2113{
2114 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_template_action::RemoveTemplateActionError, R>) -> Self {
2115 match err {
2116 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2117 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2118 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2119 source: err.into(),
2120 }),
2121 }
2122 }
2123}
2124impl From<crate::operation::remove_template_action::RemoveTemplateActionError> for Error {
2125 fn from(err: crate::operation::remove_template_action::RemoveTemplateActionError) -> Self {
2126 match err {
2127 crate::operation::remove_template_action::RemoveTemplateActionError::ResourceNotFoundException(inner) => {
2128 Error::ResourceNotFoundException(inner)
2129 }
2130 crate::operation::remove_template_action::RemoveTemplateActionError::UninitializedAccountException(inner) => {
2131 Error::UninitializedAccountException(inner)
2132 }
2133 crate::operation::remove_template_action::RemoveTemplateActionError::ValidationException(inner) => Error::ValidationException(inner),
2134 crate::operation::remove_template_action::RemoveTemplateActionError::Unhandled(inner) => Error::Unhandled(inner),
2135 }
2136 }
2137}
2138impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resume_replication::ResumeReplicationError, R>> for Error
2139where
2140 R: Send + Sync + std::fmt::Debug + 'static,
2141{
2142 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resume_replication::ResumeReplicationError, R>) -> Self {
2143 match err {
2144 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2145 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2146 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2147 source: err.into(),
2148 }),
2149 }
2150 }
2151}
2152impl From<crate::operation::resume_replication::ResumeReplicationError> for Error {
2153 fn from(err: crate::operation::resume_replication::ResumeReplicationError) -> Self {
2154 match err {
2155 crate::operation::resume_replication::ResumeReplicationError::ConflictException(inner) => Error::ConflictException(inner),
2156 crate::operation::resume_replication::ResumeReplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2157 crate::operation::resume_replication::ResumeReplicationError::ServiceQuotaExceededException(inner) => {
2158 Error::ServiceQuotaExceededException(inner)
2159 }
2160 crate::operation::resume_replication::ResumeReplicationError::UninitializedAccountException(inner) => {
2161 Error::UninitializedAccountException(inner)
2162 }
2163 crate::operation::resume_replication::ResumeReplicationError::ValidationException(inner) => Error::ValidationException(inner),
2164 crate::operation::resume_replication::ResumeReplicationError::Unhandled(inner) => Error::Unhandled(inner),
2165 }
2166 }
2167}
2168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_data_replication::RetryDataReplicationError, R>> for Error
2169where
2170 R: Send + Sync + std::fmt::Debug + 'static,
2171{
2172 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::retry_data_replication::RetryDataReplicationError, R>) -> Self {
2173 match err {
2174 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2175 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2176 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2177 source: err.into(),
2178 }),
2179 }
2180 }
2181}
2182impl From<crate::operation::retry_data_replication::RetryDataReplicationError> for Error {
2183 fn from(err: crate::operation::retry_data_replication::RetryDataReplicationError) -> Self {
2184 match err {
2185 crate::operation::retry_data_replication::RetryDataReplicationError::ResourceNotFoundException(inner) => {
2186 Error::ResourceNotFoundException(inner)
2187 }
2188 crate::operation::retry_data_replication::RetryDataReplicationError::UninitializedAccountException(inner) => {
2189 Error::UninitializedAccountException(inner)
2190 }
2191 crate::operation::retry_data_replication::RetryDataReplicationError::ValidationException(inner) => Error::ValidationException(inner),
2192 crate::operation::retry_data_replication::RetryDataReplicationError::Unhandled(inner) => Error::Unhandled(inner),
2193 }
2194 }
2195}
2196impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_cutover::StartCutoverError, R>> for Error
2197where
2198 R: Send + Sync + std::fmt::Debug + 'static,
2199{
2200 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_cutover::StartCutoverError, R>) -> Self {
2201 match err {
2202 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2203 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2204 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2205 source: err.into(),
2206 }),
2207 }
2208 }
2209}
2210impl From<crate::operation::start_cutover::StartCutoverError> for Error {
2211 fn from(err: crate::operation::start_cutover::StartCutoverError) -> Self {
2212 match err {
2213 crate::operation::start_cutover::StartCutoverError::ConflictException(inner) => Error::ConflictException(inner),
2214 crate::operation::start_cutover::StartCutoverError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
2215 crate::operation::start_cutover::StartCutoverError::ValidationException(inner) => Error::ValidationException(inner),
2216 crate::operation::start_cutover::StartCutoverError::Unhandled(inner) => Error::Unhandled(inner),
2217 }
2218 }
2219}
2220impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_export::StartExportError, R>> for Error
2221where
2222 R: Send + Sync + std::fmt::Debug + 'static,
2223{
2224 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_export::StartExportError, R>) -> Self {
2225 match err {
2226 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2227 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2228 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2229 source: err.into(),
2230 }),
2231 }
2232 }
2233}
2234impl From<crate::operation::start_export::StartExportError> for Error {
2235 fn from(err: crate::operation::start_export::StartExportError) -> Self {
2236 match err {
2237 crate::operation::start_export::StartExportError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2238 crate::operation::start_export::StartExportError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
2239 crate::operation::start_export::StartExportError::ValidationException(inner) => Error::ValidationException(inner),
2240 crate::operation::start_export::StartExportError::Unhandled(inner) => Error::Unhandled(inner),
2241 }
2242 }
2243}
2244impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_import::StartImportError, R>> for Error
2245where
2246 R: Send + Sync + std::fmt::Debug + 'static,
2247{
2248 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_import::StartImportError, R>) -> Self {
2249 match err {
2250 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2251 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2252 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2253 source: err.into(),
2254 }),
2255 }
2256 }
2257}
2258impl From<crate::operation::start_import::StartImportError> for Error {
2259 fn from(err: crate::operation::start_import::StartImportError) -> Self {
2260 match err {
2261 crate::operation::start_import::StartImportError::ConflictException(inner) => Error::ConflictException(inner),
2262 crate::operation::start_import::StartImportError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2263 crate::operation::start_import::StartImportError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2264 crate::operation::start_import::StartImportError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
2265 crate::operation::start_import::StartImportError::ValidationException(inner) => Error::ValidationException(inner),
2266 crate::operation::start_import::StartImportError::Unhandled(inner) => Error::Unhandled(inner),
2267 }
2268 }
2269}
2270impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_import_file_enrichment::StartImportFileEnrichmentError, R>>
2271 for Error
2272where
2273 R: Send + Sync + std::fmt::Debug + 'static,
2274{
2275 fn from(
2276 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_import_file_enrichment::StartImportFileEnrichmentError, R>,
2277 ) -> Self {
2278 match err {
2279 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2280 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2281 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2282 source: err.into(),
2283 }),
2284 }
2285 }
2286}
2287impl From<crate::operation::start_import_file_enrichment::StartImportFileEnrichmentError> for Error {
2288 fn from(err: crate::operation::start_import_file_enrichment::StartImportFileEnrichmentError) -> Self {
2289 match err {
2290 crate::operation::start_import_file_enrichment::StartImportFileEnrichmentError::AccessDeniedException(inner) => {
2291 Error::AccessDeniedException(inner)
2292 }
2293 crate::operation::start_import_file_enrichment::StartImportFileEnrichmentError::ConflictException(inner) => {
2294 Error::ConflictException(inner)
2295 }
2296 crate::operation::start_import_file_enrichment::StartImportFileEnrichmentError::ServiceQuotaExceededException(inner) => {
2297 Error::ServiceQuotaExceededException(inner)
2298 }
2299 crate::operation::start_import_file_enrichment::StartImportFileEnrichmentError::ThrottlingException(inner) => {
2300 Error::ThrottlingException(inner)
2301 }
2302 crate::operation::start_import_file_enrichment::StartImportFileEnrichmentError::ValidationException(inner) => {
2303 Error::ValidationException(inner)
2304 }
2305 crate::operation::start_import_file_enrichment::StartImportFileEnrichmentError::Unhandled(inner) => Error::Unhandled(inner),
2306 }
2307 }
2308}
2309impl<R>
2310 From<
2311 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_network_migration_analysis::StartNetworkMigrationAnalysisError, R>,
2312 > for Error
2313where
2314 R: Send + Sync + std::fmt::Debug + 'static,
2315{
2316 fn from(
2317 err: ::aws_smithy_runtime_api::client::result::SdkError<
2318 crate::operation::start_network_migration_analysis::StartNetworkMigrationAnalysisError,
2319 R,
2320 >,
2321 ) -> Self {
2322 match err {
2323 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2324 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2325 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2326 source: err.into(),
2327 }),
2328 }
2329 }
2330}
2331impl From<crate::operation::start_network_migration_analysis::StartNetworkMigrationAnalysisError> for Error {
2332 fn from(err: crate::operation::start_network_migration_analysis::StartNetworkMigrationAnalysisError) -> Self {
2333 match err {
2334 crate::operation::start_network_migration_analysis::StartNetworkMigrationAnalysisError::AccessDeniedException(inner) => {
2335 Error::AccessDeniedException(inner)
2336 }
2337 crate::operation::start_network_migration_analysis::StartNetworkMigrationAnalysisError::ConflictException(inner) => {
2338 Error::ConflictException(inner)
2339 }
2340 crate::operation::start_network_migration_analysis::StartNetworkMigrationAnalysisError::ResourceNotFoundException(inner) => {
2341 Error::ResourceNotFoundException(inner)
2342 }
2343 crate::operation::start_network_migration_analysis::StartNetworkMigrationAnalysisError::ServiceQuotaExceededException(inner) => {
2344 Error::ServiceQuotaExceededException(inner)
2345 }
2346 crate::operation::start_network_migration_analysis::StartNetworkMigrationAnalysisError::ThrottlingException(inner) => {
2347 Error::ThrottlingException(inner)
2348 }
2349 crate::operation::start_network_migration_analysis::StartNetworkMigrationAnalysisError::ValidationException(inner) => {
2350 Error::ValidationException(inner)
2351 }
2352 crate::operation::start_network_migration_analysis::StartNetworkMigrationAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
2353 }
2354 }
2355}
2356impl<R>
2357 From<
2358 ::aws_smithy_runtime_api::client::result::SdkError<
2359 crate::operation::start_network_migration_code_generation::StartNetworkMigrationCodeGenerationError,
2360 R,
2361 >,
2362 > for Error
2363where
2364 R: Send + Sync + std::fmt::Debug + 'static,
2365{
2366 fn from(
2367 err: ::aws_smithy_runtime_api::client::result::SdkError<
2368 crate::operation::start_network_migration_code_generation::StartNetworkMigrationCodeGenerationError,
2369 R,
2370 >,
2371 ) -> Self {
2372 match err {
2373 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2374 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2375 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2376 source: err.into(),
2377 }),
2378 }
2379 }
2380}
2381impl From<crate::operation::start_network_migration_code_generation::StartNetworkMigrationCodeGenerationError> for Error {
2382 fn from(err: crate::operation::start_network_migration_code_generation::StartNetworkMigrationCodeGenerationError) -> Self {
2383 match err {
2384 crate::operation::start_network_migration_code_generation::StartNetworkMigrationCodeGenerationError::AccessDeniedException(inner) => {
2385 Error::AccessDeniedException(inner)
2386 }
2387 crate::operation::start_network_migration_code_generation::StartNetworkMigrationCodeGenerationError::ConflictException(inner) => {
2388 Error::ConflictException(inner)
2389 }
2390 crate::operation::start_network_migration_code_generation::StartNetworkMigrationCodeGenerationError::ResourceNotFoundException(inner) => {
2391 Error::ResourceNotFoundException(inner)
2392 }
2393 crate::operation::start_network_migration_code_generation::StartNetworkMigrationCodeGenerationError::ServiceQuotaExceededException(
2394 inner,
2395 ) => Error::ServiceQuotaExceededException(inner),
2396 crate::operation::start_network_migration_code_generation::StartNetworkMigrationCodeGenerationError::ThrottlingException(inner) => {
2397 Error::ThrottlingException(inner)
2398 }
2399 crate::operation::start_network_migration_code_generation::StartNetworkMigrationCodeGenerationError::ValidationException(inner) => {
2400 Error::ValidationException(inner)
2401 }
2402 crate::operation::start_network_migration_code_generation::StartNetworkMigrationCodeGenerationError::Unhandled(inner) => {
2403 Error::Unhandled(inner)
2404 }
2405 }
2406 }
2407}
2408impl<R>
2409 From<
2410 ::aws_smithy_runtime_api::client::result::SdkError<
2411 crate::operation::start_network_migration_deployment::StartNetworkMigrationDeploymentError,
2412 R,
2413 >,
2414 > for Error
2415where
2416 R: Send + Sync + std::fmt::Debug + 'static,
2417{
2418 fn from(
2419 err: ::aws_smithy_runtime_api::client::result::SdkError<
2420 crate::operation::start_network_migration_deployment::StartNetworkMigrationDeploymentError,
2421 R,
2422 >,
2423 ) -> Self {
2424 match err {
2425 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2426 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2427 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2428 source: err.into(),
2429 }),
2430 }
2431 }
2432}
2433impl From<crate::operation::start_network_migration_deployment::StartNetworkMigrationDeploymentError> for Error {
2434 fn from(err: crate::operation::start_network_migration_deployment::StartNetworkMigrationDeploymentError) -> Self {
2435 match err {
2436 crate::operation::start_network_migration_deployment::StartNetworkMigrationDeploymentError::AccessDeniedException(inner) => {
2437 Error::AccessDeniedException(inner)
2438 }
2439 crate::operation::start_network_migration_deployment::StartNetworkMigrationDeploymentError::ConflictException(inner) => {
2440 Error::ConflictException(inner)
2441 }
2442 crate::operation::start_network_migration_deployment::StartNetworkMigrationDeploymentError::ResourceNotFoundException(inner) => {
2443 Error::ResourceNotFoundException(inner)
2444 }
2445 crate::operation::start_network_migration_deployment::StartNetworkMigrationDeploymentError::ServiceQuotaExceededException(inner) => {
2446 Error::ServiceQuotaExceededException(inner)
2447 }
2448 crate::operation::start_network_migration_deployment::StartNetworkMigrationDeploymentError::ThrottlingException(inner) => {
2449 Error::ThrottlingException(inner)
2450 }
2451 crate::operation::start_network_migration_deployment::StartNetworkMigrationDeploymentError::ValidationException(inner) => {
2452 Error::ValidationException(inner)
2453 }
2454 crate::operation::start_network_migration_deployment::StartNetworkMigrationDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
2455 }
2456 }
2457}
2458impl<R>
2459 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_network_migration_mapping::StartNetworkMigrationMappingError, R>>
2460 for Error
2461where
2462 R: Send + Sync + std::fmt::Debug + 'static,
2463{
2464 fn from(
2465 err: ::aws_smithy_runtime_api::client::result::SdkError<
2466 crate::operation::start_network_migration_mapping::StartNetworkMigrationMappingError,
2467 R,
2468 >,
2469 ) -> Self {
2470 match err {
2471 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2472 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2473 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2474 source: err.into(),
2475 }),
2476 }
2477 }
2478}
2479impl From<crate::operation::start_network_migration_mapping::StartNetworkMigrationMappingError> for Error {
2480 fn from(err: crate::operation::start_network_migration_mapping::StartNetworkMigrationMappingError) -> Self {
2481 match err {
2482 crate::operation::start_network_migration_mapping::StartNetworkMigrationMappingError::AccessDeniedException(inner) => {
2483 Error::AccessDeniedException(inner)
2484 }
2485 crate::operation::start_network_migration_mapping::StartNetworkMigrationMappingError::ConflictException(inner) => {
2486 Error::ConflictException(inner)
2487 }
2488 crate::operation::start_network_migration_mapping::StartNetworkMigrationMappingError::ResourceNotFoundException(inner) => {
2489 Error::ResourceNotFoundException(inner)
2490 }
2491 crate::operation::start_network_migration_mapping::StartNetworkMigrationMappingError::ServiceQuotaExceededException(inner) => {
2492 Error::ServiceQuotaExceededException(inner)
2493 }
2494 crate::operation::start_network_migration_mapping::StartNetworkMigrationMappingError::ThrottlingException(inner) => {
2495 Error::ThrottlingException(inner)
2496 }
2497 crate::operation::start_network_migration_mapping::StartNetworkMigrationMappingError::ValidationException(inner) => {
2498 Error::ValidationException(inner)
2499 }
2500 crate::operation::start_network_migration_mapping::StartNetworkMigrationMappingError::Unhandled(inner) => Error::Unhandled(inner),
2501 }
2502 }
2503}
2504impl<R>
2505 From<
2506 ::aws_smithy_runtime_api::client::result::SdkError<
2507 crate::operation::start_network_migration_mapping_update::StartNetworkMigrationMappingUpdateError,
2508 R,
2509 >,
2510 > for Error
2511where
2512 R: Send + Sync + std::fmt::Debug + 'static,
2513{
2514 fn from(
2515 err: ::aws_smithy_runtime_api::client::result::SdkError<
2516 crate::operation::start_network_migration_mapping_update::StartNetworkMigrationMappingUpdateError,
2517 R,
2518 >,
2519 ) -> Self {
2520 match err {
2521 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2522 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2523 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2524 source: err.into(),
2525 }),
2526 }
2527 }
2528}
2529impl From<crate::operation::start_network_migration_mapping_update::StartNetworkMigrationMappingUpdateError> for Error {
2530 fn from(err: crate::operation::start_network_migration_mapping_update::StartNetworkMigrationMappingUpdateError) -> Self {
2531 match err {
2532 crate::operation::start_network_migration_mapping_update::StartNetworkMigrationMappingUpdateError::AccessDeniedException(inner) => {
2533 Error::AccessDeniedException(inner)
2534 }
2535 crate::operation::start_network_migration_mapping_update::StartNetworkMigrationMappingUpdateError::ConflictException(inner) => {
2536 Error::ConflictException(inner)
2537 }
2538 crate::operation::start_network_migration_mapping_update::StartNetworkMigrationMappingUpdateError::ResourceNotFoundException(inner) => {
2539 Error::ResourceNotFoundException(inner)
2540 }
2541 crate::operation::start_network_migration_mapping_update::StartNetworkMigrationMappingUpdateError::ServiceQuotaExceededException(
2542 inner,
2543 ) => Error::ServiceQuotaExceededException(inner),
2544 crate::operation::start_network_migration_mapping_update::StartNetworkMigrationMappingUpdateError::ThrottlingException(inner) => {
2545 Error::ThrottlingException(inner)
2546 }
2547 crate::operation::start_network_migration_mapping_update::StartNetworkMigrationMappingUpdateError::ValidationException(inner) => {
2548 Error::ValidationException(inner)
2549 }
2550 crate::operation::start_network_migration_mapping_update::StartNetworkMigrationMappingUpdateError::Unhandled(inner) => {
2551 Error::Unhandled(inner)
2552 }
2553 }
2554 }
2555}
2556impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_replication::StartReplicationError, R>> for Error
2557where
2558 R: Send + Sync + std::fmt::Debug + 'static,
2559{
2560 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_replication::StartReplicationError, R>) -> Self {
2561 match err {
2562 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2563 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2564 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2565 source: err.into(),
2566 }),
2567 }
2568 }
2569}
2570impl From<crate::operation::start_replication::StartReplicationError> for Error {
2571 fn from(err: crate::operation::start_replication::StartReplicationError) -> Self {
2572 match err {
2573 crate::operation::start_replication::StartReplicationError::ConflictException(inner) => Error::ConflictException(inner),
2574 crate::operation::start_replication::StartReplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2575 crate::operation::start_replication::StartReplicationError::ServiceQuotaExceededException(inner) => {
2576 Error::ServiceQuotaExceededException(inner)
2577 }
2578 crate::operation::start_replication::StartReplicationError::UninitializedAccountException(inner) => {
2579 Error::UninitializedAccountException(inner)
2580 }
2581 crate::operation::start_replication::StartReplicationError::ValidationException(inner) => Error::ValidationException(inner),
2582 crate::operation::start_replication::StartReplicationError::Unhandled(inner) => Error::Unhandled(inner),
2583 }
2584 }
2585}
2586impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_test::StartTestError, R>> for Error
2587where
2588 R: Send + Sync + std::fmt::Debug + 'static,
2589{
2590 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_test::StartTestError, R>) -> Self {
2591 match err {
2592 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2593 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2594 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2595 source: err.into(),
2596 }),
2597 }
2598 }
2599}
2600impl From<crate::operation::start_test::StartTestError> for Error {
2601 fn from(err: crate::operation::start_test::StartTestError) -> Self {
2602 match err {
2603 crate::operation::start_test::StartTestError::ConflictException(inner) => Error::ConflictException(inner),
2604 crate::operation::start_test::StartTestError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
2605 crate::operation::start_test::StartTestError::ValidationException(inner) => Error::ValidationException(inner),
2606 crate::operation::start_test::StartTestError::Unhandled(inner) => Error::Unhandled(inner),
2607 }
2608 }
2609}
2610impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_replication::StopReplicationError, R>> for Error
2611where
2612 R: Send + Sync + std::fmt::Debug + 'static,
2613{
2614 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_replication::StopReplicationError, R>) -> Self {
2615 match err {
2616 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2617 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2618 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2619 source: err.into(),
2620 }),
2621 }
2622 }
2623}
2624impl From<crate::operation::stop_replication::StopReplicationError> for Error {
2625 fn from(err: crate::operation::stop_replication::StopReplicationError) -> Self {
2626 match err {
2627 crate::operation::stop_replication::StopReplicationError::ConflictException(inner) => Error::ConflictException(inner),
2628 crate::operation::stop_replication::StopReplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2629 crate::operation::stop_replication::StopReplicationError::ServiceQuotaExceededException(inner) => {
2630 Error::ServiceQuotaExceededException(inner)
2631 }
2632 crate::operation::stop_replication::StopReplicationError::UninitializedAccountException(inner) => {
2633 Error::UninitializedAccountException(inner)
2634 }
2635 crate::operation::stop_replication::StopReplicationError::ValidationException(inner) => Error::ValidationException(inner),
2636 crate::operation::stop_replication::StopReplicationError::Unhandled(inner) => Error::Unhandled(inner),
2637 }
2638 }
2639}
2640impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2641where
2642 R: Send + Sync + std::fmt::Debug + 'static,
2643{
2644 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2645 match err {
2646 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2647 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2648 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2649 source: err.into(),
2650 }),
2651 }
2652 }
2653}
2654impl From<crate::operation::tag_resource::TagResourceError> for Error {
2655 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2656 match err {
2657 crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2658 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
2659 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2660 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2661 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
2662 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2663 }
2664 }
2665}
2666impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_target_instances::TerminateTargetInstancesError, R>>
2667 for Error
2668where
2669 R: Send + Sync + std::fmt::Debug + 'static,
2670{
2671 fn from(
2672 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::terminate_target_instances::TerminateTargetInstancesError, R>,
2673 ) -> Self {
2674 match err {
2675 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2676 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2677 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2678 source: err.into(),
2679 }),
2680 }
2681 }
2682}
2683impl From<crate::operation::terminate_target_instances::TerminateTargetInstancesError> for Error {
2684 fn from(err: crate::operation::terminate_target_instances::TerminateTargetInstancesError) -> Self {
2685 match err {
2686 crate::operation::terminate_target_instances::TerminateTargetInstancesError::ConflictException(inner) => Error::ConflictException(inner),
2687 crate::operation::terminate_target_instances::TerminateTargetInstancesError::UninitializedAccountException(inner) => {
2688 Error::UninitializedAccountException(inner)
2689 }
2690 crate::operation::terminate_target_instances::TerminateTargetInstancesError::ValidationException(inner) => {
2691 Error::ValidationException(inner)
2692 }
2693 crate::operation::terminate_target_instances::TerminateTargetInstancesError::Unhandled(inner) => Error::Unhandled(inner),
2694 }
2695 }
2696}
2697impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unarchive_application::UnarchiveApplicationError, R>> for Error
2698where
2699 R: Send + Sync + std::fmt::Debug + 'static,
2700{
2701 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unarchive_application::UnarchiveApplicationError, R>) -> Self {
2702 match err {
2703 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2704 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2705 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2706 source: err.into(),
2707 }),
2708 }
2709 }
2710}
2711impl From<crate::operation::unarchive_application::UnarchiveApplicationError> for Error {
2712 fn from(err: crate::operation::unarchive_application::UnarchiveApplicationError) -> Self {
2713 match err {
2714 crate::operation::unarchive_application::UnarchiveApplicationError::ResourceNotFoundException(inner) => {
2715 Error::ResourceNotFoundException(inner)
2716 }
2717 crate::operation::unarchive_application::UnarchiveApplicationError::ServiceQuotaExceededException(inner) => {
2718 Error::ServiceQuotaExceededException(inner)
2719 }
2720 crate::operation::unarchive_application::UnarchiveApplicationError::UninitializedAccountException(inner) => {
2721 Error::UninitializedAccountException(inner)
2722 }
2723 crate::operation::unarchive_application::UnarchiveApplicationError::Unhandled(inner) => Error::Unhandled(inner),
2724 }
2725 }
2726}
2727impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unarchive_wave::UnarchiveWaveError, R>> for Error
2728where
2729 R: Send + Sync + std::fmt::Debug + 'static,
2730{
2731 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::unarchive_wave::UnarchiveWaveError, R>) -> Self {
2732 match err {
2733 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2734 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2735 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2736 source: err.into(),
2737 }),
2738 }
2739 }
2740}
2741impl From<crate::operation::unarchive_wave::UnarchiveWaveError> for Error {
2742 fn from(err: crate::operation::unarchive_wave::UnarchiveWaveError) -> Self {
2743 match err {
2744 crate::operation::unarchive_wave::UnarchiveWaveError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2745 crate::operation::unarchive_wave::UnarchiveWaveError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2746 crate::operation::unarchive_wave::UnarchiveWaveError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
2747 crate::operation::unarchive_wave::UnarchiveWaveError::Unhandled(inner) => Error::Unhandled(inner),
2748 }
2749 }
2750}
2751impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2752where
2753 R: Send + Sync + std::fmt::Debug + 'static,
2754{
2755 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2756 match err {
2757 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2758 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2759 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2760 source: err.into(),
2761 }),
2762 }
2763 }
2764}
2765impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2766 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2767 match err {
2768 crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2769 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
2770 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2771 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2772 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
2773 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2774 }
2775 }
2776}
2777impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application::UpdateApplicationError, R>> for Error
2778where
2779 R: Send + Sync + std::fmt::Debug + 'static,
2780{
2781 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_application::UpdateApplicationError, R>) -> Self {
2782 match err {
2783 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2784 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2785 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2786 source: err.into(),
2787 }),
2788 }
2789 }
2790}
2791impl From<crate::operation::update_application::UpdateApplicationError> for Error {
2792 fn from(err: crate::operation::update_application::UpdateApplicationError) -> Self {
2793 match err {
2794 crate::operation::update_application::UpdateApplicationError::ConflictException(inner) => Error::ConflictException(inner),
2795 crate::operation::update_application::UpdateApplicationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2796 crate::operation::update_application::UpdateApplicationError::UninitializedAccountException(inner) => {
2797 Error::UninitializedAccountException(inner)
2798 }
2799 crate::operation::update_application::UpdateApplicationError::Unhandled(inner) => Error::Unhandled(inner),
2800 }
2801 }
2802}
2803impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connector::UpdateConnectorError, R>> for Error
2804where
2805 R: Send + Sync + std::fmt::Debug + 'static,
2806{
2807 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connector::UpdateConnectorError, R>) -> Self {
2808 match err {
2809 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2810 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2811 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2812 source: err.into(),
2813 }),
2814 }
2815 }
2816}
2817impl From<crate::operation::update_connector::UpdateConnectorError> for Error {
2818 fn from(err: crate::operation::update_connector::UpdateConnectorError) -> Self {
2819 match err {
2820 crate::operation::update_connector::UpdateConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2821 crate::operation::update_connector::UpdateConnectorError::UninitializedAccountException(inner) => {
2822 Error::UninitializedAccountException(inner)
2823 }
2824 crate::operation::update_connector::UpdateConnectorError::ValidationException(inner) => Error::ValidationException(inner),
2825 crate::operation::update_connector::UpdateConnectorError::Unhandled(inner) => Error::Unhandled(inner),
2826 }
2827 }
2828}
2829impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_launch_configuration::UpdateLaunchConfigurationError, R>>
2830 for Error
2831where
2832 R: Send + Sync + std::fmt::Debug + 'static,
2833{
2834 fn from(
2835 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_launch_configuration::UpdateLaunchConfigurationError, R>,
2836 ) -> Self {
2837 match err {
2838 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2839 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2840 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2841 source: err.into(),
2842 }),
2843 }
2844 }
2845}
2846impl From<crate::operation::update_launch_configuration::UpdateLaunchConfigurationError> for Error {
2847 fn from(err: crate::operation::update_launch_configuration::UpdateLaunchConfigurationError) -> Self {
2848 match err {
2849 crate::operation::update_launch_configuration::UpdateLaunchConfigurationError::ConflictException(inner) => {
2850 Error::ConflictException(inner)
2851 }
2852 crate::operation::update_launch_configuration::UpdateLaunchConfigurationError::ResourceNotFoundException(inner) => {
2853 Error::ResourceNotFoundException(inner)
2854 }
2855 crate::operation::update_launch_configuration::UpdateLaunchConfigurationError::UninitializedAccountException(inner) => {
2856 Error::UninitializedAccountException(inner)
2857 }
2858 crate::operation::update_launch_configuration::UpdateLaunchConfigurationError::ValidationException(inner) => {
2859 Error::ValidationException(inner)
2860 }
2861 crate::operation::update_launch_configuration::UpdateLaunchConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2862 }
2863 }
2864}
2865impl<R>
2866 From<
2867 ::aws_smithy_runtime_api::client::result::SdkError<
2868 crate::operation::update_launch_configuration_template::UpdateLaunchConfigurationTemplateError,
2869 R,
2870 >,
2871 > for Error
2872where
2873 R: Send + Sync + std::fmt::Debug + 'static,
2874{
2875 fn from(
2876 err: ::aws_smithy_runtime_api::client::result::SdkError<
2877 crate::operation::update_launch_configuration_template::UpdateLaunchConfigurationTemplateError,
2878 R,
2879 >,
2880 ) -> Self {
2881 match err {
2882 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2883 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2884 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2885 source: err.into(),
2886 }),
2887 }
2888 }
2889}
2890impl From<crate::operation::update_launch_configuration_template::UpdateLaunchConfigurationTemplateError> for Error {
2891 fn from(err: crate::operation::update_launch_configuration_template::UpdateLaunchConfigurationTemplateError) -> Self {
2892 match err {
2893 crate::operation::update_launch_configuration_template::UpdateLaunchConfigurationTemplateError::AccessDeniedException(inner) => {
2894 Error::AccessDeniedException(inner)
2895 }
2896 crate::operation::update_launch_configuration_template::UpdateLaunchConfigurationTemplateError::ResourceNotFoundException(inner) => {
2897 Error::ResourceNotFoundException(inner)
2898 }
2899 crate::operation::update_launch_configuration_template::UpdateLaunchConfigurationTemplateError::UninitializedAccountException(inner) => {
2900 Error::UninitializedAccountException(inner)
2901 }
2902 crate::operation::update_launch_configuration_template::UpdateLaunchConfigurationTemplateError::ValidationException(inner) => {
2903 Error::ValidationException(inner)
2904 }
2905 crate::operation::update_launch_configuration_template::UpdateLaunchConfigurationTemplateError::Unhandled(inner) => {
2906 Error::Unhandled(inner)
2907 }
2908 }
2909 }
2910}
2911impl<R>
2912 From<
2913 ::aws_smithy_runtime_api::client::result::SdkError<
2914 crate::operation::update_network_migration_definition::UpdateNetworkMigrationDefinitionError,
2915 R,
2916 >,
2917 > for Error
2918where
2919 R: Send + Sync + std::fmt::Debug + 'static,
2920{
2921 fn from(
2922 err: ::aws_smithy_runtime_api::client::result::SdkError<
2923 crate::operation::update_network_migration_definition::UpdateNetworkMigrationDefinitionError,
2924 R,
2925 >,
2926 ) -> Self {
2927 match err {
2928 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2929 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2930 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2931 source: err.into(),
2932 }),
2933 }
2934 }
2935}
2936impl From<crate::operation::update_network_migration_definition::UpdateNetworkMigrationDefinitionError> for Error {
2937 fn from(err: crate::operation::update_network_migration_definition::UpdateNetworkMigrationDefinitionError) -> Self {
2938 match err {
2939 crate::operation::update_network_migration_definition::UpdateNetworkMigrationDefinitionError::AccessDeniedException(inner) => {
2940 Error::AccessDeniedException(inner)
2941 }
2942 crate::operation::update_network_migration_definition::UpdateNetworkMigrationDefinitionError::ResourceNotFoundException(inner) => {
2943 Error::ResourceNotFoundException(inner)
2944 }
2945 crate::operation::update_network_migration_definition::UpdateNetworkMigrationDefinitionError::ValidationException(inner) => {
2946 Error::ValidationException(inner)
2947 }
2948 crate::operation::update_network_migration_definition::UpdateNetworkMigrationDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2949 }
2950 }
2951}
2952impl<R>
2953 From<
2954 ::aws_smithy_runtime_api::client::result::SdkError<
2955 crate::operation::update_network_migration_mapper_segment::UpdateNetworkMigrationMapperSegmentError,
2956 R,
2957 >,
2958 > for Error
2959where
2960 R: Send + Sync + std::fmt::Debug + 'static,
2961{
2962 fn from(
2963 err: ::aws_smithy_runtime_api::client::result::SdkError<
2964 crate::operation::update_network_migration_mapper_segment::UpdateNetworkMigrationMapperSegmentError,
2965 R,
2966 >,
2967 ) -> Self {
2968 match err {
2969 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2970 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2971 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2972 source: err.into(),
2973 }),
2974 }
2975 }
2976}
2977impl From<crate::operation::update_network_migration_mapper_segment::UpdateNetworkMigrationMapperSegmentError> for Error {
2978 fn from(err: crate::operation::update_network_migration_mapper_segment::UpdateNetworkMigrationMapperSegmentError) -> Self {
2979 match err {
2980 crate::operation::update_network_migration_mapper_segment::UpdateNetworkMigrationMapperSegmentError::AccessDeniedException(inner) => {
2981 Error::AccessDeniedException(inner)
2982 }
2983 crate::operation::update_network_migration_mapper_segment::UpdateNetworkMigrationMapperSegmentError::ResourceNotFoundException(inner) => {
2984 Error::ResourceNotFoundException(inner)
2985 }
2986 crate::operation::update_network_migration_mapper_segment::UpdateNetworkMigrationMapperSegmentError::ValidationException(inner) => {
2987 Error::ValidationException(inner)
2988 }
2989 crate::operation::update_network_migration_mapper_segment::UpdateNetworkMigrationMapperSegmentError::Unhandled(inner) => {
2990 Error::Unhandled(inner)
2991 }
2992 }
2993 }
2994}
2995impl<R>
2996 From<
2997 ::aws_smithy_runtime_api::client::result::SdkError<
2998 crate::operation::update_replication_configuration::UpdateReplicationConfigurationError,
2999 R,
3000 >,
3001 > for Error
3002where
3003 R: Send + Sync + std::fmt::Debug + 'static,
3004{
3005 fn from(
3006 err: ::aws_smithy_runtime_api::client::result::SdkError<
3007 crate::operation::update_replication_configuration::UpdateReplicationConfigurationError,
3008 R,
3009 >,
3010 ) -> Self {
3011 match err {
3012 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3013 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3014 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3015 source: err.into(),
3016 }),
3017 }
3018 }
3019}
3020impl From<crate::operation::update_replication_configuration::UpdateReplicationConfigurationError> for Error {
3021 fn from(err: crate::operation::update_replication_configuration::UpdateReplicationConfigurationError) -> Self {
3022 match err {
3023 crate::operation::update_replication_configuration::UpdateReplicationConfigurationError::AccessDeniedException(inner) => {
3024 Error::AccessDeniedException(inner)
3025 }
3026 crate::operation::update_replication_configuration::UpdateReplicationConfigurationError::ConflictException(inner) => {
3027 Error::ConflictException(inner)
3028 }
3029 crate::operation::update_replication_configuration::UpdateReplicationConfigurationError::ResourceNotFoundException(inner) => {
3030 Error::ResourceNotFoundException(inner)
3031 }
3032 crate::operation::update_replication_configuration::UpdateReplicationConfigurationError::UninitializedAccountException(inner) => {
3033 Error::UninitializedAccountException(inner)
3034 }
3035 crate::operation::update_replication_configuration::UpdateReplicationConfigurationError::ValidationException(inner) => {
3036 Error::ValidationException(inner)
3037 }
3038 crate::operation::update_replication_configuration::UpdateReplicationConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3039 }
3040 }
3041}
3042impl<R>
3043 From<
3044 ::aws_smithy_runtime_api::client::result::SdkError<
3045 crate::operation::update_replication_configuration_template::UpdateReplicationConfigurationTemplateError,
3046 R,
3047 >,
3048 > for Error
3049where
3050 R: Send + Sync + std::fmt::Debug + 'static,
3051{
3052 fn from(
3053 err: ::aws_smithy_runtime_api::client::result::SdkError<
3054 crate::operation::update_replication_configuration_template::UpdateReplicationConfigurationTemplateError,
3055 R,
3056 >,
3057 ) -> Self {
3058 match err {
3059 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3060 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3061 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3062 source: err.into(),
3063 }),
3064 }
3065 }
3066}
3067impl From<crate::operation::update_replication_configuration_template::UpdateReplicationConfigurationTemplateError> for Error {
3068 fn from(err: crate::operation::update_replication_configuration_template::UpdateReplicationConfigurationTemplateError) -> Self {
3069 match err {
3070 crate::operation::update_replication_configuration_template::UpdateReplicationConfigurationTemplateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3071 crate::operation::update_replication_configuration_template::UpdateReplicationConfigurationTemplateError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3072 crate::operation::update_replication_configuration_template::UpdateReplicationConfigurationTemplateError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
3073 crate::operation::update_replication_configuration_template::UpdateReplicationConfigurationTemplateError::ValidationException(inner) => Error::ValidationException(inner),
3074 crate::operation::update_replication_configuration_template::UpdateReplicationConfigurationTemplateError::Unhandled(inner) => Error::Unhandled(inner),
3075 }
3076 }
3077}
3078impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_source_server::UpdateSourceServerError, R>> for Error
3079where
3080 R: Send + Sync + std::fmt::Debug + 'static,
3081{
3082 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_source_server::UpdateSourceServerError, R>) -> Self {
3083 match err {
3084 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3085 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3086 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3087 source: err.into(),
3088 }),
3089 }
3090 }
3091}
3092impl From<crate::operation::update_source_server::UpdateSourceServerError> for Error {
3093 fn from(err: crate::operation::update_source_server::UpdateSourceServerError) -> Self {
3094 match err {
3095 crate::operation::update_source_server::UpdateSourceServerError::ConflictException(inner) => Error::ConflictException(inner),
3096 crate::operation::update_source_server::UpdateSourceServerError::ResourceNotFoundException(inner) => {
3097 Error::ResourceNotFoundException(inner)
3098 }
3099 crate::operation::update_source_server::UpdateSourceServerError::UninitializedAccountException(inner) => {
3100 Error::UninitializedAccountException(inner)
3101 }
3102 crate::operation::update_source_server::UpdateSourceServerError::Unhandled(inner) => Error::Unhandled(inner),
3103 }
3104 }
3105}
3106impl<R>
3107 From<
3108 ::aws_smithy_runtime_api::client::result::SdkError<
3109 crate::operation::update_source_server_replication_type::UpdateSourceServerReplicationTypeError,
3110 R,
3111 >,
3112 > for Error
3113where
3114 R: Send + Sync + std::fmt::Debug + 'static,
3115{
3116 fn from(
3117 err: ::aws_smithy_runtime_api::client::result::SdkError<
3118 crate::operation::update_source_server_replication_type::UpdateSourceServerReplicationTypeError,
3119 R,
3120 >,
3121 ) -> Self {
3122 match err {
3123 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3124 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3125 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3126 source: err.into(),
3127 }),
3128 }
3129 }
3130}
3131impl From<crate::operation::update_source_server_replication_type::UpdateSourceServerReplicationTypeError> for Error {
3132 fn from(err: crate::operation::update_source_server_replication_type::UpdateSourceServerReplicationTypeError) -> Self {
3133 match err {
3134 crate::operation::update_source_server_replication_type::UpdateSourceServerReplicationTypeError::ConflictException(inner) => {
3135 Error::ConflictException(inner)
3136 }
3137 crate::operation::update_source_server_replication_type::UpdateSourceServerReplicationTypeError::ResourceNotFoundException(inner) => {
3138 Error::ResourceNotFoundException(inner)
3139 }
3140 crate::operation::update_source_server_replication_type::UpdateSourceServerReplicationTypeError::UninitializedAccountException(inner) => {
3141 Error::UninitializedAccountException(inner)
3142 }
3143 crate::operation::update_source_server_replication_type::UpdateSourceServerReplicationTypeError::ValidationException(inner) => {
3144 Error::ValidationException(inner)
3145 }
3146 crate::operation::update_source_server_replication_type::UpdateSourceServerReplicationTypeError::Unhandled(inner) => {
3147 Error::Unhandled(inner)
3148 }
3149 }
3150 }
3151}
3152impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_wave::UpdateWaveError, R>> for Error
3153where
3154 R: Send + Sync + std::fmt::Debug + 'static,
3155{
3156 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_wave::UpdateWaveError, R>) -> Self {
3157 match err {
3158 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3159 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3160 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3161 source: err.into(),
3162 }),
3163 }
3164 }
3165}
3166impl From<crate::operation::update_wave::UpdateWaveError> for Error {
3167 fn from(err: crate::operation::update_wave::UpdateWaveError) -> Self {
3168 match err {
3169 crate::operation::update_wave::UpdateWaveError::ConflictException(inner) => Error::ConflictException(inner),
3170 crate::operation::update_wave::UpdateWaveError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3171 crate::operation::update_wave::UpdateWaveError::UninitializedAccountException(inner) => Error::UninitializedAccountException(inner),
3172 crate::operation::update_wave::UpdateWaveError::Unhandled(inner) => Error::Unhandled(inner),
3173 }
3174 }
3175}
3176impl ::std::error::Error for Error {
3177 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3178 match self {
3179 Error::AccessDeniedException(inner) => inner.source(),
3180 Error::ConflictException(inner) => inner.source(),
3181 Error::InternalServerException(inner) => inner.source(),
3182 Error::ResourceNotFoundException(inner) => inner.source(),
3183 Error::ServiceQuotaExceededException(inner) => inner.source(),
3184 Error::ThrottlingException(inner) => inner.source(),
3185 Error::UninitializedAccountException(inner) => inner.source(),
3186 Error::ValidationException(inner) => inner.source(),
3187 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3188 }
3189 }
3190}
3191impl ::aws_types::request_id::RequestId for Error {
3192 fn request_id(&self) -> Option<&str> {
3193 match self {
3194 Self::AccessDeniedException(e) => e.request_id(),
3195 Self::ConflictException(e) => e.request_id(),
3196 Self::InternalServerException(e) => e.request_id(),
3197 Self::ResourceNotFoundException(e) => e.request_id(),
3198 Self::ServiceQuotaExceededException(e) => e.request_id(),
3199 Self::ThrottlingException(e) => e.request_id(),
3200 Self::UninitializedAccountException(e) => e.request_id(),
3201 Self::ValidationException(e) => e.request_id(),
3202 Self::Unhandled(e) => e.meta.request_id(),
3203 }
3204 }
3205}