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